diff --git a/coffee-warehouse/index.html b/coffee-warehouse/index.html index b4455459..339753e1 100644 --- a/coffee-warehouse/index.html +++ b/coffee-warehouse/index.html @@ -14,5 +14,5 @@ - + diff --git a/coffee-warehouse/main-OAQPHBTZ.js b/coffee-warehouse/main-EYSTXHXE.js similarity index 99% rename from coffee-warehouse/main-OAQPHBTZ.js rename to coffee-warehouse/main-EYSTXHXE.js index fe85c75f..ef84633c 100644 --- a/coffee-warehouse/main-OAQPHBTZ.js +++ b/coffee-warehouse/main-EYSTXHXE.js @@ -9,7 +9,7 @@ ${e.map((i,o)=>`${o+1}) ${i.toString()}`).join(` `);if(n[ge("0xa")]===2)if(ge("0x3f")!==ge("0x1"))t+=ge("0x1f")[ge("0x17")](n[ge("0x19")][ge("0x1c")](),ge("0x33"))[ge("0x17")](n[ge("0x18")][ge("0x1c")](),`. `);else var e=function(){_0x339f11={type:3,packageName:_0x324919,expiryDate:_0x301701(_0xaf8b40[ge("0x40")]),docsUrl:_0x5b91f9[ge("0xb")]}};if(n[ge("0xa")]===3)if(ge("0x11")===ge("0x11"))t+=ge("0x3c")[ge("0x17")](n[ge("0x19")][ge("0x1c")](),`. `);else var i=function(){_0x3f28ec+=ge("0x1f")[ge("0x17")](_0x4667d4[ge("0x19")][ge("0x1c")](),ge("0x33"))[ge("0x17")](_0x23b5da[ge("0x18")][ge("0x1c")](),`. -`)};else if(n[ge("0xa")]===0)if(ge("0x35")===ge("0x35"))t+=ge("0x28");else var o=function(){_0x5ccb08+=ge("0x3")};else if(n[ge("0xa")]===1)if(ge("0x26")!==ge("0x26"))var r=function(){var a=_0x465bb0(_0x2ba0db),l=new _0x4a6023(a[ge("0x32")](),a[ge("0x4")](),a[ge("0x3d")]()+1),c=l[ge("0x1e")]()/1e3;return _0x2f1bc7>c};else t+=ge("0x3");return t+=ge("0x23")[ge("0x17")](n[ge("0xe")],ge("0x2d")),t}function WQe(n,t){var e=n[ge("0x2c")];if(!e||!e[ge("0x3e")]){if(ge("0x27")!==ge("0x37"))return null;var o=function(){return _0x25dc8b[ge("0x2")](_0xcce210[ge("0xc")])}}var i=new Set(t);return e[ge("0x36")](function(r,s){if(ge("0x42")!==ge("0x31"))return s[ge("0x40")]-r[ge("0x40")];var a=function(){return null}})[ge("0x12")](function(r){if(ge("0x3b")===ge("0x3b"))return i[ge("0x38")](r[ge("0x1b")]);var s=function(){return _0x22688d[ge("0x40")]-_0x522bbc[ge("0x40")]}})}function B4(n){return new Date(n*1e3)}function qQe(){return new Date()[ge("0x1e")]()/1e3}function e2e(n,t){var e=B4(t),i=new Date(e[ge("0x32")](),e[ge("0x4")](),e[ge("0x3d")]()+1),o=i[ge("0x1e")]()/1e3;return n>o}var t2e,ge,KQe,WW,Qo=he(()=>{"use strict";t2e=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];(function(n,t){var e=function(i){for(;--i;)n.push(n.shift())};e(++t)})(t2e,439);ge=function(n,t){n=n-0;var e=t2e[n];if(ge.aWziBr===void 0){var i=function(r){for(var s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",a=String(r).replace(/=+$/,""),l="",c=0,d,u,h=0;u=a.charAt(h++);~u&&(d=c%4?d*64+u:u,c++%4)?l+=String.fromCharCode(255&d>>(-2*c&6)):0)u=s.indexOf(u);return l};ge.XjGMHe=function(r){for(var s=i(r),a=[],l=0,c=s.length;l{"use strict"});var QEe,XEe=he(()=>{"use strict";QEe={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."}});var ytt,Kq,Stt,Ctt,ld,sg=he(()=>{"use strict";XEe();ytt=/\{(\d+)}?\}/g,Kq=class{constructor({name:t,message:e}){if(!t||!e)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=e}formatMessage(...t){let e=Stt(t),i=this.message.replace(ytt,function(o,r){return e[parseInt(r,10)]});return`${this.name}: ${i}`}error(...t){return new Error(this.formatMessage(t))}},Stt=function(n){return n.reduce((t,e)=>t.concat(e),[])},Ctt=function(n){let t=function(e,i){return e[i]=new Kq({name:i,message:n[i]}),e};return Object.keys(n).reduce(t,{})},ld=Ctt(QEe)});function Dtt(n,t){let e=n.split("-"),i=e[0],o=e[1],r=e[2];return rn[n]||t.indexOf(r)!==-1&&rn[i+"-"+r]||t.indexOf(o)!==-1&&rn[i+"-"+o]||rn[i]}function btt(n,t){let e=rn.supplemental.likelySubtags;for(let i=0;i{"use strict";qEe();gw();sg();rn=WEe});var ES,Uh,uv,gu,_6,_u,yS,cd,_w,v6,_c,Ki,dd,da=he(()=>{"use strict";ES="decimal",Uh="currency",uv="accounting",gu="percent",_6="scientific",_u="$",yS="%",cd="n",_w=";",v6=",",_c=".",Ki="",dd="en"});function YEe(n){return E6.lastIndex=0,n.replace(xtt,_u).replace(E6,cd).split(_w)}function ZEe(n){return E6.lastIndex=0,E6.exec(n.split(_w)[0])[0].split(_c)[0].split(v6).slice(1).map(function(o){return o.length}).reverse()}function wtt(n,t){for(let e in t)e.startsWith("unitPattern")&&(n[e]=t[e].replace("{0}",cd).replace("{1}",_u))}function Wq(n,t){let e=rn[n],i=e.numbers=e.numbers||{};i.symbols=i.symbols||{};for(let o in t)if(o===Att)Object.assign(i.symbols,t[o]);else if(o.includes(jq)){let r=o.substr(0,o.indexOf(jq)),s=t[o].standard;i[r]={patterns:YEe(s)},r===Uh?(i[r].groupSize=ZEe((t[ES+jq]||t[o]).standard),wtt(i[r],t[o]),i[uv]={patterns:YEe(t[o][uv]),groupSize:i[r].groupSize}):i[r].groupSize=ZEe(s)}else o==="currencies"&&(i.currencies=t[o])}var jq,Att,E6,xtt,JEe=he(()=>{"use strict";gc();da();jq="Formats-numberSystem-latn",Att="symbols-numberSystem-latn",E6=/([#,0.]+)/g,xtt=/¤/g});function Rtt(n){let t=[],e=Object.getOwnPropertyNames(n);for(let i=0;i{"use strict";gc();$Ee={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},Ntt=/y+/g,Itt=[["dateFormats","short"]],eye={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]}});function Ltt(n,t){let e=rn.supplemental.likelySubtags,i=n.split("-");if(e){let r=e[n]||e[i[0]];r&&(i=r.split("-"))}if(t)for(let r=i.length-1;r>=1;r--){let s=i[r];(s===t.variant||s===t.script)&&i.splice(r,1)}let o=i.length;if(o>1)return i[o-1].toUpperCase()}function Dm(n){if(n.territory)return n.territory;let t=n.name,e=n.identity,i;return e&&e.territory?i=e.territory:i=Ltt(t,e),n.territory=i,i}var vw=he(()=>{"use strict";gc()});function Xq(n){return(n[Ftt]||n[Ptt]).replace(Utt,"")}function Yq(n,t){n.calendar.dateFields.millisecond={narrow:Xq(t.narrow[Qq]),short:Xq(t.short[Qq]),wide:Xq(t.long[Qq])}}var Qq,Ftt,Ptt,Utt,nye=he(()=>{"use strict";Qq="duration-millisecond",Ftt="unitPattern-count-one",Ptt="unitPattern-count-other",Utt=/\{0\}\s?/});function Gtt(n,t){for(let e in t)e==="numbers"?Wq(n,t[e]):e==="dates"&&qq(n,t[e])}function S6(){let n=arguments.length;for(let t=0;t{"use strict";gc();JEe();iye();vw();nye()});function C6(n){let t=n.name,e=rn[t]=rn[t]||{},i=rn.supplemental=rn.supplemental||{};n.likelySubtags&&(i.likelySubtags=Object.assign(i.likelySubtags||{},n.likelySubtags)),n.currencyData&&(i.currencyData=i.currencyData||{},i.currencyData.fractions=Object.assign(i.currencyData.fractions||{},n.currencyData));let o=e.numbers;Object.assign(e,n),o&&n.numbers&&(e.numbers=Object.assign({},o,n.numbers))}var rye=he(()=>{"use strict";gc()});function D6(n,t=dd){let i=ca(t).calendar.dateFields;if(!i)throw ld.NoDateFieldNames.error();let o=i[n.type]||{};return o[n.nameType]||o.wide}var sye=he(()=>{"use strict";gc();sg();da()});function ztt(n){let t=[];for(let e=0;e{"use strict";gc();da()});function Ew(n){let t=n.split("-"),e=parseInt(t[0],10),i=parseInt(t[1],10)-1,o=parseInt(t[2],10);return new Date(e,i,o)}var aye=he(()=>{"use strict"});function dye(n,t,e){let o=fu(n).numbers.currencies;if(!o){if(e)throw Vtt.error();return}let r=o[t];if(!r){if(e)throw Ktt.error();return}return r}function Xtt(n,t){return t.length-n.length}function Ytt(n){let t,e,i,o;for(let r=0;r"u"||e!==1?s=r["displayName-count-other"]:s=r["displayName-count-one"],s}function tQ(n){let t=lye,e=lye,i=((rn.supplemental.currencyData||{}).fractions||{})[n];return i&&i._digits&&(e=t=parseInt(i._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:e}}function uye(n,t=!0){if(cye[n])return cye[n];let e=rn.supplemental.currencyData;if(!e){if(t)throw jtt.error();return}let i=e.region[n];if(!i){if(t)throw Wtt.error(n);return}return Ytt(i)}function yw(n,t){let e=fu(n),i=e.numbers;if(!i.localeCurrency){let o=uye(Dm(e),t);if(!o&&t)throw qtt.error(e.name);i.localeCurrency=o}return i.localeCurrency}var Vtt,Ktt,jtt,Wtt,qtt,lye,Jq,Qtt,cye,hye=he(()=>{"use strict";gc();sg();vw();aye();({NoCurrency:Vtt,NoCurrencyDisplay:Ktt,NoSupplementalCurrency:jtt,NoCurrencyRegion:Wtt,NoValidCurrency:qtt}=ld),lye=2,Jq="symbol",Qtt="XXX",cye={"001":"USD",150:"EUR"}});var Sw,Cw,iQ=he(()=>{"use strict";Sw=["sun","mon","tue","wed","thu","fri","sat"],Cw="001"});function CS(n){let t=fu(n);if(!isNaN(t.firstDay))return t.firstDay;let e=rn.supplemental.weekData;if(!e)throw Ztt.error();let i=e.firstDay[Dm(t)]||e.firstDay[Cw];if(!i)throw Jtt.error();return t.firstDay=Sw.indexOf(i),t.firstDay}var Ztt,Jtt,pye=he(()=>{"use strict";gc();vw();iQ();sg();({NoWeekData:Ztt,NoFirstDay:Jtt}=ld)});function b6(n){let t=fu(n);if(t.weekendRange)return t.weekendRange;let e=rn.supplemental.weekData;if(!e)throw $tt.error();let i=Dm(t),o=e.weekendStart[i]||e.weekendStart[Cw],r=e.weekendEnd[i]||e.weekendEnd[Cw];return t.weekendRange={start:Sw.indexOf(o),end:Sw.indexOf(r)},t.weekendRange}var $tt,mye=he(()=>{"use strict";gc();vw();iQ();sg();({NoWeekData:$tt}=ld)});function A6(n){return fu(n).numbers.symbols}var fye=he(()=>{"use strict";gc()});var bm=he(()=>{"use strict";oye();rye();sye();Zq();gc();hye();pye();mye();fye()});function Dw(n){return 1/n===-1/0}var nQ=he(()=>{"use strict"});function bw(n,t={}){return t.currency||(t.currency=yw(n,!0)),eQ(n,t)}var oQ=he(()=>{"use strict";bm()});function Aw(n,t,e,i,o){let r=o.numbers.symbols,s=n.indexOf(r.decimal),a=i.groupSize.slice(),l=a.shift(),c=s!==-1?s:e+1,d=n.substring(t,c),u=n,h=d.length;if(h>=l){let m=h,_=[];for(;m>-1;){let E=d.substring(m-l,m);E&&_.push(E),m-=l;let C=a.shift();if(l=C!==void 0?C:l,l===0){E=d.substring(0,m),E&&_.push(E);break}}d=_.reverse().join(r.group),u=n.substring(0,t)+d+n.substring(c)}return u}var rQ=he(()=>{"use strict"});function DS(n){return n===Uh||n===uv}var sQ=he(()=>{"use strict";da()});function _s(n,t=2,e=!1){let i=t-String(n).length,o=n;if(i>0){let r=new Array(i+1).join("0");o=e?n+r:r+n}return o}var aQ=he(()=>{"use strict"});function Am(n,t){let e=n,i=t||0;return e=e.toString().split("e"),e=Math.round(+(e[0]+"e"+(e[1]?Number(e[1])+i:i))),e=e.toString().split("e"),e=+(e[0]+"e"+(e[1]?Number(e[1])-i:-i)),e.toFixed(Math.min(i,20))}var x6=he(()=>{"use strict"});function nit(n){let{minimumFractionDigits:t,maximumFractionDigits:e,style:i}=n,o=DS(i),r;return o&&(r=tQ(n.currency)),t===void 0&&(t=o?r.minimumFractionDigits:0),e===void 0&&(i===gu?e=Math.max(t,tit):o?e=Math.max(t,r.maximumFractionDigits):e=Math.max(t,eit)),{minimumFractionDigits:t,maximumFractionDigits:e}}function oit(n,t,e){let i=Ki;for(let o=0,r=t.length;o{"use strict";da();nQ();oQ();rQ();sQ();aQ();x6();bm();eit=3,tit=0,iit=/0+$/});function w6(n,t){let e=n.format;e.indexOf(yS)!==-1&&(n.style=gu,n.symbol=t.numbers.symbols.percentSign,n.number*=100),e.indexOf(_u)!==-1&&(n.style=Uh,n.symbol=bw(t))}function N6(n){let t=n.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){let e=n.literals=[];n.format=t.replace(sit,function(i){let o=i.charAt(0).replace("\\",Ki),r=i.slice(1).replace(o,Ki);return e.push(r),_ye})}}function vye(n,t){let e=n;if(t){let i=t.length;for(let o=0;o{"use strict";da();oQ();sit=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,_ye="__??__"});function dit(n,t){let e;return t===0?e=ait:e=new RegExp(`(\\.[0-9]{${t}}[1-9]*)0+$`,"g"),n.replace(e,"$1").replace(lit,Ki)}function uit(n){let{number:t,format:e}=n,i=e.indexOf(_c);if(i!==-1){let o=e.lastIndexOf(ww)-i,r=e.lastIndexOf(xw)-i,s=o>-1,a=r>-1,l=t.toString().split("e");l[1]?l=Am(t,Math.abs(l[1])):l=l[0],l=l.split(_c)[1]||Ki;let c=l.length,d=-1;!s&&!a?(n.format=e.substring(0,i)+e.substring(i+1),i=-1,c=0):s&&o>r?c=o:r>o&&(a&&c>r?c=r:s&&c-1&&(t=Am(t,c),d>-1&&(t=dit(t,d)))}else t=Am(t);n.negative&&t*-1>=0&&!n.negativeZero&&(n.negative=!1),n.number=t,n.decimalIndex=i}function hit(n){return n.indexOf(xw)===-1&&n.indexOf(ww)===-1}function pit(n){let{number:t,format:e}=n;if(e=e.split(_w),(n.negative||n.negativeZero)&&e[1])e=e[1],n.hasNegativeFormat=!0;else if(t===0){let i=e[2];e=i||e[0],i&&hit(i)&&(n.constant=i)}else e=e[0];n.format=e}function mit(n){n.hasGroup=n.format.indexOf(v6)>-1,n.hasGroup&&(n.format=n.format.replace(cit,Ki))}function Eye(n,t,e){let i;return n===-1&&t!==-1?i=t:n!==-1&&t===-1?i=n:i=e?Math.min(n,t):Math.max(n,t),i}function fit(n){let t=n.format,e=t.indexOf(xw),i=t.indexOf(ww),o=Eye(e,i,!0);e=t.lastIndexOf(xw),i=t.lastIndexOf(ww);let r=Eye(e,i);o===t.length&&(r=o),n.start=o,n.end=r,n.lastZeroIndex=i}function git(n,t,e){let i=n;if(t===Uh||t===gu){i=Ki;for(let o=0,r=n.length;o-1&&(u+=_,x=a),a===x){u+=(E?t.numbers.symbols.decimal:Ki)+E,x+=i-a+1;continue}R===ww?(u+=R,b=R):R===xw&&(u+=b)}return d&&(u=Aw(u,e+(o&&!c?1:0),Math.max(i,C+e),t.numbers.decimal,t)),i>=e&&(u+=s.substring(i+1)),u}function vit(n,t){let e=n.number;return n.start!==-1&&(e=_it(n,t),e=git(e,n.style,n.symbol),e=vye(e,n.literals)),e}function dQ(n,t,e){let i={negative:n<0,number:Math.abs(n),negativeZero:Dw(n),format:t};return pit(i),i.constant?i.constant:(N6(i),w6(i,e),mit(i),uit(i),fit(i),vit(i,e))}var xw,ww,ait,lit,cit,yye=he(()=>{"use strict";da();nQ();rQ();x6();cQ();xw="#",ww="0",ait=/(\.(?:[0-9]*[1-9])?)0+$/g,lit=/\.$/,cit=/,/g});function yit(n){let t=Eit.exec(n);if(t){let e={style:ES},i=t[1].toLowerCase();return i==="c"?e.style=Uh:i==="a"?e.style=uv:i==="p"?e.style=gu:i==="e"&&(e.style=_6),t[2]&&(e.minimumFractionDigits=e.maximumFractionDigits=parseInt(t[2],10)),e}}function Nw(n){let t;return Cm(n)?t=yit(n):t=n,t}var Eit,uQ=he(()=>{"use strict";da();gw();Eit=/^(n|c|p|e|a)(\d*)$/i});function bS(n,t=cd,e=dd){if(n==null)return Ki;if(!isFinite(n))return String(n);let i=ca(e),o=Nw(t),r;if(o){let s=o.style||ES;r=lQ(n,Object.assign({},i.numbers[s],o),i)}else r=dQ(n,t,i);return r}var Sye=he(()=>{"use strict";bm();da();gye();yye();uQ()});function hv(n){return typeof n=="number"}var I6=he(()=>{"use strict"});function Dye(n,t){if(t.length>1){let e=(t[1]||Ki).replace(_u,Ki).split(cd);if(n.indexOf(e[0])>-1&&n.indexOf(e[1])>-1)return n.replace(e[0],Ki).replace(e[1],Ki)}}function Cit(n,t,e){let i=Nw(e)||{},o=DS(i.style),r=n,s,a=i.currency||yw(t,o);if(a){let l=$q(t,a,o);if(l)for(let c=0;c-1)&&(r=r.replace(o.percentSign,Ki),a=!0),Sit.test(r))return r=parseFloat(r.replace(o.decimal,_c)),isNaN(r)?null:r;let{negative:l,number:c}=Cit(r,i,s);r=String(c).trim();let d=r.indexOf("-");if(d>0)return null;let u=d>-1;return u=l!==void 0?l:u,r=r.replace("-",Ki).replace(Cye," ").split(o.group.replace(Cye," ")).join(Ki).replace(o.decimal,_c),r=parseFloat(r),isNaN(r)?r=null:u&&(r*=-1),r&&a&&(r=bit(r)),r}var Sit,Cye,bye=he(()=>{"use strict";bm();da();cQ();I6();sQ();uQ();gw();Sit=/[eE][-+]?[0-9]+/,Cye=/\u00A0/g});var hQ=he(()=>{"use strict";Sye();bye()});function AS(n){let t=arguments;return n.replace(Ait,(e,i)=>t[parseInt(i,10)+1])}var Ait,pQ=he(()=>{"use strict";Ait=/\{(\d+)}/g});function Lit(n){return n.hour12?"h":"H"}function fQ(n){return mQ[n]||(mQ[n]=new RegExp(n+"+")),mQ[n]}function T6(n){let t=[],e=n.charAt(0),i=e;for(let o=1;oi&&(i=c,o=a,r=t[s])}r=r.replace("v","z");for(let s=0;s0){let r=n.substr(0,i),s=n.substr(i);o=AS(t.calendar.dateTimeFormats.short,e[s]||gQ(T6(s),e),e[r]||gQ(T6(r),e))}else o=gQ(T6(n),e);return Fit(n,o,t.name),o}function Uit(n){let t=[];for(let e=0;e{"use strict";pQ();gw();da();xit=120,wit=20,Aye=[2,1,5,3,4],Nit=-2,Iit=-1,Rit=1,Tit=2,Mit={[Nit.toString()]:8,[Iit.toString()]:6,[Tit.toString()]:6,[Rit.toString()]:3},Oit={numeric:1,"2-digit":2,short:3,long:4,narrow:5},kit=/[hHmsSzZoOvVxX]/;xye=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:Lit},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],wye={e:"c",E:"c",M:"L",Q:"q"},mQ={},xS={}});function Iw(n){let t;return n<=3?t="abbreviated":n===4?t="wide":n===5?t="narrow":n===6&&(t="short"),t}var _Q=he(()=>{"use strict"});function kl(n,t,e,i,o){return SS(n,{type:t,nameType:Iw(e),standAlone:i,lower:o})}var vQ=he(()=>{"use strict";Zq();_Q()});function Nye(n){return typeof n=="function"}function mv(n){return!!n&&Nye(n.getTime)&&Nye(n.getMonth)}var O6=he(()=>{"use strict"});var Iye,k6,L6,EQ,Rye,Tye,fv,yQ=he(()=>{"use strict";Iye="month",k6="hour",L6="zone",EQ="weekday",Rye="quarter",Tye={G:"era",y:"year",q:Rye,Q:Rye,M:Iye,L:Iye,d:"day",E:EQ,c:EQ,e:EQ,h:k6,H:k6,k:k6,K:k6,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:L6,X:L6,z:L6,Z:L6},fv=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g});function Git(n,t,e){let i=CS(e),o;return n{"use strict";bm();da();pQ();M6();vQ();aQ();O6();yQ();rr={};rr.d=function(n,t){return _s(n.getDate(),t)};rr.E=function(n,t,e){return kl(e,"days",t)[n.getDay()]};rr.M=function(n,t,e){return Mye(n.getMonth(),t,e,!1)};rr.L=function(n,t,e){return Mye(n.getMonth(),t,e,!0)};rr.y=function(n,t){let e=n.getFullYear();return t===2&&(e=e%100),_s(e,t)};rr.h=function(n,t){let e=n.getHours()%12||12;return _s(e,t)};rr.H=function(n,t){return _s(n.getHours(),t)};rr.k=function(n,t){return _s(n.getHours()||24,t)};rr.K=function(n,t){return _s(n.getHours()%12,t)};rr.m=function(n,t){return _s(n.getMinutes(),t)};rr.s=function(n,t){return _s(n.getSeconds(),t)};rr.S=function(n,t){let e=n.getMilliseconds(),i;return e!==0?i=_s(String(e/1e3).split(".")[1].substr(0,t),t,!0):i=_s(Ki,t),i};rr.a=function(n,t,e){return kl(e,"dayPeriods",t)[n.getHours()<12?"am":"pm"]};rr.z=function(n,t,e){return F6(n,e,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})};rr.Z=function(n,t,e){return F6(n,e,{separator:t>3,localizedName:t===4,zZeroOffset:t===5})};rr.x=function(n,t,e){return F6(n,e,{optionalMinutes:t===1,separator:t===3||t===5})};rr.X=function(n,t,e){return F6(n,e,{optionalMinutes:t===1,separator:t===3||t===5,zZeroOffset:!0})};rr.G=function(n,t,e){let i=n.getFullYear()>=0?1:0;return kl(e,"eras",t)[i]};rr.e=kye;rr.c=function(n,t,e){return kye(n,t,e,!0)};rr.q=function(n,t,e){return Oye(n,t,e,!0)};rr.Q=Oye});function SQ(n,t,e){let i=n.getTimezoneOffset(),o=new Date(n.getTime()+(t-e)*6e4),r=o.getTimezoneOffset();return new Date(o.getTime()+(r-i)*6e4)}function Fye(n,t){!t&&n.getHours()===23&&n.setHours(n.getHours()+2)}var Pye=he(()=>{"use strict"});function ud(n,t,e){return!(n>=t&&n<=e)}function vs(n,t){let{format:e,idx:i}=t,o=0;for(;e[i]===n;)o++,i++;return o>0&&(i-=1),t.idx=i,o}function Gh(n,t){let e=n?Vit[n]||new RegExp("^\\d{1,"+n+"}"):Kit,i=t.value.substr(t.valueIdx,n).match(e);return i?(i=i[0],t.valueIdx+=i.length,parseInt(i,10)):null}function gv(n,t,e){let i=0,o=n.length,r,s,a=0,l=0,c;for(;ia&&(a=s,l=i);return a?(t.valueIdx+=a,l+1):null}function CQ(n){let t=!1;return n.value.charAt(n.valueIdx)===n.format[n.idx]&&(n.valueIdx++,t=!0),t}function Xit(n){let{gmtFormat:t,gmtZeroFormat:e}=n;if(!t)throw ld.NoGMTInfo.error();return[t.replace(Uye,Ki).toLowerCase(),e.replace(Uye,Ki).toLowerCase()]}function P6(n,t,e){let{shortHours:i,noSeparator:o,optionalMinutes:r,localizedName:s,zLiteral:a}=e;if(n.UTC=!0,a&&n.value.charAt(n.valueIdx)==="Z")return n.valueIdx++,!1;if(s&&!gv(Xit(t.calendar),n,!0))return!0;let l=zit.exec(n.value.substr(n.valueIdx,6));if(!l)return!s;let c=l[1],d=l[3],u=parseInt(c,10),h=l[2],m=parseInt(d,10);if(isNaN(u)||!i&&c.length!==3||!r&&isNaN(m)||o&&h||(isNaN(m)&&(m=null),ud(u,-12,13)||m&&ud(m,0,59)))return!0;n.valueIdx+=l[0].length,n.hoursOffset=u,n.minutesOffset=m}function zye(n,t,e){let i=vs(n,t),o=kl(e,"months",i,n==="L",!0),r=i<3?Gh(2,t):gv(o,t,!0);if(r===null||ud(r,1,12))return!0;t.month=r-1}function Bye(n,t,e){let i=vs(n,t),o=kl(e,"days",i,n==="c",!0),r=i<3?Gh(1,t):gv(o,t,!0);if(!r&&r!==0||ud(r,1,7))return!0}function Yit(n){let{year:t,month:e,day:i,hours:o,minutes:r,seconds:s,milliseconds:a,pmHour:l,UTC:c,hoursOffset:d,minutesOffset:u}=n,h=o!==null||r!==null||s||null,m=new Date,_;return t===null&&e===null&&i===null&&h?(t=m.getFullYear(),e=m.getMonth(),i=m.getDate()):(t===null&&(t=m.getFullYear()),i===null&&(i=1)),l&&o<12&&(o+=12),c?(d&&(o+=-d),u&&(r+=-u*(d<0?-1:1)),_=new Date(Date.UTC(t,e,i,o,r,s,a))):(_=new Date(t,e,i,o,r,s,a),Fye(_,o)),t<100&&_.setFullYear(t),_.getDate()!==i&&c===void 0?null:_}function Zit(n,t){let e=jit.exec(t)[0],i=Wit.exec(t)[0];return`${e}${n}${i}`}function Jit(n,t,e){let i=pv(t,e).split(Ki),o={format:i,idx:0,value:Zit(n,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},r=i.length,s=!1;for(;o.idx{"use strict";Pye();bm();da();sg();vQ();M6();x6();O6();zit=/([+|-]\d{1,2})(:?)(\d{2})?/,Bit=/^\/Date\((.*?)\)\/$/,Hit=/[+-]\d*/,Vit={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Kit=/\d+/,Uye="{0}",jit=/^ */,Wit=/ *$/,qit=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Gye=["G","g","F","Y","y","M","m","D","d","y","T","t"],Qit=2029;Er={};Er.d=function(n){vs("d",n);let t=Gh(2,n);if(t===null||ud(t,1,31))return!0;n.day===null&&(n.day=t)};Er.E=function(n,t){let e=vs("E",n);if(gv(kl(t,"days",e,!1,!0),n,!0)===null)return!0};Er.M=function(n,t){return zye("M",n,t)};Er.L=function(n,t){return zye("L",n,t)};Er.y=function(n){let t=vs("y",n),e=Gh(t===1?void 0:t,n);if(e===null)return!0;if(t===2){let i=new Date().getFullYear();e=i-i%100+e,e>Qit&&(e-=100)}n.year=e};Er.h=function(n){vs("h",n);let t=Gh(2,n);if(t===12&&(t=0),t===null||ud(t,0,11))return!0;n.hours=t};Er.K=function(n){vs("K",n);let t=Gh(2,n);if(t===null||ud(t,0,11))return!0;n.hours=t};Er.a=function(n,t){let e=vs("a",n),i=kl(t,"dayPeriods",e,!1,!0),o=gv([i.pm],n,!0);if(!o&&!gv([i.am],n,!0))return!0;n.pmHour=o};Er.H=function(n){vs("H",n);let t=Gh(2,n);if(t===null||ud(t,0,23))return!0;n.hours=t};Er.k=function(n){vs("k",n);let t=Gh(2,n);if(t===null||ud(t,1,24))return!0;n.hours=t===24?0:t};Er.m=function(n){vs("m",n);let t=Gh(2,n);if(t===null||ud(t,0,59))return!0;n.minutes=t};Er.s=function(n){vs("s",n);let t=Gh(2,n);if(t===null||ud(t,0,59))return!0;n.seconds=t};Er.S=function(n){let t=vs("S",n),e=n.value.substr(n.valueIdx,t),i=null;if(isNaN(parseInt(e,10))||(i=parseFloat("0."+e,10),i=Am(i,3),i*=1e3,n.valueIdx+=t),i===null||ud(i,0,999))return!0;n.milliseconds=i};Er.z=function(n,t){let i=vs("z",n)<4,o=P6(n,t,{shortHours:i,optionalMinutes:i,localizedName:!0});if(o)return o};Er.Z=function(n,t){let e=vs("Z",n),i=P6(n,t,{noSeparator:e<4,zLiteral:e===5,localizedName:e===4});if(i)return i};Er.x=function(n,t){let e=vs("x",n),i=P6(n,t,{noSeparator:e!==3&&e!==5,optionalMinutes:e===1});if(i)return i};Er.X=function(n,t){let e=vs("X",n),i=P6(n,t,{noSeparator:e!==3&&e!==5,optionalMinutes:e===1,zLiteral:!0});if(i)return i};Er.G=function(n,t){let e=vs("G",n),i=kl(t,"eras",e,!1,!0);if(gv([i[0],i[1]],n,!0)===null)return!0};Er.e=function(n,t){return Bye("e",n,t)};Er.c=function(n,t){return Bye("c",n,t)}});function DQ(n,t){let e=n[n.length-1];e&&e.type===Vye?e.pattern+=t:n.push({type:Vye,pattern:t})}function nnt(n){return n==="h"||n==="K"}function G6(n,t=dd){let e=ca(t),i=pv(n,e),o=[],r=fv.lastIndex=0,s=fv.exec(i);for(;s;){let a=s[0];if(r=h&&(d.names={type:u.type,nameType:Iw(m),standAlone:u.standAlone===l})}o.push(d)}r=fv.lastIndex,s=fv.exec(i)}return r{"use strict";da();I6();M6();_Q();yQ();bm();int={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},Vye="literal"});var bQ=he(()=>{"use strict";Lye();Hye();Kye()});function Rw(n,t,e){if(t){if(mv(n))return wS(n,t,e);if(hv(n))return bS(n,t,e)}return n??Ki}function jye(n,t,e){return n.replace(ont,function(i,o,r){let s=t[parseInt(o,10)];return Rw(s,r?r.substring(1):Ki,e)})}var ont,Wye=he(()=>{"use strict";bQ();hQ();da();O6();I6();ont=/\{(\d+)(:[^}]+)?\}/g});var AQ=he(()=>{"use strict";hQ();bQ();bm();Wye();sg()});var vu={};S0(vu,{CldrIntlService:()=>z6,DatePipe:()=>_v,IntlModule:()=>nl,IntlService:()=>Si,NumberPipe:()=>unt,cldrServiceFactory:()=>rSe,dateFieldName:()=>Yye,dateFormatNames:()=>Xye,firstDay:()=>Zye,format:()=>Jye,formatDate:()=>NS,formatNumber:()=>$ye,load:()=>ant,localeData:()=>wQ,numberSymbols:()=>eSe,parseDate:()=>xQ,parseNumber:()=>tSe,setData:()=>lnt,splitDateFormat:()=>iSe,toString:()=>nSe,weekendRange:()=>oSe});function Qye(n){let t=n.message,e=qye[Object.keys(qye).filter(i=>t.indexOf(i)===0)[0]];return e?`${t} ${e}`:t}function vc(n){return function(...t){try{return n(...t)}catch(e){throw e.message=Qye(e),e}}}function rSe(n){return new z6(n)}var snt,xm,qye,Xye,Yye,Zye,Jye,NS,$ye,ant,eSe,xQ,tSe,iSe,nSe,oSe,lnt,wQ,cnt,Si,z6,dnt,_v,unt,nl,Ll=he(()=>{"use strict";gt();gt();Qo();AQ();snt={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1706873902,version:"15.0.1",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},xm="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",qye={NoCurrency:`Solution: ${xm}#toc-no-currency`,NoCurrencyDisplay:`Solution: ${xm}#toc-no-currency-display`,NoCurrencyRegion:`Solution: ${xm}#toc-no-currency-region`,NoDateFieldNames:`Solution: ${xm}#toc-no-date-filed-names`,NoFirstDay:`Solution: ${xm}#toc-no-first-day`,NoGMTInfo:`Solution: ${xm}#toc-no-gmt-info`,NoLocale:`Solution: ${xm}#toc-no-locale`,NoValidCurrency:`Solution: ${xm}#toc-no-valid-currency`,NoWeekData:`Solution: ${xm}#toc-no-week-data`};Xye=vc(SS),Yye=vc(D6),Zye=vc(CS),Jye=vc(jye),NS=vc(wS),$ye=vc(bS),ant=vc(S6),eSe=vc(A6),xQ=vc(U6),tSe=vc(R6),iSe=vc(G6),nSe=vc(Rw),oSe=vc(b6),lnt=n=>C6(n),wQ=n=>{try{return ca(n)}catch(t){throw t.message=Qye(t),t}},cnt=/_/g;Si=(()=>{class n{constructor(){this.changes=new A,St(snt)}notify(){this.changes.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ee({token:n,factory:function(e){let i=null;return e?i=new e:i=rSe(Z(us)),i},providedIn:"root"}),n})(),z6=(()=>{class n extends Si{constructor(e){super(),this.localeId=e}get localeId(){return this.locale}set localeId(e){let i=e.replace(cnt,"-");i!==this.locale&&(this.locale=i,this.notify())}format(e,...i){return Jye(e,i,this.localeId)}toString(e,i,o){return nSe(e,i,o||this.localeId)}formatDate(e,i,o){return NS(e,i,o||this.localeId)}parseDate(e,i,o){return xQ(e,i,o||this.localeId)}parseNumber(e,i,o){return tSe(e,o||this.localeId,i)}formatNumber(e,i,o){return $ye(e,i,o||this.localeId)}dateFieldName(e,i){return Yye(e,i||this.localeId)}dateFormatNames(e,i){return Xye(i||this.localeId,e)}splitDateFormat(e,i){return iSe(e,i||this.localeId)}numberSymbols(e){return eSe(e||this.localeId)}firstDay(e){return Zye(e||this.localeId)}weekendRange(e){return oSe(e||this.localeId)}}return n.\u0275fac=function(e){return new(e||n)(Z(us))},n.\u0275prov=ee({token:n,factory:n.\u0275fac}),n})(),dnt=n=>!isNaN(n-parseFloat(n)),_v=(()=>{class n{constructor(e){this.intlService=e}transform(e,i="",o){return e=this.normalize(e),e&&this.intlService.formatDate(e,i,o)}normalize(e){return e&&typeof e=="string"?e=this.intlService.parseDate(e):e&&dnt(e)&&(e=new Date(parseFloat(e))),e}}return n.\u0275fac=function(e){return new(e||n)(f(Si,16))},n.\u0275pipe=Zc({name:"kendoDate",type:n,pure:!0}),n})(),unt=(()=>{class n{constructor(e){this.intlService=e}transform(e,i,o){return typeof e=="string"&&(e=this.intlService.parseNumber(e)),e!=null?this.intlService.formatNumber(e,i,o):e}}return n.\u0275fac=function(e){return new(e||n)(f(Si,16))},n.\u0275pipe=Zc({name:"kendoNumber",type:n,pure:!0}),n})(),nl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=_e({}),n})()});var BPe=t9e((Ogn,oB)=>{"use strict";(function(n,t,e,i){"use strict";var o=["","webkit","Moz","MS","ms","o"],r=t.createElement("div"),s="function",a=Math.round,l=Math.abs,c=Date.now;function d(O,z,$){return setTimeout(x(O,$),z)}function u(O,z,$){return Array.isArray(O)?(h(O,$[z],$),!0):!1}function h(O,z,$){var Ne;if(O)if(O.forEach)O.forEach(z,$);else if(O.length!==i)for(Ne=0;Nec};else t+=ge("0x3");return t+=ge("0x23")[ge("0x17")](n[ge("0xe")],ge("0x2d")),t}function WQe(n,t){var e=n[ge("0x2c")];if(!e||!e[ge("0x3e")]){if(ge("0x27")!==ge("0x37"))return null;var o=function(){return _0x25dc8b[ge("0x2")](_0xcce210[ge("0xc")])}}var i=new Set(t);return e[ge("0x36")](function(r,s){if(ge("0x42")!==ge("0x31"))return s[ge("0x40")]-r[ge("0x40")];var a=function(){return null}})[ge("0x12")](function(r){if(ge("0x3b")===ge("0x3b"))return i[ge("0x38")](r[ge("0x1b")]);var s=function(){return _0x22688d[ge("0x40")]-_0x522bbc[ge("0x40")]}})}function B4(n){return new Date(n*1e3)}function qQe(){return new Date()[ge("0x1e")]()/1e3}function e2e(n,t){var e=B4(t),i=new Date(e[ge("0x32")](),e[ge("0x4")](),e[ge("0x3d")]()+1),o=i[ge("0x1e")]()/1e3;return n>o}var t2e,ge,KQe,WW,Qo=he(()=>{"use strict";t2e=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];(function(n,t){var e=function(i){for(;--i;)n.push(n.shift())};e(++t)})(t2e,439);ge=function(n,t){n=n-0;var e=t2e[n];if(ge.aWziBr===void 0){var i=function(r){for(var s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",a=String(r).replace(/=+$/,""),l="",c=0,d,u,h=0;u=a.charAt(h++);~u&&(d=c%4?d*64+u:u,c++%4)?l+=String.fromCharCode(255&d>>(-2*c&6)):0)u=s.indexOf(u);return l};ge.XjGMHe=function(r){for(var s=i(r),a=[],l=0,c=s.length;l{"use strict"});var QEe,XEe=he(()=>{"use strict";QEe={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."}});var ytt,Kq,Stt,Ctt,ld,sg=he(()=>{"use strict";XEe();ytt=/\{(\d+)}?\}/g,Kq=class{constructor({name:t,message:e}){if(!t||!e)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=e}formatMessage(...t){let e=Stt(t),i=this.message.replace(ytt,function(o,r){return e[parseInt(r,10)]});return`${this.name}: ${i}`}error(...t){return new Error(this.formatMessage(t))}},Stt=function(n){return n.reduce((t,e)=>t.concat(e),[])},Ctt=function(n){let t=function(e,i){return e[i]=new Kq({name:i,message:n[i]}),e};return Object.keys(n).reduce(t,{})},ld=Ctt(QEe)});function Dtt(n,t){let e=n.split("-"),i=e[0],o=e[1],r=e[2];return rn[n]||t.indexOf(r)!==-1&&rn[i+"-"+r]||t.indexOf(o)!==-1&&rn[i+"-"+o]||rn[i]}function btt(n,t){let e=rn.supplemental.likelySubtags;for(let i=0;i{"use strict";qEe();gw();sg();rn=WEe});var ES,Uh,uv,gu,_6,_u,yS,cd,_w,v6,_c,Ki,dd,da=he(()=>{"use strict";ES="decimal",Uh="currency",uv="accounting",gu="percent",_6="scientific",_u="$",yS="%",cd="n",_w=";",v6=",",_c=".",Ki="",dd="en"});function YEe(n){return E6.lastIndex=0,n.replace(xtt,_u).replace(E6,cd).split(_w)}function ZEe(n){return E6.lastIndex=0,E6.exec(n.split(_w)[0])[0].split(_c)[0].split(v6).slice(1).map(function(o){return o.length}).reverse()}function wtt(n,t){for(let e in t)e.startsWith("unitPattern")&&(n[e]=t[e].replace("{0}",cd).replace("{1}",_u))}function Wq(n,t){let e=rn[n],i=e.numbers=e.numbers||{};i.symbols=i.symbols||{};for(let o in t)if(o===Att)Object.assign(i.symbols,t[o]);else if(o.includes(jq)){let r=o.substr(0,o.indexOf(jq)),s=t[o].standard;i[r]={patterns:YEe(s)},r===Uh?(i[r].groupSize=ZEe((t[ES+jq]||t[o]).standard),wtt(i[r],t[o]),i[uv]={patterns:YEe(t[o][uv]),groupSize:i[r].groupSize}):i[r].groupSize=ZEe(s)}else o==="currencies"&&(i.currencies=t[o])}var jq,Att,E6,xtt,JEe=he(()=>{"use strict";gc();da();jq="Formats-numberSystem-latn",Att="symbols-numberSystem-latn",E6=/([#,0.]+)/g,xtt=/¤/g});function Rtt(n){let t=[],e=Object.getOwnPropertyNames(n);for(let i=0;i{"use strict";gc();$Ee={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},Ntt=/y+/g,Itt=[["dateFormats","short"]],eye={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]}});function Ltt(n,t){let e=rn.supplemental.likelySubtags,i=n.split("-");if(e){let r=e[n]||e[i[0]];r&&(i=r.split("-"))}if(t)for(let r=i.length-1;r>=1;r--){let s=i[r];(s===t.variant||s===t.script)&&i.splice(r,1)}let o=i.length;if(o>1)return i[o-1].toUpperCase()}function Dm(n){if(n.territory)return n.territory;let t=n.name,e=n.identity,i;return e&&e.territory?i=e.territory:i=Ltt(t,e),n.territory=i,i}var vw=he(()=>{"use strict";gc()});function Xq(n){return(n[Ftt]||n[Ptt]).replace(Utt,"")}function Yq(n,t){n.calendar.dateFields.millisecond={narrow:Xq(t.narrow[Qq]),short:Xq(t.short[Qq]),wide:Xq(t.long[Qq])}}var Qq,Ftt,Ptt,Utt,nye=he(()=>{"use strict";Qq="duration-millisecond",Ftt="unitPattern-count-one",Ptt="unitPattern-count-other",Utt=/\{0\}\s?/});function Gtt(n,t){for(let e in t)e==="numbers"?Wq(n,t[e]):e==="dates"&&qq(n,t[e])}function S6(){let n=arguments.length;for(let t=0;t{"use strict";gc();JEe();iye();vw();nye()});function C6(n){let t=n.name,e=rn[t]=rn[t]||{},i=rn.supplemental=rn.supplemental||{};n.likelySubtags&&(i.likelySubtags=Object.assign(i.likelySubtags||{},n.likelySubtags)),n.currencyData&&(i.currencyData=i.currencyData||{},i.currencyData.fractions=Object.assign(i.currencyData.fractions||{},n.currencyData));let o=e.numbers;Object.assign(e,n),o&&n.numbers&&(e.numbers=Object.assign({},o,n.numbers))}var rye=he(()=>{"use strict";gc()});function D6(n,t=dd){let i=ca(t).calendar.dateFields;if(!i)throw ld.NoDateFieldNames.error();let o=i[n.type]||{};return o[n.nameType]||o.wide}var sye=he(()=>{"use strict";gc();sg();da()});function ztt(n){let t=[];for(let e=0;e{"use strict";gc();da()});function Ew(n){let t=n.split("-"),e=parseInt(t[0],10),i=parseInt(t[1],10)-1,o=parseInt(t[2],10);return new Date(e,i,o)}var aye=he(()=>{"use strict"});function dye(n,t,e){let o=fu(n).numbers.currencies;if(!o){if(e)throw Vtt.error();return}let r=o[t];if(!r){if(e)throw Ktt.error();return}return r}function Xtt(n,t){return t.length-n.length}function Ytt(n){let t,e,i,o;for(let r=0;r"u"||e!==1?s=r["displayName-count-other"]:s=r["displayName-count-one"],s}function tQ(n){let t=lye,e=lye,i=((rn.supplemental.currencyData||{}).fractions||{})[n];return i&&i._digits&&(e=t=parseInt(i._digits,10)),{minimumFractionDigits:t,maximumFractionDigits:e}}function uye(n,t=!0){if(cye[n])return cye[n];let e=rn.supplemental.currencyData;if(!e){if(t)throw jtt.error();return}let i=e.region[n];if(!i){if(t)throw Wtt.error(n);return}return Ytt(i)}function yw(n,t){let e=fu(n),i=e.numbers;if(!i.localeCurrency){let o=uye(Dm(e),t);if(!o&&t)throw qtt.error(e.name);i.localeCurrency=o}return i.localeCurrency}var Vtt,Ktt,jtt,Wtt,qtt,lye,Jq,Qtt,cye,hye=he(()=>{"use strict";gc();sg();vw();aye();({NoCurrency:Vtt,NoCurrencyDisplay:Ktt,NoSupplementalCurrency:jtt,NoCurrencyRegion:Wtt,NoValidCurrency:qtt}=ld),lye=2,Jq="symbol",Qtt="XXX",cye={"001":"USD",150:"EUR"}});var Sw,Cw,iQ=he(()=>{"use strict";Sw=["sun","mon","tue","wed","thu","fri","sat"],Cw="001"});function CS(n){let t=fu(n);if(!isNaN(t.firstDay))return t.firstDay;let e=rn.supplemental.weekData;if(!e)throw Ztt.error();let i=e.firstDay[Dm(t)]||e.firstDay[Cw];if(!i)throw Jtt.error();return t.firstDay=Sw.indexOf(i),t.firstDay}var Ztt,Jtt,pye=he(()=>{"use strict";gc();vw();iQ();sg();({NoWeekData:Ztt,NoFirstDay:Jtt}=ld)});function b6(n){let t=fu(n);if(t.weekendRange)return t.weekendRange;let e=rn.supplemental.weekData;if(!e)throw $tt.error();let i=Dm(t),o=e.weekendStart[i]||e.weekendStart[Cw],r=e.weekendEnd[i]||e.weekendEnd[Cw];return t.weekendRange={start:Sw.indexOf(o),end:Sw.indexOf(r)},t.weekendRange}var $tt,mye=he(()=>{"use strict";gc();vw();iQ();sg();({NoWeekData:$tt}=ld)});function A6(n){return fu(n).numbers.symbols}var fye=he(()=>{"use strict";gc()});var bm=he(()=>{"use strict";oye();rye();sye();Zq();gc();hye();pye();mye();fye()});function Dw(n){return 1/n===-1/0}var nQ=he(()=>{"use strict"});function bw(n,t={}){return t.currency||(t.currency=yw(n,!0)),eQ(n,t)}var oQ=he(()=>{"use strict";bm()});function Aw(n,t,e,i,o){let r=o.numbers.symbols,s=n.indexOf(r.decimal),a=i.groupSize.slice(),l=a.shift(),c=s!==-1?s:e+1,d=n.substring(t,c),u=n,h=d.length;if(h>=l){let m=h,_=[];for(;m>-1;){let E=d.substring(m-l,m);E&&_.push(E),m-=l;let C=a.shift();if(l=C!==void 0?C:l,l===0){E=d.substring(0,m),E&&_.push(E);break}}d=_.reverse().join(r.group),u=n.substring(0,t)+d+n.substring(c)}return u}var rQ=he(()=>{"use strict"});function DS(n){return n===Uh||n===uv}var sQ=he(()=>{"use strict";da()});function _s(n,t=2,e=!1){let i=t-String(n).length,o=n;if(i>0){let r=new Array(i+1).join("0");o=e?n+r:r+n}return o}var aQ=he(()=>{"use strict"});function Am(n,t){let e=n,i=t||0;return e=e.toString().split("e"),e=Math.round(+(e[0]+"e"+(e[1]?Number(e[1])+i:i))),e=e.toString().split("e"),e=+(e[0]+"e"+(e[1]?Number(e[1])-i:-i)),e.toFixed(Math.min(i,20))}var x6=he(()=>{"use strict"});function nit(n){let{minimumFractionDigits:t,maximumFractionDigits:e,style:i}=n,o=DS(i),r;return o&&(r=tQ(n.currency)),t===void 0&&(t=o?r.minimumFractionDigits:0),e===void 0&&(i===gu?e=Math.max(t,tit):o?e=Math.max(t,r.maximumFractionDigits):e=Math.max(t,eit)),{minimumFractionDigits:t,maximumFractionDigits:e}}function oit(n,t,e){let i=Ki;for(let o=0,r=t.length;o{"use strict";da();nQ();oQ();rQ();sQ();aQ();x6();bm();eit=3,tit=0,iit=/0+$/});function w6(n,t){let e=n.format;e.indexOf(yS)!==-1&&(n.style=gu,n.symbol=t.numbers.symbols.percentSign,n.number*=100),e.indexOf(_u)!==-1&&(n.style=Uh,n.symbol=bw(t))}function N6(n){let t=n.format;if(t.indexOf("'")>-1||t.indexOf('"')>-1||t.indexOf("\\")>-1){let e=n.literals=[];n.format=t.replace(sit,function(i){let o=i.charAt(0).replace("\\",Ki),r=i.slice(1).replace(o,Ki);return e.push(r),_ye})}}function vye(n,t){let e=n;if(t){let i=t.length;for(let o=0;o{"use strict";da();oQ();sit=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g,_ye="__??__"});function dit(n,t){let e;return t===0?e=ait:e=new RegExp(`(\\.[0-9]{${t}}[1-9]*)0+$`,"g"),n.replace(e,"$1").replace(lit,Ki)}function uit(n){let{number:t,format:e}=n,i=e.indexOf(_c);if(i!==-1){let o=e.lastIndexOf(ww)-i,r=e.lastIndexOf(xw)-i,s=o>-1,a=r>-1,l=t.toString().split("e");l[1]?l=Am(t,Math.abs(l[1])):l=l[0],l=l.split(_c)[1]||Ki;let c=l.length,d=-1;!s&&!a?(n.format=e.substring(0,i)+e.substring(i+1),i=-1,c=0):s&&o>r?c=o:r>o&&(a&&c>r?c=r:s&&c-1&&(t=Am(t,c),d>-1&&(t=dit(t,d)))}else t=Am(t);n.negative&&t*-1>=0&&!n.negativeZero&&(n.negative=!1),n.number=t,n.decimalIndex=i}function hit(n){return n.indexOf(xw)===-1&&n.indexOf(ww)===-1}function pit(n){let{number:t,format:e}=n;if(e=e.split(_w),(n.negative||n.negativeZero)&&e[1])e=e[1],n.hasNegativeFormat=!0;else if(t===0){let i=e[2];e=i||e[0],i&&hit(i)&&(n.constant=i)}else e=e[0];n.format=e}function mit(n){n.hasGroup=n.format.indexOf(v6)>-1,n.hasGroup&&(n.format=n.format.replace(cit,Ki))}function Eye(n,t,e){let i;return n===-1&&t!==-1?i=t:n!==-1&&t===-1?i=n:i=e?Math.min(n,t):Math.max(n,t),i}function fit(n){let t=n.format,e=t.indexOf(xw),i=t.indexOf(ww),o=Eye(e,i,!0);e=t.lastIndexOf(xw),i=t.lastIndexOf(ww);let r=Eye(e,i);o===t.length&&(r=o),n.start=o,n.end=r,n.lastZeroIndex=i}function git(n,t,e){let i=n;if(t===Uh||t===gu){i=Ki;for(let o=0,r=n.length;o-1&&(u+=_,x=a),a===x){u+=(E?t.numbers.symbols.decimal:Ki)+E,x+=i-a+1;continue}R===ww?(u+=R,b=R):R===xw&&(u+=b)}return d&&(u=Aw(u,e+(o&&!c?1:0),Math.max(i,C+e),t.numbers.decimal,t)),i>=e&&(u+=s.substring(i+1)),u}function vit(n,t){let e=n.number;return n.start!==-1&&(e=_it(n,t),e=git(e,n.style,n.symbol),e=vye(e,n.literals)),e}function dQ(n,t,e){let i={negative:n<0,number:Math.abs(n),negativeZero:Dw(n),format:t};return pit(i),i.constant?i.constant:(N6(i),w6(i,e),mit(i),uit(i),fit(i),vit(i,e))}var xw,ww,ait,lit,cit,yye=he(()=>{"use strict";da();nQ();rQ();x6();cQ();xw="#",ww="0",ait=/(\.(?:[0-9]*[1-9])?)0+$/g,lit=/\.$/,cit=/,/g});function yit(n){let t=Eit.exec(n);if(t){let e={style:ES},i=t[1].toLowerCase();return i==="c"?e.style=Uh:i==="a"?e.style=uv:i==="p"?e.style=gu:i==="e"&&(e.style=_6),t[2]&&(e.minimumFractionDigits=e.maximumFractionDigits=parseInt(t[2],10)),e}}function Nw(n){let t;return Cm(n)?t=yit(n):t=n,t}var Eit,uQ=he(()=>{"use strict";da();gw();Eit=/^(n|c|p|e|a)(\d*)$/i});function bS(n,t=cd,e=dd){if(n==null)return Ki;if(!isFinite(n))return String(n);let i=ca(e),o=Nw(t),r;if(o){let s=o.style||ES;r=lQ(n,Object.assign({},i.numbers[s],o),i)}else r=dQ(n,t,i);return r}var Sye=he(()=>{"use strict";bm();da();gye();yye();uQ()});function hv(n){return typeof n=="number"}var I6=he(()=>{"use strict"});function Dye(n,t){if(t.length>1){let e=(t[1]||Ki).replace(_u,Ki).split(cd);if(n.indexOf(e[0])>-1&&n.indexOf(e[1])>-1)return n.replace(e[0],Ki).replace(e[1],Ki)}}function Cit(n,t,e){let i=Nw(e)||{},o=DS(i.style),r=n,s,a=i.currency||yw(t,o);if(a){let l=$q(t,a,o);if(l)for(let c=0;c-1)&&(r=r.replace(o.percentSign,Ki),a=!0),Sit.test(r))return r=parseFloat(r.replace(o.decimal,_c)),isNaN(r)?null:r;let{negative:l,number:c}=Cit(r,i,s);r=String(c).trim();let d=r.indexOf("-");if(d>0)return null;let u=d>-1;return u=l!==void 0?l:u,r=r.replace("-",Ki).replace(Cye," ").split(o.group.replace(Cye," ")).join(Ki).replace(o.decimal,_c),r=parseFloat(r),isNaN(r)?r=null:u&&(r*=-1),r&&a&&(r=bit(r)),r}var Sit,Cye,bye=he(()=>{"use strict";bm();da();cQ();I6();sQ();uQ();gw();Sit=/[eE][-+]?[0-9]+/,Cye=/\u00A0/g});var hQ=he(()=>{"use strict";Sye();bye()});function AS(n){let t=arguments;return n.replace(Ait,(e,i)=>t[parseInt(i,10)+1])}var Ait,pQ=he(()=>{"use strict";Ait=/\{(\d+)}/g});function Lit(n){return n.hour12?"h":"H"}function fQ(n){return mQ[n]||(mQ[n]=new RegExp(n+"+")),mQ[n]}function T6(n){let t=[],e=n.charAt(0),i=e;for(let o=1;oi&&(i=c,o=a,r=t[s])}r=r.replace("v","z");for(let s=0;s0){let r=n.substr(0,i),s=n.substr(i);o=AS(t.calendar.dateTimeFormats.short,e[s]||gQ(T6(s),e),e[r]||gQ(T6(r),e))}else o=gQ(T6(n),e);return Fit(n,o,t.name),o}function Uit(n){let t=[];for(let e=0;e{"use strict";pQ();gw();da();xit=120,wit=20,Aye=[2,1,5,3,4],Nit=-2,Iit=-1,Rit=1,Tit=2,Mit={[Nit.toString()]:8,[Iit.toString()]:6,[Tit.toString()]:6,[Rit.toString()]:3},Oit={numeric:1,"2-digit":2,short:3,long:4,narrow:5},kit=/[hHmsSzZoOvVxX]/;xye=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:Lit},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],wye={e:"c",E:"c",M:"L",Q:"q"},mQ={},xS={}});function Iw(n){let t;return n<=3?t="abbreviated":n===4?t="wide":n===5?t="narrow":n===6&&(t="short"),t}var _Q=he(()=>{"use strict"});function kl(n,t,e,i,o){return SS(n,{type:t,nameType:Iw(e),standAlone:i,lower:o})}var vQ=he(()=>{"use strict";Zq();_Q()});function Nye(n){return typeof n=="function"}function mv(n){return!!n&&Nye(n.getTime)&&Nye(n.getMonth)}var O6=he(()=>{"use strict"});var Iye,k6,L6,EQ,Rye,Tye,fv,yQ=he(()=>{"use strict";Iye="month",k6="hour",L6="zone",EQ="weekday",Rye="quarter",Tye={G:"era",y:"year",q:Rye,Q:Rye,M:Iye,L:Iye,d:"day",E:EQ,c:EQ,e:EQ,h:k6,H:k6,k:k6,K:k6,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:L6,X:L6,z:L6,Z:L6},fv=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g});function Git(n,t,e){let i=CS(e),o;return n{"use strict";bm();da();pQ();M6();vQ();aQ();O6();yQ();rr={};rr.d=function(n,t){return _s(n.getDate(),t)};rr.E=function(n,t,e){return kl(e,"days",t)[n.getDay()]};rr.M=function(n,t,e){return Mye(n.getMonth(),t,e,!1)};rr.L=function(n,t,e){return Mye(n.getMonth(),t,e,!0)};rr.y=function(n,t){let e=n.getFullYear();return t===2&&(e=e%100),_s(e,t)};rr.h=function(n,t){let e=n.getHours()%12||12;return _s(e,t)};rr.H=function(n,t){return _s(n.getHours(),t)};rr.k=function(n,t){return _s(n.getHours()||24,t)};rr.K=function(n,t){return _s(n.getHours()%12,t)};rr.m=function(n,t){return _s(n.getMinutes(),t)};rr.s=function(n,t){return _s(n.getSeconds(),t)};rr.S=function(n,t){let e=n.getMilliseconds(),i;return e!==0?i=_s(String(e/1e3).split(".")[1].substr(0,t),t,!0):i=_s(Ki,t),i};rr.a=function(n,t,e){return kl(e,"dayPeriods",t)[n.getHours()<12?"am":"pm"]};rr.z=function(n,t,e){return F6(n,e,{shortHours:t<4,optionalMinutes:t<4,separator:!0,localizedName:!0})};rr.Z=function(n,t,e){return F6(n,e,{separator:t>3,localizedName:t===4,zZeroOffset:t===5})};rr.x=function(n,t,e){return F6(n,e,{optionalMinutes:t===1,separator:t===3||t===5})};rr.X=function(n,t,e){return F6(n,e,{optionalMinutes:t===1,separator:t===3||t===5,zZeroOffset:!0})};rr.G=function(n,t,e){let i=n.getFullYear()>=0?1:0;return kl(e,"eras",t)[i]};rr.e=kye;rr.c=function(n,t,e){return kye(n,t,e,!0)};rr.q=function(n,t,e){return Oye(n,t,e,!0)};rr.Q=Oye});function SQ(n,t,e){let i=n.getTimezoneOffset(),o=new Date(n.getTime()+(t-e)*6e4),r=o.getTimezoneOffset();return new Date(o.getTime()+(r-i)*6e4)}function Fye(n,t){!t&&n.getHours()===23&&n.setHours(n.getHours()+2)}var Pye=he(()=>{"use strict"});function ud(n,t,e){return!(n>=t&&n<=e)}function vs(n,t){let{format:e,idx:i}=t,o=0;for(;e[i]===n;)o++,i++;return o>0&&(i-=1),t.idx=i,o}function Gh(n,t){let e=n?Vit[n]||new RegExp("^\\d{1,"+n+"}"):Kit,i=t.value.substr(t.valueIdx,n).match(e);return i?(i=i[0],t.valueIdx+=i.length,parseInt(i,10)):null}function gv(n,t,e){let i=0,o=n.length,r,s,a=0,l=0,c;for(;ia&&(a=s,l=i);return a?(t.valueIdx+=a,l+1):null}function CQ(n){let t=!1;return n.value.charAt(n.valueIdx)===n.format[n.idx]&&(n.valueIdx++,t=!0),t}function Xit(n){let{gmtFormat:t,gmtZeroFormat:e}=n;if(!t)throw ld.NoGMTInfo.error();return[t.replace(Uye,Ki).toLowerCase(),e.replace(Uye,Ki).toLowerCase()]}function P6(n,t,e){let{shortHours:i,noSeparator:o,optionalMinutes:r,localizedName:s,zLiteral:a}=e;if(n.UTC=!0,a&&n.value.charAt(n.valueIdx)==="Z")return n.valueIdx++,!1;if(s&&!gv(Xit(t.calendar),n,!0))return!0;let l=zit.exec(n.value.substr(n.valueIdx,6));if(!l)return!s;let c=l[1],d=l[3],u=parseInt(c,10),h=l[2],m=parseInt(d,10);if(isNaN(u)||!i&&c.length!==3||!r&&isNaN(m)||o&&h||(isNaN(m)&&(m=null),ud(u,-12,13)||m&&ud(m,0,59)))return!0;n.valueIdx+=l[0].length,n.hoursOffset=u,n.minutesOffset=m}function zye(n,t,e){let i=vs(n,t),o=kl(e,"months",i,n==="L",!0),r=i<3?Gh(2,t):gv(o,t,!0);if(r===null||ud(r,1,12))return!0;t.month=r-1}function Bye(n,t,e){let i=vs(n,t),o=kl(e,"days",i,n==="c",!0),r=i<3?Gh(1,t):gv(o,t,!0);if(!r&&r!==0||ud(r,1,7))return!0}function Yit(n){let{year:t,month:e,day:i,hours:o,minutes:r,seconds:s,milliseconds:a,pmHour:l,UTC:c,hoursOffset:d,minutesOffset:u}=n,h=o!==null||r!==null||s||null,m=new Date,_;return t===null&&e===null&&i===null&&h?(t=m.getFullYear(),e=m.getMonth(),i=m.getDate()):(t===null&&(t=m.getFullYear()),i===null&&(i=1)),l&&o<12&&(o+=12),c?(d&&(o+=-d),u&&(r+=-u*(d<0?-1:1)),_=new Date(Date.UTC(t,e,i,o,r,s,a))):(_=new Date(t,e,i,o,r,s,a),Fye(_,o)),t<100&&_.setFullYear(t),_.getDate()!==i&&c===void 0?null:_}function Zit(n,t){let e=jit.exec(t)[0],i=Wit.exec(t)[0];return`${e}${n}${i}`}function Jit(n,t,e){let i=pv(t,e).split(Ki),o={format:i,idx:0,value:Zit(n,t),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},r=i.length,s=!1;for(;o.idx{"use strict";Pye();bm();da();sg();vQ();M6();x6();O6();zit=/([+|-]\d{1,2})(:?)(\d{2})?/,Bit=/^\/Date\((.*?)\)\/$/,Hit=/[+-]\d*/,Vit={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},Kit=/\d+/,Uye="{0}",jit=/^ */,Wit=/ *$/,qit=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],Gye=["G","g","F","Y","y","M","m","D","d","y","T","t"],Qit=2029;Er={};Er.d=function(n){vs("d",n);let t=Gh(2,n);if(t===null||ud(t,1,31))return!0;n.day===null&&(n.day=t)};Er.E=function(n,t){let e=vs("E",n);if(gv(kl(t,"days",e,!1,!0),n,!0)===null)return!0};Er.M=function(n,t){return zye("M",n,t)};Er.L=function(n,t){return zye("L",n,t)};Er.y=function(n){let t=vs("y",n),e=Gh(t===1?void 0:t,n);if(e===null)return!0;if(t===2){let i=new Date().getFullYear();e=i-i%100+e,e>Qit&&(e-=100)}n.year=e};Er.h=function(n){vs("h",n);let t=Gh(2,n);if(t===12&&(t=0),t===null||ud(t,0,11))return!0;n.hours=t};Er.K=function(n){vs("K",n);let t=Gh(2,n);if(t===null||ud(t,0,11))return!0;n.hours=t};Er.a=function(n,t){let e=vs("a",n),i=kl(t,"dayPeriods",e,!1,!0),o=gv([i.pm],n,!0);if(!o&&!gv([i.am],n,!0))return!0;n.pmHour=o};Er.H=function(n){vs("H",n);let t=Gh(2,n);if(t===null||ud(t,0,23))return!0;n.hours=t};Er.k=function(n){vs("k",n);let t=Gh(2,n);if(t===null||ud(t,1,24))return!0;n.hours=t===24?0:t};Er.m=function(n){vs("m",n);let t=Gh(2,n);if(t===null||ud(t,0,59))return!0;n.minutes=t};Er.s=function(n){vs("s",n);let t=Gh(2,n);if(t===null||ud(t,0,59))return!0;n.seconds=t};Er.S=function(n){let t=vs("S",n),e=n.value.substr(n.valueIdx,t),i=null;if(isNaN(parseInt(e,10))||(i=parseFloat("0."+e,10),i=Am(i,3),i*=1e3,n.valueIdx+=t),i===null||ud(i,0,999))return!0;n.milliseconds=i};Er.z=function(n,t){let i=vs("z",n)<4,o=P6(n,t,{shortHours:i,optionalMinutes:i,localizedName:!0});if(o)return o};Er.Z=function(n,t){let e=vs("Z",n),i=P6(n,t,{noSeparator:e<4,zLiteral:e===5,localizedName:e===4});if(i)return i};Er.x=function(n,t){let e=vs("x",n),i=P6(n,t,{noSeparator:e!==3&&e!==5,optionalMinutes:e===1});if(i)return i};Er.X=function(n,t){let e=vs("X",n),i=P6(n,t,{noSeparator:e!==3&&e!==5,optionalMinutes:e===1,zLiteral:!0});if(i)return i};Er.G=function(n,t){let e=vs("G",n),i=kl(t,"eras",e,!1,!0);if(gv([i[0],i[1]],n,!0)===null)return!0};Er.e=function(n,t){return Bye("e",n,t)};Er.c=function(n,t){return Bye("c",n,t)}});function DQ(n,t){let e=n[n.length-1];e&&e.type===Vye?e.pattern+=t:n.push({type:Vye,pattern:t})}function nnt(n){return n==="h"||n==="K"}function G6(n,t=dd){let e=ca(t),i=pv(n,e),o=[],r=fv.lastIndex=0,s=fv.exec(i);for(;s;){let a=s[0];if(r=h&&(d.names={type:u.type,nameType:Iw(m),standAlone:u.standAlone===l})}o.push(d)}r=fv.lastIndex,s=fv.exec(i)}return r{"use strict";da();I6();M6();_Q();yQ();bm();int={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},Vye="literal"});var bQ=he(()=>{"use strict";Lye();Hye();Kye()});function Rw(n,t,e){if(t){if(mv(n))return wS(n,t,e);if(hv(n))return bS(n,t,e)}return n??Ki}function jye(n,t,e){return n.replace(ont,function(i,o,r){let s=t[parseInt(o,10)];return Rw(s,r?r.substring(1):Ki,e)})}var ont,Wye=he(()=>{"use strict";bQ();hQ();da();O6();I6();ont=/\{(\d+)(:[^}]+)?\}/g});var AQ=he(()=>{"use strict";hQ();bQ();bm();Wye();sg()});var vu={};S0(vu,{CldrIntlService:()=>z6,DatePipe:()=>_v,IntlModule:()=>nl,IntlService:()=>Si,NumberPipe:()=>unt,cldrServiceFactory:()=>rSe,dateFieldName:()=>Yye,dateFormatNames:()=>Xye,firstDay:()=>Zye,format:()=>Jye,formatDate:()=>NS,formatNumber:()=>$ye,load:()=>ant,localeData:()=>wQ,numberSymbols:()=>eSe,parseDate:()=>xQ,parseNumber:()=>tSe,setData:()=>lnt,splitDateFormat:()=>iSe,toString:()=>nSe,weekendRange:()=>oSe});function Qye(n){let t=n.message,e=qye[Object.keys(qye).filter(i=>t.indexOf(i)===0)[0]];return e?`${t} ${e}`:t}function vc(n){return function(...t){try{return n(...t)}catch(e){throw e.message=Qye(e),e}}}function rSe(n){return new z6(n)}var snt,xm,qye,Xye,Yye,Zye,Jye,NS,$ye,ant,eSe,xQ,tSe,iSe,nSe,oSe,lnt,wQ,cnt,Si,z6,dnt,_v,unt,nl,Ll=he(()=>{"use strict";gt();gt();Qo();AQ();snt={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1706873902,version:"15.0.1",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/"},xm="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",qye={NoCurrency:`Solution: ${xm}#toc-no-currency`,NoCurrencyDisplay:`Solution: ${xm}#toc-no-currency-display`,NoCurrencyRegion:`Solution: ${xm}#toc-no-currency-region`,NoDateFieldNames:`Solution: ${xm}#toc-no-date-filed-names`,NoFirstDay:`Solution: ${xm}#toc-no-first-day`,NoGMTInfo:`Solution: ${xm}#toc-no-gmt-info`,NoLocale:`Solution: ${xm}#toc-no-locale`,NoValidCurrency:`Solution: ${xm}#toc-no-valid-currency`,NoWeekData:`Solution: ${xm}#toc-no-week-data`};Xye=vc(SS),Yye=vc(D6),Zye=vc(CS),Jye=vc(jye),NS=vc(wS),$ye=vc(bS),ant=vc(S6),eSe=vc(A6),xQ=vc(U6),tSe=vc(R6),iSe=vc(G6),nSe=vc(Rw),oSe=vc(b6),lnt=n=>C6(n),wQ=n=>{try{return ca(n)}catch(t){throw t.message=Qye(t),t}},cnt=/_/g;Si=(()=>{class n{constructor(){this.changes=new A,St(snt)}notify(){this.changes.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ee({token:n,factory:function(e){let i=null;return e?i=new e:i=rSe(Z(us)),i},providedIn:"root"}),n})(),z6=(()=>{class n extends Si{constructor(e){super(),this.localeId=e}get localeId(){return this.locale}set localeId(e){let i=e.replace(cnt,"-");i!==this.locale&&(this.locale=i,this.notify())}format(e,...i){return Jye(e,i,this.localeId)}toString(e,i,o){return nSe(e,i,o||this.localeId)}formatDate(e,i,o){return NS(e,i,o||this.localeId)}parseDate(e,i,o){return xQ(e,i,o||this.localeId)}parseNumber(e,i,o){return tSe(e,o||this.localeId,i)}formatNumber(e,i,o){return $ye(e,i,o||this.localeId)}dateFieldName(e,i){return Yye(e,i||this.localeId)}dateFormatNames(e,i){return Xye(i||this.localeId,e)}splitDateFormat(e,i){return iSe(e,i||this.localeId)}numberSymbols(e){return eSe(e||this.localeId)}firstDay(e){return Zye(e||this.localeId)}weekendRange(e){return oSe(e||this.localeId)}}return n.\u0275fac=function(e){return new(e||n)(Z(us))},n.\u0275prov=ee({token:n,factory:n.\u0275fac}),n})(),dnt=n=>!isNaN(n-parseFloat(n)),_v=(()=>{class n{constructor(e){this.intlService=e}transform(e,i="",o){return e=this.normalize(e),e&&this.intlService.formatDate(e,i,o)}normalize(e){return e&&typeof e=="string"?e=this.intlService.parseDate(e):e&&dnt(e)&&(e=new Date(parseFloat(e))),e}}return n.\u0275fac=function(e){return new(e||n)(f(Si,16))},n.\u0275pipe=Zc({name:"kendoDate",type:n,pure:!0}),n})(),unt=(()=>{class n{constructor(e){this.intlService=e}transform(e,i,o){return typeof e=="string"&&(e=this.intlService.parseNumber(e)),e!=null?this.intlService.formatNumber(e,i,o):e}}return n.\u0275fac=function(e){return new(e||n)(f(Si,16))},n.\u0275pipe=Zc({name:"kendoNumber",type:n,pure:!0}),n})(),nl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=_e({}),n})()});var BPe=t9e((Ogn,oB)=>{"use strict";(function(n,t,e,i){"use strict";var o=["","webkit","Moz","MS","ms","o"],r=t.createElement("div"),s="function",a=Math.round,l=Math.abs,c=Date.now;function d(O,z,$){return setTimeout(x(O,$),z)}function u(O,z,$){return Array.isArray(O)?(h(O,$[z],$),!0):!1}function h(O,z,$){var Ne;if(O)if(O.forEach)O.forEach(z,$);else if(O.length!==i)for(Ne=0;Ne\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",ln=n.console&&(n.console.warn||n.console.log);return ln&&ln.call(n.console,Ne,Gt),O.apply(this,arguments)}}var _;typeof Object.assign!="function"?_=function(z){if(z===i||z===null)throw new TypeError("Cannot convert undefined or null to object");for(var $=Object(z),Ne=1;Ne-1}function fe(O){return O.trim().split(/\s+/g)}function Ae(O,z,$){if(O.indexOf&&!$)return O.indexOf(z);for(var Ne=0;NeBa[z]}):Ne=Ne.sort()),Ne}function xe(O,z){for(var $,Ne,et=z[0].toUpperCase()+z.slice(1),Gt=0;Gt1&&!$.firstMultiple?$.firstMultiple=p0(z):et===1&&($.firstMultiple=!1);var Gt=$.firstInput,ln=$.firstMultiple,ds=ln?ln.center:Gt.center,Ps=z.center=m0(Ne);z.timeStamp=c(),z.deltaTime=z.timeStamp-Gt.timeStamp,z.angle=Vp(ds,Ps),z.distance=dh(ds,Ps),d_($,z),z.offsetDirection=g0(z.deltaX,z.deltaY);var Ba=f0(z.deltaTime,z.deltaX,z.deltaY);z.overallVelocityX=Ba.x,z.overallVelocityY=Ba.y,z.overallVelocity=l(Ba.x)>l(Ba.y)?Ba.x:Ba.y,z.scale=ln?p_(ln.pointers,Ne):1,z.rotation=ln?h_(ln.pointers,Ne):0,z.maxPointers=$.prevInput?z.pointers.length>$.prevInput.maxPointers?z.pointers.length:$.prevInput.maxPointers:z.pointers.length,u_($,z);var ph=O.element;V(z.srcEvent.target,ph)&&(ph=z.srcEvent.target),z.target=ph}function d_(O,z){var $=z.center,Ne=O.offsetDelta||{},et=O.prevDelta||{},Gt=O.prevInput||{};(z.eventType===xt||Gt.eventType===bi)&&(et=O.prevDelta={x:Gt.deltaX||0,y:Gt.deltaY||0},Ne=O.offsetDelta={x:$.x,y:$.y}),z.deltaX=et.x+($.x-Ne.x),z.deltaY=et.y+($.y-Ne.y)}function u_(O,z){var $=O.lastInterval||z,Ne=z.timeStamp-$.timeStamp,et,Gt,ln,ds;if(z.eventType!=Vt&&(Ne>Ht||$.velocity===i)){var Ps=z.deltaX-$.deltaX,Ba=z.deltaY-$.deltaY,ph=f0(Ne,Ps,Ba);Gt=ph.x,ln=ph.y,et=l(ph.x)>l(ph.y)?ph.x:ph.y,ds=g0(Ps,Ba),O.lastInterval=z}else et=$.velocity,Gt=$.velocityX,ln=$.velocityY,ds=$.direction;z.velocity=et,z.velocityX=Gt,z.velocityY=ln,z.direction=ds}function p0(O){for(var z=[],$=0;$=l(z)?O<0?Ri:kn:z<0?Li:yn}function dh(O,z,$){$||($=Jr);var Ne=z[$[0]]-O[$[0]],et=z[$[1]]-O[$[1]];return Math.sqrt(Ne*Ne+et*et)}function Vp(O,z,$){$||($=Jr);var Ne=z[$[0]]-O[$[0]],et=z[$[1]]-O[$[1]];return Math.atan2(et,Ne)*180/Math.PI}function h_(O,z){return Vp(z[1],z[0],cs)+Vp(O[1],O[0],cs)}function p_(O,z){return dh(z[0],z[1],cs)/dh(O[0],O[1],cs)}var m_={mousedown:xt,mousemove:Ot,mouseup:bi},f_="mousedown",g_="mousemove mouseup";function uh(){this.evEl=f_,this.evWin=g_,this.pressed=!1,Ln.apply(this,arguments)}b(uh,Ln,{handler:function(z){var $=m_[z.type];$&xt&&z.button===0&&(this.pressed=!0),$&Ot&&z.which!==1&&($=bi),this.pressed&&($&bi&&(this.pressed=!1),this.callback(this.manager,$,{pointers:[z],changedPointers:[z],pointerType:li,srcEvent:z}))}});var __={pointerdown:xt,pointermove:Ot,pointerup:bi,pointercancel:Vt,pointerout:Vt},v_={2:Jt,3:Xt,4:li,5:Ue},_0="pointerdown",v0="pointermove pointerup pointercancel";n.MSPointerEvent&&!n.PointerEvent&&(_0="MSPointerDown",v0="MSPointerMove MSPointerUp MSPointerCancel");function Kp(){this.evEl=_0,this.evWin=v0,Ln.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}b(Kp,Ln,{handler:function(z){var $=this.store,Ne=!1,et=z.type.toLowerCase().replace("ms",""),Gt=__[et],ln=v_[z.pointerType]||z.pointerType,ds=ln==Jt,Ps=Ae($,z.pointerId,"pointerId");Gt&xt&&(z.button===0||ds)?Ps<0&&($.push(z),Ps=$.length-1):Gt&(bi|Vt)&&(Ne=!0),!(Ps<0)&&($[Ps]=z,this.callback(this.manager,Gt,{pointers:$,changedPointers:[z],pointerType:ln,srcEvent:z}),Ne&&$.splice(Ps,1))}});var E_={touchstart:xt,touchmove:Ot,touchend:bi,touchcancel:Vt},y_="touchstart",S_="touchstart touchmove touchend touchcancel";function E0(){this.evTarget=y_,this.evWin=S_,this.started=!1,Ln.apply(this,arguments)}b(E0,Ln,{handler:function(z){var $=E_[z.type];if($===xt&&(this.started=!0),!!this.started){var Ne=C_.call(this,z,$);$&(bi|Vt)&&Ne[0].length-Ne[1].length===0&&(this.started=!1),this.callback(this.manager,$,{pointers:Ne[0],changedPointers:Ne[1],pointerType:Jt,srcEvent:z})}}});function C_(O,z){var $=ue(O.touches),Ne=ue(O.changedTouches);return z&(bi|Vt)&&($=Xe($.concat(Ne),"identifier",!0)),[$,Ne]}var dt={touchstart:xt,touchmove:Ot,touchend:bi,touchcancel:Vt},nM="touchstart touchmove touchend touchcancel";function D_(){this.evTarget=nM,this.targetIds={},Ln.apply(this,arguments)}b(D_,Ln,{handler:function(z){var $=dt[z.type],Ne=oM.call(this,z,$);Ne&&this.callback(this.manager,$,{pointers:Ne[0],changedPointers:Ne[1],pointerType:Jt,srcEvent:z})}});function oM(O,z){var $=ue(O.touches),Ne=this.targetIds;if(z&(xt|Ot)&&$.length===1)return Ne[$[0].identifier]=!0,[$,$];var et,Gt,ln=ue(O.changedTouches),ds=[],Ps=this.target;if(Gt=$.filter(function(Ba){return V(Ba.target,Ps)}),z===xt)for(et=0;et-1&&Ne.splice(Gt,1)};setTimeout(et,rM)}}function aM(O){for(var z=O.srcEvent.clientX,$=O.srcEvent.clientY,Ne=0;Ne-1&&this.requireFail.splice(z,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(O){return!!this.simultaneous[O.id]},emit:function(O){var z=this,$=this.state;function Ne(et){z.manager.emit(et,O)}$=y0&&Ne(z.options.event+aue($))},tryEmit:function(O){if(this.canEmit())return this.emit(O);this.state=hh},canEmit:function(){for(var O=0;Oz.threshold&&et&z.direction},attrTest:function(O){return Zd.prototype.attrTest.call(this,O)&&(this.state&Qc||!(this.state&Qc)&&this.directionTest(O))},emit:function(O){this.pX=O.deltaX,this.pY=O.deltaY;var z=lue(O.direction);z&&(O.additionalEvent=this.options.event+z),this._super.emit.call(this,O)}});function aB(){Zd.apply(this,arguments)}b(aB,Zd,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[b_]},attrTest:function(O){return this._super.attrTest.call(this,O)&&(Math.abs(O.scale-1)>this.options.threshold||this.state&Qc)},emit:function(O){if(O.scale!==1){var z=O.scale<1?"in":"out";O.additionalEvent=this.options.event+z}this._super.emit.call(this,O)}});function lB(){Wp.apply(this,arguments),this._timer=null,this._input=null}b(lB,Wp,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[sue]},process:function(O){var z=this.options,$=O.pointers.length===z.pointers,Ne=O.distancez.time;if(this._input=O,!Ne||!$||O.eventType&(bi|Vt)&&!et)this.reset();else if(O.eventType&xt)this.reset(),this._timer=d(function(){this.state=jp,this.tryEmit()},z.time,this);else if(O.eventType&bi)return jp;return hh},reset:function(){clearTimeout(this._timer)},emit:function(O){this.state===jp&&(O&&O.eventType&bi?this.manager.emit(this.options.event+"up",O):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}});function cB(){Zd.apply(this,arguments)}b(cB,Zd,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[b_]},attrTest:function(O){return this._super.attrTest.call(this,O)&&(Math.abs(O.rotation)>this.options.threshold||this.state&Qc)}});function dB(){Zd.apply(this,arguments)}b(dB,Zd,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Fo|_r,pointers:1},getTouchAction:function(){return uM.prototype.getTouchAction.call(this)},attrTest:function(O){var z=this.options.direction,$;return z&(Fo|_r)?$=O.overallVelocity:z&Fo?$=O.overallVelocityX:z&_r&&($=O.overallVelocityY),this._super.attrTest.call(this,O)&&z&O.offsetDirection&&O.distance>this.options.threshold&&O.maxPointers==this.options.pointers&&l($)>this.options.velocity&&O.eventType&bi},emit:function(O){var z=lue(O.offsetDirection);z&&this.manager.emit(this.options.event+z,O),this.manager.emit(this.options.event,O)}});function hM(){Wp.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}b(hM,Wp,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[rB]},process:function(O){var z=this.options,$=O.pointers.length===z.pointers,Ne=O.distance{let t=class t{historyGo(i){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:()=>mt(BHe),providedIn:"platform"});let n=t;return n})(),J0e=new at(""),BHe=(()=>{let t=class t extends TK{constructor(){super(),this._doc=mt(Ir),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Rh().getBaseHref(this._doc)}onPopState(i){let o=Rh().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",i,!1),()=>o.removeEventListener("popstate",i)}onHashChange(i){let o=Rh().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",i,!1),()=>o.removeEventListener("hashchange",i)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(i){this._location.pathname=i}pushState(i,o,r){this._history.pushState(i,o,r)}replaceState(i,o,r){this._history.replaceState(i,o,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(i=0){this._history.go(i)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:()=>new t,providedIn:"platform"});let n=t;return n})();function MK(n,t){if(n.length==0)return t;if(t.length==0)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,e==2?n+t.substring(1):e==1?n+t:n+"/"+t}function V0e(n){let t=n.match(/#|\?|$/),e=t&&t.index||n.length,i=e-(n[e-1]==="/"?1:0);return n.slice(0,i)+n.slice(e)}function rm(n){return n&&n[0]!=="?"?"?"+n:n}var W_=(()=>{let t=class t{historyGo(i){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:()=>mt(OK),providedIn:"root"});let n=t;return n})(),$0e=new at(""),OK=(()=>{let t=class t extends W_{constructor(i,o){super(),this._platformLocation=i,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??mt(Ir).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}prepareExternalUrl(i){return MK(this._baseHref,i)}path(i=!1){let o=this._platformLocation.pathname+rm(this._platformLocation.search),r=this._platformLocation.hash;return r&&i?`${o}${r}`:o}pushState(i,o,r,s){let a=this.prepareExternalUrl(r+rm(s));this._platformLocation.pushState(i,o,a)}replaceState(i,o,r,s){let a=this.prepareExternalUrl(r+rm(s));this._platformLocation.replaceState(i,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};t.\u0275fac=function(o){return new(o||t)(Z(TK),Z($0e,8))},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ege=(()=>{let t=class t extends W_{constructor(i,o){super(),this._platformLocation=i,this._baseHref="",this._removeListenerFns=[],o!=null&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}path(i=!1){let o=this._platformLocation.hash??"#";return o.length>0?o.substring(1):o}prepareExternalUrl(i){let o=MK(this._baseHref,i);return o.length>0?"#"+o:o}pushState(i,o,r,s){let a=this.prepareExternalUrl(r+rm(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(i,o,a)}replaceState(i,o,r,s){let a=this.prepareExternalUrl(r+rm(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(i,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};t.\u0275fac=function(o){return new(o||t)(Z(TK),Z($0e,8))},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})(),Py=(()=>{let t=class t{constructor(i){this._subject=new A,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=i;let o=this._locationStrategy.getBaseHref();this._basePath=KHe(V0e(K0e(o))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(i=!1){return this.normalize(this._locationStrategy.path(i))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(i,o=""){return this.path()==this.normalize(i+rm(o))}normalize(i){return t.stripTrailingSlash(VHe(this._basePath,K0e(i)))}prepareExternalUrl(i){return i&&i[0]!=="/"&&(i="/"+i),this._locationStrategy.prepareExternalUrl(i)}go(i,o="",r=null){this._locationStrategy.pushState(r,"",i,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+rm(o)),r)}replaceState(i,o="",r=null){this._locationStrategy.replaceState(r,"",i,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+rm(o)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(i=0){this._locationStrategy.historyGo?.(i)}onUrlChange(i){return this._urlChangeListeners.push(i),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(i);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(i="",o){this._urlChangeListeners.forEach(r=>r(i,o))}subscribe(i,o,r){return this._subject.subscribe({next:i,error:o,complete:r})}};t.normalizeQueryParams=rm,t.joinWithSlash=MK,t.stripTrailingSlash=V0e,t.\u0275fac=function(o){return new(o||t)(Z(W_))},t.\u0275prov=ee({token:t,factory:()=>HHe(),providedIn:"root"});let n=t;return n})();function HHe(){return new Py(Z(W_))}function VHe(n,t){if(!n||!t.startsWith(n))return t;let e=t.substring(n.length);return e===""||["/",";","?","#"].includes(e[0])?e:t}function K0e(n){return n.replace(/\/index.html$/,"")}function KHe(n){if(new RegExp("^(https?:)?//").test(n)){let[,e]=n.split(/\/\/[^\/]+/);return e}return n}var tge={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},ige=function(n){return n[n.Decimal=0]="Decimal",n[n.Percent=1]="Percent",n[n.Currency=2]="Currency",n[n.Scientific=3]="Scientific",n}(ige||{});var Ih=function(n){return n[n.Decimal=0]="Decimal",n[n.Group=1]="Group",n[n.List=2]="List",n[n.PercentSign=3]="PercentSign",n[n.PlusSign=4]="PlusSign",n[n.MinusSign=5]="MinusSign",n[n.Exponential=6]="Exponential",n[n.SuperscriptingExponent=7]="SuperscriptingExponent",n[n.PerMille=8]="PerMille",n[n.Infinity=9]="Infinity",n[n.NaN=10]="NaN",n[n.TimeSeparator=11]="TimeSeparator",n[n.CurrencyDecimal=12]="CurrencyDecimal",n[n.CurrencyGroup=13]="CurrencyGroup",n}(Ih||{});function sx(n,t){let e=ix(n),i=e[P0.NumberSymbols][t];if(typeof i>"u"){if(t===Ih.CurrencyDecimal)return e[P0.NumberSymbols][Ih.Decimal];if(t===Ih.CurrencyGroup)return e[P0.NumberSymbols][Ih.Group]}return i}function jHe(n,t){return ix(n)[P0.NumberFormats][t]}function WHe(n){return ix(n)[P0.Currencies]}function qHe(n,t,e="en"){let i=WHe(e)[n]||tge[n]||[],o=i[1];return t==="narrow"&&typeof o=="string"?o:i[0]||n}var QHe=2;function XHe(n){let t,e=tge[n];return e&&(t=e[2]),typeof t=="number"?t:QHe}var YHe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,j0e=22,fk=".",ax="0",ZHe=";",JHe=",",SK="#",W0e="\xA4";function $He(n,t,e,i,o,r,s=!1){let a="",l=!1;if(!isFinite(n))a=sx(e,Ih.Infinity);else{let c=nVe(n);s&&(c=iVe(c));let d=t.minInt,u=t.minFrac,h=t.maxFrac;if(r){let x=r.match(YHe);if(x===null)throw new Error(`${r} is not a valid digit info`);let R=x[1],M=x[3],T=x[5];R!=null&&(d=CK(R)),M!=null&&(u=CK(M)),T!=null?h=CK(T):M!=null&&u>h&&(h=u)}oVe(c,u,h);let m=c.digits,_=c.integerLen,E=c.exponent,C=[];for(l=m.every(x=>!x);_0?C=m.splice(_,m.length):(C=m,m=[0]);let b=[];for(m.length>=t.lgSize&&b.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)b.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&b.unshift(m.join("")),a=b.join(sx(e,i)),C.length&&(a+=sx(e,o)+C.join("")),E&&(a+=sx(e,Ih.Exponential)+"+"+E)}return n<0&&!l?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function eVe(n,t,e,i,o){let r=jHe(t,ige.Currency),s=tVe(r,sx(t,Ih.MinusSign));return s.minFrac=XHe(i),s.maxFrac=s.minFrac,$He(n,s,t,Ih.CurrencyGroup,Ih.CurrencyDecimal,o).replace(W0e,e).replace(W0e,"").trim()}function tVe(n,t="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.split(ZHe),o=i[0],r=i[1],s=o.indexOf(fk)!==-1?o.split(fk):[o.substring(0,o.lastIndexOf(ax)+1),o.substring(o.lastIndexOf(ax)+1)],a=s[0],l=s[1]||"";e.posPre=a.substring(0,a.indexOf(SK));for(let d=0;d-1&&(t=t.replace(fk,"")),(r=t.search(/e/i))>0?(o<0&&(o=r),o+=+t.slice(r+1),t=t.substring(0,r)):o<0&&(o=t.length),r=0;t.charAt(r)===ax;r++);if(r===(a=t.length))i=[0],o=1;else{for(a--;t.charAt(a)===ax;)a--;for(o-=r,i=[],s=0;r<=a;r++,s++)i[s]=Number(t.charAt(r))}return o>j0e&&(i=i.splice(0,j0e-1),e=o-1,o=1),{digits:i,exponent:e,integerLen:o}}function oVe(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let i=n.digits,o=i.length-n.integerLen,r=Math.min(Math.max(t,o),e),s=r+n.integerLen,a=i[s];if(s>0){i.splice(Math.max(n.integerLen,s));for(let u=s;u=5)if(s-1<0){for(let u=0;u>s;u--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[s-1]++;for(;o=c?_.pop():l=!1),h>=10?1:0},0);d&&(i.unshift(d),n.integerLen++)}function CK(n){let t=parseInt(n);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+n);return t}function _k(n,t){t=encodeURIComponent(t);for(let e of n.split(";")){let i=e.indexOf("="),[o,r]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===t)return decodeURIComponent(r)}return null}var DK=/\s+/,q0e=[],ut=(()=>{let t=class t{constructor(i,o){this._ngEl=i,this._renderer=o,this.initialClasses=q0e,this.stateMap=new Map}set klass(i){this.initialClasses=i!=null?i.trim().split(DK):q0e}set ngClass(i){this.rawClass=typeof i=="string"?i.trim().split(DK):i}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let i=this.rawClass;if(Array.isArray(i)||i instanceof Set)for(let o of i)this._updateState(o,!0);else if(i!=null)for(let o of Object.keys(i))this._updateState(o,!!i[o]);this._applyStateDiff()}_updateState(i,o){let r=this.stateMap.get(i);r!==void 0?(r.enabled!==o&&(r.changed=!0,r.enabled=o),r.touched=!0):this.stateMap.set(i,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let i of this.stateMap){let o=i[0],r=i[1];r.changed?(this._toggleClass(o,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),r.touched=!1}}_toggleClass(i,o){i=i.trim(),i.length>0&&i.split(DK).forEach(r=>{o?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}};t.\u0275fac=function(o){return new(o||t)(f(Y),f(le))},t.\u0275dir=G({type:t,selectors:[["","ngClass",""]],inputs:{klass:[Ct.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let n=t;return n})();var bK=class{constructor(t,e,i,o){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Pt=(()=>{let t=class t{set ngForOf(i){this._ngForOf=i,this._ngForOfDirty=!0}set ngForTrackBy(i){this._trackByFn=i}get ngForTrackBy(){return this._trackByFn}constructor(i,o,r){this._viewContainer=i,this._template=o,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(i){i&&(this._template=i)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let i=this._ngForOf;if(!this._differ&&i)if(0)try{}catch{}else this._differ=this._differs.find(i).create(this.ngForTrackBy)}if(this._differ){let i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}_applyChanges(i){let o=this._viewContainer;i.forEachOperation((r,s,a)=>{if(r.previousIndex==null)o.createEmbeddedView(this._template,new bK(r.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let l=o.get(s);o.move(l,a),Q0e(l,r)}});for(let r=0,s=o.length;r{let s=o.get(r.currentIndex);Q0e(s,r)})}static ngTemplateContextGuard(i,o){return!0}};t.\u0275fac=function(o){return new(o||t)(f(wi),f(Ie),f(JA))},t.\u0275dir=G({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let n=t;return n})();function Q0e(n,t){n.context.$implicit=t.item}var pe=(()=>{let t=class t{constructor(i,o){this._viewContainer=i,this._context=new AK,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(i){this._context.$implicit=this._context.ngIf=i,this._updateView()}set ngIfThen(i){X0e("ngIfThen",i),this._thenTemplateRef=i,this._thenViewRef=null,this._updateView()}set ngIfElse(i){X0e("ngIfElse",i),this._elseTemplateRef=i,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(i,o){return!0}};t.\u0275fac=function(o){return new(o||t)(f(wi),f(Ie))},t.\u0275dir=G({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let n=t;return n})(),AK=class{constructor(){this.$implicit=null,this.ngIf=null}};function X0e(n,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${n} must be a TemplateRef, but received '${Wa(t)}'.`)}var rVe=!0,gk=class{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}},au=(()=>{let t=class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(i){this._ngSwitch=i,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(i){this._defaultViews.push(i)}_matchCase(i){let o=rVe?i===this._ngSwitch:i==this._ngSwitch;return this._lastCasesMatched||=o,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),o}_updateDefaultCases(i){if(this._defaultViews.length>0&&i!==this._defaultUsed){this._defaultUsed=i;for(let o of this._defaultViews)o.enforceState(i)}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=G({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let n=t;return n})(),sm=(()=>{let t=class t{constructor(i,o,r){this.ngSwitch=r,r._addCase(),this._view=new gk(i,o)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};t.\u0275fac=function(o){return new(o||t)(f(wi),f(Ie),f(au,9))},t.\u0275dir=G({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let n=t;return n})(),Uy=(()=>{let t=class t{constructor(i,o,r){r._addDefault(new gk(i,o))}};t.\u0275fac=function(o){return new(o||t)(f(wi),f(Ie),f(au,9))},t.\u0275dir=G({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0});let n=t;return n})();var vi=(()=>{let t=class t{constructor(i,o,r){this._ngEl=i,this._differs=o,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(i){this._ngStyle=i,!this._differ&&i&&(this._differ=this._differs.find(i).create())}ngDoCheck(){if(this._differ){let i=this._differ.diff(this._ngStyle);i&&this._applyChanges(i)}}_setStyle(i,o){let[r,s]=i.split("."),a=r.indexOf("-")===-1?void 0:Sh.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${o}${s}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(i){i.forEachRemovedItem(o=>this._setStyle(o.key,null)),i.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),i.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};t.\u0275fac=function(o){return new(o||t)(f(Y),f($A),f(le))},t.\u0275dir=G({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let n=t;return n})(),ft=(()=>{let t=class t{constructor(i){this._viewContainerRef=i,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(i){if(this._shouldRecreateView(i)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(i){return!!i.ngTemplateOutlet||!!i.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(i,o,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,r):!1,get:(i,o,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,r)}})}};t.\u0275fac=function(o){return new(o||t)(f(wi))},t.\u0275dir=G({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Be]});let n=t;return n})();function nge(n,t){return new Je(2100,!1)}var xK=class{createSubscription(t,e){return qV(()=>t.subscribe({next:e,error:i=>{throw i}}))}dispose(t){qV(()=>t.unsubscribe())}},wK=class{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}},sVe=new wK,aVe=new xK,q_=(()=>{let t=class t{constructor(i){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=i}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(i){return this._obj?i!==this._obj?(this._dispose(),this.transform(i)):this._latestValue:(i&&this._subscribe(i),this._latestValue)}_subscribe(i){this._obj=i,this._strategy=this._selectStrategy(i),this._subscription=this._strategy.createSubscription(i,o=>this._updateLatestValue(i,o))}_selectStrategy(i){if(U0(i))return sVe;if(fK(i))return aVe;throw nge(t,i)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(i,o){i===this._obj&&(this._latestValue=o,this._ref.markForCheck())}};t.\u0275fac=function(o){return new(o||t)(f(Le,16))},t.\u0275pipe=Zc({name:"async",type:t,pure:!1,standalone:!0});let n=t;return n})();var oge=(()=>{let t=class t{constructor(i,o="USD"){this._locale=i,this._defaultCurrencyCode=o}transform(i,o=this._defaultCurrencyCode,r="symbol",s,a){if(!lVe(i))return null;a||=this._locale,typeof r=="boolean"&&(r=r?"symbol":"code");let l=o||this._defaultCurrencyCode;r!=="code"&&(r==="symbol"||r==="symbol-narrow"?l=qHe(l,r==="symbol"?"wide":"narrow",a):l=r);try{let c=cVe(i);return eVe(c,a,l,o,s)}catch(c){throw nge(t,c.message)}}};t.\u0275fac=function(o){return new(o||t)(f(us,16),f(L0e,16))},t.\u0275pipe=Zc({name:"currency",type:t,pure:!0,standalone:!0});let n=t;return n})();function lVe(n){return!(n==null||n===""||n!==n)}function cVe(n){if(typeof n=="string"&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if(typeof n!="number")throw new Error(`${n} is not a number`);return n}var We=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ve({type:t}),t.\u0275inj=_e({});let n=t;return n})(),kK="browser",dVe="server";function uVe(n){return n===kK}function LK(n){return n===dVe}var rge=(()=>{let t=class t{};t.\u0275prov=ee({token:t,providedIn:"root",factory:()=>uVe(mt(xh))?new NK(mt(Ir),window):new IK});let n=t;return n})(),NK=class{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let e=hVe(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(i-r[0],o-r[1])}};function hVe(n,t){let e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if(typeof n.createTreeWalker=="function"&&n.body&&typeof n.body.attachShadow=="function"){let i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT),o=i.currentNode;for(;o;){let r=o.shadowRoot;if(r){let s=r.getElementById(t)||r.querySelector(`[name="${t}"]`);if(s)return s}o=i.nextNode()}}return null}var IK=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Fy=class{};gt();gt();_o();xo();var lx=class{},Ek=class{},lu=class n{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` `).forEach(e=>{let i=e.indexOf(":");if(i>0){let o=e.slice(0,i),r=o.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(o,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((e,i)=>{this.setHeaderEntries(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof n?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){let e=new n;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof n?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(t.name,e);let o=(t.op==="a"?this.headers.get(e):void 0)||[];o.push(...i),this.headers.set(e,o);break;case"d":let r=t.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>r.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}setHeaderEntries(t,e){let i=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=t.toLowerCase();this.headers.set(o,i),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var PK=class{encodeKey(t){return sge(t)}encodeValue(t){return sge(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function fVe(n,t){let e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[s,a]=r==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,r)),t.decodeValue(o.slice(r+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}var gVe=/%(\d[a-f0-9])/gi,_Ve={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function sge(n){return encodeURIComponent(n).replace(gVe,(t,e)=>_Ve[e]??t)}function vk(n){return`${n}`}var G0=class n{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new PK,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=fVe(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let i=t.fromObject[e],o=Array.isArray(i)?i.map(vk):[vk(i)];this.map.set(e,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){let e=[];return Object.keys(t).forEach(i=>{let o=t[i];Array.isArray(o)?o.forEach(r=>{e.push({param:i,value:r,op:"a"})}):e.push({param:i,value:o,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let e=new n({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let e=(t.op==="a"?this.map.get(t.param):void 0)||[];e.push(vk(t.value)),this.map.set(t.param,e);break;case"d":if(t.value!==void 0){let i=this.map.get(t.param)||[],o=i.indexOf(vk(t.value));o!==-1&&i.splice(o,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var UK=class{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function vVe(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function age(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function lge(n){return typeof Blob<"u"&&n instanceof Blob}function cge(n){return typeof FormData<"u"&&n instanceof FormData}function EVe(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}var z0=class n{constructor(t,e,i,o){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let r;if(vVe(this.method)||o?(this.body=i!==void 0?i:null,r=o):r=i,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new lu,this.context??=new UK,!this.params)this.params=new G0,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),l=a===-1?"?":au.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((u,h)=>u.set(h,t.setParams[h]),c)),new n(e,i,r,{params:c,headers:l,context:d,reportProgress:a,responseType:o,withCredentials:s})}},B0=function(n){return n[n.Sent=0]="Sent",n[n.UploadProgress=1]="UploadProgress",n[n.ResponseHeader=2]="ResponseHeader",n[n.DownloadProgress=3]="DownloadProgress",n[n.Response=4]="Response",n[n.User=5]="User",n}(B0||{}),cx=class{constructor(t,e=Sk.Ok,i="OK"){this.headers=t.headers||new lu,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},GK=class n extends cx{constructor(t={}){super(t),this.type=B0.ResponseHeader}clone(t={}){return new n({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Gy=class n extends cx{constructor(t={}){super(t),this.type=B0.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new n({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},yk=class extends cx{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Sk=function(n){return n[n.Continue=100]="Continue",n[n.SwitchingProtocols=101]="SwitchingProtocols",n[n.Processing=102]="Processing",n[n.EarlyHints=103]="EarlyHints",n[n.Ok=200]="Ok",n[n.Created=201]="Created",n[n.Accepted=202]="Accepted",n[n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",n[n.NoContent=204]="NoContent",n[n.ResetContent=205]="ResetContent",n[n.PartialContent=206]="PartialContent",n[n.MultiStatus=207]="MultiStatus",n[n.AlreadyReported=208]="AlreadyReported",n[n.ImUsed=226]="ImUsed",n[n.MultipleChoices=300]="MultipleChoices",n[n.MovedPermanently=301]="MovedPermanently",n[n.Found=302]="Found",n[n.SeeOther=303]="SeeOther",n[n.NotModified=304]="NotModified",n[n.UseProxy=305]="UseProxy",n[n.Unused=306]="Unused",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",n[n.BadRequest=400]="BadRequest",n[n.Unauthorized=401]="Unauthorized",n[n.PaymentRequired=402]="PaymentRequired",n[n.Forbidden=403]="Forbidden",n[n.NotFound=404]="NotFound",n[n.MethodNotAllowed=405]="MethodNotAllowed",n[n.NotAcceptable=406]="NotAcceptable",n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",n[n.RequestTimeout=408]="RequestTimeout",n[n.Conflict=409]="Conflict",n[n.Gone=410]="Gone",n[n.LengthRequired=411]="LengthRequired",n[n.PreconditionFailed=412]="PreconditionFailed",n[n.PayloadTooLarge=413]="PayloadTooLarge",n[n.UriTooLong=414]="UriTooLong",n[n.UnsupportedMediaType=415]="UnsupportedMediaType",n[n.RangeNotSatisfiable=416]="RangeNotSatisfiable",n[n.ExpectationFailed=417]="ExpectationFailed",n[n.ImATeapot=418]="ImATeapot",n[n.MisdirectedRequest=421]="MisdirectedRequest",n[n.UnprocessableEntity=422]="UnprocessableEntity",n[n.Locked=423]="Locked",n[n.FailedDependency=424]="FailedDependency",n[n.TooEarly=425]="TooEarly",n[n.UpgradeRequired=426]="UpgradeRequired",n[n.PreconditionRequired=428]="PreconditionRequired",n[n.TooManyRequests=429]="TooManyRequests",n[n.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",n[n.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",n[n.InternalServerError=500]="InternalServerError",n[n.NotImplemented=501]="NotImplemented",n[n.BadGateway=502]="BadGateway",n[n.ServiceUnavailable=503]="ServiceUnavailable",n[n.GatewayTimeout=504]="GatewayTimeout",n[n.HttpVersionNotSupported=505]="HttpVersionNotSupported",n[n.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",n[n.InsufficientStorage=507]="InsufficientStorage",n[n.LoopDetected=508]="LoopDetected",n[n.NotExtended=510]="NotExtended",n[n.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",n}(Sk||{});function FK(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials,transferCache:n.transferCache}}var zK=(()=>{let t=class t{constructor(i){this.handler=i}request(i,o,r={}){let s;if(i instanceof z0)s=i;else{let c;r.headers instanceof lu?c=r.headers:c=new lu(r.headers);let d;r.params&&(r.params instanceof G0?d=r.params:d=new G0({fromObject:r.params})),s=new z0(i,o,r.body!==void 0?r.body:null,{headers:c,context:r.context,params:d,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let a=zt(s).pipe(wl(c=>this.handler.handle(c)));if(i instanceof z0||r.observe==="events")return a;let l=a.pipe(Te(c=>c instanceof Gy));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return l.pipe(He(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(He(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(He(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(He(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(i,o={}){return this.request("DELETE",i,o)}get(i,o={}){return this.request("GET",i,o)}head(i,o={}){return this.request("HEAD",i,o)}jsonp(i,o){return this.request("JSONP",i,{params:new G0().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(i,o={}){return this.request("OPTIONS",i,o)}patch(i,o,r={}){return this.request("PATCH",i,FK(r,o))}post(i,o,r={}){return this.request("POST",i,FK(r,o))}put(i,o,r={}){return this.request("PUT",i,FK(r,o))}};t.\u0275fac=function(o){return new(o||t)(Z(lx))},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})();function pge(n,t){return t(n)}function yVe(n,t){return(e,i)=>t.intercept(e,{handle:o=>n(o,i)})}function SVe(n,t,e){return(i,o)=>Ah(e,()=>t(i,r=>n(r,o)))}var CVe=new at(""),BK=new at(""),DVe=new at(""),bVe=new at("");function AVe(){let n=null;return(t,e)=>{n===null&&(n=(mt(CVe,{optional:!0})??[]).reduceRight(yVe,pge));let i=mt(j_),o=i.add();return n(t,e).pipe(gh(()=>i.remove(o)))}}var dge=(()=>{let t=class t extends lx{constructor(i,o){super(),this.backend=i,this.injector=o,this.chain=null,this.pendingTasks=mt(j_);let r=mt(bVe,{optional:!0});this.backend=r??i}handle(i){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(BK),...this.injector.get(DVe,[])]));this.chain=r.reduceRight((s,a)=>SVe(s,a,this.injector),pge)}let o=this.pendingTasks.add();return this.chain(i,r=>this.backend.handle(r)).pipe(gh(()=>this.pendingTasks.remove(o)))}};t.\u0275fac=function(o){return new(o||t)(Z(Ek),Z(qa))},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})();var xVe=/^\)\]\}',?\n/;function wVe(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}var uge=(()=>{let t=class t{constructor(i){this.xhrFactory=i}handle(i){if(i.method==="JSONP")throw new Je(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?nn(o.\u0275loadImpl()):zt(null)).pipe(Hi(()=>new Mi(s=>{let a=o.build();if(a.open(i.method,i.urlWithParams),i.withCredentials&&(a.withCredentials=!0),i.headers.forEach((C,b)=>a.setRequestHeader(C,b.join(","))),i.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!i.headers.has("Content-Type")){let C=i.detectContentTypeHeader();C!==null&&a.setRequestHeader("Content-Type",C)}if(i.responseType){let C=i.responseType.toLowerCase();a.responseType=C!=="json"?C:"text"}let l=i.serializeBody(),c=null,d=()=>{if(c!==null)return c;let C=a.statusText||"OK",b=new lu(a.getAllResponseHeaders()),x=wVe(a)||i.url;return c=new GK({headers:b,status:a.status,statusText:C,url:x}),c},u=()=>{let{headers:C,status:b,statusText:x,url:R}=d(),M=null;b!==Sk.NoContent&&(M=typeof a.response>"u"?a.responseText:a.response),b===0&&(b=M?Sk.Ok:0);let T=b>=200&&b<300;if(i.responseType==="json"&&typeof M=="string"){let H=M;M=M.replace(xVe,"");try{M=M!==""?JSON.parse(M):null}catch(V){M=H,T&&(T=!1,M={error:V,text:M})}}T?(s.next(new Gy({body:M,headers:C,status:b,statusText:x,url:R||void 0})),s.complete()):s.error(new yk({error:M,headers:C,status:b,statusText:x,url:R||void 0}))},h=C=>{let{url:b}=d(),x=new yk({error:C,status:a.status||0,statusText:a.statusText||"Unknown Error",url:b||void 0});s.error(x)},m=!1,_=C=>{m||(s.next(d()),m=!0);let b={type:B0.DownloadProgress,loaded:C.loaded};C.lengthComputable&&(b.total=C.total),i.responseType==="text"&&a.responseText&&(b.partialText=a.responseText),s.next(b)},E=C=>{let b={type:B0.UploadProgress,loaded:C.loaded};C.lengthComputable&&(b.total=C.total),s.next(b)};return a.addEventListener("load",u),a.addEventListener("error",h),a.addEventListener("timeout",h),a.addEventListener("abort",h),i.reportProgress&&(a.addEventListener("progress",_),l!==null&&a.upload&&a.upload.addEventListener("progress",E)),a.send(l),s.next({type:B0.Sent}),()=>{a.removeEventListener("error",h),a.removeEventListener("abort",h),a.removeEventListener("load",u),a.removeEventListener("timeout",h),i.reportProgress&&(a.removeEventListener("progress",_),l!==null&&a.upload&&a.upload.removeEventListener("progress",E)),a.readyState!==a.DONE&&a.abort()}})))}};t.\u0275fac=function(o){return new(o||t)(Z(Fy))},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})(),mge=new at(""),NVe="XSRF-TOKEN",IVe=new at("",{providedIn:"root",factory:()=>NVe}),RVe="X-XSRF-TOKEN",TVe=new at("",{providedIn:"root",factory:()=>RVe}),Ck=class{},MVe=(()=>{let t=class t{constructor(i,o,r){this.doc=i,this.platform=o,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let i=this.doc.cookie||"";return i!==this.lastCookieString&&(this.parseCount++,this.lastToken=_k(i,this.cookieName),this.lastCookieString=i),this.lastToken}};t.\u0275fac=function(o){return new(o||t)(Z(Ir),Z(xh),Z(IVe))},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})();function OVe(n,t){let e=n.url.toLowerCase();if(!mt(mge)||n.method==="GET"||n.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return t(n);let i=mt(Ck).getToken(),o=mt(TVe);return i!=null&&!n.headers.has(o)&&(n=n.clone({headers:n.headers.set(o,i)})),t(n)}var fge=function(n){return n[n.Interceptors=0]="Interceptors",n[n.LegacyInterceptors=1]="LegacyInterceptors",n[n.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",n[n.NoXsrfProtection=3]="NoXsrfProtection",n[n.JsonpSupport=4]="JsonpSupport",n[n.RequestsMadeViaParent=5]="RequestsMadeViaParent",n[n.Fetch=6]="Fetch",n}(fge||{});function kVe(n,t){return{\u0275kind:n,\u0275providers:t}}function LVe(...n){let t=[zK,uge,dge,{provide:lx,useExisting:dge},{provide:Ek,useExisting:uge},{provide:BK,useValue:OVe,multi:!0},{provide:mge,useValue:!0},{provide:Ck,useClass:MVe}];for(let e of n)t.push(...e.\u0275providers);return WO(t)}var hge=new at("");function FVe(){return kVe(fge.LegacyInterceptors,[{provide:hge,useFactory:AVe},{provide:BK,useExisting:hge,multi:!0}])}var gge=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ve({type:t}),t.\u0275inj=_e({providers:[LVe(FVe())]});let n=t;return n})();var KK=class extends mk{constructor(){super(...arguments),this.supportsDOMEvents=!0}},jK=class n extends KK{static makeCurrent(){Z0e(new n)}onAndCancel(t,e,i){return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=UVe();return e==null?null:GVe(e)}resetBaseElement(){dx=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return _k(document.cookie,t)}},dx=null;function UVe(){return dx=dx||document.querySelector("base"),dx?dx.getAttribute("href"):null}function GVe(n){return new URL(n,document.baseURI).pathname}var WK=class{addToWindow(t){Nr.getAngularTestability=(i,o=!0)=>{let r=t.findTestabilityInTree(i,o);if(r==null)throw new Je(5103,!1);return r},Nr.getAllAngularTestabilities=()=>t.getAllTestabilities(),Nr.getAllAngularRootElements=()=>t.getAllRootElements();let e=i=>{let o=Nr.getAllAngularTestabilities(),r=o.length,s=function(){r--,r==0&&i()};o.forEach(a=>{a.whenStable(s)})};Nr.frameworkStabilizers||(Nr.frameworkStabilizers=[]),Nr.frameworkStabilizers.push(e)}findTestabilityInTree(t,e,i){if(e==null)return null;let o=t.getTestability(e);return o??(i?Rh().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},zVe=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})(),qK=new at(""),Ege=(()=>{let t=class t{constructor(i,o){this._zone=o,this._eventNameToPlugin=new Map,i.forEach(r=>{r.manager=this}),this._plugins=i.slice().reverse()}addEventListener(i,o,r){return this._findPluginFor(o).addEventListener(i,o,r)}getZone(){return this._zone}_findPluginFor(i){let o=this._eventNameToPlugin.get(i);if(o)return o;if(o=this._plugins.find(s=>s.supports(i)),!o)throw new Je(5101,!1);return this._eventNameToPlugin.set(i,o),o}};t.\u0275fac=function(o){return new(o||t)(Z(qK),Z(oe))},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})(),Dk=class{constructor(t){this._doc=t}},HK="ng-app-id",yge=(()=>{let t=class t{constructor(i,o,r,s={}){this.doc=i,this.appId=o,this.nonce=r,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=LK(s),this.resetHostNodes()}addStyles(i){for(let o of i)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(i){for(let o of i)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let i=this.styleNodesInDOM;i&&(i.forEach(o=>o.remove()),i.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(i){this.hostNodes.add(i);for(let o of this.getAllStyles())this.addStyleToHost(i,o)}removeHost(i){this.hostNodes.delete(i)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(i){for(let o of this.hostNodes)this.addStyleToHost(o,i)}onStyleRemoved(i){let o=this.styleRef;o.get(i)?.elements?.forEach(r=>r.remove()),o.delete(i)}collectServerRenderedStyles(){let i=this.doc.head?.querySelectorAll(`style[${HK}="${this.appId}"]`);if(i?.length){let o=new Map;return i.forEach(r=>{r.textContent!=null&&o.set(r.textContent,r)}),o}return null}changeUsageCount(i,o){let r=this.styleRef;if(r.has(i)){let s=r.get(i);return s.usage+=o,s.usage}return r.set(i,{usage:o,elements:[]}),o}getStyleElement(i,o){let r=this.styleNodesInDOM,s=r?.get(o);if(s?.parentNode===i)return r.delete(o),s.removeAttribute(HK),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(HK,this.appId),i.appendChild(a),a}}addStyleToHost(i,o){let r=this.getStyleElement(i,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(r):s.set(o,{elements:[r],usage:1})}resetHostNodes(){let i=this.hostNodes;i.clear(),i.add(this.doc.head)}};t.\u0275fac=function(o){return new(o||t)(Z(Ir),Z(QO),Z(BV,8),Z(xh))},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})(),VK={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},XK=/%COMP%/g,Sge="%COMP%",BVe=`_nghost-${Sge}`,HVe=`_ngcontent-${Sge}`,VVe=!0,KVe=new at("",{providedIn:"root",factory:()=>VVe});function jVe(n){return HVe.replace(XK,n)}function WVe(n){return BVe.replace(XK,n)}function Cge(n,t){return t.map(e=>e.replace(XK,n))}var bk=(()=>{let t=class t{constructor(i,o,r,s,a,l,c,d=null){this.eventManager=i,this.sharedStylesHost=o,this.appId=r,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=LK(l),this.defaultRenderer=new ux(i,a,c,this.platformIsServer)}createRenderer(i,o){if(!i||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Yc.ShadowDom&&(o=Yt(we({},o),{encapsulation:Yc.Emulated}));let r=this.getOrCreateRenderer(i,o);return r instanceof Ak?r.applyToHost(i):r instanceof hx&&r.applyStyles(),r}getOrCreateRenderer(i,o){let r=this.rendererByCompId,s=r.get(o.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(o.encapsulation){case Yc.Emulated:s=new Ak(c,d,o,this.appId,u,a,l,h);break;case Yc.ShadowDom:return new QK(c,d,i,o,a,l,this.nonce,h);default:s=new hx(c,d,o,u,a,l,h);break}r.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(o){return new(o||t)(Z(Ege),Z(yge),Z(QO),Z(KVe),Z(Ir),Z(xh),Z(oe),Z(BV))},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})(),ux=class{constructor(t,e,i,o){this.eventManager=t,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,e){return e?this.doc.createElementNS(VK[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(_ge(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(_ge(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i=typeof t=="string"?this.doc.querySelector(t):t;if(!i)throw new Je(-5104,!1);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,o){if(o){e=o+":"+e;let r=VK[o];r?t.setAttributeNS(r,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){let o=VK[i];o?t.removeAttributeNS(o,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,o){o&(Sh.DashCase|Sh.Important)?t.style.setProperty(e,i,o&Sh.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Sh.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t!=null&&(t[e]=i)}setValue(t,e){t.nodeValue=e}listen(t,e,i){if(typeof t=="string"&&(t=Rh().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(i))}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function _ge(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var QK=class extends ux{constructor(t,e,i,o,r,s,a,l){super(t,r,s,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Cge(o.id,o.styles);for(let d of c){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},hx=class extends ux{constructor(t,e,i,o,r,s,a,l){super(t,r,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?Cge(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ak=class extends hx{constructor(t,e,i,o,r,s,a,l){let c=o+"-"+i.id;super(t,e,i,r,s,a,l,c),this.contentAttr=jVe(c),this.hostAttr=WVe(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}},qVe=(()=>{let t=class t extends Dk{constructor(i){super(i)}supports(i){return!0}addEventListener(i,o,r){return i.addEventListener(o,r,!1),()=>this.removeEventListener(i,o,r)}removeEventListener(i,o,r){return i.removeEventListener(o,r)}};t.\u0275fac=function(o){return new(o||t)(Z(Ir))},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})(),vge=["alt","control","meta","shift"],QVe={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},XVe={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},YVe=(()=>{let t=class t extends Dk{constructor(i){super(i)}supports(i){return t.parseEventName(i)!=null}addEventListener(i,o,r){let s=t.parseEventName(o),a=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Rh().onAndCancel(i,s.domEventName,a))}static parseEventName(i){let o=i.toLowerCase().split("."),r=o.shift();if(o.length===0||!(r==="keydown"||r==="keyup"))return null;let s=t._normalizeKey(o.pop()),a="",l=o.indexOf("code");if(l>-1&&(o.splice(l,1),a="code."),vge.forEach(d=>{let u=o.indexOf(d);u>-1&&(o.splice(u,1),a+=d+".")}),a+=s,o.length!=0||s.length===0)return null;let c={};return c.domEventName=r,c.fullKey=a,c}static matchEventFullKeyCode(i,o){let r=QVe[i.key]||i.key,s="";return o.indexOf("code.")>-1&&(r=i.code,s="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),vge.forEach(a=>{if(a!==r){let l=XVe[a];l(i)&&(s+=a+".")}}),s+=r,s===o)}static eventCallback(i,o,r){return s=>{t.matchEventFullKeyCode(s,i)&&r.runGuarded(()=>o(s))}}static _normalizeKey(i){return i==="esc"?"escape":i}};t.\u0275fac=function(o){return new(o||t)(Z(Ir))},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})();function ZVe(){jK.makeCurrent()}function JVe(){return new Dh}function $Ve(){return ofe(document),document}var eKe=[{provide:xh,useValue:kK},{provide:zV,useValue:ZVe,multi:!0},{provide:Ir,useFactory:$Ve,deps:[]}],Dge=yK(z0e,"browser",eKe),tKe=new at(""),iKe=[{provide:ox,useClass:WK,deps:[]},{provide:vK,useClass:dk,deps:[oe,uk,ox]},{provide:dk,useClass:dk,deps:[oe,uk,ox]}],nKe=[{provide:qO,useValue:"root"},{provide:Dh,useFactory:JVe,deps:[]},{provide:qK,useClass:qVe,multi:!0,deps:[Ir,oe,xh]},{provide:qK,useClass:YVe,multi:!0,deps:[Ir]},bk,yge,Ege,{provide:tm,useExisting:bk},{provide:Fy,useClass:zVe,deps:[]},[]],xk=(()=>{let t=class t{constructor(i){}static withServerTransition(i){return{ngModule:t,providers:[{provide:QO,useValue:i.appId}]}}};t.\u0275fac=function(o){return new(o||t)(Z(tKe,12))},t.\u0275mod=ve({type:t}),t.\u0275inj=_e({providers:[...nKe,...iKe],imports:[We,B0e]});let n=t;return n})();var bge=(()=>{let t=class t{constructor(i){this._doc=i}getTitle(){return this._doc.title}setTitle(i){this._doc.title=i||""}};t.\u0275fac=function(o){return new(o||t)(Z(Ir))},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var px=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:function(o){let r=null;return o?r=new(o||t):r=Z(oKe),r},providedIn:"root"});let n=t;return n})(),oKe=(()=>{let t=class t extends px{constructor(i){super(),this._doc=i}sanitize(i,o){if(o==null)return null;switch(i){case ed.NONE:return o;case ed.HTML:return L0(o,"HTML")?$c(o):jV(this._doc,String(o)).toString();case ed.STYLE:return L0(o,"Style")?$c(o):o;case ed.SCRIPT:if(L0(o,"Script"))return $c(o);throw new Je(5200,!1);case ed.URL:return L0(o,"URL")?$c(o):JO(String(o));case ed.RESOURCE_URL:if(L0(o,"ResourceURL"))return $c(o);throw new Je(5201,!1);default:throw new Je(5202,!1)}}bypassSecurityTrustHtml(i){return Dfe(i)}bypassSecurityTrustStyle(i){return bfe(i)}bypassSecurityTrustScript(i){return Afe(i)}bypassSecurityTrustUrl(i){return xfe(i)}bypassSecurityTrustResourceUrl(i){return wfe(i)}};t.\u0275fac=function(o){return new(o||t)(Z(Ir))},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();gt();gt();_o();xo();var Yi="primary",Nx=Symbol("RouteTitle"),ej=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Ky(n){return new ej(n)}function rKe(n,t,e){let i=e.path.split("/");if(i.length>n.length||e.pathMatch==="full"&&(t.hasChildren()||i.lengthi[r]===o)}else return n===t}function kge(n){return n.length>0?n[n.length-1]:null}function W0(n){return qB(n)?n:U0(n)?nn(Promise.resolve(n)):zt(n)}var aKe={exact:Fge,subset:Pge},Lge={exact:lKe,subset:cKe,ignored:()=>!0};function Age(n,t,e){return aKe[e.paths](n.root,t.root,e.matrixParams)&&Lge[e.queryParams](n.queryParams,t.queryParams)&&!(e.fragment==="exact"&&n.fragment!==t.fragment)}function lKe(n,t){return Th(n,t)}function Fge(n,t,e){if(!X_(n.segments,t.segments)||!Rk(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let i in t.children)if(!n.children[i]||!Fge(n.children[i],t.children[i],e))return!1;return!0}function cKe(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>Oge(n[e],t[e]))}function Pge(n,t,e){return Uge(n,t,t.segments,e)}function Uge(n,t,e,i){if(n.segments.length>e.length){let o=n.segments.slice(0,e.length);return!(!X_(o,e)||t.hasChildren()||!Rk(o,e,i))}else if(n.segments.length===e.length){if(!X_(n.segments,e)||!Rk(n.segments,e,i))return!1;for(let o in t.children)if(!n.children[o]||!Pge(n.children[o],t.children[o],i))return!1;return!0}else{let o=e.slice(0,n.segments.length),r=e.slice(n.segments.length);return!X_(n.segments,o)||!Rk(n.segments,o,i)||!n.children[Yi]?!1:Uge(n.children[Yi],t,r,i)}}function Rk(n,t,e){return t.every((i,o)=>Lge[e](n[o].parameters,i.parameters))}var H0=class{constructor(t=new Kn([],{}),e={},i=null){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=Ky(this.queryParams),this._queryParamMap}toString(){return hKe.serialize(this)}},Kn=class{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Tk(this)}},Q_=class{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=Ky(this.parameters),this._parameterMap}toString(){return zge(this)}};function dKe(n,t){return X_(n,t)&&n.every((e,i)=>Th(e.parameters,t[i].parameters))}function X_(n,t){return n.length!==t.length?!1:n.every((e,i)=>e.path===t[i].path)}function uKe(n,t){let e=[];return Object.entries(n.children).forEach(([i,o])=>{i===Yi&&(e=e.concat(t(o,i)))}),Object.entries(n.children).forEach(([i,o])=>{i!==Yi&&(e=e.concat(t(o,i)))}),e}var Ix=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:()=>new yx,providedIn:"root"});let n=t;return n})(),yx=class{parse(t){let e=new nj(t);return new H0(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${mx(t.root,!0)}`,i=fKe(t.queryParams),o=typeof t.fragment=="string"?`#${pKe(t.fragment)}`:"";return`${e}${i}${o}`}},hKe=new yx;function Tk(n){return n.segments.map(t=>zge(t)).join("/")}function mx(n,t){if(!n.hasChildren())return Tk(n);if(t){let e=n.children[Yi]?mx(n.children[Yi],!1):"",i=[];return Object.entries(n.children).forEach(([o,r])=>{o!==Yi&&i.push(`${o}:${mx(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=uKe(n,(i,o)=>o===Yi?[mx(n.children[Yi],!1)]:[`${o}:${mx(i,!1)}`]);return Object.keys(n.children).length===1&&n.children[Yi]!=null?`${Tk(n)}/${e[0]}`:`${Tk(n)}/(${e.join("//")})`}}function Gge(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nk(n){return Gge(n).replace(/%3B/gi,";")}function pKe(n){return encodeURI(n)}function ij(n){return Gge(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mk(n){return decodeURIComponent(n)}function xge(n){return Mk(n.replace(/\+/g,"%20"))}function zge(n){return`${ij(n.path)}${mKe(n.parameters)}`}function mKe(n){return Object.entries(n).map(([t,e])=>`;${ij(t)}=${ij(e)}`).join("")}function fKe(n){let t=Object.entries(n).map(([e,i])=>Array.isArray(i)?i.map(o=>`${Nk(e)}=${Nk(o)}`).join("&"):`${Nk(e)}=${Nk(i)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}var gKe=/^[^\/()?;#]+/;function YK(n){let t=n.match(gKe);return t?t[0]:""}var _Ke=/^[^\/()?;=#]+/;function vKe(n){let t=n.match(_Ke);return t?t[0]:""}var EKe=/^[^=?&#]+/;function yKe(n){let t=n.match(EKe);return t?t[0]:""}var SKe=/^[^&#]+/;function CKe(n){let t=n.match(SKe);return t?t[0]:""}var nj=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Kn([],{}):new Kn([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Yi]=new Kn(t,e)),i}parseSegment(){let t=YK(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new Je(4009,!1);return this.capture(t),new Q_(Mk(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=vKe(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let o=YK(this.remaining);o&&(i=o,this.capture(i))}t[Mk(e)]=Mk(i)}parseQueryParam(t){let e=yKe(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let s=CKe(this.remaining);s&&(i=s,this.capture(i))}let o=xge(e),r=xge(i);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(r)}else t[o]=r}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=YK(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new Je(4010,!1);let r;i.indexOf(":")>-1?(r=i.slice(0,i.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=Yi);let s=this.parseChildren();e[r]=Object.keys(s).length===1?s[Yi]:new Kn([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new Je(4011,!1)}};function Bge(n){return n.segments.length>0?new Kn([],{[Yi]:n}):n}function Hge(n){let t={};for(let[i,o]of Object.entries(n.children)){let r=Hge(o);if(i===Yi&&r.segments.length===0&&r.hasChildren())for(let[s,a]of Object.entries(r.children))t[s]=a;else(r.segments.length>0||r.hasChildren())&&(t[i]=r)}let e=new Kn(n.segments,t);return DKe(e)}function DKe(n){if(n.numberOfChildren===1&&n.children[Yi]){let t=n.children[Yi];return new Kn(n.segments.concat(t.segments),t.children)}return n}function jy(n){return n instanceof H0}function bKe(n,t,e=null,i=null){let o=Vge(n);return Kge(o,t,e,i)}function Vge(n){let t;function e(r){let s={};for(let l of r.children){let c=e(l);s[l.outlet]=c}let a=new Kn(r.url,s);return r===n&&(t=a),a}let i=e(n.root),o=Bge(i);return t??o}function Kge(n,t,e,i){let o=n;for(;o.parent;)o=o.parent;if(t.length===0)return ZK(o,o,o,e,i);let r=AKe(t);if(r.toRoot())return ZK(o,o,new Kn([],{}),e,i);let s=xKe(r,o,n),a=s.processChildren?_x(s.segmentGroup,s.index,r.commands):Wge(s.segmentGroup,s.index,r.commands);return ZK(o,s.segmentGroup,a,e,i)}function Ok(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Sx(n){return typeof n=="object"&&n!=null&&n.outlets}function ZK(n,t,e,i,o){let r={};i&&Object.entries(i).forEach(([l,c])=>{r[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let s;n===t?s=e:s=jge(n,t,e);let a=Bge(Hge(s));return new H0(a,r,o)}function jge(n,t,e){let i={};return Object.entries(n.children).forEach(([o,r])=>{r===t?i[o]=e:i[o]=jge(r,t,e)}),new Kn(n.segments,i)}var kk=class{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Ok(i[0]))throw new Je(4003,!1);let o=i.find(Sx);if(o&&o!==kge(i))throw new Je(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function AKe(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new kk(!0,0,n);let t=0,e=!1,i=n.reduce((o,r,s)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let a={};return Object.entries(r.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...o,{outlets:a}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:s===0?(r.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,r]},[]);return new kk(e,t,i)}var Hy=class{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}};function xKe(n,t,e){if(n.isAbsolute)return new Hy(t,!0,0);if(!e)return new Hy(t,!1,NaN);if(e.parent===null)return new Hy(e,!0,0);let i=Ok(n.commands[0])?0:1,o=e.segments.length-1+i;return wKe(e,o,n.numberOfDoubleDots)}function wKe(n,t,e){let i=n,o=t,r=e;for(;r>o;){if(r-=o,i=i.parent,!i)throw new Je(4005,!1);o=i.segments.length}return new Hy(i,!1,o-r)}function NKe(n){return Sx(n[0])?n[0].outlets:{[Yi]:n}}function Wge(n,t,e){if(n??=new Kn([],{}),n.segments.length===0&&n.hasChildren())return _x(n,t,e);let i=IKe(n,t,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexr!==Yi)&&n.children[Yi]&&n.numberOfChildren===1&&n.children[Yi].segments.length===0){let r=_x(n.children[Yi],t,e);return new Kn(n.segments,r.children)}return Object.entries(i).forEach(([r,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[r]=Wge(n.children[r],t,s))}),Object.entries(n.children).forEach(([r,s])=>{i[r]===void 0&&(o[r]=s)}),new Kn(n.segments,o)}}function IKe(n,t,e){let i=0,o=t,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let s=n.segments[o],a=e[i];if(Sx(a))break;let l=`${a}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!Nge(l,c,s))return r;i+=2}else{if(!Nge(l,{},s))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}function oj(n,t,e){let i=n.segments.slice(0,t),o=0;for(;o{typeof i=="string"&&(i=[i]),i!==null&&(t[e]=oj(new Kn([],{}),0,i))}),t}function wge(n){let t={};return Object.entries(n).forEach(([e,i])=>t[e]=`${i}`),t}function Nge(n,t,e){return n==e.path&&Th(t,e.parameters)}var vx="imperative",hs=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(hs||{}),nd=class{constructor(t,e){this.id=t,this.url=e}},V0=class extends nd{constructor(t,e,i="imperative",o=null){super(t,e),this.type=hs.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},am=class extends nd{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=hs.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},id=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(id||{}),Lk=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(Lk||{}),K0=class extends nd{constructor(t,e,i,o){super(t,e),this.reason=i,this.code=o,this.type=hs.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},j0=class extends nd{constructor(t,e,i,o){super(t,e),this.reason=i,this.code=o,this.type=hs.NavigationSkipped}},Cx=class extends nd{constructor(t,e,i,o){super(t,e),this.error=i,this.target=o,this.type=hs.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Fk=class extends nd{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=hs.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},rj=class extends nd{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=hs.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sj=class extends nd{constructor(t,e,i,o,r){super(t,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=r,this.type=hs.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},aj=class extends nd{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=hs.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lj=class extends nd{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=hs.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},cj=class{constructor(t){this.route=t,this.type=hs.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},dj=class{constructor(t){this.route=t,this.type=hs.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},uj=class{constructor(t){this.snapshot=t,this.type=hs.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},hj=class{constructor(t){this.snapshot=t,this.type=hs.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},pj=class{constructor(t){this.snapshot=t,this.type=hs.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mj=class{constructor(t){this.snapshot=t,this.type=hs.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pk=class{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=hs.Scroll}toString(){let t=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${t}')`}},Dx=class{},bx=class{constructor(t){this.url=t}};var fj=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Rx,this.attachRef=null}},Rx=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(i,o){let r=this.getOrCreateContext(i);r.outlet=o,this.contexts.set(i,r)}onChildOutletDestroyed(i){let o=this.getContext(i);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let o=this.getContext(i);return o||(o=new fj,this.contexts.set(i,o)),o}getContext(i){return this.contexts.get(i)||null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Uk=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=gj(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){let e=gj(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=_j(t,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return _j(t,this._root).map(e=>e.value)}};function gj(n,t){if(n===t.value)return t;for(let e of t.children){let i=gj(n,e);if(i)return i}return null}function _j(n,t){if(n===t.value)return[t];for(let e of t.children){let i=_j(n,e);if(i.length)return i.unshift(t),i}return[]}var lc=class{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function By(n){let t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}var Gk=class extends Uk{constructor(t,e){super(t),this.snapshot=e,wj(this,t)}toString(){return this.snapshot.toString()}};function qge(n){let t=TKe(n),e=new di([new Q_("",{})]),i=new di({}),o=new di({}),r=new di({}),s=new di(""),a=new Wy(e,i,r,s,o,Yi,n,t.root);return a.snapshot=t.root,new Gk(new lc(a,[]),t)}function TKe(n){let t={},e={},i={},o="",r=new Ax([],t,i,o,e,Yi,n,null,{});return new zk("",new lc(r,[]))}var Wy=class{constructor(t,e,i,o,r,s,a,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=r,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(He(c=>c[Nx]))??zt(void 0),this.url=t,this.params=e,this.queryParams=i,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(He(t=>Ky(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(He(t=>Ky(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function xj(n,t,e="emptyOnly"){let i,{routeConfig:o}=n;return t!==null&&(e==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?i={params:we(we({},t.params),n.params),data:we(we({},t.data),n.data),resolve:we(we(we(we({},n.data),t.data),o?.data),n._resolvedData)}:i={params:we({},n.params),data:we({},n.data),resolve:we(we({},n.data),n._resolvedData??{})},o&&Xge(o)&&(i.resolve[Nx]=o.title),i}var Ax=class{get title(){return this.data?.[Nx]}constructor(t,e,i,o,r,s,a,l,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=o,this.data=r,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ky(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ky(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},zk=class extends Uk{constructor(t,e){super(e),this.url=t,wj(this,e)}toString(){return Qge(this._root)}};function wj(n,t){t.value._routerState=n,t.children.forEach(e=>wj(n,e))}function Qge(n){let t=n.children.length>0?` { ${n.children.map(Qge).join(", ")} } `:"";return`${n.value}${t}`}function JK(n){if(n.snapshot){let t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Th(t.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),Th(t.params,e.params)||n.paramsSubject.next(e.params),sKe(t.url,e.url)||n.urlSubject.next(e.url),Th(t.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function vj(n,t){let e=Th(n.params,t.params)&&dKe(n.url,t.url),i=!n.parent!=!t.parent;return e&&!i&&(!n.parent||vj(n.parent,t.parent))}function Xge(n){return typeof n.title=="string"||n.title===null}var Nj=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Yi,this.activateEvents=new A,this.deactivateEvents=new A,this.attachEvents=new A,this.detachEvents=new A,this.parentContexts=mt(Rx),this.location=mt(wi),this.changeDetector=mt(Le),this.environmentInjector=mt(qa),this.inputBinder=mt(jk,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(i){if(i.name){let{firstChange:o,previousValue:r}=i.name;if(o)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(i){return this.parentContexts.getContext(i)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let i=this.parentContexts.getContext(this.name);i?.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Je(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Je(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Je(4012,!1);this.location.detach();let i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,o){this.activated=i,this._activatedRoute=o,this.location.insert(i.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){let i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,o){if(this.isActivated)throw new Je(4013,!1);this._activatedRoute=i;let r=this.location,a=i.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new Ej(i,l,r.injector);this.activated=r.createComponent(a,{index:r.length,injector:c,environmentInjector:o??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=G({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Be]});let n=t;return n})(),Ej=class{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Wy?this.route:t===Rx?this.childContexts:this.parent.get(t,e)}},jk=new at(""),Ige=(()=>{let t=class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(i){this.unsubscribeFromRouteData(i),this.subscribeToRouteData(i)}unsubscribeFromRouteData(i){this.outletDataSubscriptions.get(i)?.unsubscribe(),this.outletDataSubscriptions.delete(i)}subscribeToRouteData(i){let{activatedRoute:o}=i,r=Ka([o.queryParams,o.params,o.data]).pipe(Hi(([s,a,l],c)=>(l=we(we(we({},s),a),l),c===0?zt(l):Promise.resolve(l)))).subscribe(s=>{if(!i.isActivated||!i.activatedComponentRef||i.activatedRoute!==o||o.component===null){this.unsubscribeFromRouteData(i);return}let a=H0e(o.component);if(!a){this.unsubscribeFromRouteData(i);return}for(let{templateName:l}of a.inputs)i.activatedComponentRef.setInput(l,s[l])});this.outletDataSubscriptions.set(i,r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})();function MKe(n,t,e){let i=xx(n,t._root,e?e._root:void 0);return new Gk(i,t)}function xx(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=t.value;let o=OKe(n,t,e);return new lc(i,o)}else{if(n.shouldAttach(t.value)){let r=n.retrieve(t.value);if(r!==null){let s=r.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>xx(n,a)),s}}let i=kKe(t.value),o=t.children.map(r=>xx(n,r));return new lc(i,o)}}function OKe(n,t,e){return t.children.map(i=>{for(let o of e.children)if(n.shouldReuseRoute(i.value,o.value.snapshot))return xx(n,i,o);return xx(n,i)})}function kKe(n){return new Wy(new di(n.url),new di(n.params),new di(n.queryParams),new di(n.fragment),new di(n.data),n.outlet,n.component,n)}var Yge="ngNavigationCancelingError";function Zge(n,t){let{redirectTo:e,navigationBehaviorOptions:i}=jy(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Jge(!1,id.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function Jge(n,t){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[Yge]=!0,e.cancellationCode=t,e}function LKe(n){return $ge(n)&&jy(n.url)}function $ge(n){return!!n&&n[Yge]}var FKe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=F({type:t,selectors:[["ng-component"]],standalone:!0,features:[w0e],decls:1,vars:0,template:function(o,r){o&1&&w(0,"router-outlet")},dependencies:[Nj],encapsulation:2});let n=t;return n})();function PKe(n,t){return n.providers&&!n._injector&&(n._injector=rk(n.providers,t,`Route: ${n.path}`)),n._injector??t}function Ij(n){let t=n.children&&n.children.map(Ij),e=t?Yt(we({},n),{children:t}):we({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Yi&&(e.component=FKe),e}function Mh(n){return n.outlet||Yi}function UKe(n,t){let e=n.filter(i=>Mh(i)===t);return e.push(...n.filter(i=>Mh(i)!==t)),e}function Tx(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var GKe=(n,t,e,i)=>He(o=>(new yj(t,o.targetRouterState,o.currentRouterState,e,i).activate(n),o)),yj=class{constructor(t,e,i,o,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=r}activate(t){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),JK(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){let o=By(e);t.children.forEach(r=>{let s=r.value.outlet;this.deactivateRoutes(r,o[s],i),delete o[s]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,i)})}deactivateRoutes(t,e,i){let o=t.value,r=e?e.value:null;if(o===r)if(o.component){let s=i.getContext(o.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else r&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let i=e.getContext(t.value.outlet),o=i&&t.value.component?i.children:e,r=By(t);for(let s of Object.values(r))this.deactivateRouteAndItsChildren(s,o);if(i&&i.outlet){let s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let i=e.getContext(t.value.outlet),o=i&&t.value.component?i.children:e,r=By(t);for(let s of Object.values(r))this.deactivateRouteAndItsChildren(s,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(t,e,i){let o=By(e);t.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],i),this.forwardEvent(new mj(r.value.snapshot))}),t.children.length&&this.forwardEvent(new hj(t.value.snapshot))}activateRoutes(t,e,i){let o=t.value,r=e?e.value:null;if(JK(o),o===r)if(o.component){let s=i.getOrCreateContext(o.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(o.component){let s=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),JK(a.route.value),this.activateChildRoutes(t,null,s.children)}else{let a=Tx(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}},Bk=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Vy=class{constructor(t,e){this.component=t,this.route=e}};function zKe(n,t,e){let i=n._root,o=t?t._root:null;return fx(i,o,e,[i.value])}function BKe(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function Qy(n,t){let e=Symbol(),i=t.get(n,e);return i===e?typeof n=="function"&&!tme(n)?n:t.get(n):i}function fx(n,t,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=By(t);return n.children.forEach(s=>{HKe(s,r[s.value.outlet],e,i.concat([s.value]),o),delete r[s.value.outlet]}),Object.entries(r).forEach(([s,a])=>Ex(a,e.getContext(s),o)),o}function HKe(n,t,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){let l=VKe(s,r,r.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Bk(i)):(r.data=s.data,r._resolvedData=s._resolvedData),r.component?fx(n,t,a?a.children:null,i,o):fx(n,t,e,i,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Vy(a.outlet.component,s))}else s&&Ex(t,a,o),o.canActivateChecks.push(new Bk(i)),r.component?fx(n,null,a?a.children:null,i,o):fx(n,null,e,i,o);return o}function VKe(n,t,e){if(typeof e=="function")return e(n,t);switch(e){case"pathParamsChange":return!X_(n.url,t.url);case"pathParamsOrQueryParamsChange":return!X_(n.url,t.url)||!Th(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!vj(n,t)||!Th(n.queryParams,t.queryParams);case"paramsChange":default:return!vj(n,t)}}function Ex(n,t,e){let i=By(n),o=n.value;Object.entries(i).forEach(([r,s])=>{o.component?t?Ex(s,t.children.getContext(r),e):Ex(s,null,e):Ex(s,t,e)}),o.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new Vy(t.outlet.component,o)):e.canDeactivateChecks.push(new Vy(null,o)):e.canDeactivateChecks.push(new Vy(null,o))}function Mx(n){return typeof n=="function"}function KKe(n){return typeof n=="boolean"}function jKe(n){return n&&Mx(n.canLoad)}function WKe(n){return n&&Mx(n.canActivate)}function qKe(n){return n&&Mx(n.canActivateChild)}function QKe(n){return n&&Mx(n.canDeactivate)}function XKe(n){return n&&Mx(n.canMatch)}function e1e(n){return n instanceof Zp||n?.name==="EmptyError"}var Ik=Symbol("INITIAL_VALUE");function qy(){return Hi(n=>Ka(n.map(t=>t.pipe(vt(1),dy(Ik)))).pipe(He(t=>{for(let e of t)if(e!==!0){if(e===Ik)return Ik;if(e===!1||e instanceof H0)return e}return!0}),Te(t=>t!==Ik),vt(1)))}function YKe(n,t){return jo(e=>{let{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:s}}=e;return s.length===0&&r.length===0?zt(Yt(we({},e),{guardsResult:!0})):ZKe(s,i,o,n).pipe(jo(a=>a&&KKe(a)?JKe(i,r,n,t):zt(a)),He(a=>Yt(we({},e),{guardsResult:a})))})}function ZKe(n,t,e,i){return nn(n).pipe(jo(o=>nje(o.component,o.route,e,t,i)),_h(o=>o!==!0,!0))}function JKe(n,t,e,i){return nn(t).pipe(wl(o=>x0(eje(o.route.parent,i),$Ke(o.route,i),ije(n,o.path,e),tje(n,o.route,e))),_h(o=>o!==!0,!0))}function $Ke(n,t){return n!==null&&t&&t(new pj(n)),zt(!0)}function eje(n,t){return n!==null&&t&&t(new uj(n)),zt(!0)}function tje(n,t,e){let i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||i.length===0)return zt(!0);let o=i.map(r=>QM(()=>{let s=Tx(t)??e,a=Qy(r,s),l=WKe(a)?a.canActivate(t,n):Ah(s,()=>a(t,n));return W0(l).pipe(_h())}));return zt(o).pipe(qy())}function ije(n,t,e){let i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(s=>BKe(s)).filter(s=>s!==null).map(s=>QM(()=>{let a=s.guards.map(l=>{let c=Tx(s.node)??e,d=Qy(l,c),u=qKe(d)?d.canActivateChild(i,n):Ah(c,()=>d(i,n));return W0(u).pipe(_h())});return zt(a).pipe(qy())}));return zt(r).pipe(qy())}function nje(n,t,e,i,o){let r=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!r||r.length===0)return zt(!0);let s=r.map(a=>{let l=Tx(t)??o,c=Qy(a,l),d=QKe(c)?c.canDeactivate(n,t,e,i):Ah(l,()=>c(n,t,e,i));return W0(d).pipe(_h())});return zt(s).pipe(qy())}function oje(n,t,e,i){let o=t.canLoad;if(o===void 0||o.length===0)return zt(!0);let r=o.map(s=>{let a=Qy(s,n),l=jKe(a)?a.canLoad(t,e):Ah(n,()=>a(t,e));return W0(l)});return zt(r).pipe(qy(),t1e(i))}function t1e(n){return xB(Tt(t=>{if(jy(t))throw Zge(n,t)}),He(t=>t===!0))}function rje(n,t,e,i){let o=t.canMatch;if(!o||o.length===0)return zt(!0);let r=o.map(s=>{let a=Qy(s,n),l=XKe(a)?a.canMatch(t,e):Ah(n,()=>a(t,e));return W0(l)});return zt(r).pipe(qy(),t1e(i))}var wx=class{constructor(t){this.segmentGroup=t||null}},Hk=class extends Error{constructor(t){super(),this.urlTree=t}};function zy(n){return ry(new wx(n))}function sje(n){return ry(new Je(4e3,!1))}function aje(n){return ry(Jge(!1,id.GuardRejected))}var Sj=class{constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),o.numberOfChildren===0)return zt(i);if(o.numberOfChildren>1||!o.children[Yi])return sje(t.redirectTo);o=o.children[Yi]}}applyRedirectCommands(t,e,i){let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i);if(e.startsWith("/"))throw new Hk(o);return o}applyRedirectCreateUrlTree(t,e,i,o){let r=this.createSegmentGroup(t,e.root,i,o);return new H0(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let i={};return Object.entries(t).forEach(([o,r])=>{if(typeof r=="string"&&r.startsWith(":")){let a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,o){let r=this.createSegments(t,e.segments,i,o),s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,i,o)}),new Kn(r,s)}createSegments(t,e,i,o){return e.map(r=>r.path.startsWith(":")?this.findPosParam(t,r,o):this.findOrReturn(r,i))}findPosParam(t,e,i){let o=i[e.path.substring(1)];if(!o)throw new Je(4001,!1);return o}findOrReturn(t,e){let i=0;for(let o of e){if(o.path===t.path)return e.splice(i),o;i++}return t}},Cj={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function lje(n,t,e,i,o){let r=Rj(n,t,e);return r.matched?(i=PKe(t,i),rje(i,t,e,o).pipe(He(s=>s===!0?r:we({},Cj)))):zt(r)}function Rj(n,t,e){if(t.path==="**")return cje(e);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||e.length>0)?we({},Cj):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(t.matcher||rKe)(e,n,t);if(!o)return we({},Cj);let r={};Object.entries(o.posParams??{}).forEach(([a,l])=>{r[a]=l.path});let s=o.consumed.length>0?we(we({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function cje(n){return{matched:!0,parameters:n.length>0?kge(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function Rge(n,t,e,i){return e.length>0&&hje(n,e,i)?{segmentGroup:new Kn(t,uje(i,new Kn(e,n.children))),slicedSegments:[]}:e.length===0&&pje(n,e,i)?{segmentGroup:new Kn(n.segments,dje(n,e,i,n.children)),slicedSegments:e}:{segmentGroup:new Kn(n.segments,n.children),slicedSegments:e}}function dje(n,t,e,i){let o={};for(let r of e)if(Wk(n,t,r)&&!i[Mh(r)]){let s=new Kn([],{});o[Mh(r)]=s}return we(we({},i),o)}function uje(n,t){let e={};e[Yi]=t;for(let i of n)if(i.path===""&&Mh(i)!==Yi){let o=new Kn([],{});e[Mh(i)]=o}return e}function hje(n,t,e){return e.some(i=>Wk(n,t,i)&&Mh(i)!==Yi)}function pje(n,t,e){return e.some(i=>Wk(n,t,i))}function Wk(n,t,e){return(n.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function mje(n,t,e,i){return Mh(n)!==i&&(i===Yi||!Wk(t,e,n))?!1:Rj(t,n,e).matched}function fje(n,t,e){return t.length===0&&!n.children[e]}var Dj=class{};function gje(n,t,e,i,o,r,s="emptyOnly"){return new bj(n,t,e,i,o,s,r).recognize()}var _je=31,bj=class{constructor(t,e,i,o,r,s,a){this.injector=t,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Sj(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new Je(4002,`'${t.segmentGroup}'`)}recognize(){let t=Rge(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(He(e=>{let i=new Ax([],Object.freeze({}),Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,{},Yi,this.rootComponentType,null,{}),o=new lc(i,e),r=new zk("",o),s=bKe(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(r._root,null),{state:r,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,Yi).pipe(nc(i=>{if(i instanceof Hk)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof wx?this.noMatchError(i):i}))}inheritParamsAndData(t,e){let i=t.value,o=xj(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),t.children.forEach(r=>this.inheritParamsAndData(r,i))}processSegmentGroup(t,e,i,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,o,!0).pipe(He(r=>r instanceof lc?[r]:[]))}processChildren(t,e,i){let o=[];for(let r of Object.keys(i.children))r==="primary"?o.unshift(r):o.push(r);return nn(o).pipe(wl(r=>{let s=i.children[r],a=UKe(e,r);return this.processSegmentGroup(t,a,s,r)}),DA((r,s)=>(r.push(...s),r)),N0(null),nH(),jo(r=>{if(r===null)return zy(i);let s=i1e(r);return vje(s),zt(s)}))}processSegment(t,e,i,o,r,s){return nn(e).pipe(wl(a=>this.processSegmentAgainstRoute(a._injector??t,e,a,i,o,r,s).pipe(nc(l=>{if(l instanceof wx)return zt(null);throw l}))),_h(a=>!!a),nc(a=>{if(e1e(a))return fje(i,o,r)?zt(new Dj):zy(i);throw a}))}processSegmentAgainstRoute(t,e,i,o,r,s,a){return mje(i,o,r,s)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,i,r,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,e,i,r,s):zy(o):zy(o)}expandSegmentAgainstRouteUsingRedirect(t,e,i,o,r,s){let{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:d}=Rj(e,o,r);if(!a)return zy(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>_je&&(this.allowRedirects=!1));let u=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,u).pipe(jo(h=>this.processSegment(t,i,e,h.concat(d),s,!1)))}matchSegmentAgainstRoute(t,e,i,o,r){let s=lje(e,i,o,t,this.urlSerializer);return i.path==="**"&&(e.children={}),s.pipe(Hi(a=>a.matched?(t=i._injector??t,this.getChildConfig(t,i,o).pipe(Hi(({routes:l})=>{let c=i._loadedInjector??t,{consumedSegments:d,remainingSegments:u,parameters:h}=a,m=new Ax(d,h,Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,yje(i),Mh(i),i.component??i._loadedComponent??null,i,Sje(i)),{segmentGroup:_,slicedSegments:E}=Rge(e,d,u,l);if(E.length===0&&_.hasChildren())return this.processChildren(c,l,_).pipe(He(b=>b===null?null:new lc(m,b)));if(l.length===0&&E.length===0)return zt(new lc(m,[]));let C=Mh(i)===r;return this.processSegment(c,l,_,E,C?Yi:r,!0).pipe(He(b=>new lc(m,b instanceof lc?[b]:[])))}))):zy(e)))}getChildConfig(t,e,i){return e.children?zt({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?zt({routes:e._loadedRoutes,injector:e._loadedInjector}):oje(t,e,i,this.urlSerializer).pipe(jo(o=>o?this.configLoader.loadChildren(t,e).pipe(Tt(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):aje(e))):zt({routes:[],injector:t})}};function vje(n){n.sort((t,e)=>t.value.outlet===Yi?-1:e.value.outlet===Yi?1:t.value.outlet.localeCompare(e.value.outlet))}function Eje(n){let t=n.value.routeConfig;return t&&t.path===""}function i1e(n){let t=[],e=new Set;for(let i of n){if(!Eje(i)){t.push(i);continue}let o=t.find(r=>i.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...i.children),e.add(o)):t.push(i)}for(let i of e){let o=i1e(i.children);t.push(new lc(i.value,o))}return t.filter(i=>!e.has(i))}function yje(n){return n.data||{}}function Sje(n){return n.resolve||{}}function Cje(n,t,e,i,o,r){return jo(s=>gje(n,t,e,i,s.extractedUrl,o,r).pipe(He(({state:a,tree:l})=>Yt(we({},s),{targetSnapshot:a,urlAfterRedirects:l}))))}function Dje(n,t){return jo(e=>{let{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return zt(e);let r=new Set(o.map(l=>l.route)),s=new Set;for(let l of r)if(!s.has(l))for(let c of n1e(l))s.add(c);let a=0;return nn(s).pipe(wl(l=>r.has(l)?bje(l,i,n,t):(l.data=xj(l,l.parent,n).resolve,zt(void 0))),Tt(()=>a++),cy(1),jo(l=>a===s.size?zt(e):Ur))})}function n1e(n){let t=n.children.map(e=>n1e(e)).flat();return[n,...t]}function bje(n,t,e,i){let o=n.routeConfig,r=n._resolve;return o?.title!==void 0&&!Xge(o)&&(r[Nx]=o.title),Aje(r,n,t,i).pipe(He(s=>(n._resolvedData=s,n.data=xj(n,n.parent,e).resolve,null)))}function Aje(n,t,e,i){let o=tj(n);if(o.length===0)return zt({});let r={};return nn(o).pipe(jo(s=>xje(n[s],t,e,i).pipe(_h(),Tt(a=>{r[s]=a}))),cy(1),SA(r),nc(s=>e1e(s)?Ur:ry(s)))}function xje(n,t,e,i){let o=Tx(t)??i,r=Qy(n,o),s=r.resolve?r.resolve(t,e):Ah(o,()=>r(t,e));return W0(s)}function $K(n){return Hi(t=>{let e=n(t);return e?nn(e).pipe(He(()=>t)):zt(t)})}var o1e=(()=>{let t=class t{buildTitle(i){let o,r=i.root;for(;r!==void 0;)o=this.getResolvedTitleForRoute(r)??o,r=r.children.find(s=>s.outlet===Yi);return o}getResolvedTitleForRoute(i){return i.data[Nx]}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:()=>mt(wje),providedIn:"root"});let n=t;return n})(),wje=(()=>{let t=class t extends o1e{constructor(i){super(),this.title=i}updateTitle(i){let o=this.buildTitle(i);o!==void 0&&this.title.setTitle(o)}};t.\u0275fac=function(o){return new(o||t)(Z(bge))},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ox=new at("",{providedIn:"root",factory:()=>({})}),Vk=new at(""),Tj=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=mt(ck)}loadComponent(i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return zt(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let o=W0(i.loadComponent()).pipe(He(r1e),Tt(s=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=s}),gh(()=>{this.componentLoaders.delete(i)})),r=new XE(o,()=>new rt).pipe(QE());return this.componentLoaders.set(i,r),r}loadChildren(i,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return zt({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=Nje(o,this.compiler,i,this.onLoadEndListener).pipe(gh(()=>{this.childrenLoaders.delete(o)})),a=new XE(s,()=>new rt).pipe(QE());return this.childrenLoaders.set(o,a),a}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Nje(n,t,e,i){return W0(n.loadChildren()).pipe(He(r1e),jo(o=>o instanceof HA||Array.isArray(o)?zt(o):nn(t.compileModuleAsync(o))),He(o=>{i&&i(n);let r,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(r=o.create(e).injector,s=r.get(Vk,[],{optional:!0,self:!0}).flat()),{routes:s.map(Ij),injector:r}}))}function Ije(n){return n&&typeof n=="object"&&"default"in n}function r1e(n){return Ije(n)?n.default:n}var Mj=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:()=>mt(Rje),providedIn:"root"});let n=t;return n})(),Rje=(()=>{let t=class t{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,o){return i}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),s1e=new at(""),a1e=new at("");function Tje(n,t,e){let i=n.get(a1e),o=n.get(Ir);return n.get(oe).runOutsideAngular(()=>{if(!o.startViewTransition||i.skipNextTransition)return i.skipNextTransition=!1,Promise.resolve();let r,s=new Promise(c=>{r=c}),a=o.startViewTransition(()=>(r(),Mje(n))),{onViewTransitionCreated:l}=i;return l&&Ah(n,()=>l({transition:a,from:t,to:e})),s})}function Mje(n){return new Promise(t=>{rK(t,{injector:n})})}var Oj=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new rt,this.transitionAbortSubject=new rt,this.configLoader=mt(Tj),this.environmentInjector=mt(qa),this.urlSerializer=mt(Ix),this.rootContexts=mt(Rx),this.location=mt(Py),this.inputBindingEnabled=mt(jk,{optional:!0})!==null,this.titleStrategy=mt(o1e),this.options=mt(Ox,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=mt(Mj),this.createViewTransition=mt(s1e,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>zt(void 0),this.rootComponentType=null;let i=r=>this.events.next(new cj(r)),o=r=>this.events.next(new dj(r));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=i}complete(){this.transitions?.complete()}handleNavigationRequest(i){let o=++this.navigationId;this.transitions?.next(Yt(we(we({},this.transitions.value),i),{id:o}))}setupNavigations(i,o,r){return this.transitions=new di({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:vx,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Te(s=>s.id!==0),He(s=>Yt(we({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),Hi(s=>{this.currentTransition=s;let a=!1,l=!1;return zt(s).pipe(Tt(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?Yt(we({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Hi(c=>{let d=!i.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=c.extras.onSameUrlNavigation??i.onSameUrlNavigation;if(!d&&u!=="reload"){let h="";return this.events.next(new j0(c.id,this.urlSerializer.serialize(c.rawUrl),h,Lk.IgnoredSameUrlNavigation)),c.resolve(null),Ur}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return zt(c).pipe(Hi(h=>{let m=this.transitions?.getValue();return this.events.next(new V0(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),m!==this.transitions?.getValue()?Ur:Promise.resolve(h)}),Cje(this.environmentInjector,this.configLoader,this.rootComponentType,i.config,this.urlSerializer,this.paramsInheritanceStrategy),Tt(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=Yt(we({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let m=new Fk(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(m)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:m,source:_,restoredState:E,extras:C}=c,b=new V0(h,this.urlSerializer.serialize(m),_,E);this.events.next(b);let x=qge(this.rootComponentType).snapshot;return this.currentTransition=s=Yt(we({},c),{targetSnapshot:x,urlAfterRedirects:m,extras:Yt(we({},C),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,zt(s)}else{let h="";return this.events.next(new j0(c.id,this.urlSerializer.serialize(c.extractedUrl),h,Lk.IgnoredByUrlHandlingStrategy)),c.resolve(null),Ur}}),Tt(c=>{let d=new rj(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),He(c=>(this.currentTransition=s=Yt(we({},c),{guards:zKe(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),YKe(this.environmentInjector,c=>this.events.next(c)),Tt(c=>{if(s.guardsResult=c.guardsResult,jy(c.guardsResult))throw Zge(this.urlSerializer,c.guardsResult);let d=new sj(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(d)}),Te(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",id.GuardRejected),!1)),$K(c=>{if(c.guards.canActivateChecks.length)return zt(c).pipe(Tt(d=>{let u=new aj(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),Hi(d=>{let u=!1;return zt(d).pipe(Dje(this.paramsInheritanceStrategy,this.environmentInjector),Tt({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",id.NoDataFromResolver)}}))}),Tt(d=>{let u=new lj(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),$K(c=>{let d=u=>{let h=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(u.routeConfig).pipe(Tt(m=>{u.component=m}),He(()=>{})));for(let m of u.children)h.push(...d(m));return h};return Ka(d(c.targetSnapshot.root)).pipe(N0(null),vt(1))}),$K(()=>this.afterPreactivation()),Hi(()=>{let{currentSnapshot:c,targetSnapshot:d}=s,u=this.createViewTransition?.(this.environmentInjector,c.root,d.root);return u?nn(u).pipe(He(()=>s)):zt(s)}),He(c=>{let d=MKe(i.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=Yt(we({},c),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,s}),Tt(()=>{this.events.next(new Dx)}),GKe(this.rootContexts,i.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),vt(1),Tt({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new am(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Bn(this.transitionAbortSubject.pipe(Tt(c=>{throw c}))),gh(()=>{!a&&!l&&this.cancelNavigationTransition(s,"",id.SupersededByNewNavigation),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),nc(c=>{if(l=!0,$ge(c))this.events.next(new K0(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),LKe(c)?this.events.next(new bx(c.url)):s.resolve(!1);else{this.events.next(new Cx(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(i.errorHandler(c))}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Ur}))}))}cancelNavigationTransition(i,o,r){let s=new K0(i.id,this.urlSerializer.serialize(i.extractedUrl),o,r);this.events.next(s),i.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Oje(n){return n!==vx}var kje=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:()=>mt(Lje),providedIn:"root"});let n=t;return n})(),Aj=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},Lje=(()=>{let t=class t extends Aj{};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=_i(t)))(r||t)}})(),t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),l1e=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:()=>mt(Fje),providedIn:"root"});let n=t;return n})(),Fje=(()=>{let t=class t extends l1e{constructor(){super(...arguments),this.location=mt(Py),this.urlSerializer=mt(Ix),this.options=mt(Ox,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=mt(Mj),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new H0,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=qge(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(i){return this.location.subscribe(o=>{o.type==="popstate"&&i(o.url,o.state)})}handleRouterEvent(i,o){if(i instanceof V0)this.stateMemento=this.createStateMemento();else if(i instanceof j0)this.rawUrlTree=o.initialUrl;else if(i instanceof Fk){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(r,o)}}else i instanceof Dx?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o))):i instanceof K0&&(i.code===id.GuardRejected||i.code===id.NoDataFromResolver)?this.restoreHistory(o):i instanceof Cx?this.restoreHistory(o,!0):i instanceof am&&(this.lastSuccessfulId=i.id,this.currentPageId=this.browserPageId)}setBrowserUrl(i,o){let r=this.urlSerializer.serialize(i);if(this.location.isCurrentPathEqualTo(r)||o.extras.replaceUrl){let s=this.browserPageId,a=we(we({},o.extras.state),this.generateNgRouterState(o.id,s));this.location.replaceState(r,"",a)}else{let s=we(we({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(r,"",s)}}restoreHistory(i,o=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,s=this.currentPageId-r;s!==0?this.location.historyGo(s):this.currentUrlTree===i.finalUrl&&s===0&&(this.resetState(i),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(i,o){return this.canceledNavigationResolution==="computed"?{navigationId:i,\u0275routerPageId:o}:{navigationId:i}}};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=_i(t)))(r||t)}})(),t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),gx=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(gx||{});function c1e(n,t){n.events.pipe(Te(e=>e instanceof am||e instanceof K0||e instanceof Cx||e instanceof j0),He(e=>e instanceof am||e instanceof j0?gx.COMPLETE:(e instanceof K0?e.code===id.Redirect||e.code===id.SupersededByNewNavigation:!1)?gx.REDIRECTING:gx.FAILED),Te(e=>e!==gx.REDIRECTING),vt(1)).subscribe(()=>{t()})}function Pje(n){throw n}var Uje={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gje={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},lm=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=mt(lk),this.stateManager=mt(l1e),this.options=mt(Ox,{optional:!0})||{},this.pendingTasks=mt(j_),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=mt(Oj),this.urlSerializer=mt(Ix),this.location=mt(Py),this.urlHandlingStrategy=mt(Mj),this._events=new rt,this.errorHandler=this.options.errorHandler||Pje,this.navigated=!1,this.routeReuseStrategy=mt(kje),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=mt(Vk,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!mt(jk,{optional:!0}),this.eventsSubscription=new ke,this.isNgZoneEnabled=mt(oe)instanceof oe&&oe.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(o=>{try{let r=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(r!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof K0&&o.code!==id.Redirect&&o.code!==id.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof am)this.navigated=!0;else if(o instanceof bx){let a=this.urlHandlingStrategy.merge(o.url,r.currentRawUrl),l={info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||Oje(r.source)};this.scheduleNavigation(a,vx,null,l,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}Bje(o)&&this._events.next(o)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),vx,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",o)},0)})}navigateToSyncWithBrowser(i,o,r){let s={replaceUrl:!0},a=r?.navigationId?r:null;if(r){let c=we({},r);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let l=this.parseUrl(i);this.scheduleNavigation(l,o,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(Ij),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,o={}){let{relativeTo:r,queryParams:s,fragment:a,queryParamsHandling:l,preserveFragment:c}=o,d=c?this.currentUrlTree.fragment:a,u=null;switch(l){case"merge":u=we(we({},this.currentUrlTree.queryParams),s);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}u!==null&&(u=this.removeEmptyProps(u));let h;try{let m=r?r.snapshot:this.routerState.snapshot.root;h=Vge(m)}catch{(typeof i[0]!="string"||!i[0].startsWith("/"))&&(i=[]),h=this.currentUrlTree.root}return Kge(h,i,u,d??null)}navigateByUrl(i,o={skipLocationChange:!1}){let r=jy(i)?i:this.parseUrl(i),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,vx,null,o)}navigate(i,o={skipLocationChange:!1}){return zje(i),this.navigateByUrl(this.createUrlTree(i,o),o)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,o){let r;if(o===!0?r=we({},Uje):o===!1?r=we({},Gje):r=o,jy(i))return Age(this.currentUrlTree,i,r);let s=this.parseUrl(i);return Age(this.currentUrlTree,s,r)}removeEmptyProps(i){return Object.entries(i).reduce((o,[r,s])=>(s!=null&&(o[r]=s),o),{})}scheduleNavigation(i,o,r,s,a){if(this.disposed)return Promise.resolve(!1);let l,c,d;a?(l=a.resolve,c=a.reject,d=a.promise):d=new Promise((h,m)=>{l=h,c=m});let u=this.pendingTasks.add();return c1e(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:s,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(h=>Promise.reject(h))}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function zje(n){for(let t=0;t{let t=class t{constructor(i,o,r,s,a){this.router=i,this.injector=r,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Te(i=>i instanceof am),wl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(i,o){let r=[];for(let s of o){s.providers&&!s._injector&&(s._injector=rk(s.providers,i,`Route: ${s.path}`));let a=s._injector??i,l=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&r.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&r.push(this.processRoutes(l,s.children??s._loadedRoutes))}return nn(r).pipe(A0())}preloadConfig(i,o){return this.preloadingStrategy.preload(o,()=>{let r;o.loadChildren&&o.canLoad===void 0?r=this.loader.loadChildren(i,o):r=zt(null);let s=r.pipe(jo(a=>a===null?zt(void 0):(o._loadedRoutes=a.routes,o._loadedInjector=a.injector,this.processRoutes(a.injector??i,a.routes))));if(o.loadComponent&&!o._loadedComponent){let a=this.loader.loadComponent(o);return nn([s,a]).pipe(A0())}else return s})}};t.\u0275fac=function(o){return new(o||t)(Z(lm),Z(ck),Z(qa),Z(Kk),Z(Tj))},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),d1e=new at(""),Vje=(()=>{let t=class t{constructor(i,o,r,s,a={}){this.urlSerializer=i,this.transitions=o,this.viewportScroller=r,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof V0?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=i.navigationTrigger,this.restoredId=i.restoredState?i.restoredState.navigationId:0):i instanceof am?(this.lastId=i.id,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.urlAfterRedirects).fragment)):i instanceof j0&&i.code===Lk.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(i,this.urlSerializer.parse(i.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(i=>{i instanceof Pk&&(i.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(i.position):i.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(i.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(i,o){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Pk(i,this.lastSource==="popstate"?this.store[this.restoredId]:null,o))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};t.\u0275fac=function(o){wh()},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})();function Kje(n){return n.routerState.root}function kx(n,t){return{\u0275kind:n,\u0275providers:t}}function jje(){let n=mt(fn);return t=>{let e=n.get(su);if(t!==e.components[0])return;let i=n.get(lm),o=n.get(u1e);n.get(kj)===1&&i.initialNavigation(),n.get(h1e,null,on.Optional)?.setUpPreloading(),n.get(d1e,null,on.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var u1e=new at("",{factory:()=>new rt}),kj=new at("",{providedIn:"root",factory:()=>1});function Wje(){return kx(2,[{provide:kj,useValue:0},{provide:hk,multi:!0,deps:[fn],useFactory:t=>{let e=t.get(J0e,Promise.resolve());return()=>e.then(()=>new Promise(i=>{let o=t.get(lm),r=t.get(u1e);c1e(o,()=>{i(!0)}),t.get(Oj).afterPreactivation=()=>(i(!0),r.closed?zt(void 0):r),o.initialNavigation()}))}}])}function qje(){return kx(3,[{provide:hk,multi:!0,useFactory:()=>{let t=mt(lm);return()=>{t.setUpLocationChangeListener()}}},{provide:kj,useValue:2}])}var h1e=new at("");function Qje(n){return kx(0,[{provide:h1e,useExisting:Hje},{provide:Kk,useExisting:n}])}function Xje(){return kx(8,[Ige,{provide:jk,useExisting:Ige}])}function Yje(n){let t=[{provide:s1e,useValue:Tje},{provide:a1e,useValue:we({skipNextTransition:!!n?.skipInitialTransition},n)}];return kx(9,t)}var Tge=new at("ROUTER_FORROOT_GUARD"),Zje=[Py,{provide:Ix,useClass:yx},lm,Rx,{provide:Wy,useFactory:Kje,deps:[lm]},Tj,[]],p1e=(()=>{let t=class t{constructor(i){}static forRoot(i,o){return{ngModule:t,providers:[Zje,[],{provide:Vk,multi:!0,useValue:i},{provide:Tge,useFactory:tWe,deps:[[lm,new QA,new jO]]},{provide:Ox,useValue:o||{}},o?.useHash?$je():eWe(),Jje(),o?.preloadingStrategy?Qje(o.preloadingStrategy).\u0275providers:[],o?.initialNavigation?iWe(o):[],o?.bindToComponentInputs?Xje().\u0275providers:[],o?.enableViewTransitions?Yje().\u0275providers:[],nWe()]}}static forChild(i){return{ngModule:t,providers:[{provide:Vk,multi:!0,useValue:i}]}}};t.\u0275fac=function(o){return new(o||t)(Z(Tge,8))},t.\u0275mod=ve({type:t}),t.\u0275inj=_e({});let n=t;return n})();function Jje(){return{provide:d1e,useFactory:()=>{let n=mt(rge),t=mt(oe),e=mt(Ox),i=mt(Oj),o=mt(Ix);return e.scrollOffset&&n.setOffset(e.scrollOffset),new Vje(o,i,n,t,e)}}}function $je(){return{provide:W_,useClass:ege}}function eWe(){return{provide:W_,useClass:OK}}function tWe(n){return"guarded"}function iWe(n){return[n.initialNavigation==="disabled"?qje().\u0275providers:[],n.initialNavigation==="enabledBlocking"?Wje().\u0275providers:[]]}var Mge=new at("");function nWe(){return[{provide:Mge,useFactory:jje},{provide:pk,multi:!0,useExisting:Mge}]}gt();gt();gt();gt();gt();var zi=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(zi||{}),cc="*";function od(n,t){return{type:zi.Trigger,name:n,definitions:t,options:{}}}function Pi(n,t=null){return{type:zi.Animate,styles:t,timings:n}}function Xy(n,t=null){return{type:zi.Sequence,steps:n,options:t}}function lt(n){return{type:zi.Style,styles:n,offset:null}}function dc(n,t,e){return{type:zi.State,name:n,styles:t,options:e}}function Uj(n){return{type:zi.Keyframes,steps:n}}function ts(n,t,e=null){return{type:zi.Transition,expr:n,animation:t,options:e}}function Gj(n,t,e=null){return{type:zi.Query,selector:n,animation:t,options:e}}function zj(n,t){return{type:zi.Stagger,timings:n,animation:t}}var Tl=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:()=>mt(rWe),providedIn:"root"});let n=t;return n})(),Lj=class{},rWe=(()=>{let t=class t extends Tl{constructor(i,o){super(),this.animationModuleType=mt(XA,{optional:!0}),this._nextAnimationId=0;let r={id:"0",encapsulation:Yc.None,styles:[],data:{animation:[]}};if(this._renderer=i.createRenderer(o.body,r),this.animationModuleType===null&&!aWe(this._renderer))throw new Je(3600,!1)}build(i){let o=this._nextAnimationId;this._nextAnimationId++;let r=Array.isArray(i)?Xy(i):i;return m1e(this._renderer,null,o,"register",[r]),new Fj(o,this._renderer)}};t.\u0275fac=function(o){return new(o||t)(Z(tm),Z(Ir))},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Fj=class extends Lj{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Pj(this._id,t,e||{},this._renderer)}},Pj=class{constructor(t,e,i,o){this.id=t,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){m1e(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return sWe(this._renderer)?.engine?.players[this.id]?.getPosition()??0}};function m1e(n,t,e,i,o){n.setProperty(t,`@@${e}:${i}`,o)}function sWe(n){let t=n.\u0275type;return t===0?n:t===1?n.animationRenderer:null}function aWe(n){let t=n.\u0275type;return t===0||t===1}var q0=class{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Lx=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==r&&this._onFinish()}),s.onDestroy(()=>{++i==r&&this._onDestroy()}),s.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(i=>{let o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){let t=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},qk="!";gt();gt();function f1e(n){return new Je(3e3,!1)}function lWe(){return new Je(3100,!1)}function cWe(){return new Je(3101,!1)}function dWe(n){return new Je(3001,!1)}function uWe(n){return new Je(3003,!1)}function hWe(n){return new Je(3004,!1)}function pWe(n,t){return new Je(3005,!1)}function mWe(){return new Je(3006,!1)}function fWe(){return new Je(3007,!1)}function gWe(n,t){return new Je(3008,!1)}function _We(n){return new Je(3002,!1)}function vWe(n,t,e,i,o){return new Je(3010,!1)}function EWe(){return new Je(3011,!1)}function yWe(){return new Je(3012,!1)}function SWe(){return new Je(3200,!1)}function CWe(){return new Je(3202,!1)}function DWe(){return new Je(3013,!1)}function bWe(n){return new Je(3014,!1)}function AWe(n){return new Je(3015,!1)}function xWe(n){return new Je(3016,!1)}function wWe(n,t){return new Je(3404,!1)}function NWe(n){return new Je(3502,!1)}function IWe(n){return new Je(3503,!1)}function RWe(){return new Je(3300,!1)}function TWe(n){return new Je(3504,!1)}function MWe(n){return new Je(3301,!1)}function OWe(n,t){return new Je(3302,!1)}function kWe(n){return new Je(3303,!1)}function LWe(n,t){return new Je(3400,!1)}function FWe(n){return new Je(3401,!1)}function PWe(n){return new Je(3402,!1)}function UWe(n,t){return new Je(3505,!1)}function Q0(n){switch(n.length){case 0:return new q0;case 1:return n[0];default:return new Lx(n)}}function I1e(n,t,e=new Map,i=new Map){let o=[],r=[],s=-1,a=null;if(t.forEach(l=>{let c=l.get("offset"),d=c==s,u=d&&a||new Map;l.forEach((h,m)=>{let _=m,E=h;if(m!=="offset")switch(_=n.normalizePropertyName(_,o),E){case qk:E=e.get(m);break;case cc:E=i.get(m);break;default:E=n.normalizeStyleValue(m,_,E,o);break}u.set(_,E)}),d||r.push(u),a=u,s=c}),o.length)throw NWe(o);return r}function cW(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Bj(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Bj(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Bj(e,"destroy",n)));break}}function Bj(n,t,e){let i=e.totalTime,o=!!e.disabled,r=dW(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,i??n.totalTime,o),s=n._data;return s!=null&&(r._data=s),r}function dW(n,t,e,i,o="",r=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:o,totalTime:r,disabled:!!s}}function hc(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function g1e(n){let t=n.indexOf(":"),e=n.substring(1,t),i=n.slice(t+1);return[e,i]}var GWe=typeof document>"u"?null:document.documentElement;function uW(n){let t=n.parentNode||n.host||null;return t===GWe?null:t}function zWe(n){return n.substring(1,6)=="ebkit"}var Y_=null,_1e=!1;function BWe(n){Y_||(Y_=HWe()||{},_1e=Y_.style?"WebkitAppearance"in Y_.style:!1);let t=!0;return Y_.style&&!zWe(n)&&(t=n in Y_.style,!t&&_1e&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Y_.style)),t}function HWe(){return typeof document<"u"?document.body:null}function R1e(n,t){for(;t;){if(t===n)return!0;t=uW(t)}return!1}function T1e(n,t,e){if(e)return Array.from(n.querySelectorAll(t));let i=n.querySelector(t);return i?[i]:[]}var hW=(()=>{let t=class t{validateStyleProperty(i){return BWe(i)}matchesElement(i,o){return!1}containsElement(i,o){return R1e(i,o)}getParentElement(i){return uW(i)}query(i,o,r){return T1e(i,o,r)}computeStyle(i,o,r){return r||""}animate(i,o,r,s,a,l=[],c){return new q0(r,s)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})(),gW=class gW{};gW.NOOP=new hW;var $_=gW,ev=class{};var VWe=1e3,M1e="{{",KWe="}}",O1e="ng-enter",qj="ng-leave",Qk="ng-trigger",$k=".ng-trigger",v1e="ng-animating",Qj=".ng-animating";function cm(n){if(typeof n=="number")return n;let t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Xj(parseFloat(t[1]),t[2])}function Xj(n,t){switch(t){case"s":return n*VWe;default:return n}}function e4(n,t,e){return n.hasOwnProperty("duration")?n:jWe(n,t,e)}function jWe(n,t,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o,r=0,s="";if(typeof n=="string"){let a=n.match(i);if(a===null)return t.push(f1e(n)),{duration:0,delay:0,easing:""};o=Xj(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=Xj(parseFloat(l),a[4]));let c=a[5];c&&(s=c)}else o=n;if(!e){let a=!1,l=t.length;o<0&&(t.push(lWe()),a=!0),r<0&&(t.push(cWe()),a=!0),a&&t.splice(l,0,f1e(n))}return{duration:o,delay:r,easing:s}}function WWe(n){return n.length?n[0]instanceof Map?n:n.map(t=>new Map(Object.entries(t))):[]}function Oh(n,t,e){t.forEach((i,o)=>{let r=pW(o);e&&!e.has(o)&&e.set(o,n.style[r]),n.style[r]=i})}function J_(n,t){t.forEach((e,i)=>{let o=pW(i);n.style[o]=""})}function Fx(n){return Array.isArray(n)?n.length==1?n[0]:Xy(n):n}function qWe(n,t,e){let i=t.params||{},o=k1e(n);o.length&&o.forEach(r=>{i.hasOwnProperty(r)||e.push(dWe(r))})}var Yj=new RegExp(`${M1e}\\s*(.+?)\\s*${KWe}`,"g");function k1e(n){let t=[];if(typeof n=="string"){let e;for(;e=Yj.exec(n);)t.push(e[1]);Yj.lastIndex=0}return t}function Ux(n,t,e){let i=`${n}`,o=i.replace(Yj,(r,s)=>{let a=t[s];return a==null&&(e.push(uWe(s)),a=""),a.toString()});return o==i?n:o}var QWe=/-+([a-z0-9])/g;function pW(n){return n.replace(QWe,(...t)=>t[1].toUpperCase())}function XWe(n,t){return n===0||t===0}function YWe(n,t,e){if(e.size&&t.length){let i=t[0],o=[];if(e.forEach((r,s)=>{i.has(s)||o.push(s),i.set(s,r)}),o.length)for(let r=1;rs.set(a,mW(n,a)))}}return t}function uc(n,t,e){switch(t.type){case zi.Trigger:return n.visitTrigger(t,e);case zi.State:return n.visitState(t,e);case zi.Transition:return n.visitTransition(t,e);case zi.Sequence:return n.visitSequence(t,e);case zi.Group:return n.visitGroup(t,e);case zi.Animate:return n.visitAnimate(t,e);case zi.Keyframes:return n.visitKeyframes(t,e);case zi.Style:return n.visitStyle(t,e);case zi.Reference:return n.visitReference(t,e);case zi.AnimateChild:return n.visitAnimateChild(t,e);case zi.AnimateRef:return n.visitAnimateRef(t,e);case zi.Query:return n.visitQuery(t,e);case zi.Stagger:return n.visitStagger(t,e);default:throw hWe(t.type)}}function mW(n,t){return window.getComputedStyle(n)[t]}var ZWe=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),t4=class extends ev{normalizePropertyName(t,e){return pW(t)}normalizeStyleValue(t,e,i,o){let r="",s=i.toString().trim();if(ZWe.has(e)&&i!==0&&i!=="0")if(typeof i=="number")r="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&o.push(pWe(t,i))}return s+r}};var i4="*";function JWe(n,t){let e=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>$We(i,e,t)):e.push(n),e}function $We(n,t,e){if(n[0]==":"){let l=eqe(n,e);if(typeof l=="function"){t.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(AWe(n)),t;let o=i[1],r=i[2],s=i[3];t.push(E1e(o,s));let a=o==i4&&s==i4;r[0]=="<"&&!a&&t.push(E1e(s,o))}function eqe(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}var Xk=new Set(["true","1"]),Yk=new Set(["false","0"]);function E1e(n,t){let e=Xk.has(n)||Yk.has(n),i=Xk.has(t)||Yk.has(t);return(o,r)=>{let s=n==i4||n==o,a=t==i4||t==r;return!s&&e&&typeof o=="boolean"&&(s=o?Xk.has(n):Yk.has(n)),!a&&i&&typeof r=="boolean"&&(a=r?Xk.has(t):Yk.has(t)),s&&a}}var L1e=":self",tqe=new RegExp(`s*${L1e}s*,?`,"g");function F1e(n,t,e,i){return new Zj(n).build(t,e,i)}var y1e="",Zj=class{constructor(t){this._driver=t}build(t,e,i){let o=new Jj(e);return this._resetContextStyleTimingState(o),uc(this,Fx(t),o)}_resetContextStyleTimingState(t){t.currentQuerySelector=y1e,t.collectedStyles=new Map,t.collectedStyles.set(y1e,new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,o=e.depCount=0,r=[],s=[];return t.name.charAt(0)=="@"&&e.errors.push(mWe()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==zi.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,e))}),l.name=c}else if(a.type==zi.Transition){let l=this.visitTransition(a,e);i+=l.queryCount,o+=l.depCount,s.push(l)}else e.errors.push(fWe())}),{type:zi.Trigger,name:t.name,states:r,transitions:s,queryCount:i,depCount:o,options:null}}visitState(t,e){let i=this.visitStyle(t.styles,e),o=t.options&&t.options.params||null;if(i.containsDynamicStyles){let r=new Set,s=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{k1e(l).forEach(c=>{s.hasOwnProperty(c)||r.add(c)})})}),r.size&&e.errors.push(gWe(t.name,[...r.values()]))}return{type:zi.State,name:t.name,style:i,options:o?{params:o}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let i=uc(this,Fx(t.animation),e),o=JWe(t.expr,e.errors);return{type:zi.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Z_(t.options)}}visitSequence(t,e){return{type:zi.Sequence,steps:t.steps.map(i=>uc(this,i,e)),options:Z_(t.options)}}visitGroup(t,e){let i=e.currentTime,o=0,r=t.steps.map(s=>{e.currentTime=i;let a=uc(this,s,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:zi.Group,steps:r,options:Z_(t.options)}}visitAnimate(t,e){let i=rqe(t.timings,e.errors);e.currentAnimateTimings=i;let o,r=t.styles?t.styles:lt({});if(r.type==zi.Keyframes)o=this.visitKeyframes(r,e);else{let s=t.styles,a=!1;if(!s){a=!0;let c={};i.easing&&(c.easing=i.easing),s=lt(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(s,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:zi.Animate,timings:i,style:o,options:null}}visitStyle(t,e){let i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){let i=[],o=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of o)typeof a=="string"?a===cc?i.push(a):e.errors.push(_We(a)):i.push(new Map(Object.entries(a)));let r=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(M1e)>=0){r=!0;break}}}),{type:zi.Style,styles:i,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){let i=e.currentAnimateTimings,o=e.currentTime,r=e.currentTime;i&&r>0&&(r-=i.duration+i.delay),t.styles.forEach(s=>{typeof s!="string"&&s.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l),u=!0;d&&(r!=o&&r>=d.startTime&&o<=d.endTime&&(e.errors.push(vWe(l,d.startTime,d.endTime,r,o)),u=!1),r=d.startTime),u&&c.set(l,{startTime:r,endTime:o}),e.options&&qWe(a,e.options,e.errors)})})}visitKeyframes(t,e){let i={type:zi.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(EWe()),i;let o=1,r=0,s=[],a=!1,l=!1,c=0,d=t.steps.map(b=>{let x=this._makeStyleAst(b,e),R=x.offset!=null?x.offset:oqe(x.styles),M=0;return R!=null&&(r++,M=x.offset=R),l=l||M<0||M>1,a=a||M0&&r{let R=h>0?x==m?1:h*x:s[x],M=R*C;e.currentTime=_+E.delay+M,E.duration=M,this._validateStyleAst(b,e),b.offset=R,i.styles.push(b)}),i}visitReference(t,e){return{type:zi.Reference,animation:uc(this,Fx(t.animation),e),options:Z_(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:zi.AnimateChild,options:Z_(t.options)}}visitAnimateRef(t,e){return{type:zi.AnimateRef,animation:this.visitReference(t.animation,e),options:Z_(t.options)}}visitQuery(t,e){let i=e.currentQuerySelector,o=t.options||{};e.queryCount++,e.currentQuery=t;let[r,s]=iqe(t.selector);e.currentQuerySelector=i.length?i+" "+r:r,hc(e.collectedStyles,e.currentQuerySelector,new Map);let a=uc(this,Fx(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:zi.Query,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Z_(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(DWe());let i=t.timings==="full"?{duration:0,delay:0,easing:"full"}:e4(t.timings,e.errors,!0);return{type:zi.Stagger,animation:uc(this,Fx(t.animation),e),timings:i,options:null}}};function iqe(n){let t=!!n.split(/\s*,\s*/).find(e=>e==L1e);return t&&(n=n.replace(tqe,"")),n=n.replace(/@\*/g,$k).replace(/@\w+/g,e=>$k+"-"+e.slice(1)).replace(/:animating/g,Qj),[n,t]}function nqe(n){return n?we({},n):null}var Jj=class{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function oqe(n){if(typeof n=="string")return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function rqe(n,t){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=e4(n,t).duration;return Hj(r,0,"")}let e=n;if(e.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Hj(0,0,"");return r.dynamic=!0,r.strValue=e,r}let o=e4(e,t);return Hj(o.duration,o.delay,o.easing)}function Z_(n){return n?(n=we({},n),n.params&&(n.params=nqe(n.params))):n={},n}function Hj(n,t,e){return{duration:n,delay:t,easing:e}}function fW(n,t,e,i,o,r,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:o,delay:r,totalTime:o+r,easing:s,subTimeline:a}}var Gx=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},sqe=1,aqe=":enter",lqe=new RegExp(aqe,"g"),cqe=":leave",dqe=new RegExp(cqe,"g");function P1e(n,t,e,i,o,r=new Map,s=new Map,a,l,c=[]){return new $j().buildKeyframes(n,t,e,i,o,r,s,a,l,c)}var $j=class{buildKeyframes(t,e,i,o,r,s,a,l,c,d=[]){c=c||new Gx;let u=new eW(t,e,c,o,r,d,[]);u.options=l;let h=l.delay?cm(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([s],null,u.errors,l),uc(this,i,u);let m=u.timelines.filter(_=>_.containsAnimation());if(m.length&&a.size){let _;for(let E=m.length-1;E>=0;E--){let C=m[E];if(C.element===e){_=C;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([a],null,u.errors,l)}return m.length?m.map(_=>_.buildKeyframes()):[fW(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let i=e.subInstructions.get(e.element);if(i){let o=e.createSubContext(t.options),r=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,o,o.options);r!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){let i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(let o of t){let r=o?.delay;if(r){let s=typeof r=="number"?r:cm(Ux(r,o?.params??{},e.errors));i.delayNextStep(s)}}}_visitSubInstructions(t,e,i){let r=e.currentTimeline.currentTime,s=i.duration!=null?cm(i.duration):null,a=i.delay!=null?cm(i.delay):null;return s!==0&&t.forEach(l=>{let c=e.appendInstructionToTimeline(l,s,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),uc(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let i=e.subContextCount,o=e,r=t.options;if(r&&(r.params||r.delay)&&(o=e.createSubContext(r),o.transformIntoNewTimeline(),r.delay!=null)){o.previousNode.type==zi.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=n4);let s=cm(r.delay);o.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>uc(this,s,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let i=[],o=e.currentTimeline.currentTime,r=t.options&&t.options.delay?cm(t.options.delay):0;t.steps.forEach(s=>{let a=e.createSubContext(t.options);r&&a.delayNextStep(r),uc(this,s,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(o),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let i=t.strValue,o=e.params?Ux(i,e.params,e.errors):i;return e4(o,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let i=e.currentAnimateTimings=this._visitTiming(t.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());let r=t.style;r.type==zi.Keyframes?this.visitKeyframes(r,e):(e.incrementTime(i.duration),this.visitStyle(r,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();let r=o&&o.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(r):i.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let i=e.currentAnimateTimings,o=e.currentTimeline.duration,r=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+r),e.previousNode=t}visitQuery(t,e){let i=e.currentTimeline.currentTime,o=t.options||{},r=o.delay?cm(o.delay):0;r&&(e.previousNode.type===zi.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=n4);let s=i,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;let u=e.createSubContext(t.options,c);r&&u.delayNextStep(r),c===e.element&&(l=u.currentTimeline),uc(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe();let h=u.currentTimeline.currentTime;s=Math.max(s,h)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let i=e.parentContext,o=e.currentTimeline,r=t.timings,s=Math.abs(r.duration),a=s*(e.currentQueryTotal-1),l=s*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=e.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;uc(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=o.currentTime-u+(o.startTime-i.currentTimeline.startTime)}},n4={},eW=class n{constructor(t,e,i,o,r,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=r,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=n4,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new o4(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let i=t,o=this.options;i.duration!=null&&(o.duration=cm(i.duration)),i.delay!=null&&(o.delay=cm(i.delay));let r=i.params;if(r){let s=o.params;s||(s=this.options.params={}),Object.keys(r).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=Ux(r[a],s,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let i=t.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return t}createSubContext(t=null,e,i){let o=e||this.element,r=new n(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=n4,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){let o={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},r=new tW(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(r),o}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,o,r,s){let a=[];if(o&&a.push(this.element),t.length>0){t=t.replace(lqe,"."+this._enterClassName),t=t.replace(dqe,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,t,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!r&&a.length==0&&s.push(bWe(e)),a}},o4=class n{constructor(t,e,i,o){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new n(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=sqe,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||cc),this._currentKeyframe.set(e,cc);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,o){e&&this._previousKeyframe.set("easing",e);let r=o&&o.params||{},s=uqe(t,this._globalTimelineStyles);for(let[a,l]of s){let c=Ux(l,r,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??cc),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{let o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===qk?t.add(u):d===cc&&e.add(u)}),i||c.set("offset",l/this.duration),o.push(c)});let r=[...t.values()],s=[...e.values()];if(i){let a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return fW(this.element,o,r,s,this.duration,this.startTime,this.easing,!1)}},tW=class extends o4{constructor(t,e,i,o,r,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let r=[],s=i+e,a=e/s,l=new Map(t[0]);l.set("offset",0),r.push(l);let c=new Map(t[0]);c.set("offset",S1e(a)),r.push(c);let d=t.length-1;for(let u=1;u<=d;u++){let h=new Map(t[u]),m=h.get("offset"),_=e+m*i;h.set("offset",S1e(_/s)),r.push(h)}i=s,e=0,o="",t=r}return fW(this.element,t,this.preStyleProps,this.postStyleProps,i,e,o,!0)}};function S1e(n,t=3){let e=Math.pow(10,t-1);return Math.round(n*e)/e}function uqe(n,t){let e=new Map,i;return n.forEach(o=>{if(o==="*"){i??=t.keys();for(let r of i)e.set(r,cc)}else for(let[r,s]of o)e.set(r,s)}),e}function C1e(n,t,e,i,o,r,s,a,l,c,d,u,h){return{type:0,element:n,triggerName:t,isRemovalTransition:o,fromState:e,fromStyles:r,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}var Vj={},r4=class{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,o){return hqe(this.ast.matchers,t,e,i,o)}buildStyles(t,e,i){let o=this._stateStyles.get("*");return t!==void 0&&(o=this._stateStyles.get(t?.toString())||o),o?o.buildStyles(e,i):new Map}build(t,e,i,o,r,s,a,l,c,d){let u=[],h=this.ast.options&&this.ast.options.params||Vj,m=a&&a.params||Vj,_=this.buildStyles(i,m,u),E=l&&l.params||Vj,C=this.buildStyles(o,E,u),b=new Set,x=new Map,R=new Map,M=o==="void",T={params:U1e(E,h),delay:this.ast.options?.delay},H=d?[]:P1e(t,e,this.ast.animation,r,s,_,C,T,c,u),V=0;return H.forEach(re=>{V=Math.max(re.duration+re.delay,V)}),u.length?C1e(e,this._triggerName,i,o,M,_,C,[],[],x,R,V,u):(H.forEach(re=>{let fe=re.element,Ae=hc(x,fe,new Set);re.preStyleProps.forEach(Xe=>Ae.add(Xe));let ue=hc(R,fe,new Set);re.postStyleProps.forEach(Xe=>ue.add(Xe)),fe!==e&&b.add(fe)}),C1e(e,this._triggerName,i,o,M,_,C,H,[...b.values()],x,R,V))}};function hqe(n,t,e,i,o){return n.some(r=>r(t,e,i,o))}function U1e(n,t){let e=we({},t);return Object.entries(n).forEach(([i,o])=>{o!=null&&(e[i]=o)}),e}var iW=class{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){let i=new Map,o=U1e(t,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((s,a)=>{s&&(s=Ux(s,o,e));let l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(a,s)})}),i}};function pqe(n,t,e){return new nW(n,t,e)}var nW=class{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{let r=o.options&&o.options.params||{};this.states.set(o.name,new iW(o.style,r,i))}),D1e(this.states,"true","1"),D1e(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new r4(t,o,this.states))}),this.fallbackTransition=mqe(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,o){return this.transitionFactories.find(s=>s.match(t,e,i,o))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}};function mqe(n,t,e){let i=[(s,a)=>!0],o={type:zi.Sequence,steps:[],options:null},r={type:zi.Transition,animation:o,matchers:i,options:null,queryCount:0,depCount:0};return new r4(n,r,t)}function D1e(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}var fqe=new Gx,oW=class{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){let i=[],o=[],r=F1e(this._driver,e,i,o);if(i.length)throw IWe(i);o.length&&void 0,this._animations.set(t,r)}_buildPlayer(t,e,i){let o=t.element,r=I1e(this._normalizer,t.keyframes,e,i);return this._driver.animate(o,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){let o=[],r=this._animations.get(t),s,a=new Map;if(r?(s=P1e(this._driver,e,r,O1e,qj,new Map,new Map,i,fqe,o),s.forEach(d=>{let u=hc(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(o.push(RWe()),s=[]),o.length)throw TWe(o);a.forEach((d,u)=>{d.forEach((h,m)=>{d.set(m,this._driver.computeStyle(u,m,cc))})});let l=s.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=Q0(l);return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw MWe(t);return e}listen(t,e,i,o){let r=dW(e,"","","");return cW(this._getPlayer(t),i,r,o),()=>{}}command(t,e,i,o){if(i=="register"){this.register(t,o[0]);return}if(i=="create"){let s=o[0]||{};this.create(t,e,s);return}let r=this._getPlayer(t);switch(i){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(t);break}}},b1e="ng-animate-queued",gqe=".ng-animate-queued",Kj="ng-animate-disabled",_qe=".ng-animate-disabled",vqe="ng-star-inserted",Eqe=".ng-star-inserted",yqe=[],G1e={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Sqe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},cu="__ng_removed",zx=class{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let i=t&&t.hasOwnProperty("value"),o=i?t.value:t;if(this.value=Dqe(o),i){let r=t,{value:s}=r,a=pB(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let i=this.options.params;Object.keys(e).forEach(o=>{i[o]==null&&(i[o]=e[o])})}}},Px="void",jj=new zx(Px),rW=class{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,rd(e,this._hostClassName)}listen(t,e,i,o){if(!this._triggers.has(e))throw OWe(i,e);if(i==null||i.length==0)throw kWe(e);if(!bqe(i))throw LWe(i,e);let r=hc(this._elementListeners,t,[]),s={name:e,phase:i,callback:o};r.push(s);let a=hc(this._engine.statesByElement,t,new Map);return a.has(e)||(rd(t,Qk),rd(t,Qk+"-"+e),a.set(e,jj)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(s);l>=0&&r.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw FWe(t);return e}trigger(t,e,i,o=!0){let r=this._getTrigger(e),s=new Bx(this.id,e,t),a=this._engine.statesByElement.get(t);a||(rd(t,Qk),rd(t,Qk+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e),c=new zx(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=jj),!(c.value===Px)&&l.value===c.value){if(!wqe(l.params,c.params)){let E=[],C=r.matchStyles(l.value,l.params,E),b=r.matchStyles(c.value,c.params,E);E.length?this._engine.reportError(E):this._engine.afterFlush(()=>{J_(t,C),Oh(t,b)})}return}let h=hc(this._engine.playersByElement,t,[]);h.forEach(E=>{E.namespaceId==this.id&&E.triggerName==e&&E.queued&&E.destroy()});let m=r.matchTransition(l.value,c.value,t,c.params),_=!1;if(!m){if(!o)return;m=r.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:m,fromState:l,toState:c,player:s,isFallbackTransition:_}),_||(rd(t,b1e),s.onStart(()=>{Zy(t,b1e)})),s.onDone(()=>{let E=this.players.indexOf(s);E>=0&&this.players.splice(E,1);let C=this._engine.playersByElement.get(t);if(C){let b=C.indexOf(s);b>=0&&C.splice(b,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let i=this._engine.driver.query(t,$k,!0);i.forEach(o=>{if(o[cu])return;let r=this._engine.fetchNamespacesByElement(o);r.size?r.forEach(s=>s.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(t,e,i,o){let r=this._engine.statesByElement.get(t),s=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){let d=this.trigger(t,c,Px,o);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&Q0(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){let o=new Set;e.forEach(r=>{let s=r.name;if(o.has(s))return;o.add(s);let l=this._triggers.get(s).fallbackTransition,c=i.get(s)||jj,d=new zx(Px),u=new Bx(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,e){let i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let o=!1;if(i.totalAnimations){let r=i.players.length?i.playersByQueriedElement.get(t):[];if(r&&r.length)o=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(t),o)i.markElementAsRemoved(this.id,t,!1,e);else{let r=t[cu];(!r||r===G1e)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){rd(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(i=>{let o=i.player;if(o.destroyed)return;let r=i.element,s=this._elementListeners.get(r);s&&s.forEach(a=>{if(a.name==i.triggerName){let l=dW(r,i.triggerName,i.fromState.value,i.toState.value);l._data=t,cW(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{let r=i.transition.ast.depCount,s=o.transition.ast.depCount;return r==0||s==0?r-s:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},sW=class{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i,o){this.bodyNode=t,this.driver=e,this._normalizer=i,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){let i=new rW(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){let i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){let l=o.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return o.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let o=this._namespaceLookup[t];o&&o.register(e,i)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(t);this.namespacesByHostElement.delete(i.hostElement);let o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,i=this.statesByElement.get(t);if(i){for(let o of i.values())if(o.namespaceId){let r=this._fetchNamespace(o.namespaceId);r&&e.add(r)}}return e}trigger(t,e,i,o){if(Zk(e)){let r=this._fetchNamespace(t);if(r)return r.trigger(e,i,o),!0}return!1}insertNode(t,e,i,o){if(!Zk(e))return;let r=e[cu];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){let s=this._fetchNamespace(t);s&&s.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),rd(t,Kj)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zy(t,Kj))}removeNode(t,e,i){if(Zk(e)){this.scheduler?.notify();let o=t?this._fetchNamespace(t):null;o?o.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i);let r=this.namespacesByHostElement.get(e);r&&r.id!==t&&r.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,i,o,r){this.collectedLeaveElements.push(e),e[cu]={namespaceId:t,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:r}}listen(t,e,i,o,r){return Zk(e)?this._fetchNamespace(t).listen(e,i,o,r):()=>{}}_buildInstruction(t,e,i,o,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,o,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,$k,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,Qj,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Q0(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[cu];if(e&&e.setForRemoval){if(t[cu]=G1e,e.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(Kj)&&this.markElementAsDisabled(t,!1),this.driver.query(t,_qe,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?Q0(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(t){throw PWe(t)}_flushAnimations(t,e){let i=new Gx,o=[],r=new Map,s=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(ne=>{d.add(ne);let ae=this.driver.query(ne,gqe,!0);for(let Ge=0;Ge{let Ge=O1e+E++;_.set(ae,Ge),ne.forEach(ze=>rd(ze,Ge))});let C=[],b=new Set,x=new Set;for(let ne=0;neb.add(ze)):x.add(ae))}let R=new Map,M=w1e(h,Array.from(b));M.forEach((ne,ae)=>{let Ge=qj+E++;R.set(ae,Ge),ne.forEach(ze=>rd(ze,Ge))}),t.push(()=>{m.forEach((ne,ae)=>{let Ge=_.get(ae);ne.forEach(ze=>Zy(ze,Ge))}),M.forEach((ne,ae)=>{let Ge=R.get(ae);ne.forEach(ze=>Zy(ze,Ge))}),C.forEach(ne=>{this.processLeaveNode(ne)})});let T=[],H=[];for(let ne=this._namespaceList.length-1;ne>=0;ne--)this._namespaceList[ne].drainQueuedTransitions(e).forEach(Ge=>{let ze=Ge.player,Ye=Ge.element;if(T.push(ze),this.collectedEnterElements.length){let Ot=Ye[cu];if(Ot&&Ot.setForMove){if(Ot.previousTriggersValues&&Ot.previousTriggersValues.has(Ge.triggerName)){let bi=Ot.previousTriggersValues.get(Ge.triggerName),Vt=this.statesByElement.get(Ge.element);if(Vt&&Vt.has(Ge.triggerName)){let Ii=Vt.get(Ge.triggerName);Ii.value=bi,Vt.set(Ge.triggerName,Ii)}}ze.destroy();return}}let Jt=!u||!this.driver.containsElement(u,Ye),Xt=R.get(Ye),li=_.get(Ye),Ue=this._buildInstruction(Ge,i,li,Xt,Jt);if(Ue.errors&&Ue.errors.length){H.push(Ue);return}if(Jt){ze.onStart(()=>J_(Ye,Ue.fromStyles)),ze.onDestroy(()=>Oh(Ye,Ue.toStyles)),o.push(ze);return}if(Ge.isFallbackTransition){ze.onStart(()=>J_(Ye,Ue.fromStyles)),ze.onDestroy(()=>Oh(Ye,Ue.toStyles)),o.push(ze);return}let Ht=[];Ue.timelines.forEach(Ot=>{Ot.stretchStartingKeyframe=!0,this.disabledNodes.has(Ot.element)||Ht.push(Ot)}),Ue.timelines=Ht,i.append(Ye,Ue.timelines);let xt={instruction:Ue,player:ze,element:Ye};s.push(xt),Ue.queriedElements.forEach(Ot=>hc(a,Ot,[]).push(ze)),Ue.preStyleProps.forEach((Ot,bi)=>{if(Ot.size){let Vt=l.get(bi);Vt||l.set(bi,Vt=new Set),Ot.forEach((Ii,Ri)=>Vt.add(Ri))}}),Ue.postStyleProps.forEach((Ot,bi)=>{let Vt=c.get(bi);Vt||c.set(bi,Vt=new Set),Ot.forEach((Ii,Ri)=>Vt.add(Ri))})});if(H.length){let ne=[];H.forEach(ae=>{ne.push(UWe(ae.triggerName,ae.errors))}),T.forEach(ae=>ae.destroy()),this.reportError(ne)}let V=new Map,re=new Map;s.forEach(ne=>{let ae=ne.element;i.has(ae)&&(re.set(ae,ae),this._beforeAnimationBuild(ne.player.namespaceId,ne.instruction,V))}),o.forEach(ne=>{let ae=ne.element;this._getPreviousPlayers(ae,!1,ne.namespaceId,ne.triggerName,null).forEach(ze=>{hc(V,ae,[]).push(ze),ze.destroy()})});let fe=C.filter(ne=>N1e(ne,l,c)),Ae=new Map;x1e(Ae,this.driver,x,c,cc).forEach(ne=>{N1e(ne,l,c)&&fe.push(ne)});let Xe=new Map;m.forEach((ne,ae)=>{x1e(Xe,this.driver,new Set(ne),l,qk)}),fe.forEach(ne=>{let ae=Ae.get(ne),Ge=Xe.get(ne);Ae.set(ne,new Map([...ae?.entries()??[],...Ge?.entries()??[]]))});let xe=[],Ke=[],ce={};s.forEach(ne=>{let{element:ae,player:Ge,instruction:ze}=ne;if(i.has(ae)){if(d.has(ae)){Ge.onDestroy(()=>Oh(ae,ze.toStyles)),Ge.disabled=!0,Ge.overrideTotalTime(ze.totalTime),o.push(Ge);return}let Ye=ce;if(re.size>1){let Xt=ae,li=[];for(;Xt=Xt.parentNode;){let Ue=re.get(Xt);if(Ue){Ye=Ue;break}li.push(Xt)}li.forEach(Ue=>re.set(Ue,Ye))}let Jt=this._buildAnimation(Ge.namespaceId,ze,V,r,Xe,Ae);if(Ge.setRealPlayer(Jt),Ye===ce)xe.push(Ge);else{let Xt=this.playersByElement.get(Ye);Xt&&Xt.length&&(Ge.parentPlayer=Q0(Xt)),o.push(Ge)}}else J_(ae,ze.fromStyles),Ge.onDestroy(()=>Oh(ae,ze.toStyles)),Ke.push(Ge),d.has(ae)&&o.push(Ge)}),Ke.forEach(ne=>{let ae=r.get(ne.element);if(ae&&ae.length){let Ge=Q0(ae);ne.setRealPlayer(Ge)}}),o.forEach(ne=>{ne.parentPlayer?ne.syncPlayerEvents(ne.parentPlayer):ne.destroy()});for(let ne=0;ne!Jt.destroyed);Ye.length?Aqe(this,ae,Ye):this.processLeaveNode(ae)}return C.length=0,xe.forEach(ne=>{this.players.push(ne),ne.onDone(()=>{ne.destroy();let ae=this.players.indexOf(ne);this.players.splice(ae,1)}),ne.play()}),xe}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,o,r){let s=[];if(e){let a=this.playersByQueriedElement.get(t);a&&(s=a)}else{let a=this.playersByElement.get(t);if(a){let l=!r||r==Px;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||s.push(c)})}}return(i||o)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){let o=e.triggerName,r=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let c=l.element,d=c!==r,u=hc(i,c,[]);this._getPreviousPlayers(c,d,s,a,e.toState).forEach(m=>{let _=m.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),m.destroy(),u.push(m)})}J_(r,e.fromStyles)}_buildAnimation(t,e,i,o,r,s){let a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(_=>{let E=_.element;d.add(E);let C=E[cu];if(C&&C.removedBeforeQueried)return new q0(_.duration,_.delay);let b=E!==l,x=xqe((i.get(E)||yqe).map(V=>V.getRealPlayer())).filter(V=>{let re=V;return re.element?re.element===E:!1}),R=r.get(E),M=s.get(E),T=I1e(this._normalizer,_.keyframes,R,M),H=this._buildPlayer(_,T,x);if(_.subTimeline&&o&&u.add(E),b){let V=new Bx(t,a,E);V.setRealPlayer(H),c.push(V)}return H});c.forEach(_=>{hc(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>Cqe(this.playersByQueriedElement,_.element,_))}),d.forEach(_=>rd(_,v1e));let m=Q0(h);return m.onDestroy(()=>{d.forEach(_=>Zy(_,v1e)),Oh(l,e.toStyles)}),u.forEach(_=>{hc(o,_,[]).push(m)}),m}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new q0(t.duration,t.delay)}},Bx=class{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new q0,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>cW(t,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){hc(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function Cqe(n,t,e){let i=n.get(t);if(i){if(i.length){let o=i.indexOf(e);i.splice(o,1)}i.length==0&&n.delete(t)}return i}function Dqe(n){return n??null}function Zk(n){return n&&n.nodeType===1}function bqe(n){return n=="start"||n=="done"}function A1e(n,t){let e=n.style.display;return n.style.display=t??"none",e}function x1e(n,t,e,i,o){let r=[];e.forEach(l=>r.push(A1e(l)));let s=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let h=t.computeStyle(c,u,o);d.set(u,h),(!h||h.length==0)&&(c[cu]=Sqe,s.push(c))}),n.set(c,d)});let a=0;return e.forEach(l=>A1e(l,r[a++])),s}function w1e(n,t){let e=new Map;if(n.forEach(a=>e.set(a,[])),t.length==0)return e;let i=1,o=new Set(t),r=new Map;function s(a){if(!a)return i;let l=r.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:o.has(c)?l=i:l=s(c),r.set(a,l),l}return t.forEach(a=>{let l=s(a);l!==i&&e.get(l).push(a)}),e}function rd(n,t){n.classList?.add(t)}function Zy(n,t){n.classList?.remove(t)}function Aqe(n,t,e){Q0(e).onDone(()=>n.processLeaveNode(t))}function xqe(n){let t=[];return z1e(n,t),t}function z1e(n,t){for(let e=0;eo.add(r)):t.set(n,i),e.delete(n),!0}var $y=class{constructor(t,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new sW(t.body,e,i,o),this._timelineEngine=new oW(t.body,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,o,r){let s=t+"-"+o,a=this._triggerCache[s];if(!a){let l=[],c=[],d=F1e(this._driver,r,l,c);if(l.length)throw wWe(o,l);c.length&&void 0,a=pqe(o,d,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,o,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,o){this._transitionEngine.insertNode(t,e,i,o)}onRemove(t,e,i){this._transitionEngine.removeNode(t,e,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,o){if(i.charAt(0)=="@"){let[r,s]=g1e(i),a=o;this._timelineEngine.command(r,e,s,a)}else this._transitionEngine.trigger(t,e,i,o)}listen(t,e,i,o,r){if(i.charAt(0)=="@"){let[s,a]=g1e(i);return this._timelineEngine.listen(s,e,a,r)}return this._transitionEngine.listen(t,e,i,o,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function Nqe(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=Wj(t[0]),t.length>1&&(i=Wj(t[t.length-1]))):t instanceof Map&&(e=Wj(t)),e||i?new aW(n,e,i):null}var Jy=class Jy{constructor(t,e,i){this._element=t,this._startStyles=e,this._endStyles=i,this._state=0;let o=Jy.initialStylesByElement.get(t);o||Jy.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Oh(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Oh(this._element,this._initialStyles),this._endStyles&&(Oh(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Jy.initialStylesByElement.delete(this._element),this._startStyles&&(J_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(J_(this._element,this._endStyles),this._endStyles=null),Oh(this._element,this._initialStyles),this._state=3)}};Jy.initialStylesByElement=new WeakMap;var aW=Jy;function Wj(n){let t=null;return n.forEach((e,i)=>{Iqe(i)&&(t=t||new Map,t.set(i,e))}),t}function Iqe(n){return n==="display"||n==="position"}var s4=class{constructor(t,e,i,o){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{o!=="offset"&&t.set(o,this._finished?i:mW(this.element,o))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},a4=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return R1e(t,e)}getParentElement(t){return uW(t)}query(t,e,i){return T1e(t,e,i)}computeStyle(t,e,i){return mW(t,e)}animate(t,e,i,o,r,s=[]){let a=o==0?"both":"forwards",l={duration:i,delay:o,fill:a};r&&(l.easing=r);let c=new Map,d=s.filter(m=>m instanceof s4);XWe(i,o)&&d.forEach(m=>{m.currentSnapshot.forEach((_,E)=>c.set(E,_))});let u=WWe(e).map(m=>new Map(m));u=YWe(t,u,c);let h=Nqe(t,u);return new s4(t,u,l,h)}};var Jk="@",B1e="@.disabled",l4=class{constructor(t,e,i,o){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,o=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,o)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,o){this.delegate.setAttribute(t,e,i,o)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,o){this.delegate.setStyle(t,e,i,o)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Jk&&e==B1e?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},lW=class extends l4{constructor(t,e,i,o,r){super(e,i,o,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Jk?e.charAt(1)=="."&&e==B1e?(i=i===void 0?!0:!!i,this.disableAnimations(t,i)):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==Jk){let o=Rqe(t),r=e.slice(1),s="";return r.charAt(0)!=Jk&&([r,s]=Tqe(r)),this.engine.listen(this.namespaceId,o,r,s,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(t,e,i)}};function Rqe(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Tqe(n){let t=n.indexOf("."),e=n.substring(0,t),i=n.slice(t+1);return[e,i]}var c4=class{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,r)=>{let s=r?.parentNode(o);s&&r.removeChild(s,o)}}createRenderer(t,e){let i="",o=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let c=this._rendererCache,d=c.get(o);if(!d){let u=()=>c.delete(o);d=new l4(i,o,this.engine,u),c.set(o,d)}return d}let r=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,s,t,c.name,c)};return e.data.animation.forEach(a),new lW(this,s,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){if(t>=0&&te(i));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(r=>{let[s,a]=r;s(a)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Oqe=(()=>{let t=class t extends $y{constructor(i,o,r){super(i,o,r,mt(GA,{optional:!0}))}ngOnDestroy(){this.flush()}};t.\u0275fac=function(o){return new(o||t)(Z(Ir),Z($_),Z(ev))},t.\u0275prov=ee({token:t,factory:t.\u0275fac});let n=t;return n})();function kqe(){return new t4}function Lqe(n,t,e){return new c4(n,t,e)}var V1e=[{provide:ev,useFactory:kqe},{provide:$y,useClass:Oqe},{provide:tm,useFactory:Lqe,deps:[bk,$y,oe]}],H1e=[{provide:$_,useFactory:()=>new a4},{provide:XA,useValue:"BrowserAnimations"},...V1e],Fqe=[{provide:$_,useClass:hW},{provide:XA,useValue:"NoopAnimations"},...V1e],K1e=(()=>{let t=class t{static withConfig(i){return{ngModule:t,providers:i.disableAnimations?Fqe:H1e}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ve({type:t}),t.\u0275inj=_e({providers:H1e,imports:[xk]});let n=t;return n})();gt();gt();_o();xo();var J1e=(()=>{let t=class t{constructor(i,o){this._renderer=i,this._elementRef=o,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(i,o){this._renderer.setProperty(this._elementRef.nativeElement,i,o)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};t.\u0275fac=function(o){return new(o||t)(f(le),f(Y))},t.\u0275dir=G({type:t});let n=t;return n})(),yW=(()=>{let t=class t extends J1e{};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=_i(t)))(r||t)}})(),t.\u0275dir=G({type:t,features:[X]});let n=t;return n})(),dn=new at(""),Pqe={provide:dn,useExisting:be(()=>um),multi:!0},um=(()=>{let t=class t extends yW{writeValue(i){this.setProperty("checked",i)}};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=_i(t)))(r||t)}})(),t.\u0275dir=G({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,r){o&1&&P("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[se([Pqe]),X]});let n=t;return n})(),Uqe={provide:dn,useExisting:be(()=>du),multi:!0};function Gqe(){let n=Rh()?Rh().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var zqe=new at(""),du=(()=>{let t=class t extends J1e{constructor(i,o,r){super(i,o),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Gqe())}writeValue(i){let o=i??"";this.setProperty("value",o)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};t.\u0275fac=function(o){return new(o||t)(f(le),f(Y),f(zqe,8))},t.\u0275dir=G({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(o,r){o&1&&P("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[se([Uqe]),X]});let n=t;return n})();function X0(n){return n==null||(typeof n=="string"||Array.isArray(n))&&n.length===0}function $1e(n){return n!=null&&typeof n.length=="number"}var $a=new at(""),Wx=new at(""),Bqe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ja=class{static min(t){return Hqe(t)}static max(t){return Vqe(t)}static required(t){return e_e(t)}static requiredTrue(t){return Kqe(t)}static email(t){return jqe(t)}static minLength(t){return Wqe(t)}static maxLength(t){return qqe(t)}static pattern(t){return Qqe(t)}static nullValidator(t){return u4(t)}static compose(t){return s_e(t)}static composeAsync(t){return a_e(t)}};function Hqe(n){return t=>{if(X0(t.value)||X0(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e{if(X0(t.value)||X0(n))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function e_e(n){return X0(n.value)?{required:!0}:null}function Kqe(n){return n.value===!0?null:{required:!0}}function jqe(n){return X0(n.value)||Bqe.test(n.value)?null:{email:!0}}function Wqe(n){return t=>X0(t.value)||!$1e(t.value)?null:t.value.length$1e(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}function Qqe(n){if(!n)return u4;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(X0(i.value))return null;let o=i.value;return t.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function u4(n){return null}function t_e(n){return n!=null}function i_e(n){return U0(n)?nn(n):n}function n_e(n){let t={};return n.forEach(e=>{t=e!=null?we(we({},t),e):t}),Object.keys(t).length===0?null:t}function o_e(n,t){return t.map(e=>e(n))}function Xqe(n){return!n.validate}function r_e(n){return n.map(t=>Xqe(t)?t:e=>t.validate(e))}function s_e(n){if(!n)return null;let t=n.filter(t_e);return t.length==0?null:function(e){return n_e(o_e(e,t))}}function SW(n){return n!=null?s_e(r_e(n)):null}function a_e(n){if(!n)return null;let t=n.filter(t_e);return t.length==0?null:function(e){let i=o_e(e,t).map(i_e);return YB(i).pipe(He(n_e))}}function CW(n){return n!=null?a_e(r_e(n)):null}function j1e(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function l_e(n){return n._rawValidators}function c_e(n){return n._rawAsyncValidators}function _W(n){return n?Array.isArray(n)?n:[n]:[]}function h4(n,t){return Array.isArray(n)?n.includes(t):n===t}function W1e(n,t){let e=_W(t);return _W(n).forEach(o=>{h4(e,o)||e.push(o)}),e}function q1e(n,t){return _W(t).filter(e=>!h4(n,e))}var p4=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=SW(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=CW(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},dm=class extends p4{get formDirective(){return null}get path(){return null}},Fn=class extends p4{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},m4=class{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},Yqe={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Vni=Yt(we({},Yqe),{"[class.ng-submitted]":"isSubmitted"}),el=(()=>{let t=class t extends m4{constructor(i){super(i)}};t.\u0275fac=function(o){return new(o||t)(f(Fn,2))},t.\u0275dir=G({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,r){o&2&&q("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[X]});let n=t;return n})(),kh=(()=>{let t=class t extends m4{constructor(i){super(i)}};t.\u0275fac=function(o){return new(o||t)(f(dm,10))},t.\u0275dir=G({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(o,r){o&2&&q("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[X]});let n=t;return n})();var Hx="VALID",d4="INVALID",eS="PENDING",Vx="DISABLED";function DW(n){return(v4(n)?n.validators:n)||null}function Zqe(n){return Array.isArray(n)?SW(n):n||null}function bW(n,t){return(v4(t)?t.asyncValidators:n)||null}function Jqe(n){return Array.isArray(n)?CW(n):n||null}function v4(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function d_e(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new Je(1e3,"");if(!i[e])throw new Je(1001,"")}function u_e(n,t,e){n._forEachChild((i,o)=>{if(e[o]===void 0)throw new Je(1002,"")})}var tS=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Hx}get invalid(){return this.status===d4}get pending(){return this.status==eS}get disabled(){return this.status===Vx}get enabled(){return this.status!==Vx}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(W1e(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(W1e(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(q1e(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(q1e(t,this._rawAsyncValidators))}hasValidator(t){return h4(this._rawValidators,t)}hasAsyncValidator(t){return h4(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=eS,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=Vx,this.errors=null,this._forEachChild(i=>{i.disable(Yt(we({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Yt(we({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=Hx,this._forEachChild(i=>{i.enable(Yt(we({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Yt(we({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Hx||this.status===eS)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Vx:Hx}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=eS,this._hasOwnPendingAsyncValidator=!0;let e=i_e(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new A,this.statusChanges=new A}_calculateStatus(){return this._allControlsDisabled()?Vx:this.errors?d4:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(eS)?eS:this._anyControlsHaveStatus(d4)?d4:Hx}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){v4(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Zqe(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Jqe(this._rawAsyncValidators)}},Gr=class extends tS{constructor(t,e,i){super(DW(e),bW(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){u_e(this,!0,t),Object.keys(t).forEach(i=>{d_e(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let o=this.controls[i];o&&o.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,o)=>{i.reset(t?t[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((o,r)=>{i=e(i,o,r)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var vW=class extends Gr{};var tv=new at("CallSetDisabledState",{providedIn:"root",factory:()=>qx}),qx="always";function h_e(n,t){return[...t.path,n]}function jx(n,t,e=qx){AW(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),eQe(n,t),iQe(n,t),tQe(n,t),$qe(n,t)}function f4(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),_4(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function g4(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function $qe(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function AW(n,t){let e=l_e(n);t.validator!==null?n.setValidators(j1e(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=c_e(n);t.asyncValidator!==null?n.setAsyncValidators(j1e(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let o=()=>n.updateValueAndValidity();g4(t._rawValidators,o),g4(t._rawAsyncValidators,o)}function _4(n,t){let e=!1;if(n!==null){if(t.validator!==null){let o=l_e(n);if(Array.isArray(o)&&o.length>0){let r=o.filter(s=>s!==t.validator);r.length!==o.length&&(e=!0,n.setValidators(r))}}if(t.asyncValidator!==null){let o=c_e(n);if(Array.isArray(o)&&o.length>0){let r=o.filter(s=>s!==t.asyncValidator);r.length!==o.length&&(e=!0,n.setAsyncValidators(r))}}}let i=()=>{};return g4(t._rawValidators,i),g4(t._rawAsyncValidators,i),e}function eQe(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&p_e(n,t)})}function tQe(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&p_e(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function p_e(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function iQe(n,t){let e=(i,o)=>{t.valueAccessor.writeValue(i),o&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function m_e(n,t){n==null,AW(n,t)}function nQe(n,t){return _4(n,t)}function xW(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function oQe(n){return Object.getPrototypeOf(n.constructor)===yW}function f_e(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function wW(n,t){if(!t)return null;Array.isArray(t);let e,i,o;return t.forEach(r=>{r.constructor===du?e=r:oQe(r)?i=r:o=r}),o||i||e||null}function rQe(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}var sQe={provide:dm,useExisting:be(()=>NW)},Kx=Promise.resolve(),NW=(()=>{let t=class t extends dm{constructor(i,o,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new A,this.form=new Gr({},SW(i),CW(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(i){Kx.then(()=>{let o=this._findContainer(i.path);i.control=o.registerControl(i.name,i.control),jx(i.control,i,this.callSetDisabledState),i.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(i)})}getControl(i){return this.form.get(i.path)}removeControl(i){Kx.then(()=>{let o=this._findContainer(i.path);o&&o.removeControl(i.name),this._directives.delete(i)})}addFormGroup(i){Kx.then(()=>{let o=this._findContainer(i.path),r=new Gr({});m_e(r,i),o.registerControl(i.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(i){Kx.then(()=>{let o=this._findContainer(i.path);o&&o.removeControl(i.name)})}getFormGroup(i){return this.form.get(i.path)}updateModel(i,o){Kx.then(()=>{this.form.get(i.path).setValue(o)})}setValue(i){this.control.setValue(i)}onSubmit(i){return this.submitted=!0,f_e(this.form,this._directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(i){return i.pop(),i.length?this.form.get(i):this.form}};t.\u0275fac=function(o){return new(o||t)(f($a,10),f(Wx,10),f(tv,8))},t.\u0275dir=G({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(o,r){o&1&&P("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[Ct.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([sQe]),X]});let n=t;return n})();function Q1e(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function X1e(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var jn=class extends tS{constructor(t=null,e,i){super(DW(e),bW(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),v4(e)&&(e.nonNullable||e.initialValueIsDefault)&&(X1e(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Q1e(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Q1e(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){X1e(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var aQe=n=>n instanceof jn;var lQe={provide:Fn,useExisting:be(()=>iS)},Y1e=Promise.resolve(),iS=(()=>{let t=class t extends Fn{constructor(i,o,r,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new jn,this._registered=!1,this.name="",this.update=new A,this._parent=i,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=wW(this,s)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let o=i.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),xW(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){jx(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){Y1e.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let o=i.isDisabled.currentValue,r=o!==0&&rx(o);Y1e.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?h_e(i,this._parent):[i]}};t.\u0275fac=function(o){return new(o||t)(f(dm,9),f($a,10),f(Wx,10),f(dn,10),f(Le,8),f(tv,8))},t.\u0275dir=G({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ct.None,"disabled","isDisabled"],model:[Ct.None,"ngModel","model"],options:[Ct.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[se([lQe]),X,Be]});let n=t;return n})(),Lh=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=G({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let n=t;return n})();var cQe={provide:dn,useExisting:be(()=>Qx),multi:!0};var dQe=(()=>{let t=class t{constructor(){this._accessors=[]}add(i,o){this._accessors.push([i,o])}remove(i){for(let o=this._accessors.length-1;o>=0;--o)if(this._accessors[o][1]===i){this._accessors.splice(o,1);return}}select(i){this._accessors.forEach(o=>{this._isSameGroup(o,i)&&o[1]!==i&&o[1].fireUncheck(i.value)})}_isSameGroup(i,o){return i[0].control?i[0]._parent===o._control._parent&&i[1].name===o.name:!1}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Qx=(()=>{let t=class t extends yW{constructor(i,o,r,s){super(i,o),this._registry=r,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=mt(tv,{optional:!0})??qx}ngOnInit(){this._control=this._injector.get(Fn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(i){this._state=i===this.value,this.setProperty("checked",this._state)}registerOnChange(i){this._fn=i,this.onChange=()=>{i(this.value),this._registry.select(this)}}setDisabledState(i){(this.setDisabledStateFired||i||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",i),this.setDisabledStateFired=!0}fireUncheck(i){this.writeValue(i)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}};t.\u0275fac=function(o){return new(o||t)(f(le),f(Y),f(dQe),f(fn))},t.\u0275dir=G({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(o,r){o&1&&P("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[se([cQe]),X]});let n=t;return n})();var IW=new at(""),uQe={provide:Fn,useExisting:be(()=>hm)},hm=(()=>{let t=class t extends Fn{set isDisabled(i){}constructor(i,o,r,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new A,this._ngModelWarningSent=!1,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=wW(this,r)}ngOnChanges(i){if(this._isControlChanged(i)){let o=i.form.previousValue;o&&f4(o,this,!1),jx(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}xW(i,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&f4(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_isControlChanged(i){return i.hasOwnProperty("form")}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(o){return new(o||t)(f($a,10),f(Wx,10),f(dn,10),f(IW,8),f(tv,8))},t.\u0275dir=G({type:t,selectors:[["","formControl",""]],inputs:{form:[Ct.None,"formControl","form"],isDisabled:[Ct.None,"disabled","isDisabled"],model:[Ct.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[se([uQe]),X,Be]});let n=t;return n})(),hQe={provide:dm,useExisting:be(()=>pm)},pm=(()=>{let t=class t extends dm{constructor(i,o,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new A,this._setValidators(i),this._setAsyncValidators(o)}ngOnChanges(i){this._checkFormPresent(),i.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(_4(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(i){let o=this.form.get(i.path);return jx(o,i,this.callSetDisabledState),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(i),o}getControl(i){return this.form.get(i.path)}removeControl(i){f4(i.control||null,i,!1),rQe(this.directives,i)}addFormGroup(i){this._setUpFormContainer(i)}removeFormGroup(i){this._cleanUpFormContainer(i)}getFormGroup(i){return this.form.get(i.path)}addFormArray(i){this._setUpFormContainer(i)}removeFormArray(i){this._cleanUpFormContainer(i)}getFormArray(i){return this.form.get(i.path)}updateModel(i,o){this.form.get(i.path).setValue(o)}onSubmit(i){return this.submitted=!0,f_e(this.form,this.directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1}_updateDomValue(){this.directives.forEach(i=>{let o=i.control,r=this.form.get(i.path);o!==r&&(f4(o||null,i),aQe(r)&&(jx(r,i,this.callSetDisabledState),i.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(i){let o=this.form.get(i.path);m_e(o,i),o.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(i){if(this.form){let o=this.form.get(i.path);o&&nQe(o,i)&&o.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){AW(this.form,this),this._oldForm&&_4(this._oldForm,this)}_checkFormPresent(){this.form}};t.\u0275fac=function(o){return new(o||t)(f($a,10),f(Wx,10),f(tv,8))},t.\u0275dir=G({type:t,selectors:[["","formGroup",""]],hostBindings:function(o,r){o&1&&P("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[Ct.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[se([hQe]),X,Be]});let n=t;return n})();var pQe={provide:Fn,useExisting:be(()=>iv)},iv=(()=>{let t=class t extends Fn{set isDisabled(i){}constructor(i,o,r,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new A,this._ngModelWarningSent=!1,this._parent=i,this._setValidators(o),this._setAsyncValidators(r),this.valueAccessor=wW(this,s)}ngOnChanges(i){this._added||this._setUpControl(),xW(i,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}get path(){return h_e(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(o){return new(o||t)(f(dm,13),f($a,10),f(Wx,10),f(dn,10),f(IW,8))},t.\u0275dir=G({type:t,selectors:[["","formControlName",""]],inputs:{name:[Ct.None,"formControlName","name"],isDisabled:[Ct.None,"disabled","isDisabled"],model:[Ct.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[se([pQe]),X,Be]});let n=t;return n})();var mQe=(()=>{let t=class t{constructor(){this._validator=u4}ngOnChanges(i){if(this.inputName in i){let o=this.normalizeInput(i[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):u4,this._onChange&&this._onChange()}}validate(i){return this._validator(i)}registerOnValidatorChange(i){this._onChange=i}enabled(i){return i!=null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=G({type:t,features:[Be]});let n=t;return n})();var fQe={provide:$a,useExisting:be(()=>RW),multi:!0};var RW=(()=>{let t=class t extends mQe{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=rx,this.createValidator=i=>e_e}enabled(i){return i}};t.\u0275fac=(()=>{let i;return function(r){return(i||(i=_i(t)))(r||t)}})(),t.\u0275dir=G({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(o,r){o&2&&B("required",r._enabled?"":null)},inputs:{required:"required"},features:[se([fQe]),X]});let n=t;return n})();var g_e=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ve({type:t}),t.\u0275inj=_e({});let n=t;return n})(),EW=class extends tS{constructor(t,e,i){super(DW(e),bW(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){u_e(this,!1,t),t.forEach((i,o)=>{d_e(this,!1,o),this.at(o).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((i,o)=>{this.at(o)&&this.at(o).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,o)=>{i.reset(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Z1e(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var __e=(()=>{let t=class t{constructor(){this.useNonNullable=!1}get nonNullable(){let i=new t;return i.useNonNullable=!0,i}group(i,o=null){let r=this._reduceControls(i),s={};return Z1e(o)?s=o:o!==null&&(s.validators=o.validator,s.asyncValidators=o.asyncValidator),new Gr(r,s)}record(i,o=null){let r=this._reduceControls(i);return new vW(r,o)}control(i,o,r){let s={};return this.useNonNullable?(Z1e(o)?s=o:(s.validators=o,s.asyncValidators=r),new jn(i,Yt(we({},s),{nonNullable:!0}))):new jn(i,o,r)}array(i,o,r){let s=i.map(a=>this._createControl(a));return new EW(s,o,r)}_reduceControls(i){let o={};return Object.keys(i).forEach(r=>{o[r]=this._createControl(i[r])}),o}_createControl(i){if(i instanceof jn)return i;if(i instanceof tS)return i;if(Array.isArray(i)){let o=i[0],r=i.length>1?i[1]:null,s=i.length>2?i[2]:null;return this.control(o,r,s)}else return this.control(i)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=ee({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var sd=(()=>{let t=class t{static withConfig(i){return{ngModule:t,providers:[{provide:tv,useValue:i.callSetDisabledState??qx}]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ve({type:t}),t.\u0275inj=_e({imports:[g_e]});let n=t;return n})(),Ml=(()=>{let t=class t{static withConfig(i){return{ngModule:t,providers:[{provide:IW,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:tv,useValue:i.callSetDisabledState??qx}]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ve({type:t}),t.\u0275inj=_e({imports:[g_e]});let n=t;return n})();var uu={name:"caret-alt-up",content:'',viewBox:"0 0 512 512"},ps={name:"caret-alt-right",content:'',viewBox:"0 0 512 512"},vr={name:"caret-alt-down",content:'',viewBox:"0 0 512 512"},ms={name:"caret-alt-left",content:'',viewBox:"0 0 512 512"};var v_e={name:"caret-alt-to-right",content:'',viewBox:"0 0 512 512"};var E_e={name:"caret-alt-to-left",content:'',viewBox:"0 0 512 512"};var TW={name:"chevron-up",content:'',viewBox:"0 0 512 512"},E4={name:"chevron-right",content:'',viewBox:"0 0 512 512"},MW={name:"chevron-down",content:'',viewBox:"0 0 512 512"},y4={name:"chevron-left",content:'',viewBox:"0 0 512 512"};var y_e={name:"arrow-right",content:'',viewBox:"0 0 512 512"};var S_e={name:"arrow-left",content:'',viewBox:"0 0 512 512"};var C_e={name:"grid",content:'',viewBox:"0 0 512 512"};var S4={name:"columns",content:'',viewBox:"0 0 512 512"};var D_e={name:"reorder",content:'',viewBox:"0 0 512 512"},b_e={name:"menu",content:'',viewBox:"0 0 512 512"},oS={name:"more-vertical",content:'',viewBox:"0 0 512 512"},A_e={name:"more-horizontal",content:'',viewBox:"0 0 512 512"};var x_e={name:"display-inline-flex",content:'',viewBox:"0 0 512 512"};var w_e={name:"max-width",content:'',viewBox:"0 0 512 512"};var N_e={name:"right-double-quotes",content:'',viewBox:"0 0 512 512"};var I_e={name:"undo",content:'',viewBox:"0 0 512 512"},R_e={name:"redo",content:'',viewBox:"0 0 512 512"};var C4={name:"arrow-rotate-cw",content:'',viewBox:"0 0 512 512"},D4={name:"arrows-no-repeat",content:'',viewBox:"0 0 512 512"};var T_e={name:"arrow-rotate-cw-small",content:'',viewBox:"0 0 512 512"},b4={name:"clock",content:'',viewBox:"0 0 512 512"},mm={name:"calendar",content:'',viewBox:"0 0 512 512"},M_e={name:"save",content:'',viewBox:"0 0 512 512"},O_e={name:"print",content:'',viewBox:"0 0 512 512"};var k_e={name:"link",content:'',viewBox:"0 0 512 512"},L_e={name:"unlink",content:'',viewBox:"0 0 512 512"};var OW={name:"lock",content:'',viewBox:"0 0 512 512"},kW={name:"unlock",content:'',viewBox:"0 0 512 512"},nv={name:"cancel",content:'',viewBox:"0 0 512 512"},F_e={name:"cancel-outline",content:'',viewBox:"0 0 512 512"};var A4={name:"check",content:'',viewBox:"0 0 512 512"},P_e={name:"check-outline",content:'',viewBox:"0 0 512 512"},U_e={name:"check-circle",content:'',viewBox:"0 0 512 512"},Eo={name:"x",content:'',viewBox:"0 0 512 512"},G_e={name:"x-outline",content:'',viewBox:"0 0 512 512"},Xx={name:"x-circle",content:'',viewBox:"0 0 512 512"},rS={name:"plus",content:'',viewBox:"0 0 512 512"};var z_e={name:"minus",content:'',viewBox:"0 0 512 512"};var x4={name:"sort-asc-small",content:'',viewBox:"0 0 512 512"},w4={name:"sort-desc-small",content:'',viewBox:"0 0 512 512"},Yx={name:"filter",content:'',viewBox:"0 0 512 512"},B_e={name:"filter-clear",content:'',viewBox:"0 0 512 512"};var H_e={name:"upload",content:'',viewBox:"0 0 512 512"};var V_e={name:"window",content:'',viewBox:"0 0 512 512"},K_e={name:"window-restore",content:'',viewBox:"0 0 512 512"},j_e={name:"window-minimize",content:'',viewBox:"0 0 512 512"};var N4={name:"search",content:'',viewBox:"0 0 512 512"};var W_e={name:"stick",content:'',viewBox:"0 0 512 512"},q_e={name:"unstick",content:'',viewBox:"0 0 512 512"},Q_e={name:"set-column-position",content:'',viewBox:"0 0 512 512"};var X_e={name:"play-sm",content:'',viewBox:"0 0 512 512"},LW={name:"pause-sm",content:'',viewBox:"0 0 512 512"};var Y_e={name:"star",content:'',viewBox:"0 0 512 512"};var I4={name:"info-circle",content:'',viewBox:"0 0 512 512"};var Y0={name:"exclamation-circle",content:'',viewBox:"0 0 512 512"};var FW={name:"palette",content:'',viewBox:"0 0 512 512"},Z_e={name:"droplet",content:'',viewBox:"0 0 512 512"};var J_e={name:"sliders",content:'',viewBox:"0 0 512 512"};var $_e={name:"bold",content:'',viewBox:"0 0 512 512"},eve={name:"italic",content:'',viewBox:"0 0 512 512"},tve={name:"underline",content:'',viewBox:"0 0 512 512"};var ive={name:"foreground-color",content:'',viewBox:"0 0 512 512"};var nve={name:"strikethrough",content:'',viewBox:"0 0 512 512"},ove={name:"subscript",content:'',viewBox:"0 0 512 512"},rve={name:"supscript",content:'',viewBox:"0 0 512 512"};var sve={name:"list-ordered",content:'',viewBox:"0 0 512 512"},ave={name:"list-unordered",content:'',viewBox:"0 0 512 512"},lve={name:"indent",content:'',viewBox:"0 0 512 512"},cve={name:"outdent",content:'',viewBox:"0 0 512 512"};var R4={name:"insert-middle",content:'',viewBox:"0 0 512 512"};var dve={name:"align-left",content:'',viewBox:"0 0 512 512"},uve={name:"align-center",content:'',viewBox:"0 0 512 512"},hve={name:"align-right",content:'',viewBox:"0 0 512 512"},pve={name:"align-justify",content:'',viewBox:"0 0 512 512"};var mve={name:"code-snippet",content:'',viewBox:"0 0 512 512"},fve={name:"select-all",content:'',viewBox:"0 0 512 512"};var gve={name:"copy",content:'',viewBox:"0 0 512 512"};var _ve={name:"apply-format",content:'',viewBox:"0 0 512 512"},vve={name:"clear-css",content:'',viewBox:"0 0 512 512"};var Eve={name:"table-add",content:'',viewBox:"0 0 512 512"};var yve={name:"table-column-insert-left",content:'',viewBox:"0 0 512 512"},Sve={name:"table-column-insert-right",content:'',viewBox:"0 0 512 512"},Cve={name:"table-row-insert-above",content:'',viewBox:"0 0 512 512"},Dve={name:"table-row-insert-below",content:'',viewBox:"0 0 512 512"},bve={name:"table-column-delete",content:'',viewBox:"0 0 512 512"},Ave={name:"table-row-delete",content:'',viewBox:"0 0 512 512"};var xve={name:"table-delete",content:'',viewBox:"0 0 512 512"},wve={name:"cells-merge",content:'',viewBox:"0 0 512 512"};var Nve={name:"cell-split-horizontally",content:'',viewBox:"0 0 512 512"};var Ive={name:"user",content:'',viewBox:"0 0 512 512"};var Rve={name:"file",content:'',viewBox:"0 0 512 512"},Tve={name:"file-add",content:'',viewBox:"0 0 512 512"},Mve={name:"file-txt",content:'',viewBox:"0 0 512 512"};var Ove={name:"file-excel",content:'',viewBox:"0 0 512 512"};var Zx={name:"file-pdf",content:'',viewBox:"0 0 512 512"};var kve={name:"file-config",content:'',viewBox:"0 0 512 512"};var Lve={name:"file-zip",content:'',viewBox:"0 0 512 512"};var Fve={name:"file-video",content:'',viewBox:"0 0 512 512"},Pve={name:"file-audio",content:'',viewBox:"0 0 512 512"},T4={name:"file-image",content:'',viewBox:"0 0 512 512"},Uve={name:"file-presentation",content:'',viewBox:"0 0 512 512"},Gve={name:"file-data",content:'',viewBox:"0 0 512 512"},zve={name:"file-disc-image",content:'',viewBox:"0 0 512 512"},Bve={name:"file-programming",content:'',viewBox:"0 0 512 512"};var Hve={name:"chart-line-markers",content:'',viewBox:"0 0 512 512"};gt();gt();gt();_o();xo();var yo=(()=>{class n{constructor(){this.changes=new di({rtl:void 0})}notify(e){this.changes.next({rtl:e})}get(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=ee({token:n,factory:n.\u0275fac}),n})(),Vi=(()=>{class n{get override(){return!1}ngOnChanges(e){this.register(e),Object.keys(e).some(i=>!e[i].isFirstChange())&&this.service.notifyChanges()}ngOnInit(){this.subscription=this.service.changes.pipe(bA(1)).subscribe(()=>this.register(this))}register(e){Object.keys(e).forEach(o=>this.service.register(o,this[o],this.override))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=G({type:n,features:[Be]}),n})(),pc=new at("Kendo UI Right-to-Left token"),Et=new at("Localization key prefix"),W=(()=>{class n{constructor(e,i,o){this.prefix=e,this.messageService=i,this._rtl=o,this.changes=new di({rtl:this._rtl}),this.dictionary={},i&&(this.subscription=i.changes.pipe(He(({rtl:r})=>r!==void 0?r:this._rtl),Tt(r=>this._rtl=r)).subscribe(r=>{this.dictionary={},this.changes.next({rtl:r})}))}get rtl(){return this._rtl}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}get(e){let i=this.key(e);return this.dictionary[i]}register(e,i,o=!1){let r=this.key(e),s=i;if(!o){if(Object.hasOwnProperty.call(this.dictionary,r))return;s=this.defaultValue(r,i)}this.dictionary[r]=s}notifyChanges(){this.changes.next({rtl:this.rtl})}key(e){return this.prefix+"."+e}defaultValue(e,i){if(!this.messageService)return i;let o=this.messageService.get(e);return o===void 0?i:o}}return n.\u0275fac=function(e){return new(e||n)(Z(Et),Z(yo,8),Z(pc,8))},n.\u0275prov=ee({token:n,factory:n.\u0275fac}),n})();gt();gt();gt();gt();var PW=()=>typeof window<"u";var UW={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},gQe={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},GW={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},_Qe={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},Vve=(n,t,e)=>{for(let i in t)if(t.hasOwnProperty(i)&&t[i].test(n))return i;return e!==void 0?e:n},sS=n=>{let t,e=[];for(let i in UW)if(UW.hasOwnProperty(i)){if(e=n.match(UW[i]),!e)continue;if(i==="windows"&&"plugins"in window.navigator)return null;let o={};return o.device=i,o.browser=Vve(n,_Qe,"default"),o.name=Vve(i,gQe),o[o.name]=!0,o.majorVersion=e[2],o.minorVersion=e[3]?e[3].replace("_","."):".0",t=o.minorVersion.replace(".","").substr(0,2),o.flatVersion=o.majorVersion+t+new Array(3-(t.length<3?t.length:2)).join("0"),o.cordova=typeof window.PhoneGap!==void 0||typeof window.cordova!==void 0,o.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||o.cordova,o}return null},Jx=n=>{let t=null,e=[];for(let i in GW)if(GW.hasOwnProperty(i)&&(e=n.match(GW[i]),e)){t={},t[i]=!0,t[e[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||e[2],10);break}return t},M4=PW()&&window.navigator?window.navigator.userAgent:null,Z0=M4?Jx(M4):null,O4=M4?sS(M4):null,Kve=PW()&&"ontouchstart"in window,jve=Z0&&!Z0.chrome&&window.MSPointerEvent,k4=Z0&&!Z0.chrome&&window.PointerEvent,J0=O4&&(Kve||jve||k4);var vQe=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function zW(n){let t=[];return n.replace(vQe,function(e,i,o,r){t.push(i!==void 0?i:o||r)}),t}var $x={};$x.undefined=n=>n;function fm(n){if($x[n])return $x[n];let t=zW(n);return $x[n]=function(e){let i=e;for(let o=0;on;var aS=(n,t)=>e=>t(n(e)),hu=(n,t,e)=>n.addEventListener&&n.addEventListener(t,e),tl=(n,t,e)=>n&&n.removeEventListener&&n.removeEventListener(t,e),lS=()=>{},BW=n=>n.preventDefault(),SQe=/touch/;function cS(n){return n.type.match(SQe)?{pageX:n.changedTouches[0].pageX,pageY:n.changedTouches[0].pageY,clientX:n.changedTouches[0].clientX,clientY:n.changedTouches[0].clientY,type:n.type,originalEvent:n,isTouch:!0}:{pageX:n.pageX,pageY:n.pageY,clientX:n.clientX,clientY:n.clientY,offsetX:n.offsetX,offsetY:n.offsetY,type:n.type,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,altKey:n.altKey,originalEvent:n}}var ov=(()=>{class n{static supportPointerEvent(){return typeof window<"u"&&window.PointerEvent}get document(){return this._element?this._element.ownerDocument:document}constructor({press:e=lS,drag:i=lS,release:o=lS,mouseOnly:r=!1}){this._pressHandler=aS(cS,e),this._dragHandler=aS(cS,i),this._releaseHandler=aS(cS,o),this._ignoreMouse=!1,this._mouseOnly=r,this._touchstart=s=>{s.touches.length===1&&this._pressHandler(s)},this._touchmove=s=>{s.touches.length===1&&this._dragHandler(s)},this._touchend=s=>{s.touches.length===0&&s.changedTouches.length===1&&(this._releaseHandler(s),this._ignoreMouse=!0,setTimeout(this._restoreMouse,2e3))},this._restoreMouse=()=>{this._ignoreMouse=!1},this._mousedown=s=>{let{which:a}=s;a&&a>1||this._ignoreMouse||(hu(this.document,"mousemove",this._mousemove),hu(this.document,"mouseup",this._mouseup),this._pressHandler(s))},this._mousemove=s=>{this._dragHandler(s)},this._mouseup=s=>{tl(this.document,"mousemove",this._mousemove),tl(this.document,"mouseup",this._mouseup),this._releaseHandler(s)},this._pointerdown=s=>{s.isPrimary&&s.button===0&&(hu(this.document,"pointermove",this._pointermove),hu(this.document,"pointerup",this._pointerup),hu(this.document,"pointercancel",this._pointerup),hu(this.document,"contextmenu",BW),this._pressHandler(s))},this._pointermove=s=>{s.isPrimary&&this._dragHandler(s)},this._pointerup=s=>{s.isPrimary&&(tl(this.document,"pointermove",this._pointermove),tl(this.document,"pointerup",this._pointerup),tl(this.document,"pointercancel",this._pointerup),tl(this.document,"contextmenu",BW),this._releaseHandler(s))}}bindTo(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())}_bindToCurrent(){let e=this._element;if(this._usePointers()){hu(e,"pointerdown",this._pointerdown);return}hu(e,"mousedown",this._mousedown),this._mouseOnly||(hu(e,"touchstart",this._touchstart),hu(e,"touchmove",this._touchmove),hu(e,"touchend",this._touchend))}_unbindFromCurrent(){let e=this._element;if(this._usePointers()){tl(e,"pointerdown",this._pointerdown),tl(this.document,"pointermove",this._pointermove),tl(this.document,"pointerup",this._pointerup),tl(this.document,"contextmenu",BW),tl(this.document,"pointercancel",this._pointerup);return}tl(e,"mousedown",this._mousedown),this._mouseOnly||(tl(e,"touchstart",this._touchstart),tl(e,"touchmove",this._touchmove),tl(e,"touchend",this._touchend))}_usePointers(){return!this._mouseOnly&&n.supportPointerEvent()}update({press:e=lS,drag:i=lS,release:o=lS,mouseOnly:r=!1}){this._pressHandler=aS(cS,e),this._dragHandler=aS(cS,i),this._releaseHandler=aS(cS,o),this._mouseOnly=r}destroy(){this._unbindFromCurrent(),this._element=null}}return n.default=n,n})();xo();_o();var CQe=["banner"],DQe=["kendoWatermarkOverlay",""],bQe=()=>({display:"flex",alignSelf:"center",marginRight:"8px"}),AQe=()=>({display:"flex",alignItems:"center",marginLeft:"24px"}),xQe=()=>({marginRight:"8px",display:"flex"});function wQe(n,t){if(n&1){let e=Se();y(0,"div",1,2)(2,"span",1),k0(),y(3,"svg",3),w(4,"path",4),S()(),BO(),y(5,"span"),U(6,"No valid license found for Kendo UI for Angular. Learn how to activate your license."),S(),y(7,"div",1)(8,"a",5)(9,"button",6),k0(),y(10,"svg",3),w(11,"path",7),S()()(),BO(),y(12,"button",8),P("click",function(){K(e);let o=v();return j(o.closeBanner())}),k0(),y(13,"svg",3),w(14,"path",9),S()()()()}if(n&2){let e=v();p("ngStyle",e.bannerStyles),g(2),p("ngStyle",gn(7,bQe)),g(5),p("ngStyle",gn(8,AQe)),g(),p("href",e.licenseKeyUrl,Po)("ngStyle",gn(9,xQe)),g(),p("ngStyle",e.buttonStyles),g(3),p("ngStyle",e.buttonStyles)}}var me=()=>typeof document<"u",ui=(n,t,e=!0)=>typeof t[n]<"u"&&(!t[n].isFirstChange()||!e)&&t[n].previousValue!==t[n].currentValue,qn=(n,t,e=!0)=>n.some(i=>ui(i,t,e)),$e=n=>n&&n.observers.length>0,Ti=()=>{let n="";for(let t=0;t<32;t++){let e=Math.random()*16|0;(t===8||t===12||t===16||t===20)&&(n+="-"),n+=(t===12?4:t===16?e&3|8:e).toString(16)}return n},rv=n=>Jx(n).safari||sS(n)&&sS(n).browser==="mobilesafari",Qve=n=>{let t=Jx(n),e=sS(n);return t&&t.mozilla||e&&e.browser==="firefox"},sa=(()=>{class n{constructor(e,i){this.element=e,this.ngZone=i,this.enableDrag=!0,this.kendoPress=new A,this.kendoDrag=new A,this.kendoRelease=new A}ngOnInit(){this.toggleDraggable()}ngOnChanges(e){ui("enableDrag",e)&&this.toggleDraggable()}ngOnDestroy(){this.destroyDraggable()}toggleDraggable(){me()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new ov({drag:e=>this.kendoDrag.next(e),press:e=>this.kendoPress.next(e),release:e=>this.kendoRelease.next(e)}),this.ngZone.runOutsideAngular(()=>this.draggable?.bindTo(this.element.nativeElement))))}destroyDraggable(){this.draggable&&(this.draggable.destroy(),this.draggable=void 0)}}return n.\u0275fac=function(e){return new(e||n)(f(Y),f(oe))},n.\u0275dir=G({type:n,selectors:[["","kendoDraggable",""]],inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},features:[Be]}),n})(),Fh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=_e({imports:[[We]]}),n})(),Xve=(n,t,e)=>{for(;n&&n!==e&&!t(n);)n=n.parentNode;if(n!==e)return n},$0=(n,t)=>{for(;n&&!t(n);)n=n.parentNode;return n},U4=(n,t,e=!1)=>{if(!$0(t,r=>r===n))return!1;let o=$0(t,r=>r===t);return o&&(e||o!==n)};var NQe=/^(?:a|input|select|option|textarea|button|object)$/i,Yve=n=>{if(!n.tagName)return!1;let t=n.tagName.toLowerCase(),e=!!n.getAttribute("tabIndex");return!n.disabled&&NQe.test(t)||e},Zve=n=>{let t=n.getBoundingClientRect(),e=t.width>0&&t.height>0,i=t.x!==0&&t.y!==0;return(e||i)&&window.getComputedStyle(n).visibility!=="hidden"};var qo=(()=>{class n{constructor(e,i,o){this.element=e,this.ngZone=i,this.renderer=o,this.events={}}ngOnInit(){if(!this.element||!this.element.nativeElement)return;let e=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(()=>{for(let i in e)Object.hasOwnProperty.call(e,i)&&this.subscriptions?.push(this.renderer.listen(this.element.nativeElement,i,this.scope?e[i].bind(this.scope):e[i]))})}ngOnDestroy(){if(this.subscriptions){for(let e=0;e{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=_e({}),n})(),F4=class{constructor(t){this.resizeBatchService=t,this.resize=new A,this.acceptedSize=!1,this.state=0}acceptSize(t=this.measure()){this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0}checkChanges(){me()&&this.state===0&&(this.state=1,this.resizeBatchService.schedule(this,this.init))}destroy(){this.resizeBatchService.cancel(this)}checkSize(){if(!this.parentElement)return!1;let{width:t,height:e}=this.measure();return t===this.lastWidth&&e===this.lastHeight?!1:(this.lastWidth=t,this.lastHeight=e,this.acceptedSize=!1,this.resize.emit(),!0)}initSize(){let t=this.measure();this.lastWidth=t.width,this.lastHeight=t.height}measure(){let t=0,e=0;return this.parentElement&&(e=this.parentElement.offsetHeight,t=this.parentElement.offsetWidth),{height:e,width:t}}},L4=n=>{let t=document.createElement("div");return t.style.cssText=n,t},IQe=(n,t)=>getComputedStyle(n,null).getPropertyValue(t),HW="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",Jve="position: absolute; left: 0; top: 0; transition: 0s;",RQe=Jve+"width: 200%; height: 200%;",VW=class extends F4{constructor(t,e,i){super(t),this.element=e,this.ngZone=i}checkChanges(){if(this.state===2){this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize);return}super.checkChanges()}destroy(){if(super.destroy(),this.subscription&&this.subscription.unsubscribe(),this.expand){let t=this.element?.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}}checkSize(){return super.checkSize()?(this.reset(),!0):!1}init(){let t=this.parentElement=this.element?.nativeElement.parentElement;IQe(t,"position")==="static"&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()}render(){let t=this.element?.nativeElement;t.style.cssText=HW,t.setAttribute("dir","ltr"),this.expand=L4(HW),this.expandChild=L4(Jve),this.expand.appendChild(this.expandChild),t.appendChild(this.expand),this.shrink=L4(HW);let e=L4(RQe);this.shrink.appendChild(e),t.appendChild(this.shrink)}reset(){let t=this.expandChild;t.style.width="100000px",t.style.height="100000px";let e=this.expand;e.scrollLeft=1e5,e.scrollTop=1e5;let i=this.shrink;i.scrollLeft=1e5,i.scrollTop=1e5}subscribe(){this.ngZone.runOutsideAngular(()=>{this.subscription=$t(Rt(this.shrink,"scroll"),Rt(this.expand,"scroll")).subscribe(()=>{this.checkSize()})})}},TQe=typeof ResizeObserver<"u",P4=class extends F4{constructor(t,e,i){super(t),this.element=e,this.ngZone=i}static supported(){return TQe}destroy(){super.destroy(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null}init(){this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(()=>{this.resizeObserver=new ResizeObserver(()=>{this.checkSize()}),this.resizeObserver.observe(this.parentElement)})}},$ve=(()=>{class n{constructor(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}schedule(e,i){this.scheduled.push({instance:e,method:i}),this.subscription||this.ngZone.runOutsideAngular(()=>{this.subscription=nn(this.resolvedPromise).subscribe(this.flush)})}isScheduled(e){return!!this.scheduled.find(i=>i.instance===e)}cancel(e){let i=this.scheduled,o=i.length;for(let r=0;r{e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(Z(oe))},n.\u0275prov=ee({token:n,factory:n.\u0275fac}),n})(),Wve=10,_n=(()=>{class n{constructor(e,i,o){this.rateLimit=Wve,this.resize=new A;let r=P4.supported()?P4:VW;this.resizeService=new r(e,i,o);let s=1e3/(this.rateLimit||Wve);this.subscription=this.resizeService.resize.pipe(ra(s)).subscribe(()=>{this.resizeService.acceptedSize||this.resize.emit()})}ngAfterViewChecked(){this.resizeService.checkChanges()}ngOnDestroy(){this.subscription.unsubscribe(),this.resizeService.destroy()}acceptSize(e){this.resizeService.acceptSize(e)}}return n.\u0275fac=function(e){return new(e||n)(f($ve),f(Y),f(oe))},n.\u0275cmp=F({type:n,selectors:[["kendo-resize-sensor"]],inputs:{rateLimit:"rateLimit"},outputs:{resize:"resize"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();var Mn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ve({type:n}),n.\u0275inj=_e({providers:[$ve]}),n})(),Wn=class{},k=function(n){return n[n.Alt=18]="Alt",n[n.ArrowDown=40]="ArrowDown",n[n.ArrowLeft=37]="ArrowLeft",n[n.ArrowRight=39]="ArrowRight",n[n.ArrowUp=38]="ArrowUp",n[n.Backspace=8]="Backspace",n[n.Control=17]="Control",n[n.Delete=46]="Delete",n[n.Digit0=48]="Digit0",n[n.Digit1=49]="Digit1",n[n.Digit2=50]="Digit2",n[n.Digit3=51]="Digit3",n[n.Digit4=52]="Digit4",n[n.Digit5=53]="Digit5",n[n.Digit6=54]="Digit6",n[n.Digit7=55]="Digit7",n[n.Digit8=56]="Digit8",n[n.Digit9=57]="Digit9",n[n.End=35]="End",n[n.Enter=13]="Enter",n[n.Escape=27]="Escape",n[n.F1=112]="F1",n[n.F2=113]="F2",n[n.F10=121]="F10",n[n.Home=36]="Home",n[n.Insert=45]="Insert",n[n.KeyA=65]="KeyA",n[n.KeyB=66]="KeyB",n[n.KeyC=67]="KeyC",n[n.KeyD=68]="KeyD",n[n.KeyE=69]="KeyE",n[n.KeyF=70]="KeyF",n[n.KeyG=71]="KeyG",n[n.KeyH=72]="KeyH",n[n.KeyI=73]="KeyI",n[n.KeyJ=74]="KeyJ",n[n.KeyK=75]="KeyK",n[n.KeyL=76]="KeyL",n[n.KeyM=77]="KeyM",n[n.KeyN=78]="KeyN",n[n.KeyO=79]="KeyO",n[n.KeyP=80]="KeyP",n[n.KeyQ=81]="KeyQ",n[n.KeyR=82]="KeyR",n[n.KeyS=83]="KeyS",n[n.KeyT=84]="KeyT",n[n.KeyU=85]="KeyU",n[n.KeyV=86]="KeyV",n[n.KeyW=87]="KeyW",n[n.KeyX=88]="KeyX",n[n.KeyY=89]="KeyY",n[n.KeyZ=90]="KeyZ",n[n.NumpadDecimal=110]="NumpadDecimal",n[n.PageDown=34]="PageDown",n[n.PageUp=33]="PageUp",n[n.Shift=16]="Shift",n[n.Space=32]="Space",n[n.Tab=9]="Tab",n}(k||{}),sv=['a[href]:not([tabindex^="-"]):not([disabled])','area[href]:not([tabindex^="-"]):not([disabled])','input:not([tabindex^="-"]):not([disabled])','select:not([tabindex^="-"]):not([disabled])','textarea:not([tabindex^="-"]):not([disabled])','button:not([tabindex^="-"]):not([disabled])','iframe:not([tabindex^="-"]):not([disabled])','object:not([tabindex^="-"]):not([disabled])','embed:not([tabindex^="-"]):not([disabled])','*[tabindex]:not([tabindex^="-"]):not([disabled])','*[contenteditable]:not([tabindex^="-"]):not([disabled]):not([contenteditable="false"])'].join(","),Go=n=>n!=null,MQe=n=>n instanceof String||typeof n=="string",OQe=n=>Go(n)&&!Array.isArray(n)&&typeof n=="object",KW=n=>n.trim().replace(/\s+/g," ").split(" "),jW=n=>{if(Array.isArray(n))return FQe(n);if(OQe(n))return kQe(n);if(MQe(n))return LQe(n)},kQe=n=>{let t=[];return Object.keys(n).forEach(e=>{let i=KW(e);n[e]&&i.length&&t.push(...i)}),t},LQe=n=>{let t=[];return KW(n).forEach(i=>{t.push(i)}),t},FQe=n=>{let t=[];return n.forEach(e=>{let i=KW(e);i[0]&&t.push(...i)}),t},PQe=` diff --git a/finance-portfolio/index.html b/finance-portfolio/index.html index 45517ea2..d720846e 100644 --- a/finance-portfolio/index.html +++ b/finance-portfolio/index.html @@ -12,5 +12,5 @@ - + diff --git a/finance-portfolio/main-MNYMSCRG.js b/finance-portfolio/main-HP2VXT3I.js similarity index 99% rename from finance-portfolio/main-MNYMSCRG.js rename to finance-portfolio/main-HP2VXT3I.js index e49fd04e..5f39ed8f 100644 --- a/finance-portfolio/main-MNYMSCRG.js +++ b/finance-portfolio/main-HP2VXT3I.js @@ -21,7 +21,7 @@ ${e.map((n,r)=>`${r+1}) ${n.toString()}`).join(` zIndex: 101; pointerEvents: none; backgroundImage: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuLL9Q/NeCkoVUQ4/d+6Ijev1yof1rAUVMvQgjJHebrSRu+CEmWo/O8hISgCjStKpgiGoDWed4AUP/hwGf++Pi4hQYyFHgDzBP3T7A8b0uo/zD4+sMBy1CwWKR/YjF+fS/Uv2di0t/eEAdBT0QnvlD/PolR/xoOgu4JUd7bFdS/e6I1foODoFuqz3M2mUziFF+of5dEb/xGwyAYCwmCVuPNYv5MqX94Yl75NWKD4PLyEm92KqQoqH9Y8Bnis0zC+A14LbxxVqiVCfUPh678plxNFYQe5pjRgAgpDAv4IOAHJyCEkDJoiPaeCyG5UA1oRIYWHNivSSbV0wLq/zbQXz+bS8kV/AeZJ35NCcYPqH8zvv4VS8kVFou8phTjB9T/NcVt+zgI9rjQDRwTgPrvKcn5v4CDYIfT/vtFiS/UHxRr/AYHwQ4t9DiVwihZ/+KN36ATKJsS9U+utr9r/EGQdQSUNFKa/geZkImQ/2rHlznnQDG7oX9b9Xwl5AUl6G9oLcSSxl8Q/p4P13YJIaQMisvzEkJ2lJjnJyQY3lnoJGfNUvP8oUhZf7c70s2eCG1wL7uhRJ0iQnCveiDIhzf7t/f9IvP8IUhJfx/b9rErUkvgRVPIE1fv6xrvbzweu7OzM3d7e4v3OhfSilT092HMJzCxF4u43eWctfFvt1uHu9nxXvF1CWmtroldfx9W+HVErINAjX+M65ngAPxnOAJ1AiMhrUjBCdD4Oya2QYBlPwx8vV47WwFg+a+XZbrz83NzANz/ByBmJ0Dj74lYBgECfrbnt6U/DB/vC7388L2rqyu8vzshwYjRCdD4e8YfBLidVgYA0X7M9jB8PGazmbu5ualnfiz9dSAsufwPTwz6+5jjp/H3CD5ofPB9343u9v3u6+U+0jyY7eEA8Hx3d4c/QjvvMyGdMZT+TeA9wBHR+DPHUn3T6bRe7uMxn89tn18v/TH7O17gQEheYM9vEX7M9hbsg/FbHED3/IPPSISQgNhyE0au+7x7PPtOQFcB3PMTMjTYf4cyRN3zL2DgMHgs/7XU99acgDIWEgUh9W/4uWMh8QKBvCh8qxSR7fmxt0eEv8kJ6MzP8/2REFL/g59bp/o0xsMAb6xAnBB5Yr+6D3X9KOpBxP/ACWA0jFnoEw+h9D/4mYd5/pGQeAlRLFK95tJy+35578PDQ+0E9LAPi3wixAUsFmKRT6I0DIIPzdJuf6R3i+UeZnsz/nqjPx47/fMpZ/54OVb/g5/BZi4pY4Pgo8s2d3CkF0Z/cXFRL/+Xy2W9BdBUH4/5JsBn9W94PZu5pI77QzMOjepiNp/j71hO//fv31sr7qmtfT73i3xWjnvAZHhH/4nquXrLwB2bueSJ27Vmvodhq4df4BmzvQb3IPxWl/zgRl/DwZA4GrhdYFUHfbHE1y0enXsJ2FLfCnggvjqBejDoTI8o38ocgJAscNq8BY4fv/Uf+J46gjkdQcbA+19fXzs7zQfR8TWcgH+kFw/u+fMDKz/o3OQETk9PLcWLPSBbeeWELd91eb+CcTc5gXr6r9J8PNKbF/7S3z+6DYcvDasBOv6M0GUduNDfv+cEYPhjIVmA+I3Vc4gaOQzfHAECvb4joAPICCzlrIJP93h/dAIYDBQ/L8wBNC37rXUblv5CB5AfGvi5h6F7Ed9GJ2CZP0b780O1vreVnnhOAFsBOoCMscg/HMBbTsCO+grJFkvvHmYCSnYA/5MMcbsiH6TykNgfr9fry58/f0oltFxcXMj379+l+h42gBcnJyfr6iXfq1nhJ56FZIeuAq+fn59Xv379Oq0CgVJNBEIydAAavLv98ePHeSX4bfX1OQSv9noQ/a7y9A8HTuAcTqB63FSPZyE5Mq3GwOW3b99kNpu9+5e/fv2Kp3+FpAW8vB3cwbLOOvZYfl9LfGdW9KOn+mZCskZXhCuL9vtLfjvshd97hWArpn8TxGn5rhZzOL/gB19DYBzzxcEeTQEtGfArB7c7xbmyVu4YExoTuNcYEL6eCkkTxHYOmna4wzQfvq8z/+o949e940hIkjTp5/ZXjm/1+VQfr856UP/EcLtqr9s/OQENDl5+wPhH3nHQZK6mJjucNvNo2w+A+icC0jaY4a2LT5MT+Mye3+l58JSupiY7XIA2XtQ/IZw2f7D9v+X6D53AZ/f8LqGrqckOF7CNF/VPAF3Or6xvv53r951Amx5+DYOAXWEjxXXQxov6R4zTSzusht8OfABE+r3U39y1iPbbIODVX3ED4/Tagk8kENQ/QiyaC1Fg7PX6frm0Mk6/wUOQ8l799+j9I0cDwcF1ov4R4Xbde2vjxi92ogsPzPrY92szD7buJiQn3K6+v17q2yxvlV1u3+TRAn4jIYTkAfbymOWx1AcwfHMEXp5/JISQ9PEDd867ohvGbvt+cwRe6+5ee7ltNpuVf7yYdA8+68fHxy0+exkY6t8RGnSxJX19yAd7fWvhjEs7NOCHb2D9/+AGqO3HQGSeuD/8PD/GggwM9e8IBPCwr7ciHnzA6NrqtW5+4QRkIByLRXrDRXhXH/XvCKRccEuPX8mHD9jr7Vc7AV32D9rJh4Oge2I0foP6d8QHnADO9kdxYw8HQXfEbPwG9e+It5yAlvdG1beNgyA8KRi/Qf07oskJIEYQw8x/SMMgGAs5CmR0UjF+g/oHwh00YzAn0OZgT1/YINBU5VTIUeCzw2eYivEb1L8l7o1mDm7X220a48x/iNtVLE4dC5OOxu2794wlMaj/kbgAzRwIIQmS4p6PEBKIp6enexo/IYWCPdNms1nnbPxat7BwvH/+P7Dt08/kUjKH+hcOxGeeeI8f86lYSuZQ/8JhsciehoBv9rMi9VdcwZcucBCkVeEXmuL1dy0vbciBkgdBycZvFKs/8/x7ShwENP49xelP8V9T0iBgncdritGfxv82/iDIORJ+EAGfCKnJXn8a//to7fgy51y45sCX1P812erPZR8hBVMZ/Ax9+2j8hBSIHumcpXikkxBCBsXtz8QnUyXndvfz8Sx8AFLUnwTEveyKE32KyAK+7IYThqT0V88/o+cPBz7TVPLEJdb2d00y+pv4elHHTEgwUigWYaq3O6LXn56/e2IeBDT+7olWf4rfHzEOAurfH9HpT/H7J6ZBQP37Jxr9Kf5w+IMAt9PKQOB6NurfP4Prjyg/jX9Y8JnDAHE/vQwE/m0MQOrfP4PqX/3jp15Dj4kQQspCK5SK7OZDCCGEEBIfbneH4kgCoT9vLCQJguqPaD8CDdXzlZDogaEuFotgKSLL9uBnYmAJiZqg+vupPlzbJSR6YKSh8sSODVyTI5j+LO9NlxDFIqzzSJfW+jPPnz4Ng+DDGRvqnz5t9GeePxNsEHx2+U798+BY/e3FzPNnwLE6Uv88oI6EEEIIIYQQQgghhBBCCCGEEEIIIYQQQkiRoHyQxz/T51gdqX8evKfjlzdeNHp4eFjp15OTk5N/hCQHjoFWOt7o139VOj5/8HXUPwOO1f+/02ApXEhJmmnTzIP6p49r28wlRFMJMgwhmnlQ/3RB854g/RwaBgF7wkVOyGYe1D9N0L4vWDMXGwTaFHIsJGpgpF5TyIm0hPqnR6XTdLPZrF2oZi7aVIDePxFgqCH1ov6EEEIIITHRtl7jixBCkuToPH8ocGMQrihmiqh/8Jnjau6hrwen/sPQOs8fAgxA5on7xxcfBigDQf2HIUSdR6g3wmKRnolGfKH+QxCT/vaGOAh6Ijrxhfr3SYz613AQdE+04gv174Ng5b1dwUHQHTEbv0H9u6X6PGeTySTu69oaBsFYSCui9/we1L87tBpzFv1naoPg8vISA2AqpBX4DPFZxm78BvUn9awF8R07yrRGPf80pdmU+hNCyJHoYa4ZHSghhWEBXwT84ASEEFIGDdmec8mJ6j+EyNAiu/9YACC+fjaXkinU/21SSPW2BuIzT/waX/yKpWQK9W+mCOMHLBZ5TfbLPg/q/5pijN/gINhTnPhC/X1cwAauScFBUKbxG9R/h9P7F0rTv6bkQVCy8Rt0Aju00OtUSqTEQZBSbX/X0AmQF4Mg5wi4cRAJn0jhlKY/aUBrx5c558ANzYUvafx7StAfqxv0UKyer4QQUg5+zAfXdgkhpAxKqvMghHgUm+cPhdufhU/Oa+qRTp6Jb0HK+oOi8/whcC+74SSTIrJlH7vitCMl/RHcqx4I8uHN/u19v9w8f1swi6aWJ+aeLxyp6F+9r2u8v/F47M7Oztzt7S3e61xIe1IqFmGFX3hi19/tLuesjX+73brFYlG/V3xdQlq7F1JwAjT+7ohVfzX+Ma5ngwPwn+EI1AmMhLQnZidA4++e2PTHsh8Gvl6vna0AsPzXy1Ld+fm5OQDu/0MRoxOg8fdHLPoj4Gd7flv6w/DxvtDLD9+7urrC+7sTEhZ/EOB2WhkYE57G3w8x6I9oP2Z7GD4es9nM3dzc1DM/lv46FpZc/ncEBgEMD7XVMjB4DxiINP7+GEp/t7/voF7uI0WJ2R4OAM93d3f4I7TzPhNCSD5Yqm86ndbLfTzm87nt8+ulP2Z/x+vQCMkL7Pktwo/Z3oJ9MH6LA+ief/AVKSEkILbdgJHr3v4ez74T0FUA9/wxgP1XF0Lozx0LiZqQ+uuefwEDh8Fj+a+lvrfmBJSxkOGBEF4UNliKyFJ9usdjgCdSQupve37s7RHhb3ICOvPzfH8swDhD54kb8vwjIVESSn+/ug91/SjqQcT/wAlgNhiz0CcyQhaLsMgnPULoX73m0nL7fnnvw8ND7QT0sA+LfGKlYRB82ks7NnNIlmP1d/sjvVtsJTDbm/HXG/3x2OmfTznzR44NgmOX7Y7NHJLms/q7gyO9MPqLi4t6+b9cLustgKb6eMw3FdwfmjFggKg3X71l4I7NHJLmHf3PVPs5/o7l9H///r214p7a2udzv8hn5RgDShsN3Czg1SE4lom6xKO4heB2rdnvYdi6QljgGbO9BvfgOLa65Ac3+hpOBinjtHkDhMdv/Qe+p45gTkeQL7bUtwIeaK5OoJ4MdKZHlG9lDkBIPsDzQ/QmJ3B6emopHqwB2corQzDDX19fOzvNh7GAr+EE/CO9eHDPnxH+0t8/ugnBpWE1QOHzwpbvurxfwbibnEA9/VdpPh7pzQjs3yyfK2rkMHxzBAj0+I6ADiAvdFsHLvT37zkBGP5YSB6YA2ha9lvrJiz9hQ4gO7CVswo+jfH80QlgMqD2GaKC35unF88JYCtAB5AnGvi9h6F7GZ9GJ2CZP0b7M8XSO4eZADqAvLHIPxzAW07AjvpKYfxPCkBngevn5+fVr1+/TqtAoFQDQUieuF2RD1J5SOyP1+v15c+fP6Vy9HJxcSHfv3+X6nsIAF2cnJysq5d8r1YAP/EshVGEA6iYVkZ/+e3bN5nNZu/+5a9fv+LpXyHJocG72x8/fpxXDv+2+vocDr+K9cDp31UrvYcDJ3AOJ1A9bqrHs5D80BlhZdF+f8lvhz3we68QZMX0T3pglWcHd6Cjdeyx/L6W+M6s6EdP9c2ElIHbneJaWStnFIRoTOBe94D4eiokSZyW72oxl/MLfvA1jB6642CPpoCXDPhljO79RwffG6kj2OrzqT5e1Xo3vZ7EC2K7B0073GGaD9/XmX/1nvFT/4Rx2syjbT+AIW+gIZ/D7ao9b//kBDQ4ePkB46f+qeICtPFy2g8gpavJSwZpW8zw1sWnyQl8Zs9P/RPFBWzj5RK6mrxkTCfb/1uu/9AJfHbPT/0Tw3XQxqthELArcETocn5lffvtXL/vBNr08KP+CQFxvLbQEwmEDQJe/RQXTi/tsBp+O/AFEOn3Un9z1yLaT/0TQgNBwb20Zg/o/SPBsjkwShh7vb5fLq2M22/wEqS8V/+9sRBChsXtuvfWxo1f7EQnHpj1se/XZh5s3U1ITrhdfX+91LdZ3io73b7JqwX8RkIIyQPs5THLY6kPYPjmCLw8/0hI3iAd8/j4uN1sNisZGLwH/3gpCYcfuHPeFd0wdtv3myPwWnf32suR+veMn+fHBy8DA0fEPHF4NOhmS/r6kA/2+tbCHZd2aMAP38D6/8ENUNtP/XvERXhXn2OxSCcggId9vRXx4LNF12avdfsLJyADQf17IkbjNzgIwoOUK27p8Sv58Nl6vf1qJ6DL/kE7+VD/jonZ+A0OgvB8wAngbH8UN/ZQ/45IwfgNDoLwvOUEtLw3qr6N1D8wiOimYvxGwyAYC2lFkxNAjCCGmf8Q6h8QRHeR7knF+A0bBJqqmgr5NO6gGYc5gTYHe/qC+gfC7bv3jCUx3K5ibepYmPJp3BvNXNyut+M0xpn/EOpPyBG4AM1cCCEJkmLMhxASiKenp3saf4Fg2Vc9FsjpSuZo3hr/115r1lMAe+bNZrPO2fip/wH+nq9iKZkD8ZknLhfq79EQ8MneK7JYpGyov5JShV9oOAjKvnSjeP1LNn6j5EHgWl7akgPF6k/j31PiIGCef09x+jPP+5qSBgGd/2uKcgIHEdCJkBp/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg=='); -`,ZIe={display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:"16px",right:"16px",padding:"12px",borderRadius:"4px",boxShadow:"0px 4px 5px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.03)",fontSize:"14px",fontWeight:400,lineHeight:"20px",backgroundColor:"#FFC000",color:"#1E1E1E",zIndex:999},$Ie={display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"},JIe="https://www.telerik.com/kendo-angular-ui/components/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-banner",Ese=!1,Tf=(()=>{class t{constructor(){this.watermarkStyle=XIe,this.isOpen=!0,this.bannerMounted=!1,this.bannerStyles=ZIe,this.buttonStyles=$Ie,this.licenseKeyUrl=JIe}ngOnInit(){Ese||(this.bannerMounted=!0,Ese=!0)}ngAfterViewInit(){this.isBannerRendered&&document.body.appendChild(this.banner.nativeElement)}ngOnDestroy(){this.isBannerRendered&&document.body.removeChild(this.banner.nativeElement)}closeBanner(){this.isOpen=!1}get isBannerRendered(){return dr()&&this.banner&&this.banner.nativeElement}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fn({type:t,selectors:[["div","kendoWatermarkOverlay",""]],viewQuery:function(e,n){if(e&1&&lr(LIe,5),e&2){let r;en(r=tn())&&(n.banner=r.first)}},hostVars:2,hostBindings:function(e,n){e&2&&Tv(n.watermarkStyle)},attrs:PIe,decls:1,vars:1,consts:[[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],["banner",""],["width","16","height","16","viewBox","0 0 16 16","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z","fill","#1E1E1E"],[3,"href","ngStyle"],["title","Learn More",3,"ngStyle"],["d","M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z","fill","#1E1E1E"],["title","Close",3,"ngStyle","click"],["d","M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z","fill","#1E1E1E"]],template:function(e,n){e&1&&Di(0,BIe,15,10,"div",0),e&2&&Qe("ngIf",n.isOpen&&n.bannerMounted)},dependencies:[wr,Ga],encapsulation:2}),t})(),Gh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=mr({type:t}),t.\u0275inj=gr({imports:[[qr]]}),t})(),eAe=["telerik.com","progress.com","stackblitz.io","csb.app"];function Df(t){return!eAe.some(e=>globalThis.document?.location.hostname.endsWith(e))&&!t}var G2=(()=>{class t{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return t.\u0275fac=function(e){return new(e||t)(Je(xr,8))},t.\u0275dir=bn({type:t,selectors:[["","kendoPrefixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),t})(),j2=(()=>{class t{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return t.\u0275fac=function(e){return new(e||t)(Je(xr,8))},t.\u0275dir=bn({type:t,selectors:[["","kendoSuffixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),t})(),p8=(()=>{class t{constructor(){this.orientation="vertical",this.hostClass=!0}get vertical(){return this.orientation==="vertical"}get horizontal(){return this.orientation==="horizontal"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fn({type:t,selectors:[["kendo-separator"]],hostVars:6,hostBindings:function(e,n){e&2&&On("k-input-separator-vertical",n.vertical)("k-input-separator-horizontal",n.horizontal)("k-input-separator",n.hostClass)},inputs:{orientation:"orientation"},decls:0,vars:0,template:function(e,n){},encapsulation:2}),t})(),Td=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=mr({type:t}),t.\u0275inj=gr({}),t})(),Uh=class{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},tAe=()=>dr()&&document.createElement,iAe="--kendo-scrollbar-width",nAe=()=>{let t=0;if(tAe()){let i=document.createElement("div");i.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",i.innerHTML=" ",document.body.appendChild(i),t=i.offsetWidth-i.scrollWidth,document.body.removeChild(i)}return t},Rse=(()=>{class t{constructor(){this.changes=new ki,typeof window<"u"&&dr()&&document.body.style.setProperty(iAe,`${nAe()}px`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Nse=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];(function(t,i){var e=function(n){for(;--n;)t.push(t.shift())};e(++i)})(Nse,439);var Xn=function(t,i){t=t-0;var e=Nse[t];if(Xn.aWziBr===void 0){var n=function(o){for(var s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",a=String(o).replace(/=+$/,""),l="",c=0,h,m,p=0;m=a.charAt(p++);~m&&(h=c%4?h*64+m:m,c++%4)?l+=String.fromCharCode(255&h>>(-2*c&6)):0)m=s.indexOf(m);return l};Xn.XjGMHe=function(o){for(var s=n(o),a=[],l=0,c=s.length;l{class t{constructor(){this.watermarkStyle=XIe,this.isOpen=!0,this.bannerMounted=!1,this.bannerStyles=ZIe,this.buttonStyles=$Ie,this.licenseKeyUrl=JIe}ngOnInit(){Ese||(this.bannerMounted=!0,Ese=!0)}ngAfterViewInit(){this.isBannerRendered&&document.body.appendChild(this.banner.nativeElement)}ngOnDestroy(){this.isBannerRendered&&document.body.removeChild(this.banner.nativeElement)}closeBanner(){this.isOpen=!1}get isBannerRendered(){return dr()&&this.banner&&this.banner.nativeElement}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fn({type:t,selectors:[["div","kendoWatermarkOverlay",""]],viewQuery:function(e,n){if(e&1&&lr(LIe,5),e&2){let r;en(r=tn())&&(n.banner=r.first)}},hostVars:2,hostBindings:function(e,n){e&2&&Tv(n.watermarkStyle)},attrs:PIe,decls:1,vars:1,consts:[[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],["banner",""],["width","16","height","16","viewBox","0 0 16 16","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z","fill","#1E1E1E"],[3,"href","ngStyle"],["title","Learn More",3,"ngStyle"],["d","M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z","fill","#1E1E1E"],["title","Close",3,"ngStyle","click"],["d","M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z","fill","#1E1E1E"]],template:function(e,n){e&1&&Di(0,BIe,15,10,"div",0),e&2&&Qe("ngIf",n.isOpen&&n.bannerMounted)},dependencies:[wr,Ga],encapsulation:2}),t})(),Gh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=mr({type:t}),t.\u0275inj=gr({imports:[[qr]]}),t})(),eAe=["telerik.com","progress.com","stackblitz.io","csb.app"];function Df(t){return!eAe.some(e=>globalThis.document?.location.hostname.endsWith(e))&&!t}var G2=(()=>{class t{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return t.\u0275fac=function(e){return new(e||t)(Je(xr,8))},t.\u0275dir=bn({type:t,selectors:[["","kendoPrefixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),t})(),j2=(()=>{class t{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return t.\u0275fac=function(e){return new(e||t)(Je(xr,8))},t.\u0275dir=bn({type:t,selectors:[["","kendoSuffixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),t})(),p8=(()=>{class t{constructor(){this.orientation="vertical",this.hostClass=!0}get vertical(){return this.orientation==="vertical"}get horizontal(){return this.orientation==="horizontal"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fn({type:t,selectors:[["kendo-separator"]],hostVars:6,hostBindings:function(e,n){e&2&&On("k-input-separator-vertical",n.vertical)("k-input-separator-horizontal",n.horizontal)("k-input-separator",n.hostClass)},inputs:{orientation:"orientation"},decls:0,vars:0,template:function(e,n){},encapsulation:2}),t})(),Td=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=mr({type:t}),t.\u0275inj=gr({}),t})(),Uh=class{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},tAe=()=>dr()&&document.createElement,iAe="--kendo-scrollbar-width",nAe=()=>{let t=0;if(tAe()){let i=document.createElement("div");i.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",i.innerHTML=" ",document.body.appendChild(i),t=i.offsetWidth-i.scrollWidth,document.body.removeChild(i)}return t},Rse=(()=>{class t{constructor(){this.changes=new ki,typeof window<"u"&&dr()&&document.body.style.setProperty(iAe,`${nAe()}px`)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Nse=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];(function(t,i){var e=function(n){for(;--n;)t.push(t.shift())};e(++i)})(Nse,439);var Xn=function(t,i){t=t-0;var e=Nse[t];if(Xn.aWziBr===void 0){var n=function(o){for(var s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",a=String(o).replace(/=+$/,""),l="",c=0,h,m,p=0;m=a.charAt(p++);~m&&(h=c%4?h*64+m:m,c++%4)?l+=String.fromCharCode(255&h>>(-2*c&6)):0)m=s.indexOf(m);return l};Xn.XjGMHe=function(o){for(var s=n(o),a=[],l=0,c=s.length;l - + diff --git a/grid-charts-integration/main-3DGZT3YD.js b/grid-charts-integration/main-WWBL4N3D.js similarity index 99% rename from grid-charts-integration/main-3DGZT3YD.js rename to grid-charts-integration/main-WWBL4N3D.js index 38515058..c44e8535 100644 --- a/grid-charts-integration/main-3DGZT3YD.js +++ b/grid-charts-integration/main-WWBL4N3D.js @@ -6,7 +6,7 @@ ${e.map((i,o)=>`${o+1}) ${i.toString()}`).join(` `);return e===-1?t:t.substring(0,e)}function $N(n,t){return n==null||n===""?t===null?"":t:t==null||t===""?n:n+" "+t}var $W=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}($W||{}),wa=function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n}(wa||{});function E2(n){return{toString:n}.toString()}var bo=globalThis;var Zg={},vr=[];function un(n){for(let t in n)if(n[t]===un)return t;throw Error("Could not find renamed property on target object.")}function s0e(n,t){for(let e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}var r0e=un({\u0275cmp:un}),a0e=un({\u0275dir:un}),l0e=un({\u0275pipe:un}),c0e=un({\u0275mod:un}),oE=un({\u0275fac:un}),o2=un({__NG_ELEMENT_ID__:un}),tW=un({__NG_ENV_ID__:un}),lt=function(n){return n[n.None=0]="None",n[n.SignalBased=1]="SignalBased",n[n.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",n}(lt||{});function WW(n,t,e){let i=n.length;for(;;){let o=n.indexOf(t,e);if(o===-1)return o;if(o===0||n.charCodeAt(o-1)<=32){let s=t.length;if(o+s===i||n.charCodeAt(o+s)<=32)return o}e=o+1}}function WN(n,t,e){let i=0;for(;it){r=s-1;break}}}for(;ss?h="":h=o[u+1].toLowerCase();let m=i&8?h:null;if(m&&WW(m,c,0)!==-1||i&2&&c!==h){if(El(i))return!1;r=!0}}}}return El(i)||r}function El(n){return(n&1)===0}function m0e(n,t,e,i){if(t===null)return-1;let o=0;if(i||!e){let s=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else i&8?o+="."+r:i&4&&(o+=" "+r);else o!==""&&!El(r)&&(t+=nW(s,o),o=""),i=r,s=s||!El(i);e++}return o!==""&&(t+=nW(s,o)),t}function S0e(n){return n.map(b0e).join(",")}function y0e(n){let t=[],e=[],i=1,o=2;for(;i{let t=tq(n),e=Wi(Ge({},t),{decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===$W.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||wa.Emulated,styles:n.styles||vr,_:null,schemas:n.schemas||null,tView:null,id:""});iq(e);let i=n.dependencies;return e.directiveDefs=sW(i,!1),e.pipeDefs=sW(i,!0),e.id=w0e(e),e})}function x0e(n){return rf(n)||ZW(n)}function E0e(n){return n!==null}function he(n){return E2(()=>({type:n.type,bootstrap:n.bootstrap||vr,declarations:n.declarations||vr,imports:n.imports||vr,exports:n.exports||vr,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function oW(n,t){if(n==null)return Zg;let e={};for(let i in n)if(n.hasOwnProperty(i)){let o=n[i],s,r,a=lt.None;Array.isArray(o)?(a=o[0],s=o[1],r=o[2]??s):(s=o,r=o),t?(e[s]=a!==lt.None?[i,a]:i,t[s]=r):e[s]=i}return e}function z(n){return E2(()=>{let t=tq(n);return iq(t),t})}function Qu(n){return{type:n.type,name:n.name,factory:null,pure:n.pure!==!1,standalone:n.standalone===!0,onDestroy:n.type.prototype.ngOnDestroy||null}}function rf(n){return n[r0e]||null}function ZW(n){return n[a0e]||null}function YW(n){return n[l0e]||null}function JW(n){let t=rf(n)||ZW(n)||YW(n);return t!==null?t.standalone:!1}function eq(n,t){let e=n[c0e]||null;if(!e&&t===!0)throw new Error(`Type ${tr(n)} does not have '\u0275mod' property.`);return e}function tq(n){let t={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:n.inputs||Zg,exportAs:n.exportAs||null,standalone:n.standalone===!0,signals:n.signals===!0,selectors:n.selectors||vr,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:oW(n.inputs,t),outputs:oW(n.outputs),debugInfo:null}}function iq(n){n.features?.forEach(t=>t(n))}function sW(n,t){if(!n)return null;let e=t?YW:x0e;return()=>(typeof n=="function"?n():n).map(i=>e(i)).filter(E0e)}function w0e(n){let t=0,e=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(let o of e)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var pc=0,li=1,Wt=2,Jo=3,wl=4,Br=5,d2=6,u2=7,Dl=8,Yg=9,Dd=10,qi=11,h2=12,rW=13,s0=14,Il=15,w2=16,Wg=17,Id=18,yE=19,nq=20,s2=21,RN=22,af=23,es=25,KO=1;var lf=7,sE=8,Jg=9,Vr=10,$O=function(n){return n[n.None=0]="None",n[n.HasTransplantedViews=2]="HasTransplantedViews",n}($O||{});function of(n){return Array.isArray(n)&&typeof n[KO]=="object"}function Md(n){return Array.isArray(n)&&n[KO]===!0}function WO(n){return(n.flags&4)!==0}function xE(n){return n.componentOffset>-1}function EE(n){return(n.flags&1)===1}function Td(n){return!!n.template}function D0e(n){return(n[Wt]&512)!==0}var oq="svg",I0e="math",T0e=!1;function A0e(){return T0e}function Tl(n){for(;Array.isArray(n);)n=n[pc];return n}function R0e(n){for(;Array.isArray(n);){if(typeof n[KO]=="object")return n;n=n[pc]}return null}function wE(n,t){return Tl(t[n])}function Ia(n,t){return Tl(t[n.index])}function sq(n,t){return n.data[t]}function DE(n,t){return n[t]}function Xu(n,t){let e=t[n];return of(e)?e:e[pc]}function k0e(n){return(n[Wt]&4)===4}function qO(n){return(n[Wt]&128)===128}function M0e(n){return Md(n[Jo])}function cf(n,t){return t==null?null:n[t]}function rq(n){n[Wg]=0}function N0e(n){n[Wt]&1024||(n[Wt]|=1024,qO(n)&&p2(n))}function O0e(n,t){for(;n>0;)t=t[s0],n--;return t}function QO(n){return!!(n[Wt]&9216||n[af]?.dirty)}function qN(n){QO(n)?p2(n):n[Wt]&64&&(A0e()?(n[Wt]|=1024,p2(n)):n[Dd].changeDetectionScheduler?.notify())}function p2(n){n[Dd].changeDetectionScheduler?.notify();let t=f2(n);for(;t!==null&&!(t[Wt]&8192||(t[Wt]|=8192,!qO(t)));)t=f2(t)}function L0e(n,t){if((n[Wt]&256)===256)throw new Oe(911,!1);n[s2]===null&&(n[s2]=[]),n[s2].push(t)}function f2(n){let t=n[Jo];return Md(t)?t[Jo]:t}var ii={lFrame:fq(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function P0e(){return ii.lFrame.elementDepthCount}function F0e(){ii.lFrame.elementDepthCount++}function z0e(){ii.lFrame.elementDepthCount--}function aq(){return ii.bindingsEnabled}function lq(){return ii.skipHydrationRootTNode!==null}function G0e(n){return ii.skipHydrationRootTNode===n}function V0e(){ii.skipHydrationRootTNode=null}function Mt(){return ii.lFrame.lView}function _n(){return ii.lFrame.tView}function $(n){return ii.lFrame.contextLView=n,n[Dl]}function W(n){return ii.lFrame.contextLView=null,n}function Es(){let n=cq();for(;n!==null&&n.type===64;)n=n.parent;return n}function cq(){return ii.lFrame.currentTNode}function B0e(){let n=ii.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}function _f(n,t){let e=ii.lFrame;e.currentTNode=n,e.isParent=t}function XO(){return ii.lFrame.isParent}function ZO(){ii.lFrame.isParent=!1}function H0e(){return ii.lFrame.contextLView}function Hr(){let n=ii.lFrame,t=n.bindingRootIndex;return t===-1&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function IE(){return ii.lFrame.bindingIndex}function U0e(n){return ii.lFrame.bindingIndex=n}function vf(){return ii.lFrame.bindingIndex++}function D2(n){let t=ii.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function j0e(){return ii.lFrame.inI18n}function K0e(n,t){let e=ii.lFrame;e.bindingIndex=e.bindingRootIndex=n,QN(t)}function $0e(){return ii.lFrame.currentDirectiveIndex}function QN(n){ii.lFrame.currentDirectiveIndex=n}function dq(n){let t=ii.lFrame.currentDirectiveIndex;return t===-1?null:n[t]}function uq(){return ii.lFrame.currentQueryIndex}function YO(n){ii.lFrame.currentQueryIndex=n}function W0e(n){let t=n[li];return t.type===2?t.declTNode:t.type===1?n[Br]:null}function hq(n,t,e){if(e&mi.SkipSelf){let o=t,s=n;for(;o=o.parent,o===null&&!(e&mi.Host);)if(o=W0e(s),o===null||(s=s[s0],o.type&10))break;if(o===null)return!1;t=o,n=s}let i=ii.lFrame=pq();return i.currentTNode=t,i.lView=n,!0}function JO(n){let t=pq(),e=n[li];ii.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function pq(){let n=ii.lFrame,t=n===null?null:n.child;return t===null?fq(n):t}function fq(n){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return n!==null&&(n.child=t),t}function mq(){let n=ii.lFrame;return ii.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}var gq=mq;function e8(){let n=mq();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function q0e(n){return(ii.lFrame.contextLView=O0e(n,ii.lFrame.contextLView))[Dl]}function fc(){return ii.lFrame.selectedIndex}function df(n){ii.lFrame.selectedIndex=n}function r0(){let n=ii.lFrame;return sq(n.tView,n.selectedIndex)}function Zu(){ii.lFrame.currentNamespace=oq}function TE(){Q0e()}function Q0e(){ii.lFrame.currentNamespace=null}function X0e(){return ii.lFrame.currentNamespace}var _q=!0;function AE(){return _q}function RE(n){_q=n}function Z0e(){return a0(Es(),Mt())}function a0(n,t){return new J(Ia(n,t))}var J=(()=>{let t=class t{constructor(i){this.nativeElement=i}};t.__NG_ELEMENT_ID__=Z0e;let n=t;return n})();function Y0e(n){return n instanceof J?n.nativeElement:n}function J0e(n,t,e){if(n.length!==t.length)return!1;for(let i=0;iArray.isArray(e)?t8(e,t):t(e))}function vq(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function rE(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function t1e(n,t){let e=[];for(let i=0;it;){let s=o-2;n[o]=n[s],o--}n[t]=e,n[t+1]=i}}function I2(n,t,e){let i=T2(n,t);return i>=0?n[i|1]=e:(i=~i,i1e(n,i,t,e)),i}function kN(n,t){let e=T2(n,t);if(e>=0)return n[e|1]}function T2(n,t){return n1e(n,t,1)}function n1e(n,t,e){let i=0,o=n.length>>e;for(;o!==i;){let s=i+(o-i>>1),r=n[s<t?o=s:i=s+1}return~(o<a1e}),a1e="ng",i8=new ot(""),l0=new ot("",{providedIn:"platform",factory:()=>"unknown"});var A2=new ot(""),n8=new ot("",{providedIn:"root",factory:()=>Sq().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var l1e=un({__forward_ref__:un});function De(n){return n.__forward_ref__=De,n.toString=function(){return tr(this())},n}function er(n){return wq(n)?n():n}function wq(n){return typeof n=="function"&&n.hasOwnProperty(l1e)&&n.__forward_ref__===De}function Dq(n){return n&&!!n.\u0275providers}function ys(n){return typeof n=="string"?n:n==null?"":String(n)}function c1e(n){return typeof n=="function"?n.name||n.toString():typeof n=="object"&&n!=null&&typeof n.type=="function"?n.type.name||n.type.toString():ys(n)}function d1e(n,t){let e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new Oe(-200,n)}function o8(n,t){throw new Oe(-201,!1)}var ZN;function u1e(){return ZN}function _r(n){let t=ZN;return ZN=n,t}function Iq(n,t,e){let i=kE(n);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&mi.Optional)return null;if(t!==void 0)return t;o8(n,"Injector")}var h1e={},m2=h1e,YN="__NG_DI_FLAG__",aE="ngTempTokenPath",p1e="ngTokenPath",f1e=/\n/gm,m1e="\u0275",dW="__source",r2;function Wu(n){let t=r2;return r2=n,t}function g1e(n,t=mi.Default){if(r2===void 0)throw new Oe(-203,!1);return r2===null?Iq(n,void 0,t):r2.get(n,t&mi.Optional?null:void 0,t)}function q(n,t=mi.Default){return(u1e()||g1e)(er(n),t)}function mt(n,t=mi.Default){return q(n,NE(t))}function NE(n){return typeof n>"u"||typeof n=="number"?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function JN(n){let t=[];for(let e=0;e ");else if(typeof t=="object"){let s=[];for(let r in t)if(t.hasOwnProperty(r)){let a=t[r];s.push(r+":"+(typeof a=="string"?JSON.stringify(a):tr(a)))}o=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${o}]: ${n.replace(f1e,` - `)}`}var b1e="h",S1e="b";var y1e=()=>null;function s8(n,t,e=!1){return y1e(n,t,e)}var $x="__parameters__";function x1e(n){return function(...e){if(n){let i=n(...e);for(let o in i)this[o]=i[o]}}}function Aq(n,t,e){return E2(()=>{let i=x1e(t);function o(...s){if(this instanceof o)return i.apply(this,s),this;let r=new o(...s);return a.annotation=r,a;function a(l,c,d){let u=l.hasOwnProperty($x)?l[$x]:Object.defineProperty(l,$x,{value:[]})[$x];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(r),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=n,o.annotationCls=o,o})}var OE=Tq(Aq("Optional"),8);var r8=Tq(Aq("SkipSelf"),4);function uf(n,t){let e=n.hasOwnProperty(oE);return e?n[oE]:null}var e0=new ot(""),Rq=new ot("",-1),kq=new ot(""),lE=class{get(t,e=m2){if(e===m2){let i=new Error(`NullInjectorError: No provider for ${tr(t)}!`);throw i.name="NullInjectorError",i}return e}};function LE(n){return{\u0275providers:n}}function a8(...n){return{\u0275providers:Mq(!0,n),\u0275fromNgModule:!0}}function Mq(n,...t){let e=[],i=new Set,o,s=r=>{e.push(r)};return t8(t,r=>{let a=r;eO(a,s,[],i)&&(o||=[],o.push(a))}),o!==void 0&&Nq(o,s),e}function Nq(n,t){for(let e=0;e{t(s,i)})}}function eO(n,t,e,i){if(n=er(n),!n)return!1;let o=null,s=lW(n),r=!s&&rf(n);if(!s&&!r){let l=n.ngModule;if(s=lW(l),s)o=l;else return!1}else{if(r&&!r.standalone)return!1;o=n}let a=i.has(o);if(r){if(a)return!1;if(i.add(o),r.dependencies){let l=typeof r.dependencies=="function"?r.dependencies():r.dependencies;for(let c of l)eO(c,t,e,i)}}else if(s){if(s.imports!=null&&!a){i.add(o);let c;try{t8(s.imports,d=>{eO(d,t,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&Nq(c,t)}if(!a){let c=uf(o)||(()=>new o);t({provide:o,useFactory:c,deps:vr},o),t({provide:kq,useValue:o,multi:!0},o),t({provide:e0,useValue:()=>q(o),multi:!0},o)}let l=s.providers;if(l!=null&&!a){let c=n;l8(l,d=>{t(d,c)})}}else return!1;return o!==n&&n.providers!==void 0}function l8(n,t){for(let e of n)Dq(e)&&(e=e.\u0275providers),Array.isArray(e)?l8(e,t):t(e)}var E1e=un({provide:String,useValue:un});function Oq(n){return n!==null&&typeof n=="object"&&E1e in n}function w1e(n){return!!(n&&n.useExisting)}function D1e(n){return!!(n&&n.useFactory)}function t0(n){return typeof n=="function"}function I1e(n){return!!n.useClass}var PE=new ot(""),Yx={},T1e={},MN;function c8(){return MN===void 0&&(MN=new lE),MN}var Da=class{},g2=class extends Da{get destroyed(){return this._destroyed}constructor(t,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,iO(t,r=>this.processProvider(r)),this.records.set(Rq,qg(void 0,this)),o.has("environment")&&this.records.set(Da,qg(void 0,this));let s=this.records.get(PE);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(kq,vr,mi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let e of this._ngOnDestroyHooks)e.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let e of t)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let e=Wu(this),i=_r(void 0),o;try{return t()}finally{Wu(e),_r(i)}}get(t,e=m2,i=mi.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(tW))return t[tW](this);i=NE(i);let o,s=Wu(this),r=_r(void 0);try{if(!(i&mi.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=N1e(t)&&kE(t);c&&this.injectableDefInScope(c)?l=qg(tO(t),Yx):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=i&mi.Self?c8():this.parent;return e=i&mi.Optional&&e===m2?null:e,a.get(t,e)}catch(a){if(a.name==="NullInjectorError"){if((a[aE]=a[aE]||[]).unshift(tr(t)),s)throw a;return v1e(a,t,"R3InjectorError",this.source)}else throw a}finally{_r(r),Wu(s)}}resolveInjectorInitializers(){let t=Wu(this),e=_r(void 0),i;try{let o=this.get(e0,vr,mi.Self);for(let s of o)s()}finally{Wu(t),_r(e)}}toString(){let t=[],e=this.records;for(let i of e.keys())t.push(tr(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Oe(205,!1)}processProvider(t){t=er(t);let e=t0(t)?t:er(t&&t.provide),i=R1e(t);if(!t0(t)&&t.multi===!0){let o=this.records.get(e);o||(o=qg(void 0,Yx,!0),o.factory=()=>JN(o.multi),this.records.set(e,o)),e=t,o.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Yx&&(e.value=T1e,e.value=e.factory()),typeof e.value=="object"&&e.value&&M1e(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;let e=er(t.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){let e=this._onDestroyHooks.indexOf(t);e!==-1&&this._onDestroyHooks.splice(e,1)}};function tO(n){let t=kE(n),e=t!==null?t.factory:uf(n);if(e!==null)return e;if(n instanceof ot)throw new Oe(204,!1);if(n instanceof Function)return A1e(n);throw new Oe(204,!1)}function A1e(n){if(n.length>0)throw new Oe(204,!1);let e=s1e(n);return e!==null?()=>e.factory(n):()=>new n}function R1e(n){if(Oq(n))return qg(void 0,n.useValue);{let t=Lq(n);return qg(t,Yx)}}function Lq(n,t,e){let i;if(t0(n)){let o=er(n);return uf(o)||tO(o)}else if(Oq(n))i=()=>er(n.useValue);else if(D1e(n))i=()=>n.useFactory(...JN(n.deps||[]));else if(w1e(n))i=()=>q(er(n.useExisting));else{let o=er(n&&(n.useClass||n.provide));if(k1e(n))i=()=>new o(...JN(n.deps));else return uf(o)||tO(o)}return i}function qg(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function k1e(n){return!!n.deps}function M1e(n){return n!==null&&typeof n=="object"&&typeof n.ngOnDestroy=="function"}function N1e(n){return typeof n=="function"||typeof n=="object"&&n instanceof ot}function iO(n,t){for(let e of n)Array.isArray(e)?iO(e,t):e&&Dq(e)?iO(e.\u0275providers,t):t(e)}function Cf(n,t){n instanceof g2&&n.assertNotDestroyed();let e,i=Wu(n),o=_r(void 0);try{return t()}finally{Wu(i),_r(o)}}function O1e(n){return typeof n=="function"}var _2=class{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function Pq(n,t,e,i){t!==null?t.applyValueToInputSignal(t,i):n[e]=i}function Le(){return Fq}function Fq(n){return n.type.prototype.ngOnChanges&&(n.setInput=P1e),L1e}Le.ngInherit=!0;function L1e(){let n=Gq(this),t=n?.current;if(t){let e=n.previous;if(e===Zg)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function P1e(n,t,e,i,o){let s=this.declaredInputs[i],r=Gq(n)||F1e(n,{previous:Zg,current:null}),a=r.current||(r.current={}),l=r.previous,c=l[s];a[s]=new _2(c&&c.currentValue,e,l===Zg),Pq(n,t,o,e)}var zq="__ngSimpleChanges__";function Gq(n){return n[zq]||null}function F1e(n,t){return n[zq]=t}var uW=null;var cc=function(n,t,e){uW?.(n,t,e)};function z1e(n,t,e){let{ngOnChanges:i,ngOnInit:o,ngDoCheck:s}=t.type.prototype;if(i){let r=Fq(t);(e.preOrderHooks??=[]).push(n,r),(e.preOrderCheckHooks??=[]).push(n,r)}o&&(e.preOrderHooks??=[]).push(0-n,o),s&&((e.preOrderHooks??=[]).push(n,s),(e.preOrderCheckHooks??=[]).push(n,s))}function FE(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[Wg]+=65536),(a>14>16&&(n[Wt]&3)===t&&(n[Wt]+=16384,hW(a,s)):hW(a,s)}var Xg=-1,hf=class{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}};function V1e(n){return n instanceof hf}function B1e(n){return(n.flags&8)!==0}function H1e(n){return(n.flags&16)!==0}function Bq(n){return n!==Xg}function cE(n){return n&32767}function U1e(n){return n>>16}function dE(n,t){let e=U1e(n),i=t;for(;e>0;)i=i[s0],e--;return i}var nO=!0;function uE(n){let t=nO;return nO=n,t}var j1e=256,Hq=j1e-1,Uq=5,K1e=0,dc={};function $1e(n,t,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(o2)&&(i=e[o2]),i==null&&(i=e[o2]=K1e++);let o=i&Hq,s=1<>Uq)]|=s}function hE(n,t){let e=jq(n,t);if(e!==-1)return e;let i=t[li];i.firstCreatePass&&(n.injectorIndex=t.length,ON(i.data,n),ON(t,null),ON(i.blueprint,null));let o=d8(n,t),s=n.injectorIndex;if(Bq(o)){let r=cE(o),a=dE(o,t),l=a[li].data;for(let c=0;c<8;c++)t[s+c]=a[r+c]|l[r+c]}return t[s+8]=o,s}function ON(n,t){n.push(0,0,0,0,0,0,0,0,t)}function jq(n,t){return n.injectorIndex===-1||n.parent&&n.parent.injectorIndex===n.injectorIndex||t[n.injectorIndex+8]===null?-1:n.injectorIndex}function d8(n,t){if(n.parent&&n.parent.injectorIndex!==-1)return n.parent.injectorIndex;let e=0,i=null,o=t;for(;o!==null;){if(i=Qq(o),i===null)return Xg;if(e++,o=o[s0],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return Xg}function oO(n,t,e){$1e(n,t,e)}function Kq(n,t,e){if(e&mi.Optional||n!==void 0)return n;o8(t,"NodeInjector")}function $q(n,t,e,i){if(e&mi.Optional&&i===void 0&&(i=null),!(e&(mi.Self|mi.Host))){let o=n[Yg],s=_r(void 0);try{return o?o.get(t,i,e&mi.Optional):Iq(t,i,e&mi.Optional)}finally{_r(s)}}return Kq(i,t,e)}function Wq(n,t,e,i=mi.Default,o){if(n!==null){if(t[Wt]&2048&&!(i&mi.Self)){let r=X1e(n,t,e,i,dc);if(r!==dc)return r}let s=qq(n,t,e,i,dc);if(s!==dc)return s}return $q(t,e,i,o)}function qq(n,t,e,i,o){let s=q1e(e);if(typeof s=="function"){if(!hq(t,n,i))return i&mi.Host?Kq(o,e,i):$q(t,e,i,o);try{let r;if(r=s(i),r==null&&!(i&mi.Optional))o8(e);else return r}finally{gq()}}else if(typeof s=="number"){let r=null,a=jq(n,t),l=Xg,c=i&mi.Host?t[Il][Br]:null;for((a===-1||i&mi.SkipSelf)&&(l=a===-1?d8(n,t):t[a+8],l===Xg||!fW(i,!1)?a=-1:(r=t[li],a=cE(l),t=dE(l,t)));a!==-1;){let d=t[li];if(pW(s,a,d.data)){let u=W1e(a,t,e,r,i,c);if(u!==dc)return u}l=t[a+8],l!==Xg&&fW(i,t[li].data[a+8]===c)&&pW(s,a,t)?(r=d,a=cE(l),t=dE(l,t)):a=-1}}return o}function W1e(n,t,e,i,o,s){let r=t[li],a=r.data[n+8],l=i==null?xE(a)&&nO:i!=r&&(a.type&3)!==0,c=o&mi.Host&&s===a,d=tE(a,r,e,l,c);return d!==null?pf(t,r,d,a):dc}function tE(n,t,e,i,o){let s=n.providerIndexes,r=t.data,a=s&1048575,l=n.directiveStart,c=n.directiveEnd,d=s>>20,u=i?a:a+d,h=o?a+d:c;for(let m=u;m=l&&_.type===e)return m}if(o){let m=r[l];if(m&&Td(m)&&m.type===e)return l}return null}function pf(n,t,e,i){let o=n[e],s=t.data;if(V1e(o)){let r=o;r.resolving&&d1e(c1e(s[e]));let a=uE(r.canSeeViewProviders);r.resolving=!0;let l,c=r.injectImpl?_r(r.injectImpl):null,d=hq(n,i,mi.Default);try{o=n[e]=r.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&z1e(e,s[e],t)}finally{c!==null&&_r(c),uE(a),r.resolving=!1,gq()}}return o}function q1e(n){if(typeof n=="string")return n.charCodeAt(0)||0;let t=n.hasOwnProperty(o2)?n[o2]:void 0;return typeof t=="number"?t>=0?t&Hq:Q1e:t}function pW(n,t,e){let i=1<>Uq)]&i)}function fW(n,t){return!(n&mi.Self)&&!(n&mi.Host&&t)}var sf=class{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return Wq(this._tNode,this._lView,t,NE(i),e)}};function Q1e(){return new sf(Es(),Mt())}function zi(n){return E2(()=>{let t=n.prototype.constructor,e=t[oE]||sO(t),i=Object.prototype,o=Object.getPrototypeOf(n.prototype).constructor;for(;o&&o!==i;){let s=o[oE]||sO(o);if(s&&s!==e)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function sO(n){return wq(n)?()=>{let t=sO(er(n));return t&&t()}:uf(n)}function X1e(n,t,e,i,o){let s=n,r=t;for(;s!==null&&r!==null&&r[Wt]&2048&&!(r[Wt]&512);){let a=qq(s,r,e,i|mi.Self,dc);if(a!==dc)return a;let l=s.parent;if(!l){let c=r[nq];if(c){let d=c.get(e,dc,i);if(d!==dc)return d}l=Qq(r),r=r[s0]}s=l}return o}function Qq(n){let t=n[li],e=t.type;return e===2?t.declTNode:e===1?n[Br]:null}function mW(n,t=null,e=null,i){let o=Xq(n,t,e,i);return o.resolveInjectorInitializers(),o}function Xq(n,t=null,e=null,i,o=new Set){let s=[e||vr,a8(n)];return i=i||(typeof n=="object"?void 0:tr(n)),new g2(s,t||c8(),i||null,o)}var to=(()=>{let t=class t{static create(i,o){if(Array.isArray(i))return mW({name:""},o,i,"");{let s=i.name??"";return mW({name:s},i.parent,i.providers,s)}}};t.THROW_IF_NOT_FOUND=m2,t.NULL=new lE,t.\u0275prov=Q({token:t,providedIn:"any",factory:()=>q(Rq)}),t.__NG_ELEMENT_ID__=-1;let n=t;return n})(),Z1e="ngOriginalError";function LN(n){return n[Z1e]}var Ad=class{constructor(){this._console=console}handleError(t){let e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&LN(t);for(;e&&LN(e);)e=LN(e);return e||null}},Zq=new ot("",{providedIn:"root",factory:()=>mt(Ad).handleError.bind(void 0)});var Yq=!1,Y1e=new ot("",{providedIn:"root",factory:()=>Yq}),Wx;function J1e(){if(Wx===void 0&&(Wx=null,bo.trustedTypes))try{Wx=bo.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Wx}function zE(n){return J1e()?.createHTML(n)||n}var qx;function e_e(){if(qx===void 0&&(qx=null,bo.trustedTypes))try{qx=bo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return qx}function gW(n){return e_e()?.createHTML(n)||n}var Rd=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${KW})`}},rO=class extends Rd{getTypeName(){return"HTML"}},aO=class extends Rd{getTypeName(){return"Style"}},lO=class extends Rd{getTypeName(){return"Script"}},cO=class extends Rd{getTypeName(){return"URL"}},dO=class extends Rd{getTypeName(){return"ResourceURL"}};function Ta(n){return n instanceof Rd?n.changingThisBreaksApplicationSecurity:n}function Yu(n,t){let e=t_e(n);if(e!=null&&e!==t){if(e==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${KW})`)}return e===t}function t_e(n){return n instanceof Rd&&n.getTypeName()||null}function Jq(n){return new rO(n)}function eQ(n){return new aO(n)}function tQ(n){return new lO(n)}function iQ(n){return new cO(n)}function nQ(n){return new dO(n)}function i_e(n){let t=new hO(n);return n_e()?new uO(t):t}var uO=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let e=new window.DOMParser().parseFromString(zE(t),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}},hO=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let e=this.inertDocument.createElement("template");return e.innerHTML=zE(t),e}};function n_e(){try{return!!new window.DOMParser().parseFromString(zE(""),"text/html")}catch{return!1}}var o_e=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function GE(n){return n=String(n),n.match(o_e)?n:"unsafe:"+n}function Nd(n){let t={};for(let e of n.split(","))t[e]=!0;return t}function R2(...n){let t={};for(let e of n)for(let i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}var oQ=Nd("area,br,col,hr,img,wbr"),sQ=Nd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rQ=Nd("rp,rt"),s_e=R2(rQ,sQ),r_e=R2(sQ,Nd("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),a_e=R2(rQ,Nd("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),_W=R2(oQ,r_e,a_e,s_e),aQ=Nd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),l_e=Nd("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),c_e=Nd("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),d_e=R2(aQ,l_e,c_e),u_e=Nd("script,style,template"),pO=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){e=e.firstChild;continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}}return this.buf.join("")}startElement(t){let e=t.nodeName.toLowerCase();if(!_W.hasOwnProperty(e))return this.sanitizedSomething=!0,!u_e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=t.attributes;for(let o=0;o"),!0}endElement(t){let e=t.nodeName.toLowerCase();_W.hasOwnProperty(e)&&!oQ.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(vW(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}},h_e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p_e=/([^\#-~ |!])/g;function vW(n){return n.replace(/&/g,"&").replace(h_e,function(t){let e=t.charCodeAt(0),i=t.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(p_e,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Qx;function u8(n,t){let e=null;try{Qx=Qx||i_e(n);let i=t?String(t):"";e=Qx.getInertBodyElement(i);let o=5,s=i;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,i=s,s=e.innerHTML,e=Qx.getInertBodyElement(i)}while(i!==s);let a=new pO().sanitizeChildren(CW(e)||e);return zE(a)}finally{if(e){let i=CW(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function CW(n){return"content"in n&&f_e(n)?n.content:null}function f_e(n){return n.nodeType===Node.ELEMENT_NODE&&n.nodeName==="TEMPLATE"}var Aa=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(Aa||{});function VE(n){let t=lQ();return t?gW(t.sanitize(Aa.HTML,n)||""):Yu(n,"HTML")?gW(Ta(n)):u8(Sq(),ys(n))}function io(n){let t=lQ();return t?t.sanitize(Aa.URL,n)||"":Yu(n,"URL")?Ta(n):GE(ys(n))}function lQ(){let n=Mt();return n&&n[Dd].sanitizer}var m_e=/^>|^->||--!>|)/g,__e="\u200B$1\u200B";function v_e(n){return n.replace(m_e,t=>t.replace(g_e,__e))}var cQ=new Map,C_e=0;function b_e(){return C_e++}function S_e(n){cQ.set(n[yE],n)}function y_e(n){cQ.delete(n[yE])}var bW="__ngContext__";function uc(n,t){of(t)?(n[bW]=t[yE],S_e(t)):n[bW]=t}function dQ(n){return n instanceof Function?n():n}var hc=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(hc||{}),x_e;function h8(n,t){return x_e(n,t)}function Qg(n,t,e,i,o){if(i!=null){let s,r=!1;Md(i)?s=i:of(i)&&(r=!0,i=i[pc]);let a=Tl(i);n===0&&e!==null?o==null?vQ(t,e,a):v2(t,e,a,o||null,!0):n===1&&e!==null?v2(t,e,a,o||null,!0):n===2?SQ(t,a,r):n===3&&t.destroyNode(a),s!=null&&F_e(t,n,s,e,o)}}function uQ(n,t){return n.createText(t)}function hQ(n,t,e){n.setValue(t,e)}function pQ(n,t){return n.createComment(v_e(t))}function p8(n,t,e){return n.createElement(t,e)}function E_e(n,t){fQ(n,t),t[pc]=null,t[Br]=null}function w_e(n,t,e,i,o,s){i[pc]=o,i[Br]=t,UE(n,i,e,1,o,s)}function fQ(n,t){UE(n,t,t[qi],2,null,null)}function D_e(n){let t=n[h2];if(!t)return PN(n[li],n);for(;t;){let e=null;if(of(t))e=t[h2];else{let i=t[Vr];i&&(e=i)}if(!e){for(;t&&!t[wl]&&t!==n;)of(t)&&PN(t[li],t),t=t[Jo];t===null&&(t=n),of(t)&&PN(t[li],t),e=t&&t[wl]}t=e}}function I_e(n,t,e,i){let o=Vr+i,s=e.length;i>0&&(e[o-1][wl]=t),i0&&(n[e-1][wl]=i[wl]);let s=rE(n,Vr+t);E_e(i[li],i);let r=s[Id];r!==null&&r.detachView(s[li]),i[Jo]=null,i[wl]=null,i[Wt]&=-129}return i}function gQ(n,t){if(!(t[Wt]&256)){let e=t[qi];e.destroyNode&&UE(n,t,e,3,null,null),D_e(t)}}function PN(n,t){if(!(t[Wt]&256)){t[Wt]&=-129,t[Wt]|=256,t[af]&&y$(t[af]),R_e(n,t),A_e(n,t),t[li].type===1&&t[qi].destroy();let e=t[w2];if(e!==null&&Md(t[Jo])){e!==t[Jo]&&mQ(e,t);let i=t[Id];i!==null&&i.detachView(n)}y_e(t)}}function A_e(n,t){let e=n.cleanup,i=t[u2];if(e!==null)for(let s=0;s=0?i[r]():i[-r].unsubscribe(),s+=2}else{let r=i[e[s+1]];e[s].call(r)}i!==null&&(t[u2]=null);let o=t[s2];if(o!==null){t[s2]=null;for(let s=0;s-1){let{encapsulation:s}=n.data[i.directiveStart+o];if(s===wa.None||s===wa.Emulated)return null}return Ia(i,e)}}function v2(n,t,e,i,o){n.insertBefore(t,e,i,o)}function vQ(n,t,e){n.appendChild(t,e)}function SW(n,t,e,i,o){i!==null?v2(n,t,e,i,o):vQ(n,t,e)}function M_e(n,t,e,i){n.removeChild(t,e,i)}function BE(n,t){return n.parentNode(t)}function N_e(n,t){return n.nextSibling(t)}function CQ(n,t,e){return L_e(n,t,e)}function O_e(n,t,e){return n.type&40?Ia(n,e):null}var L_e=O_e,yW;function HE(n,t,e,i){let o=_Q(n,i,t),s=t[qi],r=i.parent||t[Br],a=CQ(r,i,t);if(o!=null)if(Array.isArray(e))for(let l=0;les&&wQ(n,t,es,!1),cc(r?2:0,o),e(i,o)}finally{df(s),cc(r?3:1,o)}}function m8(n,t,e){if(WO(t)){let i=Ys(null);try{let o=t.directiveStart,s=t.directiveEnd;for(let r=o;rnull;function $_e(n,t,e,i){let o=OQ(t);o.push(e),n.firstCreatePass&&LQ(n).push(i,o.length-1)}function W_e(n,t,e,i,o,s){let r=t?t.injectorIndex:-1,a=0;return lq()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function xW(n,t,e,i,o){for(let s in t){if(!t.hasOwnProperty(s))continue;let r=t[s];if(r===void 0)continue;i??={};let a,l=lt.None;Array.isArray(r)?(a=r[0],l=r[1]):a=r;let c=s;if(o!==null){if(!o.hasOwnProperty(s))continue;c=o[s]}n===0?EW(i,e,c,a,l):EW(i,e,c,a)}return i}function EW(n,t,e,i,o){let s;n.hasOwnProperty(e)?(s=n[e]).push(t,i):s=n[e]=[t,i],o!==void 0&&s.push(o)}function q_e(n,t,e){let i=t.directiveStart,o=t.directiveEnd,s=n.data,r=t.attrs,a=[],l=null,c=null;for(let d=i;d0;){let e=n[--t];if(typeof e=="number"&&e<0)return e}return 0}function J_e(n,t,e,i){let o=e.directiveStart,s=e.directiveEnd;xE(e)&&rve(t,e,n.data[o+e.componentOffset]),n.firstCreatePass||hE(e,t),uc(i,t);let r=e.initialInputs;for(let a=o;a{p2(n.lView)},consumerOnSignalRead(){this.lView[af]=this}});function zQ(n){return VQ(n[h2])}function GQ(n){return VQ(n[wl])}function VQ(n){for(;n!==null&&!Md(n);)n=n[wl];return n}var BQ=100;function HQ(n,t=!0,e=0){let i=n[Dd],o=i.rendererFactory,s=!1;s||o.begin?.();try{Sve(n,e)}catch(r){throw t&&PQ(n,r),r}finally{s||(o.end?.(),i.inlineEffectRunner?.flush())}}function Sve(n,t){vO(n,t);let e=0;for(;QO(n);){if(e===BQ)throw new Oe(103,!1);e++,vO(n,1)}}function yve(n,t,e,i){let o=t[Wt];if((o&256)===256)return;let s=!1;!s&&t[Dd].inlineEffectRunner?.flush(),JO(t);let r=null,a=null;!s&&xve(n)&&(a=_ve(t),r=b$(a));try{rq(t),U0e(n.bindingStartIndex),e!==null&&TQ(n,t,e,2,i);let l=(o&3)===3;if(!s)if(l){let u=n.preOrderCheckHooks;u!==null&&Jx(t,u,null)}else{let u=n.preOrderHooks;u!==null&&eE(t,u,0,null),NN(t,0)}if(Eve(t),UQ(t,0),n.contentQueries!==null&&NQ(n,t),!s)if(l){let u=n.contentCheckHooks;u!==null&&Jx(t,u)}else{let u=n.contentHooks;u!==null&&eE(t,u,1),NN(t,1)}V_e(n,t);let c=n.components;c!==null&&KQ(t,c,0);let d=n.viewQuery;if(d!==null&&_O(2,d,i),!s)if(l){let u=n.viewCheckHooks;u!==null&&Jx(t,u)}else{let u=n.viewHooks;u!==null&&eE(t,u,2),NN(t,2)}if(n.firstUpdatePass===!0&&(n.firstUpdatePass=!1),t[RN]){for(let u of t[RN])u();t[RN]=null}s||(t[Wt]&=-73)}catch(l){throw p2(t),l}finally{a!==null&&(S$(a,r),Cve(a)),e8()}}function xve(n){return n.type!==2}function UQ(n,t){for(let e=zQ(n);e!==null;e=GQ(e))for(let i=Vr;i-1&&(fO(t,i),rE(e,i))}this._attachedToViewContainer=!1}gQ(this._lView[li],this._lView)}onDestroy(t){L0e(this._lView,t)}markForCheck(){x8(this._cdRefInjectingView||this._lView)}detach(){this._lView[Wt]&=-129}reattach(){qN(this._lView),this._lView[Wt]|=128}detectChanges(){this._lView[Wt]|=1024,HQ(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Oe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,fQ(this._lView[li],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Oe(902,!1);this._appRef=t,qN(this._lView)}},me=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Tve;let n=t;return n})(),Dve=me,Ive=class extends Dve{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,e){return this.createEmbeddedViewImpl(t,e)}createEmbeddedViewImpl(t,e,i){let o=fve(this._declarationLView,this._declarationTContainer,t,{injector:e,dehydratedView:i});return new ff(o)}};function Tve(){return WE(Es(),Mt())}function WE(n,t){return n.type&4?new Ive(t,n,a0(n,t)):null}var s0t=new RegExp(`^(\\d+)*(${S1e}|${b1e})*(.*)`);var Ave=()=>null;function DW(n,t){return Ave(n,t)}var C2=class{},CO=class{},fE=class{};function Rve(n){let t=Error(`No component factory found for ${tr(n)}.`);return t[kve]=n,t}var kve="ngComponent";var bO=class{resolveComponentFactory(t){throw Rve(t)}},Cr=(()=>{let t=class t{};t.NULL=new bO;let n=t;return n})(),kd=class{},ce=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>Mve();let n=t;return n})();function Mve(){let n=Mt(),t=Es(),e=Xu(t.index,n);return(of(e)?e:n)[qi]}var Nve=(()=>{let t=class t{};t.\u0275prov=Q({token:t,providedIn:"root",factory:()=>null});let n=t;return n})(),FN={};function Ove(n){return typeof n=="function"&&n[nN]!==void 0}function $Q(n){return Ove(n)&&typeof n.set=="function"}function E8(n){let t=Ys(null);try{return n()}finally{Ys(t)}}function WQ(n){return w8(n)?Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n:!1}function Lve(n,t){if(Array.isArray(n))for(let e=0;et,yO=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Pve}forEachItem(t){let e;for(e=this._itHead;e!==null;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,o=0,s=null;for(;e||i;){let r=!i||e&&e.currentIndex{r=this._trackByFn(o,a),e===null||!Object.is(e.trackById,r)?(e=this._mismatch(e,a,r,o),i=!0):(i&&(e=this._verifyReinsertion(e,a,r,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,o){let s;return t===null?s=this._itTail:(s=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),t!==null?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(i,o),t!==null?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,o)):t=this._addAfter(new xO(e,i),s,o)),t}_verifyReinsertion(t,e,i,o){let s=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return s!==null?t=this._reinsertAfter(s,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let e=t._next;this._addToRemovals(this._unlink(t)),t=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,s=t._nextRemoved;return o===null?this._removalsHead=s:o._nextRemoved=s,s===null?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){let o=e===null?this._itHead:e._next;return t._next=o,t._prev=e,o===null?this._itTail=t:o._prev=t,e===null?this._itHead=t:e._next=t,this._linkedRecords===null&&(this._linkedRecords=new mE),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let e=t._prev,i=t._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new mE),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},xO=class{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},EO=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){let e=t._prevDup,i=t._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},mE=class{constructor(){this.map=new Map}put(t){let e=t.trackById,i=this.map.get(e);i||(i=new EO,this.map.set(e,i)),i.add(t)}get(t,e){let i=t,o=this.map.get(i);return o?o.get(t,e):null}remove(t){let e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function IW(n,t,e){let i=n.previousIndex;if(i===null)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{let s=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){let i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,e);let s=o._prev,r=o._next;return s&&(s._next=r),r&&(r._prev=s),o._next=null,o._prev=null,o}let i=new IO(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}},IO=class{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function TW(){return new k2([new SO])}var k2=(()=>{let t=class t{constructor(i){this.factories=i}static create(i,o){if(o!=null){let s=o.factories.slice();i=i.concat(s)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||TW()),deps:[[t,new r8,new OE]]}}find(i){let o=this.factories.find(s=>s.supports(i));if(o!=null)return o;throw new Oe(901,!1)}};t.\u0275prov=Q({token:t,providedIn:"root",factory:TW});let n=t;return n})();function AW(){return new M2([new wO])}var M2=(()=>{let t=class t{constructor(i){this.factories=i}static create(i,o){if(o){let s=o.factories.slice();i=i.concat(s)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||AW()),deps:[[t,new r8,new OE]]}}find(i){let o=this.factories.find(s=>s.supports(i));if(o)return o;throw new Oe(901,!1)}};t.\u0275prov=Q({token:t,providedIn:"root",factory:AW});let n=t;return n})();var je=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Fve;let n=t;return n})();function Fve(n){return zve(Es(),Mt(),(n&16)===16)}function zve(n,t,e){if(xE(n)&&!e){let i=Xu(n.index,t);return new ff(i,i)}else if(n.type&47){let i=t[Il];return new ff(i,t)}return null}var RW=new Set;function qQ(n){RW.has(n)||(RW.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}function kW(...n){}function Gve(){let n=typeof bo.requestAnimationFrame=="function",t=bo[n?"requestAnimationFrame":"setTimeout"],e=bo[n?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&e){let i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);let o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}var oe=class n{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new y(!1),this.onMicrotaskEmpty=new y(!1),this.onStable=new y(!1),this.onError=new y(!1),typeof Zone>"u")throw new Oe(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=Gve().nativeRequestAnimationFrame,Hve(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!n.isInAngularZone())throw new Oe(909,!1)}static assertNotInAngularZone(){if(n.isInAngularZone())throw new Oe(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,o){let s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+o,t,Vve,kW,kW);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}},Vve={};function D8(n){if(n._nesting==0&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Bve(n){n.isCheckStableRunning||n.lastRequestAnimationFrameId!==-1||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(bo,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,TO(n),n.isCheckStableRunning=!0,D8(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),TO(n))}function Hve(n){let t=()=>{Bve(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,s,r,a)=>{if(Uve(a))return e.invokeTask(o,s,r,a);try{return MW(n),e.invokeTask(o,s,r,a)}finally{(n.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||n.shouldCoalesceRunChangeDetection)&&t(),NW(n)}},onInvoke:(e,i,o,s,r,a,l)=>{try{return MW(n),e.invoke(o,s,r,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),NW(n)}},onHasTask:(e,i,o,s)=>{e.hasTask(o,s),i===o&&(s.change=="microTask"?(n._hasPendingMicrotasks=s.microTask,TO(n),D8(n)):s.change=="macroTask"&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,o,s)=>(e.handleError(o,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}function TO(n){n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&n.lastRequestAnimationFrameId!==-1?n.hasPendingMicrotasks=!0:n.hasPendingMicrotasks=!1}function MW(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function NW(n){n._nesting--,D8(n)}function Uve(n){return!Array.isArray(n)||n.length!==1?!1:n[0].data?.__ignore_ng_zone__===!0}var QQ=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){let i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of i)o();this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=Q({token:t,providedIn:"root",factory:()=>new t});let n=t;return n})();function gE(n,t,e){let i=e?n.styles:null,o=e?n.classes:null,s=0;if(t!==null)for(let r=0;r0&&xQ(n,e,s.join(" "))}}function Xve(n,t,e){let i=n.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=Yve;let n=t;return n})();function Yve(){let n=Es();return ZQ(n,Mt())}var Jve=Si,XQ=class extends Jve{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return a0(this._hostTNode,this._hostLView)}get injector(){return new sf(this._hostTNode,this._hostLView)}get parentInjector(){let t=d8(this._hostTNode,this._hostLView);if(Bq(t)){let e=dE(t,this._hostLView),i=cE(t),o=e[li].data[i+8];return new sf(o,e)}else return new sf(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let e=LW(this._lContainer);return e!==null&&e[t]||null}get length(){return this._lContainer.length-Vr}createEmbeddedView(t,e,i){let o,s;typeof i=="number"?o=i:i!=null&&(o=i.index,s=i.injector);let r=DW(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(e||{},s,r);return this.insertImpl(a,o,wW(this._hostTNode,r)),a}createComponent(t,e,i,o,s){let r=t&&!O1e(t),a;if(r)a=e;else{let _=e||{};a=_.index,i=_.injector,o=_.projectableNodes,s=_.environmentInjector||_.ngModuleRef}let l=r?t:new b2(rf(t)),c=i||this.parentInjector;if(!s&&l.ngModule==null){let b=(r?c:this.parentInjector).get(Da,null);b&&(s=b)}let d=rf(l.componentType??{}),u=DW(this._lContainer,d?.id??null),h=u?.firstChild??null,m=l.create(c,o,h,s);return this.insertImpl(m.hostView,a,wW(this._hostTNode,u)),m}insert(t,e){return this.insertImpl(t,e,!0)}insertImpl(t,e,i){let o=t._lView;if(M0e(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[Jo],c=new XQ(l,l[Br],l[Jo]);c.detach(c.indexOf(t))}}let s=this._adjustIndex(e),r=this._lContainer;return mve(r,o,s,i),t.attachToViewContainerRef(),vq(zN(r),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){let e=LW(this._lContainer);return e!==null?e.indexOf(t):-1}remove(t){let e=this._adjustIndex(t,-1),i=fO(this._lContainer,e);i&&(rE(zN(this._lContainer),e),gQ(i[li],i))}detach(t){let e=this._adjustIndex(t,-1),i=fO(this._lContainer,e);return i&&rE(zN(this._lContainer),e)!=null?new ff(i):null}_adjustIndex(t,e=0){return t??this.length+e}};function LW(n){return n[sE]}function zN(n){return n[sE]||(n[sE]=[])}function ZQ(n,t){let e,i=t[n.index];return Md(i)?e=i:(e=MQ(i,t,null,n),t[n.index]=e,KE(t,e)),t2e(e,t,n,i),new XQ(e,n,t)}function e2e(n,t){let e=n[qi],i=e.createComment(""),o=Ia(t,n),s=BE(e,o);return v2(e,s,i,N_e(e,o),!1),i}var t2e=o2e,i2e=()=>!1;function n2e(n,t,e){return i2e(n,t,e)}function o2e(n,t,e,i){if(n[lf])return;let o;e.type&8?o=Tl(i):o=e2e(t,e),n[lf]=o}var kO=class n{constructor(t){this.queryList=t,this.matches=null}clone(){return new n(this.queryList)}setDirty(){this.queryList.setDirty()}},MO=class n{constructor(t=[]){this.queries=t}createEmbeddedView(t){let e=t.queries;if(e!==null){let i=t.contentQueries!==null?t.contentQueries[0]:e.length,o=[];for(let s=0;s0)i.push(r[a/2]);else{let c=s[a+1],d=t[-l];for(let u=Vr;ut.trim())}function eX(n,t,e){n.queries===null&&(n.queries=new NO),n.queries.track(new OO(t,e))}function p2e(n,t){let e=n.contentQueries||(n.contentQueries=[]),i=e.length?e[e.length-1]:-1;t!==i&&e.push(n.queries.length-1,t)}function I8(n,t){return n.queries.getByIndex(t)}function f2e(n,t){let e=n[li],i=I8(e,t);return i.crossesNgTemplate?LO(e,n,t,[]):YQ(e,n,i,t)}function m2e(n){return Object.getPrototypeOf(n.prototype).constructor}function ie(n){let t=m2e(n.type),e=!0,i=[n];for(;t;){let o;if(Td(n))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Oe(903,!1);o=t.\u0275dir}if(o){if(e){i.push(o);let r=n;r.inputs=Xx(n.inputs),r.inputTransforms=Xx(n.inputTransforms),r.declaredInputs=Xx(n.declaredInputs),r.outputs=Xx(n.outputs);let a=o.hostBindings;a&&b2e(n,a);let l=o.viewQuery,c=o.contentQueries;if(l&&v2e(n,l),c&&C2e(n,c),g2e(n,o),s0e(n.outputs,o.outputs),Td(o)&&o.data.animation){let d=n.data;d.animation=(d.animation||[]).concat(o.data.animation)}}let s=o.features;if(s)for(let r=0;r=0;i--){let o=n[i];o.hostVars=t+=o.hostVars,o.hostAttrs=c2(o.hostAttrs,e=c2(e,o.hostAttrs))}}function Xx(n){return n===Zg?{}:n===vr?[]:n}function v2e(n,t){let e=n.viewQuery;e?n.viewQuery=(i,o)=>{t(i,o),e(i,o)}:n.viewQuery=t}function C2e(n,t){let e=n.contentQueries;e?n.contentQueries=(i,o,s)=>{t(i,o,s),e(i,o,s)}:n.contentQueries=t}function b2e(n,t){let e=n.hostBindings;e?n.hostBindings=(i,o)=>{t(i,o),e(i,o)}:n.hostBindings=t}var qu=class{},S2=class{};var PO=class extends qu{constructor(t,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new _E(this);let o=eq(t);this._bootstrapComponents=dQ(o.bootstrap),this._r3Injector=Xq(t,e,[{provide:qu,useValue:this},{provide:Cr,useValue:this.componentFactoryResolver},...i],tr(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},FO=class extends S2{constructor(t){super(),this.moduleType=t}create(t){return new PO(this.moduleType,t,[])}};var CE=class extends qu{constructor(t){super(),this.componentFactoryResolver=new _E(this),this.instance=null;let e=new g2([...t.providers,{provide:qu,useValue:this},{provide:Cr,useValue:this.componentFactoryResolver}],t.parent||c8(),t.debugName,new Set(["environment"]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function T8(n,t,e=null){return new CE({providers:n,parent:t,debugName:e,runEnvironmentInitializers:!0}).injector}var qE=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ii(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function mc(n,t,e){return n[t]=e}function N2(n,t){return n[t]}function xs(n,t,e){let i=n[t];return Object.is(i,e)?!1:(n[t]=e,!0)}function i0(n,t,e,i){let o=xs(n,t,e);return xs(n,t+1,i)||o}function A8(n,t,e,i,o){let s=i0(n,t,e,i);return xs(n,t+2,o)||s}function mf(n,t,e,i,o,s){let r=i0(n,t,e,i);return i0(n,t+2,o,s)||r}function S2e(n,t,e,i,o,s,r,a,l){let c=t.consts,d=d0(t,n,4,r||null,cf(c,a));C8(t,e,d,cf(c,l)),FE(t,d);let u=d.tView=v8(2,d,i,o,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}function x(n,t,e,i,o,s,r,a){let l=Mt(),c=_n(),d=n+es,u=c.firstCreatePass?S2e(d,c,l,t,e,i,o,s,r):c.data[d];_f(u,!1);let h=y2e(c,l,u,n);AE()&&HE(c,l,h,u),uc(h,l);let m=MQ(h,l,h,u);return l[d]=m,KE(l,m),n2e(m,u,l),EE(u)&&g8(c,l,u),r!=null&&_8(l,u,a),x}var y2e=x2e;function x2e(n,t,e,i){return RE(!0),t[qi].createComment("")}function U(n,t,e,i){let o=Mt(),s=vf();if(xs(o,s,t)){let r=_n(),a=r0();ave(a,o,n,t,e,i)}return U}function R8(n,t,e,i){return xs(n,vf(),e)?t+ys(e)+i:ts}function E2e(n,t,e,i,o,s){let r=IE(),a=i0(n,r,e,o);return D2(2),a?t+ys(e)+i+ys(o)+s:ts}function w2e(n,t,e,i,o,s,r,a){let l=IE(),c=A8(n,l,e,o,r);return D2(3),c?t+ys(e)+i+ys(o)+s+ys(r)+a:ts}function D2e(n,t,e,i,o,s,r,a,l,c,d,u){let h=IE(),m=mf(n,h,e,o,r,l);return m=xs(n,h+4,d)||m,D2(5),m?t+ys(e)+i+ys(o)+s+ys(r)+a+ys(l)+c+ys(d)+u:ts}function Zx(n,t){return n<<17|t<<2}function gf(n){return n>>17&32767}function I2e(n){return(n&2)==2}function T2e(n,t){return n&131071|t<<17}function zO(n){return n|2}function n0(n){return(n&131068)>>2}function GN(n,t){return n&-131069|t<<2}function A2e(n){return(n&1)===1}function GO(n){return n|1}function R2e(n,t,e,i,o,s){let r=s?t.classBindings:t.styleBindings,a=gf(r),l=n0(r);n[i]=e;let c=!1,d;if(Array.isArray(e)){let u=e;d=u[1],(d===null||T2(u,d)>0)&&(c=!0)}else d=e;if(o)if(l!==0){let h=gf(n[a+1]);n[i+1]=Zx(h,a),h!==0&&(n[h+1]=GN(n[h+1],i)),n[a+1]=T2e(n[a+1],i)}else n[i+1]=Zx(a,0),a!==0&&(n[a+1]=GN(n[a+1],i)),a=i;else n[i+1]=Zx(l,0),a===0?a=i:n[l+1]=GN(n[l+1],i),l=i;c&&(n[i+1]=zO(n[i+1])),PW(n,d,i,!0),PW(n,d,i,!1),k2e(t,d,n,i,s),r=Zx(a,l),s?t.classBindings=r:t.styleBindings=r}function k2e(n,t,e,i,o){let s=o?n.residualClasses:n.residualStyles;s!=null&&typeof t=="string"&&T2(s,t)>=0&&(e[i+1]=GO(e[i+1]))}function PW(n,t,e,i){let o=n[e+1],s=t===null,r=i?gf(o):n0(o),a=!1;for(;r!==0&&(a===!1||s);){let l=n[r],c=n[r+1];M2e(l,t)&&(a=!0,n[r+1]=i?GO(c):zO(c)),r=i?gf(c):n0(c)}a&&(n[e+1]=i?zO(o):GO(o))}function M2e(n,t){return n===null||t==null||(Array.isArray(n)?n[1]:n)===t?!0:Array.isArray(n)&&typeof t=="string"?T2(n,t)>=0:!1}var Ro={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function tX(n){return n.substring(Ro.key,Ro.keyEnd)}function N2e(n){return n.substring(Ro.value,Ro.valueEnd)}function O2e(n){return oX(n),iX(n,o0(n,0,Ro.textEnd))}function iX(n,t){let e=Ro.textEnd;return e===t?-1:(t=Ro.keyEnd=P2e(n,Ro.key=t,e),o0(n,t,e))}function L2e(n){return oX(n),nX(n,o0(n,0,Ro.textEnd))}function nX(n,t){let e=Ro.textEnd,i=Ro.key=o0(n,t,e);return e===i?-1:(i=Ro.keyEnd=F2e(n,i,e),i=FW(n,i,e,58),i=Ro.value=o0(n,i,e),i=Ro.valueEnd=z2e(n,i,e),FW(n,i,e,59))}function oX(n){Ro.key=0,Ro.keyEnd=0,Ro.value=0,Ro.valueEnd=0,Ro.textEnd=n.length}function o0(n,t,e){for(;t32;)t++;return t}function F2e(n,t,e){let i;for(;t=65&&(i&-33)<=90||i>=48&&i<=57);)t++;return t}function FW(n,t,e,i){return t=o0(n,t,e),t32&&(a=r),s=o,o=i,i=l&-33}return a}function zW(n,t,e,i){let o=-1,s=e;for(;s=0;e=nX(t,e))cX(n,tX(t),N2e(t))}function So(n){k8(K2e,sX,n,!0)}function sX(n,t){for(let e=O2e(t);e>=0;e=iX(t,e))I2(n,tX(t),!0)}function rX(n,t,e,i){let o=Mt(),s=_n(),r=D2(2);if(s.firstUpdatePass&&lX(s,n,r,i),t!==ts&&xs(o,r,t)){let a=s.data[fc()];dX(s,a,o,o[qi],n,o[r+1]=W2e(t,e),i,r)}}function k8(n,t,e,i){let o=_n(),s=D2(2);o.firstUpdatePass&&lX(o,null,s,i);let r=Mt();if(e!==ts&&xs(r,s,e)){let a=o.data[fc()];if(uX(a,i)&&!aX(o,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(e=$N(l,e||"")),VO(o,a,r,e,i)}else $2e(o,a,r,r[qi],r[s+1],r[s+1]=j2e(n,t,e),i,s)}}function aX(n,t){return t>=n.expandoStartIndex}function lX(n,t,e,i){let o=n.data;if(o[e+1]===null){let s=o[fc()],r=aX(n,e);uX(s,i)&&t===null&&!r&&(t=!1),t=V2e(o,s,t,i),R2e(o,s,t,e,r,i)}}function V2e(n,t,e,i){let o=dq(n),s=i?t.residualClasses:t.residualStyles;if(o===null)(i?t.classBindings:t.styleBindings)===0&&(e=VN(null,n,t,e,i),e=y2(e,t.attrs,i),s=null);else{let r=t.directiveStylingLast;if(r===-1||n[r]!==o)if(e=VN(o,n,t,e,i),s===null){let l=B2e(n,t,i);l!==void 0&&Array.isArray(l)&&(l=VN(null,n,t,l[1],i),l=y2(l,t.attrs,i),H2e(n,t,i,l))}else s=U2e(n,t,i)}return s!==void 0&&(i?t.residualClasses=s:t.residualStyles=s),e}function B2e(n,t,e){let i=e?t.classBindings:t.styleBindings;if(n0(i)!==0)return n[gf(i)]}function H2e(n,t,e,i){let o=e?t.classBindings:t.styleBindings;n[gf(o)]=i}function U2e(n,t,e){let i,o=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0;){let l=n[o],c=Array.isArray(l),d=c?l[1]:l,u=d===null,h=e[o+1];h===ts&&(h=u?vr:void 0);let m=u?kN(h,i):d===i?h:void 0;if(c&&!bE(m)&&(m=kN(l,i)),bE(m)&&(a=m,r))return a;let _=n[o+1];o=r?gf(_):n0(_)}if(t!==null){let l=s?t.residualClasses:t.residualStyles;l!=null&&(a=kN(l,i))}return a}function bE(n){return n!==void 0}function W2e(n,t){return n==null||n===""||(typeof t=="string"?n=n+t:typeof n=="object"&&(n=tr(Ta(n)))),n}function uX(n,t){return(n.flags&(t?8:16))!==0}function O2(n,t,e){let i=Mt(),o=R8(i,n,t,e);k8(I2,sX,o,!0)}function q2e(n,t,e,i,o,s){let r=t.consts,a=cf(r,o),l=d0(t,n,2,i,a);return C8(t,e,l,cf(r,s)),l.attrs!==null&&gE(l,l.attrs,!1),l.mergedAttrs!==null&&gE(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function C(n,t,e,i){let o=Mt(),s=_n(),r=es+n,a=o[qi],l=s.firstCreatePass?q2e(r,s,o,t,e,i):s.data[r],c=Q2e(s,o,l,a,t,n);o[r]=c;let d=EE(l);return _f(l,!0),EQ(a,c,l),(l.flags&32)!==32&&AE()&&HE(s,o,c,l),P0e()===0&&uc(c,o),F0e(),d&&(g8(s,o,l),m8(s,l,o)),i!==null&&_8(o,l),C}function S(){let n=Es();XO()?ZO():(n=n.parent,_f(n,!1));let t=n;G0e(t)&&V0e(),z0e();let e=_n();return e.firstCreatePass&&(FE(e,n),WO(n)&&e.queries.elementEnd(n)),t.classesWithoutHost!=null&&B1e(t)&&VO(e,t,Mt(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&H1e(t)&&VO(e,t,Mt(),t.stylesWithoutHost,!1),S}function A(n,t,e,i){return C(n,t,e,i),S(),A}var Q2e=(n,t,e,i,o,s)=>(RE(!0),p8(i,o,X0e()));function X2e(n,t,e,i,o){let s=t.consts,r=cf(s,i),a=d0(t,n,8,"ng-container",r);r!==null&&gE(a,r,!0);let l=cf(s,o);return C8(t,e,a,l),t.queries!==null&&t.queries.elementStart(t,a),a}function Se(n,t,e){let i=Mt(),o=_n(),s=n+es,r=o.firstCreatePass?X2e(s,o,i,t,e):o.data[s];_f(r,!0);let a=Z2e(o,i,r,n);return i[s]=a,AE()&&HE(o,i,a,r),uc(a,i),EE(r)&&(g8(o,i,r),m8(o,r,i)),e!=null&&_8(i,r),Se}function ye(){let n=Es(),t=_n();return XO()?ZO():(n=n.parent,_f(n,!1)),t.firstCreatePass&&(FE(t,n),WO(n)&&t.queries.elementEnd(n)),ye}function Rt(n,t,e){return Se(n,t,e),ye(),Rt}var Z2e=(n,t,e,i)=>(RE(!0),pQ(t[qi],""));function Ce(){return Mt()}function M8(n,t,e){let i=Mt(),o=vf();if(xs(i,o,t)){let s=_n(),r=r0();u0(s,r,i,n,t,i[qi],e,!0)}return M8}function N8(n,t,e){let i=Mt(),o=vf();if(xs(i,o,t)){let s=_n(),r=r0(),a=dq(s.data),l=dve(a,r,i);u0(s,r,i,n,t,l,e,!0)}return N8}var nf=void 0;function Y2e(n){let t=n,e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return e===1&&i===0?1:5}var J2e=["en",[["a","p"],["AM","PM"],nf],[["AM","PM"],nf,nf],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],nf,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],nf,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",nf,"{1} 'at' {0}",nf],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Y2e],BN={};function L2(n){let t=eCe(n),e=VW(t);if(e)return e;let i=t.split("-")[0];if(e=VW(i),e)return e;if(i==="en")return J2e;throw new Oe(701,!1)}function hX(n){return L2(n)[Ju.PluralCase]}function VW(n){return n in BN||(BN[n]=bo.ng&&bo.ng.common&&bo.ng.common.locales&&bo.ng.common.locales[n]),BN[n]}var Ju=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(Ju||{});function eCe(n){return n.toLowerCase().replace(/_/g,"-")}var tCe=["zero","one","two","few","many"];function iCe(n,t){let e=hX(t)(parseInt(n,10)),i=tCe[e];return i!==void 0?i:"other"}var SE="en-US",nCe="USD",oCe={marker:"element"},sCe={marker:"ICU"};var pX=SE;function rCe(n){typeof n=="string"&&(pX=n.toLowerCase().replace(/_/g,"-"))}function aCe(){return pX}function a2(n,t){let e=n.data[t];return e===null||typeof e=="string"?null:e.hasOwnProperty("currentCaseLViewIndex")?e:e.value}function O8(n,t){let e=t[n.currentCaseLViewIndex];return e===null?e:e<0?~e:e}function lCe(n){return n>>>17}function cCe(n){return(n&131070)>>>1}var x2=0,l2=0;function dCe(n){n&&(x2=x2|1<0){let i=n.data[e],o=Array.isArray(i)?i:i.update,s=IE()-l2-1;mX(n,t,o,s,x2)}x2=0,l2=0}function fX(n,t,e,i){let o=e[qi],s=null,r;for(let a=0;a>>1,m=t[++a],_=t[++a];b8(o,wE(h,e),null,null,m,_,null);break;default:}else switch(l){case sCe:let c=t[++a],d=t[++a];if(e[d]===null){let m=e[d]=pQ(o,c);uc(m,e)}break;case oCe:let u=t[++a],h=t[++a];if(e[h]===null){let m=e[h]=p8(o,u,null);uc(m,e)}break;default:}}}function mX(n,t,e,i,o){for(let s=0;s>>2;switch(d&3){case 1:let h=e[++c],m=e[++c],_=n.data[u];typeof _=="string"?b8(t[qi],t[u],null,_,h,l,m):u0(n,_,t,h,l,t[qi],m,!1);break;case 0:let b=t[u];b!==null&&hQ(t[qi],b,l);break;case 2:hCe(n,a2(n,u),t,l);break;case 3:BW(n,a2(n,u),i,t);break}}}}else{let l=e[s+1];if(l>0&&(l&3)===3){let c=l>>>2,d=a2(n,c);t[d.currentCaseLViewIndex]<0&&BW(n,d,i,t)}}s+=a}}function BW(n,t,e,i){let o=i[t.currentCaseLViewIndex];if(o!==null){let s=x2;o<0&&(o=i[t.currentCaseLViewIndex]=~o,s=-1),mX(n,i,t.update[o],e,s)}}function hCe(n,t,e,i){let o=pCe(t,i);if(O8(t,e)!==o&&(gX(n,t,e),e[t.currentCaseLViewIndex]=o===null?null:~o,o!==null)){let r=e[t.anchorIdx];r&&fX(n,t.create[o],e,r)}}function gX(n,t,e){let i=O8(t,e);if(i!==null){let o=t.remove[i];for(let s=0;s0){let a=wE(r,e);a!==null&&SQ(e[qi],a)}else gX(n,a2(n,~r),e)}}}function pCe(n,t){let e=n.cases.indexOf(t);if(e===-1)switch(n.type){case 1:{let i=iCe(t,aCe());e=n.cases.indexOf(i),e===-1&&i!=="other"&&(e=n.cases.indexOf("other"));break}case 0:{e=n.cases.indexOf("other");break}}return e===-1?null:e}var fCe=/�(\d+):?\d*�/gi,mCe=/({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi;function gCe(n,t,e){let o=Es().index,s=[];if(n.firstCreatePass&&n.data[t]===null){for(let r=0;rl?a[l]:null}typeof r=="string"&&(s+=2)}return null}function _X(n,t,e,i,o,s,r){let a=EE(i),c=n.firstCreatePass&&LQ(n),d=t[Dl],u=OQ(t),h=!0;if(i.type&3||r){let b=Ia(i,t),E=r?r(b):b,w=u.length,T=r?F=>r(Tl(F[i.index])):i.index,N=null;if(!r&&a&&(N=bCe(n,t,o,i.index)),N!==null){let F=N.__ngLastListenerFn__||N;F.__ngNextListenerFn__=s,N.__ngLastListenerFn__=s,h=!1}else{s=UW(i,t,d,s,!1);let F=e.listen(E,o,s);u.push(s,F),c&&c.push(o,T,w,w+1)}}else s=UW(i,t,d,s,!1);let m=i.outputs,_;if(h&&m!==null&&(_=m[o])){let b=_.length;if(b)for(let E=0;E-1?Xu(n.index,t):t;x8(a);let l=HW(t,e,i,r),c=s.__ngNextListenerFn__;for(;c;)l=HW(t,e,c,r)&&l,c=c.__ngNextListenerFn__;return o&&l===!1&&r.preventDefault(),l}}function v(n=1){return q0e(n)}function SCe(n,t){let e=null,i=g0e(n);for(let o=0;o=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}function Fe(n){let t=H0e();return DE(t,es+n)}function se(n,t=""){let e=Mt(),i=_n(),o=n+es,s=i.firstCreatePass?d0(i,o,1,t,null):i.data[o],r=xCe(i,e,s,t,n);e[o]=r,AE()&&HE(i,e,r,s),_f(s,!1)}var xCe=(n,t,e,i,o)=>(RE(!0),uQ(t[qi],i));function Ye(n){return $t("",n,""),Ye}function $t(n,t,e){let i=Mt(),o=R8(i,n,t,e);return o!==ts&&$E(i,fc(),o),$t}function eh(n,t,e,i,o){let s=Mt(),r=E2e(s,n,t,e,i,o);return r!==ts&&$E(s,fc(),r),eh}function P2(n,t,e,i,o,s,r){let a=Mt(),l=w2e(a,n,t,e,i,o,s,r);return l!==ts&&$E(a,fc(),l),P2}function F8(n,t,e,i,o,s,r,a,l,c,d){let u=Mt(),h=D2e(u,n,t,e,i,o,s,r,a,l,c,d);return h!==ts&&$E(u,fc(),h),F8}function ko(n,t,e){$Q(t)&&(t=t());let i=Mt(),o=vf();if(xs(i,o,t)){let s=_n(),r=r0();u0(s,r,i,n,t,i[qi],e,!1)}return ko}function Vo(n,t){let e=$Q(n);return e&&n.set(t),e}function Mo(n,t){let e=Mt(),i=_n(),o=Es();return _X(i,e,e[qi],o,n,t),Mo}function ECe(n,t,e){let i=_n();if(i.firstCreatePass){let o=Td(n);BO(e,i.data,i.blueprint,o,!0),BO(t,i.data,i.blueprint,o,!1)}}function BO(n,t,e,i,o){if(n=er(n),Array.isArray(n))for(let s=0;s>20;if(t0(n)||!n.multi){let m=new hf(c,o,f),_=UN(l,t,o?d:d+h,u);_===-1?(oO(hE(a,r),s,l),HN(s,n,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(m),r.push(m)):(e[_]=m,r[_]=m)}else{let m=UN(l,t,d+h,u),_=UN(l,t,d,d+h),b=m>=0&&e[m],E=_>=0&&e[_];if(o&&!E||!o&&!b){oO(hE(a,r),s,l);let w=ICe(o?DCe:wCe,e.length,o,i,c);!o&&E&&(e[_].providerFactory=w),HN(s,n,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(w),r.push(w)}else{let w=vX(e[o?_:m],c,!o&&i);HN(s,n,m>-1?m:_,w)}!o&&i&&E&&e[_].componentProviders++}}}function HN(n,t,e,i){let o=t0(t),s=I1e(t);if(o||s){let l=(s?er(t.useClass):t).prototype.ngOnDestroy;if(l){let c=n.destroyHooks||(n.destroyHooks=[]);if(!o&&t.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function vX(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function UN(n,t,e,i){for(let o=e;o{e.providersResolver=(i,o)=>ECe(i,o?o(n):n,t)}}var TCe=(()=>{let t=class t{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){let o=Mq(!1,i.type),s=o.length>0?T8([o],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,s)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(let i of this.cachedInjectors.values())i!==null&&i.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=Q({token:t,providedIn:"environment",factory:()=>new t(q(Da))});let n=t;return n})();function vn(n){qQ("NgStandalone"),n.getStandaloneInjector=t=>t.get(TCe).getOrCreateStandaloneInjector(n)}function hn(n,t,e){let i=Hr()+n,o=Mt();return o[i]===ts?mc(o,i,e?t.call(e):t()):N2(o,i)}function Vt(n,t,e,i){return SX(Mt(),Hr(),n,t,e,i)}function jt(n,t,e,i,o){return yX(Mt(),Hr(),n,t,e,i,o)}function is(n,t,e,i,o,s){return xX(Mt(),Hr(),n,t,e,i,o,s)}function Ur(n,t,e,i,o,s,r){return ACe(Mt(),Hr(),n,t,e,i,o,s,r)}function z8(n,t,e,i,o,s,r,a){let l=Hr()+n,c=Mt(),d=mf(c,l,e,i,o,s);return xs(c,l+4,r)||d?mc(c,l+5,a?t.call(a,e,i,o,s,r):t(e,i,o,s,r)):N2(c,l+5)}function p0(n,t,e,i,o,s,r,a,l){let c=Hr()+n,d=Mt(),u=mf(d,c,e,i,o,s);return i0(d,c+4,r,a)||u?mc(d,c+6,l?t.call(l,e,i,o,s,r,a):t(e,i,o,s,r,a)):N2(d,c+6)}function CX(n,t,e,i,o,s,r,a,l,c){let d=Hr()+n,u=Mt(),h=mf(u,d,e,i,o,s);return A8(u,d+4,r,a,l)||h?mc(u,d+7,c?t.call(c,e,i,o,s,r,a,l):t(e,i,o,s,r,a,l)):N2(u,d+7)}function bX(n,t,e,i,o,s,r,a,l,c,d){let u=Hr()+n,h=Mt(),m=mf(h,u,e,i,o,s);return mf(h,u+4,r,a,l,c)||m?mc(h,u+8,d?t.call(d,e,i,o,s,r,a,l,c):t(e,i,o,s,r,a,l,c)):N2(h,u+8)}function YE(n,t,e,i){return RCe(Mt(),Hr(),n,t,e,i)}function F2(n,t){let e=n[t];return e===ts?void 0:e}function SX(n,t,e,i,o,s){let r=t+e;return xs(n,r,o)?mc(n,r+1,s?i.call(s,o):i(o)):F2(n,r+1)}function yX(n,t,e,i,o,s,r){let a=t+e;return i0(n,a,o,s)?mc(n,a+2,r?i.call(r,o,s):i(o,s)):F2(n,a+2)}function xX(n,t,e,i,o,s,r,a){let l=t+e;return A8(n,l,o,s,r)?mc(n,l+3,a?i.call(a,o,s,r):i(o,s,r)):F2(n,l+3)}function ACe(n,t,e,i,o,s,r,a,l){let c=t+e;return mf(n,c,o,s,r,a)?mc(n,c+4,l?i.call(l,o,s,r,a):i(o,s,r,a)):F2(n,c+4)}function RCe(n,t,e,i,o,s){let r=t+e,a=!1;for(let l=0;l=0;e--){let i=t[e];if(n===i.name)return i}}function bf(n,t,e){let i=n+es,o=Mt(),s=DE(o,i);return G8(o,i)?SX(o,Hr(),t,s.transform,e,s):s.transform(e)}function EX(n,t,e,i){let o=n+es,s=Mt(),r=DE(s,o);return G8(s,o)?yX(s,Hr(),t,r.transform,e,i,r):r.transform(e,i)}function JE(n,t,e,i,o){let s=n+es,r=Mt(),a=DE(r,s);return G8(r,s)?xX(r,Hr(),t,a.transform,e,i,o,a):a.transform(e,i,o)}function G8(n,t){return n[li].data[t].pure}function Lt(n,t){return WE(n,t)}var ew=(()=>{let t=class t{log(i){console.log(i)}warn(i){console.warn(i)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"platform"});let n=t;return n})();var V8=new ot(""),z2=new ot(""),tw=(()=>{let t=class t{constructor(i,o,s){this._ngZone=i,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,B8||(MCe(s),s.addToWindow(o)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{oe.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(i)?(clearTimeout(o.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,o,s){let r=-1;o&&o>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),i()},o)),this._callbacks.push({doneCb:i,timeoutId:r,updateCb:s})}whenStable(i,o,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(i,o,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,o,s){return[]}};t.\u0275fac=function(o){return new(o||t)(q(oe),q(iw),q(z2))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),iw=(()=>{let t=class t{constructor(){this._applications=new Map}registerApplication(i,o){this._applications.set(i,o)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,o=!0){return B8?.findTestabilityInTree(this,i,o)??null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"platform"});let n=t;return n})();function MCe(n){B8=n}var B8;function th(n){return!!n&&typeof n.then=="function"}function H8(n){return!!n&&typeof n.subscribe=="function"}var wX=new ot(""),DX=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o}),this.appInits=mt(wX,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let i=[];for(let s of this.appInits){let r=s();if(th(r))i.push(r);else if(H8(r)){let a=new Promise((l,c)=>{r.subscribe({complete:l,error:c})});i.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{o()}).catch(s=>{this.reject(s)}),i.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),U8=new ot("");function NCe(){x$(()=>{throw new Oe(600,!1)})}function OCe(n){return n.isBoundToModule}function LCe(n,t,e){try{let i=e();return th(i)?i.catch(o=>{throw t.runOutsideAngular(()=>n.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}var ih=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=mt(Zq),this.afterRenderEffectManager=mt(QQ),this.componentTypes=[],this.components=[],this.isStable=mt(qE).hasPendingTasks.pipe(Me(i=>!i)),this._injector=mt(Da)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,o){let s=i instanceof fE;if(!this._injector.get(DX).done){let m=!s&&JW(i),_=!1;throw new Oe(405,_)}let a;s?a=i:a=this._injector.get(Cr).resolveComponentFactory(i),this.componentTypes.push(a.componentType);let l=OCe(a)?void 0:this._injector.get(qu),c=o||a.selector,d=a.create(to.NULL,[],c,l),u=d.location.nativeElement,h=d.injector.get(V8,null);return h?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),jN(this.components,d),h?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new Oe(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let i=0;do{if(i===BQ)throw new Oe(103,!1);let o=i===0;for(let{_lView:s,notifyErrorHandler:r}of this._views)!o&&!jW(s)||this.detectChangesInView(s,r,o);this.afterRenderEffectManager.execute(),i++}while(this._views.some(({_lView:o})=>jW(o)))}detectChangesInView(i,o,s){let r;s?(r=0,i[Wt]|=1024):i[Wt]&64?r=0:r=1,HQ(i,o,r)}attachView(i){let o=i;this._views.push(o),o.attachToAppRef(this)}detachView(i){let o=i;jN(this._views,o),o.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);let o=this._injector.get(U8,[]);[...this._bootstrapListeners,...o].forEach(s=>s(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>jN(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new Oe(406,!1);let i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function jN(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function jW(n){return QO(n)}var UO=class{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}},j8=(()=>{let t=class t{compileModuleSync(i){return new FO(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){let o=this.compileModuleSync(i),s=eq(i),r=dQ(s.declarations).reduce((a,l)=>{let c=rf(l);return c&&a.push(new b2(c)),a},[]);return new UO(o,r)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var PCe=(()=>{let t=class t{constructor(){this.zone=mt(oe),this.applicationRef=mt(ih)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function FCe(n){return[{provide:oe,useFactory:n},{provide:e0,multi:!0,useFactory:()=>{let t=mt(PCe,{optional:!0});return()=>t.initialize()}},{provide:e0,multi:!0,useFactory:()=>{let t=mt(BCe);return()=>{t.initialize()}}},{provide:Zq,useFactory:zCe}]}function zCe(){let n=mt(oe),t=mt(Ad);return e=>n.runOutsideAngular(()=>t.handleError(e))}function GCe(n){let t=FCe(()=>new oe(VCe(n)));return LE([[],t])}function VCe(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}var BCe=(()=>{let t=class t{constructor(){this.subscription=new Ee,this.initialized=!1,this.zone=mt(oe),this.pendingTasks=mt(qE)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{oe.assertNotInAngularZone(),queueMicrotask(()=>{i!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{oe.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function HCe(){return typeof $localize<"u"&&$localize.locale||SE}var gc=new ot("",{providedIn:"root",factory:()=>mt(gc,mi.Optional|mi.SkipSelf)||HCe()}),IX=new ot("",{providedIn:"root",factory:()=>nCe});var TX=new ot("");var nE=null;function UCe(n=[],t){return to.create({name:t,providers:[{provide:PE,useValue:"platform"},{provide:TX,useValue:new Set([()=>nE=null])},...n]})}function jCe(n=[]){if(nE)return nE;let t=UCe(n);return nE=t,NCe(),KCe(t),t}function KCe(n){n.get(i8,null)?.forEach(e=>e())}function Ke(){return!1}var AX=(()=>{let t=class t{constructor(i){}};t.\u0275fac=function(o){return new(o||t)(q(ih))},t.\u0275mod=he({type:t}),t.\u0275inj=pe({});let n=t;return n})();function RX(n){try{let{rootComponent:t,appProviders:e,platformProviders:i}=n,o=jCe(i),s=[GCe(),...e||[]],a=new CE({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,l=a.get(oe);return l.run(()=>{a.resolveInjectorInitializers();let c=a.get(Ad,null),d;l.runOutsideAngular(()=>{d=l.onError.subscribe({next:m=>{c.handleError(m)}})});let u=()=>a.destroy(),h=o.get(TX);return h.add(u),a.onDestroy(()=>{d.unsubscribe(),h.delete(u)}),LCe(c,l,()=>{let m=a.get(DX);return m.runInitializers(),m.donePromise.then(()=>{let _=a.get(gc,SE);rCe(_||SE);let b=a.get(ih);return t!==void 0&&b.bootstrap(t),b})})})}catch(t){return Promise.reject(t)}}function nw(n){return typeof n=="boolean"?n:n!=null&&n!=="false"}var zX=null;function vc(){return zX}function GX(n){zX??=n}var ow=class{};var ns=new ot(""),VX=(()=>{let t=class t{historyGo(i){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(qCe),providedIn:"platform"});let n=t;return n})();var qCe=(()=>{let t=class t extends VX{constructor(){super(),this._doc=mt(ns),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vc().getBaseHref(this._doc)}onPopState(i){let o=vc().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",i,!1),()=>o.removeEventListener("popstate",i)}onHashChange(i){let o=vc().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",i,!1),()=>o.removeEventListener("hashchange",i)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(i){this._location.pathname=i}pushState(i,o,s){this._history.pushState(i,o,s)}replaceState(i,o,s){this._history.replaceState(i,o,s)}forward(){this._history.forward()}back(){this._history.back()}historyGo(i=0){this._history.go(i)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>new t,providedIn:"platform"});let n=t;return n})();function BX(n,t){if(n.length==0)return t;if(t.length==0)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,e==2?n+t.substring(1):e==1?n+t:n+"/"+t}function kX(n){let t=n.match(/#|\?|$/),e=t&&t.index||n.length,i=e-(n[e-1]==="/"?1:0);return n.slice(0,i)+n.slice(e)}function Sf(n){return n&&n[0]!=="?"?"?"+n:n}var lw=(()=>{let t=class t{historyGo(i){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(HX),providedIn:"root"});let n=t;return n})(),QCe=new ot(""),HX=(()=>{let t=class t extends lw{constructor(i,o){super(),this._platformLocation=i,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??mt(ns).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}prepareExternalUrl(i){return BX(this._baseHref,i)}path(i=!1){let o=this._platformLocation.pathname+Sf(this._platformLocation.search),s=this._platformLocation.hash;return s&&i?`${o}${s}`:o}pushState(i,o,s,r){let a=this.prepareExternalUrl(s+Sf(r));this._platformLocation.pushState(i,o,a)}replaceState(i,o,s,r){let a=this.prepareExternalUrl(s+Sf(r));this._platformLocation.replaceState(i,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};t.\u0275fac=function(o){return new(o||t)(q(VX),q(QCe,8))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var B2=(()=>{let t=class t{constructor(i){this._subject=new y,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=i;let o=this._locationStrategy.getBaseHref();this._basePath=YCe(kX(MX(o))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(i=!1){return this.normalize(this._locationStrategy.path(i))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(i,o=""){return this.path()==this.normalize(i+Sf(o))}normalize(i){return t.stripTrailingSlash(ZCe(this._basePath,MX(i)))}prepareExternalUrl(i){return i&&i[0]!=="/"&&(i="/"+i),this._locationStrategy.prepareExternalUrl(i)}go(i,o="",s=null){this._locationStrategy.pushState(s,"",i,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+Sf(o)),s)}replaceState(i,o="",s=null){this._locationStrategy.replaceState(s,"",i,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+Sf(o)),s)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(i=0){this._locationStrategy.historyGo?.(i)}onUrlChange(i){return this._urlChangeListeners.push(i),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(i);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(i="",o){this._urlChangeListeners.forEach(s=>s(i,o))}subscribe(i,o,s){return this._subject.subscribe({next:i,error:o,complete:s})}};t.normalizeQueryParams=Sf,t.joinWithSlash=BX,t.stripTrailingSlash=kX,t.\u0275fac=function(o){return new(o||t)(q(lw))},t.\u0275prov=Q({token:t,factory:()=>XCe(),providedIn:"root"});let n=t;return n})();function XCe(){return new B2(q(lw))}function ZCe(n,t){if(!n||!t.startsWith(n))return t;let e=t.substring(n.length);return e===""||["/",";","?","#"].includes(e[0])?e:t}function MX(n){return n.replace(/\/index.html$/,"")}function YCe(n){if(new RegExp("^(https?:)?//").test(n)){let[,e]=n.split(/\/\/[^\/]+/);return e}return n}var UX={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},jX=function(n){return n[n.Decimal=0]="Decimal",n[n.Percent=1]="Percent",n[n.Currency=2]="Currency",n[n.Scientific=3]="Scientific",n}(jX||{});var _c=function(n){return n[n.Decimal=0]="Decimal",n[n.Group=1]="Group",n[n.List=2]="List",n[n.PercentSign=3]="PercentSign",n[n.PlusSign=4]="PlusSign",n[n.MinusSign=5]="MinusSign",n[n.Exponential=6]="Exponential",n[n.SuperscriptingExponent=7]="SuperscriptingExponent",n[n.PerMille=8]="PerMille",n[n.Infinity=9]="Infinity",n[n.NaN=10]="NaN",n[n.TimeSeparator=11]="TimeSeparator",n[n.CurrencyDecimal=12]="CurrencyDecimal",n[n.CurrencyGroup=13]="CurrencyGroup",n}(_c||{});function G2(n,t){let e=L2(n),i=e[Ju.NumberSymbols][t];if(typeof i>"u"){if(t===_c.CurrencyDecimal)return e[Ju.NumberSymbols][_c.Decimal];if(t===_c.CurrencyGroup)return e[Ju.NumberSymbols][_c.Group]}return i}function JCe(n,t){return L2(n)[Ju.NumberFormats][t]}function ebe(n){return L2(n)[Ju.Currencies]}function tbe(n,t,e="en"){let i=ebe(e)[n]||UX[n]||[],o=i[1];return t==="narrow"&&typeof o=="string"?o:i[0]||n}var ibe=2;function nbe(n){let t,e=UX[n];return e&&(t=e[2]),typeof t=="number"?t:ibe}var obe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,NX=22,sw=".",V2="0",sbe=";",rbe=",",K8="#",OX="\xA4";function abe(n,t,e,i,o,s,r=!1){let a="",l=!1;if(!isFinite(n))a=G2(e,_c.Infinity);else{let c=ube(n);r&&(c=dbe(c));let d=t.minInt,u=t.minFrac,h=t.maxFrac;if(s){let T=s.match(obe);if(T===null)throw new Error(`${s} is not a valid digit info`);let N=T[1],F=T[3],O=T[5];N!=null&&(d=$8(N)),F!=null&&(u=$8(F)),O!=null?h=$8(O):F!=null&&u>h&&(h=u)}hbe(c,u,h);let m=c.digits,_=c.integerLen,b=c.exponent,E=[];for(l=m.every(T=>!T);_0?E=m.splice(_,m.length):(E=m,m=[0]);let w=[];for(m.length>=t.lgSize&&w.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)w.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&w.unshift(m.join("")),a=w.join(G2(e,i)),E.length&&(a+=G2(e,o)+E.join("")),b&&(a+=G2(e,_c.Exponential)+"+"+b)}return n<0&&!l?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function lbe(n,t,e,i,o){let s=JCe(t,jX.Currency),r=cbe(s,G2(t,_c.MinusSign));return r.minFrac=nbe(i),r.maxFrac=r.minFrac,abe(n,r,t,_c.CurrencyGroup,_c.CurrencyDecimal,o).replace(OX,e).replace(OX,"").trim()}function cbe(n,t="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.split(sbe),o=i[0],s=i[1],r=o.indexOf(sw)!==-1?o.split(sw):[o.substring(0,o.lastIndexOf(V2)+1),o.substring(o.lastIndexOf(V2)+1)],a=r[0],l=r[1]||"";e.posPre=a.substring(0,a.indexOf(K8));for(let d=0;d-1&&(t=t.replace(sw,"")),(s=t.search(/e/i))>0?(o<0&&(o=s),o+=+t.slice(s+1),t=t.substring(0,s)):o<0&&(o=t.length),s=0;t.charAt(s)===V2;s++);if(s===(a=t.length))i=[0],o=1;else{for(a--;t.charAt(a)===V2;)a--;for(o-=s,i=[],r=0;s<=a;s++,r++)i[r]=Number(t.charAt(s))}return o>NX&&(i=i.splice(0,NX-1),e=o-1,o=1),{digits:i,exponent:e,integerLen:o}}function hbe(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let i=n.digits,o=i.length-n.integerLen,s=Math.min(Math.max(t,o),e),r=s+n.integerLen,a=i[r];if(r>0){i.splice(Math.max(n.integerLen,r));for(let u=r;u=5)if(r-1<0){for(let u=0;u>r;u--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[r-1]++;for(;o=c?_.pop():l=!1),h>=10?1:0},0);d&&(i.unshift(d),n.integerLen++)}function $8(n){let t=parseInt(n);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+n);return t}function KX(n,t){t=encodeURIComponent(t);for(let e of n.split(";")){let i=e.indexOf("="),[o,s]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===t)return decodeURIComponent(s)}return null}var W8=/\s+/,LX=[],gt=(()=>{let t=class t{constructor(i,o){this._ngEl=i,this._renderer=o,this.initialClasses=LX,this.stateMap=new Map}set klass(i){this.initialClasses=i!=null?i.trim().split(W8):LX}set ngClass(i){this.rawClass=typeof i=="string"?i.trim().split(W8):i}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let i=this.rawClass;if(Array.isArray(i)||i instanceof Set)for(let o of i)this._updateState(o,!0);else if(i!=null)for(let o of Object.keys(i))this._updateState(o,!!i[o]);this._applyStateDiff()}_updateState(i,o){let s=this.stateMap.get(i);s!==void 0?(s.enabled!==o&&(s.changed=!0,s.enabled=o),s.touched=!0):this.stateMap.set(i,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let i of this.stateMap){let o=i[0],s=i[1];s.changed?(this._toggleClass(o,s.enabled),s.changed=!1):s.touched||(s.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),s.touched=!1}}_toggleClass(i,o){i=i.trim(),i.length>0&&i.split(W8).forEach(s=>{o?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}};t.\u0275fac=function(o){return new(o||t)(f(J),f(ce))},t.\u0275dir=z({type:t,selectors:[["","ngClass",""]],inputs:{klass:[lt.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let n=t;return n})();var q8=class{constructor(t,e,i,o){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Kt=(()=>{let t=class t{set ngForOf(i){this._ngForOf=i,this._ngForOfDirty=!0}set ngForTrackBy(i){this._trackByFn=i}get ngForTrackBy(){return this._trackByFn}constructor(i,o,s){this._viewContainer=i,this._template=o,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(i){i&&(this._template=i)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let i=this._ngForOf;if(!this._differ&&i)if(0)try{}catch{}else this._differ=this._differs.find(i).create(this.ngForTrackBy)}if(this._differ){let i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}_applyChanges(i){let o=this._viewContainer;i.forEachOperation((s,r,a)=>{if(s.previousIndex==null)o.createEmbeddedView(this._template,new q8(s.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(r===null?void 0:r);else if(r!==null){let l=o.get(r);o.move(l,a),PX(l,s)}});for(let s=0,r=o.length;s{let r=o.get(s.currentIndex);PX(r,s)})}static ngTemplateContextGuard(i,o){return!0}};t.\u0275fac=function(o){return new(o||t)(f(Si),f(me),f(k2))},t.\u0275dir=z({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let n=t;return n})();function PX(n,t){n.context.$implicit=t.item}var _e=(()=>{let t=class t{constructor(i,o){this._viewContainer=i,this._context=new Q8,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(i){this._context.$implicit=this._context.ngIf=i,this._updateView()}set ngIfThen(i){FX("ngIfThen",i),this._thenTemplateRef=i,this._thenViewRef=null,this._updateView()}set ngIfElse(i){FX("ngIfElse",i),this._elseTemplateRef=i,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(i,o){return!0}};t.\u0275fac=function(o){return new(o||t)(f(Si),f(me))},t.\u0275dir=z({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let n=t;return n})(),Q8=class{constructor(){this.$implicit=null,this.ngIf=null}};function FX(n,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${n} must be a TemplateRef, but received '${tr(t)}'.`)}var pbe=!0,rw=class{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}},Od=(()=>{let t=class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(i){this._ngSwitch=i,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(i){this._defaultViews.push(i)}_matchCase(i){let o=pbe?i===this._ngSwitch:i==this._ngSwitch;return this._lastCasesMatched||=o,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),o}_updateDefaultCases(i){if(this._defaultViews.length>0&&i!==this._defaultUsed){this._defaultUsed=i;for(let o of this._defaultViews)o.enforceState(i)}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=z({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let n=t;return n})(),yf=(()=>{let t=class t{constructor(i,o,s){this.ngSwitch=s,s._addCase(),this._view=new rw(i,o)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};t.\u0275fac=function(o){return new(o||t)(f(Si),f(me),f(Od,9))},t.\u0275dir=z({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let n=t;return n})(),cw=(()=>{let t=class t{constructor(i,o,s){s._addDefault(new rw(i,o))}};t.\u0275fac=function(o){return new(o||t)(f(Si),f(me),f(Od,9))},t.\u0275dir=z({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0});let n=t;return n})();var yi=(()=>{let t=class t{constructor(i,o,s){this._ngEl=i,this._differs=o,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(i){this._ngStyle=i,!this._differ&&i&&(this._differ=this._differs.find(i).create())}ngDoCheck(){if(this._differ){let i=this._differ.diff(this._ngStyle);i&&this._applyChanges(i)}}_setStyle(i,o){let[s,r]=i.split("."),a=s.indexOf("-")===-1?void 0:hc.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,s,r?`${o}${r}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,s,a)}_applyChanges(i){i.forEachRemovedItem(o=>this._setStyle(o.key,null)),i.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),i.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};t.\u0275fac=function(o){return new(o||t)(f(J),f(M2),f(ce))},t.\u0275dir=z({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let n=t;return n})(),_t=(()=>{let t=class t{constructor(i){this._viewContainerRef=i,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(i){if(this._shouldRecreateView(i)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let s=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,s,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(i){return!!i.ngTemplateOutlet||!!i.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(i,o,s)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,s):!1,get:(i,o,s)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,s)}})}};t.\u0275fac=function(o){return new(o||t)(f(Si))},t.\u0275dir=z({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Le]});let n=t;return n})();function $X(n,t){return new Oe(2100,!1)}var X8=class{createSubscription(t,e){return E8(()=>t.subscribe({next:e,error:i=>{throw i}}))}dispose(t){E8(()=>t.unsubscribe())}},Z8=class{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}},fbe=new Z8,mbe=new X8,WX=(()=>{let t=class t{constructor(i){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=i}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(i){return this._obj?i!==this._obj?(this._dispose(),this.transform(i)):this._latestValue:(i&&this._subscribe(i),this._latestValue)}_subscribe(i){this._obj=i,this._strategy=this._selectStrategy(i),this._subscription=this._strategy.createSubscription(i,o=>this._updateLatestValue(i,o))}_selectStrategy(i){if(th(i))return fbe;if(H8(i))return mbe;throw $X(t,i)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(i,o){i===this._obj&&(this._latestValue=o,this._ref.markForCheck())}};t.\u0275fac=function(o){return new(o||t)(f(je,16))},t.\u0275pipe=Qu({name:"async",type:t,pure:!1,standalone:!0});let n=t;return n})();var qX=(()=>{let t=class t{constructor(i,o="USD"){this._locale=i,this._defaultCurrencyCode=o}transform(i,o=this._defaultCurrencyCode,s="symbol",r,a){if(!gbe(i))return null;a||=this._locale,typeof s=="boolean"&&(s=s?"symbol":"code");let l=o||this._defaultCurrencyCode;s!=="code"&&(s==="symbol"||s==="symbol-narrow"?l=tbe(l,s==="symbol"?"wide":"narrow",a):l=s);try{let c=_be(i);return lbe(c,a,l,o,r)}catch(c){throw $X(t,c.message)}}};t.\u0275fac=function(o){return new(o||t)(f(gc,16),f(IX,16))},t.\u0275pipe=Qu({name:"currency",type:t,pure:!0,standalone:!0});let n=t;return n})();function gbe(n){return!(n==null||n===""||n!==n)}function _be(n){if(typeof n=="string"&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if(typeof n!="number")throw new Error(`${n} is not a number`);return n}var Ie=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=he({type:t}),t.\u0275inj=pe({});let n=t;return n})(),QX="browser",vbe="server";function J8(n){return n===vbe}var aw=class{};var i5=class extends ow{constructor(){super(...arguments),this.supportsDOMEvents=!0}},n5=class n extends i5{static makeCurrent(){GX(new n)}onAndCancel(t,e,i){return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=Cbe();return e==null?null:bbe(e)}resetBaseElement(){H2=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return KX(document.cookie,t)}},H2=null;function Cbe(){return H2=H2||document.querySelector("base"),H2?H2.getAttribute("href"):null}function bbe(n){return new URL(n,document.baseURI).pathname}var o5=class{addToWindow(t){bo.getAngularTestability=(i,o=!0)=>{let s=t.findTestabilityInTree(i,o);if(s==null)throw new Oe(5103,!1);return s},bo.getAllAngularTestabilities=()=>t.getAllTestabilities(),bo.getAllAngularRootElements=()=>t.getAllRootElements();let e=i=>{let o=bo.getAllAngularTestabilities(),s=o.length,r=function(){s--,s==0&&i()};o.forEach(a=>{a.whenStable(r)})};bo.frameworkStabilizers||(bo.frameworkStabilizers=[]),bo.frameworkStabilizers.push(e)}findTestabilityInTree(t,e,i){if(e==null)return null;let o=t.getTestability(e);return o??(i?vc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},Sbe=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),s5=new ot(""),YX=(()=>{let t=class t{constructor(i,o){this._zone=o,this._eventNameToPlugin=new Map,i.forEach(s=>{s.manager=this}),this._plugins=i.slice().reverse()}addEventListener(i,o,s){return this._findPluginFor(o).addEventListener(i,o,s)}getZone(){return this._zone}_findPluginFor(i){let o=this._eventNameToPlugin.get(i);if(o)return o;if(o=this._plugins.find(r=>r.supports(i)),!o)throw new Oe(5101,!1);return this._eventNameToPlugin.set(i,o),o}};t.\u0275fac=function(o){return new(o||t)(q(s5),q(oe))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),dw=class{constructor(t){this._doc=t}},e5="ng-app-id",JX=(()=>{let t=class t{constructor(i,o,s,r={}){this.doc=i,this.appId=o,this.nonce=s,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=J8(r),this.resetHostNodes()}addStyles(i){for(let o of i)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(i){for(let o of i)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let i=this.styleNodesInDOM;i&&(i.forEach(o=>o.remove()),i.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(i){this.hostNodes.add(i);for(let o of this.getAllStyles())this.addStyleToHost(i,o)}removeHost(i){this.hostNodes.delete(i)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(i){for(let o of this.hostNodes)this.addStyleToHost(o,i)}onStyleRemoved(i){let o=this.styleRef;o.get(i)?.elements?.forEach(s=>s.remove()),o.delete(i)}collectServerRenderedStyles(){let i=this.doc.head?.querySelectorAll(`style[${e5}="${this.appId}"]`);if(i?.length){let o=new Map;return i.forEach(s=>{s.textContent!=null&&o.set(s.textContent,s)}),o}return null}changeUsageCount(i,o){let s=this.styleRef;if(s.has(i)){let r=s.get(i);return r.usage+=o,r.usage}return s.set(i,{usage:o,elements:[]}),o}getStyleElement(i,o){let s=this.styleNodesInDOM,r=s?.get(o);if(r?.parentNode===i)return s.delete(o),r.removeAttribute(e5),r;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(e5,this.appId),i.appendChild(a),a}}addStyleToHost(i,o){let s=this.getStyleElement(i,o),r=this.styleRef,a=r.get(o)?.elements;a?a.push(s):r.set(o,{elements:[s],usage:1})}resetHostNodes(){let i=this.hostNodes;i.clear(),i.add(this.doc.head)}};t.\u0275fac=function(o){return new(o||t)(q(ns),q(ME),q(n8,8),q(l0))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),t5={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},a5=/%COMP%/g,eZ="%COMP%",ybe=`_nghost-${eZ}`,xbe=`_ngcontent-${eZ}`,Ebe=!0,wbe=new ot("",{providedIn:"root",factory:()=>Ebe});function Dbe(n){return xbe.replace(a5,n)}function Ibe(n){return ybe.replace(a5,n)}function tZ(n,t){return t.map(e=>e.replace(a5,n))}var uw=(()=>{let t=class t{constructor(i,o,s,r,a,l,c,d=null){this.eventManager=i,this.sharedStylesHost=o,this.appId=s,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=J8(l),this.defaultRenderer=new U2(i,a,c,this.platformIsServer)}createRenderer(i,o){if(!i||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===wa.ShadowDom&&(o=Wi(Ge({},o),{encapsulation:wa.Emulated}));let s=this.getOrCreateRenderer(i,o);return s instanceof hw?s.applyToHost(i):s instanceof j2&&s.applyStyles(),s}getOrCreateRenderer(i,o){let s=this.rendererByCompId,r=s.get(o.id);if(!r){let a=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(o.encapsulation){case wa.Emulated:r=new hw(c,d,o,this.appId,u,a,l,h);break;case wa.ShadowDom:return new r5(c,d,i,o,a,l,this.nonce,h);default:r=new j2(c,d,o,u,a,l,h);break}s.set(o.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(o){return new(o||t)(q(YX),q(JX),q(ME),q(wbe),q(ns),q(l0),q(oe),q(n8))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),U2=class{constructor(t,e,i,o){this.eventManager=t,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,e){return e?this.doc.createElementNS(t5[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(XX(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(XX(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i=typeof t=="string"?this.doc.querySelector(t):t;if(!i)throw new Oe(-5104,!1);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,o){if(o){e=o+":"+e;let s=t5[o];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){let o=t5[i];o?t.removeAttributeNS(o,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,o){o&(hc.DashCase|hc.Important)?t.style.setProperty(e,i,o&hc.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&hc.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t!=null&&(t[e]=i)}setValue(t,e){t.nodeValue=e}listen(t,e,i){if(typeof t=="string"&&(t=vc().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(i))}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function XX(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var r5=class extends U2{constructor(t,e,i,o,s,r,a,l){super(t,s,r,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=tZ(o.id,o.styles);for(let d of c){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},j2=class extends U2{constructor(t,e,i,o,s,r,a,l){super(t,s,r,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?tZ(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},hw=class extends j2{constructor(t,e,i,o,s,r,a,l){let c=o+"-"+i.id;super(t,e,i,s,r,a,l,c),this.contentAttr=Dbe(c),this.hostAttr=Ibe(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}},Tbe=(()=>{let t=class t extends dw{constructor(i){super(i)}supports(i){return!0}addEventListener(i,o,s){return i.addEventListener(o,s,!1),()=>this.removeEventListener(i,o,s)}removeEventListener(i,o,s){return i.removeEventListener(o,s)}};t.\u0275fac=function(o){return new(o||t)(q(ns))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),ZX=["alt","control","meta","shift"],Abe={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Rbe={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},kbe=(()=>{let t=class t extends dw{constructor(i){super(i)}supports(i){return t.parseEventName(i)!=null}addEventListener(i,o,s){let r=t.parseEventName(o),a=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vc().onAndCancel(i,r.domEventName,a))}static parseEventName(i){let o=i.toLowerCase().split("."),s=o.shift();if(o.length===0||!(s==="keydown"||s==="keyup"))return null;let r=t._normalizeKey(o.pop()),a="",l=o.indexOf("code");if(l>-1&&(o.splice(l,1),a="code."),ZX.forEach(d=>{let u=o.indexOf(d);u>-1&&(o.splice(u,1),a+=d+".")}),a+=r,o.length!=0||r.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(i,o){let s=Abe[i.key]||i.key,r="";return o.indexOf("code.")>-1&&(s=i.code,r="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),ZX.forEach(a=>{if(a!==s){let l=Rbe[a];l(i)&&(r+=a+".")}}),r+=s,r===o)}static eventCallback(i,o,s){return r=>{t.matchEventFullKeyCode(r,i)&&s.runGuarded(()=>o(r))}}static _normalizeKey(i){return i==="esc"?"escape":i}};t.\u0275fac=function(o){return new(o||t)(q(ns))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})();function iZ(n,t){return RX(Ge({rootComponent:n},Mbe(t)))}function Mbe(n){return{appProviders:[...nZ,...n?.providers??[]],platformProviders:Pbe}}function Nbe(){n5.makeCurrent()}function Obe(){return new Ad}function Lbe(){return bq(document),document}var Pbe=[{provide:l0,useValue:QX},{provide:i8,useValue:Nbe,multi:!0},{provide:ns,useFactory:Lbe,deps:[]}];var Fbe=new ot(""),zbe=[{provide:z2,useClass:o5,deps:[]},{provide:V8,useClass:tw,deps:[oe,iw,z2]},{provide:tw,useClass:tw,deps:[oe,iw,z2]}],nZ=[{provide:PE,useValue:"root"},{provide:Ad,useFactory:Obe,deps:[]},{provide:s5,useClass:Tbe,multi:!0,deps:[ns,oe,l0]},{provide:s5,useClass:kbe,multi:!0,deps:[ns]},uw,JX,YX,{provide:kd,useExisting:uw},{provide:aw,useClass:Sbe,deps:[]},[]],oZ=(()=>{let t=class t{constructor(i){}static withServerTransition(i){return{ngModule:t,providers:[{provide:ME,useValue:i.appId}]}}};t.\u0275fac=function(o){return new(o||t)(q(Fbe,12))},t.\u0275mod=he({type:t}),t.\u0275inj=pe({providers:[...nZ,...zbe],imports:[Ie,AX]});let n=t;return n})();var sZ=(()=>{let t=class t{constructor(i){this._doc=i}getTitle(){return this._doc.title}setTitle(i){this._doc.title=i||""}};t.\u0275fac=function(o){return new(o||t)(q(ns))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var K2=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:function(o){let s=null;return o?s=new(o||t):s=q(Gbe),s},providedIn:"root"});let n=t;return n})(),Gbe=(()=>{let t=class t extends K2{constructor(i){super(),this._doc=i}sanitize(i,o){if(o==null)return null;switch(i){case Aa.NONE:return o;case Aa.HTML:return Yu(o,"HTML")?Ta(o):u8(this._doc,String(o)).toString();case Aa.STYLE:return Yu(o,"Style")?Ta(o):o;case Aa.SCRIPT:if(Yu(o,"Script"))return Ta(o);throw new Oe(5200,!1);case Aa.URL:return Yu(o,"URL")?Ta(o):GE(String(o));case Aa.RESOURCE_URL:if(Yu(o,"ResourceURL"))return Ta(o);throw new Oe(5201,!1);default:throw new Oe(5202,!1)}}bypassSecurityTrustHtml(i){return Jq(i)}bypassSecurityTrustStyle(i){return eQ(i)}bypassSecurityTrustScript(i){return tQ(i)}bypassSecurityTrustUrl(i){return iQ(i)}bypassSecurityTrustResourceUrl(i){return nQ(i)}};t.\u0275fac=function(o){return new(o||t)(q(ns))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var si="primary",rC=Symbol("RouteTitle"),p5=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function v0(n){return new p5(n)}function Vbe(n,t,e){let i=e.path.split("/");if(i.length>n.length||e.pathMatch==="full"&&(t.hasChildren()||i.lengthi[s]===o)}else return n===t}function hZ(n){return n.length>0?n[n.length-1]:null}function sh(n){return vN(n)?n:th(n)?Fi(Promise.resolve(n)):vt(n)}var Hbe={exact:fZ,subset:mZ},pZ={exact:Ube,subset:jbe,ignored:()=>!0};function rZ(n,t,e){return Hbe[e.paths](n.root,t.root,e.matrixParams)&&pZ[e.queryParams](n.queryParams,t.queryParams)&&!(e.fragment==="exact"&&n.fragment!==t.fragment)}function Ube(n,t){return Cc(n,t)}function fZ(n,t,e){if(!Ef(n.segments,t.segments)||!mw(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let i in t.children)if(!n.children[i]||!fZ(n.children[i],t.children[i],e))return!1;return!0}function jbe(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>uZ(n[e],t[e]))}function mZ(n,t,e){return gZ(n,t,t.segments,e)}function gZ(n,t,e,i){if(n.segments.length>e.length){let o=n.segments.slice(0,e.length);return!(!Ef(o,e)||t.hasChildren()||!mw(o,e,i))}else if(n.segments.length===e.length){if(!Ef(n.segments,e)||!mw(n.segments,e,i))return!1;for(let o in t.children)if(!n.children[o]||!mZ(n.children[o],t.children[o],i))return!1;return!0}else{let o=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!Ef(n.segments,o)||!mw(n.segments,o,i)||!n.children[si]?!1:gZ(n.children[si],t,s,i)}}function mw(n,t,e){return t.every((i,o)=>pZ[e](n[o].parameters,i.parameters))}var nh=class{constructor(t=new Xi([],{}),e={},i=null){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=v0(this.queryParams),this._queryParamMap}toString(){return Wbe.serialize(this)}},Xi=class{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gw(this)}},xf=class{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=v0(this.parameters),this._parameterMap}toString(){return vZ(this)}};function Kbe(n,t){return Ef(n,t)&&n.every((e,i)=>Cc(e.parameters,t[i].parameters))}function Ef(n,t){return n.length!==t.length?!1:n.every((e,i)=>e.path===t[i].path)}function $be(n,t){let e=[];return Object.entries(n.children).forEach(([i,o])=>{i===si&&(e=e.concat(t(o,i)))}),Object.entries(n.children).forEach(([i,o])=>{i!==si&&(e=e.concat(t(o,i)))}),e}var V5=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>new vw,providedIn:"root"});let n=t;return n})(),vw=class{parse(t){let e=new g5(t);return new nh(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${$2(t.root,!0)}`,i=Xbe(t.queryParams),o=typeof t.fragment=="string"?`#${qbe(t.fragment)}`:"";return`${e}${i}${o}`}},Wbe=new vw;function gw(n){return n.segments.map(t=>vZ(t)).join("/")}function $2(n,t){if(!n.hasChildren())return gw(n);if(t){let e=n.children[si]?$2(n.children[si],!1):"",i=[];return Object.entries(n.children).forEach(([o,s])=>{o!==si&&i.push(`${o}:${$2(s,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=$be(n,(i,o)=>o===si?[$2(n.children[si],!1)]:[`${o}:${$2(i,!1)}`]);return Object.keys(n.children).length===1&&n.children[si]!=null?`${gw(n)}/${e[0]}`:`${gw(n)}/(${e.join("//")})`}}function _Z(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pw(n){return _Z(n).replace(/%3B/gi,";")}function qbe(n){return encodeURI(n)}function m5(n){return _Z(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _w(n){return decodeURIComponent(n)}function aZ(n){return _w(n.replace(/\+/g,"%20"))}function vZ(n){return`${m5(n.path)}${Qbe(n.parameters)}`}function Qbe(n){return Object.entries(n).map(([t,e])=>`;${m5(t)}=${m5(e)}`).join("")}function Xbe(n){let t=Object.entries(n).map(([e,i])=>Array.isArray(i)?i.map(o=>`${pw(e)}=${pw(o)}`).join("&"):`${pw(e)}=${pw(i)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}var Zbe=/^[^\/()?;#]+/;function c5(n){let t=n.match(Zbe);return t?t[0]:""}var Ybe=/^[^\/()?;=#]+/;function Jbe(n){let t=n.match(Ybe);return t?t[0]:""}var eSe=/^[^=?&#]+/;function tSe(n){let t=n.match(eSe);return t?t[0]:""}var iSe=/^[^&#]+/;function nSe(n){let t=n.match(iSe);return t?t[0]:""}var g5=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Xi([],{}):new Xi([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[si]=new Xi(t,e)),i}parseSegment(){let t=c5(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new Oe(4009,!1);return this.capture(t),new xf(_w(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=Jbe(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let o=c5(this.remaining);o&&(i=o,this.capture(i))}t[_w(e)]=_w(i)}parseQueryParam(t){let e=tSe(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=nSe(this.remaining);r&&(i=r,this.capture(i))}let o=aZ(e),s=aZ(i);if(t.hasOwnProperty(o)){let r=t[o];Array.isArray(r)||(r=[r],t[o]=r),r.push(s)}else t[o]=s}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=c5(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new Oe(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=si);let r=this.parseChildren();e[s]=Object.keys(r).length===1?r[si]:new Xi([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new Oe(4011,!1)}};function CZ(n){return n.segments.length>0?new Xi([],{[si]:n}):n}function bZ(n){let t={};for(let[i,o]of Object.entries(n.children)){let s=bZ(o);if(i===si&&s.segments.length===0&&s.hasChildren())for(let[r,a]of Object.entries(s.children))t[r]=a;else(s.segments.length>0||s.hasChildren())&&(t[i]=s)}let e=new Xi(n.segments,t);return oSe(e)}function oSe(n){if(n.numberOfChildren===1&&n.children[si]){let t=n.children[si];return new Xi(n.segments.concat(t.segments),t.children)}return n}function C0(n){return n instanceof nh}function sSe(n,t,e=null,i=null){let o=SZ(n);return yZ(o,t,e,i)}function SZ(n){let t;function e(s){let r={};for(let l of s.children){let c=e(l);r[l.outlet]=c}let a=new Xi(s.url,r);return s===n&&(t=a),a}let i=e(n.root),o=CZ(i);return t??o}function yZ(n,t,e,i){let o=n;for(;o.parent;)o=o.parent;if(t.length===0)return d5(o,o,o,e,i);let s=rSe(t);if(s.toRoot())return d5(o,o,new Xi([],{}),e,i);let r=aSe(s,o,n),a=r.processChildren?Q2(r.segmentGroup,r.index,s.commands):EZ(r.segmentGroup,r.index,s.commands);return d5(o,r.segmentGroup,a,e,i)}function Cw(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Y2(n){return typeof n=="object"&&n!=null&&n.outlets}function d5(n,t,e,i,o){let s={};i&&Object.entries(i).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let r;n===t?r=e:r=xZ(n,t,e);let a=CZ(bZ(r));return new nh(a,s,o)}function xZ(n,t,e){let i={};return Object.entries(n.children).forEach(([o,s])=>{s===t?i[o]=e:i[o]=xZ(s,t,e)}),new Xi(n.segments,i)}var bw=class{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Cw(i[0]))throw new Oe(4003,!1);let o=i.find(Y2);if(o&&o!==hZ(i))throw new Oe(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function rSe(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new bw(!0,0,n);let t=0,e=!1,i=n.reduce((o,s,r)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...o,{outlets:a}]}if(s.segmentPath)return[...o,s.segmentPath]}return typeof s!="string"?[...o,s]:r===0?(s.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,s]},[]);return new bw(e,t,i)}var g0=class{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}};function aSe(n,t,e){if(n.isAbsolute)return new g0(t,!0,0);if(!e)return new g0(t,!1,NaN);if(e.parent===null)return new g0(e,!0,0);let i=Cw(n.commands[0])?0:1,o=e.segments.length-1+i;return lSe(e,o,n.numberOfDoubleDots)}function lSe(n,t,e){let i=n,o=t,s=e;for(;s>o;){if(s-=o,i=i.parent,!i)throw new Oe(4005,!1);o=i.segments.length}return new g0(i,!1,o-s)}function cSe(n){return Y2(n[0])?n[0].outlets:{[si]:n}}function EZ(n,t,e){if(n??=new Xi([],{}),n.segments.length===0&&n.hasChildren())return Q2(n,t,e);let i=dSe(n,t,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexs!==si)&&n.children[si]&&n.numberOfChildren===1&&n.children[si].segments.length===0){let s=Q2(n.children[si],t,e);return new Xi(n.segments,s.children)}return Object.entries(i).forEach(([s,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(o[s]=EZ(n.children[s],t,r))}),Object.entries(n.children).forEach(([s,r])=>{i[s]===void 0&&(o[s]=r)}),new Xi(n.segments,o)}}function dSe(n,t,e){let i=0,o=t,s={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return s;let r=n.segments[o],a=e[i];if(Y2(a))break;let l=`${a}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!cZ(l,c,r))return s;i+=2}else{if(!cZ(l,{},r))return s;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}function _5(n,t,e){let i=n.segments.slice(0,t),o=0;for(;o{typeof i=="string"&&(i=[i]),i!==null&&(t[e]=_5(new Xi([],{}),0,i))}),t}function lZ(n){let t={};return Object.entries(n).forEach(([e,i])=>t[e]=`${i}`),t}function cZ(n,t,e){return n==e.path&&Cc(t,e.parameters)}var X2="imperative",os=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(os||{}),Ma=class{constructor(t,e){this.id=t,this.url=e}},J2=class extends Ma{constructor(t,e,i="imperative",o=null){super(t,e),this.type=os.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},wf=class extends Ma{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=os.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ka=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(ka||{}),v5=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(v5||{}),oh=class extends Ma{constructor(t,e,i,o){super(t,e),this.reason=i,this.code=o,this.type=os.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Df=class extends Ma{constructor(t,e,i,o){super(t,e),this.reason=i,this.code=o,this.type=os.NavigationSkipped}},eC=class extends Ma{constructor(t,e,i,o){super(t,e),this.error=i,this.target=o,this.type=os.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Sw=class extends Ma{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=os.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},C5=class extends Ma{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=os.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},b5=class extends Ma{constructor(t,e,i,o,s){super(t,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=s,this.type=os.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},S5=class extends Ma{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=os.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},y5=class extends Ma{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=os.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},x5=class{constructor(t){this.route=t,this.type=os.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},E5=class{constructor(t){this.route=t,this.type=os.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},w5=class{constructor(t){this.snapshot=t,this.type=os.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},D5=class{constructor(t){this.snapshot=t,this.type=os.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},I5=class{constructor(t){this.snapshot=t,this.type=os.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},T5=class{constructor(t){this.snapshot=t,this.type=os.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var tC=class{},iC=class{constructor(t){this.url=t}};var A5=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Iw,this.attachRef=null}},Iw=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(i,o){let s=this.getOrCreateContext(i);s.outlet=o,this.contexts.set(i,s)}onChildOutletDestroyed(i){let o=this.getContext(i);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let o=this.getContext(i);return o||(o=new A5,this.contexts.set(i,o)),o}getContext(i){return this.contexts.get(i)||null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),yw=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=R5(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){let e=R5(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=k5(t,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return k5(t,this._root).map(e=>e.value)}};function R5(n,t){if(n===t.value)return t;for(let e of t.children){let i=R5(n,e);if(i)return i}return null}function k5(n,t){if(n===t.value)return[t];for(let e of t.children){let i=k5(n,e);if(i.length)return i.unshift(t),i}return[]}var jr=class{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function m0(n){let t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}var xw=class extends yw{constructor(t,e){super(t),this.snapshot=e,H5(this,t)}toString(){return this.snapshot.toString()}};function wZ(n){let t=hSe(n),e=new Ii([new xf("",{})]),i=new Ii({}),o=new Ii({}),s=new Ii({}),r=new Ii(""),a=new b0(e,i,s,r,o,si,n,t.root);return a.snapshot=t.root,new xw(new jr(a,[]),t)}function hSe(n){let t={},e={},i={},o="",s=new nC([],t,i,o,e,si,n,null,{});return new Ew("",new jr(s,[]))}var b0=class{constructor(t,e,i,o,s,r,a,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=s,this.outlet=r,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Me(c=>c[rC]))??vt(void 0),this.url=t,this.params=e,this.queryParams=i,this.fragment=o,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Me(t=>v0(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Me(t=>v0(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function B5(n,t,e="emptyOnly"){let i,{routeConfig:o}=n;return t!==null&&(e==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?i={params:Ge(Ge({},t.params),n.params),data:Ge(Ge({},t.data),n.data),resolve:Ge(Ge(Ge(Ge({},n.data),t.data),o?.data),n._resolvedData)}:i={params:Ge({},n.params),data:Ge({},n.data),resolve:Ge(Ge({},n.data),n._resolvedData??{})},o&&IZ(o)&&(i.resolve[rC]=o.title),i}var nC=class{get title(){return this.data?.[rC]}constructor(t,e,i,o,s,r,a,l,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=o,this.data=s,this.outlet=r,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=v0(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=v0(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},Ew=class extends yw{constructor(t,e){super(e),this.url=t,H5(this,e)}toString(){return DZ(this._root)}};function H5(n,t){t.value._routerState=n,t.children.forEach(e=>H5(n,e))}function DZ(n){let t=n.children.length>0?` { ${n.children.map(DZ).join(", ")} } `:"";return`${n.value}${t}`}function u5(n){if(n.snapshot){let t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Cc(t.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),Cc(t.params,e.params)||n.paramsSubject.next(e.params),Bbe(t.url,e.url)||n.urlSubject.next(e.url),Cc(t.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function M5(n,t){let e=Cc(n.params,t.params)&&Kbe(n.url,t.url),i=!n.parent!=!t.parent;return e&&!i&&(!n.parent||M5(n.parent,t.parent))}function IZ(n){return typeof n.title=="string"||n.title===null}var pSe=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=si,this.activateEvents=new y,this.deactivateEvents=new y,this.attachEvents=new y,this.detachEvents=new y,this.parentContexts=mt(Iw),this.location=mt(Si),this.changeDetector=mt(je),this.environmentInjector=mt(Da),this.inputBinder=mt(U5,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(i){if(i.name){let{firstChange:o,previousValue:s}=i.name;if(o)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(i){return this.parentContexts.getContext(i)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let i=this.parentContexts.getContext(this.name);i?.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Oe(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Oe(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Oe(4012,!1);this.location.detach();let i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,o){this.activated=i,this._activatedRoute=o,this.location.insert(i.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){let i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,o){if(this.isActivated)throw new Oe(4013,!1);this._activatedRoute=i;let s=this.location,a=i.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new N5(i,l,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:o??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=z({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Le]});let n=t;return n})(),N5=class{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===b0?this.route:t===Iw?this.childContexts:this.parent.get(t,e)}},U5=new ot("");function fSe(n,t,e){let i=oC(n,t._root,e?e._root:void 0);return new xw(i,t)}function oC(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=t.value;let o=mSe(n,t,e);return new jr(i,o)}else{if(n.shouldAttach(t.value)){let s=n.retrieve(t.value);if(s!==null){let r=s.route;return r.value._futureSnapshot=t.value,r.children=t.children.map(a=>oC(n,a)),r}}let i=gSe(t.value),o=t.children.map(s=>oC(n,s));return new jr(i,o)}}function mSe(n,t,e){return t.children.map(i=>{for(let o of e.children)if(n.shouldReuseRoute(i.value,o.value.snapshot))return oC(n,i,o);return oC(n,i)})}function gSe(n){return new b0(new Ii(n.url),new Ii(n.params),new Ii(n.queryParams),new Ii(n.fragment),new Ii(n.data),n.outlet,n.component,n)}var TZ="ngNavigationCancelingError";function AZ(n,t){let{redirectTo:e,navigationBehaviorOptions:i}=C0(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=RZ(!1,ka.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function RZ(n,t){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[TZ]=!0,e.cancellationCode=t,e}function _Se(n){return kZ(n)&&C0(n.url)}function kZ(n){return!!n&&n[TZ]}var vSe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=P({type:t,selectors:[["ng-component"]],standalone:!0,features:[vn],decls:1,vars:0,template:function(o,s){o&1&&A(0,"router-outlet")},dependencies:[pSe],encapsulation:2});let n=t;return n})();function CSe(n,t){return n.providers&&!n._injector&&(n._injector=T8(n.providers,t,`Route: ${n.path}`)),n._injector??t}function j5(n){let t=n.children&&n.children.map(j5),e=t?Wi(Ge({},n),{children:t}):Ge({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==si&&(e.component=vSe),e}function bc(n){return n.outlet||si}function bSe(n,t){let e=n.filter(i=>bc(i)===t);return e.push(...n.filter(i=>bc(i)!==t)),e}function aC(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var SSe=(n,t,e,i)=>Me(o=>(new O5(t,o.targetRouterState,o.currentRouterState,e,i).activate(n),o)),O5=class{constructor(t,e,i,o,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=s}activate(t){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),u5(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){let o=m0(e);t.children.forEach(s=>{let r=s.value.outlet;this.deactivateRoutes(s,o[r],i),delete o[r]}),Object.values(o).forEach(s=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){let o=t.value,s=e?e.value:null;if(o===s)if(o.component){let r=i.getContext(o.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let i=e.getContext(t.value.outlet),o=i&&t.value.component?i.children:e,s=m0(t);for(let r of Object.values(s))this.deactivateRouteAndItsChildren(r,o);if(i&&i.outlet){let r=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let i=e.getContext(t.value.outlet),o=i&&t.value.component?i.children:e,s=m0(t);for(let r of Object.values(s))this.deactivateRouteAndItsChildren(r,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(t,e,i){let o=m0(e);t.children.forEach(s=>{this.activateRoutes(s,o[s.value.outlet],i),this.forwardEvent(new T5(s.value.snapshot))}),t.children.length&&this.forwardEvent(new D5(t.value.snapshot))}activateRoutes(t,e,i){let o=t.value,s=e?e.value:null;if(u5(o),o===s)if(o.component){let r=i.getOrCreateContext(o.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,i);else if(o.component){let r=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),r.children.onOutletReAttached(a.contexts),r.attachRef=a.componentRef,r.route=a.route.value,r.outlet&&r.outlet.attach(a.componentRef,a.route.value),u5(a.route.value),this.activateChildRoutes(t,null,r.children)}else{let a=aC(o.snapshot);r.attachRef=null,r.route=o,r.injector=a,r.outlet&&r.outlet.activateWith(o,r.injector),this.activateChildRoutes(t,null,r.children)}}else this.activateChildRoutes(t,null,i)}},ww=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},_0=class{constructor(t,e){this.component=t,this.route=e}};function ySe(n,t,e){let i=n._root,o=t?t._root:null;return W2(i,o,e,[i.value])}function xSe(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function y0(n,t){let e=Symbol(),i=t.get(n,e);return i===e?typeof n=="function"&&!yq(n)?n:t.get(n):i}function W2(n,t,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){let s=m0(t);return n.children.forEach(r=>{ESe(r,s[r.value.outlet],e,i.concat([r.value]),o),delete s[r.value.outlet]}),Object.entries(s).forEach(([r,a])=>Z2(a,e.getContext(r),o)),o}function ESe(n,t,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,r=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(r&&s.routeConfig===r.routeConfig){let l=wSe(r,s,s.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new ww(i)):(s.data=r.data,s._resolvedData=r._resolvedData),s.component?W2(n,t,a?a.children:null,i,o):W2(n,t,e,i,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new _0(a.outlet.component,r))}else r&&Z2(t,a,o),o.canActivateChecks.push(new ww(i)),s.component?W2(n,null,a?a.children:null,i,o):W2(n,null,e,i,o);return o}function wSe(n,t,e){if(typeof e=="function")return e(n,t);switch(e){case"pathParamsChange":return!Ef(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Ef(n.url,t.url)||!Cc(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!M5(n,t)||!Cc(n.queryParams,t.queryParams);case"paramsChange":default:return!M5(n,t)}}function Z2(n,t,e){let i=m0(n),o=n.value;Object.entries(i).forEach(([s,r])=>{o.component?t?Z2(r,t.children.getContext(s),e):Z2(r,null,e):Z2(r,t,e)}),o.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new _0(t.outlet.component,o)):e.canDeactivateChecks.push(new _0(null,o)):e.canDeactivateChecks.push(new _0(null,o))}function lC(n){return typeof n=="function"}function DSe(n){return typeof n=="boolean"}function ISe(n){return n&&lC(n.canLoad)}function TSe(n){return n&&lC(n.canActivate)}function ASe(n){return n&&lC(n.canActivateChild)}function RSe(n){return n&&lC(n.canDeactivate)}function kSe(n){return n&&lC(n.canMatch)}function MZ(n){return n instanceof yd||n?.name==="EmptyError"}var fw=Symbol("INITIAL_VALUE");function S0(){return fi(n=>xd(n.map(t=>t.pipe(At(1),i2(fw)))).pipe(Me(t=>{for(let e of t)if(e!==!0){if(e===fw)return fw;if(e===!1||e instanceof nh)return e}return!0}),be(t=>t!==fw),At(1)))}function MSe(n,t){return Un(e=>{let{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:s,canDeactivateChecks:r}}=e;return r.length===0&&s.length===0?vt(Wi(Ge({},e),{guardsResult:!0})):NSe(r,i,o,n).pipe(Un(a=>a&&DSe(a)?OSe(i,s,n,t):vt(a)),Me(a=>Wi(Ge({},e),{guardsResult:a})))})}function NSe(n,t,e,i){return Fi(n).pipe(Un(o=>GSe(o.component,o.route,e,t,i)),lc(o=>o!==!0,!0))}function OSe(n,t,e,i){return Fi(t).pipe(wd(o=>ju(PSe(o.route.parent,i),LSe(o.route,i),zSe(n,o.path,e),FSe(n,o.route,e))),lc(o=>o!==!0,!0))}function LSe(n,t){return n!==null&&t&&t(new I5(n)),vt(!0)}function PSe(n,t){return n!==null&&t&&t(new w5(n)),vt(!0)}function FSe(n,t,e){let i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||i.length===0)return vt(!0);let o=i.map(s=>Ux(()=>{let r=aC(t)??e,a=y0(s,r),l=TSe(a)?a.canActivate(t,n):Cf(r,()=>a(t,n));return sh(l).pipe(lc())}));return vt(o).pipe(S0())}function zSe(n,t,e){let i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(r=>xSe(r)).filter(r=>r!==null).map(r=>Ux(()=>{let a=r.guards.map(l=>{let c=aC(r.node)??e,d=y0(l,c),u=ASe(d)?d.canActivateChild(i,n):Cf(c,()=>d(i,n));return sh(u).pipe(lc())});return vt(a).pipe(S0())}));return vt(s).pipe(S0())}function GSe(n,t,e,i,o){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return vt(!0);let r=s.map(a=>{let l=aC(t)??o,c=y0(a,l),d=RSe(c)?c.canDeactivate(n,t,e,i):Cf(l,()=>c(n,t,e,i));return sh(d).pipe(lc())});return vt(r).pipe(S0())}function VSe(n,t,e,i){let o=t.canLoad;if(o===void 0||o.length===0)return vt(!0);let s=o.map(r=>{let a=y0(r,n),l=ISe(a)?a.canLoad(t,e):Cf(n,()=>a(t,e));return sh(l)});return vt(s).pipe(S0(),NZ(i))}function NZ(n){return hN(at(t=>{if(C0(t))throw AZ(n,t)}),Me(t=>t===!0))}function BSe(n,t,e,i){let o=t.canMatch;if(!o||o.length===0)return vt(!0);let s=o.map(r=>{let a=y0(r,n),l=kSe(a)?a.canMatch(t,e):Cf(n,()=>a(t,e));return sh(l)});return vt(s).pipe(S0(),NZ(i))}var sC=class{constructor(t){this.segmentGroup=t||null}},Dw=class extends Error{constructor(t){super(),this.urlTree=t}};function f0(n){return Ug(new sC(n))}function HSe(n){return Ug(new Oe(4e3,!1))}function USe(n){return Ug(RZ(!1,ka.GuardRejected))}var L5=class{constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),o.numberOfChildren===0)return vt(i);if(o.numberOfChildren>1||!o.children[si])return HSe(t.redirectTo);o=o.children[si]}}applyRedirectCommands(t,e,i){let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i);if(e.startsWith("/"))throw new Dw(o);return o}applyRedirectCreateUrlTree(t,e,i,o){let s=this.createSegmentGroup(t,e.root,i,o);return new nh(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let i={};return Object.entries(t).forEach(([o,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);i[o]=e[a]}else i[o]=s}),i}createSegmentGroup(t,e,i,o){let s=this.createSegments(t,e.segments,i,o),r={};return Object.entries(e.children).forEach(([a,l])=>{r[a]=this.createSegmentGroup(t,l,i,o)}),new Xi(s,r)}createSegments(t,e,i,o){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,o):this.findOrReturn(s,i))}findPosParam(t,e,i){let o=i[e.path.substring(1)];if(!o)throw new Oe(4001,!1);return o}findOrReturn(t,e){let i=0;for(let o of e){if(o.path===t.path)return e.splice(i),o;i++}return t}},P5={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function jSe(n,t,e,i,o){let s=K5(n,t,e);return s.matched?(i=CSe(t,i),BSe(i,t,e,o).pipe(Me(r=>r===!0?s:Ge({},P5)))):vt(s)}function K5(n,t,e){if(t.path==="**")return KSe(e);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||e.length>0)?Ge({},P5):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(t.matcher||Vbe)(e,n,t);if(!o)return Ge({},P5);let s={};Object.entries(o.posParams??{}).forEach(([a,l])=>{s[a]=l.path});let r=o.consumed.length>0?Ge(Ge({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:r,positionalParamSegments:o.posParams??{}}}function KSe(n){return{matched:!0,parameters:n.length>0?hZ(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function dZ(n,t,e,i){return e.length>0&&qSe(n,e,i)?{segmentGroup:new Xi(t,WSe(i,new Xi(e,n.children))),slicedSegments:[]}:e.length===0&&QSe(n,e,i)?{segmentGroup:new Xi(n.segments,$Se(n,e,i,n.children)),slicedSegments:e}:{segmentGroup:new Xi(n.segments,n.children),slicedSegments:e}}function $Se(n,t,e,i){let o={};for(let s of e)if(Tw(n,t,s)&&!i[bc(s)]){let r=new Xi([],{});o[bc(s)]=r}return Ge(Ge({},i),o)}function WSe(n,t){let e={};e[si]=t;for(let i of n)if(i.path===""&&bc(i)!==si){let o=new Xi([],{});e[bc(i)]=o}return e}function qSe(n,t,e){return e.some(i=>Tw(n,t,i)&&bc(i)!==si)}function QSe(n,t,e){return e.some(i=>Tw(n,t,i))}function Tw(n,t,e){return(n.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function XSe(n,t,e,i){return bc(n)!==i&&(i===si||!Tw(t,e,n))?!1:K5(t,n,e).matched}function ZSe(n,t,e){return t.length===0&&!n.children[e]}var F5=class{};function YSe(n,t,e,i,o,s,r="emptyOnly"){return new z5(n,t,e,i,o,r,s).recognize()}var JSe=31,z5=class{constructor(t,e,i,o,s,r,a){this.injector=t,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=s,this.paramsInheritanceStrategy=r,this.urlSerializer=a,this.applyRedirects=new L5(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new Oe(4002,`'${t.segmentGroup}'`)}recognize(){let t=dZ(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(Me(e=>{let i=new nC([],Object.freeze({}),Object.freeze(Ge({},this.urlTree.queryParams)),this.urlTree.fragment,{},si,this.rootComponentType,null,{}),o=new jr(i,e),s=new Ew("",o),r=sSe(i,[],this.urlTree.queryParams,this.urlTree.fragment);return r.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(r),this.inheritParamsAndData(s._root,null),{state:s,tree:r}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,si).pipe(Gr(i=>{if(i instanceof Dw)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof sC?this.noMatchError(i):i}))}inheritParamsAndData(t,e){let i=t.value,o=B5(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),t.children.forEach(s=>this.inheritParamsAndData(s,i))}processSegmentGroup(t,e,i,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,o,!0).pipe(Me(s=>s instanceof jr?[s]:[]))}processChildren(t,e,i){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Fi(o).pipe(wd(s=>{let r=i.children[s],a=bSe(e,s);return this.processSegmentGroup(t,a,r,s)}),t2((s,r)=>(s.push(...r),s)),$u(null),EN(),Un(s=>{if(s===null)return f0(i);let r=OZ(s);return eye(r),vt(r)}))}processSegment(t,e,i,o,s,r){return Fi(e).pipe(wd(a=>this.processSegmentAgainstRoute(a._injector??t,e,a,i,o,s,r).pipe(Gr(l=>{if(l instanceof sC)return vt(null);throw l}))),lc(a=>!!a),Gr(a=>{if(MZ(a))return ZSe(i,o,s)?vt(new F5):f0(i);throw a}))}processSegmentAgainstRoute(t,e,i,o,s,r,a){return XSe(i,o,s,r)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,i,s,r):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,e,i,s,r):f0(o):f0(o)}expandSegmentAgainstRouteUsingRedirect(t,e,i,o,s,r){let{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:d}=K5(e,o,s);if(!a)return f0(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>JSe&&(this.allowRedirects=!1));let u=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,u).pipe(Un(h=>this.processSegment(t,i,e,h.concat(d),r,!1)))}matchSegmentAgainstRoute(t,e,i,o,s){let r=jSe(e,i,o,t,this.urlSerializer);return i.path==="**"&&(e.children={}),r.pipe(fi(a=>a.matched?(t=i._injector??t,this.getChildConfig(t,i,o).pipe(fi(({routes:l})=>{let c=i._loadedInjector??t,{consumedSegments:d,remainingSegments:u,parameters:h}=a,m=new nC(d,h,Object.freeze(Ge({},this.urlTree.queryParams)),this.urlTree.fragment,iye(i),bc(i),i.component??i._loadedComponent??null,i,nye(i)),{segmentGroup:_,slicedSegments:b}=dZ(e,d,u,l);if(b.length===0&&_.hasChildren())return this.processChildren(c,l,_).pipe(Me(w=>w===null?null:new jr(m,w)));if(l.length===0&&b.length===0)return vt(new jr(m,[]));let E=bc(i)===s;return this.processSegment(c,l,_,b,E?si:s,!0).pipe(Me(w=>new jr(m,w instanceof jr?[w]:[])))}))):f0(e)))}getChildConfig(t,e,i){return e.children?vt({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?vt({routes:e._loadedRoutes,injector:e._loadedInjector}):VSe(t,e,i,this.urlSerializer).pipe(Un(o=>o?this.configLoader.loadChildren(t,e).pipe(at(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):USe(e))):vt({routes:[],injector:t})}};function eye(n){n.sort((t,e)=>t.value.outlet===si?-1:e.value.outlet===si?1:t.value.outlet.localeCompare(e.value.outlet))}function tye(n){let t=n.value.routeConfig;return t&&t.path===""}function OZ(n){let t=[],e=new Set;for(let i of n){if(!tye(i)){t.push(i);continue}let o=t.find(s=>i.value.routeConfig===s.value.routeConfig);o!==void 0?(o.children.push(...i.children),e.add(o)):t.push(i)}for(let i of e){let o=OZ(i.children);t.push(new jr(i.value,o))}return t.filter(i=>!e.has(i))}function iye(n){return n.data||{}}function nye(n){return n.resolve||{}}function oye(n,t,e,i,o,s){return Un(r=>YSe(n,t,e,i,r.extractedUrl,o,s).pipe(Me(({state:a,tree:l})=>Wi(Ge({},r),{targetSnapshot:a,urlAfterRedirects:l}))))}function sye(n,t){return Un(e=>{let{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return vt(e);let s=new Set(o.map(l=>l.route)),r=new Set;for(let l of s)if(!r.has(l))for(let c of LZ(l))r.add(c);let a=0;return Fi(r).pipe(wd(l=>s.has(l)?rye(l,i,n,t):(l.data=B5(l,l.parent,n).resolve,vt(void 0))),at(()=>a++),Kg(1),Un(l=>a===r.size?vt(e):Co))})}function LZ(n){let t=n.children.map(e=>LZ(e)).flat();return[n,...t]}function rye(n,t,e,i){let o=n.routeConfig,s=n._resolve;return o?.title!==void 0&&!IZ(o)&&(s[rC]=o.title),aye(s,n,t,i).pipe(Me(r=>(n._resolvedData=r,n.data=B5(n,n.parent,e).resolve,null)))}function aye(n,t,e,i){let o=f5(n);if(o.length===0)return vt({});let s={};return Fi(o).pipe(Un(r=>lye(n[r],t,e,i).pipe(lc(),at(a=>{s[r]=a}))),Kg(1),e2(s),Gr(r=>MZ(r)?Co:Ug(r)))}function lye(n,t,e,i){let o=aC(t)??i,s=y0(n,o),r=s.resolve?s.resolve(t,e):Cf(o,()=>s(t,e));return sh(r)}function h5(n){return fi(t=>{let e=n(t);return e?Fi(e).pipe(Me(()=>t)):vt(t)})}var PZ=(()=>{let t=class t{buildTitle(i){let o,s=i.root;for(;s!==void 0;)o=this.getResolvedTitleForRoute(s)??o,s=s.children.find(r=>r.outlet===si);return o}getResolvedTitleForRoute(i){return i.data[rC]}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(cye),providedIn:"root"});let n=t;return n})(),cye=(()=>{let t=class t extends PZ{constructor(i){super(),this.title=i}updateTitle(i){let o=this.buildTitle(i);o!==void 0&&this.title.setTitle(o)}};t.\u0275fac=function(o){return new(o||t)(q(sZ))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),$5=new ot("",{providedIn:"root",factory:()=>({})}),W5=new ot(""),dye=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=mt(j8)}loadComponent(i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return vt(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let o=sh(i.loadComponent()).pipe(Me(FZ),at(r=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=r}),ef(()=>{this.componentLoaders.delete(i)})),s=new Pg(o,()=>new tt).pipe(Lg());return this.componentLoaders.set(i,s),s}loadChildren(i,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return vt({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let r=uye(o,this.compiler,i,this.onLoadEndListener).pipe(ef(()=>{this.childrenLoaders.delete(o)})),a=new Pg(r,()=>new tt).pipe(Lg());return this.childrenLoaders.set(o,a),a}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function uye(n,t,e,i){return sh(n.loadChildren()).pipe(Me(FZ),Un(o=>o instanceof S2||Array.isArray(o)?vt(o):Fi(t.compileModuleAsync(o))),Me(o=>{i&&i(n);let s,r,a=!1;return Array.isArray(o)?(r=o,a=!0):(s=o.create(e).injector,r=s.get(W5,[],{optional:!0,self:!0}).flat()),{routes:r.map(j5),injector:s}}))}function hye(n){return n&&typeof n=="object"&&"default"in n}function FZ(n){return hye(n)?n.default:n}var q5=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(pye),providedIn:"root"});let n=t;return n})(),pye=(()=>{let t=class t{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,o){return i}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),fye=new ot("");var mye=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new tt,this.transitionAbortSubject=new tt,this.configLoader=mt(dye),this.environmentInjector=mt(Da),this.urlSerializer=mt(V5),this.rootContexts=mt(Iw),this.location=mt(B2),this.inputBindingEnabled=mt(U5,{optional:!0})!==null,this.titleStrategy=mt(PZ),this.options=mt($5,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=mt(q5),this.createViewTransition=mt(fye,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>vt(void 0),this.rootComponentType=null;let i=s=>this.events.next(new x5(s)),o=s=>this.events.next(new E5(s));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=i}complete(){this.transitions?.complete()}handleNavigationRequest(i){let o=++this.navigationId;this.transitions?.next(Wi(Ge(Ge({},this.transitions.value),i),{id:o}))}setupNavigations(i,o,s){return this.transitions=new Ii({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:X2,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(be(r=>r.id!==0),Me(r=>Wi(Ge({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),fi(r=>{this.currentTransition=r;let a=!1,l=!1;return vt(r).pipe(at(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?Wi(Ge({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),fi(c=>{let d=!i.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=c.extras.onSameUrlNavigation??i.onSameUrlNavigation;if(!d&&u!=="reload"){let h="";return this.events.next(new Df(c.id,this.urlSerializer.serialize(c.rawUrl),h,v5.IgnoredSameUrlNavigation)),c.resolve(null),Co}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return vt(c).pipe(fi(h=>{let m=this.transitions?.getValue();return this.events.next(new J2(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),m!==this.transitions?.getValue()?Co:Promise.resolve(h)}),oye(this.environmentInjector,this.configLoader,this.rootComponentType,i.config,this.urlSerializer,this.paramsInheritanceStrategy),at(h=>{r.targetSnapshot=h.targetSnapshot,r.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=Wi(Ge({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let m=new Sw(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(m)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:m,source:_,restoredState:b,extras:E}=c,w=new J2(h,this.urlSerializer.serialize(m),_,b);this.events.next(w);let T=wZ(this.rootComponentType).snapshot;return this.currentTransition=r=Wi(Ge({},c),{targetSnapshot:T,urlAfterRedirects:m,extras:Wi(Ge({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,vt(r)}else{let h="";return this.events.next(new Df(c.id,this.urlSerializer.serialize(c.extractedUrl),h,v5.IgnoredByUrlHandlingStrategy)),c.resolve(null),Co}}),at(c=>{let d=new C5(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),Me(c=>(this.currentTransition=r=Wi(Ge({},c),{guards:ySe(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),r)),MSe(this.environmentInjector,c=>this.events.next(c)),at(c=>{if(r.guardsResult=c.guardsResult,C0(c.guardsResult))throw AZ(this.urlSerializer,c.guardsResult);let d=new b5(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(d)}),be(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",ka.GuardRejected),!1)),h5(c=>{if(c.guards.canActivateChecks.length)return vt(c).pipe(at(d=>{let u=new S5(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),fi(d=>{let u=!1;return vt(d).pipe(sye(this.paramsInheritanceStrategy,this.environmentInjector),at({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",ka.NoDataFromResolver)}}))}),at(d=>{let u=new y5(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),h5(c=>{let d=u=>{let h=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(u.routeConfig).pipe(at(m=>{u.component=m}),Me(()=>{})));for(let m of u.children)h.push(...d(m));return h};return xd(d(c.targetSnapshot.root)).pipe($u(null),At(1))}),h5(()=>this.afterPreactivation()),fi(()=>{let{currentSnapshot:c,targetSnapshot:d}=r,u=this.createViewTransition?.(this.environmentInjector,c.root,d.root);return u?Fi(u).pipe(Me(()=>r)):vt(r)}),Me(c=>{let d=fSe(i.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r=Wi(Ge({},c),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,r}),at(()=>{this.events.next(new tC)}),SSe(this.rootContexts,i.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),At(1),at({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new wf(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Tn(this.transitionAbortSubject.pipe(at(c=>{throw c}))),ef(()=>{!a&&!l&&this.cancelNavigationTransition(r,"",ka.SupersededByNewNavigation),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Gr(c=>{if(l=!0,kZ(c))this.events.next(new oh(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),_Se(c)?this.events.next(new iC(c.url)):r.resolve(!1);else{this.events.next(new eC(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0));try{r.resolve(i.errorHandler(c))}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(d)}}return Co}))}))}cancelNavigationTransition(i,o,s){let r=new oh(i.id,this.urlSerializer.serialize(i.extractedUrl),o,s);this.events.next(r),i.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function gye(n){return n!==X2}var _ye=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(vye),providedIn:"root"});let n=t;return n})(),G5=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},vye=(()=>{let t=class t extends G5{};t.\u0275fac=(()=>{let i;return function(s){return(i||(i=zi(t)))(s||t)}})(),t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),zZ=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(Cye),providedIn:"root"});let n=t;return n})(),Cye=(()=>{let t=class t extends zZ{constructor(){super(...arguments),this.location=mt(B2),this.urlSerializer=mt(V5),this.options=mt($5,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=mt(q5),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new nh,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=wZ(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(i){return this.location.subscribe(o=>{o.type==="popstate"&&i(o.url,o.state)})}handleRouterEvent(i,o){if(i instanceof J2)this.stateMemento=this.createStateMemento();else if(i instanceof Df)this.rawUrlTree=o.initialUrl;else if(i instanceof Sw){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(s,o)}}else i instanceof tC?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o))):i instanceof oh&&(i.code===ka.GuardRejected||i.code===ka.NoDataFromResolver)?this.restoreHistory(o):i instanceof eC?this.restoreHistory(o,!0):i instanceof wf&&(this.lastSuccessfulId=i.id,this.currentPageId=this.browserPageId)}setBrowserUrl(i,o){let s=this.urlSerializer.serialize(i);if(this.location.isCurrentPathEqualTo(s)||o.extras.replaceUrl){let r=this.browserPageId,a=Ge(Ge({},o.extras.state),this.generateNgRouterState(o.id,r));this.location.replaceState(s,"",a)}else{let r=Ge(Ge({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(s,"",r)}}restoreHistory(i,o=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,r=this.currentPageId-s;r!==0?this.location.historyGo(r):this.currentUrlTree===i.finalUrl&&r===0&&(this.resetState(i),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(i,o){return this.canceledNavigationResolution==="computed"?{navigationId:i,\u0275routerPageId:o}:{navigationId:i}}};t.\u0275fac=(()=>{let i;return function(s){return(i||(i=zi(t)))(s||t)}})(),t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),q2=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(q2||{});function bye(n,t){n.events.pipe(be(e=>e instanceof wf||e instanceof oh||e instanceof eC||e instanceof Df),Me(e=>e instanceof wf||e instanceof Df?q2.COMPLETE:(e instanceof oh?e.code===ka.Redirect||e.code===ka.SupersededByNewNavigation:!1)?q2.REDIRECTING:q2.FAILED),be(e=>e!==q2.REDIRECTING),At(1)).subscribe(()=>{t()})}function Sye(n){throw n}var yye={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xye={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},GZ=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=mt(ew),this.stateManager=mt(zZ),this.options=mt($5,{optional:!0})||{},this.pendingTasks=mt(qE),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=mt(mye),this.urlSerializer=mt(V5),this.location=mt(B2),this.urlHandlingStrategy=mt(q5),this._events=new tt,this.errorHandler=this.options.errorHandler||Sye,this.navigated=!1,this.routeReuseStrategy=mt(_ye),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=mt(W5,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!mt(U5,{optional:!0}),this.eventsSubscription=new Ee,this.isNgZoneEnabled=mt(oe)instanceof oe&&oe.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(o=>{try{let s=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(s!==null&&r!==null){if(this.stateManager.handleRouterEvent(o,r),o instanceof oh&&o.code!==ka.Redirect&&o.code!==ka.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof wf)this.navigated=!0;else if(o instanceof iC){let a=this.urlHandlingStrategy.merge(o.url,s.currentRawUrl),l={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||gye(s.source)};this.scheduleNavigation(a,X2,null,l,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}wye(o)&&this._events.next(o)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),X2,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",o)},0)})}navigateToSyncWithBrowser(i,o,s){let r={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let c=Ge({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(r.state=c)}let l=this.parseUrl(i);this.scheduleNavigation(l,o,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(j5),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,o={}){let{relativeTo:s,queryParams:r,fragment:a,queryParamsHandling:l,preserveFragment:c}=o,d=c?this.currentUrlTree.fragment:a,u=null;switch(l){case"merge":u=Ge(Ge({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}u!==null&&(u=this.removeEmptyProps(u));let h;try{let m=s?s.snapshot:this.routerState.snapshot.root;h=SZ(m)}catch{(typeof i[0]!="string"||!i[0].startsWith("/"))&&(i=[]),h=this.currentUrlTree.root}return yZ(h,i,u,d??null)}navigateByUrl(i,o={skipLocationChange:!1}){let s=C0(i)?i:this.parseUrl(i),r=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(r,X2,null,o)}navigate(i,o={skipLocationChange:!1}){return Eye(i),this.navigateByUrl(this.createUrlTree(i,o),o)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,o){let s;if(o===!0?s=Ge({},yye):o===!1?s=Ge({},xye):s=o,C0(i))return rZ(this.currentUrlTree,i,s);let r=this.parseUrl(i);return rZ(this.currentUrlTree,r,s)}removeEmptyProps(i){return Object.entries(i).reduce((o,[s,r])=>(r!=null&&(o[s]=r),o),{})}scheduleNavigation(i,o,s,r,a){if(this.disposed)return Promise.resolve(!1);let l,c,d;a?(l=a.resolve,c=a.reject,d=a.promise):d=new Promise((h,m)=>{l=h,c=m});let u=this.pendingTasks.add();return bye(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:r,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(h=>Promise.reject(h))}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Eye(n){for(let t=0;te.\u0275providers)])}function Iye(n){return n.routerState.root}function Tye(){let n=mt(to);return t=>{let e=n.get(ih);if(t!==e.components[0])return;let i=n.get(GZ),o=n.get(Aye);n.get(Rye)===1&&i.initialNavigation(),n.get(kye,null,mi.Optional)?.setUpPreloading(),n.get(Dye,null,mi.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Aye=new ot("",{factory:()=>new tt}),Rye=new ot("",{providedIn:"root",factory:()=>1});var kye=new ot("");var Yt=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(Yt||{}),Kr="*";function Ld(n,t){return{type:Yt.Trigger,name:n,definitions:t,options:{}}}function gi(n,t=null){return{type:Yt.Animate,styles:t,timings:n}}function x0(n,t=null){return{type:Yt.Sequence,steps:n,options:t}}function it(n){return{type:Yt.Style,styles:n,offset:null}}function ah(n,t,e){return{type:Yt.State,name:n,styles:t,options:e}}function Y5(n){return{type:Yt.Keyframes,steps:n}}function Na(n,t,e=null){return{type:Yt.Transition,expr:n,animation:t,options:e}}function J5(n,t,e=null){return{type:Yt.Query,selector:n,animation:t,options:e}}function eL(n,t){return{type:Yt.Stagger,timings:n,animation:t}}var Oa=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(Mye),providedIn:"root"});let n=t;return n})(),Q5=class{},Mye=(()=>{let t=class t extends Oa{constructor(i,o){super(),this.animationModuleType=mt(A2,{optional:!0}),this._nextAnimationId=0;let s={id:"0",encapsulation:wa.None,styles:[],data:{animation:[]}};if(this._renderer=i.createRenderer(o.body,s),this.animationModuleType===null&&!Oye(this._renderer))throw new Oe(3600,!1)}build(i){let o=this._nextAnimationId;this._nextAnimationId++;let s=Array.isArray(i)?x0(i):i;return BZ(this._renderer,null,o,"register",[s]),new X5(o,this._renderer)}};t.\u0275fac=function(o){return new(o||t)(q(kd),q(ns))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),X5=class extends Q5{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Z5(this._id,t,e||{},this._renderer)}},Z5=class{constructor(t,e,i,o){this.id=t,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){BZ(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return Nye(this._renderer)?.engine?.players[this.id]?.getPosition()??0}};function BZ(n,t,e,i,o){n.setProperty(t,`@@${e}:${i}`,o)}function Nye(n){let t=n.\u0275type;return t===0?n:t===1?n.animationRenderer:null}function Oye(n){let t=n.\u0275type;return t===0||t===1}var rh=class{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},cC=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,o=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==s&&this._onFinish()}),r.onDestroy(()=>{++i==s&&this._onDestroy()}),r.onStart(()=>{++o==s&&this._onStart()})}),this.totalTime=this.players.reduce((r,a)=>Math.max(r,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(i=>{let o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){let t=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Aw="!";function HZ(n){return new Oe(3e3,!1)}function Lye(){return new Oe(3100,!1)}function Pye(){return new Oe(3101,!1)}function Fye(n){return new Oe(3001,!1)}function zye(n){return new Oe(3003,!1)}function Gye(n){return new Oe(3004,!1)}function Vye(n,t){return new Oe(3005,!1)}function Bye(){return new Oe(3006,!1)}function Hye(){return new Oe(3007,!1)}function Uye(n,t){return new Oe(3008,!1)}function jye(n){return new Oe(3002,!1)}function Kye(n,t,e,i,o){return new Oe(3010,!1)}function $ye(){return new Oe(3011,!1)}function Wye(){return new Oe(3012,!1)}function qye(){return new Oe(3200,!1)}function Qye(){return new Oe(3202,!1)}function Xye(){return new Oe(3013,!1)}function Zye(n){return new Oe(3014,!1)}function Yye(n){return new Oe(3015,!1)}function Jye(n){return new Oe(3016,!1)}function e3e(n,t){return new Oe(3404,!1)}function t3e(n){return new Oe(3502,!1)}function i3e(n){return new Oe(3503,!1)}function n3e(){return new Oe(3300,!1)}function o3e(n){return new Oe(3504,!1)}function s3e(n){return new Oe(3301,!1)}function r3e(n,t){return new Oe(3302,!1)}function a3e(n){return new Oe(3303,!1)}function l3e(n,t){return new Oe(3400,!1)}function c3e(n){return new Oe(3401,!1)}function d3e(n){return new Oe(3402,!1)}function u3e(n,t){return new Oe(3505,!1)}function lh(n){switch(n.length){case 0:return new rh;case 1:return n[0];default:return new cC(n)}}function iY(n,t,e=new Map,i=new Map){let o=[],s=[],r=-1,a=null;if(t.forEach(l=>{let c=l.get("offset"),d=c==r,u=d&&a||new Map;l.forEach((h,m)=>{let _=m,b=h;if(m!=="offset")switch(_=n.normalizePropertyName(_,o),b){case Aw:b=e.get(m);break;case Kr:b=i.get(m);break;default:b=n.normalizeStyleValue(m,_,b,o);break}u.set(_,b)}),d||s.push(u),a=u,r=c}),o.length)throw t3e(o);return s}function xL(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&tL(e,"start",n)));break;case"done":n.onDone(()=>i(e&&tL(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&tL(e,"destroy",n)));break}}function tL(n,t,e){let i=e.totalTime,o=!!e.disabled,s=EL(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,i??n.totalTime,o),r=n._data;return r!=null&&(s._data=r),s}function EL(n,t,e,i,o="",s=0,r){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:o,totalTime:s,disabled:!!r}}function Wr(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function UZ(n){let t=n.indexOf(":"),e=n.substring(1,t),i=n.slice(t+1);return[e,i]}var h3e=typeof document>"u"?null:document.documentElement;function wL(n){let t=n.parentNode||n.host||null;return t===h3e?null:t}function p3e(n){return n.substring(1,6)=="ebkit"}var If=null,jZ=!1;function f3e(n){If||(If=m3e()||{},jZ=If.style?"WebkitAppearance"in If.style:!1);let t=!0;return If.style&&!p3e(n)&&(t=n in If.style,!t&&jZ&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in If.style)),t}function m3e(){return typeof document<"u"?document.body:null}function nY(n,t){for(;t;){if(t===n)return!0;t=wL(t)}return!1}function oY(n,t,e){if(e)return Array.from(n.querySelectorAll(t));let i=n.querySelector(t);return i?[i]:[]}var DL=(()=>{let t=class t{validateStyleProperty(i){return f3e(i)}matchesElement(i,o){return!1}containsElement(i,o){return nY(i,o)}getParentElement(i){return wL(i)}query(i,o,s){return oY(i,o,s)}computeStyle(i,o,s){return s||""}animate(i,o,s,r,a,l=[],c){return new rh(s,r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),RL=class RL{};RL.NOOP=new DL;var Rf=RL,kf=class{};var g3e=1e3,sY="{{",_3e="}}",rY="ng-enter",aL="ng-leave",Rw="ng-trigger",Lw=".ng-trigger",KZ="ng-animating",lL=".ng-animating";function Pd(n){if(typeof n=="number")return n;let t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:cL(parseFloat(t[1]),t[2])}function cL(n,t){switch(t){case"s":return n*g3e;default:return n}}function Pw(n,t,e){return n.hasOwnProperty("duration")?n:v3e(n,t,e)}function v3e(n,t,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o,s=0,r="";if(typeof n=="string"){let a=n.match(i);if(a===null)return t.push(HZ(n)),{duration:0,delay:0,easing:""};o=cL(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=cL(parseFloat(l),a[4]));let c=a[5];c&&(r=c)}else o=n;if(!e){let a=!1,l=t.length;o<0&&(t.push(Lye()),a=!0),s<0&&(t.push(Pye()),a=!0),a&&t.splice(l,0,HZ(n))}return{duration:o,delay:s,easing:r}}function C3e(n){return n.length?n[0]instanceof Map?n:n.map(t=>new Map(Object.entries(t))):[]}function Sc(n,t,e){t.forEach((i,o)=>{let s=IL(o);e&&!e.has(o)&&e.set(o,n.style[s]),n.style[s]=i})}function Af(n,t){t.forEach((e,i)=>{let o=IL(i);n.style[o]=""})}function uC(n){return Array.isArray(n)?n.length==1?n[0]:x0(n):n}function b3e(n,t,e){let i=t.params||{},o=aY(n);o.length&&o.forEach(s=>{i.hasOwnProperty(s)||e.push(Fye(s))})}var dL=new RegExp(`${sY}\\s*(.+?)\\s*${_3e}`,"g");function aY(n){let t=[];if(typeof n=="string"){let e;for(;e=dL.exec(n);)t.push(e[1]);dL.lastIndex=0}return t}function pC(n,t,e){let i=`${n}`,o=i.replace(dL,(s,r)=>{let a=t[r];return a==null&&(e.push(zye(r)),a=""),a.toString()});return o==i?n:o}var S3e=/-+([a-z0-9])/g;function IL(n){return n.replace(S3e,(...t)=>t[1].toUpperCase())}function y3e(n,t){return n===0||t===0}function x3e(n,t,e){if(e.size&&t.length){let i=t[0],o=[];if(e.forEach((s,r)=>{i.has(r)||o.push(r),i.set(r,s)}),o.length)for(let s=1;sr.set(a,TL(n,a)))}}return t}function $r(n,t,e){switch(t.type){case Yt.Trigger:return n.visitTrigger(t,e);case Yt.State:return n.visitState(t,e);case Yt.Transition:return n.visitTransition(t,e);case Yt.Sequence:return n.visitSequence(t,e);case Yt.Group:return n.visitGroup(t,e);case Yt.Animate:return n.visitAnimate(t,e);case Yt.Keyframes:return n.visitKeyframes(t,e);case Yt.Style:return n.visitStyle(t,e);case Yt.Reference:return n.visitReference(t,e);case Yt.AnimateChild:return n.visitAnimateChild(t,e);case Yt.AnimateRef:return n.visitAnimateRef(t,e);case Yt.Query:return n.visitQuery(t,e);case Yt.Stagger:return n.visitStagger(t,e);default:throw Gye(t.type)}}function TL(n,t){return window.getComputedStyle(n)[t]}var E3e=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Fw=class extends kf{normalizePropertyName(t,e){return IL(t)}normalizeStyleValue(t,e,i,o){let s="",r=i.toString().trim();if(E3e.has(e)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&o.push(Vye(t,i))}return r+s}};var zw="*";function w3e(n,t){let e=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>D3e(i,e,t)):e.push(n),e}function D3e(n,t,e){if(n[0]==":"){let l=I3e(n,e);if(typeof l=="function"){t.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(Yye(n)),t;let o=i[1],s=i[2],r=i[3];t.push($Z(o,r));let a=o==zw&&r==zw;s[0]=="<"&&!a&&t.push($Z(r,o))}function I3e(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}var kw=new Set(["true","1"]),Mw=new Set(["false","0"]);function $Z(n,t){let e=kw.has(n)||Mw.has(n),i=kw.has(t)||Mw.has(t);return(o,s)=>{let r=n==zw||n==o,a=t==zw||t==s;return!r&&e&&typeof o=="boolean"&&(r=o?kw.has(n):Mw.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?kw.has(t):Mw.has(t)),r&&a}}var lY=":self",T3e=new RegExp(`s*${lY}s*,?`,"g");function cY(n,t,e,i){return new uL(n).build(t,e,i)}var WZ="",uL=class{constructor(t){this._driver=t}build(t,e,i){let o=new hL(e);return this._resetContextStyleTimingState(o),$r(this,uC(t),o)}_resetContextStyleTimingState(t){t.currentQuerySelector=WZ,t.collectedStyles=new Map,t.collectedStyles.set(WZ,new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,o=e.depCount=0,s=[],r=[];return t.name.charAt(0)=="@"&&e.errors.push(Bye()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Yt.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,e))}),l.name=c}else if(a.type==Yt.Transition){let l=this.visitTransition(a,e);i+=l.queryCount,o+=l.depCount,r.push(l)}else e.errors.push(Hye())}),{type:Yt.Trigger,name:t.name,states:s,transitions:r,queryCount:i,depCount:o,options:null}}visitState(t,e){let i=this.visitStyle(t.styles,e),o=t.options&&t.options.params||null;if(i.containsDynamicStyles){let s=new Set,r=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{aY(l).forEach(c=>{r.hasOwnProperty(c)||s.add(c)})})}),s.size&&e.errors.push(Uye(t.name,[...s.values()]))}return{type:Yt.State,name:t.name,style:i,options:o?{params:o}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let i=$r(this,uC(t.animation),e),o=w3e(t.expr,e.errors);return{type:Yt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Tf(t.options)}}visitSequence(t,e){return{type:Yt.Sequence,steps:t.steps.map(i=>$r(this,i,e)),options:Tf(t.options)}}visitGroup(t,e){let i=e.currentTime,o=0,s=t.steps.map(r=>{e.currentTime=i;let a=$r(this,r,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:Yt.Group,steps:s,options:Tf(t.options)}}visitAnimate(t,e){let i=M3e(t.timings,e.errors);e.currentAnimateTimings=i;let o,s=t.styles?t.styles:it({});if(s.type==Yt.Keyframes)o=this.visitKeyframes(s,e);else{let r=t.styles,a=!1;if(!r){a=!0;let c={};i.easing&&(c.easing=i.easing),r=it(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(r,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:Yt.Animate,timings:i,style:o,options:null}}visitStyle(t,e){let i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){let i=[],o=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of o)typeof a=="string"?a===Kr?i.push(a):e.errors.push(jye(a)):i.push(new Map(Object.entries(a)));let s=!1,r=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(r=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(sY)>=0){s=!0;break}}}),{type:Yt.Style,styles:i,easing:r,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){let i=e.currentAnimateTimings,o=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l),u=!0;d&&(s!=o&&s>=d.startTime&&o<=d.endTime&&(e.errors.push(Kye(l,d.startTime,d.endTime,s,o)),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:o}),e.options&&b3e(a,e.options,e.errors)})})}visitKeyframes(t,e){let i={type:Yt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push($ye()),i;let o=1,s=0,r=[],a=!1,l=!1,c=0,d=t.steps.map(w=>{let T=this._makeStyleAst(w,e),N=T.offset!=null?T.offset:k3e(T.styles),F=0;return N!=null&&(s++,F=T.offset=N),l=l||F<0||F>1,a=a||F0&&s{let N=h>0?T==m?1:h*T:r[T],F=N*E;e.currentTime=_+b.delay+F,b.duration=F,this._validateStyleAst(w,e),w.offset=N,i.styles.push(w)}),i}visitReference(t,e){return{type:Yt.Reference,animation:$r(this,uC(t.animation),e),options:Tf(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:Yt.AnimateChild,options:Tf(t.options)}}visitAnimateRef(t,e){return{type:Yt.AnimateRef,animation:this.visitReference(t.animation,e),options:Tf(t.options)}}visitQuery(t,e){let i=e.currentQuerySelector,o=t.options||{};e.queryCount++,e.currentQuery=t;let[s,r]=A3e(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Wr(e.collectedStyles,e.currentQuerySelector,new Map);let a=$r(this,uC(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Yt.Query,selector:s,limit:o.limit||0,optional:!!o.optional,includeSelf:r,animation:a,originalSelector:t.selector,options:Tf(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(Xye());let i=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Pw(t.timings,e.errors,!0);return{type:Yt.Stagger,animation:$r(this,uC(t.animation),e),timings:i,options:null}}};function A3e(n){let t=!!n.split(/\s*,\s*/).find(e=>e==lY);return t&&(n=n.replace(T3e,"")),n=n.replace(/@\*/g,Lw).replace(/@\w+/g,e=>Lw+"-"+e.slice(1)).replace(/:animating/g,lL),[n,t]}function R3e(n){return n?Ge({},n):null}var hL=class{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function k3e(n){if(typeof n=="string")return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function M3e(n,t){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=Pw(n,t).duration;return iL(s,0,"")}let e=n;if(e.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=iL(0,0,"");return s.dynamic=!0,s.strValue=e,s}let o=Pw(e,t);return iL(o.duration,o.delay,o.easing)}function Tf(n){return n?(n=Ge({},n),n.params&&(n.params=R3e(n.params))):n={},n}function iL(n,t,e){return{duration:n,delay:t,easing:e}}function AL(n,t,e,i,o,s,r=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:o,delay:s,totalTime:o+s,easing:r,subTimeline:a}}var fC=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},N3e=1,O3e=":enter",L3e=new RegExp(O3e,"g"),P3e=":leave",F3e=new RegExp(P3e,"g");function dY(n,t,e,i,o,s=new Map,r=new Map,a,l,c=[]){return new pL().buildKeyframes(n,t,e,i,o,s,r,a,l,c)}var pL=class{buildKeyframes(t,e,i,o,s,r,a,l,c,d=[]){c=c||new fC;let u=new fL(t,e,c,o,s,d,[]);u.options=l;let h=l.delay?Pd(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([r],null,u.errors,l),$r(this,i,u);let m=u.timelines.filter(_=>_.containsAnimation());if(m.length&&a.size){let _;for(let b=m.length-1;b>=0;b--){let E=m[b];if(E.element===e){_=E;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([a],null,u.errors,l)}return m.length?m.map(_=>_.buildKeyframes()):[AL(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let i=e.subInstructions.get(e.element);if(i){let o=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,o,o.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){let i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(let o of t){let s=o?.delay;if(s){let r=typeof s=="number"?s:Pd(pC(s,o?.params??{},e.errors));i.delayNextStep(r)}}}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime,r=i.duration!=null?Pd(i.duration):null,a=i.delay!=null?Pd(i.delay):null;return r!==0&&t.forEach(l=>{let c=e.appendInstructionToTimeline(l,r,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),$r(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let i=e.subContextCount,o=e,s=t.options;if(s&&(s.params||s.delay)&&(o=e.createSubContext(s),o.transformIntoNewTimeline(),s.delay!=null)){o.previousNode.type==Yt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Gw);let r=Pd(s.delay);o.delayNextStep(r)}t.steps.length&&(t.steps.forEach(r=>$r(this,r,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let i=[],o=e.currentTimeline.currentTime,s=t.options&&t.options.delay?Pd(t.options.delay):0;t.steps.forEach(r=>{let a=e.createSubContext(t.options);s&&a.delayNextStep(s),$r(this,r,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(o),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let i=t.strValue,o=e.params?pC(i,e.params,e.errors):i;return Pw(o,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let i=e.currentAnimateTimings=this._visitTiming(t.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());let s=t.style;s.type==Yt.Keyframes?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=o&&o.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let i=e.currentAnimateTimings,o=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+s),e.previousNode=t}visitQuery(t,e){let i=e.currentTimeline.currentTime,o=t.options||{},s=o.delay?Pd(o.delay):0;s&&(e.previousNode.type===Yt.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Gw);let r=i,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;let u=e.createSubContext(t.options,c);s&&u.delayNextStep(s),c===e.element&&(l=u.currentTimeline),$r(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe();let h=u.currentTimeline.currentTime;r=Math.max(r,h)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let i=e.parentContext,o=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),a=r*(e.currentQueryTotal-1),l=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=e.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;$r(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=o.currentTime-u+(o.startTime-i.currentTimeline.startTime)}},Gw={},fL=class n{constructor(t,e,i,o,s,r,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=s,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Vw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let i=t,o=this.options;i.duration!=null&&(o.duration=Pd(i.duration)),i.delay!=null&&(o.delay=Pd(i.delay));let s=i.params;if(s){let r=o.params;r||(r=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!r.hasOwnProperty(a))&&(r[a]=pC(s[a],r,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let i=t.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return t}createSubContext(t=null,e,i){let o=e||this.element,s=new n(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Gw,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){let o={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},s=new mL(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(s),o}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,o,s,r){let a=[];if(o&&a.push(this.element),t.length>0){t=t.replace(L3e,"."+this._enterClassName),t=t.replace(F3e,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,t,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&r.push(Zye(e)),a}},Vw=class n{constructor(t,e,i,o){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new n(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=N3e,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Kr),this._currentKeyframe.set(e,Kr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,o){e&&this._previousKeyframe.set("easing",e);let s=o&&o.params||{},r=z3e(t,this._globalTimelineStyles);for(let[a,l]of r){let c=pC(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Kr),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{let o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Aw?t.add(u):d===Kr&&e.add(u)}),i||c.set("offset",l/this.duration),o.push(c)});let s=[...t.values()],r=[...e.values()];if(i){let a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return AL(this.element,o,s,r,this.duration,this.startTime,this.easing,!1)}},mL=class extends Vw{constructor(t,e,i,o,s,r,a=!1){super(t,e,r.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let s=[],r=i+e,a=e/r,l=new Map(t[0]);l.set("offset",0),s.push(l);let c=new Map(t[0]);c.set("offset",qZ(a)),s.push(c);let d=t.length-1;for(let u=1;u<=d;u++){let h=new Map(t[u]),m=h.get("offset"),_=e+m*i;h.set("offset",qZ(_/r)),s.push(h)}i=r,e=0,o="",t=s}return AL(this.element,t,this.preStyleProps,this.postStyleProps,i,e,o,!0)}};function qZ(n,t=3){let e=Math.pow(10,t-1);return Math.round(n*e)/e}function z3e(n,t){let e=new Map,i;return n.forEach(o=>{if(o==="*"){i??=t.keys();for(let s of i)e.set(s,Kr)}else for(let[s,r]of o)e.set(s,r)}),e}function QZ(n,t,e,i,o,s,r,a,l,c,d,u,h){return{type:0,element:n,triggerName:t,isRemovalTransition:o,fromState:e,fromStyles:s,toState:i,toStyles:r,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}var nL={},Bw=class{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,o){return G3e(this.ast.matchers,t,e,i,o)}buildStyles(t,e,i){let o=this._stateStyles.get("*");return t!==void 0&&(o=this._stateStyles.get(t?.toString())||o),o?o.buildStyles(e,i):new Map}build(t,e,i,o,s,r,a,l,c,d){let u=[],h=this.ast.options&&this.ast.options.params||nL,m=a&&a.params||nL,_=this.buildStyles(i,m,u),b=l&&l.params||nL,E=this.buildStyles(o,b,u),w=new Set,T=new Map,N=new Map,F=o==="void",O={params:uY(b,h),delay:this.ast.options?.delay},Y=d?[]:dY(t,e,this.ast.animation,s,r,_,E,O,c,u),K=0;return Y.forEach(ve=>{K=Math.max(ve.duration+ve.delay,K)}),u.length?QZ(e,this._triggerName,i,o,F,_,E,[],[],T,N,K,u):(Y.forEach(ve=>{let ze=ve.element,Te=Wr(T,ze,new Set);ve.preStyleProps.forEach(kt=>Te.add(kt));let Qe=Wr(N,ze,new Set);ve.postStyleProps.forEach(kt=>Qe.add(kt)),ze!==e&&w.add(ze)}),QZ(e,this._triggerName,i,o,F,_,E,Y,[...w.values()],T,N,K))}};function G3e(n,t,e,i,o){return n.some(s=>s(t,e,i,o))}function uY(n,t){let e=Ge({},t);return Object.entries(n).forEach(([i,o])=>{o!=null&&(e[i]=o)}),e}var gL=class{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){let i=new Map,o=uY(t,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((r,a)=>{r&&(r=pC(r,o,e));let l=this.normalizer.normalizePropertyName(a,e);r=this.normalizer.normalizeStyleValue(a,l,r,e),i.set(a,r)})}),i}};function V3e(n,t,e){return new _L(n,t,e)}var _L=class{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{let s=o.options&&o.options.params||{};this.states.set(o.name,new gL(o.style,s,i))}),XZ(this.states,"true","1"),XZ(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Bw(t,o,this.states))}),this.fallbackTransition=B3e(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,o){return this.transitionFactories.find(r=>r.match(t,e,i,o))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}};function B3e(n,t,e){let i=[(r,a)=>!0],o={type:Yt.Sequence,steps:[],options:null},s={type:Yt.Transition,animation:o,matchers:i,options:null,queryCount:0,depCount:0};return new Bw(n,s,t)}function XZ(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}var H3e=new fC,vL=class{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){let i=[],o=[],s=cY(this._driver,e,i,o);if(i.length)throw i3e(i);o.length&&void 0,this._animations.set(t,s)}_buildPlayer(t,e,i){let o=t.element,s=iY(this._normalizer,t.keyframes,e,i);return this._driver.animate(o,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){let o=[],s=this._animations.get(t),r,a=new Map;if(s?(r=dY(this._driver,e,s,rY,aL,new Map,new Map,i,H3e,o),r.forEach(d=>{let u=Wr(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(o.push(n3e()),r=[]),o.length)throw o3e(o);a.forEach((d,u)=>{d.forEach((h,m)=>{d.set(m,this._driver.computeStyle(u,m,Kr))})});let l=r.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=lh(l);return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw s3e(t);return e}listen(t,e,i,o){let s=EL(e,"","","");return xL(this._getPlayer(t),i,s,o),()=>{}}command(t,e,i,o){if(i=="register"){this.register(t,o[0]);return}if(i=="create"){let r=o[0]||{};this.create(t,e,r);return}let s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(t);break}}},ZZ="ng-animate-queued",U3e=".ng-animate-queued",oL="ng-animate-disabled",j3e=".ng-animate-disabled",K3e="ng-star-inserted",$3e=".ng-star-inserted",W3e=[],hY={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},q3e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Al="__ng_removed",mC=class{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let i=t&&t.hasOwnProperty("value"),o=i?t.value:t;if(this.value=X3e(o),i){let s=t,{value:r}=s,a=g$(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let i=this.options.params;Object.keys(e).forEach(o=>{i[o]==null&&(i[o]=e[o])})}}},hC="void",sL=new mC(hC),CL=class{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,La(e,this._hostClassName)}listen(t,e,i,o){if(!this._triggers.has(e))throw r3e(i,e);if(i==null||i.length==0)throw a3e(e);if(!Z3e(i))throw l3e(i,e);let s=Wr(this._elementListeners,t,[]),r={name:e,phase:i,callback:o};s.push(r);let a=Wr(this._engine.statesByElement,t,new Map);return a.has(e)||(La(t,Rw),La(t,Rw+"-"+e),a.set(e,sL)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(r);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw c3e(t);return e}trigger(t,e,i,o=!0){let s=this._getTrigger(e),r=new gC(this.id,e,t),a=this._engine.statesByElement.get(t);a||(La(t,Rw),La(t,Rw+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e),c=new mC(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=sL),!(c.value===hC)&&l.value===c.value){if(!exe(l.params,c.params)){let b=[],E=s.matchStyles(l.value,l.params,b),w=s.matchStyles(c.value,c.params,b);b.length?this._engine.reportError(b):this._engine.afterFlush(()=>{Af(t,E),Sc(t,w)})}return}let h=Wr(this._engine.playersByElement,t,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let m=s.matchTransition(l.value,c.value,t,c.params),_=!1;if(!m){if(!o)return;m=s.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:m,fromState:l,toState:c,player:r,isFallbackTransition:_}),_||(La(t,ZZ),r.onStart(()=>{E0(t,ZZ)})),r.onDone(()=>{let b=this.players.indexOf(r);b>=0&&this.players.splice(b,1);let E=this._engine.playersByElement.get(t);if(E){let w=E.indexOf(r);w>=0&&E.splice(w,1)}}),this.players.push(r),h.push(r),r}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let i=this._engine.driver.query(t,Lw,!0);i.forEach(o=>{if(o[Al])return;let s=this._engine.fetchNamespacesByElement(o);s.size?s.forEach(r=>r.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(t,e,i,o){let s=this._engine.statesByElement.get(t),r=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(r.set(c,l.value),this._triggers.has(c)){let d=this.trigger(t,c,hC,o);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,r),i&&lh(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){let o=new Set;e.forEach(s=>{let r=s.name;if(o.has(r))return;o.add(r);let l=this._triggers.get(r).fallbackTransition,c=i.get(r)||sL,d=new mC(hC),u=new gC(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,e){let i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let o=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else{let r=t;for(;r=r.parentNode;)if(i.statesByElement.get(r)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(t),o)i.markElementAsRemoved(this.id,t,!1,e);else{let s=t[Al];(!s||s===hY)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){La(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(i=>{let o=i.player;if(o.destroyed)return;let s=i.element,r=this._elementListeners.get(s);r&&r.forEach(a=>{if(a.name==i.triggerName){let l=EL(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,xL(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{let s=i.transition.ast.depCount,r=o.transition.ast.depCount;return s==0||r==0?s-r:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},bL=class{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i,o){this.bodyNode=t,this.driver=e,this._normalizer=i,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){let i=new CL(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){let i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let r=!1,a=this.driver.getParentElement(e);for(;a;){let l=o.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,t),r=!0;break}a=this.driver.getParentElement(a)}r||i.unshift(t)}else i.push(t);return o.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let o=this._namespaceLookup[t];o&&o.register(e,i)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(t);this.namespacesByHostElement.delete(i.hostElement);let o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,i=this.statesByElement.get(t);if(i){for(let o of i.values())if(o.namespaceId){let s=this._fetchNamespace(o.namespaceId);s&&e.add(s)}}return e}trigger(t,e,i,o){if(Nw(e)){let s=this._fetchNamespace(t);if(s)return s.trigger(e,i,o),!0}return!1}insertNode(t,e,i,o){if(!Nw(e))return;let s=e[Al];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(t){let r=this._fetchNamespace(t);r&&r.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),La(t,oL)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),E0(t,oL))}removeNode(t,e,i){if(Nw(e)){this.scheduler?.notify();let o=t?this._fetchNamespace(t):null;o?o.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i);let s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,i,o,s){this.collectedLeaveElements.push(e),e[Al]={namespaceId:t,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,o,s){return Nw(e)?this._fetchNamespace(t).listen(e,i,o,s):()=>{}}_buildInstruction(t,e,i,o,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,o,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Lw,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,lL,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return lh(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[Al];if(e&&e.setForRemoval){if(t[Al]=hY,e.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(oL)&&this.markElementAsDisabled(t,!1),this.driver.query(t,j3e,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?lh(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(t){throw d3e(t)}_flushAnimations(t,e){let i=new fC,o=[],s=new Map,r=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(Ve=>{d.add(Ve);let Ze=this.driver.query(Ve,U3e,!0);for(let St=0;St{let St=rY+b++;_.set(Ze,St),Ve.forEach(ti=>La(ti,St))});let E=[],w=new Set,T=new Set;for(let Ve=0;Vew.add(ti)):T.add(Ze))}let N=new Map,F=eY(h,Array.from(w));F.forEach((Ve,Ze)=>{let St=aL+b++;N.set(Ze,St),Ve.forEach(ti=>La(ti,St))}),t.push(()=>{m.forEach((Ve,Ze)=>{let St=_.get(Ze);Ve.forEach(ti=>E0(ti,St))}),F.forEach((Ve,Ze)=>{let St=N.get(Ze);Ve.forEach(ti=>E0(ti,St))}),E.forEach(Ve=>{this.processLeaveNode(Ve)})});let O=[],Y=[];for(let Ve=this._namespaceList.length-1;Ve>=0;Ve--)this._namespaceList[Ve].drainQueuedTransitions(e).forEach(St=>{let ti=St.player,gn=St.element;if(O.push(ti),this.collectedEnterElements.length){let Ci=gn[Al];if(Ci&&Ci.setForMove){if(Ci.previousTriggersValues&&Ci.previousTriggersValues.has(St.triggerName)){let pi=Ci.previousTriggersValues.get(St.triggerName),Ot=this.statesByElement.get(St.element);if(Ot&&Ot.has(St.triggerName)){let Fn=Ot.get(St.triggerName);Fn.value=pi,Ot.set(St.triggerName,Fn)}}ti.destroy();return}}let uo=!u||!this.driver.containsElement(u,gn),ho=N.get(gn),$i=_.get(gn),Ae=this._buildInstruction(St,i,$i,ho,uo);if(Ae.errors&&Ae.errors.length){Y.push(Ae);return}if(uo){ti.onStart(()=>Af(gn,Ae.fromStyles)),ti.onDestroy(()=>Sc(gn,Ae.toStyles)),o.push(ti);return}if(St.isFallbackTransition){ti.onStart(()=>Af(gn,Ae.fromStyles)),ti.onDestroy(()=>Sc(gn,Ae.toStyles)),o.push(ti);return}let Di=[];Ae.timelines.forEach(Ci=>{Ci.stretchStartingKeyframe=!0,this.disabledNodes.has(Ci.element)||Di.push(Ci)}),Ae.timelines=Di,i.append(gn,Ae.timelines);let Xt={instruction:Ae,player:ti,element:gn};r.push(Xt),Ae.queriedElements.forEach(Ci=>Wr(a,Ci,[]).push(ti)),Ae.preStyleProps.forEach((Ci,pi)=>{if(Ci.size){let Ot=l.get(pi);Ot||l.set(pi,Ot=new Set),Ci.forEach((Fn,Xo)=>Ot.add(Xo))}}),Ae.postStyleProps.forEach((Ci,pi)=>{let Ot=c.get(pi);Ot||c.set(pi,Ot=new Set),Ci.forEach((Fn,Xo)=>Ot.add(Xo))})});if(Y.length){let Ve=[];Y.forEach(Ze=>{Ve.push(u3e(Ze.triggerName,Ze.errors))}),O.forEach(Ze=>Ze.destroy()),this.reportError(Ve)}let K=new Map,ve=new Map;r.forEach(Ve=>{let Ze=Ve.element;i.has(Ze)&&(ve.set(Ze,Ze),this._beforeAnimationBuild(Ve.player.namespaceId,Ve.instruction,K))}),o.forEach(Ve=>{let Ze=Ve.element;this._getPreviousPlayers(Ze,!1,Ve.namespaceId,Ve.triggerName,null).forEach(ti=>{Wr(K,Ze,[]).push(ti),ti.destroy()})});let ze=E.filter(Ve=>tY(Ve,l,c)),Te=new Map;JZ(Te,this.driver,T,c,Kr).forEach(Ve=>{tY(Ve,l,c)&&ze.push(Ve)});let kt=new Map;m.forEach((Ve,Ze)=>{JZ(kt,this.driver,new Set(Ve),l,Aw)}),ze.forEach(Ve=>{let Ze=Te.get(Ve),St=kt.get(Ve);Te.set(Ve,new Map([...Ze?.entries()??[],...St?.entries()??[]]))});let rt=[],Ki=[],ai={};r.forEach(Ve=>{let{element:Ze,player:St,instruction:ti}=Ve;if(i.has(Ze)){if(d.has(Ze)){St.onDestroy(()=>Sc(Ze,ti.toStyles)),St.disabled=!0,St.overrideTotalTime(ti.totalTime),o.push(St);return}let gn=ai;if(ve.size>1){let ho=Ze,$i=[];for(;ho=ho.parentNode;){let Ae=ve.get(ho);if(Ae){gn=Ae;break}$i.push(ho)}$i.forEach(Ae=>ve.set(Ae,gn))}let uo=this._buildAnimation(St.namespaceId,ti,K,s,kt,Te);if(St.setRealPlayer(uo),gn===ai)rt.push(St);else{let ho=this.playersByElement.get(gn);ho&&ho.length&&(St.parentPlayer=lh(ho)),o.push(St)}}else Af(Ze,ti.fromStyles),St.onDestroy(()=>Sc(Ze,ti.toStyles)),Ki.push(St),d.has(Ze)&&o.push(St)}),Ki.forEach(Ve=>{let Ze=s.get(Ve.element);if(Ze&&Ze.length){let St=lh(Ze);Ve.setRealPlayer(St)}}),o.forEach(Ve=>{Ve.parentPlayer?Ve.syncPlayerEvents(Ve.parentPlayer):Ve.destroy()});for(let Ve=0;Ve!uo.destroyed);gn.length?Y3e(this,Ze,gn):this.processLeaveNode(Ze)}return E.length=0,rt.forEach(Ve=>{this.players.push(Ve),Ve.onDone(()=>{Ve.destroy();let Ze=this.players.indexOf(Ve);this.players.splice(Ze,1)}),Ve.play()}),rt}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,o,s){let r=[];if(e){let a=this.playersByQueriedElement.get(t);a&&(r=a)}else{let a=this.playersByElement.get(t);if(a){let l=!s||s==hC;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||r.push(c)})}}return(i||o)&&(r=r.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),r}_beforeAnimationBuild(t,e,i){let o=e.triggerName,s=e.element,r=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let c=l.element,d=c!==s,u=Wr(i,c,[]);this._getPreviousPlayers(c,d,r,a,e.toState).forEach(m=>{let _=m.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),m.destroy(),u.push(m)})}Af(s,e.fromStyles)}_buildAnimation(t,e,i,o,s,r){let a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(_=>{let b=_.element;d.add(b);let E=b[Al];if(E&&E.removedBeforeQueried)return new rh(_.duration,_.delay);let w=b!==l,T=J3e((i.get(b)||W3e).map(K=>K.getRealPlayer())).filter(K=>{let ve=K;return ve.element?ve.element===b:!1}),N=s.get(b),F=r.get(b),O=iY(this._normalizer,_.keyframes,N,F),Y=this._buildPlayer(_,O,T);if(_.subTimeline&&o&&u.add(b),w){let K=new gC(t,a,b);K.setRealPlayer(Y),c.push(K)}return Y});c.forEach(_=>{Wr(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>Q3e(this.playersByQueriedElement,_.element,_))}),d.forEach(_=>La(_,KZ));let m=lh(h);return m.onDestroy(()=>{d.forEach(_=>E0(_,KZ)),Sc(l,e.toStyles)}),u.forEach(_=>{Wr(o,_,[]).push(m)}),m}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new rh(t.duration,t.delay)}},gC=class{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new rh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>xL(t,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Wr(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function Q3e(n,t,e){let i=n.get(t);if(i){if(i.length){let o=i.indexOf(e);i.splice(o,1)}i.length==0&&n.delete(t)}return i}function X3e(n){return n??null}function Nw(n){return n&&n.nodeType===1}function Z3e(n){return n=="start"||n=="done"}function YZ(n,t){let e=n.style.display;return n.style.display=t??"none",e}function JZ(n,t,e,i,o){let s=[];e.forEach(l=>s.push(YZ(l)));let r=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let h=t.computeStyle(c,u,o);d.set(u,h),(!h||h.length==0)&&(c[Al]=q3e,r.push(c))}),n.set(c,d)});let a=0;return e.forEach(l=>YZ(l,s[a++])),r}function eY(n,t){let e=new Map;if(n.forEach(a=>e.set(a,[])),t.length==0)return e;let i=1,o=new Set(t),s=new Map;function r(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:o.has(c)?l=i:l=r(c),s.set(a,l),l}return t.forEach(a=>{let l=r(a);l!==i&&e.get(l).push(a)}),e}function La(n,t){n.classList?.add(t)}function E0(n,t){n.classList?.remove(t)}function Y3e(n,t,e){lh(e).onDone(()=>n.processLeaveNode(t))}function J3e(n){let t=[];return pY(n,t),t}function pY(n,t){for(let e=0;eo.add(s)):t.set(n,i),e.delete(n),!0}var D0=class{constructor(t,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new bL(t.body,e,i,o),this._timelineEngine=new vL(t.body,e,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(t,e,i,o,s){let r=t+"-"+o,a=this._triggerCache[r];if(!a){let l=[],c=[],d=cY(this._driver,s,l,c);if(l.length)throw e3e(o,l);c.length&&void 0,a=V3e(o,d,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,o,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,o){this._transitionEngine.insertNode(t,e,i,o)}onRemove(t,e,i){this._transitionEngine.removeNode(t,e,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,o){if(i.charAt(0)=="@"){let[s,r]=UZ(i),a=o;this._timelineEngine.command(s,e,r,a)}else this._transitionEngine.trigger(t,e,i,o)}listen(t,e,i,o,s){if(i.charAt(0)=="@"){let[r,a]=UZ(i);return this._timelineEngine.listen(r,e,a,s)}return this._transitionEngine.listen(t,e,i,o,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function txe(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=rL(t[0]),t.length>1&&(i=rL(t[t.length-1]))):t instanceof Map&&(e=rL(t)),e||i?new SL(n,e,i):null}var w0=class w0{constructor(t,e,i){this._element=t,this._startStyles=e,this._endStyles=i,this._state=0;let o=w0.initialStylesByElement.get(t);o||w0.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Sc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Sc(this._element,this._initialStyles),this._endStyles&&(Sc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(w0.initialStylesByElement.delete(this._element),this._startStyles&&(Af(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Af(this._element,this._endStyles),this._endStyles=null),Sc(this._element,this._initialStyles),this._state=3)}};w0.initialStylesByElement=new WeakMap;var SL=w0;function rL(n){let t=null;return n.forEach((e,i)=>{ixe(i)&&(t=t||new Map,t.set(i,e))}),t}function ixe(n){return n==="display"||n==="position"}var Hw=class{constructor(t,e,i,o){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{o!=="offset"&&t.set(o,this._finished?i:TL(this.element,o))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Uw=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return nY(t,e)}getParentElement(t){return wL(t)}query(t,e,i){return oY(t,e,i)}computeStyle(t,e,i){return TL(t,e)}animate(t,e,i,o,s,r=[]){let a=o==0?"both":"forwards",l={duration:i,delay:o,fill:a};s&&(l.easing=s);let c=new Map,d=r.filter(m=>m instanceof Hw);y3e(i,o)&&d.forEach(m=>{m.currentSnapshot.forEach((_,b)=>c.set(b,_))});let u=C3e(e).map(m=>new Map(m));u=x3e(t,u,c);let h=txe(t,u);return new Hw(t,u,l,h)}};var Ow="@",fY="@.disabled",jw=class{constructor(t,e,i,o){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,o=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,o)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,o){this.delegate.setAttribute(t,e,i,o)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,o){this.delegate.setStyle(t,e,i,o)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Ow&&e==fY?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},yL=class extends jw{constructor(t,e,i,o,s){super(e,i,o,s),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Ow?e.charAt(1)=="."&&e==fY?(i=i===void 0?!0:!!i,this.disableAnimations(t,i)):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==Ow){let o=nxe(t),s=e.slice(1),r="";return s.charAt(0)!=Ow&&([s,r]=oxe(s)),this.engine.listen(this.namespaceId,o,s,r,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(t,e,i)}};function nxe(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function oxe(n){let t=n.indexOf("."),e=n.substring(0,t),i=n.slice(t+1);return[e,i]}var Kw=class{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,s)=>{let r=s?.parentNode(o);r&&s.removeChild(r,o)}}createRenderer(t,e){let i="",o=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let c=this._rendererCache,d=c.get(o);if(!d){let u=()=>c.delete(o);d=new jw(i,o,this.engine,u),c.set(o,d)}return d}let s=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,r,t,c.name,c)};return e.data.animation.forEach(a),new yL(this,r,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){if(t>=0&&te(i));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(s=>{let[r,a]=s;r(a)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var rxe=(()=>{let t=class t extends D0{constructor(i,o,s){super(i,o,s,mt(C2,{optional:!0}))}ngOnDestroy(){this.flush()}};t.\u0275fac=function(o){return new(o||t)(q(ns),q(Rf),q(kf))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})();function axe(){return new Fw}function lxe(n,t,e){return new Kw(n,t,e)}var gY=[{provide:kf,useFactory:axe},{provide:D0,useClass:rxe},{provide:kd,useFactory:lxe,deps:[uw,D0,oe]}],mY=[{provide:Rf,useFactory:()=>new Uw},{provide:A2,useValue:"BrowserAnimations"},...gY],cxe=[{provide:Rf,useClass:DL},{provide:A2,useValue:"NoopAnimations"},...gY],_Y=(()=>{let t=class t{static withConfig(i){return{ngModule:t,providers:i.disableAnimations?cxe:mY}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=he({type:t}),t.\u0275inj=pe({providers:mY,imports:[oZ]});let n=t;return n})();var vY=[];var CY={providers:[VZ(vY),a8([_Y])]};var bY=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=P({type:t,selectors:[["app-header"]],standalone:!0,features:[vn],decls:9,vars:0,consts:[[1,"navbar","d-flex","align-items-center","navbar-expand-lg","py-3","header"],[1,"container","d-flex","justify-content-between"],[1,"align-self-center"],[1,"mb-0","header-title"],[1,"profile-wrapper","d-flex","flex-column","align-self-center"],[1,"profile-image"],[1,"text-white-50"]],template:function(o,s){o&1&&(C(0,"nav",0)(1,"div",1)(2,"div",2)(3,"h1",3),se(4,"Grid/Charts Integration"),S()(),C(5,"div",4),A(6,"div",5),C(7,"div",6),se(8,"Collin Johnson"),S()()()())},styles:['.header[_ngcontent-%COMP%]{height:140px;background:url("./media/header-bg-RTKCRCAM.svg");background-position:bottom;background-repeat:no-repeat}.header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:200;color:#fff}.header[_ngcontent-%COMP%] .profile-wrapper[_ngcontent-%COMP%]{outline:none}.header[_ngcontent-%COMP%] .profile-image[_ngcontent-%COMP%]{align-self:center;width:58px;height:58px;border-radius:50%;background-image:url("./media/user-VKW2M6T3.jpg");background-size:cover;background-position:center}']});let n=t;return n})();var SY=(()=>{let t=class t{constructor(){this.currentYear=new Date().getFullYear()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=P({type:t,selectors:[["app-footer"]],standalone:!0,features:[vn],decls:5,vars:1,consts:[[1,"container-fluid","footer","text-center","d-flex","align-items-center"],[1,"w-100"],[1,"footer-copyright","text-center"],[1,"progress-logo","d-inline-flex"]],template:function(o,s){o&1&&(C(0,"footer",0)(1,"div",1)(2,"span",2),se(3),S(),A(4,"span",3),S()()),o&2&&(g(3),$t("Copyright \xA9 ",s.currentYear," Progress Software Corporation and/or its subsidiaries or affiliates."))},styles:['.footer[_ngcontent-%COMP%]{position:fixed;bottom:0;padding:10px;background:url("./media/footer-bg-TKB66MLG.svg");background-repeat:no-repeat;background-size:cover;background-color:#00f;z-index:999;font-size:16px;color:#fff}.footer[_ngcontent-%COMP%] .progress-logo[_ngcontent-%COMP%]{width:100px;height:20px;vertical-align:middle;background-image:url("./media/progress-logo-OVRR5QZY.svg");background-position:center;background-repeat:no-repeat}']});let n=t;return n})();var $w=(()=>{class n{constructor(){this.changes=new Ii({rtl:void 0})}notify(e){this.changes.next({rtl:e})}get(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Q({token:n,factory:n.\u0275fac}),n})(),on=(()=>{class n{get override(){return!1}ngOnChanges(e){this.register(e),Object.keys(e).some(i=>!e[i].isFirstChange())&&this.service.notifyChanges()}ngOnInit(){this.subscription=this.service.changes.pipe(DN(1)).subscribe(()=>this.register(this))}register(e){Object.keys(e).forEach(o=>this.service.register(o,this[o],this.override))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=z({type:n,features:[Le]}),n})(),_C=new ot("Kendo UI Right-to-Left token"),Ct=new ot("Localization key prefix"),te=(()=>{class n{constructor(e,i,o){this.prefix=e,this.messageService=i,this._rtl=o,this.changes=new Ii({rtl:this._rtl}),this.dictionary={},i&&(this.subscription=i.changes.pipe(Me(({rtl:s})=>s!==void 0?s:this._rtl),at(s=>this._rtl=s)).subscribe(s=>{this.dictionary={},this.changes.next({rtl:s})}))}get rtl(){return this._rtl}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}get(e){let i=this.key(e);return this.dictionary[i]}register(e,i,o=!1){let s=this.key(e),r=i;if(!o){if(Object.hasOwnProperty.call(this.dictionary,s))return;r=this.defaultValue(s,i)}this.dictionary[s]=r}notifyChanges(){this.changes.next({rtl:this.rtl})}key(e){return this.prefix+"."+e}defaultValue(e,i){if(!this.messageService)return i;let o=this.messageService.get(e);return o===void 0?i:o}}return n.\u0275fac=function(e){return new(e||n)(q(Ct),q($w,8),q(_C,8))},n.\u0275prov=Q({token:n,factory:n.\u0275fac}),n})();var xY=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];(function(n,t){var e=function(i){for(;--i;)n.push(n.shift())};e(++t)})(xY,439);var ee=function(n,t){n=n-0;var e=xY[n];if(ee.aWziBr===void 0){var i=function(s){for(var r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",a=String(s).replace(/=+$/,""),l="",c=0,d,u,h=0;u=a.charAt(h++);~u&&(d=c%4?d*64+u:u,c++%4)?l+=String.fromCharCode(255&d>>(-2*c&6)):0)u=r.indexOf(u);return l};ee.XjGMHe=function(s){for(var r=i(s),a=[],l=0,c=r.length;lnull;function s8(n,t,e=!1){return y1e(n,t,e)}var $x="__parameters__";function x1e(n){return function(...e){if(n){let i=n(...e);for(let o in i)this[o]=i[o]}}}function Aq(n,t,e){return E2(()=>{let i=x1e(t);function o(...s){if(this instanceof o)return i.apply(this,s),this;let r=new o(...s);return a.annotation=r,a;function a(l,c,d){let u=l.hasOwnProperty($x)?l[$x]:Object.defineProperty(l,$x,{value:[]})[$x];for(;u.length<=d;)u.push(null);return(u[d]=u[d]||[]).push(r),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=n,o.annotationCls=o,o})}var OE=Tq(Aq("Optional"),8);var r8=Tq(Aq("SkipSelf"),4);function uf(n,t){let e=n.hasOwnProperty(oE);return e?n[oE]:null}var e0=new ot(""),Rq=new ot("",-1),kq=new ot(""),lE=class{get(t,e=m2){if(e===m2){let i=new Error(`NullInjectorError: No provider for ${tr(t)}!`);throw i.name="NullInjectorError",i}return e}};function LE(n){return{\u0275providers:n}}function a8(...n){return{\u0275providers:Mq(!0,n),\u0275fromNgModule:!0}}function Mq(n,...t){let e=[],i=new Set,o,s=r=>{e.push(r)};return t8(t,r=>{let a=r;eO(a,s,[],i)&&(o||=[],o.push(a))}),o!==void 0&&Nq(o,s),e}function Nq(n,t){for(let e=0;e{t(s,i)})}}function eO(n,t,e,i){if(n=er(n),!n)return!1;let o=null,s=lW(n),r=!s&&rf(n);if(!s&&!r){let l=n.ngModule;if(s=lW(l),s)o=l;else return!1}else{if(r&&!r.standalone)return!1;o=n}let a=i.has(o);if(r){if(a)return!1;if(i.add(o),r.dependencies){let l=typeof r.dependencies=="function"?r.dependencies():r.dependencies;for(let c of l)eO(c,t,e,i)}}else if(s){if(s.imports!=null&&!a){i.add(o);let c;try{t8(s.imports,d=>{eO(d,t,e,i)&&(c||=[],c.push(d))})}finally{}c!==void 0&&Nq(c,t)}if(!a){let c=uf(o)||(()=>new o);t({provide:o,useFactory:c,deps:vr},o),t({provide:kq,useValue:o,multi:!0},o),t({provide:e0,useValue:()=>q(o),multi:!0},o)}let l=s.providers;if(l!=null&&!a){let c=n;l8(l,d=>{t(d,c)})}}else return!1;return o!==n&&n.providers!==void 0}function l8(n,t){for(let e of n)Dq(e)&&(e=e.\u0275providers),Array.isArray(e)?l8(e,t):t(e)}var E1e=un({provide:String,useValue:un});function Oq(n){return n!==null&&typeof n=="object"&&E1e in n}function w1e(n){return!!(n&&n.useExisting)}function D1e(n){return!!(n&&n.useFactory)}function t0(n){return typeof n=="function"}function I1e(n){return!!n.useClass}var PE=new ot(""),Yx={},T1e={},MN;function c8(){return MN===void 0&&(MN=new lE),MN}var Da=class{},g2=class extends Da{get destroyed(){return this._destroyed}constructor(t,e,i,o){super(),this.parent=e,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,iO(t,r=>this.processProvider(r)),this.records.set(Rq,qg(void 0,this)),o.has("environment")&&this.records.set(Da,qg(void 0,this));let s=this.records.get(PE);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(kq,vr,mi.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let e of this._ngOnDestroyHooks)e.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let e of t)e()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let e=Wu(this),i=_r(void 0),o;try{return t()}finally{Wu(e),_r(i)}}get(t,e=m2,i=mi.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(tW))return t[tW](this);i=NE(i);let o,s=Wu(this),r=_r(void 0);try{if(!(i&mi.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=N1e(t)&&kE(t);c&&this.injectableDefInScope(c)?l=qg(tO(t),Yx):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=i&mi.Self?c8():this.parent;return e=i&mi.Optional&&e===m2?null:e,a.get(t,e)}catch(a){if(a.name==="NullInjectorError"){if((a[aE]=a[aE]||[]).unshift(tr(t)),s)throw a;return v1e(a,t,"R3InjectorError",this.source)}else throw a}finally{_r(r),Wu(s)}}resolveInjectorInitializers(){let t=Wu(this),e=_r(void 0),i;try{let o=this.get(e0,vr,mi.Self);for(let s of o)s()}finally{Wu(t),_r(e)}}toString(){let t=[],e=this.records;for(let i of e.keys())t.push(tr(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Oe(205,!1)}processProvider(t){t=er(t);let e=t0(t)?t:er(t&&t.provide),i=R1e(t);if(!t0(t)&&t.multi===!0){let o=this.records.get(e);o||(o=qg(void 0,Yx,!0),o.factory=()=>JN(o.multi),this.records.set(e,o)),e=t,o.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Yx&&(e.value=T1e,e.value=e.factory()),typeof e.value=="object"&&e.value&&M1e(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;let e=er(t.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){let e=this._onDestroyHooks.indexOf(t);e!==-1&&this._onDestroyHooks.splice(e,1)}};function tO(n){let t=kE(n),e=t!==null?t.factory:uf(n);if(e!==null)return e;if(n instanceof ot)throw new Oe(204,!1);if(n instanceof Function)return A1e(n);throw new Oe(204,!1)}function A1e(n){if(n.length>0)throw new Oe(204,!1);let e=s1e(n);return e!==null?()=>e.factory(n):()=>new n}function R1e(n){if(Oq(n))return qg(void 0,n.useValue);{let t=Lq(n);return qg(t,Yx)}}function Lq(n,t,e){let i;if(t0(n)){let o=er(n);return uf(o)||tO(o)}else if(Oq(n))i=()=>er(n.useValue);else if(D1e(n))i=()=>n.useFactory(...JN(n.deps||[]));else if(w1e(n))i=()=>q(er(n.useExisting));else{let o=er(n&&(n.useClass||n.provide));if(k1e(n))i=()=>new o(...JN(n.deps));else return uf(o)||tO(o)}return i}function qg(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function k1e(n){return!!n.deps}function M1e(n){return n!==null&&typeof n=="object"&&typeof n.ngOnDestroy=="function"}function N1e(n){return typeof n=="function"||typeof n=="object"&&n instanceof ot}function iO(n,t){for(let e of n)Array.isArray(e)?iO(e,t):e&&Dq(e)?iO(e.\u0275providers,t):t(e)}function Cf(n,t){n instanceof g2&&n.assertNotDestroyed();let e,i=Wu(n),o=_r(void 0);try{return t()}finally{Wu(i),_r(o)}}function O1e(n){return typeof n=="function"}var _2=class{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function Pq(n,t,e,i){t!==null?t.applyValueToInputSignal(t,i):n[e]=i}function Le(){return Fq}function Fq(n){return n.type.prototype.ngOnChanges&&(n.setInput=P1e),L1e}Le.ngInherit=!0;function L1e(){let n=Gq(this),t=n?.current;if(t){let e=n.previous;if(e===Zg)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function P1e(n,t,e,i,o){let s=this.declaredInputs[i],r=Gq(n)||F1e(n,{previous:Zg,current:null}),a=r.current||(r.current={}),l=r.previous,c=l[s];a[s]=new _2(c&&c.currentValue,e,l===Zg),Pq(n,t,o,e)}var zq="__ngSimpleChanges__";function Gq(n){return n[zq]||null}function F1e(n,t){return n[zq]=t}var uW=null;var cc=function(n,t,e){uW?.(n,t,e)};function z1e(n,t,e){let{ngOnChanges:i,ngOnInit:o,ngDoCheck:s}=t.type.prototype;if(i){let r=Fq(t);(e.preOrderHooks??=[]).push(n,r),(e.preOrderCheckHooks??=[]).push(n,r)}o&&(e.preOrderHooks??=[]).push(0-n,o),s&&((e.preOrderHooks??=[]).push(n,s),(e.preOrderCheckHooks??=[]).push(n,s))}function FE(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[Wg]+=65536),(a>14>16&&(n[Wt]&3)===t&&(n[Wt]+=16384,hW(a,s)):hW(a,s)}var Xg=-1,hf=class{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}};function V1e(n){return n instanceof hf}function B1e(n){return(n.flags&8)!==0}function H1e(n){return(n.flags&16)!==0}function Bq(n){return n!==Xg}function cE(n){return n&32767}function U1e(n){return n>>16}function dE(n,t){let e=U1e(n),i=t;for(;e>0;)i=i[s0],e--;return i}var nO=!0;function uE(n){let t=nO;return nO=n,t}var j1e=256,Hq=j1e-1,Uq=5,K1e=0,dc={};function $1e(n,t,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(o2)&&(i=e[o2]),i==null&&(i=e[o2]=K1e++);let o=i&Hq,s=1<>Uq)]|=s}function hE(n,t){let e=jq(n,t);if(e!==-1)return e;let i=t[li];i.firstCreatePass&&(n.injectorIndex=t.length,ON(i.data,n),ON(t,null),ON(i.blueprint,null));let o=d8(n,t),s=n.injectorIndex;if(Bq(o)){let r=cE(o),a=dE(o,t),l=a[li].data;for(let c=0;c<8;c++)t[s+c]=a[r+c]|l[r+c]}return t[s+8]=o,s}function ON(n,t){n.push(0,0,0,0,0,0,0,0,t)}function jq(n,t){return n.injectorIndex===-1||n.parent&&n.parent.injectorIndex===n.injectorIndex||t[n.injectorIndex+8]===null?-1:n.injectorIndex}function d8(n,t){if(n.parent&&n.parent.injectorIndex!==-1)return n.parent.injectorIndex;let e=0,i=null,o=t;for(;o!==null;){if(i=Qq(o),i===null)return Xg;if(e++,o=o[s0],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return Xg}function oO(n,t,e){$1e(n,t,e)}function Kq(n,t,e){if(e&mi.Optional||n!==void 0)return n;o8(t,"NodeInjector")}function $q(n,t,e,i){if(e&mi.Optional&&i===void 0&&(i=null),!(e&(mi.Self|mi.Host))){let o=n[Yg],s=_r(void 0);try{return o?o.get(t,i,e&mi.Optional):Iq(t,i,e&mi.Optional)}finally{_r(s)}}return Kq(i,t,e)}function Wq(n,t,e,i=mi.Default,o){if(n!==null){if(t[Wt]&2048&&!(i&mi.Self)){let r=X1e(n,t,e,i,dc);if(r!==dc)return r}let s=qq(n,t,e,i,dc);if(s!==dc)return s}return $q(t,e,i,o)}function qq(n,t,e,i,o){let s=q1e(e);if(typeof s=="function"){if(!hq(t,n,i))return i&mi.Host?Kq(o,e,i):$q(t,e,i,o);try{let r;if(r=s(i),r==null&&!(i&mi.Optional))o8(e);else return r}finally{gq()}}else if(typeof s=="number"){let r=null,a=jq(n,t),l=Xg,c=i&mi.Host?t[Il][Br]:null;for((a===-1||i&mi.SkipSelf)&&(l=a===-1?d8(n,t):t[a+8],l===Xg||!fW(i,!1)?a=-1:(r=t[li],a=cE(l),t=dE(l,t)));a!==-1;){let d=t[li];if(pW(s,a,d.data)){let u=W1e(a,t,e,r,i,c);if(u!==dc)return u}l=t[a+8],l!==Xg&&fW(i,t[li].data[a+8]===c)&&pW(s,a,t)?(r=d,a=cE(l),t=dE(l,t)):a=-1}}return o}function W1e(n,t,e,i,o,s){let r=t[li],a=r.data[n+8],l=i==null?xE(a)&&nO:i!=r&&(a.type&3)!==0,c=o&mi.Host&&s===a,d=tE(a,r,e,l,c);return d!==null?pf(t,r,d,a):dc}function tE(n,t,e,i,o){let s=n.providerIndexes,r=t.data,a=s&1048575,l=n.directiveStart,c=n.directiveEnd,d=s>>20,u=i?a:a+d,h=o?a+d:c;for(let m=u;m=l&&_.type===e)return m}if(o){let m=r[l];if(m&&Td(m)&&m.type===e)return l}return null}function pf(n,t,e,i){let o=n[e],s=t.data;if(V1e(o)){let r=o;r.resolving&&d1e(c1e(s[e]));let a=uE(r.canSeeViewProviders);r.resolving=!0;let l,c=r.injectImpl?_r(r.injectImpl):null,d=hq(n,i,mi.Default);try{o=n[e]=r.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&z1e(e,s[e],t)}finally{c!==null&&_r(c),uE(a),r.resolving=!1,gq()}}return o}function q1e(n){if(typeof n=="string")return n.charCodeAt(0)||0;let t=n.hasOwnProperty(o2)?n[o2]:void 0;return typeof t=="number"?t>=0?t&Hq:Q1e:t}function pW(n,t,e){let i=1<>Uq)]&i)}function fW(n,t){return!(n&mi.Self)&&!(n&mi.Host&&t)}var sf=class{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return Wq(this._tNode,this._lView,t,NE(i),e)}};function Q1e(){return new sf(Es(),Mt())}function zi(n){return E2(()=>{let t=n.prototype.constructor,e=t[oE]||sO(t),i=Object.prototype,o=Object.getPrototypeOf(n.prototype).constructor;for(;o&&o!==i;){let s=o[oE]||sO(o);if(s&&s!==e)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function sO(n){return wq(n)?()=>{let t=sO(er(n));return t&&t()}:uf(n)}function X1e(n,t,e,i,o){let s=n,r=t;for(;s!==null&&r!==null&&r[Wt]&2048&&!(r[Wt]&512);){let a=qq(s,r,e,i|mi.Self,dc);if(a!==dc)return a;let l=s.parent;if(!l){let c=r[nq];if(c){let d=c.get(e,dc,i);if(d!==dc)return d}l=Qq(r),r=r[s0]}s=l}return o}function Qq(n){let t=n[li],e=t.type;return e===2?t.declTNode:e===1?n[Br]:null}function mW(n,t=null,e=null,i){let o=Xq(n,t,e,i);return o.resolveInjectorInitializers(),o}function Xq(n,t=null,e=null,i,o=new Set){let s=[e||vr,a8(n)];return i=i||(typeof n=="object"?void 0:tr(n)),new g2(s,t||c8(),i||null,o)}var to=(()=>{let t=class t{static create(i,o){if(Array.isArray(i))return mW({name:""},o,i,"");{let s=i.name??"";return mW({name:s},i.parent,i.providers,s)}}};t.THROW_IF_NOT_FOUND=m2,t.NULL=new lE,t.\u0275prov=Q({token:t,providedIn:"any",factory:()=>q(Rq)}),t.__NG_ELEMENT_ID__=-1;let n=t;return n})(),Z1e="ngOriginalError";function LN(n){return n[Z1e]}var Ad=class{constructor(){this._console=console}handleError(t){let e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&LN(t);for(;e&&LN(e);)e=LN(e);return e||null}},Zq=new ot("",{providedIn:"root",factory:()=>mt(Ad).handleError.bind(void 0)});var Yq=!1,Y1e=new ot("",{providedIn:"root",factory:()=>Yq}),Wx;function J1e(){if(Wx===void 0&&(Wx=null,bo.trustedTypes))try{Wx=bo.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Wx}function zE(n){return J1e()?.createHTML(n)||n}var qx;function e_e(){if(qx===void 0&&(qx=null,bo.trustedTypes))try{qx=bo.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return qx}function gW(n){return e_e()?.createHTML(n)||n}var Rd=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${KW})`}},rO=class extends Rd{getTypeName(){return"HTML"}},aO=class extends Rd{getTypeName(){return"Style"}},lO=class extends Rd{getTypeName(){return"Script"}},cO=class extends Rd{getTypeName(){return"URL"}},dO=class extends Rd{getTypeName(){return"ResourceURL"}};function Ta(n){return n instanceof Rd?n.changingThisBreaksApplicationSecurity:n}function Yu(n,t){let e=t_e(n);if(e!=null&&e!==t){if(e==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${KW})`)}return e===t}function t_e(n){return n instanceof Rd&&n.getTypeName()||null}function Jq(n){return new rO(n)}function eQ(n){return new aO(n)}function tQ(n){return new lO(n)}function iQ(n){return new cO(n)}function nQ(n){return new dO(n)}function i_e(n){let t=new hO(n);return n_e()?new uO(t):t}var uO=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let e=new window.DOMParser().parseFromString(zE(t),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}},hO=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let e=this.inertDocument.createElement("template");return e.innerHTML=zE(t),e}};function n_e(){try{return!!new window.DOMParser().parseFromString(zE(""),"text/html")}catch{return!1}}var o_e=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function GE(n){return n=String(n),n.match(o_e)?n:"unsafe:"+n}function Nd(n){let t={};for(let e of n.split(","))t[e]=!0;return t}function R2(...n){let t={};for(let e of n)for(let i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}var oQ=Nd("area,br,col,hr,img,wbr"),sQ=Nd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rQ=Nd("rp,rt"),s_e=R2(rQ,sQ),r_e=R2(sQ,Nd("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),a_e=R2(rQ,Nd("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),_W=R2(oQ,r_e,a_e,s_e),aQ=Nd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),l_e=Nd("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),c_e=Nd("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),d_e=R2(aQ,l_e,c_e),u_e=Nd("script,style,template"),pO=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){e=e.firstChild;continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}}return this.buf.join("")}startElement(t){let e=t.nodeName.toLowerCase();if(!_W.hasOwnProperty(e))return this.sanitizedSomething=!0,!u_e.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=t.attributes;for(let o=0;o"),!0}endElement(t){let e=t.nodeName.toLowerCase();_W.hasOwnProperty(e)&&!oQ.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(vW(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}},h_e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p_e=/([^\#-~ |!])/g;function vW(n){return n.replace(/&/g,"&").replace(h_e,function(t){let e=t.charCodeAt(0),i=t.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(p_e,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Qx;function u8(n,t){let e=null;try{Qx=Qx||i_e(n);let i=t?String(t):"";e=Qx.getInertBodyElement(i);let o=5,s=i;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,i=s,s=e.innerHTML,e=Qx.getInertBodyElement(i)}while(i!==s);let a=new pO().sanitizeChildren(CW(e)||e);return zE(a)}finally{if(e){let i=CW(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function CW(n){return"content"in n&&f_e(n)?n.content:null}function f_e(n){return n.nodeType===Node.ELEMENT_NODE&&n.nodeName==="TEMPLATE"}var Aa=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(Aa||{});function VE(n){let t=lQ();return t?gW(t.sanitize(Aa.HTML,n)||""):Yu(n,"HTML")?gW(Ta(n)):u8(Sq(),ys(n))}function io(n){let t=lQ();return t?t.sanitize(Aa.URL,n)||"":Yu(n,"URL")?Ta(n):GE(ys(n))}function lQ(){let n=Mt();return n&&n[Dd].sanitizer}var m_e=/^>|^->||--!>|)/g,__e="\u200B$1\u200B";function v_e(n){return n.replace(m_e,t=>t.replace(g_e,__e))}var cQ=new Map,C_e=0;function b_e(){return C_e++}function S_e(n){cQ.set(n[yE],n)}function y_e(n){cQ.delete(n[yE])}var bW="__ngContext__";function uc(n,t){of(t)?(n[bW]=t[yE],S_e(t)):n[bW]=t}function dQ(n){return n instanceof Function?n():n}var hc=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(hc||{}),x_e;function h8(n,t){return x_e(n,t)}function Qg(n,t,e,i,o){if(i!=null){let s,r=!1;Md(i)?s=i:of(i)&&(r=!0,i=i[pc]);let a=Tl(i);n===0&&e!==null?o==null?vQ(t,e,a):v2(t,e,a,o||null,!0):n===1&&e!==null?v2(t,e,a,o||null,!0):n===2?SQ(t,a,r):n===3&&t.destroyNode(a),s!=null&&F_e(t,n,s,e,o)}}function uQ(n,t){return n.createText(t)}function hQ(n,t,e){n.setValue(t,e)}function pQ(n,t){return n.createComment(v_e(t))}function p8(n,t,e){return n.createElement(t,e)}function E_e(n,t){fQ(n,t),t[pc]=null,t[Br]=null}function w_e(n,t,e,i,o,s){i[pc]=o,i[Br]=t,UE(n,i,e,1,o,s)}function fQ(n,t){UE(n,t,t[qi],2,null,null)}function D_e(n){let t=n[h2];if(!t)return PN(n[li],n);for(;t;){let e=null;if(of(t))e=t[h2];else{let i=t[Vr];i&&(e=i)}if(!e){for(;t&&!t[wl]&&t!==n;)of(t)&&PN(t[li],t),t=t[Jo];t===null&&(t=n),of(t)&&PN(t[li],t),e=t&&t[wl]}t=e}}function I_e(n,t,e,i){let o=Vr+i,s=e.length;i>0&&(e[o-1][wl]=t),i0&&(n[e-1][wl]=i[wl]);let s=rE(n,Vr+t);E_e(i[li],i);let r=s[Id];r!==null&&r.detachView(s[li]),i[Jo]=null,i[wl]=null,i[Wt]&=-129}return i}function gQ(n,t){if(!(t[Wt]&256)){let e=t[qi];e.destroyNode&&UE(n,t,e,3,null,null),D_e(t)}}function PN(n,t){if(!(t[Wt]&256)){t[Wt]&=-129,t[Wt]|=256,t[af]&&y$(t[af]),R_e(n,t),A_e(n,t),t[li].type===1&&t[qi].destroy();let e=t[w2];if(e!==null&&Md(t[Jo])){e!==t[Jo]&&mQ(e,t);let i=t[Id];i!==null&&i.detachView(n)}y_e(t)}}function A_e(n,t){let e=n.cleanup,i=t[u2];if(e!==null)for(let s=0;s=0?i[r]():i[-r].unsubscribe(),s+=2}else{let r=i[e[s+1]];e[s].call(r)}i!==null&&(t[u2]=null);let o=t[s2];if(o!==null){t[s2]=null;for(let s=0;s-1){let{encapsulation:s}=n.data[i.directiveStart+o];if(s===wa.None||s===wa.Emulated)return null}return Ia(i,e)}}function v2(n,t,e,i,o){n.insertBefore(t,e,i,o)}function vQ(n,t,e){n.appendChild(t,e)}function SW(n,t,e,i,o){i!==null?v2(n,t,e,i,o):vQ(n,t,e)}function M_e(n,t,e,i){n.removeChild(t,e,i)}function BE(n,t){return n.parentNode(t)}function N_e(n,t){return n.nextSibling(t)}function CQ(n,t,e){return L_e(n,t,e)}function O_e(n,t,e){return n.type&40?Ia(n,e):null}var L_e=O_e,yW;function HE(n,t,e,i){let o=_Q(n,i,t),s=t[qi],r=i.parent||t[Br],a=CQ(r,i,t);if(o!=null)if(Array.isArray(e))for(let l=0;les&&wQ(n,t,es,!1),cc(r?2:0,o),e(i,o)}finally{df(s),cc(r?3:1,o)}}function m8(n,t,e){if(WO(t)){let i=Ys(null);try{let o=t.directiveStart,s=t.directiveEnd;for(let r=o;rnull;function $_e(n,t,e,i){let o=OQ(t);o.push(e),n.firstCreatePass&&LQ(n).push(i,o.length-1)}function W_e(n,t,e,i,o,s){let r=t?t.injectorIndex:-1,a=0;return lq()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:r,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function xW(n,t,e,i,o){for(let s in t){if(!t.hasOwnProperty(s))continue;let r=t[s];if(r===void 0)continue;i??={};let a,l=lt.None;Array.isArray(r)?(a=r[0],l=r[1]):a=r;let c=s;if(o!==null){if(!o.hasOwnProperty(s))continue;c=o[s]}n===0?EW(i,e,c,a,l):EW(i,e,c,a)}return i}function EW(n,t,e,i,o){let s;n.hasOwnProperty(e)?(s=n[e]).push(t,i):s=n[e]=[t,i],o!==void 0&&s.push(o)}function q_e(n,t,e){let i=t.directiveStart,o=t.directiveEnd,s=n.data,r=t.attrs,a=[],l=null,c=null;for(let d=i;d0;){let e=n[--t];if(typeof e=="number"&&e<0)return e}return 0}function J_e(n,t,e,i){let o=e.directiveStart,s=e.directiveEnd;xE(e)&&rve(t,e,n.data[o+e.componentOffset]),n.firstCreatePass||hE(e,t),uc(i,t);let r=e.initialInputs;for(let a=o;a{p2(n.lView)},consumerOnSignalRead(){this.lView[af]=this}});function zQ(n){return VQ(n[h2])}function GQ(n){return VQ(n[wl])}function VQ(n){for(;n!==null&&!Md(n);)n=n[wl];return n}var BQ=100;function HQ(n,t=!0,e=0){let i=n[Dd],o=i.rendererFactory,s=!1;s||o.begin?.();try{Sve(n,e)}catch(r){throw t&&PQ(n,r),r}finally{s||(o.end?.(),i.inlineEffectRunner?.flush())}}function Sve(n,t){vO(n,t);let e=0;for(;QO(n);){if(e===BQ)throw new Oe(103,!1);e++,vO(n,1)}}function yve(n,t,e,i){let o=t[Wt];if((o&256)===256)return;let s=!1;!s&&t[Dd].inlineEffectRunner?.flush(),JO(t);let r=null,a=null;!s&&xve(n)&&(a=_ve(t),r=b$(a));try{rq(t),U0e(n.bindingStartIndex),e!==null&&TQ(n,t,e,2,i);let l=(o&3)===3;if(!s)if(l){let u=n.preOrderCheckHooks;u!==null&&Jx(t,u,null)}else{let u=n.preOrderHooks;u!==null&&eE(t,u,0,null),NN(t,0)}if(Eve(t),UQ(t,0),n.contentQueries!==null&&NQ(n,t),!s)if(l){let u=n.contentCheckHooks;u!==null&&Jx(t,u)}else{let u=n.contentHooks;u!==null&&eE(t,u,1),NN(t,1)}V_e(n,t);let c=n.components;c!==null&&KQ(t,c,0);let d=n.viewQuery;if(d!==null&&_O(2,d,i),!s)if(l){let u=n.viewCheckHooks;u!==null&&Jx(t,u)}else{let u=n.viewHooks;u!==null&&eE(t,u,2),NN(t,2)}if(n.firstUpdatePass===!0&&(n.firstUpdatePass=!1),t[RN]){for(let u of t[RN])u();t[RN]=null}s||(t[Wt]&=-73)}catch(l){throw p2(t),l}finally{a!==null&&(S$(a,r),Cve(a)),e8()}}function xve(n){return n.type!==2}function UQ(n,t){for(let e=zQ(n);e!==null;e=GQ(e))for(let i=Vr;i-1&&(fO(t,i),rE(e,i))}this._attachedToViewContainer=!1}gQ(this._lView[li],this._lView)}onDestroy(t){L0e(this._lView,t)}markForCheck(){x8(this._cdRefInjectingView||this._lView)}detach(){this._lView[Wt]&=-129}reattach(){qN(this._lView),this._lView[Wt]|=128}detectChanges(){this._lView[Wt]|=1024,HQ(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Oe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,fQ(this._lView[li],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Oe(902,!1);this._appRef=t,qN(this._lView)}},me=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Tve;let n=t;return n})(),Dve=me,Ive=class extends Dve{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,e){return this.createEmbeddedViewImpl(t,e)}createEmbeddedViewImpl(t,e,i){let o=fve(this._declarationLView,this._declarationTContainer,t,{injector:e,dehydratedView:i});return new ff(o)}};function Tve(){return WE(Es(),Mt())}function WE(n,t){return n.type&4?new Ive(t,n,a0(n,t)):null}var s0t=new RegExp(`^(\\d+)*(${S1e}|${b1e})*(.*)`);var Ave=()=>null;function DW(n,t){return Ave(n,t)}var C2=class{},CO=class{},fE=class{};function Rve(n){let t=Error(`No component factory found for ${tr(n)}.`);return t[kve]=n,t}var kve="ngComponent";var bO=class{resolveComponentFactory(t){throw Rve(t)}},Cr=(()=>{let t=class t{};t.NULL=new bO;let n=t;return n})(),kd=class{},ce=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>Mve();let n=t;return n})();function Mve(){let n=Mt(),t=Es(),e=Xu(t.index,n);return(of(e)?e:n)[qi]}var Nve=(()=>{let t=class t{};t.\u0275prov=Q({token:t,providedIn:"root",factory:()=>null});let n=t;return n})(),FN={};function Ove(n){return typeof n=="function"&&n[nN]!==void 0}function $Q(n){return Ove(n)&&typeof n.set=="function"}function E8(n){let t=Ys(null);try{return n()}finally{Ys(t)}}function WQ(n){return w8(n)?Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n:!1}function Lve(n,t){if(Array.isArray(n))for(let e=0;et,yO=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Pve}forEachItem(t){let e;for(e=this._itHead;e!==null;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,o=0,s=null;for(;e||i;){let r=!i||e&&e.currentIndex{r=this._trackByFn(o,a),e===null||!Object.is(e.trackById,r)?(e=this._mismatch(e,a,r,o),i=!0):(i&&(e=this._verifyReinsertion(e,a,r,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,o){let s;return t===null?s=this._itTail:(s=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),t!==null?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(i,o),t!==null?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,o)):t=this._addAfter(new xO(e,i),s,o)),t}_verifyReinsertion(t,e,i,o){let s=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return s!==null?t=this._reinsertAfter(s,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let e=t._next;this._addToRemovals(this._unlink(t)),t=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,s=t._nextRemoved;return o===null?this._removalsHead=s:o._nextRemoved=s,s===null?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){let o=e===null?this._itHead:e._next;return t._next=o,t._prev=e,o===null?this._itTail=t:o._prev=t,e===null?this._itHead=t:e._next=t,this._linkedRecords===null&&(this._linkedRecords=new mE),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let e=t._prev,i=t._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new mE),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},xO=class{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},EO=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){let e=t._prevDup,i=t._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},mE=class{constructor(){this.map=new Map}put(t){let e=t.trackById,i=this.map.get(e);i||(i=new EO,this.map.set(e,i)),i.add(t)}get(t,e){let i=t,o=this.map.get(i);return o?o.get(t,e):null}remove(t){let e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function IW(n,t,e){let i=n.previousIndex;if(i===null)return i;let o=0;return e&&i{if(e&&e.key===o)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{let s=this._getOrCreateRecordForKey(o,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){let i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,e);let s=o._prev,r=o._next;return s&&(s._next=r),r&&(r._prev=s),o._next=null,o._prev=null,o}let i=new IO(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}},IO=class{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function TW(){return new k2([new SO])}var k2=(()=>{let t=class t{constructor(i){this.factories=i}static create(i,o){if(o!=null){let s=o.factories.slice();i=i.concat(s)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||TW()),deps:[[t,new r8,new OE]]}}find(i){let o=this.factories.find(s=>s.supports(i));if(o!=null)return o;throw new Oe(901,!1)}};t.\u0275prov=Q({token:t,providedIn:"root",factory:TW});let n=t;return n})();function AW(){return new M2([new wO])}var M2=(()=>{let t=class t{constructor(i){this.factories=i}static create(i,o){if(o){let s=o.factories.slice();i=i.concat(s)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||AW()),deps:[[t,new r8,new OE]]}}find(i){let o=this.factories.find(s=>s.supports(i));if(o)return o;throw new Oe(901,!1)}};t.\u0275prov=Q({token:t,providedIn:"root",factory:AW});let n=t;return n})();var je=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Fve;let n=t;return n})();function Fve(n){return zve(Es(),Mt(),(n&16)===16)}function zve(n,t,e){if(xE(n)&&!e){let i=Xu(n.index,t);return new ff(i,i)}else if(n.type&47){let i=t[Il];return new ff(i,t)}return null}var RW=new Set;function qQ(n){RW.has(n)||(RW.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}function kW(...n){}function Gve(){let n=typeof bo.requestAnimationFrame=="function",t=bo[n?"requestAnimationFrame":"setTimeout"],e=bo[n?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&e){let i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);let o=e[Zone.__symbol__("OriginalDelegate")];o&&(e=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}var oe=class n{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new y(!1),this.onMicrotaskEmpty=new y(!1),this.onStable=new y(!1),this.onError=new y(!1),typeof Zone>"u")throw new Oe(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&e,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=Gve().nativeRequestAnimationFrame,Hve(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!n.isInAngularZone())throw new Oe(909,!1)}static assertNotInAngularZone(){if(n.isInAngularZone())throw new Oe(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,o){let s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+o,t,Vve,kW,kW);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}},Vve={};function D8(n){if(n._nesting==0&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Bve(n){n.isCheckStableRunning||n.lastRequestAnimationFrameId!==-1||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(bo,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,TO(n),n.isCheckStableRunning=!0,D8(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),TO(n))}function Hve(n){let t=()=>{Bve(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,o,s,r,a)=>{if(Uve(a))return e.invokeTask(o,s,r,a);try{return MW(n),e.invokeTask(o,s,r,a)}finally{(n.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||n.shouldCoalesceRunChangeDetection)&&t(),NW(n)}},onInvoke:(e,i,o,s,r,a,l)=>{try{return MW(n),e.invoke(o,s,r,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),NW(n)}},onHasTask:(e,i,o,s)=>{e.hasTask(o,s),i===o&&(s.change=="microTask"?(n._hasPendingMicrotasks=s.microTask,TO(n),D8(n)):s.change=="macroTask"&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,o,s)=>(e.handleError(o,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}function TO(n){n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&n.lastRequestAnimationFrameId!==-1?n.hasPendingMicrotasks=!0:n.hasPendingMicrotasks=!1}function MW(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function NW(n){n._nesting--,D8(n)}function Uve(n){return!Array.isArray(n)||n.length!==1?!1:n[0].data?.__ignore_ng_zone__===!0}var QQ=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){let i=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of i)o();this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=Q({token:t,providedIn:"root",factory:()=>new t});let n=t;return n})();function gE(n,t,e){let i=e?n.styles:null,o=e?n.classes:null,s=0;if(t!==null)for(let r=0;r0&&xQ(n,e,s.join(" "))}}function Xve(n,t,e){let i=n.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=Yve;let n=t;return n})();function Yve(){let n=Es();return ZQ(n,Mt())}var Jve=Si,XQ=class extends Jve{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return a0(this._hostTNode,this._hostLView)}get injector(){return new sf(this._hostTNode,this._hostLView)}get parentInjector(){let t=d8(this._hostTNode,this._hostLView);if(Bq(t)){let e=dE(t,this._hostLView),i=cE(t),o=e[li].data[i+8];return new sf(o,e)}else return new sf(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let e=LW(this._lContainer);return e!==null&&e[t]||null}get length(){return this._lContainer.length-Vr}createEmbeddedView(t,e,i){let o,s;typeof i=="number"?o=i:i!=null&&(o=i.index,s=i.injector);let r=DW(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(e||{},s,r);return this.insertImpl(a,o,wW(this._hostTNode,r)),a}createComponent(t,e,i,o,s){let r=t&&!O1e(t),a;if(r)a=e;else{let _=e||{};a=_.index,i=_.injector,o=_.projectableNodes,s=_.environmentInjector||_.ngModuleRef}let l=r?t:new b2(rf(t)),c=i||this.parentInjector;if(!s&&l.ngModule==null){let b=(r?c:this.parentInjector).get(Da,null);b&&(s=b)}let d=rf(l.componentType??{}),u=DW(this._lContainer,d?.id??null),h=u?.firstChild??null,m=l.create(c,o,h,s);return this.insertImpl(m.hostView,a,wW(this._hostTNode,u)),m}insert(t,e){return this.insertImpl(t,e,!0)}insertImpl(t,e,i){let o=t._lView;if(M0e(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[Jo],c=new XQ(l,l[Br],l[Jo]);c.detach(c.indexOf(t))}}let s=this._adjustIndex(e),r=this._lContainer;return mve(r,o,s,i),t.attachToViewContainerRef(),vq(zN(r),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){let e=LW(this._lContainer);return e!==null?e.indexOf(t):-1}remove(t){let e=this._adjustIndex(t,-1),i=fO(this._lContainer,e);i&&(rE(zN(this._lContainer),e),gQ(i[li],i))}detach(t){let e=this._adjustIndex(t,-1),i=fO(this._lContainer,e);return i&&rE(zN(this._lContainer),e)!=null?new ff(i):null}_adjustIndex(t,e=0){return t??this.length+e}};function LW(n){return n[sE]}function zN(n){return n[sE]||(n[sE]=[])}function ZQ(n,t){let e,i=t[n.index];return Md(i)?e=i:(e=MQ(i,t,null,n),t[n.index]=e,KE(t,e)),t2e(e,t,n,i),new XQ(e,n,t)}function e2e(n,t){let e=n[qi],i=e.createComment(""),o=Ia(t,n),s=BE(e,o);return v2(e,s,i,N_e(e,o),!1),i}var t2e=o2e,i2e=()=>!1;function n2e(n,t,e){return i2e(n,t,e)}function o2e(n,t,e,i){if(n[lf])return;let o;e.type&8?o=Tl(i):o=e2e(t,e),n[lf]=o}var kO=class n{constructor(t){this.queryList=t,this.matches=null}clone(){return new n(this.queryList)}setDirty(){this.queryList.setDirty()}},MO=class n{constructor(t=[]){this.queries=t}createEmbeddedView(t){let e=t.queries;if(e!==null){let i=t.contentQueries!==null?t.contentQueries[0]:e.length,o=[];for(let s=0;s0)i.push(r[a/2]);else{let c=s[a+1],d=t[-l];for(let u=Vr;ut.trim())}function eX(n,t,e){n.queries===null&&(n.queries=new NO),n.queries.track(new OO(t,e))}function p2e(n,t){let e=n.contentQueries||(n.contentQueries=[]),i=e.length?e[e.length-1]:-1;t!==i&&e.push(n.queries.length-1,t)}function I8(n,t){return n.queries.getByIndex(t)}function f2e(n,t){let e=n[li],i=I8(e,t);return i.crossesNgTemplate?LO(e,n,t,[]):YQ(e,n,i,t)}function m2e(n){return Object.getPrototypeOf(n.prototype).constructor}function ie(n){let t=m2e(n.type),e=!0,i=[n];for(;t;){let o;if(Td(n))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Oe(903,!1);o=t.\u0275dir}if(o){if(e){i.push(o);let r=n;r.inputs=Xx(n.inputs),r.inputTransforms=Xx(n.inputTransforms),r.declaredInputs=Xx(n.declaredInputs),r.outputs=Xx(n.outputs);let a=o.hostBindings;a&&b2e(n,a);let l=o.viewQuery,c=o.contentQueries;if(l&&v2e(n,l),c&&C2e(n,c),g2e(n,o),s0e(n.outputs,o.outputs),Td(o)&&o.data.animation){let d=n.data;d.animation=(d.animation||[]).concat(o.data.animation)}}let s=o.features;if(s)for(let r=0;r=0;i--){let o=n[i];o.hostVars=t+=o.hostVars,o.hostAttrs=c2(o.hostAttrs,e=c2(e,o.hostAttrs))}}function Xx(n){return n===Zg?{}:n===vr?[]:n}function v2e(n,t){let e=n.viewQuery;e?n.viewQuery=(i,o)=>{t(i,o),e(i,o)}:n.viewQuery=t}function C2e(n,t){let e=n.contentQueries;e?n.contentQueries=(i,o,s)=>{t(i,o,s),e(i,o,s)}:n.contentQueries=t}function b2e(n,t){let e=n.hostBindings;e?n.hostBindings=(i,o)=>{t(i,o),e(i,o)}:n.hostBindings=t}var qu=class{},S2=class{};var PO=class extends qu{constructor(t,e,i){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new _E(this);let o=eq(t);this._bootstrapComponents=dQ(o.bootstrap),this._r3Injector=Xq(t,e,[{provide:qu,useValue:this},{provide:Cr,useValue:this.componentFactoryResolver},...i],tr(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},FO=class extends S2{constructor(t){super(),this.moduleType=t}create(t){return new PO(this.moduleType,t,[])}};var CE=class extends qu{constructor(t){super(),this.componentFactoryResolver=new _E(this),this.instance=null;let e=new g2([...t.providers,{provide:qu,useValue:this},{provide:Cr,useValue:this.componentFactoryResolver}],t.parent||c8(),t.debugName,new Set(["environment"]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function T8(n,t,e=null){return new CE({providers:n,parent:t,debugName:e,runEnvironmentInitializers:!0}).injector}var qE=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ii(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function mc(n,t,e){return n[t]=e}function N2(n,t){return n[t]}function xs(n,t,e){let i=n[t];return Object.is(i,e)?!1:(n[t]=e,!0)}function i0(n,t,e,i){let o=xs(n,t,e);return xs(n,t+1,i)||o}function A8(n,t,e,i,o){let s=i0(n,t,e,i);return xs(n,t+2,o)||s}function mf(n,t,e,i,o,s){let r=i0(n,t,e,i);return i0(n,t+2,o,s)||r}function S2e(n,t,e,i,o,s,r,a,l){let c=t.consts,d=d0(t,n,4,r||null,cf(c,a));C8(t,e,d,cf(c,l)),FE(t,d);let u=d.tView=v8(2,d,i,o,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,d),u.queries=t.queries.embeddedTView(d)),d}function x(n,t,e,i,o,s,r,a){let l=Mt(),c=_n(),d=n+es,u=c.firstCreatePass?S2e(d,c,l,t,e,i,o,s,r):c.data[d];_f(u,!1);let h=y2e(c,l,u,n);AE()&&HE(c,l,h,u),uc(h,l);let m=MQ(h,l,h,u);return l[d]=m,KE(l,m),n2e(m,u,l),EE(u)&&g8(c,l,u),r!=null&&_8(l,u,a),x}var y2e=x2e;function x2e(n,t,e,i){return RE(!0),t[qi].createComment("")}function U(n,t,e,i){let o=Mt(),s=vf();if(xs(o,s,t)){let r=_n(),a=r0();ave(a,o,n,t,e,i)}return U}function R8(n,t,e,i){return xs(n,vf(),e)?t+ys(e)+i:ts}function E2e(n,t,e,i,o,s){let r=IE(),a=i0(n,r,e,o);return D2(2),a?t+ys(e)+i+ys(o)+s:ts}function w2e(n,t,e,i,o,s,r,a){let l=IE(),c=A8(n,l,e,o,r);return D2(3),c?t+ys(e)+i+ys(o)+s+ys(r)+a:ts}function D2e(n,t,e,i,o,s,r,a,l,c,d,u){let h=IE(),m=mf(n,h,e,o,r,l);return m=xs(n,h+4,d)||m,D2(5),m?t+ys(e)+i+ys(o)+s+ys(r)+a+ys(l)+c+ys(d)+u:ts}function Zx(n,t){return n<<17|t<<2}function gf(n){return n>>17&32767}function I2e(n){return(n&2)==2}function T2e(n,t){return n&131071|t<<17}function zO(n){return n|2}function n0(n){return(n&131068)>>2}function GN(n,t){return n&-131069|t<<2}function A2e(n){return(n&1)===1}function GO(n){return n|1}function R2e(n,t,e,i,o,s){let r=s?t.classBindings:t.styleBindings,a=gf(r),l=n0(r);n[i]=e;let c=!1,d;if(Array.isArray(e)){let u=e;d=u[1],(d===null||T2(u,d)>0)&&(c=!0)}else d=e;if(o)if(l!==0){let h=gf(n[a+1]);n[i+1]=Zx(h,a),h!==0&&(n[h+1]=GN(n[h+1],i)),n[a+1]=T2e(n[a+1],i)}else n[i+1]=Zx(a,0),a!==0&&(n[a+1]=GN(n[a+1],i)),a=i;else n[i+1]=Zx(l,0),a===0?a=i:n[l+1]=GN(n[l+1],i),l=i;c&&(n[i+1]=zO(n[i+1])),PW(n,d,i,!0),PW(n,d,i,!1),k2e(t,d,n,i,s),r=Zx(a,l),s?t.classBindings=r:t.styleBindings=r}function k2e(n,t,e,i,o){let s=o?n.residualClasses:n.residualStyles;s!=null&&typeof t=="string"&&T2(s,t)>=0&&(e[i+1]=GO(e[i+1]))}function PW(n,t,e,i){let o=n[e+1],s=t===null,r=i?gf(o):n0(o),a=!1;for(;r!==0&&(a===!1||s);){let l=n[r],c=n[r+1];M2e(l,t)&&(a=!0,n[r+1]=i?GO(c):zO(c)),r=i?gf(c):n0(c)}a&&(n[e+1]=i?zO(o):GO(o))}function M2e(n,t){return n===null||t==null||(Array.isArray(n)?n[1]:n)===t?!0:Array.isArray(n)&&typeof t=="string"?T2(n,t)>=0:!1}var Ro={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function tX(n){return n.substring(Ro.key,Ro.keyEnd)}function N2e(n){return n.substring(Ro.value,Ro.valueEnd)}function O2e(n){return oX(n),iX(n,o0(n,0,Ro.textEnd))}function iX(n,t){let e=Ro.textEnd;return e===t?-1:(t=Ro.keyEnd=P2e(n,Ro.key=t,e),o0(n,t,e))}function L2e(n){return oX(n),nX(n,o0(n,0,Ro.textEnd))}function nX(n,t){let e=Ro.textEnd,i=Ro.key=o0(n,t,e);return e===i?-1:(i=Ro.keyEnd=F2e(n,i,e),i=FW(n,i,e,58),i=Ro.value=o0(n,i,e),i=Ro.valueEnd=z2e(n,i,e),FW(n,i,e,59))}function oX(n){Ro.key=0,Ro.keyEnd=0,Ro.value=0,Ro.valueEnd=0,Ro.textEnd=n.length}function o0(n,t,e){for(;t32;)t++;return t}function F2e(n,t,e){let i;for(;t=65&&(i&-33)<=90||i>=48&&i<=57);)t++;return t}function FW(n,t,e,i){return t=o0(n,t,e),t32&&(a=r),s=o,o=i,i=l&-33}return a}function zW(n,t,e,i){let o=-1,s=e;for(;s=0;e=nX(t,e))cX(n,tX(t),N2e(t))}function So(n){k8(K2e,sX,n,!0)}function sX(n,t){for(let e=O2e(t);e>=0;e=iX(t,e))I2(n,tX(t),!0)}function rX(n,t,e,i){let o=Mt(),s=_n(),r=D2(2);if(s.firstUpdatePass&&lX(s,n,r,i),t!==ts&&xs(o,r,t)){let a=s.data[fc()];dX(s,a,o,o[qi],n,o[r+1]=W2e(t,e),i,r)}}function k8(n,t,e,i){let o=_n(),s=D2(2);o.firstUpdatePass&&lX(o,null,s,i);let r=Mt();if(e!==ts&&xs(r,s,e)){let a=o.data[fc()];if(uX(a,i)&&!aX(o,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(e=$N(l,e||"")),VO(o,a,r,e,i)}else $2e(o,a,r,r[qi],r[s+1],r[s+1]=j2e(n,t,e),i,s)}}function aX(n,t){return t>=n.expandoStartIndex}function lX(n,t,e,i){let o=n.data;if(o[e+1]===null){let s=o[fc()],r=aX(n,e);uX(s,i)&&t===null&&!r&&(t=!1),t=V2e(o,s,t,i),R2e(o,s,t,e,r,i)}}function V2e(n,t,e,i){let o=dq(n),s=i?t.residualClasses:t.residualStyles;if(o===null)(i?t.classBindings:t.styleBindings)===0&&(e=VN(null,n,t,e,i),e=y2(e,t.attrs,i),s=null);else{let r=t.directiveStylingLast;if(r===-1||n[r]!==o)if(e=VN(o,n,t,e,i),s===null){let l=B2e(n,t,i);l!==void 0&&Array.isArray(l)&&(l=VN(null,n,t,l[1],i),l=y2(l,t.attrs,i),H2e(n,t,i,l))}else s=U2e(n,t,i)}return s!==void 0&&(i?t.residualClasses=s:t.residualStyles=s),e}function B2e(n,t,e){let i=e?t.classBindings:t.styleBindings;if(n0(i)!==0)return n[gf(i)]}function H2e(n,t,e,i){let o=e?t.classBindings:t.styleBindings;n[gf(o)]=i}function U2e(n,t,e){let i,o=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0;){let l=n[o],c=Array.isArray(l),d=c?l[1]:l,u=d===null,h=e[o+1];h===ts&&(h=u?vr:void 0);let m=u?kN(h,i):d===i?h:void 0;if(c&&!bE(m)&&(m=kN(l,i)),bE(m)&&(a=m,r))return a;let _=n[o+1];o=r?gf(_):n0(_)}if(t!==null){let l=s?t.residualClasses:t.residualStyles;l!=null&&(a=kN(l,i))}return a}function bE(n){return n!==void 0}function W2e(n,t){return n==null||n===""||(typeof t=="string"?n=n+t:typeof n=="object"&&(n=tr(Ta(n)))),n}function uX(n,t){return(n.flags&(t?8:16))!==0}function O2(n,t,e){let i=Mt(),o=R8(i,n,t,e);k8(I2,sX,o,!0)}function q2e(n,t,e,i,o,s){let r=t.consts,a=cf(r,o),l=d0(t,n,2,i,a);return C8(t,e,l,cf(r,s)),l.attrs!==null&&gE(l,l.attrs,!1),l.mergedAttrs!==null&&gE(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function C(n,t,e,i){let o=Mt(),s=_n(),r=es+n,a=o[qi],l=s.firstCreatePass?q2e(r,s,o,t,e,i):s.data[r],c=Q2e(s,o,l,a,t,n);o[r]=c;let d=EE(l);return _f(l,!0),EQ(a,c,l),(l.flags&32)!==32&&AE()&&HE(s,o,c,l),P0e()===0&&uc(c,o),F0e(),d&&(g8(s,o,l),m8(s,l,o)),i!==null&&_8(o,l),C}function S(){let n=Es();XO()?ZO():(n=n.parent,_f(n,!1));let t=n;G0e(t)&&V0e(),z0e();let e=_n();return e.firstCreatePass&&(FE(e,n),WO(n)&&e.queries.elementEnd(n)),t.classesWithoutHost!=null&&B1e(t)&&VO(e,t,Mt(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&H1e(t)&&VO(e,t,Mt(),t.stylesWithoutHost,!1),S}function A(n,t,e,i){return C(n,t,e,i),S(),A}var Q2e=(n,t,e,i,o,s)=>(RE(!0),p8(i,o,X0e()));function X2e(n,t,e,i,o){let s=t.consts,r=cf(s,i),a=d0(t,n,8,"ng-container",r);r!==null&&gE(a,r,!0);let l=cf(s,o);return C8(t,e,a,l),t.queries!==null&&t.queries.elementStart(t,a),a}function Se(n,t,e){let i=Mt(),o=_n(),s=n+es,r=o.firstCreatePass?X2e(s,o,i,t,e):o.data[s];_f(r,!0);let a=Z2e(o,i,r,n);return i[s]=a,AE()&&HE(o,i,a,r),uc(a,i),EE(r)&&(g8(o,i,r),m8(o,r,i)),e!=null&&_8(i,r),Se}function ye(){let n=Es(),t=_n();return XO()?ZO():(n=n.parent,_f(n,!1)),t.firstCreatePass&&(FE(t,n),WO(n)&&t.queries.elementEnd(n)),ye}function Rt(n,t,e){return Se(n,t,e),ye(),Rt}var Z2e=(n,t,e,i)=>(RE(!0),pQ(t[qi],""));function Ce(){return Mt()}function M8(n,t,e){let i=Mt(),o=vf();if(xs(i,o,t)){let s=_n(),r=r0();u0(s,r,i,n,t,i[qi],e,!0)}return M8}function N8(n,t,e){let i=Mt(),o=vf();if(xs(i,o,t)){let s=_n(),r=r0(),a=dq(s.data),l=dve(a,r,i);u0(s,r,i,n,t,l,e,!0)}return N8}var nf=void 0;function Y2e(n){let t=n,e=Math.floor(Math.abs(n)),i=n.toString().replace(/^[^.]*\.?/,"").length;return e===1&&i===0?1:5}var J2e=["en",[["a","p"],["AM","PM"],nf],[["AM","PM"],nf,nf],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],nf,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],nf,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",nf,"{1} 'at' {0}",nf],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Y2e],BN={};function L2(n){let t=eCe(n),e=VW(t);if(e)return e;let i=t.split("-")[0];if(e=VW(i),e)return e;if(i==="en")return J2e;throw new Oe(701,!1)}function hX(n){return L2(n)[Ju.PluralCase]}function VW(n){return n in BN||(BN[n]=bo.ng&&bo.ng.common&&bo.ng.common.locales&&bo.ng.common.locales[n]),BN[n]}var Ju=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(Ju||{});function eCe(n){return n.toLowerCase().replace(/_/g,"-")}var tCe=["zero","one","two","few","many"];function iCe(n,t){let e=hX(t)(parseInt(n,10)),i=tCe[e];return i!==void 0?i:"other"}var SE="en-US",nCe="USD",oCe={marker:"element"},sCe={marker:"ICU"};var pX=SE;function rCe(n){typeof n=="string"&&(pX=n.toLowerCase().replace(/_/g,"-"))}function aCe(){return pX}function a2(n,t){let e=n.data[t];return e===null||typeof e=="string"?null:e.hasOwnProperty("currentCaseLViewIndex")?e:e.value}function O8(n,t){let e=t[n.currentCaseLViewIndex];return e===null?e:e<0?~e:e}function lCe(n){return n>>>17}function cCe(n){return(n&131070)>>>1}var x2=0,l2=0;function dCe(n){n&&(x2=x2|1<0){let i=n.data[e],o=Array.isArray(i)?i:i.update,s=IE()-l2-1;mX(n,t,o,s,x2)}x2=0,l2=0}function fX(n,t,e,i){let o=e[qi],s=null,r;for(let a=0;a>>1,m=t[++a],_=t[++a];b8(o,wE(h,e),null,null,m,_,null);break;default:}else switch(l){case sCe:let c=t[++a],d=t[++a];if(e[d]===null){let m=e[d]=pQ(o,c);uc(m,e)}break;case oCe:let u=t[++a],h=t[++a];if(e[h]===null){let m=e[h]=p8(o,u,null);uc(m,e)}break;default:}}}function mX(n,t,e,i,o){for(let s=0;s>>2;switch(d&3){case 1:let h=e[++c],m=e[++c],_=n.data[u];typeof _=="string"?b8(t[qi],t[u],null,_,h,l,m):u0(n,_,t,h,l,t[qi],m,!1);break;case 0:let b=t[u];b!==null&&hQ(t[qi],b,l);break;case 2:hCe(n,a2(n,u),t,l);break;case 3:BW(n,a2(n,u),i,t);break}}}}else{let l=e[s+1];if(l>0&&(l&3)===3){let c=l>>>2,d=a2(n,c);t[d.currentCaseLViewIndex]<0&&BW(n,d,i,t)}}s+=a}}function BW(n,t,e,i){let o=i[t.currentCaseLViewIndex];if(o!==null){let s=x2;o<0&&(o=i[t.currentCaseLViewIndex]=~o,s=-1),mX(n,i,t.update[o],e,s)}}function hCe(n,t,e,i){let o=pCe(t,i);if(O8(t,e)!==o&&(gX(n,t,e),e[t.currentCaseLViewIndex]=o===null?null:~o,o!==null)){let r=e[t.anchorIdx];r&&fX(n,t.create[o],e,r)}}function gX(n,t,e){let i=O8(t,e);if(i!==null){let o=t.remove[i];for(let s=0;s0){let a=wE(r,e);a!==null&&SQ(e[qi],a)}else gX(n,a2(n,~r),e)}}}function pCe(n,t){let e=n.cases.indexOf(t);if(e===-1)switch(n.type){case 1:{let i=iCe(t,aCe());e=n.cases.indexOf(i),e===-1&&i!=="other"&&(e=n.cases.indexOf("other"));break}case 0:{e=n.cases.indexOf("other");break}}return e===-1?null:e}var fCe=/�(\d+):?\d*�/gi,mCe=/({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi;function gCe(n,t,e){let o=Es().index,s=[];if(n.firstCreatePass&&n.data[t]===null){for(let r=0;rl?a[l]:null}typeof r=="string"&&(s+=2)}return null}function _X(n,t,e,i,o,s,r){let a=EE(i),c=n.firstCreatePass&&LQ(n),d=t[Dl],u=OQ(t),h=!0;if(i.type&3||r){let b=Ia(i,t),E=r?r(b):b,w=u.length,T=r?F=>r(Tl(F[i.index])):i.index,N=null;if(!r&&a&&(N=bCe(n,t,o,i.index)),N!==null){let F=N.__ngLastListenerFn__||N;F.__ngNextListenerFn__=s,N.__ngLastListenerFn__=s,h=!1}else{s=UW(i,t,d,s,!1);let F=e.listen(E,o,s);u.push(s,F),c&&c.push(o,T,w,w+1)}}else s=UW(i,t,d,s,!1);let m=i.outputs,_;if(h&&m!==null&&(_=m[o])){let b=_.length;if(b)for(let E=0;E-1?Xu(n.index,t):t;x8(a);let l=HW(t,e,i,r),c=s.__ngNextListenerFn__;for(;c;)l=HW(t,e,c,r)&&l,c=c.__ngNextListenerFn__;return o&&l===!1&&r.preventDefault(),l}}function v(n=1){return q0e(n)}function SCe(n,t){let e=null,i=g0e(n);for(let o=0;o=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}function Fe(n){let t=H0e();return DE(t,es+n)}function se(n,t=""){let e=Mt(),i=_n(),o=n+es,s=i.firstCreatePass?d0(i,o,1,t,null):i.data[o],r=xCe(i,e,s,t,n);e[o]=r,AE()&&HE(i,e,r,s),_f(s,!1)}var xCe=(n,t,e,i,o)=>(RE(!0),uQ(t[qi],i));function Ye(n){return $t("",n,""),Ye}function $t(n,t,e){let i=Mt(),o=R8(i,n,t,e);return o!==ts&&$E(i,fc(),o),$t}function eh(n,t,e,i,o){let s=Mt(),r=E2e(s,n,t,e,i,o);return r!==ts&&$E(s,fc(),r),eh}function P2(n,t,e,i,o,s,r){let a=Mt(),l=w2e(a,n,t,e,i,o,s,r);return l!==ts&&$E(a,fc(),l),P2}function F8(n,t,e,i,o,s,r,a,l,c,d){let u=Mt(),h=D2e(u,n,t,e,i,o,s,r,a,l,c,d);return h!==ts&&$E(u,fc(),h),F8}function ko(n,t,e){$Q(t)&&(t=t());let i=Mt(),o=vf();if(xs(i,o,t)){let s=_n(),r=r0();u0(s,r,i,n,t,i[qi],e,!1)}return ko}function Vo(n,t){let e=$Q(n);return e&&n.set(t),e}function Mo(n,t){let e=Mt(),i=_n(),o=Es();return _X(i,e,e[qi],o,n,t),Mo}function ECe(n,t,e){let i=_n();if(i.firstCreatePass){let o=Td(n);BO(e,i.data,i.blueprint,o,!0),BO(t,i.data,i.blueprint,o,!1)}}function BO(n,t,e,i,o){if(n=er(n),Array.isArray(n))for(let s=0;s>20;if(t0(n)||!n.multi){let m=new hf(c,o,f),_=UN(l,t,o?d:d+h,u);_===-1?(oO(hE(a,r),s,l),HN(s,n,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(m),r.push(m)):(e[_]=m,r[_]=m)}else{let m=UN(l,t,d+h,u),_=UN(l,t,d,d+h),b=m>=0&&e[m],E=_>=0&&e[_];if(o&&!E||!o&&!b){oO(hE(a,r),s,l);let w=ICe(o?DCe:wCe,e.length,o,i,c);!o&&E&&(e[_].providerFactory=w),HN(s,n,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(w),r.push(w)}else{let w=vX(e[o?_:m],c,!o&&i);HN(s,n,m>-1?m:_,w)}!o&&i&&E&&e[_].componentProviders++}}}function HN(n,t,e,i){let o=t0(t),s=I1e(t);if(o||s){let l=(s?er(t.useClass):t).prototype.ngOnDestroy;if(l){let c=n.destroyHooks||(n.destroyHooks=[]);if(!o&&t.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function vX(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function UN(n,t,e,i){for(let o=e;o{e.providersResolver=(i,o)=>ECe(i,o?o(n):n,t)}}var TCe=(()=>{let t=class t{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){let o=Mq(!1,i.type),s=o.length>0?T8([o],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,s)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(let i of this.cachedInjectors.values())i!==null&&i.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=Q({token:t,providedIn:"environment",factory:()=>new t(q(Da))});let n=t;return n})();function vn(n){qQ("NgStandalone"),n.getStandaloneInjector=t=>t.get(TCe).getOrCreateStandaloneInjector(n)}function hn(n,t,e){let i=Hr()+n,o=Mt();return o[i]===ts?mc(o,i,e?t.call(e):t()):N2(o,i)}function Vt(n,t,e,i){return SX(Mt(),Hr(),n,t,e,i)}function jt(n,t,e,i,o){return yX(Mt(),Hr(),n,t,e,i,o)}function is(n,t,e,i,o,s){return xX(Mt(),Hr(),n,t,e,i,o,s)}function Ur(n,t,e,i,o,s,r){return ACe(Mt(),Hr(),n,t,e,i,o,s,r)}function z8(n,t,e,i,o,s,r,a){let l=Hr()+n,c=Mt(),d=mf(c,l,e,i,o,s);return xs(c,l+4,r)||d?mc(c,l+5,a?t.call(a,e,i,o,s,r):t(e,i,o,s,r)):N2(c,l+5)}function p0(n,t,e,i,o,s,r,a,l){let c=Hr()+n,d=Mt(),u=mf(d,c,e,i,o,s);return i0(d,c+4,r,a)||u?mc(d,c+6,l?t.call(l,e,i,o,s,r,a):t(e,i,o,s,r,a)):N2(d,c+6)}function CX(n,t,e,i,o,s,r,a,l,c){let d=Hr()+n,u=Mt(),h=mf(u,d,e,i,o,s);return A8(u,d+4,r,a,l)||h?mc(u,d+7,c?t.call(c,e,i,o,s,r,a,l):t(e,i,o,s,r,a,l)):N2(u,d+7)}function bX(n,t,e,i,o,s,r,a,l,c,d){let u=Hr()+n,h=Mt(),m=mf(h,u,e,i,o,s);return mf(h,u+4,r,a,l,c)||m?mc(h,u+8,d?t.call(d,e,i,o,s,r,a,l,c):t(e,i,o,s,r,a,l,c)):N2(h,u+8)}function YE(n,t,e,i){return RCe(Mt(),Hr(),n,t,e,i)}function F2(n,t){let e=n[t];return e===ts?void 0:e}function SX(n,t,e,i,o,s){let r=t+e;return xs(n,r,o)?mc(n,r+1,s?i.call(s,o):i(o)):F2(n,r+1)}function yX(n,t,e,i,o,s,r){let a=t+e;return i0(n,a,o,s)?mc(n,a+2,r?i.call(r,o,s):i(o,s)):F2(n,a+2)}function xX(n,t,e,i,o,s,r,a){let l=t+e;return A8(n,l,o,s,r)?mc(n,l+3,a?i.call(a,o,s,r):i(o,s,r)):F2(n,l+3)}function ACe(n,t,e,i,o,s,r,a,l){let c=t+e;return mf(n,c,o,s,r,a)?mc(n,c+4,l?i.call(l,o,s,r,a):i(o,s,r,a)):F2(n,c+4)}function RCe(n,t,e,i,o,s){let r=t+e,a=!1;for(let l=0;l=0;e--){let i=t[e];if(n===i.name)return i}}function bf(n,t,e){let i=n+es,o=Mt(),s=DE(o,i);return G8(o,i)?SX(o,Hr(),t,s.transform,e,s):s.transform(e)}function EX(n,t,e,i){let o=n+es,s=Mt(),r=DE(s,o);return G8(s,o)?yX(s,Hr(),t,r.transform,e,i,r):r.transform(e,i)}function JE(n,t,e,i,o){let s=n+es,r=Mt(),a=DE(r,s);return G8(r,s)?xX(r,Hr(),t,a.transform,e,i,o,a):a.transform(e,i,o)}function G8(n,t){return n[li].data[t].pure}function Lt(n,t){return WE(n,t)}var ew=(()=>{let t=class t{log(i){console.log(i)}warn(i){console.warn(i)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"platform"});let n=t;return n})();var V8=new ot(""),z2=new ot(""),tw=(()=>{let t=class t{constructor(i,o,s){this._ngZone=i,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,B8||(MCe(s),s.addToWindow(o)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{oe.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb()}});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(i)?(clearTimeout(o.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,o,s){let r=-1;o&&o>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),i()},o)),this._callbacks.push({doneCb:i,timeoutId:r,updateCb:s})}whenStable(i,o,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(i,o,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,o,s){return[]}};t.\u0275fac=function(o){return new(o||t)(q(oe),q(iw),q(z2))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),iw=(()=>{let t=class t{constructor(){this._applications=new Map}registerApplication(i,o){this._applications.set(i,o)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,o=!0){return B8?.findTestabilityInTree(this,i,o)??null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"platform"});let n=t;return n})();function MCe(n){B8=n}var B8;function th(n){return!!n&&typeof n.then=="function"}function H8(n){return!!n&&typeof n.subscribe=="function"}var wX=new ot(""),DX=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o}),this.appInits=mt(wX,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let i=[];for(let s of this.appInits){let r=s();if(th(r))i.push(r);else if(H8(r)){let a=new Promise((l,c)=>{r.subscribe({complete:l,error:c})});i.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{o()}).catch(s=>{this.reject(s)}),i.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),U8=new ot("");function NCe(){x$(()=>{throw new Oe(600,!1)})}function OCe(n){return n.isBoundToModule}function LCe(n,t,e){try{let i=e();return th(i)?i.catch(o=>{throw t.runOutsideAngular(()=>n.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}var ih=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=mt(Zq),this.afterRenderEffectManager=mt(QQ),this.componentTypes=[],this.components=[],this.isStable=mt(qE).hasPendingTasks.pipe(Me(i=>!i)),this._injector=mt(Da)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,o){let s=i instanceof fE;if(!this._injector.get(DX).done){let m=!s&&JW(i),_=!1;throw new Oe(405,_)}let a;s?a=i:a=this._injector.get(Cr).resolveComponentFactory(i),this.componentTypes.push(a.componentType);let l=OCe(a)?void 0:this._injector.get(qu),c=o||a.selector,d=a.create(to.NULL,[],c,l),u=d.location.nativeElement,h=d.injector.get(V8,null);return h?.registerApplication(u),d.onDestroy(()=>{this.detachView(d.hostView),jN(this.components,d),h?.unregisterApplication(u)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new Oe(101,!1);try{this._runningTick=!0,this.detectChangesInAttachedViews()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1}}detectChangesInAttachedViews(){let i=0;do{if(i===BQ)throw new Oe(103,!1);let o=i===0;for(let{_lView:s,notifyErrorHandler:r}of this._views)!o&&!jW(s)||this.detectChangesInView(s,r,o);this.afterRenderEffectManager.execute(),i++}while(this._views.some(({_lView:o})=>jW(o)))}detectChangesInView(i,o,s){let r;s?(r=0,i[Wt]|=1024):i[Wt]&64?r=0:r=1,HQ(i,o,r)}attachView(i){let o=i;this._views.push(o),o.attachToAppRef(this)}detachView(i){let o=i;jN(this._views,o),o.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);let o=this._injector.get(U8,[]);[...this._bootstrapListeners,...o].forEach(s=>s(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>jN(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new Oe(406,!1);let i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function jN(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function jW(n){return QO(n)}var UO=class{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}},j8=(()=>{let t=class t{compileModuleSync(i){return new FO(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){let o=this.compileModuleSync(i),s=eq(i),r=dQ(s.declarations).reduce((a,l)=>{let c=rf(l);return c&&a.push(new b2(c)),a},[]);return new UO(o,r)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var PCe=(()=>{let t=class t{constructor(){this.zone=mt(oe),this.applicationRef=mt(ih)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function FCe(n){return[{provide:oe,useFactory:n},{provide:e0,multi:!0,useFactory:()=>{let t=mt(PCe,{optional:!0});return()=>t.initialize()}},{provide:e0,multi:!0,useFactory:()=>{let t=mt(BCe);return()=>{t.initialize()}}},{provide:Zq,useFactory:zCe}]}function zCe(){let n=mt(oe),t=mt(Ad);return e=>n.runOutsideAngular(()=>t.handleError(e))}function GCe(n){let t=FCe(()=>new oe(VCe(n)));return LE([[],t])}function VCe(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}var BCe=(()=>{let t=class t{constructor(){this.subscription=new Ee,this.initialized=!1,this.zone=mt(oe),this.pendingTasks=mt(qE)}initialize(){if(this.initialized)return;this.initialized=!0;let i=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(i=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{oe.assertNotInAngularZone(),queueMicrotask(()=>{i!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(i),i=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{oe.assertInAngularZone(),i??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function HCe(){return typeof $localize<"u"&&$localize.locale||SE}var gc=new ot("",{providedIn:"root",factory:()=>mt(gc,mi.Optional|mi.SkipSelf)||HCe()}),IX=new ot("",{providedIn:"root",factory:()=>nCe});var TX=new ot("");var nE=null;function UCe(n=[],t){return to.create({name:t,providers:[{provide:PE,useValue:"platform"},{provide:TX,useValue:new Set([()=>nE=null])},...n]})}function jCe(n=[]){if(nE)return nE;let t=UCe(n);return nE=t,NCe(),KCe(t),t}function KCe(n){n.get(i8,null)?.forEach(e=>e())}function Ke(){return!1}var AX=(()=>{let t=class t{constructor(i){}};t.\u0275fac=function(o){return new(o||t)(q(ih))},t.\u0275mod=he({type:t}),t.\u0275inj=pe({});let n=t;return n})();function RX(n){try{let{rootComponent:t,appProviders:e,platformProviders:i}=n,o=jCe(i),s=[GCe(),...e||[]],a=new CE({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,l=a.get(oe);return l.run(()=>{a.resolveInjectorInitializers();let c=a.get(Ad,null),d;l.runOutsideAngular(()=>{d=l.onError.subscribe({next:m=>{c.handleError(m)}})});let u=()=>a.destroy(),h=o.get(TX);return h.add(u),a.onDestroy(()=>{d.unsubscribe(),h.delete(u)}),LCe(c,l,()=>{let m=a.get(DX);return m.runInitializers(),m.donePromise.then(()=>{let _=a.get(gc,SE);rCe(_||SE);let b=a.get(ih);return t!==void 0&&b.bootstrap(t),b})})})}catch(t){return Promise.reject(t)}}function nw(n){return typeof n=="boolean"?n:n!=null&&n!=="false"}var zX=null;function vc(){return zX}function GX(n){zX??=n}var ow=class{};var ns=new ot(""),VX=(()=>{let t=class t{historyGo(i){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(qCe),providedIn:"platform"});let n=t;return n})();var qCe=(()=>{let t=class t extends VX{constructor(){super(),this._doc=mt(ns),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return vc().getBaseHref(this._doc)}onPopState(i){let o=vc().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",i,!1),()=>o.removeEventListener("popstate",i)}onHashChange(i){let o=vc().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",i,!1),()=>o.removeEventListener("hashchange",i)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(i){this._location.pathname=i}pushState(i,o,s){this._history.pushState(i,o,s)}replaceState(i,o,s){this._history.replaceState(i,o,s)}forward(){this._history.forward()}back(){this._history.back()}historyGo(i=0){this._history.go(i)}getState(){return this._history.state}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>new t,providedIn:"platform"});let n=t;return n})();function BX(n,t){if(n.length==0)return t;if(t.length==0)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,e==2?n+t.substring(1):e==1?n+t:n+"/"+t}function kX(n){let t=n.match(/#|\?|$/),e=t&&t.index||n.length,i=e-(n[e-1]==="/"?1:0);return n.slice(0,i)+n.slice(e)}function Sf(n){return n&&n[0]!=="?"?"?"+n:n}var lw=(()=>{let t=class t{historyGo(i){throw new Error("")}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(HX),providedIn:"root"});let n=t;return n})(),QCe=new ot(""),HX=(()=>{let t=class t extends lw{constructor(i,o){super(),this._platformLocation=i,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??mt(ns).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(i){this._removeListenerFns.push(this._platformLocation.onPopState(i),this._platformLocation.onHashChange(i))}getBaseHref(){return this._baseHref}prepareExternalUrl(i){return BX(this._baseHref,i)}path(i=!1){let o=this._platformLocation.pathname+Sf(this._platformLocation.search),s=this._platformLocation.hash;return s&&i?`${o}${s}`:o}pushState(i,o,s,r){let a=this.prepareExternalUrl(s+Sf(r));this._platformLocation.pushState(i,o,a)}replaceState(i,o,s,r){let a=this.prepareExternalUrl(s+Sf(r));this._platformLocation.replaceState(i,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(i=0){this._platformLocation.historyGo?.(i)}};t.\u0275fac=function(o){return new(o||t)(q(VX),q(QCe,8))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var B2=(()=>{let t=class t{constructor(i){this._subject=new y,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=i;let o=this._locationStrategy.getBaseHref();this._basePath=YCe(kX(MX(o))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(i=!1){return this.normalize(this._locationStrategy.path(i))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(i,o=""){return this.path()==this.normalize(i+Sf(o))}normalize(i){return t.stripTrailingSlash(ZCe(this._basePath,MX(i)))}prepareExternalUrl(i){return i&&i[0]!=="/"&&(i="/"+i),this._locationStrategy.prepareExternalUrl(i)}go(i,o="",s=null){this._locationStrategy.pushState(s,"",i,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+Sf(o)),s)}replaceState(i,o="",s=null){this._locationStrategy.replaceState(s,"",i,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(i+Sf(o)),s)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(i=0){this._locationStrategy.historyGo?.(i)}onUrlChange(i){return this._urlChangeListeners.push(i),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(i);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(i="",o){this._urlChangeListeners.forEach(s=>s(i,o))}subscribe(i,o,s){return this._subject.subscribe({next:i,error:o,complete:s})}};t.normalizeQueryParams=Sf,t.joinWithSlash=BX,t.stripTrailingSlash=kX,t.\u0275fac=function(o){return new(o||t)(q(lw))},t.\u0275prov=Q({token:t,factory:()=>XCe(),providedIn:"root"});let n=t;return n})();function XCe(){return new B2(q(lw))}function ZCe(n,t){if(!n||!t.startsWith(n))return t;let e=t.substring(n.length);return e===""||["/",";","?","#"].includes(e[0])?e:t}function MX(n){return n.replace(/\/index.html$/,"")}function YCe(n){if(new RegExp("^(https?:)?//").test(n)){let[,e]=n.split(/\/\/[^\/]+/);return e}return n}var UX={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},jX=function(n){return n[n.Decimal=0]="Decimal",n[n.Percent=1]="Percent",n[n.Currency=2]="Currency",n[n.Scientific=3]="Scientific",n}(jX||{});var _c=function(n){return n[n.Decimal=0]="Decimal",n[n.Group=1]="Group",n[n.List=2]="List",n[n.PercentSign=3]="PercentSign",n[n.PlusSign=4]="PlusSign",n[n.MinusSign=5]="MinusSign",n[n.Exponential=6]="Exponential",n[n.SuperscriptingExponent=7]="SuperscriptingExponent",n[n.PerMille=8]="PerMille",n[n.Infinity=9]="Infinity",n[n.NaN=10]="NaN",n[n.TimeSeparator=11]="TimeSeparator",n[n.CurrencyDecimal=12]="CurrencyDecimal",n[n.CurrencyGroup=13]="CurrencyGroup",n}(_c||{});function G2(n,t){let e=L2(n),i=e[Ju.NumberSymbols][t];if(typeof i>"u"){if(t===_c.CurrencyDecimal)return e[Ju.NumberSymbols][_c.Decimal];if(t===_c.CurrencyGroup)return e[Ju.NumberSymbols][_c.Group]}return i}function JCe(n,t){return L2(n)[Ju.NumberFormats][t]}function ebe(n){return L2(n)[Ju.Currencies]}function tbe(n,t,e="en"){let i=ebe(e)[n]||UX[n]||[],o=i[1];return t==="narrow"&&typeof o=="string"?o:i[0]||n}var ibe=2;function nbe(n){let t,e=UX[n];return e&&(t=e[2]),typeof t=="number"?t:ibe}var obe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,NX=22,sw=".",V2="0",sbe=";",rbe=",",K8="#",OX="\xA4";function abe(n,t,e,i,o,s,r=!1){let a="",l=!1;if(!isFinite(n))a=G2(e,_c.Infinity);else{let c=ube(n);r&&(c=dbe(c));let d=t.minInt,u=t.minFrac,h=t.maxFrac;if(s){let T=s.match(obe);if(T===null)throw new Error(`${s} is not a valid digit info`);let N=T[1],F=T[3],O=T[5];N!=null&&(d=$8(N)),F!=null&&(u=$8(F)),O!=null?h=$8(O):F!=null&&u>h&&(h=u)}hbe(c,u,h);let m=c.digits,_=c.integerLen,b=c.exponent,E=[];for(l=m.every(T=>!T);_0?E=m.splice(_,m.length):(E=m,m=[0]);let w=[];for(m.length>=t.lgSize&&w.unshift(m.splice(-t.lgSize,m.length).join(""));m.length>t.gSize;)w.unshift(m.splice(-t.gSize,m.length).join(""));m.length&&w.unshift(m.join("")),a=w.join(G2(e,i)),E.length&&(a+=G2(e,o)+E.join("")),b&&(a+=G2(e,_c.Exponential)+"+"+b)}return n<0&&!l?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function lbe(n,t,e,i,o){let s=JCe(t,jX.Currency),r=cbe(s,G2(t,_c.MinusSign));return r.minFrac=nbe(i),r.maxFrac=r.minFrac,abe(n,r,t,_c.CurrencyGroup,_c.CurrencyDecimal,o).replace(OX,e).replace(OX,"").trim()}function cbe(n,t="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=n.split(sbe),o=i[0],s=i[1],r=o.indexOf(sw)!==-1?o.split(sw):[o.substring(0,o.lastIndexOf(V2)+1),o.substring(o.lastIndexOf(V2)+1)],a=r[0],l=r[1]||"";e.posPre=a.substring(0,a.indexOf(K8));for(let d=0;d-1&&(t=t.replace(sw,"")),(s=t.search(/e/i))>0?(o<0&&(o=s),o+=+t.slice(s+1),t=t.substring(0,s)):o<0&&(o=t.length),s=0;t.charAt(s)===V2;s++);if(s===(a=t.length))i=[0],o=1;else{for(a--;t.charAt(a)===V2;)a--;for(o-=s,i=[],r=0;s<=a;s++,r++)i[r]=Number(t.charAt(s))}return o>NX&&(i=i.splice(0,NX-1),e=o-1,o=1),{digits:i,exponent:e,integerLen:o}}function hbe(n,t,e){if(t>e)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${e}).`);let i=n.digits,o=i.length-n.integerLen,s=Math.min(Math.max(t,o),e),r=s+n.integerLen,a=i[r];if(r>0){i.splice(Math.max(n.integerLen,r));for(let u=r;u=5)if(r-1<0){for(let u=0;u>r;u--)i.unshift(0),n.integerLen++;i.unshift(1),n.integerLen++}else i[r-1]++;for(;o=c?_.pop():l=!1),h>=10?1:0},0);d&&(i.unshift(d),n.integerLen++)}function $8(n){let t=parseInt(n);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+n);return t}function KX(n,t){t=encodeURIComponent(t);for(let e of n.split(";")){let i=e.indexOf("="),[o,s]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(o.trim()===t)return decodeURIComponent(s)}return null}var W8=/\s+/,LX=[],gt=(()=>{let t=class t{constructor(i,o){this._ngEl=i,this._renderer=o,this.initialClasses=LX,this.stateMap=new Map}set klass(i){this.initialClasses=i!=null?i.trim().split(W8):LX}set ngClass(i){this.rawClass=typeof i=="string"?i.trim().split(W8):i}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let i=this.rawClass;if(Array.isArray(i)||i instanceof Set)for(let o of i)this._updateState(o,!0);else if(i!=null)for(let o of Object.keys(i))this._updateState(o,!!i[o]);this._applyStateDiff()}_updateState(i,o){let s=this.stateMap.get(i);s!==void 0?(s.enabled!==o&&(s.changed=!0,s.enabled=o),s.touched=!0):this.stateMap.set(i,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let i of this.stateMap){let o=i[0],s=i[1];s.changed?(this._toggleClass(o,s.enabled),s.changed=!1):s.touched||(s.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),s.touched=!1}}_toggleClass(i,o){i=i.trim(),i.length>0&&i.split(W8).forEach(s=>{o?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}};t.\u0275fac=function(o){return new(o||t)(f(J),f(ce))},t.\u0275dir=z({type:t,selectors:[["","ngClass",""]],inputs:{klass:[lt.None,"class","klass"],ngClass:"ngClass"},standalone:!0});let n=t;return n})();var q8=class{constructor(t,e,i,o){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Kt=(()=>{let t=class t{set ngForOf(i){this._ngForOf=i,this._ngForOfDirty=!0}set ngForTrackBy(i){this._trackByFn=i}get ngForTrackBy(){return this._trackByFn}constructor(i,o,s){this._viewContainer=i,this._template=o,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(i){i&&(this._template=i)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let i=this._ngForOf;if(!this._differ&&i)if(0)try{}catch{}else this._differ=this._differs.find(i).create(this.ngForTrackBy)}if(this._differ){let i=this._differ.diff(this._ngForOf);i&&this._applyChanges(i)}}_applyChanges(i){let o=this._viewContainer;i.forEachOperation((s,r,a)=>{if(s.previousIndex==null)o.createEmbeddedView(this._template,new q8(s.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(r===null?void 0:r);else if(r!==null){let l=o.get(r);o.move(l,a),PX(l,s)}});for(let s=0,r=o.length;s{let r=o.get(s.currentIndex);PX(r,s)})}static ngTemplateContextGuard(i,o){return!0}};t.\u0275fac=function(o){return new(o||t)(f(Si),f(me),f(k2))},t.\u0275dir=z({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let n=t;return n})();function PX(n,t){n.context.$implicit=t.item}var _e=(()=>{let t=class t{constructor(i,o){this._viewContainer=i,this._context=new Q8,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(i){this._context.$implicit=this._context.ngIf=i,this._updateView()}set ngIfThen(i){FX("ngIfThen",i),this._thenTemplateRef=i,this._thenViewRef=null,this._updateView()}set ngIfElse(i){FX("ngIfElse",i),this._elseTemplateRef=i,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(i,o){return!0}};t.\u0275fac=function(o){return new(o||t)(f(Si),f(me))},t.\u0275dir=z({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let n=t;return n})(),Q8=class{constructor(){this.$implicit=null,this.ngIf=null}};function FX(n,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${n} must be a TemplateRef, but received '${tr(t)}'.`)}var pbe=!0,rw=class{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}},Od=(()=>{let t=class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(i){this._ngSwitch=i,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(i){this._defaultViews.push(i)}_matchCase(i){let o=pbe?i===this._ngSwitch:i==this._ngSwitch;return this._lastCasesMatched||=o,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),o}_updateDefaultCases(i){if(this._defaultViews.length>0&&i!==this._defaultUsed){this._defaultUsed=i;for(let o of this._defaultViews)o.enforceState(i)}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=z({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let n=t;return n})(),yf=(()=>{let t=class t{constructor(i,o,s){this.ngSwitch=s,s._addCase(),this._view=new rw(i,o)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};t.\u0275fac=function(o){return new(o||t)(f(Si),f(me),f(Od,9))},t.\u0275dir=z({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let n=t;return n})(),cw=(()=>{let t=class t{constructor(i,o,s){s._addDefault(new rw(i,o))}};t.\u0275fac=function(o){return new(o||t)(f(Si),f(me),f(Od,9))},t.\u0275dir=z({type:t,selectors:[["","ngSwitchDefault",""]],standalone:!0});let n=t;return n})();var yi=(()=>{let t=class t{constructor(i,o,s){this._ngEl=i,this._differs=o,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(i){this._ngStyle=i,!this._differ&&i&&(this._differ=this._differs.find(i).create())}ngDoCheck(){if(this._differ){let i=this._differ.diff(this._ngStyle);i&&this._applyChanges(i)}}_setStyle(i,o){let[s,r]=i.split("."),a=s.indexOf("-")===-1?void 0:hc.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,s,r?`${o}${r}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,s,a)}_applyChanges(i){i.forEachRemovedItem(o=>this._setStyle(o.key,null)),i.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),i.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};t.\u0275fac=function(o){return new(o||t)(f(J),f(M2),f(ce))},t.\u0275dir=z({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let n=t;return n})(),_t=(()=>{let t=class t{constructor(i){this._viewContainerRef=i,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(i){if(this._shouldRecreateView(i)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let s=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,s,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(i){return!!i.ngTemplateOutlet||!!i.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(i,o,s)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,s):!1,get:(i,o,s)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,s)}})}};t.\u0275fac=function(o){return new(o||t)(f(Si))},t.\u0275dir=z({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Le]});let n=t;return n})();function $X(n,t){return new Oe(2100,!1)}var X8=class{createSubscription(t,e){return E8(()=>t.subscribe({next:e,error:i=>{throw i}}))}dispose(t){E8(()=>t.unsubscribe())}},Z8=class{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}},fbe=new Z8,mbe=new X8,WX=(()=>{let t=class t{constructor(i){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=i}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(i){return this._obj?i!==this._obj?(this._dispose(),this.transform(i)):this._latestValue:(i&&this._subscribe(i),this._latestValue)}_subscribe(i){this._obj=i,this._strategy=this._selectStrategy(i),this._subscription=this._strategy.createSubscription(i,o=>this._updateLatestValue(i,o))}_selectStrategy(i){if(th(i))return fbe;if(H8(i))return mbe;throw $X(t,i)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(i,o){i===this._obj&&(this._latestValue=o,this._ref.markForCheck())}};t.\u0275fac=function(o){return new(o||t)(f(je,16))},t.\u0275pipe=Qu({name:"async",type:t,pure:!1,standalone:!0});let n=t;return n})();var qX=(()=>{let t=class t{constructor(i,o="USD"){this._locale=i,this._defaultCurrencyCode=o}transform(i,o=this._defaultCurrencyCode,s="symbol",r,a){if(!gbe(i))return null;a||=this._locale,typeof s=="boolean"&&(s=s?"symbol":"code");let l=o||this._defaultCurrencyCode;s!=="code"&&(s==="symbol"||s==="symbol-narrow"?l=tbe(l,s==="symbol"?"wide":"narrow",a):l=s);try{let c=_be(i);return lbe(c,a,l,o,r)}catch(c){throw $X(t,c.message)}}};t.\u0275fac=function(o){return new(o||t)(f(gc,16),f(IX,16))},t.\u0275pipe=Qu({name:"currency",type:t,pure:!0,standalone:!0});let n=t;return n})();function gbe(n){return!(n==null||n===""||n!==n)}function _be(n){if(typeof n=="string"&&!isNaN(Number(n)-parseFloat(n)))return Number(n);if(typeof n!="number")throw new Error(`${n} is not a number`);return n}var Ie=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=he({type:t}),t.\u0275inj=pe({});let n=t;return n})(),QX="browser",vbe="server";function J8(n){return n===vbe}var aw=class{};var i5=class extends ow{constructor(){super(...arguments),this.supportsDOMEvents=!0}},n5=class n extends i5{static makeCurrent(){GX(new n)}onAndCancel(t,e,i){return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e==="window"?window:e==="document"?t:e==="body"?t.body:null}getBaseHref(t){let e=Cbe();return e==null?null:bbe(e)}resetBaseElement(){H2=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return KX(document.cookie,t)}},H2=null;function Cbe(){return H2=H2||document.querySelector("base"),H2?H2.getAttribute("href"):null}function bbe(n){return new URL(n,document.baseURI).pathname}var o5=class{addToWindow(t){bo.getAngularTestability=(i,o=!0)=>{let s=t.findTestabilityInTree(i,o);if(s==null)throw new Oe(5103,!1);return s},bo.getAllAngularTestabilities=()=>t.getAllTestabilities(),bo.getAllAngularRootElements=()=>t.getAllRootElements();let e=i=>{let o=bo.getAllAngularTestabilities(),s=o.length,r=function(){s--,s==0&&i()};o.forEach(a=>{a.whenStable(r)})};bo.frameworkStabilizers||(bo.frameworkStabilizers=[]),bo.frameworkStabilizers.push(e)}findTestabilityInTree(t,e,i){if(e==null)return null;let o=t.getTestability(e);return o??(i?vc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},Sbe=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),s5=new ot(""),YX=(()=>{let t=class t{constructor(i,o){this._zone=o,this._eventNameToPlugin=new Map,i.forEach(s=>{s.manager=this}),this._plugins=i.slice().reverse()}addEventListener(i,o,s){return this._findPluginFor(o).addEventListener(i,o,s)}getZone(){return this._zone}_findPluginFor(i){let o=this._eventNameToPlugin.get(i);if(o)return o;if(o=this._plugins.find(r=>r.supports(i)),!o)throw new Oe(5101,!1);return this._eventNameToPlugin.set(i,o),o}};t.\u0275fac=function(o){return new(o||t)(q(s5),q(oe))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),dw=class{constructor(t){this._doc=t}},e5="ng-app-id",JX=(()=>{let t=class t{constructor(i,o,s,r={}){this.doc=i,this.appId=o,this.nonce=s,this.platformId=r,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=J8(r),this.resetHostNodes()}addStyles(i){for(let o of i)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(i){for(let o of i)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let i=this.styleNodesInDOM;i&&(i.forEach(o=>o.remove()),i.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(i){this.hostNodes.add(i);for(let o of this.getAllStyles())this.addStyleToHost(i,o)}removeHost(i){this.hostNodes.delete(i)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(i){for(let o of this.hostNodes)this.addStyleToHost(o,i)}onStyleRemoved(i){let o=this.styleRef;o.get(i)?.elements?.forEach(s=>s.remove()),o.delete(i)}collectServerRenderedStyles(){let i=this.doc.head?.querySelectorAll(`style[${e5}="${this.appId}"]`);if(i?.length){let o=new Map;return i.forEach(s=>{s.textContent!=null&&o.set(s.textContent,s)}),o}return null}changeUsageCount(i,o){let s=this.styleRef;if(s.has(i)){let r=s.get(i);return r.usage+=o,r.usage}return s.set(i,{usage:o,elements:[]}),o}getStyleElement(i,o){let s=this.styleNodesInDOM,r=s?.get(o);if(r?.parentNode===i)return s.delete(o),r.removeAttribute(e5),r;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(e5,this.appId),i.appendChild(a),a}}addStyleToHost(i,o){let s=this.getStyleElement(i,o),r=this.styleRef,a=r.get(o)?.elements;a?a.push(s):r.set(o,{elements:[s],usage:1})}resetHostNodes(){let i=this.hostNodes;i.clear(),i.add(this.doc.head)}};t.\u0275fac=function(o){return new(o||t)(q(ns),q(ME),q(n8,8),q(l0))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),t5={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},a5=/%COMP%/g,eZ="%COMP%",ybe=`_nghost-${eZ}`,xbe=`_ngcontent-${eZ}`,Ebe=!0,wbe=new ot("",{providedIn:"root",factory:()=>Ebe});function Dbe(n){return xbe.replace(a5,n)}function Ibe(n){return ybe.replace(a5,n)}function tZ(n,t){return t.map(e=>e.replace(a5,n))}var uw=(()=>{let t=class t{constructor(i,o,s,r,a,l,c,d=null){this.eventManager=i,this.sharedStylesHost=o,this.appId=s,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=J8(l),this.defaultRenderer=new U2(i,a,c,this.platformIsServer)}createRenderer(i,o){if(!i||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===wa.ShadowDom&&(o=Wi(Ge({},o),{encapsulation:wa.Emulated}));let s=this.getOrCreateRenderer(i,o);return s instanceof hw?s.applyToHost(i):s instanceof j2&&s.applyStyles(),s}getOrCreateRenderer(i,o){let s=this.rendererByCompId,r=s.get(o.id);if(!r){let a=this.doc,l=this.ngZone,c=this.eventManager,d=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,h=this.platformIsServer;switch(o.encapsulation){case wa.Emulated:r=new hw(c,d,o,this.appId,u,a,l,h);break;case wa.ShadowDom:return new r5(c,d,i,o,a,l,this.nonce,h);default:r=new j2(c,d,o,u,a,l,h);break}s.set(o.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(o){return new(o||t)(q(YX),q(JX),q(ME),q(wbe),q(ns),q(l0),q(oe),q(n8))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),U2=class{constructor(t,e,i,o){this.eventManager=t,this.doc=e,this.ngZone=i,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,e){return e?this.doc.createElementNS(t5[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(XX(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(XX(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i=typeof t=="string"?this.doc.querySelector(t):t;if(!i)throw new Oe(-5104,!1);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,o){if(o){e=o+":"+e;let s=t5[o];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){let o=t5[i];o?t.removeAttributeNS(o,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,o){o&(hc.DashCase|hc.Important)?t.style.setProperty(e,i,o&hc.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&hc.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t!=null&&(t[e]=i)}setValue(t,e){t.nodeValue=e}listen(t,e,i){if(typeof t=="string"&&(t=vc().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${e}`);return this.eventManager.addEventListener(t,e,this.decoratePreventDefault(i))}decoratePreventDefault(t){return e=>{if(e==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(e)):t(e))===!1&&e.preventDefault()}}};function XX(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var r5=class extends U2{constructor(t,e,i,o,s,r,a,l){super(t,s,r,l),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=tZ(o.id,o.styles);for(let d of c){let u=document.createElement("style");a&&u.setAttribute("nonce",a),u.textContent=d,this.shadowRoot.appendChild(u)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},j2=class extends U2{constructor(t,e,i,o,s,r,a,l){super(t,s,r,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o,this.styles=l?tZ(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},hw=class extends j2{constructor(t,e,i,o,s,r,a,l){let c=o+"-"+i.id;super(t,e,i,s,r,a,l,c),this.contentAttr=Dbe(c),this.hostAttr=Ibe(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,e){let i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}},Tbe=(()=>{let t=class t extends dw{constructor(i){super(i)}supports(i){return!0}addEventListener(i,o,s){return i.addEventListener(o,s,!1),()=>this.removeEventListener(i,o,s)}removeEventListener(i,o,s){return i.removeEventListener(o,s)}};t.\u0275fac=function(o){return new(o||t)(q(ns))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),ZX=["alt","control","meta","shift"],Abe={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Rbe={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},kbe=(()=>{let t=class t extends dw{constructor(i){super(i)}supports(i){return t.parseEventName(i)!=null}addEventListener(i,o,s){let r=t.parseEventName(o),a=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vc().onAndCancel(i,r.domEventName,a))}static parseEventName(i){let o=i.toLowerCase().split("."),s=o.shift();if(o.length===0||!(s==="keydown"||s==="keyup"))return null;let r=t._normalizeKey(o.pop()),a="",l=o.indexOf("code");if(l>-1&&(o.splice(l,1),a="code."),ZX.forEach(d=>{let u=o.indexOf(d);u>-1&&(o.splice(u,1),a+=d+".")}),a+=r,o.length!=0||r.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(i,o){let s=Abe[i.key]||i.key,r="";return o.indexOf("code.")>-1&&(s=i.code,r="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),ZX.forEach(a=>{if(a!==s){let l=Rbe[a];l(i)&&(r+=a+".")}}),r+=s,r===o)}static eventCallback(i,o,s){return r=>{t.matchEventFullKeyCode(r,i)&&s.runGuarded(()=>o(r))}}static _normalizeKey(i){return i==="esc"?"escape":i}};t.\u0275fac=function(o){return new(o||t)(q(ns))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})();function iZ(n,t){return RX(Ge({rootComponent:n},Mbe(t)))}function Mbe(n){return{appProviders:[...nZ,...n?.providers??[]],platformProviders:Pbe}}function Nbe(){n5.makeCurrent()}function Obe(){return new Ad}function Lbe(){return bq(document),document}var Pbe=[{provide:l0,useValue:QX},{provide:i8,useValue:Nbe,multi:!0},{provide:ns,useFactory:Lbe,deps:[]}];var Fbe=new ot(""),zbe=[{provide:z2,useClass:o5,deps:[]},{provide:V8,useClass:tw,deps:[oe,iw,z2]},{provide:tw,useClass:tw,deps:[oe,iw,z2]}],nZ=[{provide:PE,useValue:"root"},{provide:Ad,useFactory:Obe,deps:[]},{provide:s5,useClass:Tbe,multi:!0,deps:[ns,oe,l0]},{provide:s5,useClass:kbe,multi:!0,deps:[ns]},uw,JX,YX,{provide:kd,useExisting:uw},{provide:aw,useClass:Sbe,deps:[]},[]],oZ=(()=>{let t=class t{constructor(i){}static withServerTransition(i){return{ngModule:t,providers:[{provide:ME,useValue:i.appId}]}}};t.\u0275fac=function(o){return new(o||t)(q(Fbe,12))},t.\u0275mod=he({type:t}),t.\u0275inj=pe({providers:[...nZ,...zbe],imports:[Ie,AX]});let n=t;return n})();var sZ=(()=>{let t=class t{constructor(i){this._doc=i}getTitle(){return this._doc.title}setTitle(i){this._doc.title=i||""}};t.\u0275fac=function(o){return new(o||t)(q(ns))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var K2=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:function(o){let s=null;return o?s=new(o||t):s=q(Gbe),s},providedIn:"root"});let n=t;return n})(),Gbe=(()=>{let t=class t extends K2{constructor(i){super(),this._doc=i}sanitize(i,o){if(o==null)return null;switch(i){case Aa.NONE:return o;case Aa.HTML:return Yu(o,"HTML")?Ta(o):u8(this._doc,String(o)).toString();case Aa.STYLE:return Yu(o,"Style")?Ta(o):o;case Aa.SCRIPT:if(Yu(o,"Script"))return Ta(o);throw new Oe(5200,!1);case Aa.URL:return Yu(o,"URL")?Ta(o):GE(String(o));case Aa.RESOURCE_URL:if(Yu(o,"ResourceURL"))return Ta(o);throw new Oe(5201,!1);default:throw new Oe(5202,!1)}}bypassSecurityTrustHtml(i){return Jq(i)}bypassSecurityTrustStyle(i){return eQ(i)}bypassSecurityTrustScript(i){return tQ(i)}bypassSecurityTrustUrl(i){return iQ(i)}bypassSecurityTrustResourceUrl(i){return nQ(i)}};t.\u0275fac=function(o){return new(o||t)(q(ns))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var si="primary",rC=Symbol("RouteTitle"),p5=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function v0(n){return new p5(n)}function Vbe(n,t,e){let i=e.path.split("/");if(i.length>n.length||e.pathMatch==="full"&&(t.hasChildren()||i.lengthi[s]===o)}else return n===t}function hZ(n){return n.length>0?n[n.length-1]:null}function sh(n){return vN(n)?n:th(n)?Fi(Promise.resolve(n)):vt(n)}var Hbe={exact:fZ,subset:mZ},pZ={exact:Ube,subset:jbe,ignored:()=>!0};function rZ(n,t,e){return Hbe[e.paths](n.root,t.root,e.matrixParams)&&pZ[e.queryParams](n.queryParams,t.queryParams)&&!(e.fragment==="exact"&&n.fragment!==t.fragment)}function Ube(n,t){return Cc(n,t)}function fZ(n,t,e){if(!Ef(n.segments,t.segments)||!mw(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(let i in t.children)if(!n.children[i]||!fZ(n.children[i],t.children[i],e))return!1;return!0}function jbe(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>uZ(n[e],t[e]))}function mZ(n,t,e){return gZ(n,t,t.segments,e)}function gZ(n,t,e,i){if(n.segments.length>e.length){let o=n.segments.slice(0,e.length);return!(!Ef(o,e)||t.hasChildren()||!mw(o,e,i))}else if(n.segments.length===e.length){if(!Ef(n.segments,e)||!mw(n.segments,e,i))return!1;for(let o in t.children)if(!n.children[o]||!mZ(n.children[o],t.children[o],i))return!1;return!0}else{let o=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!Ef(n.segments,o)||!mw(n.segments,o,i)||!n.children[si]?!1:gZ(n.children[si],t,s,i)}}function mw(n,t,e){return t.every((i,o)=>pZ[e](n[o].parameters,i.parameters))}var nh=class{constructor(t=new Xi([],{}),e={},i=null){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=v0(this.queryParams),this._queryParamMap}toString(){return Wbe.serialize(this)}},Xi=class{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gw(this)}},xf=class{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=v0(this.parameters),this._parameterMap}toString(){return vZ(this)}};function Kbe(n,t){return Ef(n,t)&&n.every((e,i)=>Cc(e.parameters,t[i].parameters))}function Ef(n,t){return n.length!==t.length?!1:n.every((e,i)=>e.path===t[i].path)}function $be(n,t){let e=[];return Object.entries(n.children).forEach(([i,o])=>{i===si&&(e=e.concat(t(o,i)))}),Object.entries(n.children).forEach(([i,o])=>{i!==si&&(e=e.concat(t(o,i)))}),e}var V5=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>new vw,providedIn:"root"});let n=t;return n})(),vw=class{parse(t){let e=new g5(t);return new nh(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${$2(t.root,!0)}`,i=Xbe(t.queryParams),o=typeof t.fragment=="string"?`#${qbe(t.fragment)}`:"";return`${e}${i}${o}`}},Wbe=new vw;function gw(n){return n.segments.map(t=>vZ(t)).join("/")}function $2(n,t){if(!n.hasChildren())return gw(n);if(t){let e=n.children[si]?$2(n.children[si],!1):"",i=[];return Object.entries(n.children).forEach(([o,s])=>{o!==si&&i.push(`${o}:${$2(s,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}else{let e=$be(n,(i,o)=>o===si?[$2(n.children[si],!1)]:[`${o}:${$2(i,!1)}`]);return Object.keys(n.children).length===1&&n.children[si]!=null?`${gw(n)}/${e[0]}`:`${gw(n)}/(${e.join("//")})`}}function _Z(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pw(n){return _Z(n).replace(/%3B/gi,";")}function qbe(n){return encodeURI(n)}function m5(n){return _Z(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _w(n){return decodeURIComponent(n)}function aZ(n){return _w(n.replace(/\+/g,"%20"))}function vZ(n){return`${m5(n.path)}${Qbe(n.parameters)}`}function Qbe(n){return Object.entries(n).map(([t,e])=>`;${m5(t)}=${m5(e)}`).join("")}function Xbe(n){let t=Object.entries(n).map(([e,i])=>Array.isArray(i)?i.map(o=>`${pw(e)}=${pw(o)}`).join("&"):`${pw(e)}=${pw(i)}`).filter(e=>e);return t.length?`?${t.join("&")}`:""}var Zbe=/^[^\/()?;#]+/;function c5(n){let t=n.match(Zbe);return t?t[0]:""}var Ybe=/^[^\/()?;=#]+/;function Jbe(n){let t=n.match(Ybe);return t?t[0]:""}var eSe=/^[^=?&#]+/;function tSe(n){let t=n.match(eSe);return t?t[0]:""}var iSe=/^[^&#]+/;function nSe(n){let t=n.match(iSe);return t?t[0]:""}var g5=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Xi([],{}):new Xi([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[si]=new Xi(t,e)),i}parseSegment(){let t=c5(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new Oe(4009,!1);return this.capture(t),new xf(_w(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let e=Jbe(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let o=c5(this.remaining);o&&(i=o,this.capture(i))}t[_w(e)]=_w(i)}parseQueryParam(t){let e=tSe(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){let r=nSe(this.remaining);r&&(i=r,this.capture(i))}let o=aZ(e),s=aZ(i);if(t.hasOwnProperty(o)){let r=t[o];Array.isArray(r)||(r=[r],t[o]=r),r.push(s)}else t[o]=s}parseParens(t){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=c5(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new Oe(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=si);let r=this.parseChildren();e[s]=Object.keys(r).length===1?r[si]:new Xi([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new Oe(4011,!1)}};function CZ(n){return n.segments.length>0?new Xi([],{[si]:n}):n}function bZ(n){let t={};for(let[i,o]of Object.entries(n.children)){let s=bZ(o);if(i===si&&s.segments.length===0&&s.hasChildren())for(let[r,a]of Object.entries(s.children))t[r]=a;else(s.segments.length>0||s.hasChildren())&&(t[i]=s)}let e=new Xi(n.segments,t);return oSe(e)}function oSe(n){if(n.numberOfChildren===1&&n.children[si]){let t=n.children[si];return new Xi(n.segments.concat(t.segments),t.children)}return n}function C0(n){return n instanceof nh}function sSe(n,t,e=null,i=null){let o=SZ(n);return yZ(o,t,e,i)}function SZ(n){let t;function e(s){let r={};for(let l of s.children){let c=e(l);r[l.outlet]=c}let a=new Xi(s.url,r);return s===n&&(t=a),a}let i=e(n.root),o=CZ(i);return t??o}function yZ(n,t,e,i){let o=n;for(;o.parent;)o=o.parent;if(t.length===0)return d5(o,o,o,e,i);let s=rSe(t);if(s.toRoot())return d5(o,o,new Xi([],{}),e,i);let r=aSe(s,o,n),a=r.processChildren?Q2(r.segmentGroup,r.index,s.commands):EZ(r.segmentGroup,r.index,s.commands);return d5(o,r.segmentGroup,a,e,i)}function Cw(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function Y2(n){return typeof n=="object"&&n!=null&&n.outlets}function d5(n,t,e,i,o){let s={};i&&Object.entries(i).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(d=>`${d}`):`${c}`});let r;n===t?r=e:r=xZ(n,t,e);let a=CZ(bZ(r));return new nh(a,s,o)}function xZ(n,t,e){let i={};return Object.entries(n.children).forEach(([o,s])=>{s===t?i[o]=e:i[o]=xZ(s,t,e)}),new Xi(n.segments,i)}var bw=class{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Cw(i[0]))throw new Oe(4003,!1);let o=i.find(Y2);if(o&&o!==hZ(i))throw new Oe(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function rSe(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new bw(!0,0,n);let t=0,e=!1,i=n.reduce((o,s,r)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...o,{outlets:a}]}if(s.segmentPath)return[...o,s.segmentPath]}return typeof s!="string"?[...o,s]:r===0?(s.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?e=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,s]},[]);return new bw(e,t,i)}var g0=class{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}};function aSe(n,t,e){if(n.isAbsolute)return new g0(t,!0,0);if(!e)return new g0(t,!1,NaN);if(e.parent===null)return new g0(e,!0,0);let i=Cw(n.commands[0])?0:1,o=e.segments.length-1+i;return lSe(e,o,n.numberOfDoubleDots)}function lSe(n,t,e){let i=n,o=t,s=e;for(;s>o;){if(s-=o,i=i.parent,!i)throw new Oe(4005,!1);o=i.segments.length}return new g0(i,!1,o-s)}function cSe(n){return Y2(n[0])?n[0].outlets:{[si]:n}}function EZ(n,t,e){if(n??=new Xi([],{}),n.segments.length===0&&n.hasChildren())return Q2(n,t,e);let i=dSe(n,t,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndexs!==si)&&n.children[si]&&n.numberOfChildren===1&&n.children[si].segments.length===0){let s=Q2(n.children[si],t,e);return new Xi(n.segments,s.children)}return Object.entries(i).forEach(([s,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(o[s]=EZ(n.children[s],t,r))}),Object.entries(n.children).forEach(([s,r])=>{i[s]===void 0&&(o[s]=r)}),new Xi(n.segments,o)}}function dSe(n,t,e){let i=0,o=t,s={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return s;let r=n.segments[o],a=e[i];if(Y2(a))break;let l=`${a}`,c=i0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!cZ(l,c,r))return s;i+=2}else{if(!cZ(l,{},r))return s;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}function _5(n,t,e){let i=n.segments.slice(0,t),o=0;for(;o{typeof i=="string"&&(i=[i]),i!==null&&(t[e]=_5(new Xi([],{}),0,i))}),t}function lZ(n){let t={};return Object.entries(n).forEach(([e,i])=>t[e]=`${i}`),t}function cZ(n,t,e){return n==e.path&&Cc(t,e.parameters)}var X2="imperative",os=function(n){return n[n.NavigationStart=0]="NavigationStart",n[n.NavigationEnd=1]="NavigationEnd",n[n.NavigationCancel=2]="NavigationCancel",n[n.NavigationError=3]="NavigationError",n[n.RoutesRecognized=4]="RoutesRecognized",n[n.ResolveStart=5]="ResolveStart",n[n.ResolveEnd=6]="ResolveEnd",n[n.GuardsCheckStart=7]="GuardsCheckStart",n[n.GuardsCheckEnd=8]="GuardsCheckEnd",n[n.RouteConfigLoadStart=9]="RouteConfigLoadStart",n[n.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",n[n.ChildActivationStart=11]="ChildActivationStart",n[n.ChildActivationEnd=12]="ChildActivationEnd",n[n.ActivationStart=13]="ActivationStart",n[n.ActivationEnd=14]="ActivationEnd",n[n.Scroll=15]="Scroll",n[n.NavigationSkipped=16]="NavigationSkipped",n}(os||{}),Ma=class{constructor(t,e){this.id=t,this.url=e}},J2=class extends Ma{constructor(t,e,i="imperative",o=null){super(t,e),this.type=os.NavigationStart,this.navigationTrigger=i,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},wf=class extends Ma{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=os.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ka=function(n){return n[n.Redirect=0]="Redirect",n[n.SupersededByNewNavigation=1]="SupersededByNewNavigation",n[n.NoDataFromResolver=2]="NoDataFromResolver",n[n.GuardRejected=3]="GuardRejected",n}(ka||{}),v5=function(n){return n[n.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",n[n.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",n}(v5||{}),oh=class extends Ma{constructor(t,e,i,o){super(t,e),this.reason=i,this.code=o,this.type=os.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Df=class extends Ma{constructor(t,e,i,o){super(t,e),this.reason=i,this.code=o,this.type=os.NavigationSkipped}},eC=class extends Ma{constructor(t,e,i,o){super(t,e),this.error=i,this.target=o,this.type=os.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Sw=class extends Ma{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=os.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},C5=class extends Ma{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=os.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},b5=class extends Ma{constructor(t,e,i,o,s){super(t,e),this.urlAfterRedirects=i,this.state=o,this.shouldActivate=s,this.type=os.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},S5=class extends Ma{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=os.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},y5=class extends Ma{constructor(t,e,i,o){super(t,e),this.urlAfterRedirects=i,this.state=o,this.type=os.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},x5=class{constructor(t){this.route=t,this.type=os.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},E5=class{constructor(t){this.route=t,this.type=os.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},w5=class{constructor(t){this.snapshot=t,this.type=os.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},D5=class{constructor(t){this.snapshot=t,this.type=os.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},I5=class{constructor(t){this.snapshot=t,this.type=os.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},T5=class{constructor(t){this.snapshot=t,this.type=os.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var tC=class{},iC=class{constructor(t){this.url=t}};var A5=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Iw,this.attachRef=null}},Iw=(()=>{let t=class t{constructor(){this.contexts=new Map}onChildOutletCreated(i,o){let s=this.getOrCreateContext(i);s.outlet=o,this.contexts.set(i,s)}onChildOutletDestroyed(i){let o=this.getContext(i);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let i=this.contexts;return this.contexts=new Map,i}onOutletReAttached(i){this.contexts=i}getOrCreateContext(i){let o=this.getContext(i);return o||(o=new A5,this.contexts.set(i,o)),o}getContext(i){return this.contexts.get(i)||null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),yw=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=R5(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){let e=R5(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=k5(t,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return k5(t,this._root).map(e=>e.value)}};function R5(n,t){if(n===t.value)return t;for(let e of t.children){let i=R5(n,e);if(i)return i}return null}function k5(n,t){if(n===t.value)return[t];for(let e of t.children){let i=k5(n,e);if(i.length)return i.unshift(t),i}return[]}var jr=class{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function m0(n){let t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}var xw=class extends yw{constructor(t,e){super(t),this.snapshot=e,H5(this,t)}toString(){return this.snapshot.toString()}};function wZ(n){let t=hSe(n),e=new Ii([new xf("",{})]),i=new Ii({}),o=new Ii({}),s=new Ii({}),r=new Ii(""),a=new b0(e,i,s,r,o,si,n,t.root);return a.snapshot=t.root,new xw(new jr(a,[]),t)}function hSe(n){let t={},e={},i={},o="",s=new nC([],t,i,o,e,si,n,null,{});return new Ew("",new jr(s,[]))}var b0=class{constructor(t,e,i,o,s,r,a,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=o,this.dataSubject=s,this.outlet=r,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(Me(c=>c[rC]))??vt(void 0),this.url=t,this.params=e,this.queryParams=i,this.fragment=o,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Me(t=>v0(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Me(t=>v0(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function B5(n,t,e="emptyOnly"){let i,{routeConfig:o}=n;return t!==null&&(e==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?i={params:Ge(Ge({},t.params),n.params),data:Ge(Ge({},t.data),n.data),resolve:Ge(Ge(Ge(Ge({},n.data),t.data),o?.data),n._resolvedData)}:i={params:Ge({},n.params),data:Ge({},n.data),resolve:Ge(Ge({},n.data),n._resolvedData??{})},o&&IZ(o)&&(i.resolve[rC]=o.title),i}var nC=class{get title(){return this.data?.[rC]}constructor(t,e,i,o,s,r,a,l,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=o,this.data=s,this.outlet=r,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=v0(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=v0(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(i=>i.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${e}')`}},Ew=class extends yw{constructor(t,e){super(e),this.url=t,H5(this,e)}toString(){return DZ(this._root)}};function H5(n,t){t.value._routerState=n,t.children.forEach(e=>H5(n,e))}function DZ(n){let t=n.children.length>0?` { ${n.children.map(DZ).join(", ")} } `:"";return`${n.value}${t}`}function u5(n){if(n.snapshot){let t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Cc(t.queryParams,e.queryParams)||n.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&n.fragmentSubject.next(e.fragment),Cc(t.params,e.params)||n.paramsSubject.next(e.params),Bbe(t.url,e.url)||n.urlSubject.next(e.url),Cc(t.data,e.data)||n.dataSubject.next(e.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function M5(n,t){let e=Cc(n.params,t.params)&&Kbe(n.url,t.url),i=!n.parent!=!t.parent;return e&&!i&&(!n.parent||M5(n.parent,t.parent))}function IZ(n){return typeof n.title=="string"||n.title===null}var pSe=(()=>{let t=class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=si,this.activateEvents=new y,this.deactivateEvents=new y,this.attachEvents=new y,this.detachEvents=new y,this.parentContexts=mt(Iw),this.location=mt(Si),this.changeDetector=mt(je),this.environmentInjector=mt(Da),this.inputBinder=mt(U5,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(i){if(i.name){let{firstChange:o,previousValue:s}=i.name;if(o)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(i){return this.parentContexts.getContext(i)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let i=this.parentContexts.getContext(this.name);i?.route&&(i.attachRef?this.attach(i.attachRef,i.route):this.activateWith(i.route,i.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Oe(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Oe(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Oe(4012,!1);this.location.detach();let i=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(i.instance),i}attach(i,o){this.activated=i,this._activatedRoute=o,this.location.insert(i.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(i.instance)}deactivate(){if(this.activated){let i=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(i)}}activateWith(i,o){if(this.isActivated)throw new Oe(4013,!1);this._activatedRoute=i;let s=this.location,a=i.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new N5(i,l,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:o??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=z({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Le]});let n=t;return n})(),N5=class{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===b0?this.route:t===Iw?this.childContexts:this.parent.get(t,e)}},U5=new ot("");function fSe(n,t,e){let i=oC(n,t._root,e?e._root:void 0);return new xw(i,t)}function oC(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=t.value;let o=mSe(n,t,e);return new jr(i,o)}else{if(n.shouldAttach(t.value)){let s=n.retrieve(t.value);if(s!==null){let r=s.route;return r.value._futureSnapshot=t.value,r.children=t.children.map(a=>oC(n,a)),r}}let i=gSe(t.value),o=t.children.map(s=>oC(n,s));return new jr(i,o)}}function mSe(n,t,e){return t.children.map(i=>{for(let o of e.children)if(n.shouldReuseRoute(i.value,o.value.snapshot))return oC(n,i,o);return oC(n,i)})}function gSe(n){return new b0(new Ii(n.url),new Ii(n.params),new Ii(n.queryParams),new Ii(n.fragment),new Ii(n.data),n.outlet,n.component,n)}var TZ="ngNavigationCancelingError";function AZ(n,t){let{redirectTo:e,navigationBehaviorOptions:i}=C0(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=RZ(!1,ka.Redirect);return o.url=e,o.navigationBehaviorOptions=i,o}function RZ(n,t){let e=new Error(`NavigationCancelingError: ${n||""}`);return e[TZ]=!0,e.cancellationCode=t,e}function _Se(n){return kZ(n)&&C0(n.url)}function kZ(n){return!!n&&n[TZ]}var vSe=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=P({type:t,selectors:[["ng-component"]],standalone:!0,features:[vn],decls:1,vars:0,template:function(o,s){o&1&&A(0,"router-outlet")},dependencies:[pSe],encapsulation:2});let n=t;return n})();function CSe(n,t){return n.providers&&!n._injector&&(n._injector=T8(n.providers,t,`Route: ${n.path}`)),n._injector??t}function j5(n){let t=n.children&&n.children.map(j5),e=t?Wi(Ge({},n),{children:t}):Ge({},n);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==si&&(e.component=vSe),e}function bc(n){return n.outlet||si}function bSe(n,t){let e=n.filter(i=>bc(i)===t);return e.push(...n.filter(i=>bc(i)!==t)),e}function aC(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){let e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var SSe=(n,t,e,i)=>Me(o=>(new O5(t,o.targetRouterState,o.currentRouterState,e,i).activate(n),o)),O5=class{constructor(t,e,i,o,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=o,this.inputBindingEnabled=s}activate(t){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),u5(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){let o=m0(e);t.children.forEach(s=>{let r=s.value.outlet;this.deactivateRoutes(s,o[r],i),delete o[r]}),Object.values(o).forEach(s=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){let o=t.value,s=e?e.value:null;if(o===s)if(o.component){let r=i.getContext(o.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let i=e.getContext(t.value.outlet),o=i&&t.value.component?i.children:e,s=m0(t);for(let r of Object.values(s))this.deactivateRouteAndItsChildren(r,o);if(i&&i.outlet){let r=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let i=e.getContext(t.value.outlet),o=i&&t.value.component?i.children:e,s=m0(t);for(let r of Object.values(s))this.deactivateRouteAndItsChildren(r,o);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(t,e,i){let o=m0(e);t.children.forEach(s=>{this.activateRoutes(s,o[s.value.outlet],i),this.forwardEvent(new T5(s.value.snapshot))}),t.children.length&&this.forwardEvent(new D5(t.value.snapshot))}activateRoutes(t,e,i){let o=t.value,s=e?e.value:null;if(u5(o),o===s)if(o.component){let r=i.getOrCreateContext(o.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,i);else if(o.component){let r=i.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),r.children.onOutletReAttached(a.contexts),r.attachRef=a.componentRef,r.route=a.route.value,r.outlet&&r.outlet.attach(a.componentRef,a.route.value),u5(a.route.value),this.activateChildRoutes(t,null,r.children)}else{let a=aC(o.snapshot);r.attachRef=null,r.route=o,r.injector=a,r.outlet&&r.outlet.activateWith(o,r.injector),this.activateChildRoutes(t,null,r.children)}}else this.activateChildRoutes(t,null,i)}},ww=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},_0=class{constructor(t,e){this.component=t,this.route=e}};function ySe(n,t,e){let i=n._root,o=t?t._root:null;return W2(i,o,e,[i.value])}function xSe(n){let t=n.routeConfig?n.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:n,guards:t}}function y0(n,t){let e=Symbol(),i=t.get(n,e);return i===e?typeof n=="function"&&!yq(n)?n:t.get(n):i}function W2(n,t,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){let s=m0(t);return n.children.forEach(r=>{ESe(r,s[r.value.outlet],e,i.concat([r.value]),o),delete s[r.value.outlet]}),Object.entries(s).forEach(([r,a])=>Z2(a,e.getContext(r),o)),o}function ESe(n,t,e,i,o={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,r=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(r&&s.routeConfig===r.routeConfig){let l=wSe(r,s,s.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new ww(i)):(s.data=r.data,s._resolvedData=r._resolvedData),s.component?W2(n,t,a?a.children:null,i,o):W2(n,t,e,i,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new _0(a.outlet.component,r))}else r&&Z2(t,a,o),o.canActivateChecks.push(new ww(i)),s.component?W2(n,null,a?a.children:null,i,o):W2(n,null,e,i,o);return o}function wSe(n,t,e){if(typeof e=="function")return e(n,t);switch(e){case"pathParamsChange":return!Ef(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Ef(n.url,t.url)||!Cc(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!M5(n,t)||!Cc(n.queryParams,t.queryParams);case"paramsChange":default:return!M5(n,t)}}function Z2(n,t,e){let i=m0(n),o=n.value;Object.entries(i).forEach(([s,r])=>{o.component?t?Z2(r,t.children.getContext(s),e):Z2(r,null,e):Z2(r,t,e)}),o.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new _0(t.outlet.component,o)):e.canDeactivateChecks.push(new _0(null,o)):e.canDeactivateChecks.push(new _0(null,o))}function lC(n){return typeof n=="function"}function DSe(n){return typeof n=="boolean"}function ISe(n){return n&&lC(n.canLoad)}function TSe(n){return n&&lC(n.canActivate)}function ASe(n){return n&&lC(n.canActivateChild)}function RSe(n){return n&&lC(n.canDeactivate)}function kSe(n){return n&&lC(n.canMatch)}function MZ(n){return n instanceof yd||n?.name==="EmptyError"}var fw=Symbol("INITIAL_VALUE");function S0(){return fi(n=>xd(n.map(t=>t.pipe(At(1),i2(fw)))).pipe(Me(t=>{for(let e of t)if(e!==!0){if(e===fw)return fw;if(e===!1||e instanceof nh)return e}return!0}),be(t=>t!==fw),At(1)))}function MSe(n,t){return Un(e=>{let{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:s,canDeactivateChecks:r}}=e;return r.length===0&&s.length===0?vt(Wi(Ge({},e),{guardsResult:!0})):NSe(r,i,o,n).pipe(Un(a=>a&&DSe(a)?OSe(i,s,n,t):vt(a)),Me(a=>Wi(Ge({},e),{guardsResult:a})))})}function NSe(n,t,e,i){return Fi(n).pipe(Un(o=>GSe(o.component,o.route,e,t,i)),lc(o=>o!==!0,!0))}function OSe(n,t,e,i){return Fi(t).pipe(wd(o=>ju(PSe(o.route.parent,i),LSe(o.route,i),zSe(n,o.path,e),FSe(n,o.route,e))),lc(o=>o!==!0,!0))}function LSe(n,t){return n!==null&&t&&t(new I5(n)),vt(!0)}function PSe(n,t){return n!==null&&t&&t(new w5(n)),vt(!0)}function FSe(n,t,e){let i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||i.length===0)return vt(!0);let o=i.map(s=>Ux(()=>{let r=aC(t)??e,a=y0(s,r),l=TSe(a)?a.canActivate(t,n):Cf(r,()=>a(t,n));return sh(l).pipe(lc())}));return vt(o).pipe(S0())}function zSe(n,t,e){let i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(r=>xSe(r)).filter(r=>r!==null).map(r=>Ux(()=>{let a=r.guards.map(l=>{let c=aC(r.node)??e,d=y0(l,c),u=ASe(d)?d.canActivateChild(i,n):Cf(c,()=>d(i,n));return sh(u).pipe(lc())});return vt(a).pipe(S0())}));return vt(s).pipe(S0())}function GSe(n,t,e,i,o){let s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!s||s.length===0)return vt(!0);let r=s.map(a=>{let l=aC(t)??o,c=y0(a,l),d=RSe(c)?c.canDeactivate(n,t,e,i):Cf(l,()=>c(n,t,e,i));return sh(d).pipe(lc())});return vt(r).pipe(S0())}function VSe(n,t,e,i){let o=t.canLoad;if(o===void 0||o.length===0)return vt(!0);let s=o.map(r=>{let a=y0(r,n),l=ISe(a)?a.canLoad(t,e):Cf(n,()=>a(t,e));return sh(l)});return vt(s).pipe(S0(),NZ(i))}function NZ(n){return hN(at(t=>{if(C0(t))throw AZ(n,t)}),Me(t=>t===!0))}function BSe(n,t,e,i){let o=t.canMatch;if(!o||o.length===0)return vt(!0);let s=o.map(r=>{let a=y0(r,n),l=kSe(a)?a.canMatch(t,e):Cf(n,()=>a(t,e));return sh(l)});return vt(s).pipe(S0(),NZ(i))}var sC=class{constructor(t){this.segmentGroup=t||null}},Dw=class extends Error{constructor(t){super(),this.urlTree=t}};function f0(n){return Ug(new sC(n))}function HSe(n){return Ug(new Oe(4e3,!1))}function USe(n){return Ug(RZ(!1,ka.GuardRejected))}var L5=class{constructor(t,e){this.urlSerializer=t,this.urlTree=e}lineralizeSegments(t,e){let i=[],o=e.root;for(;;){if(i=i.concat(o.segments),o.numberOfChildren===0)return vt(i);if(o.numberOfChildren>1||!o.children[si])return HSe(t.redirectTo);o=o.children[si]}}applyRedirectCommands(t,e,i){let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i);if(e.startsWith("/"))throw new Dw(o);return o}applyRedirectCreateUrlTree(t,e,i,o){let s=this.createSegmentGroup(t,e.root,i,o);return new nh(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let i={};return Object.entries(t).forEach(([o,s])=>{if(typeof s=="string"&&s.startsWith(":")){let a=s.substring(1);i[o]=e[a]}else i[o]=s}),i}createSegmentGroup(t,e,i,o){let s=this.createSegments(t,e.segments,i,o),r={};return Object.entries(e.children).forEach(([a,l])=>{r[a]=this.createSegmentGroup(t,l,i,o)}),new Xi(s,r)}createSegments(t,e,i,o){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,o):this.findOrReturn(s,i))}findPosParam(t,e,i){let o=i[e.path.substring(1)];if(!o)throw new Oe(4001,!1);return o}findOrReturn(t,e){let i=0;for(let o of e){if(o.path===t.path)return e.splice(i),o;i++}return t}},P5={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function jSe(n,t,e,i,o){let s=K5(n,t,e);return s.matched?(i=CSe(t,i),BSe(i,t,e,o).pipe(Me(r=>r===!0?s:Ge({},P5)))):vt(s)}function K5(n,t,e){if(t.path==="**")return KSe(e);if(t.path==="")return t.pathMatch==="full"&&(n.hasChildren()||e.length>0)?Ge({},P5):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(t.matcher||Vbe)(e,n,t);if(!o)return Ge({},P5);let s={};Object.entries(o.posParams??{}).forEach(([a,l])=>{s[a]=l.path});let r=o.consumed.length>0?Ge(Ge({},s),o.consumed[o.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:r,positionalParamSegments:o.posParams??{}}}function KSe(n){return{matched:!0,parameters:n.length>0?hZ(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function dZ(n,t,e,i){return e.length>0&&qSe(n,e,i)?{segmentGroup:new Xi(t,WSe(i,new Xi(e,n.children))),slicedSegments:[]}:e.length===0&&QSe(n,e,i)?{segmentGroup:new Xi(n.segments,$Se(n,e,i,n.children)),slicedSegments:e}:{segmentGroup:new Xi(n.segments,n.children),slicedSegments:e}}function $Se(n,t,e,i){let o={};for(let s of e)if(Tw(n,t,s)&&!i[bc(s)]){let r=new Xi([],{});o[bc(s)]=r}return Ge(Ge({},i),o)}function WSe(n,t){let e={};e[si]=t;for(let i of n)if(i.path===""&&bc(i)!==si){let o=new Xi([],{});e[bc(i)]=o}return e}function qSe(n,t,e){return e.some(i=>Tw(n,t,i)&&bc(i)!==si)}function QSe(n,t,e){return e.some(i=>Tw(n,t,i))}function Tw(n,t,e){return(n.hasChildren()||t.length>0)&&e.pathMatch==="full"?!1:e.path===""}function XSe(n,t,e,i){return bc(n)!==i&&(i===si||!Tw(t,e,n))?!1:K5(t,n,e).matched}function ZSe(n,t,e){return t.length===0&&!n.children[e]}var F5=class{};function YSe(n,t,e,i,o,s,r="emptyOnly"){return new z5(n,t,e,i,o,r,s).recognize()}var JSe=31,z5=class{constructor(t,e,i,o,s,r,a){this.injector=t,this.configLoader=e,this.rootComponentType=i,this.config=o,this.urlTree=s,this.paramsInheritanceStrategy=r,this.urlSerializer=a,this.applyRedirects=new L5(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new Oe(4002,`'${t.segmentGroup}'`)}recognize(){let t=dZ(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(Me(e=>{let i=new nC([],Object.freeze({}),Object.freeze(Ge({},this.urlTree.queryParams)),this.urlTree.fragment,{},si,this.rootComponentType,null,{}),o=new jr(i,e),s=new Ew("",o),r=sSe(i,[],this.urlTree.queryParams,this.urlTree.fragment);return r.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(r),this.inheritParamsAndData(s._root,null),{state:s,tree:r}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t,si).pipe(Gr(i=>{if(i instanceof Dw)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof sC?this.noMatchError(i):i}))}inheritParamsAndData(t,e){let i=t.value,o=B5(i,e,this.paramsInheritanceStrategy);i.params=Object.freeze(o.params),i.data=Object.freeze(o.data),t.children.forEach(s=>this.inheritParamsAndData(s,i))}processSegmentGroup(t,e,i,o){return i.segments.length===0&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,o,!0).pipe(Me(s=>s instanceof jr?[s]:[]))}processChildren(t,e,i){let o=[];for(let s of Object.keys(i.children))s==="primary"?o.unshift(s):o.push(s);return Fi(o).pipe(wd(s=>{let r=i.children[s],a=bSe(e,s);return this.processSegmentGroup(t,a,r,s)}),t2((s,r)=>(s.push(...r),s)),$u(null),EN(),Un(s=>{if(s===null)return f0(i);let r=OZ(s);return eye(r),vt(r)}))}processSegment(t,e,i,o,s,r){return Fi(e).pipe(wd(a=>this.processSegmentAgainstRoute(a._injector??t,e,a,i,o,s,r).pipe(Gr(l=>{if(l instanceof sC)return vt(null);throw l}))),lc(a=>!!a),Gr(a=>{if(MZ(a))return ZSe(i,o,s)?vt(new F5):f0(i);throw a}))}processSegmentAgainstRoute(t,e,i,o,s,r,a){return XSe(i,o,s,r)?i.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,i,s,r):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,e,i,s,r):f0(o):f0(o)}expandSegmentAgainstRouteUsingRedirect(t,e,i,o,s,r){let{matched:a,consumedSegments:l,positionalParamSegments:c,remainingSegments:d}=K5(e,o,s);if(!a)return f0(e);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>JSe&&(this.allowRedirects=!1));let u=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return this.applyRedirects.lineralizeSegments(o,u).pipe(Un(h=>this.processSegment(t,i,e,h.concat(d),r,!1)))}matchSegmentAgainstRoute(t,e,i,o,s){let r=jSe(e,i,o,t,this.urlSerializer);return i.path==="**"&&(e.children={}),r.pipe(fi(a=>a.matched?(t=i._injector??t,this.getChildConfig(t,i,o).pipe(fi(({routes:l})=>{let c=i._loadedInjector??t,{consumedSegments:d,remainingSegments:u,parameters:h}=a,m=new nC(d,h,Object.freeze(Ge({},this.urlTree.queryParams)),this.urlTree.fragment,iye(i),bc(i),i.component??i._loadedComponent??null,i,nye(i)),{segmentGroup:_,slicedSegments:b}=dZ(e,d,u,l);if(b.length===0&&_.hasChildren())return this.processChildren(c,l,_).pipe(Me(w=>w===null?null:new jr(m,w)));if(l.length===0&&b.length===0)return vt(new jr(m,[]));let E=bc(i)===s;return this.processSegment(c,l,_,b,E?si:s,!0).pipe(Me(w=>new jr(m,w instanceof jr?[w]:[])))}))):f0(e)))}getChildConfig(t,e,i){return e.children?vt({routes:e.children,injector:t}):e.loadChildren?e._loadedRoutes!==void 0?vt({routes:e._loadedRoutes,injector:e._loadedInjector}):VSe(t,e,i,this.urlSerializer).pipe(Un(o=>o?this.configLoader.loadChildren(t,e).pipe(at(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):USe(e))):vt({routes:[],injector:t})}};function eye(n){n.sort((t,e)=>t.value.outlet===si?-1:e.value.outlet===si?1:t.value.outlet.localeCompare(e.value.outlet))}function tye(n){let t=n.value.routeConfig;return t&&t.path===""}function OZ(n){let t=[],e=new Set;for(let i of n){if(!tye(i)){t.push(i);continue}let o=t.find(s=>i.value.routeConfig===s.value.routeConfig);o!==void 0?(o.children.push(...i.children),e.add(o)):t.push(i)}for(let i of e){let o=OZ(i.children);t.push(new jr(i.value,o))}return t.filter(i=>!e.has(i))}function iye(n){return n.data||{}}function nye(n){return n.resolve||{}}function oye(n,t,e,i,o,s){return Un(r=>YSe(n,t,e,i,r.extractedUrl,o,s).pipe(Me(({state:a,tree:l})=>Wi(Ge({},r),{targetSnapshot:a,urlAfterRedirects:l}))))}function sye(n,t){return Un(e=>{let{targetSnapshot:i,guards:{canActivateChecks:o}}=e;if(!o.length)return vt(e);let s=new Set(o.map(l=>l.route)),r=new Set;for(let l of s)if(!r.has(l))for(let c of LZ(l))r.add(c);let a=0;return Fi(r).pipe(wd(l=>s.has(l)?rye(l,i,n,t):(l.data=B5(l,l.parent,n).resolve,vt(void 0))),at(()=>a++),Kg(1),Un(l=>a===r.size?vt(e):Co))})}function LZ(n){let t=n.children.map(e=>LZ(e)).flat();return[n,...t]}function rye(n,t,e,i){let o=n.routeConfig,s=n._resolve;return o?.title!==void 0&&!IZ(o)&&(s[rC]=o.title),aye(s,n,t,i).pipe(Me(r=>(n._resolvedData=r,n.data=B5(n,n.parent,e).resolve,null)))}function aye(n,t,e,i){let o=f5(n);if(o.length===0)return vt({});let s={};return Fi(o).pipe(Un(r=>lye(n[r],t,e,i).pipe(lc(),at(a=>{s[r]=a}))),Kg(1),e2(s),Gr(r=>MZ(r)?Co:Ug(r)))}function lye(n,t,e,i){let o=aC(t)??i,s=y0(n,o),r=s.resolve?s.resolve(t,e):Cf(o,()=>s(t,e));return sh(r)}function h5(n){return fi(t=>{let e=n(t);return e?Fi(e).pipe(Me(()=>t)):vt(t)})}var PZ=(()=>{let t=class t{buildTitle(i){let o,s=i.root;for(;s!==void 0;)o=this.getResolvedTitleForRoute(s)??o,s=s.children.find(r=>r.outlet===si);return o}getResolvedTitleForRoute(i){return i.data[rC]}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(cye),providedIn:"root"});let n=t;return n})(),cye=(()=>{let t=class t extends PZ{constructor(i){super(),this.title=i}updateTitle(i){let o=this.buildTitle(i);o!==void 0&&this.title.setTitle(o)}};t.\u0275fac=function(o){return new(o||t)(q(sZ))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),$5=new ot("",{providedIn:"root",factory:()=>({})}),W5=new ot(""),dye=(()=>{let t=class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=mt(j8)}loadComponent(i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return vt(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let o=sh(i.loadComponent()).pipe(Me(FZ),at(r=>{this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=r}),ef(()=>{this.componentLoaders.delete(i)})),s=new Pg(o,()=>new tt).pipe(Lg());return this.componentLoaders.set(i,s),s}loadChildren(i,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return vt({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let r=uye(o,this.compiler,i,this.onLoadEndListener).pipe(ef(()=>{this.childrenLoaders.delete(o)})),a=new Pg(r,()=>new tt).pipe(Lg());return this.childrenLoaders.set(o,a),a}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function uye(n,t,e,i){return sh(n.loadChildren()).pipe(Me(FZ),Un(o=>o instanceof S2||Array.isArray(o)?vt(o):Fi(t.compileModuleAsync(o))),Me(o=>{i&&i(n);let s,r,a=!1;return Array.isArray(o)?(r=o,a=!0):(s=o.create(e).injector,r=s.get(W5,[],{optional:!0,self:!0}).flat()),{routes:r.map(j5),injector:s}}))}function hye(n){return n&&typeof n=="object"&&"default"in n}function FZ(n){return hye(n)?n.default:n}var q5=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(pye),providedIn:"root"});let n=t;return n})(),pye=(()=>{let t=class t{shouldProcessUrl(i){return!0}extract(i){return i}merge(i,o){return i}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),fye=new ot("");var mye=(()=>{let t=class t{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new tt,this.transitionAbortSubject=new tt,this.configLoader=mt(dye),this.environmentInjector=mt(Da),this.urlSerializer=mt(V5),this.rootContexts=mt(Iw),this.location=mt(B2),this.inputBindingEnabled=mt(U5,{optional:!0})!==null,this.titleStrategy=mt(PZ),this.options=mt($5,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=mt(q5),this.createViewTransition=mt(fye,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>vt(void 0),this.rootComponentType=null;let i=s=>this.events.next(new x5(s)),o=s=>this.events.next(new E5(s));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=i}complete(){this.transitions?.complete()}handleNavigationRequest(i){let o=++this.navigationId;this.transitions?.next(Wi(Ge(Ge({},this.transitions.value),i),{id:o}))}setupNavigations(i,o,s){return this.transitions=new Ii({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:X2,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(be(r=>r.id!==0),Me(r=>Wi(Ge({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),fi(r=>{this.currentTransition=r;let a=!1,l=!1;return vt(r).pipe(at(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?Wi(Ge({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),fi(c=>{let d=!i.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=c.extras.onSameUrlNavigation??i.onSameUrlNavigation;if(!d&&u!=="reload"){let h="";return this.events.next(new Df(c.id,this.urlSerializer.serialize(c.rawUrl),h,v5.IgnoredSameUrlNavigation)),c.resolve(null),Co}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return vt(c).pipe(fi(h=>{let m=this.transitions?.getValue();return this.events.next(new J2(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),m!==this.transitions?.getValue()?Co:Promise.resolve(h)}),oye(this.environmentInjector,this.configLoader,this.rootComponentType,i.config,this.urlSerializer,this.paramsInheritanceStrategy),at(h=>{r.targetSnapshot=h.targetSnapshot,r.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=Wi(Ge({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let m=new Sw(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(m)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:h,extractedUrl:m,source:_,restoredState:b,extras:E}=c,w=new J2(h,this.urlSerializer.serialize(m),_,b);this.events.next(w);let T=wZ(this.rootComponentType).snapshot;return this.currentTransition=r=Wi(Ge({},c),{targetSnapshot:T,urlAfterRedirects:m,extras:Wi(Ge({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=m,vt(r)}else{let h="";return this.events.next(new Df(c.id,this.urlSerializer.serialize(c.extractedUrl),h,v5.IgnoredByUrlHandlingStrategy)),c.resolve(null),Co}}),at(c=>{let d=new C5(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}),Me(c=>(this.currentTransition=r=Wi(Ge({},c),{guards:ySe(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),r)),MSe(this.environmentInjector,c=>this.events.next(c)),at(c=>{if(r.guardsResult=c.guardsResult,C0(c.guardsResult))throw AZ(this.urlSerializer,c.guardsResult);let d=new b5(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(d)}),be(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",ka.GuardRejected),!1)),h5(c=>{if(c.guards.canActivateChecks.length)return vt(c).pipe(at(d=>{let u=new S5(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}),fi(d=>{let u=!1;return vt(d).pipe(sye(this.paramsInheritanceStrategy,this.environmentInjector),at({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(d,"",ka.NoDataFromResolver)}}))}),at(d=>{let u=new y5(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(u)}))}),h5(c=>{let d=u=>{let h=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(u.routeConfig).pipe(at(m=>{u.component=m}),Me(()=>{})));for(let m of u.children)h.push(...d(m));return h};return xd(d(c.targetSnapshot.root)).pipe($u(null),At(1))}),h5(()=>this.afterPreactivation()),fi(()=>{let{currentSnapshot:c,targetSnapshot:d}=r,u=this.createViewTransition?.(this.environmentInjector,c.root,d.root);return u?Fi(u).pipe(Me(()=>r)):vt(r)}),Me(c=>{let d=fSe(i.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=r=Wi(Ge({},c),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,r}),at(()=>{this.events.next(new tC)}),SSe(this.rootContexts,i.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),At(1),at({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new wf(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Tn(this.transitionAbortSubject.pipe(at(c=>{throw c}))),ef(()=>{!a&&!l&&this.cancelNavigationTransition(r,"",ka.SupersededByNewNavigation),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),Gr(c=>{if(l=!0,kZ(c))this.events.next(new oh(r.id,this.urlSerializer.serialize(r.extractedUrl),c.message,c.cancellationCode)),_Se(c)?this.events.next(new iC(c.url)):r.resolve(!1);else{this.events.next(new eC(r.id,this.urlSerializer.serialize(r.extractedUrl),c,r.targetSnapshot??void 0));try{r.resolve(i.errorHandler(c))}catch(d){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(d)}}return Co}))}))}cancelNavigationTransition(i,o,s){let r=new oh(i.id,this.urlSerializer.serialize(i.extractedUrl),o,s);this.events.next(r),i.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function gye(n){return n!==X2}var _ye=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(vye),providedIn:"root"});let n=t;return n})(),G5=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}},vye=(()=>{let t=class t extends G5{};t.\u0275fac=(()=>{let i;return function(s){return(i||(i=zi(t)))(s||t)}})(),t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),zZ=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(Cye),providedIn:"root"});let n=t;return n})(),Cye=(()=>{let t=class t extends zZ{constructor(){super(...arguments),this.location=mt(B2),this.urlSerializer=mt(V5),this.options=mt($5,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=mt(q5),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new nh,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=wZ(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(i){return this.location.subscribe(o=>{o.type==="popstate"&&i(o.url,o.state)})}handleRouterEvent(i,o){if(i instanceof J2)this.stateMemento=this.createStateMemento();else if(i instanceof Df)this.rawUrlTree=o.initialUrl;else if(i instanceof Sw){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(s,o)}}else i instanceof tC?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o))):i instanceof oh&&(i.code===ka.GuardRejected||i.code===ka.NoDataFromResolver)?this.restoreHistory(o):i instanceof eC?this.restoreHistory(o,!0):i instanceof wf&&(this.lastSuccessfulId=i.id,this.currentPageId=this.browserPageId)}setBrowserUrl(i,o){let s=this.urlSerializer.serialize(i);if(this.location.isCurrentPathEqualTo(s)||o.extras.replaceUrl){let r=this.browserPageId,a=Ge(Ge({},o.extras.state),this.generateNgRouterState(o.id,r));this.location.replaceState(s,"",a)}else{let r=Ge(Ge({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(s,"",r)}}restoreHistory(i,o=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,r=this.currentPageId-s;r!==0?this.location.historyGo(r):this.currentUrlTree===i.finalUrl&&r===0&&(this.resetState(i),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(i),this.resetUrlToCurrentUrlTree())}resetState(i){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(i,o){return this.canceledNavigationResolution==="computed"?{navigationId:i,\u0275routerPageId:o}:{navigationId:i}}};t.\u0275fac=(()=>{let i;return function(s){return(i||(i=zi(t)))(s||t)}})(),t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),q2=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(q2||{});function bye(n,t){n.events.pipe(be(e=>e instanceof wf||e instanceof oh||e instanceof eC||e instanceof Df),Me(e=>e instanceof wf||e instanceof Df?q2.COMPLETE:(e instanceof oh?e.code===ka.Redirect||e.code===ka.SupersededByNewNavigation:!1)?q2.REDIRECTING:q2.FAILED),be(e=>e!==q2.REDIRECTING),At(1)).subscribe(()=>{t()})}function Sye(n){throw n}var yye={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xye={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},GZ=(()=>{let t=class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=mt(ew),this.stateManager=mt(zZ),this.options=mt($5,{optional:!0})||{},this.pendingTasks=mt(qE),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=mt(mye),this.urlSerializer=mt(V5),this.location=mt(B2),this.urlHandlingStrategy=mt(q5),this._events=new tt,this.errorHandler=this.options.errorHandler||Sye,this.navigated=!1,this.routeReuseStrategy=mt(_ye),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=mt(W5,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!mt(U5,{optional:!0}),this.eventsSubscription=new Ee,this.isNgZoneEnabled=mt(oe)instanceof oe&&oe.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:i=>{this.console.warn(i)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let i=this.navigationTransitions.events.subscribe(o=>{try{let s=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(s!==null&&r!==null){if(this.stateManager.handleRouterEvent(o,r),o instanceof oh&&o.code!==ka.Redirect&&o.code!==ka.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof wf)this.navigated=!0;else if(o instanceof iC){let a=this.urlHandlingStrategy.merge(o.url,s.currentRawUrl),l={info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||gye(s.source)};this.scheduleNavigation(a,X2,null,l,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}wye(o)&&this._events.next(o)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(i)}resetRootComponentType(i){this.routerState.root.component=i,this.navigationTransitions.rootComponentType=i}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),X2,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((i,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(i,"popstate",o)},0)})}navigateToSyncWithBrowser(i,o,s){let r={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let c=Ge({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(r.state=c)}let l=this.parseUrl(i);this.scheduleNavigation(l,o,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(i){this.config=i.map(j5),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(i,o={}){let{relativeTo:s,queryParams:r,fragment:a,queryParamsHandling:l,preserveFragment:c}=o,d=c?this.currentUrlTree.fragment:a,u=null;switch(l){case"merge":u=Ge(Ge({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}u!==null&&(u=this.removeEmptyProps(u));let h;try{let m=s?s.snapshot:this.routerState.snapshot.root;h=SZ(m)}catch{(typeof i[0]!="string"||!i[0].startsWith("/"))&&(i=[]),h=this.currentUrlTree.root}return yZ(h,i,u,d??null)}navigateByUrl(i,o={skipLocationChange:!1}){let s=C0(i)?i:this.parseUrl(i),r=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(r,X2,null,o)}navigate(i,o={skipLocationChange:!1}){return Eye(i),this.navigateByUrl(this.createUrlTree(i,o),o)}serializeUrl(i){return this.urlSerializer.serialize(i)}parseUrl(i){try{return this.urlSerializer.parse(i)}catch{return this.urlSerializer.parse("/")}}isActive(i,o){let s;if(o===!0?s=Ge({},yye):o===!1?s=Ge({},xye):s=o,C0(i))return rZ(this.currentUrlTree,i,s);let r=this.parseUrl(i);return rZ(this.currentUrlTree,r,s)}removeEmptyProps(i){return Object.entries(i).reduce((o,[s,r])=>(r!=null&&(o[s]=r),o),{})}scheduleNavigation(i,o,s,r,a){if(this.disposed)return Promise.resolve(!1);let l,c,d;a?(l=a.resolve,c=a.reject,d=a.promise):d=new Promise((h,m)=>{l=h,c=m});let u=this.pendingTasks.add();return bye(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:i,extras:r,resolve:l,reject:c,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(h=>Promise.reject(h))}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Eye(n){for(let t=0;te.\u0275providers)])}function Iye(n){return n.routerState.root}function Tye(){let n=mt(to);return t=>{let e=n.get(ih);if(t!==e.components[0])return;let i=n.get(GZ),o=n.get(Aye);n.get(Rye)===1&&i.initialNavigation(),n.get(kye,null,mi.Optional)?.setUpPreloading(),n.get(Dye,null,mi.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var Aye=new ot("",{factory:()=>new tt}),Rye=new ot("",{providedIn:"root",factory:()=>1});var kye=new ot("");var Yt=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(Yt||{}),Kr="*";function Ld(n,t){return{type:Yt.Trigger,name:n,definitions:t,options:{}}}function gi(n,t=null){return{type:Yt.Animate,styles:t,timings:n}}function x0(n,t=null){return{type:Yt.Sequence,steps:n,options:t}}function it(n){return{type:Yt.Style,styles:n,offset:null}}function ah(n,t,e){return{type:Yt.State,name:n,styles:t,options:e}}function Y5(n){return{type:Yt.Keyframes,steps:n}}function Na(n,t,e=null){return{type:Yt.Transition,expr:n,animation:t,options:e}}function J5(n,t,e=null){return{type:Yt.Query,selector:n,animation:t,options:e}}function eL(n,t){return{type:Yt.Stagger,timings:n,animation:t}}var Oa=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:()=>mt(Mye),providedIn:"root"});let n=t;return n})(),Q5=class{},Mye=(()=>{let t=class t extends Oa{constructor(i,o){super(),this.animationModuleType=mt(A2,{optional:!0}),this._nextAnimationId=0;let s={id:"0",encapsulation:wa.None,styles:[],data:{animation:[]}};if(this._renderer=i.createRenderer(o.body,s),this.animationModuleType===null&&!Oye(this._renderer))throw new Oe(3600,!1)}build(i){let o=this._nextAnimationId;this._nextAnimationId++;let s=Array.isArray(i)?x0(i):i;return BZ(this._renderer,null,o,"register",[s]),new X5(o,this._renderer)}};t.\u0275fac=function(o){return new(o||t)(q(kd),q(ns))},t.\u0275prov=Q({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),X5=class extends Q5{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Z5(this._id,t,e||{},this._renderer)}},Z5=class{constructor(t,e,i,o){this.id=t,this.element=e,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){BZ(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return Nye(this._renderer)?.engine?.players[this.id]?.getPosition()??0}};function BZ(n,t,e,i,o){n.setProperty(t,`@@${e}:${i}`,o)}function Nye(n){let t=n.\u0275type;return t===0?n:t===1?n.animationRenderer:null}function Oye(n){let t=n.\u0275type;return t===0||t===1}var rh=class{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},cC=class{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,o=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(r=>{r.onDone(()=>{++e==s&&this._onFinish()}),r.onDestroy(()=>{++i==s&&this._onDestroy()}),r.onStart(()=>{++o==s&&this._onStart()})}),this.totalTime=this.players.reduce((r,a)=>Math.max(r,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){let e=t*this.totalTime;this.players.forEach(i=>{let o=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(o)})}getPosition(){let t=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return t!=null?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){let e=t=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Aw="!";function HZ(n){return new Oe(3e3,!1)}function Lye(){return new Oe(3100,!1)}function Pye(){return new Oe(3101,!1)}function Fye(n){return new Oe(3001,!1)}function zye(n){return new Oe(3003,!1)}function Gye(n){return new Oe(3004,!1)}function Vye(n,t){return new Oe(3005,!1)}function Bye(){return new Oe(3006,!1)}function Hye(){return new Oe(3007,!1)}function Uye(n,t){return new Oe(3008,!1)}function jye(n){return new Oe(3002,!1)}function Kye(n,t,e,i,o){return new Oe(3010,!1)}function $ye(){return new Oe(3011,!1)}function Wye(){return new Oe(3012,!1)}function qye(){return new Oe(3200,!1)}function Qye(){return new Oe(3202,!1)}function Xye(){return new Oe(3013,!1)}function Zye(n){return new Oe(3014,!1)}function Yye(n){return new Oe(3015,!1)}function Jye(n){return new Oe(3016,!1)}function e3e(n,t){return new Oe(3404,!1)}function t3e(n){return new Oe(3502,!1)}function i3e(n){return new Oe(3503,!1)}function n3e(){return new Oe(3300,!1)}function o3e(n){return new Oe(3504,!1)}function s3e(n){return new Oe(3301,!1)}function r3e(n,t){return new Oe(3302,!1)}function a3e(n){return new Oe(3303,!1)}function l3e(n,t){return new Oe(3400,!1)}function c3e(n){return new Oe(3401,!1)}function d3e(n){return new Oe(3402,!1)}function u3e(n,t){return new Oe(3505,!1)}function lh(n){switch(n.length){case 0:return new rh;case 1:return n[0];default:return new cC(n)}}function iY(n,t,e=new Map,i=new Map){let o=[],s=[],r=-1,a=null;if(t.forEach(l=>{let c=l.get("offset"),d=c==r,u=d&&a||new Map;l.forEach((h,m)=>{let _=m,b=h;if(m!=="offset")switch(_=n.normalizePropertyName(_,o),b){case Aw:b=e.get(m);break;case Kr:b=i.get(m);break;default:b=n.normalizeStyleValue(m,_,b,o);break}u.set(_,b)}),d||s.push(u),a=u,r=c}),o.length)throw t3e(o);return s}function xL(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&tL(e,"start",n)));break;case"done":n.onDone(()=>i(e&&tL(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&tL(e,"destroy",n)));break}}function tL(n,t,e){let i=e.totalTime,o=!!e.disabled,s=EL(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,i??n.totalTime,o),r=n._data;return r!=null&&(s._data=r),s}function EL(n,t,e,i,o="",s=0,r){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:o,totalTime:s,disabled:!!r}}function Wr(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function UZ(n){let t=n.indexOf(":"),e=n.substring(1,t),i=n.slice(t+1);return[e,i]}var h3e=typeof document>"u"?null:document.documentElement;function wL(n){let t=n.parentNode||n.host||null;return t===h3e?null:t}function p3e(n){return n.substring(1,6)=="ebkit"}var If=null,jZ=!1;function f3e(n){If||(If=m3e()||{},jZ=If.style?"WebkitAppearance"in If.style:!1);let t=!0;return If.style&&!p3e(n)&&(t=n in If.style,!t&&jZ&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in If.style)),t}function m3e(){return typeof document<"u"?document.body:null}function nY(n,t){for(;t;){if(t===n)return!0;t=wL(t)}return!1}function oY(n,t,e){if(e)return Array.from(n.querySelectorAll(t));let i=n.querySelector(t);return i?[i]:[]}var DL=(()=>{let t=class t{validateStyleProperty(i){return f3e(i)}matchesElement(i,o){return!1}containsElement(i,o){return nY(i,o)}getParentElement(i){return wL(i)}query(i,o,s){return oY(i,o,s)}computeStyle(i,o,s){return s||""}animate(i,o,s,r,a,l=[],c){return new rh(s,r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})(),RL=class RL{};RL.NOOP=new DL;var Rf=RL,kf=class{};var g3e=1e3,sY="{{",_3e="}}",rY="ng-enter",aL="ng-leave",Rw="ng-trigger",Lw=".ng-trigger",KZ="ng-animating",lL=".ng-animating";function Pd(n){if(typeof n=="number")return n;let t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:cL(parseFloat(t[1]),t[2])}function cL(n,t){switch(t){case"s":return n*g3e;default:return n}}function Pw(n,t,e){return n.hasOwnProperty("duration")?n:v3e(n,t,e)}function v3e(n,t,e){let i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o,s=0,r="";if(typeof n=="string"){let a=n.match(i);if(a===null)return t.push(HZ(n)),{duration:0,delay:0,easing:""};o=cL(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=cL(parseFloat(l),a[4]));let c=a[5];c&&(r=c)}else o=n;if(!e){let a=!1,l=t.length;o<0&&(t.push(Lye()),a=!0),s<0&&(t.push(Pye()),a=!0),a&&t.splice(l,0,HZ(n))}return{duration:o,delay:s,easing:r}}function C3e(n){return n.length?n[0]instanceof Map?n:n.map(t=>new Map(Object.entries(t))):[]}function Sc(n,t,e){t.forEach((i,o)=>{let s=IL(o);e&&!e.has(o)&&e.set(o,n.style[s]),n.style[s]=i})}function Af(n,t){t.forEach((e,i)=>{let o=IL(i);n.style[o]=""})}function uC(n){return Array.isArray(n)?n.length==1?n[0]:x0(n):n}function b3e(n,t,e){let i=t.params||{},o=aY(n);o.length&&o.forEach(s=>{i.hasOwnProperty(s)||e.push(Fye(s))})}var dL=new RegExp(`${sY}\\s*(.+?)\\s*${_3e}`,"g");function aY(n){let t=[];if(typeof n=="string"){let e;for(;e=dL.exec(n);)t.push(e[1]);dL.lastIndex=0}return t}function pC(n,t,e){let i=`${n}`,o=i.replace(dL,(s,r)=>{let a=t[r];return a==null&&(e.push(zye(r)),a=""),a.toString()});return o==i?n:o}var S3e=/-+([a-z0-9])/g;function IL(n){return n.replace(S3e,(...t)=>t[1].toUpperCase())}function y3e(n,t){return n===0||t===0}function x3e(n,t,e){if(e.size&&t.length){let i=t[0],o=[];if(e.forEach((s,r)=>{i.has(r)||o.push(r),i.set(r,s)}),o.length)for(let s=1;sr.set(a,TL(n,a)))}}return t}function $r(n,t,e){switch(t.type){case Yt.Trigger:return n.visitTrigger(t,e);case Yt.State:return n.visitState(t,e);case Yt.Transition:return n.visitTransition(t,e);case Yt.Sequence:return n.visitSequence(t,e);case Yt.Group:return n.visitGroup(t,e);case Yt.Animate:return n.visitAnimate(t,e);case Yt.Keyframes:return n.visitKeyframes(t,e);case Yt.Style:return n.visitStyle(t,e);case Yt.Reference:return n.visitReference(t,e);case Yt.AnimateChild:return n.visitAnimateChild(t,e);case Yt.AnimateRef:return n.visitAnimateRef(t,e);case Yt.Query:return n.visitQuery(t,e);case Yt.Stagger:return n.visitStagger(t,e);default:throw Gye(t.type)}}function TL(n,t){return window.getComputedStyle(n)[t]}var E3e=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Fw=class extends kf{normalizePropertyName(t,e){return IL(t)}normalizeStyleValue(t,e,i,o){let s="",r=i.toString().trim();if(E3e.has(e)&&i!==0&&i!=="0")if(typeof i=="number")s="px";else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&o.push(Vye(t,i))}return r+s}};var zw="*";function w3e(n,t){let e=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(i=>D3e(i,e,t)):e.push(n),e}function D3e(n,t,e){if(n[0]==":"){let l=I3e(n,e);if(typeof l=="function"){t.push(l);return}n=l}let i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(Yye(n)),t;let o=i[1],s=i[2],r=i[3];t.push($Z(o,r));let a=o==zw&&r==zw;s[0]=="<"&&!a&&t.push($Z(r,o))}function I3e(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}var kw=new Set(["true","1"]),Mw=new Set(["false","0"]);function $Z(n,t){let e=kw.has(n)||Mw.has(n),i=kw.has(t)||Mw.has(t);return(o,s)=>{let r=n==zw||n==o,a=t==zw||t==s;return!r&&e&&typeof o=="boolean"&&(r=o?kw.has(n):Mw.has(n)),!a&&i&&typeof s=="boolean"&&(a=s?kw.has(t):Mw.has(t)),r&&a}}var lY=":self",T3e=new RegExp(`s*${lY}s*,?`,"g");function cY(n,t,e,i){return new uL(n).build(t,e,i)}var WZ="",uL=class{constructor(t){this._driver=t}build(t,e,i){let o=new hL(e);return this._resetContextStyleTimingState(o),$r(this,uC(t),o)}_resetContextStyleTimingState(t){t.currentQuerySelector=WZ,t.collectedStyles=new Map,t.collectedStyles.set(WZ,new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,o=e.depCount=0,s=[],r=[];return t.name.charAt(0)=="@"&&e.errors.push(Bye()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==Yt.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,e))}),l.name=c}else if(a.type==Yt.Transition){let l=this.visitTransition(a,e);i+=l.queryCount,o+=l.depCount,r.push(l)}else e.errors.push(Hye())}),{type:Yt.Trigger,name:t.name,states:s,transitions:r,queryCount:i,depCount:o,options:null}}visitState(t,e){let i=this.visitStyle(t.styles,e),o=t.options&&t.options.params||null;if(i.containsDynamicStyles){let s=new Set,r=o||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{aY(l).forEach(c=>{r.hasOwnProperty(c)||s.add(c)})})}),s.size&&e.errors.push(Uye(t.name,[...s.values()]))}return{type:Yt.State,name:t.name,style:i,options:o?{params:o}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let i=$r(this,uC(t.animation),e),o=w3e(t.expr,e.errors);return{type:Yt.Transition,matchers:o,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Tf(t.options)}}visitSequence(t,e){return{type:Yt.Sequence,steps:t.steps.map(i=>$r(this,i,e)),options:Tf(t.options)}}visitGroup(t,e){let i=e.currentTime,o=0,s=t.steps.map(r=>{e.currentTime=i;let a=$r(this,r,e);return o=Math.max(o,e.currentTime),a});return e.currentTime=o,{type:Yt.Group,steps:s,options:Tf(t.options)}}visitAnimate(t,e){let i=M3e(t.timings,e.errors);e.currentAnimateTimings=i;let o,s=t.styles?t.styles:it({});if(s.type==Yt.Keyframes)o=this.visitKeyframes(s,e);else{let r=t.styles,a=!1;if(!r){a=!0;let c={};i.easing&&(c.easing=i.easing),r=it(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(r,e);l.isEmptyStep=a,o=l}return e.currentAnimateTimings=null,{type:Yt.Animate,timings:i,style:o,options:null}}visitStyle(t,e){let i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){let i=[],o=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of o)typeof a=="string"?a===Kr?i.push(a):e.errors.push(jye(a)):i.push(new Map(Object.entries(a)));let s=!1,r=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(r=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(sY)>=0){s=!0;break}}}),{type:Yt.Style,styles:i,easing:r,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){let i=e.currentAnimateTimings,o=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l),u=!0;d&&(s!=o&&s>=d.startTime&&o<=d.endTime&&(e.errors.push(Kye(l,d.startTime,d.endTime,s,o)),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:o}),e.options&&b3e(a,e.options,e.errors)})})}visitKeyframes(t,e){let i={type:Yt.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push($ye()),i;let o=1,s=0,r=[],a=!1,l=!1,c=0,d=t.steps.map(w=>{let T=this._makeStyleAst(w,e),N=T.offset!=null?T.offset:k3e(T.styles),F=0;return N!=null&&(s++,F=T.offset=N),l=l||F<0||F>1,a=a||F0&&s{let N=h>0?T==m?1:h*T:r[T],F=N*E;e.currentTime=_+b.delay+F,b.duration=F,this._validateStyleAst(w,e),w.offset=N,i.styles.push(w)}),i}visitReference(t,e){return{type:Yt.Reference,animation:$r(this,uC(t.animation),e),options:Tf(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:Yt.AnimateChild,options:Tf(t.options)}}visitAnimateRef(t,e){return{type:Yt.AnimateRef,animation:this.visitReference(t.animation,e),options:Tf(t.options)}}visitQuery(t,e){let i=e.currentQuerySelector,o=t.options||{};e.queryCount++,e.currentQuery=t;let[s,r]=A3e(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,Wr(e.collectedStyles,e.currentQuerySelector,new Map);let a=$r(this,uC(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:Yt.Query,selector:s,limit:o.limit||0,optional:!!o.optional,includeSelf:r,animation:a,originalSelector:t.selector,options:Tf(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(Xye());let i=t.timings==="full"?{duration:0,delay:0,easing:"full"}:Pw(t.timings,e.errors,!0);return{type:Yt.Stagger,animation:$r(this,uC(t.animation),e),timings:i,options:null}}};function A3e(n){let t=!!n.split(/\s*,\s*/).find(e=>e==lY);return t&&(n=n.replace(T3e,"")),n=n.replace(/@\*/g,Lw).replace(/@\w+/g,e=>Lw+"-"+e.slice(1)).replace(/:animating/g,lL),[n,t]}function R3e(n){return n?Ge({},n):null}var hL=class{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function k3e(n){if(typeof n=="string")return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}function M3e(n,t){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let s=Pw(n,t).duration;return iL(s,0,"")}let e=n;if(e.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=iL(0,0,"");return s.dynamic=!0,s.strValue=e,s}let o=Pw(e,t);return iL(o.duration,o.delay,o.easing)}function Tf(n){return n?(n=Ge({},n),n.params&&(n.params=R3e(n.params))):n={},n}function iL(n,t,e){return{duration:n,delay:t,easing:e}}function AL(n,t,e,i,o,s,r=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:o,delay:s,totalTime:o+s,easing:r,subTimeline:a}}var fC=class{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}},N3e=1,O3e=":enter",L3e=new RegExp(O3e,"g"),P3e=":leave",F3e=new RegExp(P3e,"g");function dY(n,t,e,i,o,s=new Map,r=new Map,a,l,c=[]){return new pL().buildKeyframes(n,t,e,i,o,s,r,a,l,c)}var pL=class{buildKeyframes(t,e,i,o,s,r,a,l,c,d=[]){c=c||new fC;let u=new fL(t,e,c,o,s,d,[]);u.options=l;let h=l.delay?Pd(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([r],null,u.errors,l),$r(this,i,u);let m=u.timelines.filter(_=>_.containsAnimation());if(m.length&&a.size){let _;for(let b=m.length-1;b>=0;b--){let E=m[b];if(E.element===e){_=E;break}}_&&!_.allowOnlyTimelineStyles()&&_.setStyles([a],null,u.errors,l)}return m.length?m.map(_=>_.buildKeyframes()):[AL(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let i=e.subInstructions.get(e.element);if(i){let o=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,o,o.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){let i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(let o of t){let s=o?.delay;if(s){let r=typeof s=="number"?s:Pd(pC(s,o?.params??{},e.errors));i.delayNextStep(r)}}}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime,r=i.duration!=null?Pd(i.duration):null,a=i.delay!=null?Pd(i.delay):null;return r!==0&&t.forEach(l=>{let c=e.appendInstructionToTimeline(l,r,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),$r(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let i=e.subContextCount,o=e,s=t.options;if(s&&(s.params||s.delay)&&(o=e.createSubContext(s),o.transformIntoNewTimeline(),s.delay!=null)){o.previousNode.type==Yt.Style&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Gw);let r=Pd(s.delay);o.delayNextStep(r)}t.steps.length&&(t.steps.forEach(r=>$r(this,r,o)),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let i=[],o=e.currentTimeline.currentTime,s=t.options&&t.options.delay?Pd(t.options.delay):0;t.steps.forEach(r=>{let a=e.createSubContext(t.options);s&&a.delayNextStep(s),$r(this,r,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(r=>e.currentTimeline.mergeTimelineCollectedStyles(r)),e.transformIntoNewTimeline(o),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let i=t.strValue,o=e.params?pC(i,e.params,e.errors):i;return Pw(o,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let i=e.currentAnimateTimings=this._visitTiming(t.timings,e),o=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),o.snapshotCurrentStyles());let s=t.style;s.type==Yt.Keyframes?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),o.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let i=e.currentTimeline,o=e.currentAnimateTimings;!o&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=o&&o.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let i=e.currentAnimateTimings,o=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(o+s),e.previousNode=t}visitQuery(t,e){let i=e.currentTimeline.currentTime,o=t.options||{},s=o.delay?Pd(o.delay):0;s&&(e.previousNode.type===Yt.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Gw);let r=i,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;let u=e.createSubContext(t.options,c);s&&u.delayNextStep(s),c===e.element&&(l=u.currentTimeline),$r(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe();let h=u.currentTimeline.currentTime;r=Math.max(r,h)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let i=e.parentContext,o=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),a=r*(e.currentQueryTotal-1),l=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime;break}let d=e.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;$r(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=o.currentTime-u+(o.startTime-i.currentTimeline.startTime)}},Gw={},fL=class n{constructor(t,e,i,o,s,r,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=s,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Vw(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let i=t,o=this.options;i.duration!=null&&(o.duration=Pd(i.duration)),i.delay!=null&&(o.delay=Pd(i.delay));let s=i.params;if(s){let r=o.params;r||(r=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!r.hasOwnProperty(a))&&(r[a]=pC(s[a],r,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let i=t.params={};Object.keys(e).forEach(o=>{i[o]=e[o]})}}return t}createSubContext(t=null,e,i){let o=e||this.element,s=new n(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=Gw,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){let o={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},s=new mL(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,o,t.stretchStartingKeyframe);return this.timelines.push(s),o}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,o,s,r){let a=[];if(o&&a.push(this.element),t.length>0){t=t.replace(L3e,"."+this._enterClassName),t=t.replace(F3e,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,t,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&r.push(Zye(e)),a}},Vw=class n{constructor(t,e,i,o){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new n(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=N3e,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Kr),this._currentKeyframe.set(e,Kr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,o){e&&this._previousKeyframe.set("easing",e);let s=o&&o.params||{},r=z3e(t,this._globalTimelineStyles);for(let[a,l]of r){let c=pC(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Kr),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{let o=this._styleSummary.get(i);(!o||e.time>o.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,o=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Aw?t.add(u):d===Kr&&e.add(u)}),i||c.set("offset",l/this.duration),o.push(c)});let s=[...t.values()],r=[...e.values()];if(i){let a=o[0],l=new Map(a);a.set("offset",0),l.set("offset",1),o=[a,l]}return AL(this.element,o,s,r,this.duration,this.startTime,this.easing,!1)}},mL=class extends Vw{constructor(t,e,i,o,s,r,a=!1){super(t,e,r.delay),this.keyframes=i,this.preStyleProps=o,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:o}=this.timings;if(this._stretchStartingKeyframe&&e){let s=[],r=i+e,a=e/r,l=new Map(t[0]);l.set("offset",0),s.push(l);let c=new Map(t[0]);c.set("offset",qZ(a)),s.push(c);let d=t.length-1;for(let u=1;u<=d;u++){let h=new Map(t[u]),m=h.get("offset"),_=e+m*i;h.set("offset",qZ(_/r)),s.push(h)}i=r,e=0,o="",t=s}return AL(this.element,t,this.preStyleProps,this.postStyleProps,i,e,o,!0)}};function qZ(n,t=3){let e=Math.pow(10,t-1);return Math.round(n*e)/e}function z3e(n,t){let e=new Map,i;return n.forEach(o=>{if(o==="*"){i??=t.keys();for(let s of i)e.set(s,Kr)}else for(let[s,r]of o)e.set(s,r)}),e}function QZ(n,t,e,i,o,s,r,a,l,c,d,u,h){return{type:0,element:n,triggerName:t,isRemovalTransition:o,fromState:e,fromStyles:s,toState:i,toStyles:r,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}var nL={},Bw=class{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,o){return G3e(this.ast.matchers,t,e,i,o)}buildStyles(t,e,i){let o=this._stateStyles.get("*");return t!==void 0&&(o=this._stateStyles.get(t?.toString())||o),o?o.buildStyles(e,i):new Map}build(t,e,i,o,s,r,a,l,c,d){let u=[],h=this.ast.options&&this.ast.options.params||nL,m=a&&a.params||nL,_=this.buildStyles(i,m,u),b=l&&l.params||nL,E=this.buildStyles(o,b,u),w=new Set,T=new Map,N=new Map,F=o==="void",O={params:uY(b,h),delay:this.ast.options?.delay},Y=d?[]:dY(t,e,this.ast.animation,s,r,_,E,O,c,u),K=0;return Y.forEach(ve=>{K=Math.max(ve.duration+ve.delay,K)}),u.length?QZ(e,this._triggerName,i,o,F,_,E,[],[],T,N,K,u):(Y.forEach(ve=>{let ze=ve.element,Te=Wr(T,ze,new Set);ve.preStyleProps.forEach(kt=>Te.add(kt));let Qe=Wr(N,ze,new Set);ve.postStyleProps.forEach(kt=>Qe.add(kt)),ze!==e&&w.add(ze)}),QZ(e,this._triggerName,i,o,F,_,E,Y,[...w.values()],T,N,K))}};function G3e(n,t,e,i,o){return n.some(s=>s(t,e,i,o))}function uY(n,t){let e=Ge({},t);return Object.entries(n).forEach(([i,o])=>{o!=null&&(e[i]=o)}),e}var gL=class{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){let i=new Map,o=uY(t,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((r,a)=>{r&&(r=pC(r,o,e));let l=this.normalizer.normalizePropertyName(a,e);r=this.normalizer.normalizeStyleValue(a,l,r,e),i.set(a,r)})}),i}};function V3e(n,t,e){return new _L(n,t,e)}var _L=class{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(o=>{let s=o.options&&o.options.params||{};this.states.set(o.name,new gL(o.style,s,i))}),XZ(this.states,"true","1"),XZ(this.states,"false","0"),e.transitions.forEach(o=>{this.transitionFactories.push(new Bw(t,o,this.states))}),this.fallbackTransition=B3e(t,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,o){return this.transitionFactories.find(r=>r.match(t,e,i,o))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}};function B3e(n,t,e){let i=[(r,a)=>!0],o={type:Yt.Sequence,steps:[],options:null},s={type:Yt.Transition,animation:o,matchers:i,options:null,queryCount:0,depCount:0};return new Bw(n,s,t)}function XZ(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}var H3e=new fC,vL=class{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){let i=[],o=[],s=cY(this._driver,e,i,o);if(i.length)throw i3e(i);o.length&&void 0,this._animations.set(t,s)}_buildPlayer(t,e,i){let o=t.element,s=iY(this._normalizer,t.keyframes,e,i);return this._driver.animate(o,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){let o=[],s=this._animations.get(t),r,a=new Map;if(s?(r=dY(this._driver,e,s,rY,aL,new Map,new Map,i,H3e,o),r.forEach(d=>{let u=Wr(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(o.push(n3e()),r=[]),o.length)throw o3e(o);a.forEach((d,u)=>{d.forEach((h,m)=>{d.set(m,this._driver.computeStyle(u,m,Kr))})});let l=r.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=lh(l);return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw s3e(t);return e}listen(t,e,i,o){let s=EL(e,"","","");return xL(this._getPlayer(t),i,s,o),()=>{}}command(t,e,i,o){if(i=="register"){this.register(t,o[0]);return}if(i=="create"){let r=o[0]||{};this.create(t,e,r);return}let s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(t);break}}},ZZ="ng-animate-queued",U3e=".ng-animate-queued",oL="ng-animate-disabled",j3e=".ng-animate-disabled",K3e="ng-star-inserted",$3e=".ng-star-inserted",W3e=[],hY={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},q3e={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Al="__ng_removed",mC=class{get params(){return this.options.params}constructor(t,e=""){this.namespaceId=e;let i=t&&t.hasOwnProperty("value"),o=i?t.value:t;if(this.value=X3e(o),i){let s=t,{value:r}=s,a=g$(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let i=this.options.params;Object.keys(e).forEach(o=>{i[o]==null&&(i[o]=e[o])})}}},hC="void",sL=new mC(hC),CL=class{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,La(e,this._hostClassName)}listen(t,e,i,o){if(!this._triggers.has(e))throw r3e(i,e);if(i==null||i.length==0)throw a3e(e);if(!Z3e(i))throw l3e(i,e);let s=Wr(this._elementListeners,t,[]),r={name:e,phase:i,callback:o};s.push(r);let a=Wr(this._engine.statesByElement,t,new Map);return a.has(e)||(La(t,Rw),La(t,Rw+"-"+e),a.set(e,sL)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(r);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw c3e(t);return e}trigger(t,e,i,o=!0){let s=this._getTrigger(e),r=new gC(this.id,e,t),a=this._engine.statesByElement.get(t);a||(La(t,Rw),La(t,Rw+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e),c=new mC(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=sL),!(c.value===hC)&&l.value===c.value){if(!exe(l.params,c.params)){let b=[],E=s.matchStyles(l.value,l.params,b),w=s.matchStyles(c.value,c.params,b);b.length?this._engine.reportError(b):this._engine.afterFlush(()=>{Af(t,E),Sc(t,w)})}return}let h=Wr(this._engine.playersByElement,t,[]);h.forEach(b=>{b.namespaceId==this.id&&b.triggerName==e&&b.queued&&b.destroy()});let m=s.matchTransition(l.value,c.value,t,c.params),_=!1;if(!m){if(!o)return;m=s.fallbackTransition,_=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:m,fromState:l,toState:c,player:r,isFallbackTransition:_}),_||(La(t,ZZ),r.onStart(()=>{E0(t,ZZ)})),r.onDone(()=>{let b=this.players.indexOf(r);b>=0&&this.players.splice(b,1);let E=this._engine.playersByElement.get(t);if(E){let w=E.indexOf(r);w>=0&&E.splice(w,1)}}),this.players.push(r),h.push(r),r}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(o=>o.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let i=this._engine.driver.query(t,Lw,!0);i.forEach(o=>{if(o[Al])return;let s=this._engine.fetchNamespacesByElement(o);s.size?s.forEach(r=>r.triggerLeaveAnimation(o,e,!1,!0)):this.clearElementCache(o)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(o=>this.clearElementCache(o)))}triggerLeaveAnimation(t,e,i,o){let s=this._engine.statesByElement.get(t),r=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(r.set(c,l.value),this._triggers.has(c)){let d=this.trigger(t,c,hC,o);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,r),i&&lh(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){let o=new Set;e.forEach(s=>{let r=s.name;if(o.has(r))return;o.add(r);let l=this._triggers.get(r).fallbackTransition,c=i.get(r)||sL,d=new mC(hC),u=new gC(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,e){let i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let o=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else{let r=t;for(;r=r.parentNode;)if(i.statesByElement.get(r)){o=!0;break}}}if(this.prepareLeaveAnimationListeners(t),o)i.markElementAsRemoved(this.id,t,!1,e);else{let s=t[Al];(!s||s===hY)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){La(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(i=>{let o=i.player;if(o.destroyed)return;let s=i.element,r=this._elementListeners.get(s);r&&r.forEach(a=>{if(a.name==i.triggerName){let l=EL(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,xL(i.player,a.phase,l,a.callback)}}),o.markedForDestroy?this._engine.afterFlush(()=>{o.destroy()}):e.push(i)}),this._queue=[],e.sort((i,o)=>{let s=i.transition.ast.depCount,r=o.transition.ast.depCount;return s==0||r==0?s-r:this._engine.driver.containsElement(i.element,o.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}},bL=class{_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i,o){this.bodyNode=t,this.driver=e,this._normalizer=i,this.scheduler=o,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){let i=new CL(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){let i=this._namespaceList,o=this.namespacesByHostElement;if(i.length-1>=0){let r=!1,a=this.driver.getParentElement(e);for(;a;){let l=o.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,t),r=!0;break}a=this.driver.getParentElement(a)}r||i.unshift(t)}else i.push(t);return o.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let o=this._namespaceLookup[t];o&&o.register(e,i)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(t);this.namespacesByHostElement.delete(i.hostElement);let o=this._namespaceList.indexOf(i);o>=0&&this._namespaceList.splice(o,1),i.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,i=this.statesByElement.get(t);if(i){for(let o of i.values())if(o.namespaceId){let s=this._fetchNamespace(o.namespaceId);s&&e.add(s)}}return e}trigger(t,e,i,o){if(Nw(e)){let s=this._fetchNamespace(t);if(s)return s.trigger(e,i,o),!0}return!1}insertNode(t,e,i,o){if(!Nw(e))return;let s=e[Al];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let r=this.collectedLeaveElements.indexOf(e);r>=0&&this.collectedLeaveElements.splice(r,1)}if(t){let r=this._fetchNamespace(t);r&&r.insertNode(e,i)}o&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),La(t,oL)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),E0(t,oL))}removeNode(t,e,i){if(Nw(e)){this.scheduler?.notify();let o=t?this._fetchNamespace(t):null;o?o.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i);let s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,i,o,s){this.collectedLeaveElements.push(e),e[Al]={namespaceId:t,setForRemoval:o,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,o,s){return Nw(e)?this._fetchNamespace(t).listen(e,i,o,s):()=>{}}_buildInstruction(t,e,i,o,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,o,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Lw,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,lL,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return lh(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[Al];if(e&&e.setForRemoval){if(t[Al]=hY,e.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(oL)&&this.markElementAsDisabled(t,!1),this.driver.query(t,j3e,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,o)=>this._balanceNamespaceList(i,o)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?lh(e).onDone(()=>{i.forEach(o=>o())}):i.forEach(o=>o())}}reportError(t){throw d3e(t)}_flushAnimations(t,e){let i=new fC,o=[],s=new Map,r=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(Ve=>{d.add(Ve);let Ze=this.driver.query(Ve,U3e,!0);for(let St=0;St{let St=rY+b++;_.set(Ze,St),Ve.forEach(ti=>La(ti,St))});let E=[],w=new Set,T=new Set;for(let Ve=0;Vew.add(ti)):T.add(Ze))}let N=new Map,F=eY(h,Array.from(w));F.forEach((Ve,Ze)=>{let St=aL+b++;N.set(Ze,St),Ve.forEach(ti=>La(ti,St))}),t.push(()=>{m.forEach((Ve,Ze)=>{let St=_.get(Ze);Ve.forEach(ti=>E0(ti,St))}),F.forEach((Ve,Ze)=>{let St=N.get(Ze);Ve.forEach(ti=>E0(ti,St))}),E.forEach(Ve=>{this.processLeaveNode(Ve)})});let O=[],Y=[];for(let Ve=this._namespaceList.length-1;Ve>=0;Ve--)this._namespaceList[Ve].drainQueuedTransitions(e).forEach(St=>{let ti=St.player,gn=St.element;if(O.push(ti),this.collectedEnterElements.length){let Ci=gn[Al];if(Ci&&Ci.setForMove){if(Ci.previousTriggersValues&&Ci.previousTriggersValues.has(St.triggerName)){let pi=Ci.previousTriggersValues.get(St.triggerName),Ot=this.statesByElement.get(St.element);if(Ot&&Ot.has(St.triggerName)){let Fn=Ot.get(St.triggerName);Fn.value=pi,Ot.set(St.triggerName,Fn)}}ti.destroy();return}}let uo=!u||!this.driver.containsElement(u,gn),ho=N.get(gn),$i=_.get(gn),Ae=this._buildInstruction(St,i,$i,ho,uo);if(Ae.errors&&Ae.errors.length){Y.push(Ae);return}if(uo){ti.onStart(()=>Af(gn,Ae.fromStyles)),ti.onDestroy(()=>Sc(gn,Ae.toStyles)),o.push(ti);return}if(St.isFallbackTransition){ti.onStart(()=>Af(gn,Ae.fromStyles)),ti.onDestroy(()=>Sc(gn,Ae.toStyles)),o.push(ti);return}let Di=[];Ae.timelines.forEach(Ci=>{Ci.stretchStartingKeyframe=!0,this.disabledNodes.has(Ci.element)||Di.push(Ci)}),Ae.timelines=Di,i.append(gn,Ae.timelines);let Xt={instruction:Ae,player:ti,element:gn};r.push(Xt),Ae.queriedElements.forEach(Ci=>Wr(a,Ci,[]).push(ti)),Ae.preStyleProps.forEach((Ci,pi)=>{if(Ci.size){let Ot=l.get(pi);Ot||l.set(pi,Ot=new Set),Ci.forEach((Fn,Xo)=>Ot.add(Xo))}}),Ae.postStyleProps.forEach((Ci,pi)=>{let Ot=c.get(pi);Ot||c.set(pi,Ot=new Set),Ci.forEach((Fn,Xo)=>Ot.add(Xo))})});if(Y.length){let Ve=[];Y.forEach(Ze=>{Ve.push(u3e(Ze.triggerName,Ze.errors))}),O.forEach(Ze=>Ze.destroy()),this.reportError(Ve)}let K=new Map,ve=new Map;r.forEach(Ve=>{let Ze=Ve.element;i.has(Ze)&&(ve.set(Ze,Ze),this._beforeAnimationBuild(Ve.player.namespaceId,Ve.instruction,K))}),o.forEach(Ve=>{let Ze=Ve.element;this._getPreviousPlayers(Ze,!1,Ve.namespaceId,Ve.triggerName,null).forEach(ti=>{Wr(K,Ze,[]).push(ti),ti.destroy()})});let ze=E.filter(Ve=>tY(Ve,l,c)),Te=new Map;JZ(Te,this.driver,T,c,Kr).forEach(Ve=>{tY(Ve,l,c)&&ze.push(Ve)});let kt=new Map;m.forEach((Ve,Ze)=>{JZ(kt,this.driver,new Set(Ve),l,Aw)}),ze.forEach(Ve=>{let Ze=Te.get(Ve),St=kt.get(Ve);Te.set(Ve,new Map([...Ze?.entries()??[],...St?.entries()??[]]))});let rt=[],Ki=[],ai={};r.forEach(Ve=>{let{element:Ze,player:St,instruction:ti}=Ve;if(i.has(Ze)){if(d.has(Ze)){St.onDestroy(()=>Sc(Ze,ti.toStyles)),St.disabled=!0,St.overrideTotalTime(ti.totalTime),o.push(St);return}let gn=ai;if(ve.size>1){let ho=Ze,$i=[];for(;ho=ho.parentNode;){let Ae=ve.get(ho);if(Ae){gn=Ae;break}$i.push(ho)}$i.forEach(Ae=>ve.set(Ae,gn))}let uo=this._buildAnimation(St.namespaceId,ti,K,s,kt,Te);if(St.setRealPlayer(uo),gn===ai)rt.push(St);else{let ho=this.playersByElement.get(gn);ho&&ho.length&&(St.parentPlayer=lh(ho)),o.push(St)}}else Af(Ze,ti.fromStyles),St.onDestroy(()=>Sc(Ze,ti.toStyles)),Ki.push(St),d.has(Ze)&&o.push(St)}),Ki.forEach(Ve=>{let Ze=s.get(Ve.element);if(Ze&&Ze.length){let St=lh(Ze);Ve.setRealPlayer(St)}}),o.forEach(Ve=>{Ve.parentPlayer?Ve.syncPlayerEvents(Ve.parentPlayer):Ve.destroy()});for(let Ve=0;Ve!uo.destroyed);gn.length?Y3e(this,Ze,gn):this.processLeaveNode(Ze)}return E.length=0,rt.forEach(Ve=>{this.players.push(Ve),Ve.onDone(()=>{Ve.destroy();let Ze=this.players.indexOf(Ve);this.players.splice(Ze,1)}),Ve.play()}),rt}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,o,s){let r=[];if(e){let a=this.playersByQueriedElement.get(t);a&&(r=a)}else{let a=this.playersByElement.get(t);if(a){let l=!s||s==hC;a.forEach(c=>{c.queued||!l&&c.triggerName!=o||r.push(c)})}}return(i||o)&&(r=r.filter(a=>!(i&&i!=a.namespaceId||o&&o!=a.triggerName))),r}_beforeAnimationBuild(t,e,i){let o=e.triggerName,s=e.element,r=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:o;for(let l of e.timelines){let c=l.element,d=c!==s,u=Wr(i,c,[]);this._getPreviousPlayers(c,d,r,a,e.toState).forEach(m=>{let _=m.getRealPlayer();_.beforeDestroy&&_.beforeDestroy(),m.destroy(),u.push(m)})}Af(s,e.fromStyles)}_buildAnimation(t,e,i,o,s,r){let a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(_=>{let b=_.element;d.add(b);let E=b[Al];if(E&&E.removedBeforeQueried)return new rh(_.duration,_.delay);let w=b!==l,T=J3e((i.get(b)||W3e).map(K=>K.getRealPlayer())).filter(K=>{let ve=K;return ve.element?ve.element===b:!1}),N=s.get(b),F=r.get(b),O=iY(this._normalizer,_.keyframes,N,F),Y=this._buildPlayer(_,O,T);if(_.subTimeline&&o&&u.add(b),w){let K=new gC(t,a,b);K.setRealPlayer(Y),c.push(K)}return Y});c.forEach(_=>{Wr(this.playersByQueriedElement,_.element,[]).push(_),_.onDone(()=>Q3e(this.playersByQueriedElement,_.element,_))}),d.forEach(_=>La(_,KZ));let m=lh(h);return m.onDestroy(()=>{d.forEach(_=>E0(_,KZ)),Sc(l,e.toStyles)}),u.forEach(_=>{Wr(o,_,[]).push(m)}),m}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new rh(t.duration,t.delay)}},gC=class{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new rh,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(o=>xL(t,i,void 0,o))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Wr(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function Q3e(n,t,e){let i=n.get(t);if(i){if(i.length){let o=i.indexOf(e);i.splice(o,1)}i.length==0&&n.delete(t)}return i}function X3e(n){return n??null}function Nw(n){return n&&n.nodeType===1}function Z3e(n){return n=="start"||n=="done"}function YZ(n,t){let e=n.style.display;return n.style.display=t??"none",e}function JZ(n,t,e,i,o){let s=[];e.forEach(l=>s.push(YZ(l)));let r=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let h=t.computeStyle(c,u,o);d.set(u,h),(!h||h.length==0)&&(c[Al]=q3e,r.push(c))}),n.set(c,d)});let a=0;return e.forEach(l=>YZ(l,s[a++])),r}function eY(n,t){let e=new Map;if(n.forEach(a=>e.set(a,[])),t.length==0)return e;let i=1,o=new Set(t),s=new Map;function r(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:o.has(c)?l=i:l=r(c),s.set(a,l),l}return t.forEach(a=>{let l=r(a);l!==i&&e.get(l).push(a)}),e}function La(n,t){n.classList?.add(t)}function E0(n,t){n.classList?.remove(t)}function Y3e(n,t,e){lh(e).onDone(()=>n.processLeaveNode(t))}function J3e(n){let t=[];return pY(n,t),t}function pY(n,t){for(let e=0;eo.add(s)):t.set(n,i),e.delete(n),!0}var D0=class{constructor(t,e,i,o){this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new bL(t.body,e,i,o),this._timelineEngine=new vL(t.body,e,i),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(t,e,i,o,s){let r=t+"-"+o,a=this._triggerCache[r];if(!a){let l=[],c=[],d=cY(this._driver,s,l,c);if(l.length)throw e3e(o,l);c.length&&void 0,a=V3e(o,d,this._normalizer),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,o,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,o){this._transitionEngine.insertNode(t,e,i,o)}onRemove(t,e,i){this._transitionEngine.removeNode(t,e,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,o){if(i.charAt(0)=="@"){let[s,r]=UZ(i),a=o;this._timelineEngine.command(s,e,r,a)}else this._transitionEngine.trigger(t,e,i,o)}listen(t,e,i,o,s){if(i.charAt(0)=="@"){let[r,a]=UZ(i);return this._timelineEngine.listen(r,e,a,s)}return this._transitionEngine.listen(t,e,i,o,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function txe(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=rL(t[0]),t.length>1&&(i=rL(t[t.length-1]))):t instanceof Map&&(e=rL(t)),e||i?new SL(n,e,i):null}var w0=class w0{constructor(t,e,i){this._element=t,this._startStyles=e,this._endStyles=i,this._state=0;let o=w0.initialStylesByElement.get(t);o||w0.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Sc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Sc(this._element,this._initialStyles),this._endStyles&&(Sc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(w0.initialStylesByElement.delete(this._element),this._startStyles&&(Af(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Af(this._element,this._endStyles),this._endStyles=null),Sc(this._element,this._initialStyles),this._state=3)}};w0.initialStylesByElement=new WeakMap;var SL=w0;function rL(n){let t=null;return n.forEach((e,i)=>{ixe(i)&&(t=t||new Map,t.set(i,e))}),t}function ixe(n){return n==="display"||n==="position"}var Hw=class{constructor(t,e,i,o){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,o)=>{o!=="offset"&&t.set(o,this._finished?i:TL(this.element,o))}),this.currentSnapshot=t}triggerCallback(t){let e=t==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Uw=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return nY(t,e)}getParentElement(t){return wL(t)}query(t,e,i){return oY(t,e,i)}computeStyle(t,e,i){return TL(t,e)}animate(t,e,i,o,s,r=[]){let a=o==0?"both":"forwards",l={duration:i,delay:o,fill:a};s&&(l.easing=s);let c=new Map,d=r.filter(m=>m instanceof Hw);y3e(i,o)&&d.forEach(m=>{m.currentSnapshot.forEach((_,b)=>c.set(b,_))});let u=C3e(e).map(m=>new Map(m));u=x3e(t,u,c);let h=txe(t,u);return new Hw(t,u,l,h)}};var Ow="@",fY="@.disabled",jw=class{constructor(t,e,i,o){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=o,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,o=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,o)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,o){this.delegate.setAttribute(t,e,i,o)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,o){this.delegate.setStyle(t,e,i,o)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Ow&&e==fY?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}},yL=class extends jw{constructor(t,e,i,o,s){super(e,i,o,s),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Ow?e.charAt(1)=="."&&e==fY?(i=i===void 0?!0:!!i,this.disableAnimations(t,i)):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==Ow){let o=nxe(t),s=e.slice(1),r="";return s.charAt(0)!=Ow&&([s,r]=oxe(s)),this.engine.listen(this.namespaceId,o,s,r,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,i,a)})}return this.delegate.listen(t,e,i)}};function nxe(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function oxe(n){let t=n.indexOf("."),e=n.substring(0,t),i=n.slice(t+1);return[e,i]}var Kw=class{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=(o,s)=>{let r=s?.parentNode(o);r&&s.removeChild(r,o)}}createRenderer(t,e){let i="",o=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let c=this._rendererCache,d=c.get(o);if(!d){let u=()=>c.delete(o);d=new jw(i,o,this.engine,u),c.set(o,d)}return d}let s=e.id,r=e.id+"-"+this._currentId;this._currentId++,this.engine.register(r,t);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,r,t,c.name,c)};return e.data.animation.forEach(a),new yL(this,r,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){if(t>=0&&te(i));return}let o=this._animationCallbacksBuffer;o.length==0&&queueMicrotask(()=>{this._zone.run(()=>{o.forEach(s=>{let[r,a]=s;r(a)}),this._animationCallbacksBuffer=[]})}),o.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var rxe=(()=>{let t=class t extends D0{constructor(i,o,s){super(i,o,s,mt(C2,{optional:!0}))}ngOnDestroy(){this.flush()}};t.\u0275fac=function(o){return new(o||t)(q(ns),q(Rf),q(kf))},t.\u0275prov=Q({token:t,factory:t.\u0275fac});let n=t;return n})();function axe(){return new Fw}function lxe(n,t,e){return new Kw(n,t,e)}var gY=[{provide:kf,useFactory:axe},{provide:D0,useClass:rxe},{provide:kd,useFactory:lxe,deps:[uw,D0,oe]}],mY=[{provide:Rf,useFactory:()=>new Uw},{provide:A2,useValue:"BrowserAnimations"},...gY],cxe=[{provide:Rf,useClass:DL},{provide:A2,useValue:"NoopAnimations"},...gY],_Y=(()=>{let t=class t{static withConfig(i){return{ngModule:t,providers:i.disableAnimations?cxe:mY}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=he({type:t}),t.\u0275inj=pe({providers:mY,imports:[oZ]});let n=t;return n})();var vY=[];var CY={providers:[VZ(vY),a8([_Y])]};var bY=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=P({type:t,selectors:[["app-header"]],standalone:!0,features:[vn],decls:9,vars:0,consts:[[1,"navbar","d-flex","align-items-center","navbar-expand-lg","py-3","header"],[1,"container","d-flex","justify-content-between"],[1,"align-self-center"],[1,"mb-0","header-title"],[1,"profile-wrapper","d-flex","flex-column","align-self-center"],[1,"profile-image"],[1,"text-white-50"]],template:function(o,s){o&1&&(C(0,"nav",0)(1,"div",1)(2,"div",2)(3,"h1",3),se(4,"Grid/Charts Integration"),S()(),C(5,"div",4),A(6,"div",5),C(7,"div",6),se(8,"Collin Johnson"),S()()()())},styles:['.header[_ngcontent-%COMP%]{height:140px;background:url("./media/header-bg-RTKCRCAM.svg");background-position:bottom;background-repeat:no-repeat}.header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:200;color:#fff}.header[_ngcontent-%COMP%] .profile-wrapper[_ngcontent-%COMP%]{outline:none}.header[_ngcontent-%COMP%] .profile-image[_ngcontent-%COMP%]{align-self:center;width:58px;height:58px;border-radius:50%;background-image:url("./media/user-VKW2M6T3.jpg");background-size:cover;background-position:center}']});let n=t;return n})();var SY=(()=>{let t=class t{constructor(){this.currentYear=new Date().getFullYear()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=P({type:t,selectors:[["app-footer"]],standalone:!0,features:[vn],decls:5,vars:1,consts:[[1,"container-fluid","footer","text-center","d-flex","align-items-center"],[1,"w-100"],[1,"footer-copyright","text-center"],[1,"progress-logo","d-inline-flex"]],template:function(o,s){o&1&&(C(0,"footer",0)(1,"div",1)(2,"span",2),se(3),S(),A(4,"span",3),S()()),o&2&&(g(3),$t("Copyright \xA9 ",s.currentYear," Progress Software Corporation and/or its subsidiaries or affiliates."))},styles:['.footer[_ngcontent-%COMP%]{position:fixed;bottom:0;padding:10px;background:url("./media/footer-bg-TKB66MLG.svg");background-repeat:no-repeat;background-size:cover;background-color:#00f;z-index:999;font-size:16px;color:#fff}.footer[_ngcontent-%COMP%] .progress-logo[_ngcontent-%COMP%]{width:100px;height:20px;vertical-align:middle;background-image:url("./media/progress-logo-OVRR5QZY.svg");background-position:center;background-repeat:no-repeat}']});let n=t;return n})();var $w=(()=>{class n{constructor(){this.changes=new Ii({rtl:void 0})}notify(e){this.changes.next({rtl:e})}get(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Q({token:n,factory:n.\u0275fac}),n})(),on=(()=>{class n{get override(){return!1}ngOnChanges(e){this.register(e),Object.keys(e).some(i=>!e[i].isFirstChange())&&this.service.notifyChanges()}ngOnInit(){this.subscription=this.service.changes.pipe(DN(1)).subscribe(()=>this.register(this))}register(e){Object.keys(e).forEach(o=>this.service.register(o,this[o],this.override))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=z({type:n,features:[Le]}),n})(),_C=new ot("Kendo UI Right-to-Left token"),Ct=new ot("Localization key prefix"),te=(()=>{class n{constructor(e,i,o){this.prefix=e,this.messageService=i,this._rtl=o,this.changes=new Ii({rtl:this._rtl}),this.dictionary={},i&&(this.subscription=i.changes.pipe(Me(({rtl:s})=>s!==void 0?s:this._rtl),at(s=>this._rtl=s)).subscribe(s=>{this.dictionary={},this.changes.next({rtl:s})}))}get rtl(){return this._rtl}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}get(e){let i=this.key(e);return this.dictionary[i]}register(e,i,o=!1){let s=this.key(e),r=i;if(!o){if(Object.hasOwnProperty.call(this.dictionary,s))return;r=this.defaultValue(s,i)}this.dictionary[s]=r}notifyChanges(){this.changes.next({rtl:this.rtl})}key(e){return this.prefix+"."+e}defaultValue(e,i){if(!this.messageService)return i;let o=this.messageService.get(e);return o===void 0?i:o}}return n.\u0275fac=function(e){return new(e||n)(q(Ct),q($w,8),q(_C,8))},n.\u0275prov=Q({token:n,factory:n.\u0275fac}),n})();var xY=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];(function(n,t){var e=function(i){for(;--i;)n.push(n.shift())};e(++t)})(xY,439);var ee=function(n,t){n=n-0;var e=xY[n];if(ee.aWziBr===void 0){var i=function(s){for(var r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",a=String(s).replace(/=+$/,""),l="",c=0,d,u,h=0;u=a.charAt(h++);~u&&(d=c%4?d*64+u:u,c++%4)?l+=String.fromCharCode(255&d>>(-2*c&6)):0)u=r.indexOf(u);return l};ee.XjGMHe=function(s){for(var r=i(s),a=[],l=0,c=r.length;l - + diff --git a/grid-live-data/main-3G7Q7IIZ.js b/grid-live-data/main-6CU3YNRZ.js similarity index 99% rename from grid-live-data/main-3G7Q7IIZ.js rename to grid-live-data/main-6CU3YNRZ.js index 7ec91bb0..559c4d6c 100644 --- a/grid-live-data/main-3G7Q7IIZ.js +++ b/grid-live-data/main-6CU3YNRZ.js @@ -19,7 +19,7 @@ ${e.map((i,o)=>`${o+1}) ${i.toString()}`).join(` zIndex: 101; pointerEvents: none; backgroundImage: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuLL9Q/NeCkoVUQ4/d+6Ijev1yof1rAUVMvQgjJHebrSRu+CEmWo/O8hISgCjStKpgiGoDWed4AUP/hwGf++Pi4hQYyFHgDzBP3T7A8b0uo/zD4+sMBy1CwWKR/YjF+fS/Uv2di0t/eEAdBT0QnvlD/PolR/xoOgu4JUd7bFdS/e6I1foODoFuqz3M2mUziFF+of5dEb/xGwyAYCwmCVuPNYv5MqX94Yl75NWKD4PLyEm92KqQoqH9Y8Bnis0zC+A14LbxxVqiVCfUPh678plxNFYQe5pjRgAgpDAv4IOAHJyCEkDJoiPaeCyG5UA1oRIYWHNivSSbV0wLq/zbQXz+bS8kV/AeZJ35NCcYPqH8zvv4VS8kVFou8phTjB9T/NcVt+zgI9rjQDRwTgPrvKcn5v4CDYIfT/vtFiS/UHxRr/AYHwQ4t9DiVwihZ/+KN36ATKJsS9U+utr9r/EGQdQSUNFKa/geZkImQ/2rHlznnQDG7oX9b9Xwl5AUl6G9oLcSSxl8Q/p4P13YJIaQMisvzEkJ2lJjnJyQY3lnoJGfNUvP8oUhZf7c70s2eCG1wL7uhRJ0iQnCveiDIhzf7t/f9IvP8IUhJfx/b9rErUkvgRVPIE1fv6xrvbzweu7OzM3d7e4v3OhfSilT092HMJzCxF4u43eWctfFvt1uHu9nxXvF1CWmtroldfx9W+HVErINAjX+M65ngAPxnOAJ1AiMhrUjBCdD4Oya2QYBlPwx8vV47WwFg+a+XZbrz83NzANz/ByBmJ0Dj74lYBgECfrbnt6U/DB/vC7388L2rqyu8vzshwYjRCdD4e8YfBLidVgYA0X7M9jB8PGazmbu5ualnfiz9dSAsufwPTwz6+5jjp/H3CD5ofPB9343u9v3u6+U+0jyY7eEA8Hx3d4c/QjvvMyGdMZT+TeA9wBHR+DPHUn3T6bRe7uMxn89tn18v/TH7O17gQEheYM9vEX7M9hbsg/FbHED3/IPPSISQgNhyE0au+7x7PPtOQFcB3PMTMjTYf4cyRN3zL2DgMHgs/7XU99acgDIWEgUh9W/4uWMh8QKBvCh8qxSR7fmxt0eEv8kJ6MzP8/2REFL/g59bp/o0xsMAb6xAnBB5Yr+6D3X9KOpBxP/ACWA0jFnoEw+h9D/4mYd5/pGQeAlRLFK95tJy+35578PDQ+0E9LAPi3wixAUsFmKRT6I0DIIPzdJuf6R3i+UeZnsz/nqjPx47/fMpZ/54OVb/g5/BZi4pY4Pgo8s2d3CkF0Z/cXFRL/+Xy2W9BdBUH4/5JsBn9W94PZu5pI77QzMOjepiNp/j71hO//fv31sr7qmtfT73i3xWjnvAZHhH/4nquXrLwB2bueSJ27Vmvodhq4df4BmzvQb3IPxWl/zgRl/DwZA4GrhdYFUHfbHE1y0enXsJ2FLfCnggvjqBejDoTI8o38ocgJAscNq8BY4fv/Uf+J46gjkdQcbA+19fXzs7zQfR8TWcgH+kFw/u+fMDKz/o3OQETk9PLcWLPSBbeeWELd91eb+CcTc5gXr6r9J8PNKbF/7S3z+6DYcvDasBOv6M0GUduNDfv+cEYPhjIVmA+I3Vc4gaOQzfHAECvb4joAPICCzlrIJP93h/dAIYDBQ/L8wBNC37rXUblv5CB5AfGvi5h6F7Ed9GJ2CZP0b780O1vreVnnhOAFsBOoCMscg/HMBbTsCO+grJFkvvHmYCSnYA/5MMcbsiH6TykNgfr9fry58/f0oltFxcXMj379+l+h42gBcnJyfr6iXfq1nhJ56FZIeuAq+fn59Xv379Oq0CgVJNBEIydAAavLv98ePHeSX4bfX1OQSv9noQ/a7y9A8HTuAcTqB63FSPZyE5Mq3GwOW3b99kNpu9+5e/fv2Kp3+FpAW8vB3cwbLOOvZYfl9LfGdW9KOn+mZCskZXhCuL9vtLfjvshd97hWArpn8TxGn5rhZzOL/gB19DYBzzxcEeTQEtGfArB7c7xbmyVu4YExoTuNcYEL6eCkkTxHYOmna4wzQfvq8z/+o949e940hIkjTp5/ZXjm/1+VQfr856UP/EcLtqr9s/OQENDl5+wPhH3nHQZK6mJjucNvNo2w+A+icC0jaY4a2LT5MT+Mye3+l58JSupiY7XIA2XtQ/IZw2f7D9v+X6D53AZ/f8LqGrqckOF7CNF/VPAF3Or6xvv53r951Amx5+DYOAXWEjxXXQxov6R4zTSzusht8OfABE+r3U39y1iPbbIODVX3ED4/Tagk8kENQ/QiyaC1Fg7PX6frm0Mk6/wUOQ8l799+j9I0cDwcF1ov4R4Xbde2vjxi92ogsPzPrY92szD7buJiQn3K6+v17q2yxvlV1u3+TRAn4jIYTkAfbymOWx1AcwfHMEXp5/JISQ9PEDd867ohvGbvt+cwRe6+5ee7ltNpuVf7yYdA8+68fHxy0+exkY6t8RGnSxJX19yAd7fWvhjEs7NOCHb2D9/+AGqO3HQGSeuD/8PD/GggwM9e8IBPCwr7ciHnzA6NrqtW5+4QRkIByLRXrDRXhXH/XvCKRccEuPX8mHD9jr7Vc7AV32D9rJh4Oge2I0foP6d8QHnADO9kdxYw8HQXfEbPwG9e+It5yAlvdG1beNgyA8KRi/Qf07oskJIEYQw8x/SMMgGAs5CmR0UjF+g/oHwh00YzAn0OZgT1/YINBU5VTIUeCzw2eYivEb1L8l7o1mDm7X220a48x/iNtVLE4dC5OOxu2794wlMaj/kbgAzRwIIQmS4p6PEBKIp6enexo/IYWCPdNms1nnbPxat7BwvH/+P7Dt08/kUjKH+hcOxGeeeI8f86lYSuZQ/8JhsciehoBv9rMi9VdcwZcucBCkVeEXmuL1dy0vbciBkgdBycZvFKs/8/x7ShwENP49xelP8V9T0iBgncdritGfxv82/iDIORJ+EAGfCKnJXn8a//to7fgy51y45sCX1P812erPZR8hBVMZ/Ax9+2j8hBSIHumcpXikkxBCBsXtz8QnUyXndvfz8Sx8AFLUnwTEveyKE32KyAK+7IYThqT0V88/o+cPBz7TVPLEJdb2d00y+pv4elHHTEgwUigWYaq3O6LXn56/e2IeBDT+7olWf4rfHzEOAurfH9HpT/H7J6ZBQP37Jxr9Kf5w+IMAt9PKQOB6NurfP4Prjyg/jX9Y8JnDAHE/vQwE/m0MQOrfP4PqX/3jp15Dj4kQQspCK5SK7OZDCCGEEBIfbneH4kgCoT9vLCQJguqPaD8CDdXzlZDogaEuFotgKSLL9uBnYmAJiZqg+vupPlzbJSR6YKSh8sSODVyTI5j+LO9NlxDFIqzzSJfW+jPPnz4Ng+DDGRvqnz5t9GeePxNsEHx2+U798+BY/e3FzPNnwLE6Uv88oI6EEEIIIYQQQgghhBBCCCGEEEIIIYQQQkiRoHyQxz/T51gdqX8evKfjlzdeNHp4eFjp15OTk5N/hCQHjoFWOt7o139VOj5/8HXUPwOO1f+/02ApXEhJmmnTzIP6p49r28wlRFMJMgwhmnlQ/3RB854g/RwaBgF7wkVOyGYe1D9N0L4vWDMXGwTaFHIsJGpgpF5TyIm0hPqnR6XTdLPZrF2oZi7aVIDePxFgqCH1ov6EEEIIITHRtl7jixBCkuToPH8ocGMQrihmiqh/8Jnjau6hrwen/sPQOs8fAgxA5on7xxcfBigDQf2HIUSdR6g3wmKRnolGfKH+QxCT/vaGOAh6Ijrxhfr3SYz613AQdE+04gv174Ng5b1dwUHQHTEbv0H9u6X6PGeTySTu69oaBsFYSCui9/we1L87tBpzFv1naoPg8vISA2AqpBX4DPFZxm78BvUn9awF8R07yrRGPf80pdmU+hNCyJHoYa4ZHSghhWEBXwT84ASEEFIGDdmec8mJ6j+EyNAiu/9YACC+fjaXkinU/21SSPW2BuIzT/waX/yKpWQK9W+mCOMHLBZ5TfbLPg/q/5pijN/gINhTnPhC/X1cwAauScFBUKbxG9R/h9P7F0rTv6bkQVCy8Rt0Aju00OtUSqTEQZBSbX/X0AmQF4Mg5wi4cRAJn0jhlKY/aUBrx5c558ANzYUvafx7StAfqxv0UKyer4QQUg5+zAfXdgkhpAxKqvMghHgUm+cPhdufhU/Oa+qRTp6Jb0HK+oOi8/whcC+74SSTIrJlH7vitCMl/RHcqx4I8uHN/u19v9w8f1swi6aWJ+aeLxyp6F+9r2u8v/F47M7Oztzt7S3e61xIe1IqFmGFX3hi19/tLuesjX+73brFYlG/V3xdQlq7F1JwAjT+7ohVfzX+Ma5ngwPwn+EI1AmMhLQnZidA4++e2PTHsh8Gvl6vna0AsPzXy1Ld+fm5OQDu/0MRoxOg8fdHLPoj4Gd7flv6w/DxvtDLD9+7urrC+7sTEhZ/EOB2WhkYE57G3w8x6I9oP2Z7GD4es9nM3dzc1DM/lv46FpZc/ncEBgEMD7XVMjB4DxiINP7+GEp/t7/voF7uI0WJ2R4OAM93d3f4I7TzPhNCSD5Yqm86ndbLfTzm87nt8+ulP2Z/x+vQCMkL7Pktwo/Z3oJ9MH6LA+ief/AVKSEkILbdgJHr3v4ez74T0FUA9/wxgP1XF0Lozx0LiZqQ+uuefwEDh8Fj+a+lvrfmBJSxkOGBEF4UNliKyFJ9usdjgCdSQupve37s7RHhb3ICOvPzfH8swDhD54kb8vwjIVESSn+/ug91/SjqQcT/wAlgNhiz0CcyQhaLsMgnPULoX73m0nL7fnnvw8ND7QT0sA+LfGKlYRB82ks7NnNIlmP1d/sjvVtsJTDbm/HXG/3x2OmfTznzR44NgmOX7Y7NHJLms/q7gyO9MPqLi4t6+b9cLustgKb6eMw3FdwfmjFggKg3X71l4I7NHJLmHf3PVPs5/o7l9H///r214p7a2udzv8hn5RgDShsN3Czg1SE4lom6xKO4heB2rdnvYdi6QljgGbO9BvfgOLa65Ac3+hpOBinjtHkDhMdv/Qe+p45gTkeQL7bUtwIeaK5OoJ4MdKZHlG9lDkBIPsDzQ/QmJ3B6emopHqwB2corQzDDX19fOzvNh7GAr+EE/CO9eHDPnxH+0t8/ugnBpWE1QOHzwpbvurxfwbibnEA9/VdpPh7pzQjs3yyfK2rkMHxzBAj0+I6ADiAvdFsHLvT37zkBGP5YSB6YA2ha9lvrJiz9hQ4gO7CVswo+jfH80QlgMqD2GaKC35unF88JYCtAB5AnGvi9h6F7GZ9GJ2CZP0b7M8XSO4eZADqAvLHIPxzAW07AjvpKYfxPCkBngevn5+fVr1+/TqtAoFQDQUieuF2RD1J5SOyP1+v15c+fP6Vy9HJxcSHfv3+X6nsIAF2cnJysq5d8r1YAP/EshVGEA6iYVkZ/+e3bN5nNZu/+5a9fv+LpXyHJocG72x8/fpxXDv+2+vocDr+K9cDp31UrvYcDJ3AOJ1A9bqrHs5D80BlhZdF+f8lvhz3we68QZMX0T3pglWcHd6Cjdeyx/L6W+M6s6EdP9c2ElIHbneJaWStnFIRoTOBe94D4eiokSZyW72oxl/MLfvA1jB6642CPpoCXDPhljO79RwffG6kj2OrzqT5e1Xo3vZ7EC2K7B0073GGaD9/XmX/1nvFT/4Rx2syjbT+AIW+gIZ/D7ao9b//kBDQ4ePkB46f+qeICtPFy2g8gpavJSwZpW8zw1sWnyQl8Zs9P/RPFBWzj5RK6mrxkTCfb/1uu/9AJfHbPT/0Tw3XQxqthELArcETocn5lffvtXL/vBNr08KP+CQFxvLbQEwmEDQJe/RQXTi/tsBp+O/AFEOn3Un9z1yLaT/0TQgNBwb20Zg/o/SPBsjkwShh7vb5fLq2M22/wEqS8V/+9sRBChsXtuvfWxo1f7EQnHpj1se/XZh5s3U1ITrhdfX+91LdZ3io73b7JqwX8RkIIyQPs5THLY6kPYPjmCLw8/0hI3iAd8/j4uN1sNisZGLwH/3gpCYcfuHPeFd0wdtv3myPwWnf32suR+veMn+fHBy8DA0fEPHF4NOhmS/r6kA/2+tbCHZd2aMAP38D6/8ENUNtP/XvERXhXn2OxSCcggId9vRXx4LNF12avdfsLJyADQf17IkbjNzgIwoOUK27p8Sv58Nl6vf1qJ6DL/kE7+VD/jonZ+A0OgvB8wAngbH8UN/ZQ/45IwfgNDoLwvOUEtLw3qr6N1D8wiOimYvxGwyAYC2lFkxNAjCCGmf8Q6h8QRHeR7knF+A0bBJqqmgr5NO6gGYc5gTYHe/qC+gfC7bv3jCUx3K5ibepYmPJp3BvNXNyut+M0xpn/EOpPyBG4AM1cCCEJkmLMhxASiKenp3saf4Fg2Vc9FsjpSuZo3hr/115r1lMAe+bNZrPO2fip/wH+nq9iKZkD8ZknLhfq79EQ8MneK7JYpGyov5JShV9oOAjKvnSjeP1LNn6j5EHgWl7akgPF6k/j31PiIGCef09x+jPP+5qSBgGd/2uKcgIHEdCJkBp/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg=='); -`,lCe={display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:"16px",right:"16px",padding:"12px",borderRadius:"4px",boxShadow:"0px 4px 5px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.03)",fontSize:"14px",fontWeight:400,lineHeight:"20px",backgroundColor:"#FFC000",color:"#1E1E1E",zIndex:999},cCe={display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"},dCe="https://www.telerik.com/kendo-angular-ui/components/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-banner",Xq=!1,ma=(()=>{class n{constructor(){this.watermarkStyle=aCe,this.isOpen=!0,this.bannerMounted=!1,this.bannerStyles=lCe,this.buttonStyles=cCe,this.licenseKeyUrl=dCe}ngOnInit(){Xq||(this.bannerMounted=!0,Xq=!0)}ngAfterViewInit(){this.isBannerRendered&&document.body.appendChild(this.banner.nativeElement)}ngOnDestroy(){this.isBannerRendered&&document.body.removeChild(this.banner.nativeElement)}closeBanner(){this.isOpen=!1}get isBannerRendered(){return ae()&&this.banner&&this.banner.nativeElement}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=O({type:n,selectors:[["div","kendoWatermarkOverlay",""]],viewQuery:function(e,i){if(e&1&&oe($2e,5),e&2){let o;R(o=k())&&(i.banner=o.first)}},hostVars:2,hostBindings:function(e,i){e&2&&lg(i.watermarkStyle)},attrs:W2e,decls:1,vars:1,consts:[[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],["banner",""],["width","16","height","16","viewBox","0 0 16 16","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z","fill","#1E1E1E"],[3,"href","ngStyle"],["title","Learn More",3,"ngStyle"],["d","M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z","fill","#1E1E1E"],["title","Close",3,"ngStyle","click"],["d","M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z","fill","#1E1E1E"]],template:function(e,i){e&1&&E(0,Z2e,15,10,"div",0),e&2&&h("ngIf",i.isOpen&&i.bannerMounted)},dependencies:[me,Ni],encapsulation:2}),n})(),or=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ce({type:n}),n.\u0275inj=de({imports:[[we]]}),n})(),uCe=["telerik.com","progress.com","stackblitz.io","csb.app"];function ga(n){return!uCe.some(e=>globalThis.document?.location.hostname.endsWith(e))&&!n}var Up=(()=>{class n{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return n.\u0275fac=function(e){return new(e||n)(f(_e,8))},n.\u0275dir=P({type:n,selectors:[["","kendoPrefixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),n})(),Hp=(()=>{class n{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return n.\u0275fac=function(e){return new(e||n)(f(_e,8))},n.\u0275dir=P({type:n,selectors:[["","kendoSuffixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),n})(),fx=(()=>{class n{constructor(){this.orientation="vertical",this.hostClass=!0}get vertical(){return this.orientation==="vertical"}get horizontal(){return this.orientation==="horizontal"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=O({type:n,selectors:[["kendo-separator"]],hostVars:6,hostBindings:function(e,i){e&2&&U("k-input-separator-vertical",i.vertical)("k-input-separator-horizontal",i.horizontal)("k-input-separator",i.hostClass)},inputs:{orientation:"orientation"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),ss=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ce({type:n}),n.\u0275inj=de({}),n})(),Fs=class{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},hCe=()=>ae()&&document.createElement,pCe="--kendo-scrollbar-width",fCe=()=>{let n=0;if(hCe()){let t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),n=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return n},iQ=(()=>{class n{constructor(){this.changes=new b,typeof window<"u"&&ae()&&document.body.style.setProperty(pCe,`${fCe()}px`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=j({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var mx=(()=>{class n{constructor(){this.changes=new wi({rtl:void 0})}notify(e){this.changes.next({rtl:e})}get(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=j({token:n,factory:n.\u0275fac}),n})(),Yi=(()=>{class n{get override(){return!1}ngOnChanges(e){this.register(e),Object.keys(e).some(i=>!e[i].isFirstChange())&&this.service.notifyChanges()}ngOnInit(){this.subscription=this.service.changes.pipe(UM(1)).subscribe(()=>this.register(this))}register(e){Object.keys(e).forEach(o=>this.service.register(o,this[o],this.override))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=P({type:n,features:[Le]}),n})(),o2=new Ue("Kendo UI Right-to-Left token"),_t=new Ue("Localization key prefix"),Y=(()=>{class n{constructor(e,i,o){this.prefix=e,this.messageService=i,this._rtl=o,this.changes=new wi({rtl:this._rtl}),this.dictionary={},i&&(this.subscription=i.changes.pipe(De(({rtl:s})=>s!==void 0?s:this._rtl),it(s=>this._rtl=s)).subscribe(s=>{this.dictionary={},this.changes.next({rtl:s})}))}get rtl(){return this._rtl}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}get(e){let i=this.key(e);return this.dictionary[i]}register(e,i,o=!1){let s=this.key(e),r=i;if(!o){if(Object.hasOwnProperty.call(this.dictionary,s))return;r=this.defaultValue(s,i)}this.dictionary[s]=r}notifyChanges(){this.changes.next({rtl:this.rtl})}key(e){return this.prefix+"."+e}defaultValue(e,i){if(!this.messageService)return i;let o=this.messageService.get(e);return o===void 0?i:o}}return n.\u0275fac=function(e){return new(e||n)(H(_t),H(mx,8),H(o2,8))},n.\u0275prov=j({token:n,factory:n.\u0275fac}),n})();var gi=n=>n!=null,Og=n=>n==null,Lg=n=>Array.isArray(n),c8=n=>typeof n=="function",jp=n=>typeof n=="string";var mCe=n=>Og(n)||n.trim().length===0,d8=n=>!mCe(n),dd=n=>!isNaN(n-parseFloat(n)),ul=n=>n&&n.getTime;var rs=n=>gi(n.filters);var s2=(n,t,e)=>i=>n(i)?t(i):e(i),zs=(...n)=>t=>n.reduceRight((e,i)=>i(e),t),nQ=n=>()=>n;var u8=n=>new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));var h8=n=>ul(n.value);var gCe=n=>({"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"})[n.toLowerCase()]||n,oQ=n=>{n.filters&&(n.filters=n.filters.map(t=>{let e=Object.assign({},t);return!rs(t)&&jp(t.operator)&&(e.operator=gCe(t.operator)),rs(t)&&oQ(e),e}))},_Ce=n=>rs(n)?Object.assign({},n):{filters:Lg(n)?n:[n],logic:"and"},Pg=n=>(gi(n)&&(n=_Ce(n),oQ(n)),n);var Hct=nQ("");var r2={},yCe=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;r2.undefined=n=>n;var as=(n,t)=>{let e=n+t;if(r2[e])return r2[e];let i=[];return n.replace(yCe,(o,s,r,a)=>{i.push(gi(s)?s:r||a)}),r2[e]=o=>{let s=o;for(let r=0;rt=>[n,t],ECe=()=>null,xCe=n=>gi(n)&&Lg(n)&&n.length>0,p8=n=>t=>gi(n(t)),rQ=n=>t=>xCe(n(t)),l2=(n,t)=>s2(n,t,ECe),DCe=({skip:n,take:t})=>Math.floor((n||0)/t)+1,f8=(n,t)=>e=>n(e).map(t).join("~"),wCe=n=>t=>t.slice(0,t.indexOf(n)),ICe=n=>zs(...n.map(([t,e])=>i=>i.replace(new RegExp(t,"g"),e))),ACe=ICe([['"',""],[":","-"]]),TCe=wCe("."),aQ=({field:n,dir:t="asc"})=>`${n}-${t}`,MCe=({field:n,aggregate:t})=>`${n}-${t}`,lQ=as("take"),cQ=as("aggregates"),RCe=as("skip"),dQ=as("group"),m8=as("sort",!0),kCe=f8(m8,aQ),NCe=f8(dQ,aQ),OCe=f8(cQ,MCe),LCe=n=>`datetime'${n}'`,PCe=zs(LCe,TCe,ACe,JSON.stringify,u8),FCe=({field:n,value:t,ignoreCase:e,operator:i})=>({value:PCe(t),field:n,ignoreCase:e,operator:i}),zCe=n=>Object.assign({},n,{sort:(m8(n)||[]).filter(({dir:t})=>d8(t))}),VCe=zs(a2("page"),DCe),GCe=zs(a2("pageSize"),lQ),BCe=zs(a2("group"),NCe),UCe=zs(a2("sort"),kCe),HCe=zs(a2("aggregate"),OCe),Jct=l2(p8(RCe),VCe),edt=l2(p8(lQ),GCe),tdt=l2(rQ(dQ),BCe),idt=l2(p8(cQ),HCe),ndt=zs(l2(rQ(m8),UCe),zCe);var sQ=({field:n,operator:t,value:e})=>`${n}~${t}~${e}`,odt=s2(h8,zs(sQ,FCe),sQ);var hQ=(n,t,e)=>(t[n]=e,t),jCe=n=>n.replace(/(^[A-Z])/g,(t,e)=>e.toLowerCase()),g8=n=>t=>{let e=t[n];return gi(e)?e:t[jCe(n)]},ldt=g8("Member"),cdt=g8("AggregateMethodName"),ddt=g8("Value"),pQ=n=>t=>Object.keys(t).reduce(n.bind(null,t),{}),KCe=pQ((n,t,e)=>hQ(e.toLowerCase(),t,n[e])),$Ce=pQ((n,t,e)=>hQ(e,t,KCe(n[e]))),uQ=(n,t)=>gi(n)?n:t,WCe=n=>({aggregates:n.Aggregates||n.aggregates,field:n.Member||n.member||n.field,hasSubgroups:n.HasSubgroups||n.hasSubgroups||!1,items:n.Items||n.items,value:uQ(n.Key,uQ(n.key,n.value))}),qCe=zs(({field:n,hasSubgroups:t,value:e,aggregates:i,items:o})=>({aggregates:$Ce(i),field:n,items:t?o.map(qCe):o,value:e}),WCe);var fQ=(n,t)=>Og(n)?n===t?0:-1:Og(t)?1:n.localeCompare?n.localeCompare(t):n>t?1:nfQ(t,n),XCe=n=>{if(typeof n.compare=="function")return n.compare;let t=as(n.field,!0);return(e,i)=>(n.dir==="asc"?fQ:QCe)(t(e),t(i))},ZCe=(n,t)=>0,_8=n=>n.filter(t=>gi(t.dir)||gi(t.compare)).map(t=>XCe(t)).reduce((t,e)=>(i,o)=>t(i,o)||e(i,o),ZCe);var YCe=n=>(n=gi(n)&&n.getTime?n.getTime():n,n+""),mQ=n=>{let t=as(n,!0),e=0;return(i,o)=>{i[n]=i[n]||{};let s=t(o),r=YCe(s),a=i[n][r]||{__position:e++,aggregates:{},items:[],value:s};return a.items.push(o),i[n][r]=a,i}},gQ=(n={})=>(Object.keys(n).forEach(t=>{let e=n[t];Object.keys(e).forEach(i=>{e[i]=e[i].result()})}),n),JCe=n=>({average:()=>{let t=0,e=0;return{calc:i=>{dd(i)?(t+=i,e++):t=i},result:()=>dd(t)?t/e:t}},count:()=>{let t=0;return{calc:()=>t++,result:()=>t}},max:()=>{let t=Number.NEGATIVE_INFINITY;return{calc:e=>{t=dd(t)||ul(t)?t:e,tt}},min:()=>{let t=Number.POSITIVE_INFINITY;return{calc:e=>{t=dd(t)||ul(t)?t:e,t>e&&(dd(e)||ul(e))&&(t=e)},result:()=>t}},sum:()=>{let t=0;return{calc:e=>{e=gi(e)?e:0,t+=e},result:()=>t}}})[n](),_Q=n=>{let t=n.map(e=>{let i=as(e.field,!0),o=(e.aggregate||"").toLowerCase(),s=as(o,!0);return(r,a)=>{let l=r[e.field]||{},c=s(l)||JCe(o);return c.calc(i(a)),l[e.aggregate]=c,r[e.field]=l,r}});return(e,i)=>t.reduce((o,s)=>s(o,i),e)},vQ=(n,t)=>(n.push(t),n),gx=n=>t=>(e,i,o)=>t(e,n(i,o)),v8=n=>t=>(e,i)=>n(i)?t(e,i):e,CQ=n=>gi(n.__value),ebe=n=>CQ(n)?n:{__value:n,reduced:!0},bQ=n=>t=>(e,i)=>n-- >0?t(e,i):ebe(e);var SQ=n=>t=>(e,i)=>n--<=0?t(e,i):e,Fg=(n,t,e)=>{let i=t;for(let o=0,s=e.length;on),C8=(n,t=[],e=tbe)=>{let i={};if(!t.length)return i;let o=Fg(e(_Q(t)),i,n);return gQ(o)};var ibe={or:{concat:(n,t)=>e=>n(e)||t(e),identity:()=>!1},and:{concat:(n,t)=>e=>n(e)&&t(e),identity:()=>!0}},nbe={contains:(n,t)=>(n||"").indexOf(t)>=0,doesnotcontain:(n,t)=>(n||"").indexOf(t)===-1,doesnotendwith:(n,t)=>(n||"").indexOf(t,(n||"").length-(t||"").length)<0,doesnotstartwith:(n,t)=>(n||"").lastIndexOf(t,0)===-1,endswith:(n,t)=>(n||"").indexOf(t,(n||"").length-(t||"").length)>=0,eq:(n,t)=>n===t,gt:(n,t)=>n>t,gte:(n,t)=>n>=t,isempty:n=>n==="",isnotempty:n=>n!=="",isnotnull:n=>gi(n),isnull:n=>Og(n),lt:(n,t)=>nn<=t,neq:(n,t)=>n!=t,startswith:(n,t)=>(n||"").lastIndexOf(t,0)===0},yQ=/^\/Date\((.*?)\)\/$/,obe=(n,t)=>{if(n!=null&&jp(n)){let e=yQ.exec(n);if(e)return new Date(+e[1]).getTime();if(t)return n.toLowerCase()}else if(n!=null&&ul(n))return n.getTime();return n},sbe=(n,t,e)=>{if(!gi(t))return n;let i=n;if(jp(t)){let o=yQ.exec(t);o?t=new Date(+o[1]):i=s=>{let r=n(s);return typeof r=="string"&&e?r.toLowerCase():dd(r)?r+"":r}}return ul(t)?o=>{let s=i(o);return ul(s)?s.getTime():s}:i},rbe=({field:n,ignoreCase:t,value:e,operator:i})=>{n=gi(n)?n:r=>r,t=gi(t)?t:!0;let o=sbe(c8(n)?n:as(n,!0),e,t);e=obe(e,t);let s=c8(i)?i:nbe[i];return r=>s(o(r),e,t)},b8=n=>{let t=ibe[n.logic];return n.filters.filter(gi).map(e=>rs(e)?b8(e):rbe(e)).reduce(t.concat,t.identity)};var _x=n=>!n||n.filters.length===0?()=>!0:b8(n),c2=(n,t)=>!gi(t)||rs(t)&&t.filters.length===0?n:n.filter(_x(Pg(t)));var vx=n=>(n=Lg(n)?n:[n],n.map(t=>Object.assign({dir:"asc"},t))),EQ=gx(n=>n),Kp=(n,t=[],e=EQ,i=n)=>{if(t=vx(t),!t.length)return n;let o=t[0],s={},r=Fg(e(mQ(o.field)),s,n),a=[];return Object.keys(r).forEach(l=>{Object.keys(r[l]).forEach(c=>{let d=r[l][c],u={},p=i;gi(o.aggregates)&&(p=c2(i,{field:o.field,ignoreCase:!1,operator:"eq",value:d.value}),u=C8(p,o.aggregates)),a[d.__position]={aggregates:u,field:l,items:t.length>1?Kp(d.items,t.slice(1),EQ,p):d.items,value:d.value}})}),a};var d2=(n,t)=>{if(t.some(e=>gi(e.dir)||gi(e.compare))){n=n.slice(0);let e=_8(t);n.sort(e)}return n};var abe=(n,t)=>{let e=0;for(let i=0,o=n.length;it?n.filter(t):n,Cx=(n,t)=>{let{skip:e,take:i,filter:o,sort:s,group:r}=t,a=[...vx(r||[]),...s||[]];a.length&&(n=d2(n,a));let l=gi(o)&&v8.length,c=gi(r)&&r.length;if(!l&&!c)return{data:i?n.slice(e,e+i):n,total:n.length};let d,u=[],p;if(l?(p=_x(Pg(o)),d=abe(n,p),u.push(v8(p))):d=n.length,gi(e)&&gi(i)&&(u.push(SQ(e)),u.push(bQ(i))),u.length){let g=zs(...u);return{data:c?Kp(n,r,g,lbe(n,p)):Fg(g(vQ),[],n),total:d}}return{data:c?Kp(n,r):n,total:d}};var RQ=(()=>{let t=class t{constructor(i,o){this._renderer=i,this._elementRef=o,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(i,o){this._renderer.setProperty(this._elementRef.nativeElement,i,o)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};t.\u0275fac=function(o){return new(o||t)(f(re),f(X))},t.\u0275dir=P({type:t});let n=t;return n})(),kQ=(()=>{let t=class t extends RQ{};t.\u0275fac=(()=>{let i;return function(s){return(i||(i=Fi(t)))(s||t)}})(),t.\u0275dir=P({type:t,features:[ie]});let n=t;return n})(),wo=new Ue(""),cbe={provide:wo,useExisting:Te(()=>y8),multi:!0},y8=(()=>{let t=class t extends kQ{writeValue(i){this.setProperty("checked",i)}};t.\u0275fac=(()=>{let i;return function(s){return(i||(i=Fi(t)))(s||t)}})(),t.\u0275dir=P({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,s){o&1&&B("change",function(a){return s.onChange(a.target.checked)})("blur",function(){return s.onTouched()})},features:[ue([cbe]),ie]});let n=t;return n})(),dbe={provide:wo,useExisting:Te(()=>Wp),multi:!0};function ube(){let n=Yl()?Yl().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var hbe=new Ue(""),Wp=(()=>{let t=class t extends RQ{constructor(i,o,s){super(i,o),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!ube())}writeValue(i){let o=i??"";this.setProperty("value",o)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};t.\u0275fac=function(o){return new(o||t)(f(re),f(X),f(hbe,8))},t.\u0275dir=P({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(o,s){o&1&&B("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[ue([dbe]),ie]});let n=t;return n})();var oc=new Ue(""),E8=new Ue("");function NQ(n){return n!=null}function OQ(n){return Du(n)?Ii(n):n}function LQ(n){let t={};return n.forEach(e=>{t=e!=null?Oe(Oe({},t),e):t}),Object.keys(t).length===0?null:t}function PQ(n,t){return t.map(e=>e(n))}function pbe(n){return!n.validate}function FQ(n){return n.map(t=>pbe(t)?t:e=>t.validate(e))}function fbe(n){if(!n)return null;let t=n.filter(NQ);return t.length==0?null:function(e){return LQ(PQ(e,t))}}function x8(n){return n!=null?fbe(FQ(n)):null}function mbe(n){if(!n)return null;let t=n.filter(NQ);return t.length==0?null:function(e){let i=PQ(e,t).map(OQ);return LM(i).pipe(De(LQ))}}function D8(n){return n!=null?mbe(FQ(n)):null}function xQ(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function zQ(n){return n._rawValidators}function VQ(n){return n._rawAsyncValidators}function S8(n){return n?Array.isArray(n)?n:[n]:[]}function Sx(n,t){return Array.isArray(n)?n.includes(t):n===t}function DQ(n,t){let e=S8(t);return S8(n).forEach(o=>{Sx(e,o)||e.push(o)}),e}function wQ(n,t){return S8(t).filter(e=>!Sx(n,e))}var yx=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=x8(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=D8(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},Vg=class extends yx{get formDirective(){return null}get path(){return null}},Xn=class extends yx{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ex=class{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},gbe={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},wut=Gi(Oe({},gbe),{"[class.ng-submitted]":"isSubmitted"}),Gg=(()=>{let t=class t extends Ex{constructor(i){super(i)}};t.\u0275fac=function(o){return new(o||t)(f(Xn,2))},t.\u0275dir=P({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,s){o&2&&U("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[ie]});let n=t;return n})(),GQ=(()=>{let t=class t extends Ex{constructor(i){super(i)}};t.\u0275fac=function(o){return new(o||t)(f(Vg,10))},t.\u0275dir=P({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(o,s){o&2&&U("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[ie]});let n=t;return n})();var u2="VALID",bx="INVALID",zg="PENDING",h2="DISABLED";function BQ(n){return(wx(n)?n.validators:n)||null}function _be(n){return Array.isArray(n)?x8(n):n||null}function UQ(n,t){return(wx(t)?t.asyncValidators:n)||null}function vbe(n){return Array.isArray(n)?D8(n):n||null}function wx(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Cbe(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new Re(1e3,"");if(!i[e])throw new Re(1001,"")}function bbe(n,t,e){n._forEachChild((i,o)=>{if(e[o]===void 0)throw new Re(1002,"")})}var xx=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===u2}get invalid(){return this.status===bx}get pending(){return this.status==zg}get disabled(){return this.status===h2}get enabled(){return this.status!==h2}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(DQ(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(DQ(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(wQ(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(wQ(t,this._rawAsyncValidators))}hasValidator(t){return Sx(this._rawValidators,t)}hasAsyncValidator(t){return Sx(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=zg,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=h2,this.errors=null,this._forEachChild(i=>{i.disable(Gi(Oe({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Gi(Oe({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=u2,this._forEachChild(i=>{i.enable(Gi(Oe({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Gi(Oe({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===u2||this.status===zg)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?h2:u2}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=zg,this._hasOwnPendingAsyncValidator=!0;let e=OQ(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new b,this.statusChanges=new b}_calculateStatus(){return this._allControlsDisabled()?h2:this.errors?bx:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zg)?zg:this._anyControlsHaveStatus(bx)?bx:u2}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){wx(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=_be(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=vbe(this._rawAsyncValidators)}},$p=class extends xx{constructor(t,e,i){super(BQ(e),UQ(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){bbe(this,!0,t),Object.keys(t).forEach(i=>{Cbe(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let o=this.controls[i];o&&o.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,o)=>{i.reset(t?t[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((o,s)=>{i=e(i,o,s)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var f2=new Ue("CallSetDisabledState",{providedIn:"root",factory:()=>Ix}),Ix="always";function Sbe(n,t){return[...t.path,n]}function w8(n,t,e=Ix){HQ(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),xbe(n,t),wbe(n,t),Dbe(n,t),ybe(n,t)}function IQ(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Ebe(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Dx(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ybe(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function HQ(n,t){let e=zQ(n);t.validator!==null?n.setValidators(xQ(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=VQ(n);t.asyncValidator!==null?n.setAsyncValidators(xQ(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let o=()=>n.updateValueAndValidity();Dx(t._rawValidators,o),Dx(t._rawAsyncValidators,o)}function Ebe(n,t){let e=!1;if(n!==null){if(t.validator!==null){let o=zQ(n);if(Array.isArray(o)&&o.length>0){let s=o.filter(r=>r!==t.validator);s.length!==o.length&&(e=!0,n.setValidators(s))}}if(t.asyncValidator!==null){let o=VQ(n);if(Array.isArray(o)&&o.length>0){let s=o.filter(r=>r!==t.asyncValidator);s.length!==o.length&&(e=!0,n.setAsyncValidators(s))}}}let i=()=>{};return Dx(t._rawValidators,i),Dx(t._rawAsyncValidators,i),e}function xbe(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&jQ(n,t)})}function Dbe(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&jQ(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function jQ(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function wbe(n,t){let e=(i,o)=>{t.valueAccessor.writeValue(i),o&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function Ibe(n,t){n==null,HQ(n,t)}function KQ(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function Abe(n){return Object.getPrototypeOf(n.constructor)===kQ}function Tbe(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function $Q(n,t){if(!t)return null;Array.isArray(t);let e,i,o;return t.forEach(s=>{s.constructor===Wp?e=s:Abe(s)?i=s:o=s}),o||i||e||null}var Mbe={provide:Vg,useExisting:Te(()=>I8)},p2=Promise.resolve(),I8=(()=>{let t=class t extends Vg{constructor(i,o,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._directives=new Set,this.ngSubmit=new b,this.form=new $p({},x8(i),D8(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(i){p2.then(()=>{let o=this._findContainer(i.path);i.control=o.registerControl(i.name,i.control),w8(i.control,i,this.callSetDisabledState),i.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(i)})}getControl(i){return this.form.get(i.path)}removeControl(i){p2.then(()=>{let o=this._findContainer(i.path);o&&o.removeControl(i.name),this._directives.delete(i)})}addFormGroup(i){p2.then(()=>{let o=this._findContainer(i.path),s=new $p({});Ibe(s,i),o.registerControl(i.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(i){p2.then(()=>{let o=this._findContainer(i.path);o&&o.removeControl(i.name)})}getFormGroup(i){return this.form.get(i.path)}updateModel(i,o){p2.then(()=>{this.form.get(i.path).setValue(o)})}setValue(i){this.control.setValue(i)}onSubmit(i){return this.submitted=!0,Tbe(this.form,this._directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(i){return i.pop(),i.length?this.form.get(i):this.form}};t.\u0275fac=function(o){return new(o||t)(f(oc,10),f(E8,10),f(f2,8))},t.\u0275dir=P({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(o,s){o&1&&B("submit",function(a){return s.onSubmit(a)})("reset",function(){return s.onReset()})},inputs:{options:[ht.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ue([Mbe]),ie]});let n=t;return n})();function AQ(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function TQ(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var A8=class extends xx{constructor(t=null,e,i){super(BQ(e),UQ(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),wx(e)&&(e.nonNullable||e.initialValueIsDefault)&&(TQ(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){AQ(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){AQ(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){TQ(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Rbe={provide:Xn,useExisting:Te(()=>Bg)},MQ=Promise.resolve(),Bg=(()=>{let t=class t extends Xn{constructor(i,o,s,r,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new A8,this._registered=!1,this.name="",this.update=new b,this._parent=i,this._setValidators(o),this._setAsyncValidators(s),this.valueAccessor=$Q(this,r)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let o=i.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),KQ(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){w8(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){MQ.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let o=i.isDisabled.currentValue,s=o!==0&&dE(o);MQ.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?Sbe(i,this._parent):[i]}};t.\u0275fac=function(o){return new(o||t)(f(Vg,9),f(oc,10),f(E8,10),f(wo,10),f(Be,8),f(f2,8))},t.\u0275dir=P({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[ht.None,"disabled","isDisabled"],model:[ht.None,"ngModel","model"],options:[ht.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ue([Rbe]),ie,Le]});let n=t;return n})(),WQ=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=P({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let n=t;return n})();var qQ=new Ue(""),kbe={provide:Xn,useExisting:Te(()=>T8)},T8=(()=>{let t=class t extends Xn{set isDisabled(i){}constructor(i,o,s,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new b,this._ngModelWarningSent=!1,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=$Q(this,s)}ngOnChanges(i){if(this._isControlChanged(i)){let o=i.form.previousValue;o&&IQ(o,this,!1),w8(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}KQ(i,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&IQ(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_isControlChanged(i){return i.hasOwnProperty("form")}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(o){return new(o||t)(f(oc,10),f(E8,10),f(wo,10),f(qQ,8),f(f2,8))},t.\u0275dir=P({type:t,selectors:[["","formControl",""]],inputs:{form:[ht.None,"formControl","form"],isDisabled:[ht.None,"disabled","isDisabled"],model:[ht.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[ue([kbe]),ie,Le]});let n=t;return n})();var QQ=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ce({type:t}),t.\u0275inj=de({});let n=t;return n})();var qp=(()=>{let t=class t{static withConfig(i){return{ngModule:t,providers:[{provide:f2,useValue:i.callSetDisabledState??Ix}]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ce({type:t}),t.\u0275inj=de({imports:[QQ]});let n=t;return n})(),Qp=(()=>{let t=class t{static withConfig(i){return{ngModule:t,providers:[{provide:qQ,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:f2,useValue:i.callSetDisabledState??Ix}]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ce({type:t}),t.\u0275inj=de({imports:[QQ]});let n=t;return n})();var YQ=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];(function(n,t){var e=function(i){for(;--i;)n.push(n.shift())};e(++t)})(YQ,439);var Z=function(n,t){n=n-0;var e=YQ[n];if(Z.aWziBr===void 0){var i=function(s){for(var r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",a=String(s).replace(/=+$/,""),l="",c=0,d,u,p=0;u=a.charAt(p++);~u&&(d=c%4?d*64+u:u,c++%4)?l+=String.fromCharCode(255&d>>(-2*c&6)):0)u=r.indexOf(u);return l};Z.XjGMHe=function(s){for(var r=i(s),a=[],l=0,c=r.length;l{class n{constructor(){this.watermarkStyle=aCe,this.isOpen=!0,this.bannerMounted=!1,this.bannerStyles=lCe,this.buttonStyles=cCe,this.licenseKeyUrl=dCe}ngOnInit(){Xq||(this.bannerMounted=!0,Xq=!0)}ngAfterViewInit(){this.isBannerRendered&&document.body.appendChild(this.banner.nativeElement)}ngOnDestroy(){this.isBannerRendered&&document.body.removeChild(this.banner.nativeElement)}closeBanner(){this.isOpen=!1}get isBannerRendered(){return ae()&&this.banner&&this.banner.nativeElement}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=O({type:n,selectors:[["div","kendoWatermarkOverlay",""]],viewQuery:function(e,i){if(e&1&&oe($2e,5),e&2){let o;R(o=k())&&(i.banner=o.first)}},hostVars:2,hostBindings:function(e,i){e&2&&lg(i.watermarkStyle)},attrs:W2e,decls:1,vars:1,consts:[[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],["banner",""],["width","16","height","16","viewBox","0 0 16 16","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z","fill","#1E1E1E"],[3,"href","ngStyle"],["title","Learn More",3,"ngStyle"],["d","M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z","fill","#1E1E1E"],["title","Close",3,"ngStyle","click"],["d","M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z","fill","#1E1E1E"]],template:function(e,i){e&1&&E(0,Z2e,15,10,"div",0),e&2&&h("ngIf",i.isOpen&&i.bannerMounted)},dependencies:[me,Ni],encapsulation:2}),n})(),or=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ce({type:n}),n.\u0275inj=de({imports:[[we]]}),n})(),uCe=["telerik.com","progress.com","stackblitz.io","csb.app"];function ga(n){return!uCe.some(e=>globalThis.document?.location.hostname.endsWith(e))&&!n}var Up=(()=>{class n{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return n.\u0275fac=function(e){return new(e||n)(f(_e,8))},n.\u0275dir=P({type:n,selectors:[["","kendoPrefixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),n})(),Hp=(()=>{class n{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return n.\u0275fac=function(e){return new(e||n)(f(_e,8))},n.\u0275dir=P({type:n,selectors:[["","kendoSuffixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),n})(),fx=(()=>{class n{constructor(){this.orientation="vertical",this.hostClass=!0}get vertical(){return this.orientation==="vertical"}get horizontal(){return this.orientation==="horizontal"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=O({type:n,selectors:[["kendo-separator"]],hostVars:6,hostBindings:function(e,i){e&2&&U("k-input-separator-vertical",i.vertical)("k-input-separator-horizontal",i.horizontal)("k-input-separator",i.hostClass)},inputs:{orientation:"orientation"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),ss=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=ce({type:n}),n.\u0275inj=de({}),n})(),Fs=class{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}},hCe=()=>ae()&&document.createElement,pCe="--kendo-scrollbar-width",fCe=()=>{let n=0;if(hCe()){let t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",document.body.appendChild(t),n=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return n},iQ=(()=>{class n{constructor(){this.changes=new b,typeof window<"u"&&ae()&&document.body.style.setProperty(pCe,`${fCe()}px`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=j({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var mx=(()=>{class n{constructor(){this.changes=new wi({rtl:void 0})}notify(e){this.changes.next({rtl:e})}get(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=j({token:n,factory:n.\u0275fac}),n})(),Yi=(()=>{class n{get override(){return!1}ngOnChanges(e){this.register(e),Object.keys(e).some(i=>!e[i].isFirstChange())&&this.service.notifyChanges()}ngOnInit(){this.subscription=this.service.changes.pipe(UM(1)).subscribe(()=>this.register(this))}register(e){Object.keys(e).forEach(o=>this.service.register(o,this[o],this.override))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=P({type:n,features:[Le]}),n})(),o2=new Ue("Kendo UI Right-to-Left token"),_t=new Ue("Localization key prefix"),Y=(()=>{class n{constructor(e,i,o){this.prefix=e,this.messageService=i,this._rtl=o,this.changes=new wi({rtl:this._rtl}),this.dictionary={},i&&(this.subscription=i.changes.pipe(De(({rtl:s})=>s!==void 0?s:this._rtl),it(s=>this._rtl=s)).subscribe(s=>{this.dictionary={},this.changes.next({rtl:s})}))}get rtl(){return this._rtl}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}get(e){let i=this.key(e);return this.dictionary[i]}register(e,i,o=!1){let s=this.key(e),r=i;if(!o){if(Object.hasOwnProperty.call(this.dictionary,s))return;r=this.defaultValue(s,i)}this.dictionary[s]=r}notifyChanges(){this.changes.next({rtl:this.rtl})}key(e){return this.prefix+"."+e}defaultValue(e,i){if(!this.messageService)return i;let o=this.messageService.get(e);return o===void 0?i:o}}return n.\u0275fac=function(e){return new(e||n)(H(_t),H(mx,8),H(o2,8))},n.\u0275prov=j({token:n,factory:n.\u0275fac}),n})();var gi=n=>n!=null,Og=n=>n==null,Lg=n=>Array.isArray(n),c8=n=>typeof n=="function",jp=n=>typeof n=="string";var mCe=n=>Og(n)||n.trim().length===0,d8=n=>!mCe(n),dd=n=>!isNaN(n-parseFloat(n)),ul=n=>n&&n.getTime;var rs=n=>gi(n.filters);var s2=(n,t,e)=>i=>n(i)?t(i):e(i),zs=(...n)=>t=>n.reduceRight((e,i)=>i(e),t),nQ=n=>()=>n;var u8=n=>new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));var h8=n=>ul(n.value);var gCe=n=>({"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"})[n.toLowerCase()]||n,oQ=n=>{n.filters&&(n.filters=n.filters.map(t=>{let e=Object.assign({},t);return!rs(t)&&jp(t.operator)&&(e.operator=gCe(t.operator)),rs(t)&&oQ(e),e}))},_Ce=n=>rs(n)?Object.assign({},n):{filters:Lg(n)?n:[n],logic:"and"},Pg=n=>(gi(n)&&(n=_Ce(n),oQ(n)),n);var Hct=nQ("");var r2={},yCe=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;r2.undefined=n=>n;var as=(n,t)=>{let e=n+t;if(r2[e])return r2[e];let i=[];return n.replace(yCe,(o,s,r,a)=>{i.push(gi(s)?s:r||a)}),r2[e]=o=>{let s=o;for(let r=0;rt=>[n,t],ECe=()=>null,xCe=n=>gi(n)&&Lg(n)&&n.length>0,p8=n=>t=>gi(n(t)),rQ=n=>t=>xCe(n(t)),l2=(n,t)=>s2(n,t,ECe),DCe=({skip:n,take:t})=>Math.floor((n||0)/t)+1,f8=(n,t)=>e=>n(e).map(t).join("~"),wCe=n=>t=>t.slice(0,t.indexOf(n)),ICe=n=>zs(...n.map(([t,e])=>i=>i.replace(new RegExp(t,"g"),e))),ACe=ICe([['"',""],[":","-"]]),TCe=wCe("."),aQ=({field:n,dir:t="asc"})=>`${n}-${t}`,MCe=({field:n,aggregate:t})=>`${n}-${t}`,lQ=as("take"),cQ=as("aggregates"),RCe=as("skip"),dQ=as("group"),m8=as("sort",!0),kCe=f8(m8,aQ),NCe=f8(dQ,aQ),OCe=f8(cQ,MCe),LCe=n=>`datetime'${n}'`,PCe=zs(LCe,TCe,ACe,JSON.stringify,u8),FCe=({field:n,value:t,ignoreCase:e,operator:i})=>({value:PCe(t),field:n,ignoreCase:e,operator:i}),zCe=n=>Object.assign({},n,{sort:(m8(n)||[]).filter(({dir:t})=>d8(t))}),VCe=zs(a2("page"),DCe),GCe=zs(a2("pageSize"),lQ),BCe=zs(a2("group"),NCe),UCe=zs(a2("sort"),kCe),HCe=zs(a2("aggregate"),OCe),Jct=l2(p8(RCe),VCe),edt=l2(p8(lQ),GCe),tdt=l2(rQ(dQ),BCe),idt=l2(p8(cQ),HCe),ndt=zs(l2(rQ(m8),UCe),zCe);var sQ=({field:n,operator:t,value:e})=>`${n}~${t}~${e}`,odt=s2(h8,zs(sQ,FCe),sQ);var hQ=(n,t,e)=>(t[n]=e,t),jCe=n=>n.replace(/(^[A-Z])/g,(t,e)=>e.toLowerCase()),g8=n=>t=>{let e=t[n];return gi(e)?e:t[jCe(n)]},ldt=g8("Member"),cdt=g8("AggregateMethodName"),ddt=g8("Value"),pQ=n=>t=>Object.keys(t).reduce(n.bind(null,t),{}),KCe=pQ((n,t,e)=>hQ(e.toLowerCase(),t,n[e])),$Ce=pQ((n,t,e)=>hQ(e,t,KCe(n[e]))),uQ=(n,t)=>gi(n)?n:t,WCe=n=>({aggregates:n.Aggregates||n.aggregates,field:n.Member||n.member||n.field,hasSubgroups:n.HasSubgroups||n.hasSubgroups||!1,items:n.Items||n.items,value:uQ(n.Key,uQ(n.key,n.value))}),qCe=zs(({field:n,hasSubgroups:t,value:e,aggregates:i,items:o})=>({aggregates:$Ce(i),field:n,items:t?o.map(qCe):o,value:e}),WCe);var fQ=(n,t)=>Og(n)?n===t?0:-1:Og(t)?1:n.localeCompare?n.localeCompare(t):n>t?1:nfQ(t,n),XCe=n=>{if(typeof n.compare=="function")return n.compare;let t=as(n.field,!0);return(e,i)=>(n.dir==="asc"?fQ:QCe)(t(e),t(i))},ZCe=(n,t)=>0,_8=n=>n.filter(t=>gi(t.dir)||gi(t.compare)).map(t=>XCe(t)).reduce((t,e)=>(i,o)=>t(i,o)||e(i,o),ZCe);var YCe=n=>(n=gi(n)&&n.getTime?n.getTime():n,n+""),mQ=n=>{let t=as(n,!0),e=0;return(i,o)=>{i[n]=i[n]||{};let s=t(o),r=YCe(s),a=i[n][r]||{__position:e++,aggregates:{},items:[],value:s};return a.items.push(o),i[n][r]=a,i}},gQ=(n={})=>(Object.keys(n).forEach(t=>{let e=n[t];Object.keys(e).forEach(i=>{e[i]=e[i].result()})}),n),JCe=n=>({average:()=>{let t=0,e=0;return{calc:i=>{dd(i)?(t+=i,e++):t=i},result:()=>dd(t)?t/e:t}},count:()=>{let t=0;return{calc:()=>t++,result:()=>t}},max:()=>{let t=Number.NEGATIVE_INFINITY;return{calc:e=>{t=dd(t)||ul(t)?t:e,tt}},min:()=>{let t=Number.POSITIVE_INFINITY;return{calc:e=>{t=dd(t)||ul(t)?t:e,t>e&&(dd(e)||ul(e))&&(t=e)},result:()=>t}},sum:()=>{let t=0;return{calc:e=>{e=gi(e)?e:0,t+=e},result:()=>t}}})[n](),_Q=n=>{let t=n.map(e=>{let i=as(e.field,!0),o=(e.aggregate||"").toLowerCase(),s=as(o,!0);return(r,a)=>{let l=r[e.field]||{},c=s(l)||JCe(o);return c.calc(i(a)),l[e.aggregate]=c,r[e.field]=l,r}});return(e,i)=>t.reduce((o,s)=>s(o,i),e)},vQ=(n,t)=>(n.push(t),n),gx=n=>t=>(e,i,o)=>t(e,n(i,o)),v8=n=>t=>(e,i)=>n(i)?t(e,i):e,CQ=n=>gi(n.__value),ebe=n=>CQ(n)?n:{__value:n,reduced:!0},bQ=n=>t=>(e,i)=>n-- >0?t(e,i):ebe(e);var SQ=n=>t=>(e,i)=>n--<=0?t(e,i):e,Fg=(n,t,e)=>{let i=t;for(let o=0,s=e.length;on),C8=(n,t=[],e=tbe)=>{let i={};if(!t.length)return i;let o=Fg(e(_Q(t)),i,n);return gQ(o)};var ibe={or:{concat:(n,t)=>e=>n(e)||t(e),identity:()=>!1},and:{concat:(n,t)=>e=>n(e)&&t(e),identity:()=>!0}},nbe={contains:(n,t)=>(n||"").indexOf(t)>=0,doesnotcontain:(n,t)=>(n||"").indexOf(t)===-1,doesnotendwith:(n,t)=>(n||"").indexOf(t,(n||"").length-(t||"").length)<0,doesnotstartwith:(n,t)=>(n||"").lastIndexOf(t,0)===-1,endswith:(n,t)=>(n||"").indexOf(t,(n||"").length-(t||"").length)>=0,eq:(n,t)=>n===t,gt:(n,t)=>n>t,gte:(n,t)=>n>=t,isempty:n=>n==="",isnotempty:n=>n!=="",isnotnull:n=>gi(n),isnull:n=>Og(n),lt:(n,t)=>nn<=t,neq:(n,t)=>n!=t,startswith:(n,t)=>(n||"").lastIndexOf(t,0)===0},yQ=/^\/Date\((.*?)\)\/$/,obe=(n,t)=>{if(n!=null&&jp(n)){let e=yQ.exec(n);if(e)return new Date(+e[1]).getTime();if(t)return n.toLowerCase()}else if(n!=null&&ul(n))return n.getTime();return n},sbe=(n,t,e)=>{if(!gi(t))return n;let i=n;if(jp(t)){let o=yQ.exec(t);o?t=new Date(+o[1]):i=s=>{let r=n(s);return typeof r=="string"&&e?r.toLowerCase():dd(r)?r+"":r}}return ul(t)?o=>{let s=i(o);return ul(s)?s.getTime():s}:i},rbe=({field:n,ignoreCase:t,value:e,operator:i})=>{n=gi(n)?n:r=>r,t=gi(t)?t:!0;let o=sbe(c8(n)?n:as(n,!0),e,t);e=obe(e,t);let s=c8(i)?i:nbe[i];return r=>s(o(r),e,t)},b8=n=>{let t=ibe[n.logic];return n.filters.filter(gi).map(e=>rs(e)?b8(e):rbe(e)).reduce(t.concat,t.identity)};var _x=n=>!n||n.filters.length===0?()=>!0:b8(n),c2=(n,t)=>!gi(t)||rs(t)&&t.filters.length===0?n:n.filter(_x(Pg(t)));var vx=n=>(n=Lg(n)?n:[n],n.map(t=>Object.assign({dir:"asc"},t))),EQ=gx(n=>n),Kp=(n,t=[],e=EQ,i=n)=>{if(t=vx(t),!t.length)return n;let o=t[0],s={},r=Fg(e(mQ(o.field)),s,n),a=[];return Object.keys(r).forEach(l=>{Object.keys(r[l]).forEach(c=>{let d=r[l][c],u={},p=i;gi(o.aggregates)&&(p=c2(i,{field:o.field,ignoreCase:!1,operator:"eq",value:d.value}),u=C8(p,o.aggregates)),a[d.__position]={aggregates:u,field:l,items:t.length>1?Kp(d.items,t.slice(1),EQ,p):d.items,value:d.value}})}),a};var d2=(n,t)=>{if(t.some(e=>gi(e.dir)||gi(e.compare))){n=n.slice(0);let e=_8(t);n.sort(e)}return n};var abe=(n,t)=>{let e=0;for(let i=0,o=n.length;it?n.filter(t):n,Cx=(n,t)=>{let{skip:e,take:i,filter:o,sort:s,group:r}=t,a=[...vx(r||[]),...s||[]];a.length&&(n=d2(n,a));let l=gi(o)&&v8.length,c=gi(r)&&r.length;if(!l&&!c)return{data:i?n.slice(e,e+i):n,total:n.length};let d,u=[],p;if(l?(p=_x(Pg(o)),d=abe(n,p),u.push(v8(p))):d=n.length,gi(e)&&gi(i)&&(u.push(SQ(e)),u.push(bQ(i))),u.length){let g=zs(...u);return{data:c?Kp(n,r,g,lbe(n,p)):Fg(g(vQ),[],n),total:d}}return{data:c?Kp(n,r):n,total:d}};var RQ=(()=>{let t=class t{constructor(i,o){this._renderer=i,this._elementRef=o,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(i,o){this._renderer.setProperty(this._elementRef.nativeElement,i,o)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};t.\u0275fac=function(o){return new(o||t)(f(re),f(X))},t.\u0275dir=P({type:t});let n=t;return n})(),kQ=(()=>{let t=class t extends RQ{};t.\u0275fac=(()=>{let i;return function(s){return(i||(i=Fi(t)))(s||t)}})(),t.\u0275dir=P({type:t,features:[ie]});let n=t;return n})(),wo=new Ue(""),cbe={provide:wo,useExisting:Te(()=>y8),multi:!0},y8=(()=>{let t=class t extends kQ{writeValue(i){this.setProperty("checked",i)}};t.\u0275fac=(()=>{let i;return function(s){return(i||(i=Fi(t)))(s||t)}})(),t.\u0275dir=P({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,s){o&1&&B("change",function(a){return s.onChange(a.target.checked)})("blur",function(){return s.onTouched()})},features:[ue([cbe]),ie]});let n=t;return n})(),dbe={provide:wo,useExisting:Te(()=>Wp),multi:!0};function ube(){let n=Yl()?Yl().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var hbe=new Ue(""),Wp=(()=>{let t=class t extends RQ{constructor(i,o,s){super(i,o),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!ube())}writeValue(i){let o=i??"";this.setProperty("value",o)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};t.\u0275fac=function(o){return new(o||t)(f(re),f(X),f(hbe,8))},t.\u0275dir=P({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(o,s){o&1&&B("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[ue([dbe]),ie]});let n=t;return n})();var oc=new Ue(""),E8=new Ue("");function NQ(n){return n!=null}function OQ(n){return Du(n)?Ii(n):n}function LQ(n){let t={};return n.forEach(e=>{t=e!=null?Oe(Oe({},t),e):t}),Object.keys(t).length===0?null:t}function PQ(n,t){return t.map(e=>e(n))}function pbe(n){return!n.validate}function FQ(n){return n.map(t=>pbe(t)?t:e=>t.validate(e))}function fbe(n){if(!n)return null;let t=n.filter(NQ);return t.length==0?null:function(e){return LQ(PQ(e,t))}}function x8(n){return n!=null?fbe(FQ(n)):null}function mbe(n){if(!n)return null;let t=n.filter(NQ);return t.length==0?null:function(e){let i=PQ(e,t).map(OQ);return LM(i).pipe(De(LQ))}}function D8(n){return n!=null?mbe(FQ(n)):null}function xQ(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function zQ(n){return n._rawValidators}function VQ(n){return n._rawAsyncValidators}function S8(n){return n?Array.isArray(n)?n:[n]:[]}function Sx(n,t){return Array.isArray(n)?n.includes(t):n===t}function DQ(n,t){let e=S8(t);return S8(n).forEach(o=>{Sx(e,o)||e.push(o)}),e}function wQ(n,t){return S8(t).filter(e=>!Sx(n,e))}var yx=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=x8(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=D8(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},Vg=class extends yx{get formDirective(){return null}get path(){return null}},Xn=class extends yx{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Ex=class{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},gbe={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},wut=Gi(Oe({},gbe),{"[class.ng-submitted]":"isSubmitted"}),Gg=(()=>{let t=class t extends Ex{constructor(i){super(i)}};t.\u0275fac=function(o){return new(o||t)(f(Xn,2))},t.\u0275dir=P({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,s){o&2&&U("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[ie]});let n=t;return n})(),GQ=(()=>{let t=class t extends Ex{constructor(i){super(i)}};t.\u0275fac=function(o){return new(o||t)(f(Vg,10))},t.\u0275dir=P({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(o,s){o&2&&U("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[ie]});let n=t;return n})();var u2="VALID",bx="INVALID",zg="PENDING",h2="DISABLED";function BQ(n){return(wx(n)?n.validators:n)||null}function _be(n){return Array.isArray(n)?x8(n):n||null}function UQ(n,t){return(wx(t)?t.asyncValidators:n)||null}function vbe(n){return Array.isArray(n)?D8(n):n||null}function wx(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Cbe(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new Re(1e3,"");if(!i[e])throw new Re(1001,"")}function bbe(n,t,e){n._forEachChild((i,o)=>{if(e[o]===void 0)throw new Re(1002,"")})}var xx=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===u2}get invalid(){return this.status===bx}get pending(){return this.status==zg}get disabled(){return this.status===h2}get enabled(){return this.status!==h2}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(DQ(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(DQ(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(wQ(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(wQ(t,this._rawAsyncValidators))}hasValidator(t){return Sx(this._rawValidators,t)}hasAsyncValidator(t){return Sx(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=zg,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=h2,this.errors=null,this._forEachChild(i=>{i.disable(Gi(Oe({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Gi(Oe({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=u2,this._forEachChild(i=>{i.enable(Gi(Oe({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Gi(Oe({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===u2||this.status===zg)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?h2:u2}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=zg,this._hasOwnPendingAsyncValidator=!0;let e=OQ(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,o)=>i&&i._find(o),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new b,this.statusChanges=new b}_calculateStatus(){return this._allControlsDisabled()?h2:this.errors?bx:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zg)?zg:this._anyControlsHaveStatus(bx)?bx:u2}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){wx(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=_be(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=vbe(this._rawAsyncValidators)}},$p=class extends xx{constructor(t,e,i){super(BQ(e),UQ(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){bbe(this,!0,t),Object.keys(t).forEach(i=>{Cbe(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let o=this.controls[i];o&&o.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,o)=>{i.reset(t?t[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,o)=>((i.enabled||this.disabled)&&(e[o]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((o,s)=>{i=e(i,o,s)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var f2=new Ue("CallSetDisabledState",{providedIn:"root",factory:()=>Ix}),Ix="always";function Sbe(n,t){return[...t.path,n]}function w8(n,t,e=Ix){HQ(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),xbe(n,t),wbe(n,t),Dbe(n,t),ybe(n,t)}function IQ(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),Ebe(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Dx(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function ybe(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function HQ(n,t){let e=zQ(n);t.validator!==null?n.setValidators(xQ(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=VQ(n);t.asyncValidator!==null?n.setAsyncValidators(xQ(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let o=()=>n.updateValueAndValidity();Dx(t._rawValidators,o),Dx(t._rawAsyncValidators,o)}function Ebe(n,t){let e=!1;if(n!==null){if(t.validator!==null){let o=zQ(n);if(Array.isArray(o)&&o.length>0){let s=o.filter(r=>r!==t.validator);s.length!==o.length&&(e=!0,n.setValidators(s))}}if(t.asyncValidator!==null){let o=VQ(n);if(Array.isArray(o)&&o.length>0){let s=o.filter(r=>r!==t.asyncValidator);s.length!==o.length&&(e=!0,n.setAsyncValidators(s))}}}let i=()=>{};return Dx(t._rawValidators,i),Dx(t._rawAsyncValidators,i),e}function xbe(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&jQ(n,t)})}function Dbe(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&jQ(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function jQ(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function wbe(n,t){let e=(i,o)=>{t.valueAccessor.writeValue(i),o&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function Ibe(n,t){n==null,HQ(n,t)}function KQ(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function Abe(n){return Object.getPrototypeOf(n.constructor)===kQ}function Tbe(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function $Q(n,t){if(!t)return null;Array.isArray(t);let e,i,o;return t.forEach(s=>{s.constructor===Wp?e=s:Abe(s)?i=s:o=s}),o||i||e||null}var Mbe={provide:Vg,useExisting:Te(()=>I8)},p2=Promise.resolve(),I8=(()=>{let t=class t extends Vg{constructor(i,o,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._directives=new Set,this.ngSubmit=new b,this.form=new $p({},x8(i),D8(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(i){p2.then(()=>{let o=this._findContainer(i.path);i.control=o.registerControl(i.name,i.control),w8(i.control,i,this.callSetDisabledState),i.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(i)})}getControl(i){return this.form.get(i.path)}removeControl(i){p2.then(()=>{let o=this._findContainer(i.path);o&&o.removeControl(i.name),this._directives.delete(i)})}addFormGroup(i){p2.then(()=>{let o=this._findContainer(i.path),s=new $p({});Ibe(s,i),o.registerControl(i.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(i){p2.then(()=>{let o=this._findContainer(i.path);o&&o.removeControl(i.name)})}getFormGroup(i){return this.form.get(i.path)}updateModel(i,o){p2.then(()=>{this.form.get(i.path).setValue(o)})}setValue(i){this.control.setValue(i)}onSubmit(i){return this.submitted=!0,Tbe(this.form,this._directives),this.ngSubmit.emit(i),i?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(i=void 0){this.form.reset(i),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(i){return i.pop(),i.length?this.form.get(i):this.form}};t.\u0275fac=function(o){return new(o||t)(f(oc,10),f(E8,10),f(f2,8))},t.\u0275dir=P({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(o,s){o&1&&B("submit",function(a){return s.onSubmit(a)})("reset",function(){return s.onReset()})},inputs:{options:[ht.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ue([Mbe]),ie]});let n=t;return n})();function AQ(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function TQ(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var A8=class extends xx{constructor(t=null,e,i){super(BQ(e),UQ(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),wx(e)&&(e.nonNullable||e.initialValueIsDefault)&&(TQ(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){AQ(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){AQ(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){TQ(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Rbe={provide:Xn,useExisting:Te(()=>Bg)},MQ=Promise.resolve(),Bg=(()=>{let t=class t extends Xn{constructor(i,o,s,r,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new A8,this._registered=!1,this.name="",this.update=new b,this._parent=i,this._setValidators(o),this._setAsyncValidators(s),this.valueAccessor=$Q(this,r)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let o=i.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),KQ(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){w8(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){MQ.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let o=i.isDisabled.currentValue,s=o!==0&&dE(o);MQ.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?Sbe(i,this._parent):[i]}};t.\u0275fac=function(o){return new(o||t)(f(Vg,9),f(oc,10),f(E8,10),f(wo,10),f(Be,8),f(f2,8))},t.\u0275dir=P({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[ht.None,"disabled","isDisabled"],model:[ht.None,"ngModel","model"],options:[ht.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ue([Rbe]),ie,Le]});let n=t;return n})(),WQ=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=P({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let n=t;return n})();var qQ=new Ue(""),kbe={provide:Xn,useExisting:Te(()=>T8)},T8=(()=>{let t=class t extends Xn{set isDisabled(i){}constructor(i,o,s,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this.update=new b,this._ngModelWarningSent=!1,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=$Q(this,s)}ngOnChanges(i){if(this._isControlChanged(i)){let o=i.form.previousValue;o&&IQ(o,this,!1),w8(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}KQ(i,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&IQ(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_isControlChanged(i){return i.hasOwnProperty("form")}};t._ngModelWarningSentOnce=!1,t.\u0275fac=function(o){return new(o||t)(f(oc,10),f(E8,10),f(wo,10),f(qQ,8),f(f2,8))},t.\u0275dir=P({type:t,selectors:[["","formControl",""]],inputs:{form:[ht.None,"formControl","form"],isDisabled:[ht.None,"disabled","isDisabled"],model:[ht.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[ue([kbe]),ie,Le]});let n=t;return n})();var QQ=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ce({type:t}),t.\u0275inj=de({});let n=t;return n})();var qp=(()=>{let t=class t{static withConfig(i){return{ngModule:t,providers:[{provide:f2,useValue:i.callSetDisabledState??Ix}]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ce({type:t}),t.\u0275inj=de({imports:[QQ]});let n=t;return n})(),Qp=(()=>{let t=class t{static withConfig(i){return{ngModule:t,providers:[{provide:qQ,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:f2,useValue:i.callSetDisabledState??Ix}]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ce({type:t}),t.\u0275inj=de({imports:[QQ]});let n=t;return n})();var YQ=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];(function(n,t){var e=function(i){for(;--i;)n.push(n.shift())};e(++t)})(YQ,439);var Z=function(n,t){n=n-0;var e=YQ[n];if(Z.aWziBr===void 0){var i=function(s){for(var r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",a=String(s).replace(/=+$/,""),l="",c=0,d,u,p=0;u=a.charAt(p++);~u&&(d=c%4?d*64+u:u,c++%4)?l+=String.fromCharCode(255&d>>(-2*c&6)):0)u=r.indexOf(u);return l};Z.XjGMHe=function(s){for(var r=i(s),a=[],l=0,c=r.length;lscript{display:none!important}@charset "UTF-8";:root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#2196F3;--bs-secondary:#e10050;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:33, 150, 243;--bs-secondary-rgb:225, 0, 80;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:37, 40, 48;--bs-body-bg-rgb:242, 242, 242;--bs-font-sans-serif:"Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;--bs-font-monospace:Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-root-font-size:14px;--bs-body-font-family:Roboto, Helvetica Neue, sans-serif;--bs-body-font-size:.875rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#252830;--bs-body-bg:#f2f2f2}*,*:before,*:after{box-sizing:border-box}:root{font-size:var(--bs-root-font-size)}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0;background-color:#f2f2f2;font-size:14px}app-maestro-app{display:block} - + \ No newline at end of file diff --git a/integration-pwa-material/main.23f038795cf004c9.js b/integration-pwa-material/main.e398f5e0e3e97378.js similarity index 96% rename from integration-pwa-material/main.23f038795cf004c9.js rename to integration-pwa-material/main.e398f5e0e3e97378.js index cf4641c6..1a96224e 100644 --- a/integration-pwa-material/main.23f038795cf004c9.js +++ b/integration-pwa-material/main.e398f5e0e3e97378.js @@ -1 +1 @@ -(self.webpackChunkintegration_pwa_material=self.webpackChunkintegration_pwa_material||[]).push([[179],{198:function(Pv,i_,od){"use strict";var Yu={};od.r(Yu),od.d(Yu,{DEG_TO_RAD:function(){return fN},LRUCache:function(){return B9},MAX_NUM:function(){return hg},MIN_NUM:function(){return fg},TextMetrics:function(){return z9},append:function(){return Qy},arabicToRoman:function(){return BD},bindEvents:function(){return gN},createPromise:function(){return gf},defined:function(){return Gt},definitionId:function(){return VD},deg:function(){return Md},elementOffset:function(){return I9},elementPadding:function(){return F9},elementScale:function(){return P9},elementSize:function(){return ek},elementStyles:function(){return KD},encodeBase64:function(){return UD},eventCoordinates:function(){return M9},eventElement:function(){return R9},hashKey:function(){return G9},isTransparent:function(){return mf},last:function(){return Zo},limitValue:function(){return zD},measureText:function(){return tk},mergeSort:function(){return HD},normalizeText:function(){return yN},now:function(){return Jy},objectKey:function(){return V9},promiseAll:function(){return O9},rad:function(){return lu},round:function(){return Ci},unbindEvents:function(){return mN},valueOrDefault:function(){return pN}});var $r={};function q(i){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}function jA(i,r){for(;!Object.prototype.hasOwnProperty.call(i,r)&&null!==(i=q(i)););return i}function $(){return $="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(r,t,e){var n=jA(r,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(arguments.length<3?r:e):a.value}},$.apply(this,arguments)}function r_(i,r){for(var t=0;ti.length)&&(r=i.length);for(var t=0,e=new Array(r);t=i.length?{done:!0}:{done:!1,value:i[e++]}},e:function(u){throw u},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){t=t.call(i)},n:function(){var u=t.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&null!=t.return&&t.return()}finally{if(o)throw s}}}}function Aa(i){if(Array.isArray(i))return i}function Vv(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Bt(i,r){return Aa(i)||function a_(i,r){var t=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null!=t){var o,s,e=[],n=!0,a=!1;try{for(t=t.call(i);!(n=(o=t.next()).done)&&(e.push(o.value),!r||e.length!==r);n=!0);}catch(l){a=!0,s=l}finally{try{!n&&null!=t.return&&t.return()}finally{if(a)throw s}}return e}}(i,r)||Oh(i,r)||Vv()}function De(i,r,t){return r in i?Object.defineProperty(i,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[r]=t,i}function Ih(i){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)}function Ae(i){return function Qu(i){if(Array.isArray(i))return ho(i)}(i)||Ih(i)||Oh(i)||function Gv(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qr(i,r,t){return(qr=Bv()?Reflect.construct:function(n,a,o){var s=[null];s.push.apply(s,a);var u=new(Function.bind.apply(n,s));return o&&ps(u,o.prototype),u}).apply(null,arguments)}function Tr(i){var r="function"==typeof Map?new Map:void 0;return Tr=function(e){if(null===e||!function jb(i){return-1!==Function.toString.call(i).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return qr(e,arguments,q(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ps(n,e)},Tr(i)}function wn(i){return"function"==typeof i}function s_(i){var t=i(function(n){Error.call(n),n.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}od.r($r),od.d($r,{easeOutElastic:function(){return oPe},linear:function(){return aPe},swing:function(){return rPe}});var Uv=s_(function(i){return function(t){i(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(e,n){return"".concat(n+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t}});function Nh(i,r){if(i){var t=i.indexOf(r);0<=t&&i.splice(t,1)}}var i,Je=function(){function i(r){p(this,i),this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return v(i,[{key:"unsubscribe",value:function(){var t;if(!this.closed){this.closed=!0;var e=this._parentage;if(e)if(this._parentage=null,Array.isArray(e)){var a,n=In(e);try{for(n.s();!(a=n.n()).done;)a.value.remove(this)}catch(h){n.e(h)}finally{n.f()}}else e.remove(this);var s=this.initialTeardown;if(wn(s))try{s()}catch(h){t=h instanceof Uv?h.errors:[h]}var l=this._finalizers;if(l){this._finalizers=null;var c,u=In(l);try{for(u.s();!(c=u.n()).done;){var d=c.value;try{sd(d)}catch(h){t=null!=t?t:[],h instanceof Uv?t=[].concat(Ae(t),Ae(h.errors)):t.push(h)}}}catch(h){u.e(h)}finally{u.f()}}if(t)throw new Uv(t)}}},{key:"add",value:function(t){var e;if(t&&t!==this)if(this.closed)sd(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}},{key:"_hasParent",value:function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)}},{key:"_addParent",value:function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}},{key:"_removeParent",value:function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Nh(e,t)}},{key:"remove",value:function(t){var e=this._finalizers;e&&Nh(e,t),t instanceof i&&t._removeParent(this)}}]),i}();Je.EMPTY=((i=new Je).closed=!0,i);var Wb=Je.EMPTY;function $b(i){return i instanceof Je||i&&"closed"in i&&wn(i.remove)&&wn(i.add)&&wn(i.unsubscribe)}function sd(i){wn(i)?i():i.unsubscribe()}var ld={setTimeout:function(i){function r(t,e){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(i,r){for(var t=ld.delegate,e=arguments.length,n=new Array(e>2?e-2:0),a=2;a0}},{key:"_trySubscribe",value:function(a){return this._throwIfClosed(),$(q(e.prototype),"_trySubscribe",this).call(this,a)}},{key:"_subscribe",value:function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)}},{key:"_innerSubscribe",value:function(a){var o=this,u=this.observers;return this.hasError||this.isStopped?Wb:(this.currentObservers=null,u.push(a),new Je(function(){o.currentObservers=null,Nh(u,a)}))}},{key:"_checkFinalizedStatuses",value:function(a){var l=this.isStopped;this.hasError?a.error(this.thrownError):l&&a.complete()}},{key:"asObservable",value:function(){var a=new An;return a.source=this,a}}]),e}(An);return i.create=function(r,t){return new Qb(r,t)},i}(),Qb=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).destination=e,a.source=n,a}return v(t,[{key:"next",value:function(n){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.next)||void 0===o||o.call(a,n)}},{key:"error",value:function(n){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.error)||void 0===o||o.call(a,n)}},{key:"complete",value:function(){var n,a;null===(a=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===a||a.call(n)}},{key:"_subscribe",value:function(n){var a,o;return null!==(o=null===(a=this.source)||void 0===a?void 0:a.subscribe(n))&&void 0!==o?o:Wb}}]),t}(Ot);function Jb(i){return wn(null==i?void 0:i.lift)}function oi(i){return function(r){if(Jb(r))return r.lift(function(t){try{return i(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}function Wn(i,r,t,e,n){return new $A(i,r,t,e,n)}var $A=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u,c,d,h;return p(this,t),(h=r.call(this,e)).onFinalize=s,h.shouldUnsubscribe=l,h._next=n?function(f){try{n(f)}catch(g){e.error(g)}}:$((u=Xe(h),q(t.prototype)),"_next",u),h._error=o?function(f){try{o(f)}catch(g){e.error(g)}finally{this.unsubscribe()}}:$((c=Xe(h),q(t.prototype)),"_error",c),h._complete=a?function(){try{a()}catch(f){e.error(f)}finally{this.unsubscribe()}}:$((d=Xe(h),q(t.prototype)),"_complete",d),h}return v(t,[{key:"unsubscribe",value:function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var a=this.closed;$(q(t.prototype),"unsubscribe",this).call(this),!a&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}]),t}(tc);function We(i,r){return oi(function(t,e){var n=0;t.subscribe(Wn(e,function(a){e.next(i.call(r,a,n++))}))})}function Zs(i){return this instanceof Zs?(this.v=i,this):new Zs(i)}function QA(i,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t.apply(i,r||[]),a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(h){e[h]&&(n[h]=function(f){return new Promise(function(g,_){a.push([h,f,g,_])>1||s(h,f)})})}function s(h,f){try{!function l(h){h.value instanceof Zs?Promise.resolve(h.value.v).then(u,c):d(a[0][2],h)}(e[h](f))}catch(g){d(a[0][3],g)}}function u(h){s("next",h)}function c(h){s("throw",h)}function d(h,f){h(f),a.shift(),a.length&&s(a[0][0],a[0][1])}}function ex(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=i[Symbol.asyncIterator];return r?r.call(i):(i=function nS(i){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&i[r],e=0;if(t)return t.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&e>=i.length&&(i=void 0),{value:i&&i[e++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),t={},e("next"),e("throw"),e("return"),t[Symbol.asyncIterator]=function(){return this},t);function e(a){t[a]=i[a]&&function(o){return new Promise(function(s,l){!function n(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}(s,l,(o=i[a](o)).done,o.value)})}}}var ic=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r};function Gh(i){return wn(null==i?void 0:i.then)}function Wv(i){return wn(i[l_])}function aS(i){return Symbol.asyncIterator&&wn(null==i?void 0:i[Symbol.asyncIterator])}function oS(i){return new TypeError("You provided ".concat(null!==i&&"object"==typeof i?"an invalid object":"'".concat(i,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var za=function $v(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function rc(i){return wn(null==i?void 0:i[za])}function _s(){_s=function(){return i};var i={},r=Object.prototype,t=r.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",a=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function s(V,I,K){return Object.defineProperty(V,I,{value:K,enumerable:!0,configurable:!0,writable:!0}),V[I]}try{s({},"")}catch(V){s=function(K,H,se){return K[H]=se}}function l(V,I,K,H){var Ne,Ce,ye,Be,me=Object.create((I&&I.prototype instanceof d?I:d).prototype),ae=new U(H||[]);return me._invoke=(Ne=V,Ce=K,ye=ae,Be="suspendedStart",function(je,kt){if("executing"===Be)throw new Error("Generator is already running");if("completed"===Be){if("throw"===je)throw kt;return{value:void 0,done:!0}}for(ye.method=je,ye.arg=kt;;){var Xt=ye.delegate;if(Xt){var zn=R(Xt,ye);if(zn){if(zn===c)continue;return zn}}if("next"===ye.method)ye.sent=ye._sent=ye.arg;else if("throw"===ye.method){if("suspendedStart"===Be)throw Be="completed",ye.arg;ye.dispatchException(ye.arg)}else"return"===ye.method&&ye.abrupt("return",ye.arg);Be="executing";var On=u(Ne,Ce,ye);if("normal"===On.type){if(Be=ye.done?"completed":"suspendedYield",On.arg===c)continue;return{value:On.arg,done:ye.done}}"throw"===On.type&&(Be="completed",ye.method="throw",ye.arg=On.arg)}}),me}function u(V,I,K){try{return{type:"normal",arg:V.call(I,K)}}catch(H){return{type:"throw",arg:H}}}i.wrap=l;var c={};function d(){}function h(){}function f(){}var g={};s(g,n,function(){return this});var _=Object.getPrototypeOf,C=_&&_(_(ee([])));C&&C!==r&&t.call(C,n)&&(g=C);var w=f.prototype=d.prototype=Object.create(g);function E(V){["next","throw","return"].forEach(function(I){s(V,I,function(K){return this._invoke(I,K)})})}function M(V,I){function K(se,me,ae,Ne){var Ce=u(V[se],V,me);if("throw"!==Ce.type){var ye=Ce.arg,Be=ye.value;return Be&&"object"==typeof Be&&t.call(Be,"__await")?I.resolve(Be.__await).then(function(je){K("next",je,ae,Ne)},function(je){K("throw",je,ae,Ne)}):I.resolve(Be).then(function(je){ye.value=je,ae(ye)},function(je){return K("throw",je,ae,Ne)})}Ne(Ce.arg)}var H;this._invoke=function(se,me){function ae(){return new I(function(Ne,Ce){K(se,me,Ne,Ce)})}return H=H?H.then(ae,ae):ae()}}function R(V,I){var K=V.iterator[I.method];if(void 0===K){if(I.delegate=null,"throw"===I.method){if(V.iterator.return&&(I.method="return",I.arg=void 0,R(V,I),"throw"===I.method))return c;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var H=u(K,V.iterator,I.arg);if("throw"===H.type)return I.method="throw",I.arg=H.arg,I.delegate=null,c;var se=H.arg;return se?se.done?(I[V.resultName]=se.value,I.next=V.nextLoc,"return"!==I.method&&(I.method="next",I.arg=void 0),I.delegate=null,c):se:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,c)}function N(V){var I={tryLoc:V[0]};1 in V&&(I.catchLoc=V[1]),2 in V&&(I.finallyLoc=V[2],I.afterLoc=V[3]),this.tryEntries.push(I)}function G(V){var I=V.completion||{};I.type="normal",delete I.arg,V.completion=I}function U(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(N,this),this.reset(!0)}function ee(V){if(V){var I=V[n];if(I)return I.call(V);if("function"==typeof V.next)return V;if(!isNaN(V.length)){var K=-1,H=function se(){for(;++K=0;--se){var me=this.tryEntries[se],ae=me.completion;if("root"===me.tryLoc)return H("end");if(me.tryLoc<=this.prev){var Ne=t.call(me,"catchLoc"),Ce=t.call(me,"finallyLoc");if(Ne&&Ce){if(this.prev=0;--H){var se=this.tryEntries[H];if(se.tryLoc<=this.prev&&t.call(se,"finallyLoc")&&this.prev=0;--K){var H=this.tryEntries[K];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),G(H),c}},catch:function(I){for(var K=this.tryEntries.length-1;K>=0;--K){var H=this.tryEntries[K];if(H.tryLoc===I){var se=H.completion;if("throw"===se.type){var me=se.arg;G(H)}return me}}throw new Error("illegal catch attempt")},delegateYield:function(I,K,H){return this.delegate={iterator:ee(I),resultName:K,nextLoc:H},"next"===this.method&&(this.arg=void 0),c}},i}function ys(i){return QA(this,arguments,_s().mark(function r(){var t,e,n;return _s().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=i.getReader(),s.prev=1;case 2:return s.next=5,Zs(t.read());case 5:if(n=(e=s.sent).value,!e.done){s.next=12;break}return s.next=11,Zs(void 0);case 11:return s.abrupt("return",s.sent);case 12:return s.next=14,Zs(n);case 14:return s.next=16,s.sent;case 16:s.next=2;break;case 18:return s.prev=18,t.releaseLock(),s.finish(18);case 21:case"end":return s.stop()}},r,null,[[1,,18,21]])}))}function cd(i){return wn(null==i?void 0:i.getReader)}function vo(){vo=function(){return i};var i={},r=Object.prototype,t=r.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",a=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function s(V,I,K){return Object.defineProperty(V,I,{value:K,enumerable:!0,configurable:!0,writable:!0}),V[I]}try{s({},"")}catch(V){s=function(K,H,se){return K[H]=se}}function l(V,I,K,H){var Ne,Ce,ye,Be,me=Object.create((I&&I.prototype instanceof d?I:d).prototype),ae=new U(H||[]);return me._invoke=(Ne=V,Ce=K,ye=ae,Be="suspendedStart",function(je,kt){if("executing"===Be)throw new Error("Generator is already running");if("completed"===Be){if("throw"===je)throw kt;return{value:void 0,done:!0}}for(ye.method=je,ye.arg=kt;;){var Xt=ye.delegate;if(Xt){var zn=R(Xt,ye);if(zn){if(zn===c)continue;return zn}}if("next"===ye.method)ye.sent=ye._sent=ye.arg;else if("throw"===ye.method){if("suspendedStart"===Be)throw Be="completed",ye.arg;ye.dispatchException(ye.arg)}else"return"===ye.method&&ye.abrupt("return",ye.arg);Be="executing";var On=u(Ne,Ce,ye);if("normal"===On.type){if(Be=ye.done?"completed":"suspendedYield",On.arg===c)continue;return{value:On.arg,done:ye.done}}"throw"===On.type&&(Be="completed",ye.method="throw",ye.arg=On.arg)}}),me}function u(V,I,K){try{return{type:"normal",arg:V.call(I,K)}}catch(H){return{type:"throw",arg:H}}}i.wrap=l;var c={};function d(){}function h(){}function f(){}var g={};s(g,n,function(){return this});var _=Object.getPrototypeOf,C=_&&_(_(ee([])));C&&C!==r&&t.call(C,n)&&(g=C);var w=f.prototype=d.prototype=Object.create(g);function E(V){["next","throw","return"].forEach(function(I){s(V,I,function(K){return this._invoke(I,K)})})}function M(V,I){function K(se,me,ae,Ne){var Ce=u(V[se],V,me);if("throw"!==Ce.type){var ye=Ce.arg,Be=ye.value;return Be&&"object"==typeof Be&&t.call(Be,"__await")?I.resolve(Be.__await).then(function(je){K("next",je,ae,Ne)},function(je){K("throw",je,ae,Ne)}):I.resolve(Be).then(function(je){ye.value=je,ae(ye)},function(je){return K("throw",je,ae,Ne)})}Ne(Ce.arg)}var H;this._invoke=function(se,me){function ae(){return new I(function(Ne,Ce){K(se,me,Ne,Ce)})}return H=H?H.then(ae,ae):ae()}}function R(V,I){var K=V.iterator[I.method];if(void 0===K){if(I.delegate=null,"throw"===I.method){if(V.iterator.return&&(I.method="return",I.arg=void 0,R(V,I),"throw"===I.method))return c;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var H=u(K,V.iterator,I.arg);if("throw"===H.type)return I.method="throw",I.arg=H.arg,I.delegate=null,c;var se=H.arg;return se?se.done?(I[V.resultName]=se.value,I.next=V.nextLoc,"return"!==I.method&&(I.method="next",I.arg=void 0),I.delegate=null,c):se:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,c)}function N(V){var I={tryLoc:V[0]};1 in V&&(I.catchLoc=V[1]),2 in V&&(I.finallyLoc=V[2],I.afterLoc=V[3]),this.tryEntries.push(I)}function G(V){var I=V.completion||{};I.type="normal",delete I.arg,V.completion=I}function U(V){this.tryEntries=[{tryLoc:"root"}],V.forEach(N,this),this.reset(!0)}function ee(V){if(V){var I=V[n];if(I)return I.call(V);if("function"==typeof V.next)return V;if(!isNaN(V.length)){var K=-1,H=function se(){for(;++K=0;--se){var me=this.tryEntries[se],ae=me.completion;if("root"===me.tryLoc)return H("end");if(me.tryLoc<=this.prev){var Ne=t.call(me,"catchLoc"),Ce=t.call(me,"finallyLoc");if(Ne&&Ce){if(this.prev=0;--H){var se=this.tryEntries[H];if(se.tryLoc<=this.prev&&t.call(se,"finallyLoc")&&this.prev=0;--K){var H=this.tryEntries[K];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),G(H),c}},catch:function(I){for(var K=this.tryEntries.length-1;K>=0;--K){var H=this.tryEntries[K];if(H.tryLoc===I){var se=H.completion;if("throw"===se.type){var me=se.arg;G(H)}return me}}throw new Error("illegal catch attempt")},delegateYield:function(I,K,H){return this.delegate={iterator:ee(I),resultName:K,nextLoc:H},"next"===this.method&&(this.arg=void 0),c}},i}function Pi(i){if(i instanceof An)return i;if(null!=i){if(Wv(i))return function sS(i){return new An(function(r){var t=i[l_]();if(wn(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(ic(i))return function lS(i){return new An(function(r){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=r.schedule(function(){t(),n?i.add(this.schedule(null,e)):this.unsubscribe()},e);if(i.add(a),!n)return a}function v_(i,r,t,e,n,a,o,s){var l=[],u=0,c=0,d=!1,h=function(){d&&!l.length&&!u&&r.complete()},f=function(C){return u2&&void 0!==arguments[2]?arguments[2]:1/0;return wn(r)?Bi(function(e,n){return We(function(a,o){return r(e,a,n,o)})(Pi(i(e,n)))},t):("number"==typeof r&&(t=r),oi(function(e,n){return v_(e,n,i,t)}))}function Fo(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return Bi(zl,i)}var po=new An(function(i){return i.complete()});function g_(i){return i&&wn(i.schedule)}function m_(i){return i[i.length-1]}function __(i){return wn(m_(i))?i.pop():void 0}function Z(i){return g_(m_(i))?i.pop():void 0}function F(i,r){return"number"==typeof m_(i)?i.pop():r}function W(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return oi(function(t,e){t.subscribe(Wn(e,function(n){return No(e,i,function(){return e.next(n)},r)},function(){return No(e,i,function(){return e.complete()},r)},function(n){return No(e,i,function(){return e.error(n)},r)}))})}function ce(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return oi(function(t,e){e.add(i.schedule(function(){return t.subscribe(e)},r))})}function or(i,r){if(!i)throw new Error("Iterable cannot be null");return new An(function(t){No(t,r,function(){var e=i[Symbol.asyncIterator]();No(t,r,function(){e.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function wi(i,r){return r?function go(i,r){if(null!=i){if(Wv(i))return function xe(i,r){return Pi(i).pipe(ce(r),W(r))}(i,r);if(ic(i))return function Zt(i,r){return new An(function(t){var e=0;return r.schedule(function(){e===i.length?t.complete():(t.next(i[e++]),t.closed||this.schedule())})})}(i,r);if(Gh(i))return function Ye(i,r){return Pi(i).pipe(ce(r),W(r))}(i,r);if(aS(i))return or(i,r);if(rc(i))return function Vi(i,r){return new An(function(t){var e;return No(t,r,function(){e=i[za](),No(t,r,function(){var n,a;try{var o=e.next();n=o.value,a=o.done}catch(s){return void t.error(s)}a?t.complete():t.next(n)},0,!0)}),function(){return wn(null==e?void 0:e.return)&&e.return()}})}(i,r);if(cd(i))return function da(i,r){return or(ys(i),r)}(i,r)}throw oS(i)}(i,r):Pi(i)}function xn(){for(var i=arguments.length,r=new Array(i),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},r=i.connector,t=void 0===r?function(){return new Ot}:r,e=i.resetOnError,n=void 0===e||e,a=i.resetOnComplete,o=void 0===a||a,s=i.resetOnRefCountZero,l=void 0===s||s;return function(u){var c=null,d=null,h=null,f=0,g=!1,_=!1,C=function(){null==d||d.unsubscribe(),d=null},w=function(){C(),c=h=null,g=_=!1},E=function(){var R=c;w(),null==R||R.unsubscribe()};return oi(function(M,R){f++,!_&&!g&&C();var N=h=null!=h?h:t();R.add(function(){0==--f&&!_&&!g&&(d=ox(E,l))}),N.subscribe(R),c||(c=new Bh({next:function(U){return N.next(U)},error:function(U){_=!0,C(),d=ox(w,n,U),N.error(U)},complete:function(){g=!0,C(),d=ox(w,o),N.complete()}}),wi(M).subscribe(c))})(u)}}function ox(i,r){if(!0===r)return i(),null;if(!1===r)return null;for(var t=arguments.length,e=new Array(t>2?t-2:0),n=2;n ".concat(t," ").concat(e," ").concat(r," <=Actual]")))}(r,i,null,"!=")}function pe(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function Fe(i){return{providers:i.providers||[],imports:i.imports||[]}}function cx(i){return lz(i,cS)||lz(i,cz)}function lz(i,r){return i.hasOwnProperty(r)?i[r]:null}function uz(i){return i&&(i.hasOwnProperty(dx)||i.hasOwnProperty(Ope))?i[dx]:null}var hx,cS=mi({"\u0275prov":mi}),dx=mi({"\u0275inj":mi}),cz=mi({ngInjectableDef:mi}),Ope=mi({ngInjectorDef:mi}),tn=function(){return(tn=tn||{})[tn.Default=0]="Default",tn[tn.Host=1]="Host",tn[tn.Self=2]="Self",tn[tn.SkipSelf=4]="SkipSelf",tn[tn.Optional=8]="Optional",tn}();function Ipe(){return hx}function dd(i){var r=hx;return hx=i,r}function dz(i,r,t){var e=cx(i);return e&&"root"==e.providedIn?void 0===e.value?e.value=e.factory():e.value:t&tn.Optional?null:void 0!==r?r:void uS(si(i),"Injector")}function hd(i){return{toString:i}.toString()}var Ys=function(){return(Ys=Ys||{})[Ys.OnPush=0]="OnPush",Ys[Ys.Default=1]="Default",Ys}(),Qs=function(){return function(i){i[i.Emulated=0]="Emulated",i[i.None=2]="None",i[i.ShadowDom=3]="ShadowDom"}(Qs||(Qs={})),Qs}(),Npe="undefined"!=typeof globalThis&&globalThis,Fpe="undefined"!=typeof window&&window,Lpe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ppe="undefined"!=typeof global&&global,hi=Npe||Ppe||Fpe||Lpe,Xv={},yi=[],dS=mi({"\u0275cmp":mi}),fx=mi({"\u0275dir":mi}),vx=mi({"\u0275pipe":mi}),hz=mi({"\u0275mod":mi}),oc=mi({"\u0275fac":mi}),y_=mi({__NG_ELEMENT_ID__:mi}),Bpe=0;function L(i){return hd(function(){var t={},e={type:i.type,providersResolver:null,decls:i.decls,vars:i.vars,factory:null,template:i.template||null,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:i.exportAs||null,onPush:i.changeDetection===Ys.OnPush,directiveDefs:null,pipeDefs:null,selectors:i.selectors||yi,viewQuery:i.viewQuery||null,features:i.features||null,data:i.data||{},encapsulation:i.encapsulation||Qs.Emulated,id:"c",styles:i.styles||yi,_:null,setInput:null,schemas:i.schemas||null,tView:null},n=i.directives,a=i.features,o=i.pipes;return e.id+=Bpe++,e.inputs=gz(i.inputs,t),e.outputs=gz(i.outputs),a&&a.forEach(function(s){return s(e)}),e.directiveDefs=n?function(){return("function"==typeof n?n():n).map(fz)}:null,e.pipeDefs=o?function(){return("function"==typeof o?o():o).map(vz)}:null,e})}function fz(i){return Ma(i)||function fd(i){return i[fx]||null}(i)}function vz(i){return function zh(i){return i[vx]||null}(i)}var pz={};function Le(i){return hd(function(){var r={type:i.type,bootstrap:i.bootstrap||yi,declarations:i.declarations||yi,imports:i.imports||yi,exports:i.exports||yi,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null};return null!=i.id&&(pz[i.id]=i.type),r})}function gz(i,r){if(null==i)return Xv;var t={};for(var e in i)if(i.hasOwnProperty(e)){var n=i[e],a=n;Array.isArray(n)&&(a=n[1],n=n[0]),t[n]=e,r&&(r[n]=a)}return t}var X=L;function fa(i){return{type:i.type,name:i.name,factory:null,pure:!1!==i.pure,onDestroy:i.type.prototype.ngOnDestroy||null}}function Ma(i){return i[dS]||null}function ks(i,r){var t=i[hz]||null;if(!t&&!0===r)throw new Error("Type ".concat(si(i)," does not have '\u0275mod' property."));return t}function Hl(i){return Array.isArray(i)&&"object"==typeof i[1]}function el(i){return Array.isArray(i)&&!0===i[1]}function mx(i){return 0!=(8&i.flags)}function pS(i){return 2==(2&i.flags)}function gS(i){return 1==(1&i.flags)}function tl(i){return null!==i.template}function Kpe(i){return 0!=(512&i[2])}function Wh(i,r){return i.hasOwnProperty(oc)?i[oc]:null}var _z=function(){function i(r,t,e){p(this,i),this.previousValue=r,this.currentValue=t,this.firstChange=e}return v(i,[{key:"isFirstChange",value:function(){return this.firstChange}}]),i}();function Ie(){return yz}function yz(i){return i.type.prototype.ngOnChanges&&(i.setInput=qpe),$pe}function $pe(){var i=Cz(this),r=null==i?void 0:i.current;if(r){var t=i.previous;if(t===Xv)i.previous=r;else for(var e in r)t[e]=r[e];i.current=null,this.ngOnChanges(r)}}function qpe(i,r,t,e){var n=Cz(i)||function Xpe(i,r){return i[kz]=r}(i,{previous:Xv,current:null}),a=n.current||(n.current={}),o=n.previous,s=this.declaredInputs[t],l=o[s];a[s]=new _z(l&&l.currentValue,r,o===Xv),i[e]=r}Ie.ngInherit=!0;var kz="__ngSimpleChanges__";function Cz(i){return i[kz]||null}var bx=void 0;function Sx(){return void 0!==bx?bx:"undefined"!=typeof document?document:void 0}function sr(i){return!!i.listen}var bz={createRenderer:function(r,t){return Sx()}};function Ar(i){for(;Array.isArray(i);)i=i[0];return i}function mS(i,r){return Ar(r[i])}function Ss(i,r){return Ar(r[i.index])}function wx(i,r){return i.data[r]}function ep(i,r){return i[r]}function Vo(i,r){var t=r[i];return Hl(t)?t:t[0]}function Sz(i){return 4==(4&i[2])}function Dx(i){return 128==(128&i[2])}function vd(i,r){return null==r?null:i[r]}function wz(i){i[18]=0}function Ex(i,r){i[5]+=r;for(var t=i,e=i[3];null!==e&&(1===r&&1===t[5]||-1===r&&0===t[5]);)e[5]+=r,t=e,e=e[3]}var an={lFrame:Iz(null),bindingsEnabled:!0};function Ez(){return an.bindingsEnabled}function Oe(){return an.lFrame.lView}function Bn(){return an.lFrame.tView}function re(i){return an.lFrame.contextLView=i,i[8]}function Fr(){for(var i=Tz();null!==i&&64===i.type;)i=i.parent;return i}function Tz(){return an.lFrame.currentTNode}function Kl(i,r){var t=an.lFrame;t.currentTNode=i,t.isParent=r}function Tx(){return an.lFrame.isParent}function Ax(){an.lFrame.isParent=!1}function Ha(){var i=an.lFrame,r=i.bindingRootIndex;return-1===r&&(r=i.bindingRootIndex=i.tView.bindingStartIndex),r}function sc(){return an.lFrame.bindingIndex}function tp(){return an.lFrame.bindingIndex++}function lc(i){var r=an.lFrame,t=r.bindingIndex;return r.bindingIndex=r.bindingIndex+i,t}function hge(i,r){var t=an.lFrame;t.bindingIndex=t.bindingRootIndex=i,xx(r)}function xx(i){an.lFrame.currentDirectiveIndex=i}function Mx(i){var r=an.lFrame.currentDirectiveIndex;return-1===r?null:i[r]}function Mz(){return an.lFrame.currentQueryIndex}function Rx(i){an.lFrame.currentQueryIndex=i}function vge(i){var r=i[1];return 2===r.type?r.declTNode:1===r.type?i[6]:null}function Rz(i,r,t){if(t&tn.SkipSelf){for(var e=r,n=i;!(null!==(e=e.parent)||t&tn.Host||null===(e=vge(n))||(n=n[15],10&e.type)););if(null===e)return!1;r=e,i=n}var a=an.lFrame=Oz();return a.currentTNode=r,a.lView=i,!0}function yS(i){var r=Oz(),t=i[1];an.lFrame=r,r.currentTNode=t.firstChild,r.lView=i,r.tView=t,r.contextLView=i,r.bindingIndex=t.bindingStartIndex,r.inI18n=!1}function Oz(){var i=an.lFrame,r=null===i?null:i.child;return null===r?Iz(i):r}function Iz(i){var r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:i,child:null,inI18n:!1};return null!==i&&(i.child=r),r}function Nz(){var i=an.lFrame;return an.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}var Fz=Nz;function kS(){var i=Nz();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function pge(i){var r=an.lFrame.contextLView=function gge(i,r){for(;i>0;)r=r[15],i--;return r}(i,an.lFrame.contextLView);return r[8]}function Ka(){return an.lFrame.selectedIndex}function pd(i){an.lFrame.selectedIndex=i}function lr(){var i=an.lFrame;return wx(i.tView,i.selectedIndex)}function CS(i,r){for(var t=r.directiveStart,e=r.directiveEnd;t=e)break}else r[l]<0&&(i[18]+=65536),(s>11>16&&(3&i[2])===r){i[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}var w_=v(function i(r,t,e){p(this,i),this.factory=r,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=e});function wS(i,r,t){for(var e=sr(i),n=0;nr){o=a-1;break}}}for(;a>16}(i),e=r;t>0;)e=e[15],t--;return e}var Lx=!0;function ES(i){var r=Lx;return Lx=i,r}var xge=0;function E_(i,r){var t=Bx(i,r);if(-1!==t)return t;var e=r[1];e.firstCreatePass&&(i.injectorIndex=r.length,Px(e.data,i),Px(r,null),Px(e.blueprint,null));var n=TS(i,r),a=i.injectorIndex;if(Vz(n))for(var o=np(n),s=ip(n,r),l=s[1].data,u=0;u<8;u++)r[a+u]=s[o+u]|l[o+u];return r[a+8]=n,a}function Px(i,r){i.push(0,0,0,0,0,0,0,0,r)}function Bx(i,r){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===r[i.injectorIndex+8]?-1:i.injectorIndex}function TS(i,r){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;for(var t=0,e=null,n=r;null!==n;){var a=n[1],o=a.type;if(null===(e=2===o?a.declTNode:1===o?n[6]:null))return-1;if(t++,n=n[15],-1!==e.injectorIndex)return e.injectorIndex|t<<16}return-1}function AS(i,r,t){!function Mge(i,r,t){var e;"string"==typeof t?e=t.charCodeAt(0)||0:t.hasOwnProperty(y_)&&(e=t[y_]),null==e&&(e=t[y_]=xge++);var n=255&e;r.data[i+(n>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:tn.Default,n=arguments.length>4?arguments[4]:void 0;if(null!==i){var a=Nge(t);if("function"==typeof a){if(!Rz(r,i,e))return e&tn.Host?zz(n,t,e):Hz(r,t,e,n);try{var o=a(e);if(null!=o||e&tn.Optional)return o;uS(t)}finally{Fz()}}else if("number"==typeof a){var s=null,l=Bx(i,r),u=-1,c=e&tn.Host?r[16][6]:null;for((-1===l||e&tn.SkipSelf)&&(-1!==(u=-1===l?TS(i,r):r[l+8])&&$z(e,!1)?(s=r[1],l=np(u),r=ip(u,r)):l=-1);-1!==l;){var d=r[1];if(Wz(a,l,d.data)){var h=Ige(l,r,t,s,e,c);if(h!==jz)return h}-1!==(u=r[l+8])&&$z(e,r[1].data[l+8]===c)&&Wz(a,l,r)?(s=d,l=np(u),r=ip(u,r)):l=-1}}}return Hz(r,t,e,n)}var jz={};function Oge(){return new rp(Fr(),Oe())}function Ige(i,r,t,e,n,a){var o=r[1],s=o.data[i+8],c=xS(s,o,t,null==e?pS(s)&&Lx:e!=o&&0!=(3&s.type),n&tn.Host&&a===s);return null!==c?T_(r,o,c,s):jz}function xS(i,r,t,e,n){for(var a=i.providerIndexes,o=r.data,s=1048575&a,l=i.directiveStart,c=a>>20,h=n?s+c:i.directiveEnd,f=e?s:s+c;f=l&&g.type===t)return f}if(n){var _=o[l];if(_&&tl(_)&&_.type===t)return l}return null}function T_(i,r,t,e){var n=i[t],a=r.data;if(function Sge(i){return i instanceof w_}(n)){var o=n;o.resolving&&function Epe(i,r){var t=r?". Dependency path: ".concat(r.join(" > ")," > ").concat(i):"";throw new gt(-200,"Circular dependency in DI detected for ".concat(i).concat(t))}(ha(a[t]));var s=ES(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?dd(o.injectImpl):null;Rz(i,e,tn.Default);try{n=i[t]=o.factory(void 0,a,i,e),r.firstCreatePass&&t>=e.directiveStart&&function Cge(i,r,t){var e=r.type.prototype,a=e.ngOnInit,o=e.ngDoCheck;if(e.ngOnChanges){var s=yz(r);(t.preOrderHooks||(t.preOrderHooks=[])).push(i,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i,s)}a&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-i,a),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(i,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i,o))}(t,a[t],r)}finally{null!==l&&dd(l),ES(s),o.resolving=!1,Fz()}}return n}function Nge(i){if("string"==typeof i)return i.charCodeAt(0)||0;var r=i.hasOwnProperty(y_)?i[y_]:void 0;return"number"==typeof r?r>=0?255&r:Oge:r}function Wz(i,r,t){return!!(t[r+(i>>5)]&1<=i.length?i.push(t):i.splice(r,0,t)}function MS(i,r){return r>=i.length-1?i.pop():i.splice(r,1)[0]}function R_(i,r){for(var t=[],e=0;e=0?i[1|e]=t:function Vge(i,r,t,e){var n=i.length;if(n==r)i.push(t,e);else if(1===n)i.push(e,i[0]),i[0]=t;else{for(n--,i.push(i[n-1],i[n]);n>r;)i[n]=i[n-2],n--;i[r]=t,i[r+1]=e}}(i,e=~e,r,t),e}function zx(i,r){var t=up(i,r);if(t>=0)return i[1|t]}function up(i,r){return function Qz(i,r,t){for(var e=0,n=i.length>>t;n!==e;){var a=e+(n-e>>1),o=i[a<r?n=a:e=a+1}return~(n<1&&void 0!==arguments[1]?arguments[1]:tn.Default;if(void 0===I_){var t="";throw new gt(203,t)}return null===I_?dz(i,void 0,r):I_.get(i,r&tn.Optional?null:void 0,r)}function oe(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn.Default;return(Ipe()||Zge)(fn(i),r)}var Yge=oe;function jx(i){for(var r=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.substr(2):i;var n=si(r);if(Array.isArray(r))n=r.map(si).join(" -> ");else if("object"==typeof r){var a=[];for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):si(s)))}n="{".concat(a.join(", "),"}")}return"".concat(t).concat(e?"("+e+")":"","[").concat(n,"]: ").concat(i.replace($ge,"\n "))}("\n"+i.message,n,t,e),i.ngTokenPath=n,i[OS]=null,i}var FS,LS,IS=N_(lp("Inject",function(i){return{token:i}}),-1),md=N_(lp("Optional"),8),F_=N_(lp("SkipSelf"),4);function dp(i){var r;return(null===(r=function $x(){if(void 0===FS&&(FS=null,hi.trustedTypes))try{FS=hi.trustedTypes.createPolicy("angular",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(i){}return FS}())||void 0===r?void 0:r.createHTML(i))||i}function l3(i){var r;return(null===(r=function qx(){if(void 0===LS&&(LS=null,hi.trustedTypes))try{LS=hi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(i){}return LS}())||void 0===r?void 0:r.createHTML(i))||i}var $h=function(){function i(r){p(this,i),this.changingThisBreaksApplicationSecurity=r}return v(i,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),i}(),dme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}($h),hme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}($h),fme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}($h),vme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}($h),pme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}($h);function Uo(i){return i instanceof $h?i.changingThisBreaksApplicationSecurity:i}function Wl(i,r){var t=d3(i);if(null!=t&&t!==r){if("ResourceURL"===t&&"URL"===r)return!0;throw new Error("Required a safe ".concat(r,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===r}function d3(i){return i instanceof $h&&i.getTypeName()||null}var Cme=function(){function i(r){p(this,i),this.inertDocumentHelper=r}return v(i,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var e=(new window.DOMParser).parseFromString(dp(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(n){return null}}}]),i}(),bme=function(){function i(r){if(p(this,i),this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var e=this.inertDocument.createElement("body");t.appendChild(e)}}return v(i,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=dp(t),e;var n=this.inertDocument.createElement("body");return n.innerHTML=dp(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();Xx.hasOwnProperty(e)&&!v3.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(_3(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return e}}]),i}(),Ime=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nme=/([^\#-~ |!])/g;function _3(i){return i.replace(/&/g,"&").replace(Ime,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(Nme,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}function y3(i,r){var t=null;try{PS=PS||function h3(i){var r=new bme(i);return function Sme(){try{return!!(new window.DOMParser).parseFromString(dp(""),"text/html")}catch(i){return!1}}()?new Cme(r):r}(i);var e=r?String(r):"";t=PS.getInertBodyElement(e);var n=5,a=e;do{if(0===n)throw new Error("Failed to sanitize html because the input is unstable");n--,e=a,a=t.innerHTML,t=PS.getInertBodyElement(e)}while(e!==a);return dp((new Ome).sanitizeChildren(Qx(t)||t))}finally{if(t)for(var l=Qx(t)||t;l.firstChild;)l.removeChild(l.firstChild)}}function Qx(i){return"content"in i&&function Fme(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var ki=function(){return(ki=ki||{})[ki.NONE=0]="NONE",ki[ki.HTML=1]="HTML",ki[ki.STYLE=2]="STYLE",ki[ki.SCRIPT=3]="SCRIPT",ki[ki.URL=4]="URL",ki[ki.RESOURCE_URL=5]="RESOURCE_URL",ki}();function BS(i){var r=V_();return r?l3(r.sanitize(ki.HTML,i)||""):Wl(i,"HTML")?l3(Uo(i)):y3(Sx(),rn(i))}function uc(i){var r=V_();return r?r.sanitize(ki.URL,i)||"":Wl(i,"URL")?Uo(i):P_(rn(i))}function V_(){var i=Oe();return i&&i[12]}var b3="__ngContext__";function Oa(i,r){i[b3]=r}function eM(i){var r=function G_(i){return i[b3]||null}(i);return r?Array.isArray(r)?r:r.lView:null}function nM(i){return i.ngOriginalError}function Yme(i){for(var r=arguments.length,t=new Array(r>1?r-1:0),e=1;e|^->||--!>|)/;var s_e=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(hi)}();function T3(i){return i.ownerDocument.defaultView}function ql(i){return i instanceof Function?i():i}var zo=function(){return(zo=zo||{})[zo.Important=1]="Important",zo[zo.DashCase=2]="DashCase",zo}();function rM(i,r){return undefined(i,r)}function z_(i){var r=i[3];return el(r)?r[3]:r}function aM(i){return O3(i[13])}function oM(i){return O3(i[4])}function O3(i){for(;null!==i&&!el(i);)i=i[4];return i}function fp(i,r,t,e,n){if(null!=e){var a,o=!1;el(e)?a=e:Hl(e)&&(o=!0,e=e[0]);var s=Ar(e);0===i&&null!==t?null==n?B3(r,t,s):qh(r,t,s,n||null,!0):1===i&&null!==t?qh(r,t,s,n||null,!0):2===i?j3(r,s,o):3===i&&r.destroyNode(s),null!=a&&function S_e(i,r,t,e,n){var a=t[7];a!==Ar(t)&&fp(r,i,e,a,n);for(var s=10;s0&&(i[t-1][4]=e[4]);var a=MS(i,10+r);!function h_e(i,r){H_(i,r,r[11],2,null,null),r[0]=null,r[6]=null}(e[1],e);var o=a[19];null!==o&&o.detachView(a[1]),e[3]=null,e[4]=null,e[2]&=-129}return e}}function F3(i,r){if(!(256&r[2])){var t=r[11];sr(t)&&t.destroyNode&&H_(i,r,t,3,null,null),function p_e(i){var r=i[13];if(!r)return cM(i[1],i);for(;r;){var t=null;if(Hl(r))t=r[13];else{var e=r[10];e&&(t=e)}if(!t){for(;r&&!r[4]&&r!==i;)Hl(r)&&cM(r[1],r),r=r[3];null===r&&(r=i),Hl(r)&&cM(r[1],r),t=r&&r[4]}r=t}}(r)}}function cM(i,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function y_e(i,r){var t;if(null!=i&&null!=(t=i.destroyHooks))for(var e=0;e=0?e[n=u]():e[n=-u].unsubscribe(),a+=2}else{var c=e[n=t[a+1]];t[a].call(c)}if(null!==e){for(var d=n+1;da?"":n[d+1].toLowerCase();var f=8&e?h:null;if(f&&-1!==q3(f,u,0)||2&e&&u!==h){if(nl(e))return!1;o=!0}}}}else{if(!o&&!nl(e)&&!nl(l))return!1;if(o&&nl(l))continue;o=!1,e=l|1&e}}return nl(e)||o}function nl(i){return 0==(1&i)}function A_e(i,r,t,e){if(null===r)return-1;var n=0;if(e||!t){for(var a=!1;n-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],e=0;e0?'="'+s+'"':"")+"]"}else 8&e?n+="."+o:4&e&&(n+=" "+o);else""!==n&&!nl(o)&&(r+=Q3(a,n),n=""),e=o,a=a||!nl(e);t++}return""!==n&&(r+=Q3(a,n)),r}var on={};function k(i){J3(Bn(),Oe(),Ka()+i,!1)}function J3(i,r,t,e){if(!e)if(3==(3&r[2])){var a=i.preOrderCheckHooks;null!==a&&bS(r,a,t)}else{var o=i.preOrderHooks;null!==o&&SS(r,o,0,t)}pd(t)}function zS(i,r){return i<<17|r<<2}function il(i){return i>>17&32767}function pM(i){return 2|i}function cc(i){return(131068&i)>>2}function gM(i,r){return-131069&i|r<<2}function mM(i){return 1|i}function cH(i,r){var t=i.contentQueries;if(null!==t)for(var e=0;e20&&J3(i,r,20,!1),t(e,n)}finally{pd(a)}}function hH(i,r,t){if(mx(r))for(var n=r.directiveEnd,a=r.directiveStart;a2&&void 0!==arguments[2]?arguments[2]:Ss,e=r.localNames;if(null!==e)for(var n=r.index+1,a=0;a0;){var t=i[--r];if("number"==typeof t&&t<0)return t}return 0})(s)!=l&&s.push(l),s.push(e,n,o)}}function kH(i,r){null!==i.hostBindings&&i.hostBindings(1,r)}function CH(i,r){r.flags|=2,(i.components||(i.components=[])).push(r.index)}function lye(i,r,t){if(t){if(r.exportAs)for(var e=0;e0&&RM(t)}}function RM(i){for(var r=aM(i);null!==r;r=oM(r))for(var t=10;t0&&RM(e)}var o=i[1].components;if(null!==o)for(var s=0;s0&&RM(l)}}function pye(i,r){var t=Vo(r,i),e=t[1];(function gye(i,r){for(var t=r.length;t1&&void 0!==arguments[1]?arguments[1]:O_;if(e===O_){var n=new Error("NullInjectorError: No provider for ".concat(si(t),"!"));throw n.name="NullInjectorError",n}return e}}]),i}(),PM=new Dt("Set Injector scope."),W_={},Cye={},BM=void 0;function OH(){return void 0===BM&&(BM=new RH),BM}function IH(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e=arguments.length>3?arguments[3]:void 0,n=NH(i,r,t,e);return n._resolveInjectorDefTypes(),n}function NH(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e=arguments.length>3?arguments[3]:void 0;return new bye(i,t,r||OH(),e)}var bye=function(){function i(r,t,e){var n=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p(this,i),this.parent=e,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];t&&jl(t,function(l){return n.processProvider(l,r,t)}),jl([r],function(l){return n.processInjectorType(l,[],o)}),this.records.set(LM,mp(void 0,this));var s=this.records.get(PM);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof r?null:si(r))}return v(i,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O_,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn.Default;this.assertNotDestroyed();var a=t3(this),o=dd(void 0);try{if(!(n&tn.SkipSelf)){var s=this.records.get(t);if(void 0===s){var l=Mye(t)&&cx(t);s=l&&this.injectableDefInScope(l)?mp(VM(t),W_):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}var u=n&tn.Self?OH():this.parent;return u.get(t,e=n&tn.Optional&&e===O_?null:e)}catch(d){if("NullInjectorError"===d.name){var c=d[OS]=d[OS]||[];if(c.unshift(si(t)),a)throw d;return Jge(d,t,"R3InjectorError",this.source)}throw d}finally{dd(o),t3(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(n,a){return t.push(si(a))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new gt(205,!1)}},{key:"processInjectorType",value:function(t,e,n){var a=this;if(!(t=fn(t)))return!1;var o=uz(t),s=null==o&&t.ngModule||void 0,l=void 0===s?t:s,d=-1!==n.indexOf(l);if(void 0!==s&&(o=uz(s)),null==o)return!1;if(null!=o.imports&&!d){var h;n.push(l);try{jl(o.imports,function(E){a.processInjectorType(E,e,n)&&(void 0===h&&(h=[]),h.push(E))})}finally{}if(void 0!==h)for(var f=function(M){var R=h[M],N=R.ngModule,G=R.providers;jl(G,function(U){return a.processProvider(U,N,G||yi)})},g=0;g0)throw R_(r,"?"),new gt(204,!1);var e=function Mpe(i){var r=i&&(i[cS]||i[cz]);if(r){var t=function Rpe(i){if(i.hasOwnProperty("name"))return i.name;var r=(""+i).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(i);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),r}return null}(i);return null!==e?function(){return e.factory(i)}:function(){return new i}}(i);throw new gt(204,!1)}function FH(i,r,t){var e=void 0;if(_p(i)){var n=fn(i);return Wh(n)||VM(n)}if(LH(i))e=function(){return fn(i.useValue)};else if(function Eye(i){return!(!i||!i.useFactory)}(i))e=function(){return i.useFactory.apply(i,Ae(jx(i.deps||[])))};else if(function Dye(i){return!(!i||!i.useExisting)}(i))e=function(){return oe(fn(i.useExisting))};else{var a=fn(i&&(i.useClass||i.provide));if(!function Aye(i){return!!i.deps}(i))return Wh(a)||VM(a);e=function(){return qr(a,Ae(jx(i.deps)))}}return e}function mp(i,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:i,value:r,multi:t?[]:void 0}}function LH(i){return null!==i&&"object"==typeof i&&Xge in i}function _p(i){return"function"==typeof i}function Mye(i){return"function"==typeof i||"object"==typeof i&&i instanceof Dt}var Jn=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"create",value:function(e,n){var a;if(Array.isArray(e))return IH({name:""},n,e,"");var o=null!==(a=e.name)&&void 0!==a?a:"";return IH({name:o},e.parent,e.providers,o)}}]),r}();return i.THROW_IF_NOT_FOUND=O_,i.NULL=new RH,i.\u0275prov=pe({token:i,providedIn:"any",factory:function(){return oe(LM)}}),i.__NG_ELEMENT_ID__=-1,i}();function Uye(i,r){CS(eM(i)[1],Fr())}function j(i){for(var r=function KH(i){return Object.getPrototypeOf(i.prototype).constructor}(i.type),t=!0,e=[i];r;){var n=void 0;if(tl(i))n=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new gt(903,"");n=r.\u0275dir}if(n){if(t){e.push(n);var o=i;o.inputs=UM(i.inputs),o.declaredInputs=UM(i.declaredInputs),o.outputs=UM(i.outputs);var s=n.hostBindings;s&&jye(i,s);var l=n.viewQuery,u=n.contentQueries;if(l&&Hye(i,l),u&&Kye(i,u),sx(i.inputs,n.inputs),sx(i.declaredInputs,n.declaredInputs),sx(i.outputs,n.outputs),tl(n)&&n.data.animation){var c=i.data;c.animation=(c.animation||[]).concat(n.data.animation)}}var d=n.features;if(d)for(var h=0;h=0;e--){var n=i[e];n.hostVars=r+=n.hostVars,n.hostAttrs=DS(n.hostAttrs,t=DS(t,n.hostAttrs))}}(e)}function UM(i){return i===Xv?{}:i===yi?[]:i}function Hye(i,r){var t=i.viewQuery;i.viewQuery=t?function(e,n){r(e,n),t(e,n)}:r}function Kye(i,r){var t=i.contentQueries;i.contentQueries=t?function(e,n,a){r(e,n,a),t(e,n,a)}:r}function jye(i,r){var t=i.hostBindings;i.hostBindings=t?function(e,n){r(e,n),t(e,n)}:r}var qS=null;function yp(){if(!qS){var i=hi.Symbol;if(i&&i.iterator)qS=i.iterator;else for(var r=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:tn.Default,t=Oe();if(null===t)return oe(i,r);var e=Fr();return Kz(e,t,fn(i),r)}function Mp(){throw new Error("invalid")}function y(i,r,t){var e=Oe();return Ia(e,tp(),r)&&Ho(Bn(),lr(),e,i,r,e[11],t,!1),y}function WM(i,r,t,e,n){var o=n?"class":"style";MH(i,t,r.inputs[o],o,e)}function A(i,r,t,e){var n=Oe(),a=Bn(),o=20+i,s=n[11],l=n[o]=lM(s,r,function kge(){return an.lFrame.currentNamespace}()),u=a.firstCreatePass?function mke(i,r,t,e,n,a,o){var s=r.consts,u=vp(r,i,2,n,vd(s,a));return xM(r,t,u,vd(s,o)),null!==u.attrs&&$S(u,u.attrs,!1),null!==u.mergedAttrs&&$S(u,u.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,u),u}(o,a,n,0,r,t,e):a.data[o];Kl(u,!0);var c=u.mergedAttrs;null!==c&&wS(s,l,c);var d=u.classes;null!==d&&vM(s,l,d);var h=u.styles;return null!==h&&$3(s,l,h),64!=(64&u.flags)&&GS(a,n,l,u),0===function age(){return an.lFrame.elementDepthCount}()&&Oa(l,n),function oge(){an.lFrame.elementDepthCount++}(),gS(u)&&(TM(a,n,u),hH(a,u,n)),null!==e&&AM(n,u),A}function x(){var i=Fr();Tx()?Ax():Kl(i=i.parent,!1);var r=i;!function sge(){an.lFrame.elementDepthCount--}();var t=Bn();return t.firstCreatePass&&(CS(t,i),mx(i)&&t.queries.elementEnd(i)),null!=r.classesWithoutHost&&function Dge(i){return 0!=(16&i.flags)}(r)&&WM(t,r,Oe(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function Ege(i){return 0!=(32&i.flags)}(r)&&WM(t,r,Oe(),r.stylesWithoutHost,!1),x}function z(i,r,t,e){return A(i,r,t,e),x(),z}function Ve(i,r,t){var e=Oe(),n=Bn(),a=i+20,o=n.firstCreatePass?function _ke(i,r,t,e,n){var a=r.consts,o=vd(a,e),s=vp(r,i,8,"ng-container",o);return null!==o&&$S(s,o,!0),xM(r,t,s,vd(a,n)),null!==r.queries&&r.queries.elementStart(r,s),s}(a,n,e,r,t):n.data[a];Kl(o,!0);var s=e[a]=e[11].createComment("");return GS(n,e,s,o),Oa(s,e),gS(o)&&(TM(n,e,o),hH(n,o,e)),null!=t&&AM(e,o),Ve}function Ge(){var i=Fr(),r=Bn();return Tx()?Ax():Kl(i=i.parent,!1),r.firstCreatePass&&(CS(r,i),mx(i)&&r.queries.elementEnd(i)),Ge}function Wt(i,r,t){return Ve(i,r,t),Ge(),Wt}function Me(){return Oe()}function X_(i){return!!i&&"function"==typeof i.then}var $M=function d8(i){return!!i&&"function"==typeof i.subscribe};function Q(i,r,t,e){var n=Oe(),a=Bn(),o=Fr();return function f8(i,r,t,e,n,a,o,s){var l=gS(e),c=i.firstCreatePass&&TH(i),d=r[8],h=EH(r),f=!0;if(3&e.type||s){var g=Ss(e,r),_=s?s(g):g,C=h.length,w=s?function(me){return s(Ar(me[e.index]))}:e.index;if(sr(t)){var E=null;if(!s&&l&&(E=function yke(i,r,t,e){var n=i.cleanup;if(null!=n)for(var a=0;al?s[l]:null}"string"==typeof o&&(a+=2)}return null}(i,r,n,e.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=a,E.__ngLastListenerFn__=a,f=!1;else{a=qM(e,r,d,a,!1);var R=t.listen(_,n,a);h.push(a,R),c&&c.push(n,w,C,C+1)}}else a=qM(e,r,d,a,!0),_.addEventListener(n,a,o),h.push(a),c&&c.push(n,w,C,o)}else a=qM(e,r,d,a,!1);var G,N=e.outputs;if(f&&null!==N&&(G=N[n])){var U=G.length;if(U)for(var ee=0;ee0&&void 0!==arguments[0]?arguments[0]:1;return pge(i)}function kke(i,r){for(var t=null,e=function x_e(i){var r=i.attrs;if(null!=r){var t=r.indexOf(5);if(0==(1&t))return r[t+1]}return null}(i),n=0;n1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,e=Oe(),n=Bn(),a=vp(n,20+i,16,null,t||null);null===a.projection&&(a.projection=r),Ax(),64!=(64&a.flags)&&b_e(n,e,a)}function ZS(i,r,t){return XM(i,"",r,"",t),ZS}function XM(i,r,t,e,n){var a=Oe(),o=Cp(a,r,t,e);return o!==on&&Ho(Bn(),lr(),a,i,o,a[11],n,!1),XM}function S8(i,r,t,e,n){for(var a=i[t+1],o=null===r,s=e?il(a):cc(a),l=!1;0!==s&&(!1===l||o);){var c=i[s+1];Ske(i[s],r)&&(l=!0,i[s+1]=e?mM(c):pM(c)),s=e?il(c):cc(c)}l&&(i[t+1]=e?pM(a):mM(a))}function Ske(i,r){return null===i||null==r||(Array.isArray(i)?i[1]:i)===r||!(!Array.isArray(i)||"string"!=typeof r)&&up(i,r)>=0}var Pr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function w8(i){return i.substring(Pr.key,Pr.keyEnd)}function D8(i,r){var t=Pr.textEnd;return t===r?-1:(r=Pr.keyEnd=function Tke(i,r,t){for(;r32;)r++;return r}(i,Pr.key=r,t),Rp(i,r,t))}function Rp(i,r,t){for(;r=0;t=D8(r,t))Go(i,w8(r),!0)}function al(i,r,t,e){var n=Oe(),a=Bn(),o=lc(2);a.firstUpdatePass&&R8(a,i,o,e),r!==on&&Ia(n,o,r)&&I8(a,a.data[Ka()],n,n[11],i,n[o+1]=function Pke(i,r){return null==i||("string"==typeof r?i+=r:"object"==typeof i&&(i=si(Uo(i)))),i}(r,t),e,o)}function ol(i,r,t,e){var n=Bn(),a=lc(2);n.firstUpdatePass&&R8(n,null,a,e);var o=Oe();if(t!==on&&Ia(o,a,t)){var s=n.data[Ka()];if(F8(s,e)&&!M8(n,a)){var u=e?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(t=lx(u,t||"")),WM(n,s,o,t,e)}else!function Lke(i,r,t,e,n,a,o,s){n===on&&(n=yi);for(var l=0,u=0,c=0=i.expandoStartIndex}function R8(i,r,t,e){var n=i.data;if(null===n[t+1]){var a=n[Ka()],o=M8(i,t);F8(a,e)&&null===r&&!o&&(r=!1),r=function Rke(i,r,t,e){var n=Mx(i),a=e?r.residualClasses:r.residualStyles;if(null===n)0===(e?r.classBindings:r.styleBindings)&&(t=Z_(t=ZM(null,i,r,t,e),r.attrs,e),a=null);else{var s=r.directiveStylingLast;if(-1===s||i[s]!==n)if(t=ZM(n,i,r,t,e),null===a){var u=function Oke(i,r,t){var e=t?r.classBindings:r.styleBindings;if(0!==cc(e))return i[il(e)]}(i,r,e);void 0!==u&&Array.isArray(u)&&function Ike(i,r,t,e){i[il(t?r.classBindings:r.styleBindings)]=e}(i,r,e,u=Z_(u=ZM(null,i,r,u[1],e),r.attrs,e))}else a=function Nke(i,r,t){for(var e=void 0,n=r.directiveEnd,a=1+r.directiveStylingLast;a0)&&(u=!0):c=t,n)if(0!==l){var f=il(i[s+1]);i[e+1]=zS(f,s),0!==f&&(i[f+1]=gM(i[f+1],e)),i[s+1]=function L_e(i,r){return 131071&i|r<<17}(i[s+1],e)}else i[e+1]=zS(s,0),0!==s&&(i[s+1]=gM(i[s+1],e)),s=e;else i[e+1]=zS(l,0),0===s?s=e:i[l+1]=gM(i[l+1],e),l=e;u&&(i[e+1]=pM(i[e+1])),S8(i,c,e,!0),S8(i,c,e,!1),function bke(i,r,t,e,n){var a=n?i.residualClasses:i.residualStyles;null!=a&&"string"==typeof r&&up(a,r)>=0&&(t[e+1]=mM(t[e+1]))}(r,c,i,e,a),o=zS(s,l),a?r.classBindings=o:r.styleBindings=o}(n,a,r,t,o,e)}}function ZM(i,r,t,e,n){var a=null,o=t.directiveEnd,s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){var l=i[n],u=Array.isArray(l),c=u?l[1]:l,d=null===c,h=t[n+1];h===on&&(h=d?yi:void 0);var f=d?zx(h,e):c===e?h:void 0;if(u&&!YS(f)&&(f=zx(l,e)),YS(f)&&(s=f,o))return s;var g=i[n+1];n=o?il(g):cc(g)}if(null!==r){var _=a?r.residualClasses:r.residualStyles;null!=_&&(s=zx(_,e))}return s}function YS(i){return void 0!==i}function F8(i,r){return 0!=(i.flags&(r?16:32))}function te(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Oe(),e=Bn(),n=i+20,a=e.firstCreatePass?vp(e,n,1,r,null):e.data[n],o=t[n]=sM(t[11],r);GS(e,t,o,a),Kl(a,!1)}function at(i){return Nt("",i,""),at}function Nt(i,r,t){var e=Oe(),n=Cp(e,i,r,t);return n!==on&&dc(e,Ka(),n),Nt}function Jl(i,r,t,e,n){var a=Oe(),o=function bp(i,r,t,e,n,a){var s=Xh(i,sc(),t,n);return lc(2),s?r+rn(t)+e+rn(n)+a:on}(a,i,r,t,e,n);return o!==on&&dc(a,Ka(),o),Jl}function YM(i,r,t,e,n,a,o,s,l,u,c){var d=Oe(),h=function Dp(i,r,t,e,n,a,o,s,l,u,c,d){var h=sc(),f=Es(i,h,t,n,o,l);return f=Ia(i,h+4,c)||f,lc(5),f?r+rn(t)+e+rn(n)+a+rn(o)+s+rn(l)+u+rn(c)+d:on}(d,i,r,t,e,n,a,o,s,l,u,c);return h!==on&&dc(d,Ka(),h),YM}function QM(i,r,t){var e=Oe();return Ia(e,tp(),r)&&Ho(Bn(),lr(),e,i,r,e[11],t,!0),QM}function JM(i,r,t){var e=Oe();if(Ia(e,tp(),r)){var a=Bn(),o=lr();Ho(a,o,e,i,r,function AH(i,r,t){return(null===i||tl(i))&&(t=function nge(i){for(;Array.isArray(i);){if("object"==typeof i[1])return i;i=i[0]}return null}(t[r.index])),t[11]}(Mx(a.data),o,e),t,!0)}return JM}var Zh=void 0,nCe=["en",[["a","p"],["AM","PM"],Zh],[["AM","PM"],Zh,Zh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Zh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Zh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Zh,"{1} 'at' {0}",Zh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function tCe(i){var t=Math.floor(Math.abs(i)),e=i.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===e?1:5}],Op={};function ja(i){var r=function iCe(i){return i.toLowerCase().replace(/_/g,"-")}(i),t=Q8(r);if(t)return t;var e=r.split("-")[0];if(t=Q8(e))return t;if("en"===e)return nCe;throw new Error('Missing locale data for the locale "'.concat(i,'".'))}function Q8(i){return i in Op||(Op[i]=hi.ng&&hi.ng.common&&hi.ng.common.locales&&hi.ng.common.locales[i]),Op[i]}var st=function(){return(st=st||{})[st.LocaleId=0]="LocaleId",st[st.DayPeriodsFormat=1]="DayPeriodsFormat",st[st.DayPeriodsStandalone=2]="DayPeriodsStandalone",st[st.DaysFormat=3]="DaysFormat",st[st.DaysStandalone=4]="DaysStandalone",st[st.MonthsFormat=5]="MonthsFormat",st[st.MonthsStandalone=6]="MonthsStandalone",st[st.Eras=7]="Eras",st[st.FirstDayOfWeek=8]="FirstDayOfWeek",st[st.WeekendRange=9]="WeekendRange",st[st.DateFormat=10]="DateFormat",st[st.TimeFormat=11]="TimeFormat",st[st.DateTimeFormat=12]="DateTimeFormat",st[st.NumberSymbols=13]="NumberSymbols",st[st.NumberFormats=14]="NumberFormats",st[st.CurrencyCode=15]="CurrencyCode",st[st.CurrencySymbol=16]="CurrencySymbol",st[st.CurrencyName=17]="CurrencyName",st[st.Currencies=18]="Currencies",st[st.Directionality=19]="Directionality",st[st.PluralCase=20]="PluralCase",st[st.ExtraData=21]="ExtraData",st}(),rCe=["zero","one","two","few","many"],QS="en-US",JS={marker:"element"},ew={marker:"ICU"},J8=QS;function Q_(i,r){var t=i.data[r];return null===t||"string"==typeof t?null:t.hasOwnProperty("currentCaseLViewIndex")?t:t.value}function tw(i,r){var t=r[i.currentCaseLViewIndex];return null===t?t:t<0?~t:t}function r5(i){return i>>>17}function a5(i){return(131070&i)>>>1}var J_=0,ey=0;function s5(i,r,t,e){for(var o,n=t[11],a=null,s=0;s>>1,t),null,null,E,M,null)}else switch(l){case ew:var R=r[++s],N=r[++s];null===t[N]&&Oa(t[N]=d_e(n,R),t);break;case JS:var U=r[++s],ee=r[++s];null===t[ee]&&Oa(t[ee]=lM(n,U,null),t)}}}function l5(i,r,t,e,n){for(var a=0;a>>2;switch(3&c){case 1:var h=t[++u],f=t[++u],g=i.data[d];"string"==typeof g?MM(r[11],r[d],null,g,h,l,f):Ho(i,g,r,h,l,r[11],f,!1);break;case 0:var _=r[d];null!==_&&I3(r[11],_,l);break;case 2:yCe(i,Q_(i,d),r,l);break;case 3:u5(i,Q_(i,d),e,r)}}}else{var C=t[a+1];if(C>0&&3==(3&C)){var E=Q_(i,C>>>2);r[E.currentCaseLViewIndex]<0&&u5(i,E,e,r)}}a+=s}}function u5(i,r,t,e){var n=e[r.currentCaseLViewIndex];if(null!==n){var a=J_;n<0&&(n=e[r.currentCaseLViewIndex]=~n,a=-1),l5(i,e,r.update[n],t,a)}}function yCe(i,r,t,e){var n=function kCe(i,r){var t=i.cases.indexOf(r);if(-1===t)switch(i.type){case 1:var e=function aCe(i,r){var t=function Y8(i){return ja(i)[st.PluralCase]}(r)(parseInt(i,10)),e=rCe[t];return void 0!==e?e:"other"}(r,function lCe(){return J8}());-1===(t=i.cases.indexOf(e))&&"other"!==e&&(t=i.cases.indexOf("other"));break;case 0:t=i.cases.indexOf("other")}return-1===t?null:t}(r,e);if(tw(r,t)!==n&&(c5(i,r,t),t[r.currentCaseLViewIndex]=null===n?null:~n,null!==n)){var o=t[r.anchorIdx];o&&s5(i,r.create[n],t,o)}}function c5(i,r,t){var e=tw(r,t);if(null!==e)for(var n=r.remove[e],a=0;a0){var s=mS(o,t);null!==s&&j3(t[11],s)}else c5(i,Q_(i,~o),t)}}var nw=/\ufffd(\d+):?\d*\ufffd/gi,bCe=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function Ip(i,r,t,e,n,a){var o=i.length,s=o+1;i.push(null,null);for(var l=o+2,u=r.split(nw),c=0,d=0;d>20;if(_p(i)||!i.multi){var g=new w_(u,n,m),_=aR(l,r,n?d:d+f,h);-1===_?(AS(E_(c,s),o,l),rR(o,i,r.length),r.push(l),c.directiveStart++,c.directiveEnd++,n&&(c.providerIndexes+=1048576),t.push(g),s.push(g)):(t[_]=g,s[_]=g)}else{var C=aR(l,r,d+f,h),w=aR(l,r,d,d+f),M=w>=0&&t[w];if(n&&!M||!n&&!(C>=0&&t[C])){AS(E_(c,s),o,l);var R=function JCe(i,r,t,e,n){var a=new w_(i,t,m);return a.multi=[],a.index=r,a.componentProviders=0,w5(a,n,e&&!t),a}(n?QCe:YCe,t.length,n,e,u);!n&&M&&(t[w].providerFactory=R),rR(o,i,r.length,0),r.push(l),c.directiveStart++,c.directiveEnd++,n&&(c.providerIndexes+=1048576),t.push(R),s.push(R)}else rR(o,i,C>-1?C:w,w5(t[n?w:C],u,!n&&e));!n&&e&&M&&t[w].componentProviders++}}}function rR(i,r,t,e){var n=_p(r),a=function Tye(i){return!!i.useClass}(r);if(n||a){var l=(a?fn(r.useClass):r).prototype.ngOnDestroy;if(l){var u=i.destroyHooks||(i.destroyHooks=[]);if(!n&&r.multi){var c=u.indexOf(t);-1===c?u.push(t,[e,l]):u[c+1].push(e,l)}else u.push(t,l)}}}function w5(i,r,t){return t&&i.componentProviders++,i.multi.push(r)-1}function aR(i,r,t,e){for(var n=t;n1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(e,n){return ZCe(e,n?n(i):i,r)}}}var ebe=v(function i(){p(this,i)}),D5=v(function i(){p(this,i)}),nbe=function(){function i(){p(this,i)}return v(i,[{key:"resolveComponentFactory",value:function(t){throw function tbe(i){var r=Error("No component factory found for ".concat(si(i),". Did you add it to @NgModule.entryComponents?"));return r.ngComponent=i,r}(t)}}]),i}(),Ts=function(){var i=v(function r(){p(this,r)});return i.NULL=new nbe,i}();function ibe(){return Np(Fr(),Oe())}function Np(i,r){return new _e(Ss(i,r))}var _e=function(){var i=v(function r(t){p(this,r),this.nativeElement=t});return i.__NG_ELEMENT_ID__=ibe,i}();function rbe(i){return i instanceof _e?i.nativeElement:i}var ny=v(function i(){p(this,i)}),Ee=function(){var i=v(function r(){p(this,r)});return i.__NG_ELEMENT_ID__=function(){return function obe(){var i=Oe(),t=Vo(Fr().index,i);return function abe(i){return i[11]}(Hl(t)?t:i)}()},i}(),sbe=function(){var i=v(function r(){p(this,r)});return i.\u0275prov=pe({token:i,providedIn:"root",factory:function(){return null}}),i}(),iy=v(function i(r){p(this,i),this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}),lbe=new iy("13.3.10"),sR={};function iw(i,r,t,e){for(var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var a=r[t.index];if(null!==a&&e.push(Ar(a)),el(a))for(var o=10;o-1&&(uM(t,n),MS(e,n))}this._attachedToViewContainer=!1}F3(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){gH(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){OM(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){!function NM(i,r,t){var e=r[10];e.begin&&e.begin();try{gp(i,r,i.template,t)}catch(n){throw xH(r,n),n}finally{e.end&&e.end()}}(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new gt(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function v_e(i,r){H_(i,r,r[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new gt(902,"");this._appRef=t}}]),i}(),ube=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e))._view=e,n}return v(t,[{key:"detectChanges",value:function(){DH(this._view)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),t}(ry),T5=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).ngModule=e,n}return v(t,[{key:"resolveComponentFactory",value:function(n){var a=Ma(n);return new lR(a,this.ngModule)}}]),t}(Ts);function A5(i){var r=[];for(var t in i)i.hasOwnProperty(t)&&r.push({propName:i[t],templateName:t});return r}var lR=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).componentDef=e,a.ngModule=n,a.componentType=e.type,a.selector=function N_e(i){return i.map(I_e).join(",")}(e.selectors),a.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],a.isBoundToModule=!!n,a}return v(t,[{key:"inputs",get:function(){return A5(this.componentDef.inputs)}},{key:"outputs",get:function(){return A5(this.componentDef.outputs)}},{key:"create",value:function(n,a,o,s){var E,M,l=(s=s||this.ngModule)?function dbe(i,r){return{get:function(e,n,a){var o=i.get(e,sR,a);return o!==sR||n===sR?o:r.get(e,n,a)}}}(n,s.injector):n,u=l.get(ny,bz),c=l.get(sbe,null),d=u.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",f=o?function pH(i,r,t){if(sr(i))return i.selectRootElement(r,t===Qs.ShadowDom);var n="string"==typeof r?i.querySelector(r):r;return n.textContent="",n}(d,o,this.componentDef.encapsulation):lM(u.createRenderer(null,this.componentDef),h,function cbe(i){var r=i.toLowerCase();return"svg"===r?"svg":"math"===r?"math":null}(h)),g=this.componentDef.onPush?576:528,_=function HH(i,r){return{components:[],scheduler:i||s_e,clean:_ye,playerHandler:r||null,flags:0}}(),C=jS(0,null,null,1,0,null,null,null,null,null),w=K_(null,C,_,g,null,null,u,d,c,l);yS(w);try{var R=function UH(i,r,t,e,n,a){var o=t[1];t[20]=i;var l=vp(o,20,2,"#host",null),u=l.mergedAttrs=r.hostAttrs;null!==u&&($S(l,u,!0),null!==i&&(wS(n,i,u),null!==l.classes&&vM(n,i,l.classes),null!==l.styles&&$3(n,i,l.styles)));var c=e.createRenderer(i,r),d=K_(t,fH(r),null,r.onPush?64:16,t[20],l,e,c,a||null,null);return o.firstCreatePass&&(AS(E_(l,t),o,r.type),CH(o,l),bH(l,t.length,1)),WS(t,d),t[20]=d}(f,this.componentDef,w,u,d);if(f)if(o)wS(d,f,["ng-version",lbe.full]);else{var N=function F_e(i){for(var r=[],t=[],e=1,n=2;e0&&vM(d,f,U.join(" "))}if(M=wx(C,20),void 0!==a)for(var ee=M.projection=[],ve=0;ve1&&void 0!==arguments[1]?arguments[1]:Jn.THROW_IF_NOT_FOUND,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn.Default;return n===Jn||n===hc||n===LM?this:this._r3Injector.get(n,a,o)}},{key:"destroy",value:function(){var n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(function(a){return a()}),this.destroyCbs=null}},{key:"onDestroy",value:function(n){this.destroyCbs.push(n)}}]),t}(hc),uR=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).moduleType=e,null!==ks(e)&&function pbe(i){var r=new Set;!function t(e){var n=ks(e,!0),a=n.id;null!==a&&(function M5(i,r,t){if(r&&r!==t)throw new Error("Duplicate module registered for ".concat(i," - ").concat(si(r)," vs ").concat(si(r.name)))}(a,Fp.get(a),e),Fp.set(a,e));var u,l=In(ql(n.imports));try{for(l.s();!(u=l.n()).done;){var c=u.value;r.has(c)||(r.add(c),t(c))}}catch(d){l.e(d)}finally{l.f()}}(i)}(e),n}return v(t,[{key:"create",value:function(n){return new O5(this.moduleType,n)}}]),t}(x5);function wt(i,r,t){var e=Ha()+i,n=Oe();return n[e]===on?Zl(n,e,t?r.call(t):r()):q_(n,e)}function ot(i,r,t,e){return N5(Oe(),Ha(),i,r,t,e)}function ln(i,r,t,e,n){return F5(Oe(),Ha(),i,r,t,e,n)}function va(i,r,t,e,n,a){return L5(Oe(),Ha(),i,r,t,e,n,a)}function eu(i,r,t,e,n,a,o){return function P5(i,r,t,e,n,a,o,s,l){var u=r+t;return Es(i,u,n,a,o,s)?Zl(i,u+4,l?e.call(l,n,a,o,s):e(n,a,o,s)):oy(i,u+4)}(Oe(),Ha(),i,r,t,e,n,a,o)}function ay(i,r,t,e,n,a,o,s,l){var u=Ha()+i,c=Oe(),d=Es(c,u,t,e,n,a);return Xh(c,u+4,o,s)||d?Zl(c,u+6,l?r.call(l,t,e,n,a,o,s):r(t,e,n,a,o,s)):q_(c,u+6)}function cR(i,r,t,e,n,a,o,s,l,u){var c=Ha()+i,d=Oe(),h=Es(d,c,t,e,n,a);return XS(d,c+4,o,s,l)||h?Zl(d,c+7,u?r.call(u,t,e,n,a,o,s,l):r(t,e,n,a,o,s,l)):q_(d,c+7)}function dR(i,r,t,e){return function B5(i,r,t,e,n,a){for(var o=r+t,s=!1,l=0;l=0;t--){var e=r[t];if(i===e.name)return e}}(r,t.pipeRegistry),t.data[n]=e,e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)):e=t.data[n];var a=e.factory||(e.factory=Wh(e.type)),o=dd(m);try{var s=ES(!1),l=a();return ES(s),function Jye(i,r,t,e){t>=i.data.length&&(i.data[t]=null,i.blueprint[t]=null),r[t]=e}(t,Oe(),n,l),l}finally{dd(o)}}function fc(i,r,t){var e=i+20,n=Oe(),a=ep(n,e);return sy(n,e)?N5(n,Ha(),r,a.transform,t,a):a.transform(t)}function rw(i,r,t,e){var n=i+20,a=Oe(),o=ep(a,n);return sy(a,n)?F5(a,Ha(),r,o.transform,t,e,o):o.transform(t,e)}function aw(i,r,t,e,n){var a=i+20,o=Oe(),s=ep(o,a);return sy(o,a)?L5(o,Ha(),r,s.transform,t,e,n,s):s.transform(t,e,n)}function sy(i,r){return i[1].data[r].pure}var kbe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p(this,t),(e=r.call(this)).__isAsync=n,e}return v(t,[{key:"emit",value:function(n){$(q(t.prototype),"next",this).call(this,n)}},{key:"subscribe",value:function(n,a,o){var s,l,u,c=n,d=a||function(){return null},h=o;if(n&&"object"==typeof n){var f=n;c=null===(s=f.next)||void 0===s?void 0:s.bind(f),d=null===(l=f.error)||void 0===l?void 0:l.bind(f),h=null===(u=f.complete)||void 0===u?void 0:u.bind(f)}this.__isAsync&&(d=hR(d),c&&(c=hR(c)),h&&(h=hR(h)));var g=$(q(t.prototype),"subscribe",this).call(this,{next:c,error:d,complete:h});return n instanceof Je&&n.add(g),g}}]),t}(Ot);function hR(i){return function(r){setTimeout(i,void 0,r)}}var O=kbe;function Cbe(){return this._results[yp()]()}var Ei=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,i),this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=yp(),e=i.prototype;e[t]||(e[t]=Cbe)}return v(i,[{key:"changes",get:function(){return this._changes||(this._changes=new O)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){var n=this;n.dirty=!1;var a=ws(t);(this._changesDetected=!function Pge(i,r,t){if(i.length!==r.length)return!1;for(var e=0;e0;)this.remove(this.length-1)}},{key:"get",value:function(n){var a=G5(this._lContainer);return null!==a&&a[n]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(n,a,o){var s=n.createEmbeddedView(a||{});return this.insert(s,o),s}},{key:"createComponent",value:function(n,a,o,s,l){var c,u=n&&!function M_(i){return"function"==typeof i}(n);if(u)c=a;else{var d=a||{};c=d.index,o=d.injector,s=d.projectableNodes,l=d.ngModuleRef}var h=u?n:new lR(Ma(n)),f=o||this.parentInjector;if(!l&&null==h.ngModule){var _=(u?f:this.parentInjector).get(hc,null);_&&(l=_)}var C=h.create(f,s,void 0,l);return this.insert(C.hostView,c),C}},{key:"insert",value:function(n,a){var o=n._lView,s=o[1];if(function rge(i){return el(i[3])}(o)){var l=this.indexOf(n);if(-1!==l)this.detach(l);else{var u=o[3],c=new V5(u,u[6],u[3]);c.detach(c.indexOf(n))}}var d=this._adjustIndex(a),h=this._lContainer;!function g_e(i,r,t,e){var n=10+e,a=t.length;e>0&&(t[n-1][4]=r),e1&&void 0!==arguments[1]?arguments[1]:0;return null==n?this.length+a:n}}]),t}(ei);function G5(i){return i[8]}function fR(i){return i[8]||(i[8]=[])}function U5(i,r){var t,e=r[i.index];if(el(e))t=e;else{var n;if(8&i.type)n=Ar(e);else{var a=r[11];n=a.createComment("");var o=Ss(i,r);qh(a,VS(a,o),n,function C_e(i,r){return sr(i)?i.nextSibling(r):r.nextSibling}(a,o),!1)}r[i.index]=t=wH(e,r,n,i),WS(r,t)}return new V5(t,i,r)}var xbe=function(){function i(r){p(this,i),this.queryList=r,this.matches=null}return v(i,[{key:"clone",value:function(){return new i(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),i}(),Mbe=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,i),this.queries=r}return v(i,[{key:"createEmbeddedView",value:function(t){var e=t.queries;if(null!==e){for(var n=null!==t.contentQueries?t.contentQueries[0]:e.length,a=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;p(this,i),this.predicate=r,this.flags=t,this.read=e}),Rbe=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,i),this.queries=r}return v(i,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;p(this,i),this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return v(i,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new i(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var a=0;a0)e.push(o[s/2]);else{for(var u=a[s+1],c=r[-l],d=10;d0&&(s=setTimeout(function(){o._callbacks=o._callbacks.filter(function(l){return l.timeoutId!==s}),e(o._didWork,o.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:a})}},{key:"whenStable",value:function(e,n,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,a),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,n,a){return[]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hSe=function(){var i=function(){function r(){p(this,r),this._applications=new Map,ER.addToWindow(this)}return v(r,[{key:"registerApplication",value:function(e,n){this._applications.set(e,n)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ER.findTestabilityInTree(this,e,n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}(),fSe=function(){function i(){p(this,i)}return v(i,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),i}(),ER=new fSe,Yh=null,p4=new Dt("AllowMultipleToken"),g4=new Dt("PlatformOnDestroy");function pSe(i,r,t){var e=new uR(t);return Promise.resolve(e)}var m4=v(function i(r,t){p(this,i),this.name=r,this.token=t});function mSe(i){if(Yh&&!Yh.get(p4,!1))throw new gt(400,"");Yh=i;var t=i.get(y4),e=i.get(c4,null);return e&&e.forEach(function(n){return n()}),t}function _4(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],e="Platform: ".concat(r),n=new Dt(e);return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=TR();if(!o||o.injector.get(p4,!1)){var s=[].concat(Ae(t),Ae(a),[{provide:n,useValue:!0}]);i?i(s):mSe(ySe(s,e))}return _Se()}}function _Se(i){var r=TR();if(!r)throw new gt(401,"");return r}function ySe(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return Jn.create({name:r,providers:[{provide:PM,useValue:"platform"},{provide:g4,useValue:function(){return Yh=null}}].concat(Ae(i))})}function TR(){var i;return null!==(i=null==Yh?void 0:Yh.get(y4))&&void 0!==i?i:null}var y4=function(){var i=function(){function r(t){p(this,r),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return v(r,[{key:"bootstrapModuleFactory",value:function(e,n){var a=this,u=function kSe(i,r){return"noop"===i?new dSe:("zone.js"===i?void 0:i)||new be({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})}(n?n.ngZone:void 0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),c=[{provide:be,useValue:u}];return u.run(function(){var d=Jn.create({providers:c,parent:a.injector,name:e.moduleType.name}),h=e.create(d),f=h.injector.get(U_,null);if(!f)throw new gt(402,"");return u.runOutsideAngular(function(){var _=u.onError.subscribe({next:function(w){f.handleError(w)}});h.onDestroy(function(){AR(a._modules,h),_.unsubscribe()})}),function CSe(i,r,t){try{var e=t();return X_(e)?e.catch(function(n){throw r.runOutsideAngular(function(){return i.handleError(n)}),n}):e}catch(n){throw r.runOutsideAngular(function(){return i.handleError(n)}),n}}(f,u,function(){var _=h.injector.get(kR);return _.runInitializers(),_.donePromise.then(function(){return function sCe(i){Po(i,"Expected localeId to be defined"),"string"==typeof i&&(J8=i.toLowerCase().replace(/_/g,"-"))}(h.injector.get(Ko,QS)||QS),a._moduleDoBootstrap(h),h})})})}},{key:"bootstrapModule",value:function(e){var n=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=k4({},a);return pSe(0,0,e).then(function(s){return n.bootstrapModuleFactory(s,o)})}},{key:"_moduleDoBootstrap",value:function(e){var n=e.injector.get(dy);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(o){return n.bootstrap(o)});else{if(!e.instance.ngDoBootstrap)throw new gt(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new gt(404,"");this._modules.slice().forEach(function(a){return a.destroy()}),this._destroyListeners.forEach(function(a){return a()});var n=this._injector.get(g4,null);null==n||n(),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}();function k4(i,r){return Array.isArray(r)?r.reduce(k4,i):Object.assign(Object.assign({},i),r)}var dy=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this._zone=t,this._injector=e,this._exceptionHandler=n,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){o._zone.run(function(){o.tick()})}});var s=new An(function(u){o._stable=o._zone.isStable&&!o._zone.hasPendingMacrotasks&&!o._zone.hasPendingMicrotasks,o._zone.runOutsideAngular(function(){u.next(o._stable),u.complete()})}),l=new An(function(u){var c;o._zone.runOutsideAngular(function(){c=o._zone.onStable.subscribe(function(){be.assertNotInAngularZone(),bR(function(){!o._stable&&!o._zone.hasPendingMacrotasks&&!o._zone.hasPendingMicrotasks&&(o._stable=!0,u.next(!0))})})});var d=o._zone.onUnstable.subscribe(function(){be.assertInAngularZone(),o._stable&&(o._stable=!1,o._zone.runOutsideAngular(function(){u.next(!1)}))});return function(){c.unsubscribe(),d.unsubscribe()}});this.isStable=xn(s,l.pipe(ax()))}return v(r,[{key:"bootstrap",value:function(e,n){var s,a=this;if(!this._initStatus.done)throw new gt(405,"");s=e instanceof D5?e:this._injector.get(Ts).resolveComponentFactory(e),this.componentTypes.push(s.componentType);var u=function gSe(i){return i.isBoundToModule}(s)?void 0:this._injector.get(hc),d=s.create(Jn.NULL,[],n||s.selector,u),h=d.location.nativeElement,f=d.injector.get(DR,null),g=f&&d.injector.get(hSe);return f&&g&&g.registerApplication(h,f),d.onDestroy(function(){a.detachView(d.hostView),AR(a.components,d),g&&g.unregisterApplication(h)}),this._loadComponent(d),d}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new gt(101,"");try{this._runningTick=!0;var o,a=In(this._views);try{for(a.s();!(o=a.n()).done;)o.value.detectChanges()}catch(d){a.e(d)}finally{a.f()}}catch(d){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(d)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var n=e;this._views.push(n),n.attachToAppRef(this)}},{key:"detachView",value:function(e){var n=e;AR(this._views,n),n.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(d4,[]).concat(this._bootstrapListeners).forEach(function(a){return a(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Jn),oe(U_),oe(kR))},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function AR(i,r){var t=i.indexOf(r);t>-1&&i.splice(t,1)}var b4=!0,S4=!1;function xt(){return S4=!0,b4}var nt=function(){var i=v(function r(){p(this,r)});return i.__NG_ELEMENT_ID__=wSe,i}();function wSe(i){return function DSe(i,r,t){if(pS(i)&&!t){var e=Vo(i.index,r);return new ry(e,e)}return 47&i.type?new ry(r[16],r):null}(Fr(),Oe(),16==(16&i))}var T4=function(){function i(){p(this,i)}return v(i,[{key:"supports",value:function(t){return $_(t)}},{key:"create",value:function(t){return new xSe(t)}}]),i}(),ASe=function(r,t){return t},xSe=function(){function i(r){p(this,i),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||ASe}return v(i,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,a=0,o=null;e||n;){var s=!n||e&&e.currentIndex0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(a)}},{key:"getState",value:function(){return this._history.state}}]),e}(Jh);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:function(){return function HSe(){return new I4(oe(pa))}()},providedIn:"platform"}),i}();function N4(){return!!window.history.pushState}function NR(i,r){if(0==i.length)return r;if(0==r.length)return i;var t=0;return i.endsWith("/")&&t++,r.startsWith("/")&&t++,2==t?i+r.substring(1):1==t?i+r:i+"/"+r}function F4(i){var r=i.match(/#|\?|$/),t=r&&r.index||i.length;return i.slice(0,t-("/"===i[t-1]?1:0))+i.slice(t)}function vc(i){return i&&"?"!==i[0]?"?"+i:i}var Bp=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:function(){return function KSe(i){var r=oe(pa).location;return new L4(oe(Jh),r&&r.origin||"")}()},providedIn:"root"}),i}(),FR=new Dt("appBaseHref"),L4=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;if(p(this,e),(o=t.call(this))._platformLocation=n,o._removeListenerFns=[],null==a&&(a=o._platformLocation.getBaseHrefFromDOM()),null==a)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return o._baseHref=a,o}return v(e,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(a){return NR(this._baseHref,a)}},{key:"path",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this._platformLocation.pathname+vc(this._platformLocation.search),s=this._platformLocation.hash;return s&&a?"".concat(o).concat(s):o}},{key:"pushState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));this._platformLocation.pushState(a,o,u)}},{key:"replaceState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));this._platformLocation.replaceState(a,o,u)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),e}(Bp);return i.\u0275fac=function(t){return new(t||i)(oe(Jh),oe(FR,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),jSe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this))._platformLocation=n,o._baseHref="",o._removeListenerFns=[],null!=a&&(o._baseHref=a),o}return v(e,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}},{key:"prepareExternalUrl",value:function(a){var o=NR(this._baseHref,a);return o.length>0?"#"+o:o}},{key:"pushState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.pushState(a,o,u)}},{key:"replaceState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.replaceState(a,o,u)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),e}(Bp);return i.\u0275fac=function(t){return new(t||i)(oe(Jh),oe(FR,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),LR=function(){var i=function(){function r(t,e){var n=this;p(this,r),this._subject=new O,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=F4(P4(a)),this._platformStrategy.onPopState(function(o){n._subject.emit({url:n.path(!0),pop:!0,state:o.state,type:o.type})})}return v(r,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+vc(n))}},{key:"normalize",value:function(e){return r.stripTrailingSlash(function $Se(i,r){return i&&r.startsWith(i)?r.substring(i.length):r}(this._baseHref,P4(e)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(a,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vc(n)),a)}},{key:"replaceState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(a,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vc(n)),a)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var n,a,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(a=(n=this._platformStrategy).historyGo)||void 0===a||a.call(n,e)}},{key:"onUrlChange",value:function(e){var n=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(a){n._notifyUrlChangeListeners(a.url,a.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(a){return a(e,n)})}},{key:"subscribe",value:function(e,n,a){return this._subject.subscribe({next:e,error:n,complete:a})}}]),r}();return i.normalizeQueryParams=vc,i.joinWithSlash=NR,i.stripTrailingSlash=F4,i.\u0275fac=function(t){return new(t||i)(oe(Bp),oe(Jh))},i.\u0275prov=pe({token:i,factory:function(){return function WSe(){return new LR(oe(Bp),oe(Jh))}()},providedIn:"root"}),i}();function P4(i){return i.replace(/\/index.html$/,"")}var _o=function(){return(_o=_o||{})[_o.Decimal=0]="Decimal",_o[_o.Percent=1]="Percent",_o[_o.Currency=2]="Currency",_o[_o.Scientific=3]="Scientific",_o}(),yr=function(){return(yr=yr||{})[yr.Format=0]="Format",yr[yr.Standalone=1]="Standalone",yr}(),Dn=function(){return(Dn=Dn||{})[Dn.Narrow=0]="Narrow",Dn[Dn.Abbreviated=1]="Abbreviated",Dn[Dn.Wide=2]="Wide",Dn[Dn.Short=3]="Short",Dn}(),$i=function(){return($i=$i||{})[$i.Short=0]="Short",$i[$i.Medium=1]="Medium",$i[$i.Long=2]="Long",$i[$i.Full=3]="Full",$i}(),Kt=function(){return(Kt=Kt||{})[Kt.Decimal=0]="Decimal",Kt[Kt.Group=1]="Group",Kt[Kt.List=2]="List",Kt[Kt.PercentSign=3]="PercentSign",Kt[Kt.PlusSign=4]="PlusSign",Kt[Kt.MinusSign=5]="MinusSign",Kt[Kt.Exponential=6]="Exponential",Kt[Kt.SuperscriptingExponent=7]="SuperscriptingExponent",Kt[Kt.PerMille=8]="PerMille",Kt[Kt.Infinity=9]="Infinity",Kt[Kt.NaN=10]="NaN",Kt[Kt.TimeSeparator=11]="TimeSeparator",Kt[Kt.CurrencyDecimal=12]="CurrencyDecimal",Kt[Kt.CurrencyGroup=13]="CurrencyGroup",Kt}();function hw(i,r){return xs(ja(i)[st.DateFormat],r)}function fw(i,r){return xs(ja(i)[st.TimeFormat],r)}function vw(i,r){return xs(ja(i)[st.DateTimeFormat],r)}function As(i,r){var t=ja(i),e=t[st.NumberSymbols][r];if(void 0===e){if(r===Kt.CurrencyDecimal)return t[st.NumberSymbols][Kt.Decimal];if(r===Kt.CurrencyGroup)return t[st.NumberSymbols][Kt.Group]}return e}function V4(i){if(!i[st.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(i[st.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function xs(i,r){for(var t=r;t>-1;t--)if(void 0!==i[t])return i[t];throw new Error("Locale data API: locale data undefined")}function BR(i){var t=Bt(i.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var owe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,fy={},swe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Br=function(){return(Br=Br||{})[Br.Short=0]="Short",Br[Br.ShortGMT=1]="ShortGMT",Br[Br.Long=2]="Long",Br[Br.Extended=3]="Extended",Br}(),$t=function(){return($t=$t||{})[$t.FullYear=0]="FullYear",$t[$t.Month=1]="Month",$t[$t.Date=2]="Date",$t[$t.Hours=3]="Hours",$t[$t.Minutes=4]="Minutes",$t[$t.Seconds=5]="Seconds",$t[$t.FractionalSeconds=6]="FractionalSeconds",$t[$t.Day=7]="Day",$t}(),pn=function(){return(pn=pn||{})[pn.DayPeriods=0]="DayPeriods",pn[pn.Days=1]="Days",pn[pn.Months=2]="Months",pn[pn.Eras=3]="Eras",pn}();function lwe(i,r,t,e){var n=function mwe(i){if(z4(i))return i;if("number"==typeof i&&!isNaN(i))return new Date(i);if("string"==typeof i){if(i=i.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(i)){var t=Bt(i.split("-").map(function(d){return+d}),3),n=t[1],o=t[2];return pw(t[0],(void 0===n?1:n)-1,void 0===o?1:o)}var u,l=parseFloat(i);if(!isNaN(i-l))return new Date(l);if(u=i.match(owe))return function _we(i){var r=new Date(0),t=0,e=0,n=i[8]?r.setUTCFullYear:r.setFullYear,a=i[8]?r.setUTCHours:r.setHours;i[9]&&(t=Number(i[9]+i[10]),e=Number(i[9]+i[11])),n.call(r,Number(i[1]),Number(i[2])-1,Number(i[3]));var o=Number(i[4]||0)-t,s=Number(i[5]||0)-e,l=Number(i[6]||0),u=Math.floor(1e3*parseFloat("0."+(i[7]||0)));return a.call(r,o,s,l,u),r}(u)}var c=new Date(i);if(!z4(c))throw new Error('Unable to convert "'.concat(i,'" into a date'));return c}(i);r=pc(t,r)||r;for(var s,o=[];r;){if(!(s=swe.exec(r))){o.push(r);break}var l=(o=o.concat(s.slice(1))).pop();if(!l)break;r=l}var u=n.getTimezoneOffset();e&&(u=U4(e,u),n=function gwe(i,r,t){var e=t?-1:1,n=i.getTimezoneOffset();return function pwe(i,r){return(i=new Date(i.getTime())).setMinutes(i.getMinutes()+r),i}(i,e*(U4(r,n)-n))}(n,e,!0));var c="";return o.forEach(function(d){var h=function vwe(i){if(GR[i])return GR[i];var r;switch(i){case"G":case"GG":case"GGG":r=Ti(pn.Eras,Dn.Abbreviated);break;case"GGGG":r=Ti(pn.Eras,Dn.Wide);break;case"GGGGG":r=Ti(pn.Eras,Dn.Narrow);break;case"y":r=Mr($t.FullYear,1,0,!1,!0);break;case"yy":r=Mr($t.FullYear,2,0,!0,!0);break;case"yyy":r=Mr($t.FullYear,3,0,!1,!0);break;case"yyyy":r=Mr($t.FullYear,4,0,!1,!0);break;case"Y":r=yw(1);break;case"YY":r=yw(2,!0);break;case"YYY":r=yw(3);break;case"YYYY":r=yw(4);break;case"M":case"L":r=Mr($t.Month,1,1);break;case"MM":case"LL":r=Mr($t.Month,2,1);break;case"MMM":r=Ti(pn.Months,Dn.Abbreviated);break;case"MMMM":r=Ti(pn.Months,Dn.Wide);break;case"MMMMM":r=Ti(pn.Months,Dn.Narrow);break;case"LLL":r=Ti(pn.Months,Dn.Abbreviated,yr.Standalone);break;case"LLLL":r=Ti(pn.Months,Dn.Wide,yr.Standalone);break;case"LLLLL":r=Ti(pn.Months,Dn.Narrow,yr.Standalone);break;case"w":r=VR(1);break;case"ww":r=VR(2);break;case"W":r=VR(1,!0);break;case"d":r=Mr($t.Date,1);break;case"dd":r=Mr($t.Date,2);break;case"c":case"cc":r=Mr($t.Day,1);break;case"ccc":r=Ti(pn.Days,Dn.Abbreviated,yr.Standalone);break;case"cccc":r=Ti(pn.Days,Dn.Wide,yr.Standalone);break;case"ccccc":r=Ti(pn.Days,Dn.Narrow,yr.Standalone);break;case"cccccc":r=Ti(pn.Days,Dn.Short,yr.Standalone);break;case"E":case"EE":case"EEE":r=Ti(pn.Days,Dn.Abbreviated);break;case"EEEE":r=Ti(pn.Days,Dn.Wide);break;case"EEEEE":r=Ti(pn.Days,Dn.Narrow);break;case"EEEEEE":r=Ti(pn.Days,Dn.Short);break;case"a":case"aa":case"aaa":r=Ti(pn.DayPeriods,Dn.Abbreviated);break;case"aaaa":r=Ti(pn.DayPeriods,Dn.Wide);break;case"aaaaa":r=Ti(pn.DayPeriods,Dn.Narrow);break;case"b":case"bb":case"bbb":r=Ti(pn.DayPeriods,Dn.Abbreviated,yr.Standalone,!0);break;case"bbbb":r=Ti(pn.DayPeriods,Dn.Wide,yr.Standalone,!0);break;case"bbbbb":r=Ti(pn.DayPeriods,Dn.Narrow,yr.Standalone,!0);break;case"B":case"BB":case"BBB":r=Ti(pn.DayPeriods,Dn.Abbreviated,yr.Format,!0);break;case"BBBB":r=Ti(pn.DayPeriods,Dn.Wide,yr.Format,!0);break;case"BBBBB":r=Ti(pn.DayPeriods,Dn.Narrow,yr.Format,!0);break;case"h":r=Mr($t.Hours,1,-12);break;case"hh":r=Mr($t.Hours,2,-12);break;case"H":r=Mr($t.Hours,1);break;case"HH":r=Mr($t.Hours,2);break;case"m":r=Mr($t.Minutes,1);break;case"mm":r=Mr($t.Minutes,2);break;case"s":r=Mr($t.Seconds,1);break;case"ss":r=Mr($t.Seconds,2);break;case"S":r=Mr($t.FractionalSeconds,1);break;case"SS":r=Mr($t.FractionalSeconds,2);break;case"SSS":r=Mr($t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":r=mw(Br.Short);break;case"ZZZZZ":r=mw(Br.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=mw(Br.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":r=mw(Br.Long);break;default:return null}return GR[i]=r,r}(d);c+=h?h(n,t,u):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function pw(i,r,t){var e=new Date(0);return e.setFullYear(i,r,t),e.setHours(0,0,0),e}function pc(i,r){var t=function qSe(i){return ja(i)[st.LocaleId]}(i);if(fy[t]=fy[t]||{},fy[t][r])return fy[t][r];var e="";switch(r){case"shortDate":e=hw(i,$i.Short);break;case"mediumDate":e=hw(i,$i.Medium);break;case"longDate":e=hw(i,$i.Long);break;case"fullDate":e=hw(i,$i.Full);break;case"shortTime":e=fw(i,$i.Short);break;case"mediumTime":e=fw(i,$i.Medium);break;case"longTime":e=fw(i,$i.Long);break;case"fullTime":e=fw(i,$i.Full);break;case"short":var n=pc(i,"shortTime"),a=pc(i,"shortDate");e=gw(vw(i,$i.Short),[n,a]);break;case"medium":var o=pc(i,"mediumTime"),s=pc(i,"mediumDate");e=gw(vw(i,$i.Medium),[o,s]);break;case"long":var l=pc(i,"longTime"),u=pc(i,"longDate");e=gw(vw(i,$i.Long),[l,u]);break;case"full":var c=pc(i,"fullTime"),d=pc(i,"fullDate");e=gw(vw(i,$i.Full),[c,d])}return e&&(fy[t][r]=e),e}function gw(i,r){return r&&(i=i.replace(/\{([^}]+)}/g,function(t,e){return null!=r&&e in r?r[e]:t})),i}function sl(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",e=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,a="";(i<0||n&&i<=0)&&(n?i=1-i:(i=-i,a=t));for(var o=String(i);o.length2&&void 0!==arguments[2]?arguments[2]:0,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s=cwe(i,a);if((t>0||s>-t)&&(s+=t),i===$t.Hours)0===s&&-12===t&&(s=12);else if(i===$t.FractionalSeconds)return uwe(s,r);var l=As(o,Kt.MinusSign);return sl(s,r,l,e,n)}}function cwe(i,r){switch(i){case $t.FullYear:return r.getFullYear();case $t.Month:return r.getMonth();case $t.Date:return r.getDate();case $t.Hours:return r.getHours();case $t.Minutes:return r.getMinutes();case $t.Seconds:return r.getSeconds();case $t.FractionalSeconds:return r.getMilliseconds();case $t.Day:return r.getDay();default:throw new Error('Unknown DateType value "'.concat(i,'".'))}}function Ti(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yr.Format,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(n,a){return dwe(n,a,i,r,t,e)}}function dwe(i,r,t,e,n,a){switch(t){case pn.Months:return function YSe(i,r,t){var e=ja(i),a=xs([e[st.MonthsFormat],e[st.MonthsStandalone]],r);return xs(a,t)}(r,n,e)[i.getMonth()];case pn.Days:return function ZSe(i,r,t){var e=ja(i),a=xs([e[st.DaysFormat],e[st.DaysStandalone]],r);return xs(a,t)}(r,n,e)[i.getDay()];case pn.DayPeriods:var o=i.getHours(),s=i.getMinutes();if(a){var l=function twe(i){var r=ja(i);return V4(r),(r[st.ExtraData][2]||[]).map(function(e){return"string"==typeof e?BR(e):[BR(e[0]),BR(e[1])]})}(r),u=function nwe(i,r,t){var e=ja(i);V4(e);var a=xs([e[st.ExtraData][0],e[st.ExtraData][1]],r)||[];return xs(a,t)||[]}(r,n,e),c=l.findIndex(function(h){if(Array.isArray(h)){var f=Bt(h,2),g=f[0],_=f[1],C=o>=g.hours&&s>=g.minutes,w=o<_.hours||o===_.hours&&s<_.minutes;if(g.hours<_.hours){if(C&&w)return!0}else if(C||w)return!0}else if(h.hours===o&&h.minutes===s)return!0;return!1});if(-1!==c)return u[c]}return function XSe(i,r,t){var e=ja(i),a=xs([e[st.DayPeriodsFormat],e[st.DayPeriodsStandalone]],r);return xs(a,t)}(r,n,e)[o<12?0:1];case pn.Eras:return function QSe(i,r){return xs(ja(i)[st.Eras],r)}(r,e)[i.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(t))}}function mw(i){return function(r,t,e){var n=-1*e,a=As(t,Kt.MinusSign),o=n>0?Math.floor(n/60):Math.ceil(n/60);switch(i){case Br.Short:return(n>=0?"+":"")+sl(o,2,a)+sl(Math.abs(n%60),2,a);case Br.ShortGMT:return"GMT"+(n>=0?"+":"")+sl(o,1,a);case Br.Long:return"GMT"+(n>=0?"+":"")+sl(o,2,a)+":"+sl(Math.abs(n%60),2,a);case Br.Extended:return 0===e?"Z":(n>=0?"+":"")+sl(o,2,a)+":"+sl(Math.abs(n%60),2,a);default:throw new Error('Unknown zone width "'.concat(i,'"'))}}}function fwe(i){var r=pw(i,0,1).getDay();return pw(i,0,1+(r<=4?4:11)-r)}function G4(i){return pw(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))}function VR(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t,e){var n;if(r){var a=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();n=1+Math.floor((o+a)/7)}else{var s=G4(t),l=fwe(s.getFullYear()),u=s.getTime()-l.getTime();n=1+Math.round(u/6048e5)}return sl(n,i,As(e,Kt.MinusSign))}}function yw(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t,e){return sl(G4(t).getFullYear(),i,As(e,Kt.MinusSign),r)}}var GR={};function U4(i,r){i=i.replace(/:/g,"");var t=Date.parse("Jan 01, 1970 00:00:00 "+i)/6e4;return isNaN(t)?r:t}function z4(i){return i instanceof Date&&!isNaN(i.valueOf())}var ywe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,vy="0";function Ewe(i){if(0===i.digits[0])return i;var r=i.digits.length-i.integerLen;return i.exponent?i.exponent+=2:(0===r?i.digits.push(0,0):1===r&&i.digits.push(0),i.integerLen+=2),i}function Twe(i){var e,n,a,o,s,r=Math.abs(i)+"",t=0;for((n=r.indexOf("."))>-1&&(r=r.replace(".","")),(a=r.search(/e/i))>0?(n<0&&(n=a),n+=+r.slice(a+1),r=r.substring(0,a)):n<0&&(n=r.length),a=0;r.charAt(a)===vy;a++);if(a===(s=r.length))e=[0],n=1;else{for(s--;r.charAt(s)===vy;)s--;for(n-=a,e=[],o=0;a<=s;a++,o++)e[o]=Number(r.charAt(a))}return n>22&&(e=e.splice(0,21),t=n-1,n=1),{digits:e,exponent:t,integerLen:n}}function Awe(i,r,t){if(r>t)throw new Error("The minimum number of digits after fraction (".concat(r,") is higher than the maximum (").concat(t,")."));var e=i.digits,n=e.length-i.integerLen,a=Math.min(Math.max(r,n),t),o=a+i.integerLen,s=e[o];if(o>0){e.splice(Math.max(i.integerLen,o));for(var l=o;l=5)if(o-1<0){for(var c=0;c>o;c--)e.unshift(0),i.integerLen++;e.unshift(1),i.integerLen++}else e[o-1]++;for(;n=h?w.pop():d=!1),_>=10?1:0},0);f&&(e.unshift(f),i.integerLen++)}function KR(i){var r=parseInt(i);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+i);return r}function W4(i,r){r=encodeURIComponent(r);var e,t=In(i.split(";"));try{for(t.s();!(e=t.n()).done;){var n=e.value,a=n.indexOf("="),s=Bt(-1==a?[n,""]:[n.slice(0,a),n.slice(a+1)],2),u=s[1];if(s[0].trim()===r)return decodeURIComponent(u)}}catch(c){t.e(c)}finally{t.f()}return null}var Ft=function(){var i=function(){function r(t,e,n,a){p(this,r),this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return v(r,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&($_(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var n=this._keyValueDiffer.diff(this._rawClass);n&&this._applyKeyValueChanges(n)}}},{key:"_applyKeyValueChanges",value:function(e){var n=this;e.forEachAddedItem(function(a){return n._toggleClass(a.key,a.currentValue)}),e.forEachChangedItem(function(a){return n._toggleClass(a.key,a.currentValue)}),e.forEachRemovedItem(function(a){a.previousValue&&n._toggleClass(a.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var n=this;e.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(si(a.item)));n._toggleClass(a.item,!0)}),e.forEachRemovedItem(function(a){return n._toggleClass(a.item,!1)})}},{key:"_applyClasses",value:function(e){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(a){return n._toggleClass(a,!0)}):Object.keys(e).forEach(function(a){return n._toggleClass(a,!!e[a])}))}},{key:"_removeClasses",value:function(e){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(a){return n._toggleClass(a,!1)}):Object.keys(e).forEach(function(a){return n._toggleClass(a,!1)}))}},{key:"_toggleClass",value:function(e,n){var a=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(o){n?a._renderer.addClass(a._ngEl.nativeElement,o):a._renderer.removeClass(a._ngEl.nativeElement,o)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(hy),m(Pp),m(_e),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),i}(),Rwe=function(){function i(r,t,e,n){p(this,i),this.$implicit=r,this.ngForOf=t,this.index=e,this.count=n}return v(i,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),i}(),gn=function(){var i=function(){function r(t,e,n){p(this,r),this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return v(r,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var n=this,a=this._viewContainer;e.forEachOperation(function(c,d,h){if(null==c.previousIndex)a.createEmbeddedView(n._template,new Rwe(c.item,n._ngForOf,-1,-1),null===h?void 0:h);else if(null==h)a.remove(null===d?void 0:d);else if(null!==d){var f=a.get(d);a.move(f,h),$4(f,c)}});for(var o=0,s=a.length;o1&&void 0!==arguments[1]?arguments[1]:"mediumDate",a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return lwe(e,n,o||this.locale,null!==(s=null!=a?a:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(l){throw ll()}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ko,16),m(Hwe,24))},i.\u0275pipe=fa({name:"date",type:i,pure:!0}),i}(),Y4=function(){var i=function(){function r(t){p(this,r),this._locale=t}return v(r,[{key:"transform",value:function(e,n,a){if(!function qR(i){return!(null==i||""===i||i!=i)}(e))return null;a=a||this._locale;try{return function wwe(i,r,t){return function zR(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",l=!1;if(isFinite(i)){var u=Twe(i);o&&(u=Ewe(u));var c=r.minInt,d=r.minFrac,h=r.maxFrac;if(a){var f=a.match(ywe);if(null===f)throw new Error("".concat(a," is not a valid digit info"));var g=f[1],_=f[3],C=f[5];null!=g&&(c=KR(g)),null!=_&&(d=KR(_)),null!=C?h=KR(C):null!=_&&d>h&&(h=d)}Awe(u,d,h);var w=u.digits,E=u.integerLen,M=u.exponent,R=[];for(l=w.every(function(G){return!G});E0?R=w.splice(E,w.length):(R=w,w=[0]);var N=[];for(w.length>=r.lgSize&&N.unshift(w.splice(-r.lgSize,w.length).join(""));w.length>r.gSize;)N.unshift(w.splice(-r.gSize,w.length).join(""));w.length&&N.unshift(w.join("")),s=N.join(As(t,e)),R.length&&(s+=As(t,n)+R.join("")),M&&(s+=As(t,Kt.Exponential)+"+"+M)}else s=As(t,Kt.Infinity);return i<0&&!l?r.negPre+s+r.negSuf:r.posPre+s+r.posSuf}(i,function HR(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},e=i.split(";"),n=e[0],a=e[1],o=-1!==n.indexOf(".")?n.split("."):[n.substring(0,n.lastIndexOf(vy)+1),n.substring(n.lastIndexOf(vy)+1)],s=o[0],l=o[1]||"";t.posPre=s.substr(0,s.indexOf("#"));for(var u=0;u1&&void 0!==arguments[1])||arguments[1],o=t.findTestabilityInTree(n,a);if(null==o)throw new Error("Could not find testability for element.");return o},hi.getAllAngularTestabilities=function(){return t.getAllTestabilities()},hi.getAllAngularRootElements=function(){return t.getAllRootElements()},hi.frameworkStabilizers||(hi.frameworkStabilizers=[]),hi.frameworkStabilizers.push(function(a){var o=hi.getAllAngularTestabilities(),s=o.length,l=!1,u=function(d){l=l||d,0==--s&&a(l)};o.forEach(function(c){c.whenStable(u)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var a=t.getTestability(e);return null!=a?a:n?tu().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){!function vSe(i){ER=i}(new i)}}]),i}(),hDe=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"build",value:function(){return new XMLHttpRequest}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Sw=new Dt("EventManagerPlugins"),ww=function(){var i=function(){function r(t,e){var n=this;p(this,r),this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(a){return a.manager=n}),this._plugins=t.slice().reverse()}return v(r,[{key:"addEventListener",value:function(e,n,a){return this._findPluginFor(n).addEventListener(e,n,a)}},{key:"addGlobalEventListener",value:function(e,n,a){return this._findPluginFor(n).addGlobalEventListener(e,n,a)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var n=this._eventNameToPlugin.get(e);if(n)return n;for(var a=this._plugins,o=0;o-1&&(o.splice(h,1),u+=d+".")}),u+=l,0!=o.length||0===l.length)return null;var c={};return c.domEventName=s,c.fullKey=u,c}},{key:"getEventFullKey",value:function(a){var o="",s=function DDe(i){var r=i.key;if(null==r){if(null==(r=i.keyIdentifier))return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===i.location&&cK.hasOwnProperty(r)&&(r=cK[r]))}return bDe[r]||r}(a);return" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),uK.forEach(function(l){l!=s&&(0,SDe[l])(a)&&(o+=l+".")}),o+=s}},{key:"eventCallback",value:function(a,o,s){return function(l){e.getEventFullKey(l)===a&&s.runGuarded(function(){return o(l)})}}},{key:"_normalizeKey",value:function(a){return"esc"===a?"escape":a}}]),e}(nK);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),xDe=[{provide:cy,useValue:Q4},{provide:c4,useValue:function EDe(){oDe.makeCurrent(),dDe.init()},multi:!0},{provide:pa,useFactory:function ADe(){return function ege(i){bx=i}(document),document},deps:[]}],MDe=_4(LSe,"browser",xDe),RDe=[{provide:PM,useValue:"root"},{provide:U_,useFactory:function TDe(){return new U_},deps:[]},{provide:Sw,useClass:kDe,multi:!0,deps:[pa,be,cy]},{provide:Sw,useClass:wDe,multi:!0,deps:[pa]},{provide:Ew,useClass:Ew,deps:[ww,gy,uy]},{provide:ny,useExisting:Ew},{provide:iK,useExisting:gy},{provide:gy,useClass:gy,deps:[pa]},{provide:DR,useClass:DR,deps:[be]},{provide:ww,useClass:ww,deps:[Sw,be]},{provide:ZR,useClass:hDe,deps:[]}],dK=function(){var i=function(){function r(t){if(p(this,r),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return v(r,null,[{key:"withServerTransition",value:function(e){return{ngModule:r,providers:[{provide:uy,useValue:e.appId},{provide:tK,useExisting:uy},cDe]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(i,12))},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:RDe,imports:[bt,PSe]}),i}();"undefined"!=typeof window&&window;var vK=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:function(t){return t?new(t||i):oe(pK)},providedIn:"root"}),i}(),pK=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this))._doc=n,a}return v(e,[{key:"sanitize",value:function(a,o){if(null==o)return null;switch(a){case ki.NONE:return o;case ki.HTML:return Wl(o,"HTML")?Uo(o):y3(this._doc,String(o)).toString();case ki.STYLE:return Wl(o,"Style")?Uo(o):o;case ki.SCRIPT:if(Wl(o,"Script"))return Uo(o);throw new Error("unsafe value used in a script context");case ki.URL:return d3(o),Wl(o,"URL")?Uo(o):P_(String(o));case ki.RESOURCE_URL:if(Wl(o,"ResourceURL"))return Uo(o);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(a," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(a){return function gme(i){return new dme(i)}(a)}},{key:"bypassSecurityTrustStyle",value:function(a){return function mme(i){return new hme(i)}(a)}},{key:"bypassSecurityTrustScript",value:function(a){return function _me(i){return new fme(i)}(a)}},{key:"bypassSecurityTrustUrl",value:function(a){return function yme(i){return new vme(i)}(a)}},{key:"bypassSecurityTrustResourceUrl",value:function(a){return function kme(i){return new pme(i)}(a)}}]),e}(vK);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:function(t){var e;return e=t?new t:function VDe(i){return new pK(i.get(pa))}(oe(Jn)),e},providedIn:"root"}),i}();function lt(){for(var i=arguments.length,r=new Array(i),t=0;t0){var a=e.slice(0,n),o=a.toLowerCase(),s=e.slice(n+1).trim();t.maybeSetNormalizedName(a,o),t.headers.has(o)?t.headers.get(o).push(s):t.headers.set(o,[s])}})}:function(){t.headers=new Map,Object.keys(r).forEach(function(e){var n=r[e],a=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(t.headers.set(a,n),t.maybeSetNormalizedName(e,a))})}:this.headers=new Map}return v(i,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(t){var e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var a=("a"===t.op?this.headers.get(e):void 0)||[];a.push.apply(a,Ae(n)),this.headers.set(e,a);break;case"d":var o=t.value;if(o){var s=this.headers.get(e);if(!s)return;0===(s=s.filter(function(l){return-1===o.indexOf(l)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),i}(),GDe=function(){function i(){p(this,i)}return v(i,[{key:"encodeKey",value:function(t){return _K(t)}},{key:"encodeValue",value:function(t){return _K(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),i}();function UDe(i,r){var t=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(function(n){var a=n.indexOf("="),s=Bt(-1==a?[r.decodeKey(n),""]:[r.decodeKey(n.slice(0,a)),r.decodeValue(n.slice(a+1))],2),l=s[0],u=s[1],c=t.get(l)||[];c.push(u),t.set(l,c)}),t}var zDe=/%(\d[a-f0-9])/gi,HDe={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _K(i){return encodeURIComponent(i).replace(zDe,function(r,t){var e;return null!==(e=HDe[t])&&void 0!==e?e:r})}function yK(i){return"".concat(i)}var Up=function(){function i(){var r=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(p(this,i),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new GDe,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=UDe(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];r.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return v(i,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var a=t[n];Array.isArray(a)?a.forEach(function(o){e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:a,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(a){return n+"="+t.encoder.encodeValue(a)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(yK(e.value)),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var a=t.map.get(e.param)||[],o=a.indexOf(yK(e.value));-1!==o&&a.splice(o,1),a.length>0?t.map.set(e.param,a):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),i}(),KDe=function(){function i(){p(this,i),this.map=new Map}return v(i,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"has",value:function(t){return this.map.has(t)}},{key:"keys",value:function(){return this.map.keys()}}]),i}();function kK(i){return"undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer}function CK(i){return"undefined"!=typeof Blob&&i instanceof Blob}function bK(i){return"undefined"!=typeof FormData&&i instanceof FormData}var tO=function(){function i(r,t,e,n){var a;if(p(this,i),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function jDe(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==e?e:null,a=n):a=e,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new Gp),this.context||(this.context=new KDe),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,a=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,l=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,u=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,d=t.params||this.params,h=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce(function(f,g){return f.set(g,t.setHeaders[g])},c)),t.setParams&&(d=Object.keys(t.setParams).reduce(function(f,g){return f.set(g,t.setParams[g])},d)),new i(n,a,s,{params:d,headers:c,context:h,reportProgress:u,responseType:o,withCredentials:l})}}]),i}(),Rr=function(){return(Rr=Rr||{})[Rr.Sent=0]="Sent",Rr[Rr.UploadProgress=1]="UploadProgress",Rr[Rr.ResponseHeader=2]="ResponseHeader",Rr[Rr.DownloadProgress=3]="DownloadProgress",Rr[Rr.Response=4]="Response",Rr[Rr.User=5]="User",Rr}(),nO=v(function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";p(this,i),this.headers=r.headers||new Gp,this.status=void 0!==r.status?r.status:t,this.statusText=r.statusText||e,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}),$De=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).type=Rr.ResponseHeader,e}return v(t,[{key:"clone",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}]),t}(nO),SK=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).type=Rr.Response,e.body=void 0!==n.body?n.body:null,e}return v(t,[{key:"clone",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}]),t}(nO),wK=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),n.error=e.error||null,n}return v(t)}(nO);function iO(i,r){return{body:r,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}var rO=function(){var i=function(){function r(t){p(this,r),this.handler=t}return v(r,[{key:"request",value:function(e,n){var s,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof tO)s=e;else{var l=void 0;l=o.headers instanceof Gp?o.headers:new Gp(o.headers);var u=void 0;o.params&&(u=o.params instanceof Up?o.params:new Up({fromObject:o.params})),s=new tO(e,n,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var c=lt(s).pipe(nu(function(h){return a.handler.handle(h)}));if(e instanceof tO||"events"===o.observe)return c;var d=c.pipe(Ue(function(h){return h instanceof SK}));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return d.pipe(We(function(h){if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return h.body}));case"blob":return d.pipe(We(function(h){if(null!==h.body&&!(h.body instanceof Blob))throw new Error("Response is not a Blob.");return h.body}));case"text":return d.pipe(We(function(h){if(null!==h.body&&"string"!=typeof h.body)throw new Error("Response is not a string.");return h.body}));default:return d.pipe(We(function(h){return h.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,n)}},{key:"get",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,n)}},{key:"head",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,n)}},{key:"jsonp",value:function(e,n){return this.request("JSONP",e,{params:(new Up).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,n)}},{key:"patch",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,iO(a,n))}},{key:"post",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,iO(a,n))}},{key:"put",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,iO(a,n))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(gK))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),DK=function(){function i(r,t){p(this,i),this.next=r,this.interceptor=t}return v(i,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),i}(),EK=new Dt("HTTP_INTERCEPTORS"),qDe=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"intercept",value:function(e,n){return n.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),XDe=/^\)\]\}',?\n/,TK=function(){var i=function(){function r(t){p(this,r),this.xhrFactory=t}return v(r,[{key:"handle",value:function(e){var n=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new An(function(a){var o=n.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach(function(w,E){return o.setRequestHeader(w,E.join(","))}),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var s=e.detectContentTypeHeader();null!==s&&o.setRequestHeader("Content-Type",s)}if(e.responseType){var l=e.responseType.toLowerCase();o.responseType="json"!==l?l:"text"}var u=e.serializeBody(),c=null,d=function(){if(null!==c)return c;var E=o.statusText||"OK",M=new Gp(o.getAllResponseHeaders()),R=function ZDe(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(o)||e.url;return c=new $De({headers:M,status:o.status,statusText:E,url:R})},h=function(){var E=d(),M=E.headers,R=E.status,N=E.statusText,G=E.url,U=null;204!==R&&(U=void 0===o.response?o.responseText:o.response),0===R&&(R=U?200:0);var ee=R>=200&&R<300;if("json"===e.responseType&&"string"==typeof U){var ve=U;U=U.replace(XDe,"");try{U=""!==U?JSON.parse(U):null}catch(V){U=ve,ee&&(ee=!1,U={error:V,text:U})}}ee?(a.next(new SK({body:U,headers:M,status:R,statusText:N,url:G||void 0})),a.complete()):a.error(new wK({error:U,headers:M,status:R,statusText:N,url:G||void 0}))},f=function(E){var M=d(),N=new wK({error:E,status:o.status||0,statusText:o.statusText||"Unknown Error",url:M.url||void 0});a.error(N)},g=!1,_=function(E){g||(a.next(d()),g=!0);var M={type:Rr.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),"text"===e.responseType&&!!o.responseText&&(M.partialText=o.responseText),a.next(M)},C=function(E){var M={type:Rr.UploadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),a.next(M)};return o.addEventListener("load",h),o.addEventListener("error",f),o.addEventListener("timeout",f),o.addEventListener("abort",f),e.reportProgress&&(o.addEventListener("progress",_),null!==u&&o.upload&&o.upload.addEventListener("progress",C)),o.send(u),a.next({type:Rr.Sent}),function(){o.removeEventListener("error",f),o.removeEventListener("abort",f),o.removeEventListener("load",h),o.removeEventListener("timeout",f),e.reportProgress&&(o.removeEventListener("progress",_),null!==u&&o.upload&&o.upload.removeEventListener("progress",C)),o.readyState!==o.DONE&&o.abort()}})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(ZR))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),aO=new Dt("XSRF_COOKIE_NAME"),oO=new Dt("XSRF_HEADER_NAME"),AK=v(function i(){p(this,i)}),YDe=function(){var i=function(){function r(t,e,n){p(this,r),this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return v(r,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=W4(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(pa),oe(cy),oe(aO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),sO=function(){var i=function(){function r(t,e){p(this,r),this.tokenService=t,this.headerName=e}return v(r,[{key:"intercept",value:function(e,n){var a=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||a.startsWith("http://")||a.startsWith("https://"))return n.handle(e);var o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),n.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(AK),oe(oO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),QDe=function(){var i=function(){function r(t,e){p(this,r),this.backend=t,this.injector=e,this.chain=null}return v(r,[{key:"handle",value:function(e){if(null===this.chain){var n=this.injector.get(EK,[]);this.chain=n.reduceRight(function(a,o){return new DK(a,o)},this.backend)}return this.chain.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(mK),oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),JDe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"disable",value:function(){return{ngModule:r,providers:[{provide:sO,useClass:qDe}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.cookieName?{provide:aO,useValue:e.cookieName}:[],e.headerName?{provide:oO,useValue:e.headerName}:[]]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[sO,{provide:EK,useExisting:sO,multi:!0},{provide:AK,useClass:YDe},{provide:aO,useValue:"XSRF-TOKEN"},{provide:oO,useValue:"X-XSRF-TOKEN"}]}),i}(),xK=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[rO,{provide:gK,useClass:QDe},TK,{provide:mK,useExisting:TK}],imports:[[JDe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),i}(),zp=v(function i(){p(this,i)}),e0e=v(function i(){p(this,i)}),ul="*";function ef(i,r){return{type:7,name:i,definitions:r,options:{}}}function Ai(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:r,timings:i}}function Tw(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:i,options:r}}function Lt(i){return{type:6,styles:i,offset:null}}function Cd(i,r,t){return{type:0,name:i,styles:r,options:t}}function iu(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:i,animation:r,options:t}}function MK(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:i,animation:r,options:t}}function RK(i,r){return{type:12,timings:i,animation:r}}function OK(i){Promise.resolve(null).then(i)}var my=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,i),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+t}return v(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;OK(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(n){return n()}),e.length=0}}]),i}(),IK=function(){function i(r){var t=this;p(this,i),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;var e=0,n=0,a=0,o=this.players.length;0==o?OK(function(){return t._onFinish()}):this.players.forEach(function(s){s.onDone(function(){++e==o&&t._onFinish()}),s.onDestroy(function(){++n==o&&t._onDestroy()}),s.onStart(function(){++a==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(s,l){return Math.max(s,l.totalTime)},0)}return v(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(n){var a=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(a)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(e,n){return null===e||n.totalTime>e.totalTime?n:e},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(n){return n()}),e.length=0}}]),i}(),Mn=!1;function NK(i){return new gt(3e3,Mn)}function C0e(i){return new gt(3502,Mn)}function S0e(){return new gt(3300,Mn)}function w0e(i){return new gt(3504,Mn)}function O0e(){return"undefined"!=typeof window&&void 0!==window.document}function uO(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function bd(i){switch(i.length){case 0:return new my;case 1:return i[0];default:return new IK(i)}}function FK(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,u=null;if(e.forEach(function(c){var d=c.offset,h=d==l,f=h&&u||{};Object.keys(c).forEach(function(g){var _=g,C=c[g];if("offset"!==g)switch(_=r.normalizePropertyName(_,o),C){case"!":C=n[g];break;case ul:C=a[g];break;default:C=r.normalizeStyleValue(g,_,C,o)}f[_]=C}),h||s.push(f),u=f,l=d}),o.length)throw C0e();return s}function cO(i,r,t,e){switch(r){case"start":i.onStart(function(){return e(t&&dO(t,"start",i))});break;case"done":i.onDone(function(){return e(t&&dO(t,"done",i))});break;case"destroy":i.onDestroy(function(){return e(t&&dO(t,"destroy",i))})}}function dO(i,r,t){var e=t.totalTime,a=hO(i.element,i.triggerName,i.fromState,i.toState,r||i.phaseName,null==e?i.totalTime:e,!!t.disabled),o=i._data;return null!=o&&(a._data=o),a}function hO(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:i,triggerName:r,fromState:t,toState:e,phaseName:n,totalTime:a,disabled:!!o}}function jo(i,r,t){var e;return i instanceof Map?(e=i.get(r))||i.set(r,e=t):(e=i[r])||(e=i[r]=t),e}function LK(i){var r=i.indexOf(":");return[i.substring(1,r),i.substr(r+1)]}var fO=function(r,t){return!1},PK=function(r,t,e){return[]},BK=null;function vO(i){var r=i.parentNode||i.host;return r===BK?null:r}(uO()||"undefined"!=typeof Element)&&(O0e()?(BK=function(){return document.documentElement}(),fO=function(r,t){for(;t;){if(t===r)return!0;t=vO(t)}return!1}):fO=function(r,t){return r.contains(t)},PK=function(r,t,e){if(e)return Array.from(r.querySelectorAll(t));var n=r.querySelector(t);return n?[n]:[]});var tf=null,VK=!1;function GK(i){tf||(tf=function F0e(){return"undefined"!=typeof document?document.body:null}()||{},VK=!!tf.style&&"WebkitAppearance"in tf.style);var r=!0;return tf.style&&!function N0e(i){return"ebkit"==i.substring(1,6)}(i)&&!(r=i in tf.style)&&VK&&(r="Webkit"+i.charAt(0).toUpperCase()+i.substr(1)in tf.style),r}var UK=fO,zK=PK,HK=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"validateStyleProperty",value:function(e){return GK(e)}},{key:"matchesElement",value:function(e,n){return!1}},{key:"containsElement",value:function(e,n){return UK(e,n)}},{key:"getParentElement",value:function(e){return vO(e)}},{key:"query",value:function(e,n,a){return zK(e,n,a)}},{key:"computeStyle",value:function(e,n,a){return a||""}},{key:"animate",value:function(e,n,a,o,s){return new my(a,o)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),pO=function(){var i=v(function r(){p(this,r)});return i.NOOP=new HK,i}(),jK="ng-enter",gO="ng-leave",xw="ng-trigger",Mw=".ng-trigger",WK="ng-animating",mO=".ng-animating";function nf(i){if("number"==typeof i)return i;var r=i.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:_O(parseFloat(r[1]),r[2])}function _O(i,r){return"s"===r?1e3*i:i}function Rw(i,r,t){return i.hasOwnProperty("duration")?i:function B0e(i,r,t){var n,a=0,o="";if("string"==typeof i){var s=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return r.push(NK()),{duration:0,delay:0,easing:""};n=_O(parseFloat(s[1]),s[2]);var l=s[3];null!=l&&(a=_O(parseFloat(l),s[4]));var u=s[5];u&&(o=u)}else n=i;if(!t){var c=!1,d=r.length;n<0&&(r.push(function t0e(){return new gt(3100,Mn)}()),c=!0),a<0&&(r.push(function n0e(){return new gt(3101,Mn)}()),c=!0),c&&r.splice(d,0,NK())}return{duration:n,delay:a,easing:o}}(i,r,t)}function Hp(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(i).forEach(function(t){r[t]=i[t]}),r}function Sd(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r)for(var e in i)t[e]=i[e];else Hp(i,t);return t}function $K(i,r,t){return t?r+":"+t+";":""}function qK(i){for(var r="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(i,t);if("function"==typeof e)return void r.push(e);i=e}var n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return t.push(function _0e(i){return new gt(3015,Mn)}()),r;var a=n[1],o=n[2],s=n[3];r.push(YK(a,s)),"<"==o[0]&&!("*"==a&&"*"==s)&&r.push(YK(s,a))}(e,t,r)}):t.push(i),t}var Pw=new Set(["true","1"]),Bw=new Set(["false","0"]);function YK(i,r){var t=Pw.has(i)||Bw.has(i),e=Pw.has(r)||Bw.has(r);return function(n,a){var o="*"==i||i==n,s="*"==r||r==a;return!o&&t&&"boolean"==typeof n&&(o=n?Pw.has(i):Bw.has(i)),!s&&e&&"boolean"==typeof a&&(s=a?Pw.has(r):Bw.has(r)),o&&s}}var X0e=new RegExp("s*".concat(":self","s*,?"),"g");function JK(i,r,t,e){return new Z0e(i).build(r,t,e)}var Z0e=function(){function i(r){p(this,i),this._driver=r}return v(i,[{key:"build",value:function(t,e,n){var a=new J0e(e);this._resetContextStyleTimingState(a);var o=Wo(this,_y(t),a);return a.unsupportedCSSPropertiesFound.size&&Ae(a.unsupportedCSSPropertiesFound.keys()),o}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,e){var n=this,a=e.queryCount=0,o=e.depCount=0,s=[],l=[];return"@"==t.name.charAt(0)&&e.errors.push(function s0e(){return new gt(3006,Mn)}()),t.definitions.forEach(function(u){if(n._resetContextStyleTimingState(e),0==u.type){var c=u,d=c.name;d.toString().split(/\s*,\s*/).forEach(function(f){c.name=f,s.push(n.visitState(c,e))}),c.name=d}else if(1==u.type){var h=n.visitTransition(u,e);a+=h.queryCount,o+=h.depCount,l.push(h)}else e.errors.push(function l0e(){return new gt(3007,Mn)}())}),{type:7,name:t.name,states:s,transitions:l,queryCount:a,depCount:o,options:null}}},{key:"visitState",value:function(t,e){var n=this.visitStyle(t.styles,e),a=t.options&&t.options.params||null;if(n.containsDynamicStyles){var o=new Set,s=a||{};n.styles.forEach(function(u){if(Vw(u)){var c=u;Object.keys(c).forEach(function(d){XK(c[d]).forEach(function(h){s.hasOwnProperty(h)||o.add(h)})})}}),o.size&&(Iw(o.values()),e.errors.push(function u0e(i,r){return new gt(3008,Mn)}()))}return{type:0,name:t.name,style:n,options:a?{params:a}:null}}},{key:"visitTransition",value:function(t,e){e.queryCount=0,e.depCount=0;var n=Wo(this,_y(t.animation),e);return{type:1,matchers:W0e(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:af(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(a){return Wo(n,a,e)}),options:af(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,a=e.currentTime,o=0,s=t.steps.map(function(l){e.currentTime=a;var u=Wo(n,l,e);return o=Math.max(o,e.currentTime),u});return e.currentTime=o,{type:3,steps:s,options:af(t.options)}}},{key:"visitAnimate",value:function(t,e){var n=function tEe(i,r){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return CO(Rw(i,r).duration,0,"");var e=i,n=e.split(/\s+/).some(function(s){return"{"==s.charAt(0)&&"{"==s.charAt(1)});if(n){var a=CO(0,0,"");return a.dynamic=!0,a.strValue=e,a}var o=Rw(e,r);return CO(o.duration,o.delay,o.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var a,o=t.styles?t.styles:Lt({});if(5==o.type)a=this.visitKeyframes(o,e);else{var s=t.styles,l=!1;if(!s){l=!0;var u={};n.easing&&(u.easing=n.easing),s=Lt(u)}e.currentTime+=n.duration+n.delay;var c=this.visitStyle(s,e);c.isEmptyStep=l,a=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:a,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(s){"string"==typeof s?s==ul?n.push(s):e.errors.push(function c0e(i){return new gt(3002,Mn)}()):n.push(s)}):n.push(t.styles);var a=!1,o=null;return n.forEach(function(s){if(Vw(s)){var l=s,u=l.easing;if(u&&(o=u,delete l.easing),!a)for(var c in l)if(l[c].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:a,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,a=e.currentAnimateTimings,o=e.currentTime,s=e.currentTime;a&&s>0&&(s-=a.duration+a.delay),t.styles.forEach(function(l){"string"!=typeof l&&Object.keys(l).forEach(function(u){if(!n._driver.validateStyleProperty(u))return delete l[u],void e.unsupportedCSSPropertiesFound.add(u);var c=e.collectedStyles[e.currentQuerySelector],d=c[u],h=!0;d&&(s!=o&&s>=d.startTime&&o<=d.endTime&&(e.errors.push(function d0e(i,r,t,e,n){return new gt(3010,Mn)}()),h=!1),s=d.startTime),h&&(c[u]={startTime:s,endTime:o}),e.options&&function V0e(i,r,t){var e=r.params||{},n=XK(i);n.length&&n.forEach(function(a){e.hasOwnProperty(a)||t.push(function i0e(i){return new gt(3001,Mn)}())})}(l[u],e.options,e.errors)})})}},{key:"visitKeyframes",value:function(t,e){var n=this,a={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function h0e(){return new gt(3011,Mn)}()),a;var s=0,l=[],u=!1,c=!1,d=0,h=t.steps.map(function(M){var R=n._makeStyleAst(M,e),N=null!=R.offset?R.offset:function eEe(i){if("string"==typeof i)return null;var r=null;if(Array.isArray(i))i.forEach(function(e){if(Vw(e)&&e.hasOwnProperty("offset")){var n=e;r=parseFloat(n.offset),delete n.offset}});else if(Vw(i)&&i.hasOwnProperty("offset")){var t=i;r=parseFloat(t.offset),delete t.offset}return r}(R.styles),G=0;return null!=N&&(s++,G=R.offset=N),c=c||G<0||G>1,u=u||G0&&s0?R==_?1:g*R:l[R],G=N*E;e.currentTime=C+w.delay+G,w.duration=G,n._validateStyleAst(M,e),M.offset=N,a.styles.push(M)}),a}},{key:"visitReference",value:function(t,e){return{type:8,animation:Wo(this,_y(t.animation),e),options:af(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:af(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:af(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,a=t.options||{};e.queryCount++,e.currentQuery=t;var o=function Y0e(i){var r=!!i.split(/\s*,\s*/).find(function(t){return":self"==t});return r&&(i=i.replace(X0e,"")),i=i.replace(/@\*/g,Mw).replace(/@\w+/g,function(t){return Mw+"-"+t.substr(1)}).replace(/:animating/g,mO),[i,r]}(t.selector),s=Bt(o,2),l=s[0],u=s[1];e.currentQuerySelector=n.length?n+" "+l:l,jo(e.collectedStyles,e.currentQuerySelector,{});var c=Wo(this,_y(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:u,animation:c,originalSelector:t.selector,options:af(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push(function g0e(){return new gt(3013,Mn)}());var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Rw(t.timings,e.errors,!0);return{type:12,animation:Wo(this,_y(t.animation),e),timings:n,options:null}}}]),i}(),J0e=v(function i(r){p(this,i),this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set});function Vw(i){return!Array.isArray(i)&&"object"==typeof i}function af(i){return i?(i=Hp(i)).params&&(i.params=function Q0e(i){return i?Hp(i):null}(i.params)):i={},i}function CO(i,r,t){return{duration:i,delay:r,easing:t}}function bO(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:i,keyframes:r,preStyleProps:t,postStyleProps:e,duration:n,delay:a,totalTime:n+a,easing:o,subTimeline:s}}var SO=function(){function i(){p(this,i),this._map=new Map}return v(i,[{key:"get",value:function(t){return this._map.get(t)||[]}},{key:"append",value:function(t,e){var n,a=this._map.get(t);a||this._map.set(t,a=[]),(n=a).push.apply(n,Ae(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),i}(),rEe=new RegExp(":enter","g"),oEe=new RegExp(":leave","g");function t6(i,r,t,e,n){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new sEe).buildKeyframes(i,r,t,e,n,a,o,s,l,u)}var sEe=function(){function i(){p(this,i)}return v(i,[{key:"buildKeyframes",value:function(t,e,n,a,o,s,l,u,c){var d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new SO;var h=new lEe(t,e,c,a,o,d,[]);h.options=u,h.currentTimeline.setStyles([s],null,h.errors,u),Wo(this,n,h);var f=h.timelines.filter(function(w){return w.containsAnimation()});if(Object.keys(l).length){for(var g,_=f.length-1;_>=0;_--){var C=f[_];if(C.element===e){g=C;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([l],null,h.errors,u)}return f.length?f.map(function(w){return w.buildKeyframes()}):[bO(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.get(e.element);if(n){var a=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,a,a.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var o=e.currentTimeline.currentTime,s=null!=n.duration?nf(n.duration):null,l=null!=n.delay?nf(n.delay):null;return 0!==s&&t.forEach(function(u){var c=e.appendInstructionToTimeline(u,s,l);o=Math.max(o,c.duration+c.delay)}),o}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Wo(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,a=e.subContextCount,o=e,s=t.options;if(s&&(s.params||s.delay)&&((o=e.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Gw);var l=nf(s.delay);o.delayNextStep(l)}t.steps.length&&(t.steps.forEach(function(u){return Wo(n,u,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,a=[],o=e.currentTimeline.currentTime,s=t.options&&t.options.delay?nf(t.options.delay):0;t.steps.forEach(function(l){var u=e.createSubContext(t.options);s&&u.delayNextStep(s),Wo(n,l,u),o=Math.max(o,u.currentTimeline.currentTime),a.push(u.currentTimeline)}),a.forEach(function(l){return e.currentTimeline.mergeTimelineCollectedStyles(l)}),e.transformIntoNewTimeline(o),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return Rw(e.params?Ow(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),a=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),a.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,a=e.currentAnimateTimings;!a&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=a&&a.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,a=e.currentTimeline.duration,o=n.duration,l=e.createSubContext().currentTimeline;l.easing=n.easing,t.styles.forEach(function(u){l.forwardTime((u.offset||0)*o),l.setStyles(u.styles,u.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(a+o),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,a=e.currentTimeline.currentTime,o=t.options||{},s=o.delay?nf(o.delay):0;s&&(6===e.previousNode.type||0==a&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Gw);var l=a,u=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=u.length;var c=null;u.forEach(function(d,h){e.currentQueryIndex=h;var f=e.createSubContext(t.options,d);s&&f.delayNextStep(s),d===e.element&&(c=f.currentTimeline),Wo(n,t.animation,f),f.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,f.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(l),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,a=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),l=s*(e.currentQueryTotal-1),u=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=l-u;break;case"full":u=n.currentStaggerTime}var d=e.currentTimeline;u&&d.delayNextStep(u);var h=d.currentTime;Wo(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=a.currentTime-h+(a.startTime-n.currentTimeline.startTime)}}]),i}(),Gw={},lEe=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this._driver=r,this.element=t,this.subInstructions=e,this._enterClassName=n,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new n6(this._driver,t,0),s.push(this.currentTimeline)}return v(i,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var n=this;if(t){var a=t,o=this.options;null!=a.duration&&(o.duration=nf(a.duration)),null!=a.delay&&(o.delay=nf(a.delay));var s=a.params;if(s){var l=o.params;l||(l=this.options.params={}),Object.keys(s).forEach(function(u){(!e||!l.hasOwnProperty(u))&&(l[u]=Ow(s[u],l,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(a){n[a]=e[a]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=e||this.element,o=new i(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Gw,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var a={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new uEe(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,a,t.stretchStartingKeyframe);return this.timelines.push(o),a}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,a,o,s){var l=[];if(a&&l.push(this.element),t.length>0){t=(t=t.replace(rEe,"."+this._enterClassName)).replace(oEe,"."+this._leaveClassName);var c=this._driver.query(this.element,t,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),l.push.apply(l,Ae(c))}return!o&&0==l.length&&s.push(function m0e(i){return new gt(3014,Mn)}()),l}}]),i}(),n6=function(){function i(r,t,e,n){p(this,i),this._driver=r,this.element=t,this.startTime=e,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return v(i,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,e){return this.applyStylesToKeyframe(),new i(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(n){e._backFill[n]=e._globalTimelineStyles[n]||ul,e._currentKeyframe[n]=ul}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,a){var o=this;e&&(this._previousKeyframe.easing=e);var s=a&&a.params||{},l=function cEe(i,r){var e,t={};return i.forEach(function(n){"*"===n?(e=e||Object.keys(r)).forEach(function(a){t[a]=ul}):Sd(n,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(l).forEach(function(u){var c=Ow(l[u],s,n);o._pendingStyles[u]=c,o._localTimelineStyles.hasOwnProperty(u)||(o._backFill[u]=o._globalTimelineStyles.hasOwnProperty(u)?o._globalTimelineStyles[u]:ul),o._updateStyle(u,c)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(a){t._currentKeyframe[a]=e[a]}),Object.keys(this._localTimelineStyles).forEach(function(a){t._currentKeyframe.hasOwnProperty(a)||(t._currentKeyframe[a]=t._localTimelineStyles[a])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var a=e._styleSummary[n],o=t._styleSummary[n];(!a||o.time>a.time)&&e._updateStyle(n,o.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,a=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(d,h){var f=Sd(d,!0);Object.keys(f).forEach(function(g){var _=f[g];"!"==_?e.add(g):_==ul&&n.add(g)}),a||(f.offset=h/t.duration),o.push(f)});var s=e.size?Iw(e.values()):[],l=n.size?Iw(n.values()):[];if(a){var u=o[0],c=Hp(u);u.offset=0,c.offset=1,o=[u,c]}return bO(this.element,o,s,l,this.duration,this.startTime,this.easing,!1)}}]),i}(),uEe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return p(this,t),(u=r.call(this,e,n,l.delay)).keyframes=a,u.preStyleProps=o,u.postStyleProps=s,u._stretchStartingKeyframe=c,u.timings={duration:l.duration,delay:l.delay,easing:l.easing},u}return v(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var n=this.keyframes,a=this.timings,o=a.delay,s=a.duration,l=a.easing;if(this._stretchStartingKeyframe&&o){var u=[],c=s+o,d=o/c,h=Sd(n[0],!1);h.offset=0,u.push(h);var f=Sd(n[0],!1);f.offset=i6(d),u.push(f);for(var g=n.length-1,_=1;_<=g;_++){var C=Sd(n[_],!1);C.offset=i6((o+C.offset*s)/c),u.push(C)}s=c,o=0,l="",n=u}return bO(this.element,n,this.preStyleProps,this.postStyleProps,s,o,l,!0)}}]),t}(n6);function i6(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,r-1);return Math.round(i*t)/t}var wO=v(function i(){p(this,i)}),dEe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"normalizePropertyName",value:function(n,a){return kO(n)}},{key:"normalizeStyleValue",value:function(n,a,o,s){var l="",u=o.toString().trim();if(hEe[a]&&0!==o&&"0"!==o)if("number"==typeof o)l="px";else{var c=o.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&s.push(function o0e(i,r){return new gt(3005,Mn)}())}return u+l}}]),t}(wO),hEe=function(){return function fEe(i){var r={};return i.forEach(function(t){return r[t]=!0}),r}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","))}();function r6(i,r,t,e,n,a,o,s,l,u,c,d,h){return{type:0,element:i,triggerName:r,isRemovalTransition:n,fromState:t,fromStyles:a,toState:e,toStyles:o,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var DO={},a6=function(){function i(r,t,e){p(this,i),this._triggerName=r,this.ast=t,this._stateStyles=e}return v(i,[{key:"match",value:function(t,e,n,a){return function vEe(i,r,t,e,n){return i.some(function(a){return a(r,t,e,n)})}(this.ast.matchers,t,e,n,a)}},{key:"buildStyles",value:function(t,e,n){var a=this._stateStyles["*"],o=this._stateStyles[t],s=a?a.buildStyles(e,n):{};return o?o.buildStyles(e,n):s}},{key:"build",value:function(t,e,n,a,o,s,l,u,c,d){var h=[],f=this.ast.options&&this.ast.options.params||DO,_=this.buildStyles(n,l&&l.params||DO,h),C=u&&u.params||DO,w=this.buildStyles(a,C,h),E=new Set,M=new Map,R=new Map,N="void"===a,G={params:Object.assign(Object.assign({},f),C)},U=d?[]:t6(t,e,this.ast.animation,o,s,_,w,G,c,h),ee=0;if(U.forEach(function(V){ee=Math.max(V.duration+V.delay,ee)}),h.length)return r6(e,this._triggerName,n,a,N,_,w,[],[],M,R,ee,h);U.forEach(function(V){var I=V.element,K=jo(M,I,{});V.preStyleProps.forEach(function(se){return K[se]=!0});var H=jo(R,I,{});V.postStyleProps.forEach(function(se){return H[se]=!0}),I!==e&&E.add(I)});var ve=Iw(E.values());return r6(e,this._triggerName,n,a,N,_,w,U,ve,M,R,ee)}}]),i}(),pEe=function(){function i(r,t,e){p(this,i),this.styles=r,this.defaultParams=t,this.normalizer=e}return v(i,[{key:"buildStyles",value:function(t,e){var n=this,a={},o=Hp(this.defaultParams);return Object.keys(t).forEach(function(s){var l=t[s];null!=l&&(o[s]=l)}),this.styles.styles.forEach(function(s){if("string"!=typeof s){var l=s;Object.keys(l).forEach(function(u){var c=l[u];c.length>1&&(c=Ow(c,o,e));var d=n.normalizer.normalizePropertyName(u,e);c=n.normalizer.normalizeStyleValue(u,d,c,e),a[d]=c})}}),a}}]),i}(),mEe=function(){function i(r,t,e){var n=this;p(this,i),this.name=r,this.ast=t,this._normalizer=e,this.transitionFactories=[],this.states={},t.states.forEach(function(a){n.states[a.name]=new pEe(a.style,a.options&&a.options.params||{},e)}),o6(this.states,"true","1"),o6(this.states,"false","0"),t.transitions.forEach(function(a){n.transitionFactories.push(new a6(r,a,n.states))}),this.fallbackTransition=function _Ee(i,r,t){return new a6(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(o,s){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states)}return v(i,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,n,a){return this.transitionFactories.find(function(s){return s.match(t,e,n,a)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}]),i}();function o6(i,r,t){i.hasOwnProperty(r)?i.hasOwnProperty(t)||(i[t]=i[r]):i.hasOwnProperty(t)&&(i[r]=i[t])}var yEe=new SO,kEe=function(){function i(r,t,e){p(this,i),this.bodyNode=r,this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return v(i,[{key:"register",value:function(t,e){var n=[],o=JK(this._driver,e,n,[]);if(n.length)throw function b0e(i){return new gt(3503,Mn)}();this._animations[t]=o}},{key:"_buildPlayer",value:function(t,e,n){var a=t.element,o=FK(this._driver,this._normalizer,a,t.keyframes,e,n);return this._driver.animate(a,o,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var l,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[t],u=new Map;if(s?(l=t6(this._driver,e,s,jK,gO,{},{},a,yEe,o)).forEach(function(h){var f=jo(u,h.element,{});h.postStyleProps.forEach(function(g){return f[g]=null})}):(o.push(S0e()),l=[]),o.length)throw w0e();u.forEach(function(h,f){Object.keys(h).forEach(function(g){h[g]=n._driver.computeStyle(f,g,ul)})});var c=l.map(function(h){var f=u.get(h.element);return n._buildPlayer(h,{},f)}),d=bd(c);return this._playersById[t]=d,d.onDestroy(function(){return n.destroy(t)}),this.players.push(d),d}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw function D0e(i){return new gt(3301,Mn)}();return e}},{key:"listen",value:function(t,e,n,a){var o=hO(e,"","","");return cO(this._getPlayer(t),n,o,a),function(){}}},{key:"command",value:function(t,e,n,a){if("register"!=n)if("create"!=n){var s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,a[0]||{});else this.register(t,a[0])}}]),i}(),s6="ng-animate-queued",EO="ng-animate-disabled",SEe="ng-star-inserted",DEe=[],l6={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},EEe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ms="__ng_removed",TO=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";p(this,i),this.namespaceId=t;var e=r&&r.hasOwnProperty("value"),n=e?r.value:r;if(this.value=MEe(n),e){var a=Hp(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return v(i,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(a){null==n[a]&&(n[a]=e[a])})}}}]),i}(),yy="void",AO=new TO(yy),TEe=function(){function i(r,t,e){p(this,i),this.id=r,this.hostElement=t,this._engine=e,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Rs(t,this._hostClassName)}return v(i,[{key:"listen",value:function(t,e,n,a){var o=this;if(!this._triggers.hasOwnProperty(e))throw function E0e(i,r){return new gt(3302,Mn)}();if(null==n||0==n.length)throw function T0e(i){return new gt(3303,Mn)}();if(!function REe(i){return"start"==i||"done"==i}(n))throw function A0e(i,r){return new gt(3400,Mn)}();var s=jo(this._elementListeners,t,[]),l={name:e,phase:n,callback:a};s.push(l);var u=jo(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Rs(t,xw),Rs(t,xw+"-"+e),u[e]=AO),function(){o._engine.afterFlush(function(){var c=s.indexOf(l);c>=0&&s.splice(c,1),o._triggers[e]||delete u[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw function x0e(i){return new gt(3401,Mn)}();return e}},{key:"trigger",value:function(t,e,n){var a=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(e),l=new xO(this.id,e,t),u=this._engine.statesByElement.get(t);u||(Rs(t,xw),Rs(t,xw+"-"+e),this._engine.statesByElement.set(t,u={}));var c=u[e],d=new TO(n,this.id),h=n&&n.hasOwnProperty("value");!h&&c&&d.absorbOptions(c.options),u[e]=d,c||(c=AO);var f=d.value===yy;if(f||c.value!==d.value){var w=jo(this._engine.playersByElement,t,[]);w.forEach(function(R){R.namespaceId==a.id&&R.triggerName==e&&R.queued&&R.destroy()});var E=s.matchTransition(c.value,d.value,t,d.params),M=!1;if(!E){if(!o)return;E=s.fallbackTransition,M=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:E,fromState:c,toState:d,player:l,isFallbackTransition:M}),M||(Rs(t,s6),l.onStart(function(){Kp(t,s6)})),l.onDone(function(){var R=a.players.indexOf(l);R>=0&&a.players.splice(R,1);var N=a._engine.playersByElement.get(t);if(N){var G=N.indexOf(l);G>=0&&N.splice(G,1)}}),this.players.push(l),w.push(l),l}if(!NEe(c.params,d.params)){var g=[],_=s.matchStyles(c.value,c.params,g),C=s.matchStyles(d.value,d.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(function(){rf(t,_),ru(t,C)})}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(n,a){delete n[t]}),this._elementListeners.forEach(function(n,a){e._elementListeners.set(a,n.filter(function(o){return o.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(n){return n.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,a=this._engine.driver.query(t,Mw,!0);a.forEach(function(o){if(!o[Ms]){var s=n._engine.fetchNamespacesByElement(o);s.size?s.forEach(function(l){return l.triggerLeaveAnimation(o,e,!1,!0)}):n.clearElementCache(o)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(o){return n.clearElementCache(o)})})}},{key:"triggerLeaveAnimation",value:function(t,e,n,a){var o=this,s=this._engine.statesByElement.get(t),l=new Map;if(s){var u=[];if(Object.keys(s).forEach(function(c){if(l.set(c,s[c].value),o._triggers[c]){var d=o.trigger(t,c,yy,a);d&&u.push(d)}}),u.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,l),n&&bd(u).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t),a=this._engine.statesByElement.get(t);if(n&&a){var o=new Set;n.forEach(function(s){var l=s.name;if(!o.has(l)){o.add(l);var c=e._triggers[l].fallbackTransition,d=a[l]||AO,h=new TO(yy),f=new xO(e.id,l,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:l,transition:c,fromState:d,toState:h,player:f,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,e){var n=this,a=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var o=!1;if(a.totalAnimations){var s=a.players.length?a.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else for(var l=t;l=l.parentNode;)if(a.statesByElement.get(l)){o=!0;break}}if(this.prepareLeaveAnimationListeners(t),o)a.markElementAsRemoved(this.id,t,!1,e);else{var c=t[Ms];(!c||c===l6)&&(a.afterFlush(function(){return n.clearElementCache(t)}),a.destroyInnerAnimations(t),a._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){Rs(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach(function(a){var o=a.player;if(!o.destroyed){var s=a.element,l=e._elementListeners.get(s);l&&l.forEach(function(u){if(u.name==a.triggerName){var c=hO(s,a.triggerName,a.fromState.value,a.toState.value);c._data=t,cO(a.player,u.phase,c,u.callback)}}),o.markedForDestroy?e._engine.afterFlush(function(){o.destroy()}):n.push(a)}}),this._queue=[],n.sort(function(a,o){var s=a.transition.ast.depCount,l=o.transition.ast.depCount;return 0==s||0==l?s-l:e._engine.driver.containsElement(a.element,o.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(n){return n.element===t})||e}}]),i}(),AEe=function(){function i(r,t,e){p(this,i),this.bodyNode=r,this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(n,a){}}return v(i,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(n){n.queued&&t.push(n)})}),t}},{key:"createNamespace",value:function(t,e){var n=new TEe(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList,a=this.namespacesByHostElement,o=n.length-1;if(o>=0){var s=!1;if(void 0!==this.driver.getParentElement)for(var l=this.driver.getParentElement(e);l;){var u=a.get(l);if(u){var c=n.indexOf(u);n.splice(c+1,0,t),s=!0;break}l=this.driver.getParentElement(l)}else for(var d=o;d>=0;d--)if(this.driver.containsElement(n[d].hostElement,e)){n.splice(d+1,0,t),s=!0;break}s||n.unshift(t)}else n.push(t);return a.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var a=this._namespaceLookup[t];a&&a.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var a=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(a.hostElement),delete n._namespaceLookup[t];var o=n._namespaceList.indexOf(a);o>=0&&n._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var a=Object.keys(n),o=0;o=0&&this.collectedLeaveElements.splice(s,1)}if(t){var l=this._fetchNamespace(t);l&&l.insertNode(e,n)}a&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rs(t,EO)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kp(t,EO))}},{key:"removeNode",value:function(t,e,n,a){if(Uw(e)){var o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,a):this.markElementAsRemoved(t,e,!1,a),n){var s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,a)}}else this._onRemovalComplete(e,a)}},{key:"markElementAsRemoved",value:function(t,e,n,a,o){this.collectedLeaveElements.push(e),e[Ms]={namespaceId:t,setForRemoval:a,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}},{key:"listen",value:function(t,e,n,a,o){return Uw(e)?this._fetchNamespace(t).listen(e,n,a,o):function(){}}},{key:"_buildInstruction",value:function(t,e,n,a,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,a,t.fromState.options,t.toState.options,e,o)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,Mw,!0);n.forEach(function(a){return e.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,mO,!0)).forEach(function(a){return e.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(n){n.queued?n.markedForDestroy=!0:n.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(n){return n.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return bd(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var n,e=this,a=t[Ms];if(a&&a.setForRemoval){if(t[Ms]=l6,a.namespaceId){this.destroyInnerAnimations(t);var o=this._fetchNamespace(a.namespaceId);o&&o.clearElementCache(t)}this._onRemovalComplete(t,a.setForRemoval)}(null===(n=t.classList)||void 0===n?void 0:n.contains(EO))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(s){e.markElementAsDisabled(s,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(h,f){return t._balanceNamespaceList(h,f)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;K--)this._namespaceList[K].drainQueuedTransitions(e).forEach(function(it){var ct=it.player,Tt=it.element;if(V.push(ct),n.collectedEnterElements.length){var gi=Tt[Ms];if(gi&&gi.setForMove){if(gi.previousTriggersValues&&gi.previousTriggersValues.has(it.triggerName)){var qu=gi.previousTriggersValues.get(it.triggerName),Oo=n.statesByElement.get(it.element);Oo&&Oo[it.triggerName]&&(Oo[it.triggerName].value=qu)}return void ct.destroy()}}var xh=!f||!n.driver.containsElement(f,Tt),Lv=ee.get(Tt),zA=C.get(Tt),Er=n._buildInstruction(it,a,zA,Lv,xh);if(Er.errors&&Er.errors.length)I.push(Er);else{if(xh)return ct.onStart(function(){return rf(Tt,Er.fromStyles)}),ct.onDestroy(function(){return ru(Tt,Er.toStyles)}),void o.push(ct);if(it.isFallbackTransition)return ct.onStart(function(){return rf(Tt,Er.fromStyles)}),ct.onDestroy(function(){return ru(Tt,Er.toStyles)}),void o.push(ct);var Hb=[];Er.timelines.forEach(function(Xu){Xu.stretchStartingKeyframe=!0,n.disabledNodes.has(Xu.element)||Hb.push(Xu)}),Er.timelines=Hb,a.append(Tt,Er.timelines),l.push({instruction:Er,player:ct,element:Tt}),Er.queriedElements.forEach(function(Xu){return jo(u,Xu,[]).push(ct)}),Er.preStyleProps.forEach(function(Xu,Mh){var Kb=Object.keys(Xu);if(Kb.length){var Zu=c.get(Mh);Zu||c.set(Mh,Zu=new Set),Kb.forEach(function(KA){return Zu.add(KA)})}}),Er.postStyleProps.forEach(function(Xu,Mh){var Kb=Object.keys(Xu),Zu=d.get(Mh);Zu||d.set(Mh,Zu=new Set),Kb.forEach(function(KA){return Zu.add(KA)})})}});if(I.length){var se=[];I.forEach(function(it){se.push(function R0e(i,r){return new gt(3505,Mn)}())}),V.forEach(function(it){return it.destroy()}),this.reportError(se)}var me=new Map,ae=new Map;l.forEach(function(it){var ct=it.element;a.has(ct)&&(ae.set(ct,ct),n._beforeAnimationBuild(it.player.namespaceId,it.instruction,me))}),o.forEach(function(it){var ct=it.element;n._getPreviousPlayers(ct,!1,it.namespaceId,it.triggerName,null).forEach(function(gi){jo(me,ct,[]).push(gi),gi.destroy()})});var Ne=E.filter(function(it){return f6(it,c,d)}),Ce=new Map;c6(Ce,this.driver,R,d,ul).forEach(function(it){f6(it,c,d)&&Ne.push(it)});var Be=new Map;_.forEach(function(it,ct){c6(Be,n.driver,new Set(it),c,"!")}),Ne.forEach(function(it){var ct=Ce.get(it),Tt=Be.get(it);Ce.set(it,Object.assign(Object.assign({},ct),Tt))});var je=[],kt=[],Xt={};l.forEach(function(it){var ct=it.element,Tt=it.player,gi=it.instruction;if(a.has(ct)){if(h.has(ct))return Tt.onDestroy(function(){return ru(ct,gi.toStyles)}),Tt.disabled=!0,Tt.overrideTotalTime(gi.totalTime),void o.push(Tt);var qu=Xt;if(ae.size>1){for(var Oo=ct,xh=[];Oo=Oo.parentNode;){var Lv=ae.get(Oo);if(Lv){qu=Lv;break}xh.push(Oo)}xh.forEach(function(Hb){return ae.set(Hb,qu)})}var zA=n._buildAnimation(Tt.namespaceId,gi,me,s,Be,Ce);if(Tt.setRealPlayer(zA),qu===Xt)je.push(Tt);else{var Er=n.playersByElement.get(qu);Er&&Er.length&&(Tt.parentPlayer=bd(Er)),o.push(Tt)}}else rf(ct,gi.fromStyles),Tt.onDestroy(function(){return ru(ct,gi.toStyles)}),kt.push(Tt),h.has(ct)&&o.push(Tt)}),kt.forEach(function(it){var ct=s.get(it.element);if(ct&&ct.length){var Tt=bd(ct);it.setRealPlayer(Tt)}}),o.forEach(function(it){it.parentPlayer?it.syncPlayerEvents(it.parentPlayer):it.destroy()});for(var zn=0;zn0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new my(t.duration,t.delay)}}]),i}(),xO=function(){function i(r,t,e){p(this,i),this.namespaceId=r,this.triggerName=t,this.element=e,this._player=new my,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return v(i,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(a){return cO(t,n,void 0,a)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){jo(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),i}();function MEe(i){return null!=i?i:null}function Uw(i){return i&&1===i.nodeType}function u6(i,r){var t=i.style.display;return i.style.display=null!=r?r:"none",t}function c6(i,r,t,e,n){var a=[];t.forEach(function(l){return a.push(u6(l))});var o=[];e.forEach(function(l,u){var c={};l.forEach(function(d){var h=c[d]=r.computeStyle(u,d,n);(!h||0==h.length)&&(u[Ms]=EEe,o.push(u))}),i.set(u,c)});var s=0;return t.forEach(function(l){return u6(l,a[s++])}),o}function d6(i,r){var t=new Map;if(i.forEach(function(s){return t.set(s,[])}),0==r.length)return t;var n=new Set(r),a=new Map;function o(s){if(!s)return 1;var l=a.get(s);if(l)return l;var u=s.parentNode;return l=t.has(u)?u:n.has(u)?1:o(u),a.set(s,l),l}return r.forEach(function(s){var l=o(s);1!==l&&t.get(l).push(s)}),t}function Rs(i,r){var t;null===(t=i.classList)||void 0===t||t.add(r)}function Kp(i,r){var t;null===(t=i.classList)||void 0===t||t.remove(r)}function OEe(i,r,t){bd(t).onDone(function(){return i.processLeaveNode(r)})}function h6(i,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),i}();function FEe(i,r){var t=null,e=null;return Array.isArray(r)&&r.length?(t=MO(r[0]),r.length>1&&(e=MO(r[r.length-1]))):r&&(t=MO(r)),t||e?new LEe(i,t,e):null}var LEe=function(){var i=function(){function r(t,e,n){p(this,r),this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;var a=r.initialStylesByElement.get(t);a||r.initialStylesByElement.set(t,a={}),this._initialStyles=a}return v(r,[{key:"start",value:function(){this._state<1&&(this._startStyles&&ru(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(ru(this._element,this._initialStyles),this._endStyles&&(ru(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(rf(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rf(this._element,this._endStyles),this._endStyles=null),ru(this._element,this._initialStyles),this._state=3)}}]),r}();return i.initialStylesByElement=new WeakMap,i}();function MO(i){for(var r=null,t=Object.keys(i),e=0;e5&&void 0!==arguments[5]?arguments[5]:[],l=0==a?"both":"forwards",u={duration:n,delay:a,fill:l};o&&(u.easing=o);var c={},d=s.filter(function(f){return f instanceof v6});z0e(n,a)&&d.forEach(function(f){var g=f.currentSnapshot;Object.keys(g).forEach(function(_){return c[_]=g[_]})});var h=FEe(t,e=H0e(t,e=e.map(function(f){return Sd(f,!1)}),c));return new v6(t,e,u,h)}}]),i}(),VEe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this))._nextAnimationId=0,o._renderer=n.createRenderer(a.body,{id:"0",encapsulation:Qs.None,styles:[],data:{animation:[]}}),o}return v(e,[{key:"build",value:function(a){var o=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(a)?Tw(a):a;return p6(this._renderer,null,o,"register",[s]),new GEe(o,this._renderer)}}]),e}(zp);return i.\u0275fac=function(t){return new(t||i)(oe(ny),oe(pa))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),GEe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this))._id=e,a._renderer=n,a}return v(t,[{key:"create",value:function(n,a){return new UEe(this._id,n,a||{},this._renderer)}}]),t}(e0e),UEe=function(){function i(r,t,e,n){p(this,i),this.id=r,this.element=t,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",e)}return v(i,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,a)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,a){this.delegate.setAttribute(t,e,n,a)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,a){this.delegate.setStyle(t,e,n,a)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)&&e==g6?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),i}(),HEe=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,n,a,o)).factory=e,s.namespaceId=n,s}return v(t,[{key:"setProperty",value:function(n,a,o){"@"==a.charAt(0)?"."==a.charAt(1)&&a==g6?this.disableAnimations(n,o=void 0===o||!!o):this.engine.process(this.namespaceId,n,a.substr(1),o):this.delegate.setProperty(n,a,o)}},{key:"listen",value:function(n,a,o){var s=this;if("@"==a.charAt(0)){var l=function KEe(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(n),u=a.substr(1),c="";if("@"!=u.charAt(0)){var d=function jEe(i){var r=i.indexOf(".");return[i.substring(0,r),i.substr(r+1)]}(u),h=Bt(d,2);u=h[0],c=h[1]}return this.engine.listen(this.namespaceId,l,u,c,function(f){s.factory.scheduleListenerCallback(f._data||-1,o,f)})}return this.delegate.listen(n,a,o)}}]),t}(m6),WEe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){return p(this,e),t.call(this,n.body,a,o)}return v(e,[{key:"ngOnDestroy",value:function(){this.flush()}}]),e}(zw);return i.\u0275fac=function(t){return new(t||i)(oe(pa),oe(pO),oe(wO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),_6=new Dt("AnimationModuleType"),y6=[{provide:zp,useClass:VEe},{provide:wO,useFactory:function $Ee(){return new dEe}},{provide:zw,useClass:WEe},{provide:ny,useFactory:function qEe(i,r,t){return new zEe(i,r,t)},deps:[Ew,zw,be]}],k6=[{provide:pO,useFactory:function(){return new BEe}},{provide:_6,useValue:"BrowserAnimations"}].concat(y6),XEe=[{provide:pO,useClass:HK},{provide:_6,useValue:"NoopAnimations"}].concat(y6),ZEe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"withConfig",value:function(e){return{ngModule:r,providers:e.disableAnimations?XEe:k6}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:k6,imports:[dK]}),i}();function jp(i){return new An(function(r){Pi(i()).subscribe(r)})}function ky(i,r){var t=wn(i)?i:function(){return i},e=function(a){return a.error(t())};return new An(r?function(n){return r.schedule(e,0,n)}:e)}var YEe=Array.isArray;function RO(i){return We(function(r){return function QEe(i,r){return YEe(r)?i.apply(void 0,Ae(r)):i(r)}(i,r)})}var JEe=["addListener","removeListener"],e1e=["addEventListener","removeEventListener"],t1e=["on","off"];function li(i,r,t,e){if(wn(t)&&(e=t,t=void 0),e)return li(i,r,t).pipe(RO(e));var a=Bt(function r1e(i){return wn(i.addEventListener)&&wn(i.removeEventListener)}(i)?e1e.map(function(l){return function(u){return i[l](r,u,t)}}):function n1e(i){return wn(i.addListener)&&wn(i.removeListener)}(i)?JEe.map(C6(i,r)):function i1e(i){return wn(i.on)&&wn(i.off)}(i)?t1e.map(C6(i,r)):[],2),o=a[0],s=a[1];if(!o&&ic(i))return Bi(function(l){return li(l,r,t)})(Pi(i));if(!o)throw new TypeError("Invalid event target");return new An(function(l){var u=function(){for(var d=arguments.length,h=new Array(d),f=0;f1&&void 0!==arguments[1]?arguments[1]:s1e,t=r.connector;return oi(function(e,n){var a=t();wi(i(o1e(a))).subscribe(n),n.add(e.subscribe(a))})}function At(i,r,t){var e=wn(i)||r||t?{next:i,error:r,complete:t}:i;return e?oi(function(n,a){var o;null===(o=e.subscribe)||void 0===o||o.call(e);var s=!0;n.subscribe(Wn(a,function(l){var u;null===(u=e.next)||void 0===u||u.call(e,l),a.next(l)},function(){var l;s=!1,null===(l=e.complete)||void 0===l||l.call(e),a.complete()},function(l){var u;s=!1,null===(u=e.error)||void 0===u||u.call(e,l),a.error(l)},function(){var l,u;s&&(null===(l=e.unsubscribe)||void 0===l||l.call(e)),null===(u=e.finalize)||void 0===u||u.call(e)}))}):zl}var c1e=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),r.call(this)}return v(t,[{key:"schedule",value:function(n){return this}}]),t}(Je),Kw={setInterval:function(i){function r(t,e){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(i,r){for(var t=Kw.delegate,e=arguments.length,n=new Array(e>2?e-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=n;var o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,a)),this.pending=!0,this.delay=a,this.id=this.id||this.requestAsyncId(s,this.id,a),this}},{key:"requestAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Kw.setInterval(n.flush.bind(n,this),o)}},{key:"recycleAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&this.delay===o&&!1===this.pending)return a;Kw.clearInterval(a)}},{key:"execute",value:function(n,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(n,a);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(n,a){var s,o=!1;try{this.work(n)}catch(l){o=!0,s=l||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s}},{key:"unsubscribe",value:function(){if(!this.closed){var n=this.id,a=this.scheduler,o=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Nh(o,this),null!=n&&(this.id=this.recycleAsyncId(a,n,null)),this.delay=null,$(q(t.prototype),"unsubscribe",this).call(this)}}}]),t}(c1e),OO={now:function(){return(OO.delegate||Date).now()},delegate:void 0},IO=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;p(this,i),this.schedulerActionCtor=r,this.now=t}return v(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.schedulerActionCtor(this,t).schedule(n,e)}}]),i}();IO.now=OO.now;var E6=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:IO.now;return p(this,t),(n=r.call(this,e,a)).actions=[],n._active=!1,n._scheduled=void 0,n}return v(t,[{key:"flush",value:function(n){var a=this.actions;if(this._active)a.push(n);else{var o;this._active=!0;do{if(o=n.execute(n.state,n.delay))break}while(n=a.shift());if(this._active=!1,o){for(;n=a.shift();)n.unsubscribe();throw o}}}}]),t}(IO),Wp=new E6(D6),d1e=Wp;function T6(i,r){return r?function(t){return sf(r.pipe(It(1),function h1e(){return oi(function(i,r){i.subscribe(Wn(r,Fh))})}()),t.pipe(T6(i)))}:Bi(function(t,e){return i(t,e).pipe(It(1),function f1e(i){return We(function(){return i})}(t))})}function v1e(i){return i instanceof Date&&!isNaN(i)}function jw(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d1e,e=-1;return null!=r&&(g_(r)?t=r:e=r),new An(function(n){var a=v1e(i)?+i-t.now():i;a<0&&(a=0);var o=0;return t.schedule(function(){n.closed||(n.next(o++),0<=e?this.schedule(void 0,e):n.complete())},a)})}function Dd(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp,t=jw(i,r);return T6(function(){return t})}var Cy="Service workers are disabled or not supported by this browser",Ww=function(){function i(r){if(p(this,i),this.serviceWorker=r,r){var e=li(r,"controllerchange").pipe(We(function(){return r.controller})),a=sf(jp(function(){return lt(r.controller)}),e);this.worker=a.pipe(Ue(function(c){return!!c})),this.registration=this.worker.pipe(Nn(function(){return r.getRegistration()}));var u=li(r,"message").pipe(We(function(c){return c.data})).pipe(Ue(function(c){return c&&c.type})).pipe(function u1e(i){return i?function(r){return w6(i)(r)}:function(r){return function l1e(i,r){var t=wn(i)?i:function(){return i};return wn(r)?w6(r,{connector:t}):function(e){return new S6(e,t)}}(new Ot)(r)}}());u.connect(),this.events=u}else this.worker=this.events=this.registration=function p1e(i){return jp(function(){return ky(new Error(i))})}(Cy)}return v(i,[{key:"postMessage",value:function(t,e){return this.worker.pipe(It(1),At(function(n){n.postMessage(Object.assign({action:t},e))})).toPromise().then(function(){})}},{key:"postMessageWithOperation",value:function(t,e,n){var a=this.waitForOperationCompleted(n),o=this.postMessage(t,e);return Promise.all([o,a]).then(function(s){return Bt(s,2)[1]})}},{key:"generateNonce",value:function(){return Math.round(1e7*Math.random())}},{key:"eventsOfType",value:function(t){return this.events.pipe(Ue("string"==typeof t?function(a){return a.type===t}:function(a){return t.includes(a.type)}))}},{key:"nextEventOfType",value:function(t){return this.eventsOfType(t).pipe(It(1))}},{key:"waitForOperationCompleted",value:function(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(Ue(function(e){return e.nonce===t}),It(1),We(function(e){if(void 0!==e.result)return e.result;throw new Error(e.error)})).toPromise()}},{key:"isEnabled",get:function(){return!!this.serviceWorker}}]),i}(),g1e=function(){var i=function(){function r(t){if(p(this,r),this.sw=t,this.subscriptionChanges=new Ot,!t.isEnabled)return this.messages=wd,this.notificationClicks=wd,void(this.subscription=wd);this.messages=this.sw.eventsOfType("PUSH").pipe(We(function(n){return n.data})),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(We(function(n){return n.data})),this.pushManager=this.sw.registration.pipe(We(function(n){return n.pushManager}));var e=this.pushManager.pipe(Nn(function(n){return n.getSubscription()}));this.subscription=xn(e,this.subscriptionChanges)}return v(r,[{key:"isEnabled",get:function(){return this.sw.isEnabled}},{key:"requestSubscription",value:function(e){var n=this;if(!this.sw.isEnabled)return Promise.reject(new Error(Cy));for(var a={userVisibleOnly:!0},o=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(o.length)),l=0;l1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:r,providers:[{provide:A6,useValue:e},{provide:NO,useValue:n},{provide:Ww,useFactory:y1e,deps:[NO,cy]},{provide:cw,useFactory:_1e,deps:[Jn,A6,NO,cy],multi:!0}]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[g1e,m1e]}),i}();function $p(i){return!!i&&(i instanceof An||wn(i.lift)&&wn(i.subscribe))}var C1e=Array.isArray,b1e=Object.getPrototypeOf,S1e=Object.prototype,w1e=Object.keys;function R6(i){if(1===i.length){var r=i[0];if(C1e(r))return{args:r,keys:null};if(function D1e(i){return i&&"object"==typeof i&&b1e(i)===S1e}(r)){var t=w1e(r);return{args:t.map(function(e){return r[e]}),keys:t}}}return{args:i,keys:null}}function O6(i,r){return i.reduce(function(t,e,n){return t[e]=r[n],t},{})}function FO(){for(var i=arguments.length,r=new Array(i),t=0;t0&&void 0!==arguments[0]?arguments[0]:1/0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:OO;return p(this,t),(e=r.call(this))._bufferSize=n,e._windowTime=a,e._timestampProvider=o,e._buffer=[],e._infiniteTimeWindow=!0,e._infiniteTimeWindow=a===1/0,e._bufferSize=Math.max(1,n),e._windowTime=Math.max(1,a),e}return v(t,[{key:"next",value:function(n){var o=this._buffer,s=this._infiniteTimeWindow,l=this._timestampProvider,u=this._windowTime;this.isStopped||(o.push(n),!s&&o.push(l.now()+u)),this._trimBuffer(),$(q(t.prototype),"next",this).call(this,n)}},{key:"_subscribe",value:function(n){this._throwIfClosed(),this._trimBuffer();for(var a=this._innerSubscribe(n),o=this._infiniteTimeWindow,l=this._buffer.slice(),u=0;u5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=arguments.length>8?arguments[8]:void 0;p(this,r),this.store=t,this.currentLoader=e,this.compiler=n,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=l,this.extend=u,this.pending=!1,this._onTranslationChange=new O,this._onLangChange=new O,this._onDefaultLangChange=new O,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}return v(r,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var n=this;if(e!==this.defaultLang){var a=this.retrieveTranslations(e);void 0!==a?(null==this.defaultLang&&(this.defaultLang=e),a.pipe(It(1)).subscribe(function(o){n.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var n=this;if(e===this.currentLang)return lt(this.translations[e]);var a=this.retrieveTranslations(e);return void 0!==a?(this.currentLang||(this.currentLang=e),a.pipe(It(1)).subscribe(function(o){n.changeLang(e)}),a):(this.changeLang(e),lt(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var n;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}},{key:"getTranslation",value:function(e){var n=this;this.pending=!0;var a=this.currentLoader.getTranslation(e).pipe(N6(1),It(1));return this.loadingTranslations=a.pipe(We(function(o){return n.compiler.compileTranslations(o,e)}),N6(1),It(1)),this.loadingTranslations.subscribe({next:function(s){n.translations[e]=n.extend&&n.translations[e]?Object.assign(Object.assign({},s),n.translations[e]):s,n.updateLangs(),n.pending=!1},error:function(s){n.pending=!1}}),a}},{key:"setTranslation",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n=this.compiler.compileTranslations(n,e),this.translations[e]=(a||this.extend)&&this.translations[e]?B6(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var n=this;e.forEach(function(a){-1===n.langs.indexOf(a)&&n.langs.push(a)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,n,a){var o;if(n instanceof Array){var c,s={},l=!1,u=In(n);try{for(u.s();!(c=u.n()).done;){var d=c.value;s[d]=this.getParsedResult(e,d,a),$p(s[d])&&(l=!0)}}catch(g){u.e(g)}finally{u.f()}return l?FO(n.map(function(g){return $p(s[g])?s[g]:lt(s[g])})).pipe(We(function(g){var _={};return g.forEach(function(C,w){_[n[w]]=C}),_})):s}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,n),a)),void 0===o&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),a)),void 0===o){var f={key:n,translateService:this};void 0!==a&&(f.interpolateParams=a),o=this.missingTranslationHandler.handle(f)}return void 0!==o?o:n}},{key:"get",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(nu(function(s){return $p(s=a.getParsedResult(s,e,n))?s:lt(s)}));var o=this.getParsedResult(this.translations[this.currentLang],e,n);return $p(o)?o:lt(o)}},{key:"getStreamOnTranslationChange",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');return sf(jp(function(){return a.get(e,n)}),this.onTranslationChange.pipe(Nn(function(o){var s=a.getParsedResult(o.translations,e,n);return"function"==typeof s.subscribe?s:lt(s)})))}},{key:"stream",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');return sf(jp(function(){return a.get(e,n)}),this.onLangChange.pipe(Nn(function(o){var s=a.getParsedResult(o.translations,e,n);return $p(s)?s:lt(s)})))}},{key:"instant",value:function(e,n){if(!lf(e)||!e.length)throw new Error('Parameter "key" required');var a=this.getParsedResult(this.translations[this.currentLang],e,n);if($p(a)){if(e instanceof Array){var o={};return e.forEach(function(s,l){o[e[l]]=e[l]}),o}return e}return a}},{key:"set",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[a][e]=this.compiler.compile(n,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;if(void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage))return-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(U6),oe(by),oe(qw),oe($w),oe(LO),oe(VO),oe(BO),oe(UO),oe(GO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),E1e=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.loader||{provide:by,useClass:F6},e.compiler||{provide:qw,useClass:G6},e.parser||{provide:$w,useClass:V6},e.missingTranslationHandler||{provide:LO,useClass:L6},U6,{provide:BO,useValue:e.isolate},{provide:VO,useValue:e.useDefaultLang},{provide:UO,useValue:e.extend},{provide:GO,useValue:e.defaultLanguage},z6]}}},{key:"forChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.loader||{provide:by,useClass:F6},e.compiler||{provide:qw,useClass:G6},e.parser||{provide:$w,useClass:V6},e.missingTranslationHandler||{provide:LO,useClass:L6},{provide:BO,useValue:e.isolate},{provide:VO,useValue:e.useDefaultLang},{provide:UO,useValue:e.extend},{provide:GO,useValue:e.defaultLanguage},z6]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),T1e=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";p(this,i),this.http=r,this.prefix=t,this.suffix=e}return v(i,[{key:"getTranslation",value:function(t){return this.http.get("".concat(this.prefix).concat(t).concat(this.suffix))}}]),i}(),Sy=function(){function i(){p(this,i)}return v(i,null,[{key:"IS_WEB",get:function(){return i.PLATFORM_TARGET===i.PLATFORMS.WEB}},{key:"IS_MOBILE_NATIVE",get:function(){return i.PLATFORM_TARGET===i.PLATFORMS.MOBILE_NATIVE}}]),i}();Sy.PLATFORMS={WEB:"web",MOBILE_NATIVE:"mobile_native"},Sy.PLATFORM_TARGET=Sy.PLATFORMS.WEB;var xi=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._value=e,n}return v(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(n){var a=$(q(t.prototype),"_subscribe",this).call(this,n);return!a.closed&&n.next(this._value),a}},{key:"getValue",value:function(){var o=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),o}},{key:"next",value:function(n){$(q(t.prototype),"next",this).call(this,this._value=n)}}]),t}(Ot);function zO(){for(var i=arguments.length,r=new Array(i),t=0;t2&&void 0!==arguments[2]?arguments[2]:zl;return function(e){H6(r,function(){for(var n=i.length,a=new Array(n),o=n,s=n,l=function(d){H6(r,function(){var h=wi(i[d],r),f=!1;h.subscribe(Wn(e,function(g){a[d]=g,f||(f=!0,s--),s||e.next(t(a.slice()))},function(){--o||e.complete()}))},e)},u=0;u=2,!0))}function cl(i){return oi(function(r,t){var a,e=null,n=!1;e=r.subscribe(Wn(t,void 0,void 0,function(o){a=Pi(i(o,cl(i)(r))),e?(e.unsubscribe(),e=null,a.subscribe(t)):n=!0})),n&&(e.unsubscribe(),e=null,a.subscribe(t))})}function KO(i){return i<=0?function(){return po}:oi(function(r,t){var e=[];r.subscribe(Wn(t,function(n){e.push(n),i0&&void 0!==arguments[0]?arguments[0]:M1e;return oi(function(r,t){var e=!1;r.subscribe(Wn(t,function(n){e=!0,t.next(n)},function(){return e?t.complete():t.error(i())}))})}function M1e(){return new Xw}function W6(i){return oi(function(r,t){var e=!1;r.subscribe(Wn(t,function(n){e=!0,t.next(n)},function(){e||t.next(i),t.complete()}))})}function qp(i,r){var t=arguments.length>=2;return function(e){return e.pipe(i?Ue(function(n,a){return i(n,a,e)}):zl,It(1),t?W6(r):j6(function(){return new Xw}))}}function $6(i){return oi(function(r,t){try{r.subscribe(t)}finally{t.add(i)}})}var gc=v(function i(r,t){p(this,i),this.id=r,this.url=t}),jO=function(i){b(t,i);var r=S(t);function t(e,n){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return p(this,t),(a=r.call(this,e,n)).navigationTrigger=o,a.restoredState=s,a}return v(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(gc),wy=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).urlAfterRedirects=a,o}return v(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(gc),q6=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).reason=a,o}return v(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(gc),O1e=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).error=a,o}return v(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(gc),I1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),N1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),F1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s){var l;return p(this,t),(l=r.call(this,e,n)).urlAfterRedirects=a,l.state=o,l.shouldActivate=s,l}return v(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(gc),L1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),P1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),X6=function(){function i(r){p(this,i),this.route=r}return v(i,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),i}(),Z6=function(){function i(r){p(this,i),this.route=r}return v(i,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),i}(),B1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),V1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),G1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),U1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),Y6=function(){function i(r,t,e){p(this,i),this.routerEvent=r,this.position=t,this.anchor=e}return v(i,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),i}(),bn="primary",z1e=function(){function i(r){p(this,i),this.params=r||{}}return v(i,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),i}();function Xp(i){return new z1e(i)}var Q6="ngNavigationCancelingError";function WO(i){var r=Error("NavigationCancelingError: "+i);return r[Q6]=!0,r}function K1e(i,r,t){var e=t.path.split("/");if(e.length>i.length||"full"===t.pathMatch&&(r.hasChildren()||e.length0?i[i.length-1]:null}function ga(i,r){for(var t in i)i.hasOwnProperty(t)&&r(i[t],t)}function ou(i){return $M(i)?i:X_(i)?wi(Promise.resolve(i)):lt(i)}var $1e={exact:function rj(i,r,t){if(!cf(i.segments,r.segments)||!Zw(i.segments,r.segments,t)||i.numberOfChildren!==r.numberOfChildren)return!1;for(var e in r.children)if(!i.children[e]||!rj(i.children[e],r.children[e],t))return!1;return!0},subset:aj},nj={exact:function q1e(i,r){return au(i,r)},subset:function X1e(i,r){return Object.keys(r).length<=Object.keys(i).length&&Object.keys(r).every(function(t){return J6(i[t],r[t])})},ignored:function(){return!0}};function ij(i,r,t){return $1e[t.paths](i.root,r.root,t.matrixParams)&&nj[t.queryParams](i.queryParams,r.queryParams)&&!("exact"===t.fragment&&i.fragment!==r.fragment)}function aj(i,r,t){return oj(i,r,r.segments,t)}function oj(i,r,t,e){if(i.segments.length>t.length){var n=i.segments.slice(0,t.length);return!(!cf(n,t)||r.hasChildren()||!Zw(n,t,e))}if(i.segments.length===t.length){if(!cf(i.segments,t)||!Zw(i.segments,t,e))return!1;for(var a in r.children)if(!i.children[a]||!aj(i.children[a],r.children[a],e))return!1;return!0}var o=t.slice(0,i.segments.length),s=t.slice(i.segments.length);return!!(cf(i.segments,o)&&Zw(i.segments,o,e)&&i.children[bn])&&oj(i.children[bn],r,s,e)}function Zw(i,r,t){return r.every(function(e,n){return nj[t](i[n].parameters,e.parameters)})}var uf=function(){function i(r,t,e){p(this,i),this.root=r,this.queryParams=t,this.fragment=e}return v(i,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Xp(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Q1e.serialize(this)}}]),i}(),Rn=function(){function i(r,t){var e=this;p(this,i),this.segments=r,this.children=t,this.parent=null,ga(t,function(n,a){return n.parent=e})}return v(i,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Yw(this)}}]),i}(),Dy=function(){function i(r,t){p(this,i),this.path=r,this.parameters=t}return v(i,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Xp(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return dj(this)}}]),i}();function cf(i,r){return i.length===r.length&&i.every(function(t,e){return t.path===r[e].path})}var sj=v(function i(){p(this,i)}),lj=function(){function i(){p(this,i)}return v(i,[{key:"parse",value:function(t){var e=new sTe(t);return new uf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e="/".concat(Ey(t.root,!0)),n=function tTe(i){var r=Object.keys(i).map(function(t){var e=i[t];return Array.isArray(e)?e.map(function(n){return"".concat(Qw(t),"=").concat(Qw(n))}).join("&"):"".concat(Qw(t),"=").concat(Qw(e))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function J1e(i){return encodeURI(i)}(t.fragment)):"";return"".concat(e).concat(n).concat(a)}}]),i}(),Q1e=new lj;function Yw(i){return i.segments.map(function(r){return dj(r)}).join("/")}function Ey(i,r){if(!i.hasChildren())return Yw(i);if(r){var t=i.children[bn]?Ey(i.children[bn],!1):"",e=[];return ga(i.children,function(a,o){o!==bn&&e.push("".concat(o,":").concat(Ey(a,!1)))}),e.length>0?"".concat(t,"(").concat(e.join("//"),")"):t}var n=function Y1e(i,r){var t=[];return ga(i.children,function(e,n){n===bn&&(t=t.concat(r(e,n)))}),ga(i.children,function(e,n){n!==bn&&(t=t.concat(r(e,n)))}),t}(i,function(a,o){return o===bn?[Ey(i.children[bn],!1)]:["".concat(o,":").concat(Ey(a,!1))]});return 1===Object.keys(i.children).length&&null!=i.children[bn]?"".concat(Yw(i),"/").concat(n[0]):"".concat(Yw(i),"/(").concat(n.join("//"),")")}function uj(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qw(i){return uj(i).replace(/%3B/gi,";")}function $O(i){return uj(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jw(i){return decodeURIComponent(i)}function cj(i){return Jw(i.replace(/\+/g,"%20"))}function dj(i){return"".concat($O(i.path)).concat(function eTe(i){return Object.keys(i).map(function(r){return";".concat($O(r),"=").concat($O(i[r]))}).join("")}(i.parameters))}var nTe=/^[^\/()?;=#]+/;function eD(i){var r=i.match(nTe);return r?r[0]:""}var iTe=/^[^=?&#]+/,aTe=/^[^&#]+/,sTe=function(){function i(r){p(this,i),this.url=r,this.remaining=r}return v(i,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rn([],{}):new Rn([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[bn]=new Rn(t,e)),n}},{key:"parseSegment",value:function(){var t=eD(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Dy(Jw(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=eD(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var a=eD(this.remaining);a&&this.capture(n=a)}t[Jw(e)]=Jw(n)}}},{key:"parseQueryParam",value:function(t){var e=function rTe(i){var r=i.match(iTe);return r?r[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var a=function oTe(i){var r=i.match(aTe);return r?r[0]:""}(this.remaining);a&&this.capture(n=a)}var o=cj(e),s=cj(n);if(t.hasOwnProperty(o)){var l=t[o];Array.isArray(l)||(t[o]=l=[l]),l.push(s)}else t[o]=s}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=eD(this.remaining),a=this.remaining[n.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=bn);var s=this.parseChildren();e[o]=1===Object.keys(s).length?s[bn]:new Rn([],s),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),i}(),hj=function(){function i(r){p(this,i),this._root=r}return v(i,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=qO(t,this._root);return e?e.children.map(function(n){return n.value}):[]}},{key:"firstChild",value:function(t){var e=qO(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=XO(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return XO(t,this._root).map(function(e){return e.value})}}]),i}();function qO(i,r){if(i===r.value)return r;var e,t=In(r.children);try{for(t.s();!(e=t.n()).done;){var a=qO(i,e.value);if(a)return a}}catch(o){t.e(o)}finally{t.f()}return null}function XO(i,r){if(i===r.value)return[r];var e,t=In(r.children);try{for(t.s();!(e=t.n()).done;){var a=XO(i,e.value);if(a.length)return a.unshift(r),a}}catch(o){t.e(o)}finally{t.f()}return[]}var mc=function(){function i(r,t){p(this,i),this.value=r,this.children=t}return v(i,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),i}();function Zp(i){var r={};return i&&i.children.forEach(function(t){return r[t.value.outlet]=t}),r}var fj=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e)).snapshot=n,ZO(Xe(a),e),a}return v(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(hj);function vj(i,r){var t=function lTe(i,r){var o=new tD([],{},{},"",{},bn,r,null,i.root,-1,{});return new gj("",new mc(o,[]))}(i,r),e=new xi([new Dy("",{})]),n=new xi({}),a=new xi({}),o=new xi({}),s=new xi(""),l=new Yp(e,n,o,s,a,bn,r,t.root);return l.snapshot=t.root,new fj(new mc(l,[]),t)}var Yp=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this.url=r,this.params=t,this.queryParams=e,this.fragment=n,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=l}return v(i,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(We(function(t){return Xp(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(We(function(t){return Xp(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),i}();function pj(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=i.pathFromRoot,e=0;if("always"!==r)for(e=t.length-1;e>=1;){var n=t[e],a=t[e-1];if(n.routeConfig&&""===n.routeConfig.path)e--;else{if(a.component)break;e--}}return uTe(t.slice(e))}function uTe(i){return i.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var tD=function(){function i(r,t,e,n,a,o,s,l,u,c,d){p(this,i),this.url=r,this.params=t,this.queryParams=e,this.fragment=n,this.data=a,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}return v(i,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Xp(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Xp(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(n){return n.toString()}).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}}]),i}(),gj=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).url=e,ZO(Xe(a),n),a}return v(t,[{key:"toString",value:function(){return mj(this._root)}}]),t}(hj);function ZO(i,r){r.value._routerState=i,r.children.forEach(function(t){return ZO(i,t)})}function mj(i){var r=i.children.length>0?" { ".concat(i.children.map(mj).join(", ")," } "):"";return"".concat(i.value).concat(r)}function YO(i){if(i.snapshot){var r=i.snapshot,t=i._futureSnapshot;i.snapshot=t,au(r.queryParams,t.queryParams)||i.queryParams.next(t.queryParams),r.fragment!==t.fragment&&i.fragment.next(t.fragment),au(r.params,t.params)||i.params.next(t.params),function j1e(i,r){if(i.length!==r.length)return!1;for(var t=0;tn;){if(a-=n,!(e=e.parent))throw new Error("Invalid number of '../'");n=e.segments.length}return new eI(e,!1,n-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,i.numberOfDoubleDots)}(a,r,i),s=o.processChildren?iD(o.segmentGroup,o.index,a.commands):kj(o.segmentGroup,o.index,a.commands);return JO(r.root,o.segmentGroup,s,e,n)}function nD(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function Ay(i){return"object"==typeof i&&null!=i&&i.outlets}function JO(i,r,t,e,n){var a={};if(e&&ga(e,function(s,l){a[l]=Array.isArray(s)?s.map(function(u){return"".concat(u)}):"".concat(s)}),i===r)return new uf(t,a,n);var o=_j(i,r,t);return new uf(o,a,n)}function _j(i,r,t){var e={};return ga(i.children,function(n,a){e[a]=n===r?t:_j(n,r,t)}),new Rn(i.segments,e)}var yj=function(){function i(r,t,e){if(p(this,i),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=e,r&&e.length>0&&nD(e[0]))throw new Error("Root segment cannot have matrix parameters");var n=e.find(Ay);if(n&&n!==tj(e))throw new Error("{outlets:{}} has to be the last command")}return v(i,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),i}(),eI=v(function i(r,t,e){p(this,i),this.segmentGroup=r,this.processChildren=t,this.index=e});function kj(i,r,t){if(i||(i=new Rn([],{})),0===i.segments.length&&i.hasChildren())return iD(i,r,t);var e=function _Te(i,r,t){for(var e=0,n=r,a={match:!1,pathIndex:0,commandIndex:0};n=t.length)return a;var o=i.segments[n],s=t[e];if(Ay(s))break;var l="".concat(s),u=e0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!bj(l,u,o))return a;e+=2}else{if(!bj(l,{},o))return a;e++}n++}return{match:!0,pathIndex:n,commandIndex:e}}(i,r,t),n=t.slice(e.commandIndex);if(e.match&&e.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},Ej):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};var a=(r.matcher||K1e)(t,i,r);if(!a)return Object.assign({},Ej);var o={};ga(a.posParams,function(l,u){o[u]=l.path});var s=a.consumed.length>0?Object.assign(Object.assign({},o),a.consumed[a.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:s,positionalParamSegments:null!==(e=a.posParams)&&void 0!==e?e:{}}}function aD(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&NTe(i,t,e)){var a=new Rn(r,ITe(i,r,e,new Rn(t,i.children)));return a._sourceSegment=i,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&FTe(i,t,e)){var o=new Rn(i.segments,OTe(i,r,t,e,i.children,n));return o._sourceSegment=i,o._segmentIndexShift=r.length,{segmentGroup:o,slicedSegments:t}}var s=new Rn(i.segments,i.children);return s._sourceSegment=i,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}function OTe(i,r,t,e,n,a){var l,o={},s=In(e);try{for(s.s();!(l=s.n()).done;){var u=l.value;if(oD(i,t,u)&&!n[Os(u)]){var c=new Rn([],{});c._sourceSegment=i,c._segmentIndexShift="legacy"===a?i.segments.length:r.length,o[Os(u)]=c}}}catch(d){s.e(d)}finally{s.f()}return Object.assign(Object.assign({},n),o)}function ITe(i,r,t,e){var n={};n[bn]=e,e._sourceSegment=i,e._segmentIndexShift=r.length;var o,a=In(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Os(s)!==bn){var l=new Rn([],{});l._sourceSegment=i,l._segmentIndexShift=r.length,n[Os(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return n}function NTe(i,r,t){return t.some(function(e){return oD(i,r,e)&&Os(e)!==bn})}function FTe(i,r,t){return t.some(function(e){return oD(i,r,e)})}function oD(i,r,t){return(!(i.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function Tj(i,r,t,e){return!!(Os(i)===e||e!==bn&&oD(r,t,i))&&("**"===i.path||rD(r,i,t).matched)}function Aj(i,r,t){return 0===r.length&&!i.children[t]}var sD=v(function i(r){p(this,i),this.segmentGroup=r||null}),xj=v(function i(r){p(this,i),this.urlTree=r});function Oy(i){return ky(new sD(i))}function Mj(i){return ky(new xj(i))}function LTe(i){return ky(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(i,"'")))}var VTe=function(){function i(r,t,e,n,a){p(this,i),this.configLoader=t,this.urlSerializer=e,this.urlTree=n,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(hc)}return v(i,[{key:"apply",value:function(){var t=this,e=aD(this.urlTree.root,[],[],this.config).segmentGroup,n=new Rn(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,bn).pipe(We(function(s){return t.createUrlTree(aI(s),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(cl(function(s){if(s instanceof xj)return t.allowRedirects=!1,t.match(s.urlTree);throw s instanceof sD?t.noMatchError(s):s}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,bn).pipe(We(function(o){return e.createUrlTree(aI(o),t.queryParams,t.fragment)})).pipe(cl(function(o){throw o instanceof sD?e.noMatchError(o):o}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var a=t.segments.length>0?new Rn([],De({},bn,t)):t;return new uf(a,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,a){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(We(function(o){return new Rn([],o)})):this.expandSegment(t,n,e,n.segments,a,!0)}},{key:"expandChildren",value:function(t,e,n){for(var a=this,o=[],s=0,l=Object.keys(n.children);s=2;return function(e){return e.pipe(i?Ue(function(n,a){return i(n,a,e)}):zl,KO(1),t?W6(r):j6(function(){return new Xw}))}}())}},{key:"expandSegment",value:function(t,e,n,a,o,s){var l=this;return wi(n).pipe(nu(function(u){return l.expandSegmentAgainstRoute(t,e,n,u,a,o,s).pipe(cl(function(d){if(d instanceof sD)return lt(null);throw d}))}),qp(function(u){return!!u}),cl(function(u,c){if(u instanceof Xw||"EmptyError"===u.name)return Aj(e,a,o)?lt(new Rn([],{})):Oy(e);throw u}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,a,o,s,l){return Tj(a,e,o,s)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(t,e,a,o,s):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,a,o,s):Oy(e):Oy(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,a,o,s){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,a,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,a,o,s)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,a){var o=this,s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Mj(s):this.lineralizeSegments(n,s).pipe(Bi(function(l){var u=new Rn(l,{});return o.expandSegment(t,u,e,l,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,a,o,s){var l=this,u=rD(e,a,o),d=u.consumedSegments,h=u.remainingSegments,f=u.positionalParamSegments;if(!u.matched)return Oy(e);var g=this.applyRedirectCommands(d,a.redirectTo,f);return a.redirectTo.startsWith("/")?Mj(g):this.lineralizeSegments(a,g).pipe(Bi(function(_){return l.expandSegment(t,e,n,_.concat(h),s,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,a,o){var s=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?lt(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(We(function(g){return n._loadedConfig=g,new Rn(a,{})})):lt(new Rn(a,{}));var u=rD(e,n,a),d=u.consumedSegments,h=u.remainingSegments;return u.matched?this.getChildConfig(t,n,a).pipe(Bi(function(g){var _=g.module,C=g.routes,w=aD(e,d,h,C),E=w.segmentGroup,M=w.slicedSegments,R=new Rn(E.segments,E.children);if(0===M.length&&R.hasChildren())return s.expandChildren(_,C,R).pipe(We(function(ee){return new Rn(d,ee)}));if(0===C.length&&0===M.length)return lt(new Rn(d,{}));var G=Os(n)===o;return s.expandSegment(_,R,C,M,G?bn:o,!0).pipe(We(function(ee){return new Rn(d.concat(ee.segments),ee.children)}))})):Oy(e)}},{key:"getChildConfig",value:function(t,e,n){var a=this;return e.children?lt(new nI(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?lt(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Bi(function(o){return o?a.configLoader.load(t.injector,e).pipe(We(function(s){return e._loadedConfig=s,s})):function PTe(i){return ky(WO("Cannot load children because the guard of the route \"path: '".concat(i.path,"'\" returned false")))}(e)})):lt(new nI([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var a=this,o=e.canLoad;if(!o||0===o.length)return lt(!0);var s=o.map(function(l){var c,u=t.get(l);if(function wTe(i){return i&&Ed(i.canLoad)}(u))c=u.canLoad(e,n);else{if(!Ed(u))throw new Error("Invalid CanLoad guard");c=u(e,n)}return ou(c)});return lt(s).pipe(My(),At(function(l){if(df(l)){var u=WO('Redirecting to "'.concat(a.urlSerializer.serialize(l),'"'));throw u.url=l,u}}),We(function(l){return!0===l}))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],a=e.root;;){if(n=n.concat(a.segments),0===a.numberOfChildren)return lt(n);if(a.numberOfChildren>1||!a.children[bn])return LTe(t.redirectTo);a=a.children[bn]}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,a){var o=this.createSegmentGroup(t,e.root,n,a);return new uf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return ga(t,function(a,o){if("string"==typeof a&&a.startsWith(":")){var l=a.substring(1);n[o]=e[l]}else n[o]=a}),n}},{key:"createSegmentGroup",value:function(t,e,n,a){var o=this,s=this.createSegments(t,e.segments,n,a),l={};return ga(e.children,function(u,c){l[c]=o.createSegmentGroup(t,u,n,a)}),new Rn(s,l)}},{key:"createSegments",value:function(t,e,n,a){var o=this;return e.map(function(s){return s.path.startsWith(":")?o.findPosParam(t,s,a):o.findOrReturn(s,n)})}},{key:"findPosParam",value:function(t,e,n){var a=n[e.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return a}},{key:"findOrReturn",value:function(t,e){var o,n=0,a=In(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s.path===t.path)return e.splice(n),s;n++}}catch(l){a.e(l)}finally{a.f()}return t}}]),i}();function aI(i){for(var r={},t=0,e=Object.keys(i.children);t0||o.hasChildren())&&(r[n]=o)}return function GTe(i){if(1===i.numberOfChildren&&i.children[bn]){var r=i.children[bn];return new Rn(i.segments.concat(r.segments),r.children)}return i}(new Rn(i.segments,r))}var Rj=v(function i(r){p(this,i),this.path=r,this.route=this.path[this.path.length-1]}),lD=v(function i(r,t){p(this,i),this.component=r,this.route=t});function zTe(i,r,t){var e=i._root;return Iy(e,r?r._root:null,t,[e.value])}function uD(i,r,t){var e=function KTe(i){if(!i)return null;for(var r=i.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(e?e.module.injector:t).get(i)}function Iy(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Zp(r);return i.children.forEach(function(o){jTe(o,a[o.value.outlet],t,e.concat([o.value]),n),delete a[o.value.outlet]}),ga(a,function(o,s){return Ny(o,t.getContext(s),n)}),n}function jTe(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=i.value,o=r?r.value:null,s=t?t.getContext(i.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var l=WTe(o,a,a.routeConfig.runGuardsAndResolvers);l?n.canActivateChecks.push(new Rj(e)):(a.data=o.data,a._resolvedData=o._resolvedData),Iy(i,r,a.component?s?s.children:null:t,e,n),l&&s&&s.outlet&&s.outlet.isActivated&&n.canDeactivateChecks.push(new lD(s.outlet.component,o))}else o&&Ny(r,s,n),n.canActivateChecks.push(new Rj(e)),Iy(i,null,a.component?s?s.children:null:t,e,n);return n}function WTe(i,r,t){if("function"==typeof t)return t(i,r);switch(t){case"pathParamsChange":return!cf(i.url,r.url);case"pathParamsOrQueryParamsChange":return!cf(i.url,r.url)||!au(i.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!QO(i,r)||!au(i.queryParams,r.queryParams);default:return!QO(i,r)}}function Ny(i,r,t){var e=Zp(i),n=i.value;ga(e,function(a,o){Ny(a,n.component?r?r.children.getContext(o):null:r,t)}),t.canDeactivateChecks.push(new lD(n.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,n))}var tAe=v(function i(){p(this,i)});function Oj(i){return new An(function(r){return r.error(i)})}var iAe=function(){function i(r,t,e,n,a,o){p(this,i),this.rootComponentType=r,this.config=t,this.urlTree=e,this.url=n,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return v(i,[{key:"recognize",value:function(){var t=aD(this.urlTree.root,[],[],this.config.filter(function(s){return void 0===s.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,bn);if(null===e)return null;var n=new tD([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},bn,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new mc(n,e),o=new gj(this.url,a);return this.inheritParamsAndData(o._root),o}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,a=pj(n,this.paramsInheritanceStrategy);n.params=Object.freeze(a.params),n.data=Object.freeze(a.data),t.children.forEach(function(o){return e.inheritParamsAndData(o)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],a=0,o=Object.keys(e.children);a0?tj(n).parameters:{};o=new tD(n,u,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Lj(t),Os(t),t.component,t,Nj(e),Fj(e)+n.length,Pj(t))}else{var c=rD(e,t,n);if(!c.matched)return null;l=c.remainingSegments,o=new tD(s=c.consumedSegments,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Lj(t),Os(t),t.component,t,Nj(e),Fj(e)+s.length,Pj(t))}var d=function aAe(i){return i.children?i.children:i.loadChildren?i._loadedConfig.routes:[]}(t),h=aD(e,s,l,d.filter(function(E){return void 0===E.redirectTo}),this.relativeLinkResolution),f=h.segmentGroup,g=h.slicedSegments;if(0===g.length&&f.hasChildren()){var _=this.processChildren(d,f);return null===_?null:[new mc(o,_)]}if(0===d.length&&0===g.length)return[new mc(o,[])];var C=Os(t)===a,w=this.processSegment(d,f,g,C?bn:a);return null===w?null:[new mc(o,w)]}}]),i}();function Ij(i){var n,r=[],t=new Set,e=In(i);try{var a=function(){var h=n.value;if(!function oAe(i){var r=i.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(h))return r.push(h),"continue";var g,f=r.find(function(_){return h.value.routeConfig===_.value.routeConfig});void 0!==f?((g=f.children).push.apply(g,Ae(h.children)),t.add(f)):r.push(h)};for(e.s();!(n=e.n()).done;)a()}catch(d){e.e(d)}finally{e.f()}var l,s=In(t);try{for(s.s();!(l=s.n()).done;){var u=l.value,c=Ij(u.children);r.push(new mc(u.value,c))}}catch(d){s.e(d)}finally{s.f()}return r.filter(function(d){return!t.has(d)})}function Nj(i){for(var r=i;r._sourceSegment;)r=r._sourceSegment;return r}function Fj(i){for(var r=i,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function Lj(i){return i.data||{}}function Pj(i){return i.resolve||{}}function Bj(i){return[].concat(Ae(Object.keys(i)),Ae(Object.getOwnPropertySymbols(i)))}function oI(i){return Nn(function(r){var t=i(r);return t?wi(t).pipe(We(function(){return r})):lt(r)})}var hAe=v(function i(){p(this,i)}),fAe=function(){function i(){p(this,i)}return v(i,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),i}(),vAe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(fAe),sI=new Dt("ROUTES"),Vj=function(){function i(r,t,e,n){p(this,i),this.injector=r,this.compiler=t,this.onLoadStartListener=e,this.onLoadEndListener=n}return v(i,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var o=this.loadModuleFactory(e.loadChildren).pipe(We(function(s){n.onLoadEndListener&&n.onLoadEndListener(e);var l=s.create(t);return new nI(ej(l.injector.get(sI,void 0,tn.Self|tn.Optional)).map(rI),l)}),cl(function(s){throw e._loader$=void 0,s}));return e._loader$=new S6(o,function(){return new Ot}).pipe(b6()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return ou(t()).pipe(Bi(function(n){return n instanceof x5?lt(n):wi(e.compiler.compileModuleAsync(n))}))}}]),i}(),pAe=v(function i(){p(this,i)}),gAe=function(){function i(){p(this,i)}return v(i,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),i}();function mAe(i){throw i}function _Ae(i,r,t){return r.parse("/")}function Gj(i,r){return lt(null)}var yAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Na=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=a,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ot,this.errorHandler=mAe,this.malformedUriErrorHandler=_Ae,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Gj,afterPreactivation:Gj},this.urlHandlingStrategy=new gAe,this.routeReuseStrategy=new vAe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(hc),this.console=o.get(tSe);var h=o.get(be);this.isNgZoneEnabled=h instanceof be&&be.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function W1e(){return new uf(new Rn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Vj(o,s,function(g){return u.triggerEvent(new X6(g))},function(g){return u.triggerEvent(new Z6(g))}),this.routerState=vj(this.currentUrlTree,this.rootComponentType),this.transitions=new xi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return v(r,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var n=this,a=this.events;return e.pipe(Ue(function(o){return 0!==o.id}),We(function(o){return Object.assign(Object.assign({},o),{extractedUrl:n.urlHandlingStrategy.extract(o.rawUrl)})}),Nn(function(o){var s=!1,l=!1;return lt(o).pipe(At(function(u){n.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:n.lastSuccessfulNavigation?Object.assign(Object.assign({},n.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Nn(function(u){var c=n.browserUrlTree.toString(),d=!n.navigated||u.extractedUrl.toString()!==c||c!==n.currentUrlTree.toString();if(("reload"===n.onSameUrlNavigation||d)&&n.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Uj(u.source)&&(n.browserUrlTree=u.extractedUrl),lt(u).pipe(Nn(function(N){var G=n.transitions.getValue();return a.next(new jO(N.id,n.serializeUrl(N.extractedUrl),N.source,N.restoredState)),G!==n.transitions.getValue()?po:Promise.resolve(N)}),function UTe(i,r,t,e){return Nn(function(n){return function BTe(i,r,t,e,n){return new VTe(i,r,t,e,n).apply()}(i,r,t,n.extractedUrl,e).pipe(We(function(a){return Object.assign(Object.assign({},n),{urlAfterRedirects:a})}))})}(n.ngModule.injector,n.configLoader,n.urlSerializer,n.config),At(function(N){n.currentNavigation=Object.assign(Object.assign({},n.currentNavigation),{finalUrl:N.urlAfterRedirects})}),function sAe(i,r,t,e,n){return Bi(function(a){return function nAe(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new iAe(i,r,t,e,n,a).recognize();return null===o?Oj(new tAe):lt(o)}catch(s){return Oj(s)}}(i,r,a.urlAfterRedirects,t(a.urlAfterRedirects),e,n).pipe(We(function(o){return Object.assign(Object.assign({},a),{targetSnapshot:o})}))})}(n.rootComponentType,n.config,function(N){return n.serializeUrl(N)},n.paramsInheritanceStrategy,n.relativeLinkResolution),At(function(N){if("eager"===n.urlUpdateStrategy){if(!N.extras.skipLocationChange){var G=n.urlHandlingStrategy.merge(N.urlAfterRedirects,N.rawUrl);n.setBrowserUrl(G,N)}n.browserUrlTree=N.urlAfterRedirects}var U=new I1e(N.id,n.serializeUrl(N.extractedUrl),n.serializeUrl(N.urlAfterRedirects),N.targetSnapshot);a.next(U)}));if(d&&n.rawUrlTree&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){var _=u.extractedUrl,C=u.source,w=u.restoredState,E=u.extras,M=new jO(u.id,n.serializeUrl(_),C,w);a.next(M);var R=vj(_,n.rootComponentType).snapshot;return lt(Object.assign(Object.assign({},u),{targetSnapshot:R,urlAfterRedirects:_,extras:Object.assign(Object.assign({},E),{skipLocationChange:!1,replaceUrl:!1})}))}return n.rawUrlTree=u.rawUrl,u.resolve(null),po}),oI(function(u){var g=u.extras;return n.hooks.beforePreactivation(u.targetSnapshot,{navigationId:u.id,appliedUrlTree:u.extractedUrl,rawUrlTree:u.rawUrl,skipLocationChange:!!g.skipLocationChange,replaceUrl:!!g.replaceUrl})}),At(function(u){var c=new N1e(u.id,n.serializeUrl(u.extractedUrl),n.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);n.triggerEvent(c)}),We(function(u){return Object.assign(Object.assign({},u),{guards:zTe(u.targetSnapshot,u.currentSnapshot,n.rootContexts)})}),function $Te(i,r){return Bi(function(t){var e=t.targetSnapshot,n=t.currentSnapshot,a=t.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?lt(Object.assign(Object.assign({},t),{guardsResult:!0})):function qTe(i,r,t,e){return wi(i).pipe(Bi(function(n){return function eAe(i,r,t,e,n){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return lt(!0);var o=a.map(function(s){var u,l=uD(s,r,n);if(function TTe(i){return i&&Ed(i.canDeactivate)}(l))u=ou(l.canDeactivate(i,r,t,e));else{if(!Ed(l))throw new Error("Invalid CanDeactivate guard");u=ou(l(i,r,t,e))}return u.pipe(qp())});return lt(o).pipe(My())}(n.component,n.route,t,r,e)}),qp(function(n){return!0!==n},!0))}(s,e,n,i).pipe(Bi(function(l){return l&&function STe(i){return"boolean"==typeof i}(l)?function XTe(i,r,t,e){return wi(r).pipe(nu(function(n){return sf(function YTe(i,r){return null!==i&&r&&r(new B1e(i)),lt(!0)}(n.route.parent,e),function ZTe(i,r){return null!==i&&r&&r(new G1e(i)),lt(!0)}(n.route,e),function JTe(i,r,t){var e=r[r.length-1],n=r.slice(0,r.length-1).reverse().map(function(o){return function HTe(i){var r=i.routeConfig?i.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:i,guards:r}:null}(o)}).filter(function(o){return null!==o}),a=n.map(function(o){return jp(function(){var s=o.guards.map(function(l){var c,u=uD(l,o.node,t);if(function ETe(i){return i&&Ed(i.canActivateChild)}(u))c=ou(u.canActivateChild(e,i));else{if(!Ed(u))throw new Error("Invalid CanActivateChild guard");c=ou(u(e,i))}return c.pipe(qp())});return lt(s).pipe(My())})});return lt(a).pipe(My())}(i,n.path,t),function QTe(i,r,t){var e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||0===e.length)return lt(!0);var n=e.map(function(a){return jp(function(){var s,o=uD(a,r,t);if(function DTe(i){return i&&Ed(i.canActivate)}(o))s=ou(o.canActivate(r,i));else{if(!Ed(o))throw new Error("Invalid CanActivate guard");s=ou(o(r,i))}return s.pipe(qp())})});return lt(n).pipe(My())}(i,n.route,t))}),qp(function(n){return!0!==n},!0))}(e,o,i,r):lt(l)}),We(function(l){return Object.assign(Object.assign({},t),{guardsResult:l})}))})}(n.ngModule.injector,function(u){return n.triggerEvent(u)}),At(function(u){if(df(u.guardsResult)){var c=WO('Redirecting to "'.concat(n.serializeUrl(u.guardsResult),'"'));throw c.url=u.guardsResult,c}var d=new F1e(u.id,n.serializeUrl(u.extractedUrl),n.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);n.triggerEvent(d)}),Ue(function(u){return!!u.guardsResult||(n.restoreHistory(u),n.cancelNavigationTransition(u,""),!1)}),oI(function(u){if(u.guards.canActivateChecks.length)return lt(u).pipe(At(function(c){var d=new L1e(c.id,n.serializeUrl(c.extractedUrl),n.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);n.triggerEvent(d)}),Nn(function(c){var d=!1;return lt(c).pipe(function lAe(i,r){return Bi(function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return lt(t);var a=0;return wi(n).pipe(nu(function(o){return function uAe(i,r,t,e){return function cAe(i,r,t,e){var n=Bj(i);if(0===n.length)return lt({});var a={};return wi(n).pipe(Bi(function(o){return function dAe(i,r,t,e){var n=uD(i,r,e);return ou(n.resolve?n.resolve(r,t):n(r,t))}(i[o],r,t,e).pipe(At(function(s){a[o]=s}))}),KO(1),Bi(function(){return Bj(a).length===n.length?lt(a):po}))}(i._resolve,i,r,e).pipe(We(function(a){return i._resolvedData=a,i.data=Object.assign(Object.assign({},i.data),pj(i,t).resolve),null}))}(o.route,e,i,r)}),At(function(){return a++}),KO(1),Bi(function(o){return a===n.length?lt(t):po}))})}(n.paramsInheritanceStrategy,n.ngModule.injector),At({next:function(){return d=!0},complete:function(){d||(n.restoreHistory(c),n.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),At(function(c){var d=new P1e(c.id,n.serializeUrl(c.extractedUrl),n.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);n.triggerEvent(d)}))}),oI(function(u){var g=u.extras;return n.hooks.afterPreactivation(u.targetSnapshot,{navigationId:u.id,appliedUrlTree:u.extractedUrl,rawUrlTree:u.rawUrl,skipLocationChange:!!g.skipLocationChange,replaceUrl:!!g.replaceUrl})}),We(function(u){var c=function cTe(i,r,t){var e=Ty(i,r._root,t?t._root:void 0);return new fj(e,r)}(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return Object.assign(Object.assign({},u),{targetRouterState:c})}),At(function(u){n.currentUrlTree=u.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),n.routerState=u.targetRouterState,"deferred"===n.urlUpdateStrategy&&(u.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,u),n.browserUrlTree=u.urlAfterRedirects)}),function(r,t,e){return We(function(n){return new CTe(t,n.targetRouterState,n.currentRouterState,e).activate(r),n})}(n.rootContexts,n.routeReuseStrategy,function(u){return n.triggerEvent(u)}),At({next:function(){s=!0},complete:function(){s=!0}}),$6(function(){var u;if(!s&&!l){var c="Navigation ID ".concat(o.id," is not equal to the current navigation id ").concat(n.navigationId);n.cancelNavigationTransition(o,c)}(null===(u=n.currentNavigation)||void 0===u?void 0:u.id)===o.id&&(n.currentNavigation=null)}),cl(function(u){if(l=!0,function H1e(i){return i&&i[Q6]}(u)){var c=df(u.url);c||(n.navigated=!0,n.restoreHistory(o,!0));var d=new q6(o.id,n.serializeUrl(o.extractedUrl),u.message);a.next(d),c?setTimeout(function(){var f=n.urlHandlingStrategy.merge(u.url,n.rawUrlTree),g={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||Uj(o.source)};n.scheduleNavigation(f,"imperative",null,g,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{n.restoreHistory(o,!0);var h=new O1e(o.id,n.serializeUrl(o.extractedUrl),u);a.next(h);try{o.resolve(n.errorHandler(u))}catch(f){o.reject(f)}}return po}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(n){var a="popstate"===n.type?"popstate":"hashchange";"popstate"===a&&setTimeout(function(){var o,s={replaceUrl:!0},l=(null===(o=n.state)||void 0===o?void 0:o.navigationId)?n.state:null;if(l){var u=Object.assign({},l);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(s.state=u)}var c=e.parseUrl(n.url);e.scheduleNavigation(c,a,l,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){wj(e),this.config=e.map(rI),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.relativeTo,o=n.queryParams,s=n.fragment,l=n.queryParamsHandling,u=n.preserveFragment,c=a||this.routerState.root,d=u?this.currentUrlTree.fragment:s,h=null;switch(l){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}return null!==h&&(h=this.removeEmptyProps(h)),fTe(c,this.currentUrlTree,e,h,null!=d?d:null)}},{key:"navigateByUrl",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=df(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,n)}},{key:"navigate",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return CAe(e),this.navigateByUrl(this.createUrlTree(e,n),n)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var n;try{n=this.urlSerializer.parse(e)}catch(a){n=this.malformedUriErrorHandler(a,this.urlSerializer,e)}return n}},{key:"isActive",value:function(e,n){var a;if(a=!0===n?Object.assign({},yAe):!1===n?Object.assign({},kAe):n,df(e))return ij(this.currentUrlTree,e,a);var o=this.parseUrl(e);return ij(this.currentUrlTree,o,a)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(n,a){var o=e[a];return null!=o&&(n[a]=o),n},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(n){e.navigated=!0,e.lastSuccessfulId=n.id,e.currentPageId=n.targetPageId,e.events.next(new wy(n.id,e.serializeUrl(n.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,n.resolve(!0)},function(n){e.console.warn("Unhandled Navigation Error: ".concat(n))})}},{key:"scheduleNavigation",value:function(e,n,a,o,s){var l,u,c,d,h;if(this.disposed)return Promise.resolve(!1);s?(c=s.resolve,d=s.reject,h=s.promise):h=new Promise(function(C,w){c=C,d=w});var g,f=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),g=a&&a.\u0275routerPageId?a.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):g=0,this.setTransition({id:f,targetPageId:g,source:n,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:c,reject:d,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(function(C){return Promise.reject(C)})}},{key:"setBrowserUrl",value:function(e,n){var a=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(a)||n.extras.replaceUrl?this.location.replaceState(a,"",o):this.location.go(a,"",o)}},{key:"restoreHistory",value:function(e){var a,o,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-e.targetPageId,l="popstate"===e.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);l&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,n){var a=new q6(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(a),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":n}:{navigationId:e}}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function CAe(i){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};p(this,r),this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return v(r,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(n){n instanceof jO?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=n.navigationTrigger,e.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof wy&&(e.lastId=n.id,e.scheduleScrollEvent(n,e.router.parseUrl(n.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(n){n instanceof Y6&&(n.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,n){this.router.triggerEvent(new Y6(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hf=new Dt("ROUTER_CONFIGURATION"),Wj=new Dt("ROUTER_FORROOT_GUARD"),wAe=[LR,{provide:sj,useClass:lj},{provide:Na,useFactory:function xAe(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=new Na(null,i,r,t,e,n,ej(a));return s&&(u.urlHandlingStrategy=s),l&&(u.routeReuseStrategy=l),MAe(o,u),o.enableTracing&&u.events.subscribe(function(c){var d,h;null===(d=console.group)||void 0===d||d.call(console,"Router Event: ".concat(c.constructor.name)),console.log(c.toString()),console.log(c),null===(h=console.groupEnd)||void 0===h||h.call(console)}),u},deps:[sj,Ry,LR,Jn,h4,sI,hf,[pAe,new md],[hAe,new md]]},Ry,{provide:Yp,useFactory:function RAe(i){return i.routerState.root},deps:[Na]},jj,Kj,SAe,{provide:hf,useValue:{enableTracing:!1}}];function DAe(){return new m4("Router",Na)}var $j=function(){var i=function(){function r(t,e){p(this,r)}return v(r,null,[{key:"forRoot",value:function(e,n){return{ngModule:r,providers:[wAe,qj(e),{provide:Wj,useFactory:AAe,deps:[[Na,new md,new F_]]},{provide:hf,useValue:n||{}},{provide:Bp,useFactory:TAe,deps:[Jh,[new IS(FR),new md],hf]},{provide:uI,useFactory:EAe,deps:[Na,nDe,hf]},{provide:Hj,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Kj},{provide:m4,multi:!0,useFactory:DAe},[cI,{provide:cw,multi:!0,useFactory:OAe,deps:[cI]},{provide:Xj,useFactory:IAe,deps:[cI]},{provide:d4,multi:!0,useExisting:Xj}]]}}},{key:"forChild",value:function(e){return{ngModule:r,providers:[qj(e)]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Wj,8),oe(Na,8))},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}();function EAe(i,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new uI(i,r,t)}function TAe(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new jSe(i,r):new L4(i,r)}function AAe(i){return"guarded"}function qj(i){return[{provide:Lge,multi:!0,useValue:i},{provide:sI,multi:!0,useValue:i}]}function MAe(i,r){i.errorHandler&&(r.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(r.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(r.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(r.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(r.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(r.canceledNavigationResolution=i.canceledNavigationResolution)}var cI=function(){var i=function(){function r(t){p(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ot}return v(r,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(zSe,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var a=null,o=new Promise(function(u){return a=u}),s=e.injector.get(Na),l=e.injector.get(hf);return"disabled"===l.initialNavigation?(s.setUpLocationChangeListener(),a(!0)):"enabled"===l.initialNavigation||"enabledBlocking"===l.initialNavigation?(s.hooks.afterPreactivation=function(){return e.initNavigation?lt(null):(e.initNavigation=!0,a(!0),e.resultOfPreactivationDone)},s.initialNavigation()):a(!0),o})}},{key:"bootstrapListener",value:function(e){var n=this.injector.get(hf),a=this.injector.get(jj),o=this.injector.get(uI),s=this.injector.get(Na),l=this.injector.get(dy);e===l.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void 0===n.initialNavigation)&&s.initialNavigation(),a.setUpPreloading(),o.init(),s.resetRootComponentType(l.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function OAe(i){return i.appInitializer.bind(i)}function IAe(i){return i.bootstrapListener.bind(i)}var Xj=new Dt("Router Initializer"),FAe=function(){return["./dashboard"]},LAe=function(){return["./issues"]},PAe=function(){return["./profile"]},BAe=function(){return["./signin"]};function VAe(i,r){if(1&i&&(A(0,"div",6)(1,"div",7)(2,"h1",8),te(3,"Issues"),x(),A(4,"p",9),te(5,"Sample Dashboard"),x(),z(6,"hr",10),A(7,"p",11),te(8,"Project"),x(),A(9,"ul",12)(10,"li",13)(11,"a",14),te(12,"Dashboard"),x()(),A(13,"li",15)(14,"a",14),te(15,"Issues"),x()()(),A(16,"p",11),te(17,"Account"),x(),A(18,"ul",12)(19,"li",16)(20,"a",14),te(21,"My Profile"),x()(),A(22,"li",17)(23,"a",14),te(24,"Sign Out"),x()()(),A(25,"p",18),te(26,"Resources"),x(),A(27,"ul",12)(28,"li",19)(29,"a",20),te(30,"Download on Github"),x()(),A(31,"li",21)(32,"a",22),te(33,"Documentation"),x()()()(),A(34,"div",23),z(35,"hr",24),A(36,"div",25)(37,"p"),te(38),z(39,"br"),A(40,"a",26),te(41,"Progress Software Corporation"),x(),te(42," and/or its subsidiaries or affiliates."),x(),A(43,"p"),te(44,"All Rights Reserved."),x()()()()),2&i){var t=D();y("@toggleNav",t.navState),k(11),y("routerLink",wt(6,FAe)),k(3),y("routerLink",wt(7,LAe)),k(6),y("routerLink",wt(8,PAe)),k(3),y("routerLink",wt(9,BAe)),k(15),Nt("Copyright \xa9 ",t.year,",")}}var GAe=function(){var i=function(){function r(t){p(this,r),this.router=t,this.year=(new Date).getFullYear(),this.navState=window.innerWidth<1200?"collapsed":"expanded"}return v(r,[{key:"id",get:function(){return"app"}},{key:"appClass",get:function(){return"app container-fluid"}},{key:"onResize",value:function(e){this.navState=e.target.innerWidth<1200?"collapsed":"expanded"}},{key:"showNav",value:function(){return"/signin"!==this.router.url}},{key:"toggleNav",value:function(){this.navState="expanded"===this.navState?"collapsed":"expanded"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-main-menu"]],hostVars:3,hostBindings:function(t,e){1&t&&Q("resize",function(a){return e.onResize(a)},!1,T3),2&t&&(ie("id",e.id),_r(e.appClass))},decls:7,vars:1,consts:[[1,"row"],["id","top-bar",1,"top-bar","sticky-top","bg-white","d-xl-none","k-shadow"],["id","nav-toggle",1,"nav-toggle","d-xl-none",3,"click"],[1,"k-icon","k-i-hamburger"],["id","nav","class","sticky-top py-3 py-sm-5 k-vbox shadow col-xl-2 d-xl-flex hide",4,"ngIf"],[1,"content-wrapper","col"],["id","nav",1,"sticky-top","py-3","py-sm-5","k-vbox","shadow","col-xl-2","d-xl-flex","hide"],[1,"container"],["id","app-title",1,"mb-0"],["id","app-subtitle",1,"h4","mb-4"],[1,"k-hr"],[1,"h4","mt-3","mt-sm-5"],[1,"nav","nav-pills","flex-column"],["id","dashbaord",1,"nav-item"],["routerLinkActive","active",1,"nav-link",3,"routerLink"],["id","issues",1,"nav-item"],["id","profile",1,"nav-item"],["id","signout",1,"nav-item"],[1,"h4","mt-5"],["id","source",1,"nav-item"],["href","https://github.com/telerik/kendo-angular/tree/master/examples/projects/integration-pwa-material","target","_blank","role","button",1,"nav-link"],["id","documentation",1,"nav-item"],["href","https://www.telerik.com/kendo-angular-ui/components","target","_blank","role","button",1,"nav-link"],[1,"container","mt-sm-auto"],[1,"k-flex","k-hr","k-hr-bottom"],["id","copy"],["href","http://www.progress.com"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"span",2),Q("click",function(){return e.toggleNav()}),z(3,"span",3),x()(),T(4,VAe,45,10,"div",4),A(5,"main",5),z(6,"router-outlet"),x()()),2&t&&(k(4),y("ngIf",e.showNav()))},directives:[qe,cD,zj,iI],encapsulation:2,data:{animation:[ef("toggleNav",[Cd("collapsed, void",Lt({transform:"translateX(-100%)"})),Cd("expanded",Lt({transform:"translateX(0)"})),iu("collapsed <=> expanded",[Ai(200),Ai(200)])])]}}),i}(),UAe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-maestro-app"]],decls:1,vars:0,template:function(t,e){1&t&&z(0,"app-main-menu")},directives:[GAe],encapsulation:2}),i}(),dD="https://api.github.com/repos/telerik/kendo-ui-core/issues",HAe=["6170ac11463601b547","224777b801f2e889077ca9"].join(""),Fy=new Gp({Authorization:"token ".concat(HAe)}),Jp=function(){var i=function(){function r(t){p(this,r),this.http=t}return v(r,[{key:"getGithubIssues",value:function(e){return FO(this.getIssuesUrls(e))}},{key:"getTotalIssuesCount",value:function(){return this.http.get("".concat(dD,"?since='").concat("2018-01-01T00:00:00","'"),{headers:Fy})}},{key:"getIssuesUrls",value:function(e){for(var n=e.pages,a=[],o=1;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{open:[],closed:[]},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{Enhancement:[],Others:[],"SEV: Low":[],"SEV: Medium":[],"SEV: High":[],Feature:[]},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{lowest:{close_rate:0,created_at:(new Date).toISOString()},highest:{close_rate:0,created_at:(new Date).toISOString()},average:0};p(this,i),this.active=r,this.open=t,this.closed=e,this.groupedIssues=n,this.issueTypes=a,this.typesDistribution=o,this.closeRate=s}),dI={"SEV: LOW":"#ff9800","SEV: MEDIUM":"#ff5d2a","SEV: HIGH":"#d50000",ENHANCEMENT:"#00c853",FEATURE:"#2e7d32",OTHER:"#1ca8dd","PASSED QA":"#57b45b",BUG:"#cf3257","NEEDS QA":"#bc007c",DOCUMENTATION:"#455a64",DEMO:"#673ab7",DELETED:"#f44336","IN PROGRESS":"#ffd600"},hD=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"process",value:function(e,n){var a=this.filterByMonth(r.mapIssues(e),n),o=this.groupIssues(a);return new Zj(a,o.open.length,o.closed.length,o,this.groupLabels(a),this.distribution(a),this.closeRate(o))}},{key:"flatten",value:function(e){return e.reduce(function(n,a){return n.concat(a)})}},{key:"aggregate",value:function(e,n){return e.reduce(function(a,o){return a[o[n]]=(a[o[n]]||0)+1,a},{})}},{key:"closeRate",value:function(e){var n=this.aggregate(e.closed.map(function(s){return{created_at:new Date(s.created_at).setHours(0,0,0,0)}}),"created_at"),a=this.aggregate(e.open.map(function(s){return{created_at:new Date(s.created_at).setHours(0,0,0,0)}}),"created_at"),o=Object.keys(n).map(function(s){var l=n[s]||0;return{created_at:s,close_rate:l/(l+(a[s]||0))}});return{lowest:o.reduce(function(s,l){return s.close_ratel.close_rate?s:l}),average:e.closed.length/(e.open.length+e.closed.length)}}},{key:"groupIssues",value:function(e){return e.reduce(function(n,a){return n[a.state].push(a),n},{open:[],closed:[]})}},{key:"groupLabels",value:function(e){var n=this.aggregate(this.flatten(e.map(function(d){return d.labels})),"name"),a=n["SEV: Low"]/e.length,o=n["SEV: Medium"]/e.length,s=n["SEV: High"]/e.length,l=n.Enhancement/e.length,u=n.Feature/e.length,c=1-a-o-s-l-u;return[{type:"SEV: LOW",value:parseFloat(a.toFixed(2))},{type:"SEV: MEDIUM",value:parseFloat(o.toFixed(2))},{type:"SEV: HIGH",value:parseFloat(s.toFixed(2))},{type:"ENHANCEMENT",value:parseFloat(l.toFixed(2))},{type:"FEATURE",value:parseFloat(u.toFixed(2))},{type:"OTHER",value:parseFloat(c.toFixed(2))}]}},{key:"distribution",value:function(e){var n=this;return e.map(function(a){return{created_at:new Date(a.created_at).setHours(0,0,0,0),label:n.cleanupLabels(a.labels)}}).reduce(function(a,o){return a[o.label].push({date:new Date(o.created_at),value:1}),a},{Others:[],Enhancement:[],"SEV: Low":[],"SEV: Medium":[],"SEV: High":[],Feature:[]})}},{key:"cleanupLabels",value:function(e){var n=e.filter(function(a){return"SEV: Low"===a.name||"SEV: High"===a.name||"Feature"===a.name||"Enhancement"===a.name||"SEV: Medium"===a.name}).map(function(a){return a.name});return 0===n.length?"Others":n[0]}},{key:"filterByMonth",value:function(e,n){var a=this;return e.filter(function(o){return new Date(o.created_at).getTime()>a.getMonthsRange(n).getTime()})}},{key:"filterByUsername",value:function(e,n){return this.process(e,12).active.filter(function(a){return a.assignee===n})}},{key:"getMonthsRange",value:function(e){var n=new Date;return n.setMonth(n.getMonth()-e),n}}],[{key:"mapIssues",value:function(e){return e.reduce(function(n,a){return[].concat(Ae(n),Ae(a))},[]).filter(function(n){return!n.pull_request}).map(r.mapIssue)}},{key:"mapIssue",value:function(e){return{id:e.number,title:e.title,body:e.body,author:r.mapUser(e.user),assignees:e.assignees?e.assignees.map(r.mapUser):[],state:e.state,date:new Date(e.created_at),dateClosed:e.closed_at?new Date(e.closed_at):void 0,count:1,labels:e.labels.map(r.mapLabels),milestone:e.milestone,created_at:e.created_at,assignee:e.assignee?e.assignee.login:"none"}}},{key:"mapLabels",value:function(e){var n=e.name.toUpperCase();return e.color=n in dI?dI[n]:dI.OTHER,e}},{key:"mapUser",value:function(e){return{id:e.id,name:e.login,avatarUrl:e.avatar_url,avatarUrlThumb:e.avatar_url+"&size=60"}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),eg=(od(386),function(r,t){return function(e){return t(r(e))}}),dl=function(r,t,e){return r.addEventListener&&r.addEventListener(t,e)},qa=function(r,t,e){return r&&r.removeEventListener&&r.removeEventListener(t,e)},tg=function(){},hI=function(r){return r.preventDefault()},KAe=/touch/;function ng(i){return i.type.match(KAe)?{pageX:i.changedTouches[0].pageX,pageY:i.changedTouches[0].pageY,clientX:i.changedTouches[0].clientX,clientY:i.changedTouches[0].clientY,type:i.type,originalEvent:i,isTouch:!0}:{pageX:i.pageX,pageY:i.pageY,clientX:i.clientX,clientY:i.clientY,offsetX:i.offsetX,offsetY:i.offsetY,type:i.type,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,altKey:i.altKey,originalEvent:i}}var WAe=function(){var i=function(){function r(t){var e=this,n=t.press,a=void 0===n?tg:n,o=t.drag,s=void 0===o?tg:o,l=t.release,u=void 0===l?tg:l,c=t.mouseOnly,d=void 0!==c&&c;p(this,r),this._pressHandler=eg(ng,a),this._dragHandler=eg(ng,s),this._releaseHandler=eg(ng,u),this._ignoreMouse=!1,this._mouseOnly=d,this._touchstart=function(h){1===h.touches.length&&e._pressHandler(h)},this._touchmove=function(h){1===h.touches.length&&e._dragHandler(h)},this._touchend=function(h){0===h.touches.length&&1===h.changedTouches.length&&(e._releaseHandler(h),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(h){var f=h.which;f&&f>1||e._ignoreMouse||(dl(e.document,"mousemove",e._mousemove),dl(e.document,"mouseup",e._mouseup),e._pressHandler(h))},this._mousemove=function(h){e._dragHandler(h)},this._mouseup=function(h){qa(e.document,"mousemove",e._mousemove),qa(e.document,"mouseup",e._mouseup),e._releaseHandler(h)},this._pointerdown=function(h){h.isPrimary&&0===h.button&&(dl(e.document,"pointermove",e._pointermove),dl(e.document,"pointerup",e._pointerup),dl(e.document,"pointercancel",e._pointerup),dl(e.document,"contextmenu",hI),e._pressHandler(h))},this._pointermove=function(h){h.isPrimary&&e._dragHandler(h)},this._pointerup=function(h){h.isPrimary&&(qa(e.document,"pointermove",e._pointermove),qa(e.document,"pointerup",e._pointerup),qa(e.document,"pointercancel",e._pointerup),qa(e.document,"contextmenu",hI),e._releaseHandler(h))}}return v(r,[{key:"document",get:function(){return this._element?this._element.ownerDocument:document}},{key:"bindTo",value:function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())}},{key:"_bindToCurrent",value:function(){var e=this._element;this._usePointers()?dl(e,"pointerdown",this._pointerdown):(dl(e,"mousedown",this._mousedown),this._mouseOnly||(dl(e,"touchstart",this._touchstart),dl(e,"touchmove",this._touchmove),dl(e,"touchend",this._touchend)))}},{key:"_unbindFromCurrent",value:function(){var e=this._element;if(this._usePointers())return qa(e,"pointerdown",this._pointerdown),qa(this.document,"pointermove",this._pointermove),qa(this.document,"pointerup",this._pointerup),qa(this.document,"contextmenu",hI),void qa(this.document,"pointercancel",this._pointerup);qa(e,"mousedown",this._mousedown),this._mouseOnly||(qa(e,"touchstart",this._touchstart),qa(e,"touchmove",this._touchmove),qa(e,"touchend",this._touchend))}},{key:"_usePointers",value:function(){return!this._mouseOnly&&r.supportPointerEvent()}},{key:"update",value:function(e){var n=e.press,o=e.drag,s=void 0===o?tg:o,l=e.release,u=void 0===l?tg:l,c=e.mouseOnly,d=void 0!==c&&c;this._pressHandler=eg(ng,void 0===n?tg:n),this._dragHandler=eg(ng,s),this._releaseHandler=eg(ng,u),this._mouseOnly=d}},{key:"destroy",value:function(){this._unbindFromCurrent(),this._element=null}}],[{key:"supportPointerEvent",value:function(){return"undefined"!=typeof window&&window.PointerEvent}}]),r}();return i.default=i,i}(),fI=WAe;function $Ae(i){return oi(function(r,t){var e=!1,n=null,a=null,o=!1,s=function(){if(null==a||a.unsubscribe(),a=null,e){e=!1;var c=n;n=null,t.next(c)}o&&t.complete()},l=function(){a=null,o&&t.complete()};r.subscribe(Wn(t,function(u){e=!0,n=u,a||Pi(i(u)).subscribe(a=Wn(t,s,l))},function(){o=!0,(!e||!a||a.closed)&&t.complete()}))})}function ff(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return $Ae(function(){return jw(i,r)})}var Ze=function(){return"undefined"!=typeof document},yn=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return!(void 0===t[r]||t[r].isFirstChange()&&e||t[r].previousValue===t[r].currentValue)},Ki=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.some(function(n){return yn(n,t,e)})},ut=function(r){return r&&r.observers.length>0},qn=function(){for(var r="",t=0;t<32;t++){var e=16*Math.random()|0;(8===t||12===t||16===t||20===t)&&(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16)}return r},$o=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.ngZone=e,this.enableDrag=!0,this.kendoPress=new O,this.kendoDrag=new O,this.kendoRelease=new O}return v(r,[{key:"ngOnInit",value:function(){this.toggleDraggable()}},{key:"ngOnChanges",value:function(e){yn("enableDrag",e)&&this.toggleDraggable()}},{key:"ngOnDestroy",value:function(){this.destroyDraggable()}},{key:"toggleDraggable",value:function(){var e=this;Ze()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new fI({drag:function(a){return e.kendoDrag.next(a)},press:function(a){return e.kendoPress.next(a)},release:function(a){return e.kendoRelease.next(a)}}),this.ngZone.runOutsideAngular(function(){return e.draggable.bindTo(e.element.nativeElement)})))}},{key:"destroyDraggable",value:function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoDraggable",""]],inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},features:[Ie]}),i}(),Ly=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),qi=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.ngZone=e,this.renderer=n,this.events={}}return v(r,[{key:"ngOnInit",value:function(){var e=this;if(this.element&&this.element.nativeElement){var n=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var a in n)n.hasOwnProperty(a)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,a,e.scope?n[a].bind(e.scope):n[a]))})}}},{key:"ngOnDestroy",value:function(){if(this.subscriptions){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:this.measure();this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0}},{key:"checkChanges",value:function(){!Ze()||0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))}},{key:"destroy",value:function(){this.resizeBatchService.cancel(this)}},{key:"checkSize",value:function(){if(this.parentElement){var t=this.measure(),e=t.width,n=t.height;if(e!==this.lastWidth||n!==this.lastHeight)return this.lastWidth=e,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}}},{key:"initSize",value:function(){var t=this.measure();this.lastWidth=t.width,this.lastHeight=t.height}},{key:"measure",value:function(){var t=0,e=0;return this.parentElement&&(e=this.parentElement.offsetHeight,t=this.parentElement.offsetWidth),{height:e,width:t}}}]),i}(),fD=function(r){var t=document.createElement("div");return t.style.cssText=r,t},pI="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",exe=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e)).element=n,o.ngZone=a,o}return v(t,[{key:"checkChanges",value:function(){2!==this.state?$(q(t.prototype),"checkChanges",this).call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)}},{key:"destroy",value:function(){if($(q(t.prototype),"destroy",this).call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var n=this.element.nativeElement;n.removeChild(this.expand),n.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}}},{key:"checkSize",value:function(){if($(q(t.prototype),"checkSize",this).call(this))return this.reset(),!0}},{key:"init",value:function(){var n=this.parentElement=this.element.nativeElement.parentElement;"static"===function(r,t){return getComputedStyle(r,null).getPropertyValue("position")}(n)&&(n.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()}},{key:"render",value:function(){var n=this.element.nativeElement;n.style.cssText=pI,n.setAttribute("dir","ltr"),this.expand=fD(pI),this.expandChild=fD("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),n.appendChild(this.expand),this.shrink=fD(pI);var a=fD("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(a),n.appendChild(this.shrink)}},{key:"reset",value:function(){var n=this.expandChild;n.style.width="100000px",n.style.height="100000px";var a=this.expand;a.scrollLeft=1e5,a.scrollTop=1e5;var o=this.shrink;o.scrollLeft=1e5,o.scrollTop=1e5}},{key:"subscribe",value:function(){var n=this;this.ngZone.runOutsideAngular(function(){n.subscription=xn(li(n.shrink,"scroll"),li(n.expand,"scroll")).subscribe(function(){n.checkSize()})})}}]),t}(eW),txe="undefined"!=typeof ResizeObserver,nW=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e)).element=n,o.ngZone=a,o}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null}},{key:"init",value:function(){var n=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(function(){n.resizeObserver=new ResizeObserver(function(){n.checkSize()}),n.resizeObserver.observe(n.parentElement)})}}],[{key:"supported",value:function(){return txe}}]),t}(eW),iW=function(){var i=function(){function r(t){p(this,r),this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return v(r,[{key:"schedule",value:function(e,n){var a=this;this.scheduled.push({instance:e,method:n}),this.subscription||this.ngZone.runOutsideAngular(function(){a.subscription=wi(a.resolvedPromise).subscribe(a.flush)})}},{key:"isScheduled",value:function(e){return Boolean(this.scheduled.find(function(n){return n.instance===e}))}},{key:"cancel",value:function(e){for(var n=this.scheduled,a=n.length,o=0;o2&&void 0!==arguments[2]&&arguments[2],o=this.key(e),s=n;if(!a){if(this.dictionary.hasOwnProperty(o))return;s=this.defaultValue(o,n)}this.dictionary[o]=s}},{key:"notifyChanges",value:function(){this.changes.next({rtl:this.rtl})}},{key:"key",value:function(e){return this.prefix+"."+e}},{key:"defaultValue",value:function(e,n){if(!this.messageService)return n;var a=this.messageService.get(e);return void 0===a?n:a}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Et),oe(rg,8),oe(Td,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),oW=["AgfZ","turOExC=","zNvUy3rPB24=","z3jVDxa=","ChvIBgLZAerHDgu=","zgf0yq==","DgLTzxn0yw1W","vM5SC2O=","rejpz2u=","DfvPvvq=","D01gsvi=","u0Xdu2y=","C2nYAxb0s2v5","Dg9mB2nHBgvtDhjPBMC=","r3bNtu8=","C2v0","ChjVzhvJDe5HBwu=","BgLJzw5ZAw5Nrg9JC1vYBa==","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","DMvYC2LVBG==","C1DHyu0=","ChjVzhvJDhm=","CNfLrgK=","uKP0uwG=","CgfYC2u=","y3DYvhq=","zxHWAxj5rgf0zq==","uMLXufK=","tM8GBgLJzw5ZzsbMB3vUzc4k","tNz1Awe=","z3jVDxbfBMq=","sK1Vvey=","zMLUza==","D2fYBG==","tfDRtxq=","CgfJA2fNzu5HBwu=","Dw5KzwzPBMvK","C3niBfO=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","ChjVzhvJDenVzgvZ","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","uhjVz3jLC3mG","tfLwDLa=","BgvUz3rO","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","uvPnu2m=","BMfTzq==","B2jQzwn0","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","zvn3tLG=","u2vLia==","s0PPBvO=","zxbwz0u=","zg9JC1vYBa==","z2v0","DhLWzq==","y29Kzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G"];!function(i,r){!function(n){for(;--n;)i.push(i.shift())}(++r)}(oW,391);var Se=function i(r,t){var e=oW[r-=0];void 0===i.IhMVZF&&(i.uAzrZg=function(o){for(var s=function(s){for(var h,f,u=String(s).replace(/=+$/,""),c="",d=0,g=0;f=u.charAt(g++);~f&&(h=d%4?64*h+f:f,d++%4)?c+=String.fromCharCode(255&h>>(-2*d&6)):0)f="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(f);return c}(o),l=[],u=0,c=s.length;u0&&(e.width-=function pxe(){if(!SI&&"undefined"!=typeof document){var i=document.createElement("div");i.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",i.innerHTML=" ",document.body.appendChild(i),SI=i.offsetWidth-i.scrollWidth,document.body.removeChild(i)}return SI}()),e}var hl=function(r){var t=r.getBoundingClientRect(),n=t.left,a=t.top;return!t.height&&!t.width&&(t=function(r){var t=r.style,e=t.display,n=t.left,a=t.position;r.style.display="",r.style.left="-10000px",r.style.position="absolute";var o=r.getBoundingClientRect();return r.style.display=e,r.style.left=n,r.style.position=a,o}(r)),{top:a,left:n,height:t.height,width:t.width}},wI=function(i,r){for(var t=[],e=i.parentNode;e&&(t.push(e),e!==r);)e=e.parentNode;return t};function mD(i){var r=pD(i),t=bI(i);return{x:t.pageXOffset||r.scrollLeft||0,y:t.pageYOffset||r.scrollTop||0}}var mW=function(i){return i===(i.ownerDocument||{}).body?mD(i):{x:i.scrollLeft,y:i.scrollTop}},DI=function(r){for(var t=r.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||pD(r)},Cxe=function(i,r){return i?mW(i):function kxe(i){var r=DI(i);return r?mW(r):{x:0,y:0}}(r)},Sxe=function(r,t){var e=bI(r),n=e.getComputedStyle(r),a=hl(r),o=t||DI(r),s=r.ownerDocument,u={top:0,left:0};if("fixed"!==n.position&&o!==s.body&&o!==s.documentElement){var c=e.getComputedStyle(o);(u=hl(o)).top+=parseInt(c.borderTopWidth,10),u.left+=parseInt(c.borderLeftWidth,10)}return{top:a.top-u.top,left:a.left-u.left,height:a.height,width:a.width}},EI=function(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,e=r?DI(r):null,n=Sxe(i,e),a=n.top,o=n.left,s=n.height,l=n.width,u=Cxe(e,i),c=u.x,d=u.y,h=i.ownerDocument,f=e===h.body||e===h.documentElement?1:t;return{top:a+d*f,left:o+c*f,height:s,width:l}};var yW=function(r,t,e){var n=0;return r+t>e&&(n=e-(r+t)),r<0&&(n=-r),n},kW=function(r){var t=r.offset,e=r.size,n=r.anchorSize,a=r.viewPortSize,o=r.anchorAlignPoint,s=r.elementAlignPoint,u=0,h=2*r.margin;if(s!==o&&"center"!==s&&"middle"!==s&&"center"!==o&&"middle"!==o){var f="top"===o||"left"===o;t<0&&f?t+(u=e+n+h)+e>a&&(u=0):t>=0&&!f&&(t+e>a&&(u+=-(n+e+h)),t+u<0&&(u=0))}return u},Dxe=function(i){for(var r=[],t=i.parentNode.firstElementChild;t;)t!==i&&r.push(t),t=t.nextElementSibling;return r};!function xxe(i){var r,t=!1}(function(i){if(!SW())return!1;var r=i?i.ownerDocument:document;if(!r||!r.body)return!1;var e=r.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='
child
'),r.body.appendChild(e);var n=10!==e.children[0].getBoundingClientRect().top;return r.body.removeChild(e),n});var SW=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},Jxe=["container"];function eMe(i,r){}var tMe=["*"],TI=function(r,t){return r||{height:0,left:t.left,top:t.top,width:0}},yD=function(){return"undefined"!=typeof window},rMe=/auto|scroll/,sMe=function(r){return function(r){return"".concat(r.style.overflow).concat(r.style.overflowX).concat(r.style.overflowY)}(r)||function(r){var t=window.getComputedStyle(r);return"".concat(t.overflow).concat(t.overflowX).concat(t.overflowY)}(r)},EW=1e3/60,cMe=function uMe(i){var r,t=!1;return function(){return t||(r=i.apply(void 0,arguments),t=!0),r}}(function(){if(!Ze()&&null!==document.body)return!1;var r=document.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='
child
'),document.body.appendChild(r);var t=10!==r.children[0].getBoundingClientRect().top;return document.body.removeChild(r),t}),zy=function(r,t){return r&&1!==t?{height:r.height/t,left:r.left/t,top:r.top/t,width:r.width/t}:r},TW=new Dt("Popup Document Scale"),hMe=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],og=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"addOffset",value:function(e,n){return{left:e.left+n.left,top:e.top+n.top}}},{key:"addScroll",value:function(e,n){return function vW(i,r){return{top:i.top+r.y,left:i.left+r.x,height:i.height,width:i.width}}(e,n)}},{key:"align",value:function(e){return function(r){var t=r.anchorRect,e=r.anchorAlign,n=r.elementRect,a=r.elementAlign,o=r.margin,s=void 0===o?{}:o,l=e.horizontal,u=e.vertical,c=a.horizontal,d=a.vertical,h=s.horizontal||0,f=s.vertical||0,g=t.top,_=t.left;return"bottom"===u&&(g+=t.height),("center"===u||"middle"===u)&&(g+=Math.round(t.height/2)),"bottom"===d&&(g-=n.height,f*=-1),("center"===d||"middle"===d)&&(g-=Math.round(n.height/2),f*=-1),"right"===l&&(_+=t.width),("center"===l||"middle"===l)&&(_+=Math.round(t.width/2)),"right"===c&&(_-=n.width,h*=-1),("center"===c||"middle"===c)&&(_-=Math.round(n.width/2),h*=-1),{top:g+f,left:_+h}}(e)}},{key:"boundingOffset",value:function(e){return function(r){if(!r.getBoundingClientRect){var t=gD(r);return{bottom:t.height,left:0,right:t.width,top:0}}var e=r.getBoundingClientRect();return{bottom:e.bottom,left:e.left,right:e.right,top:e.top}}(e)}},{key:"getFontStyles",value:function(e){var n=this.getWindow();if(!n||!e)return[];var a=n.getComputedStyle(e);return hMe.map(function(o){return{key:o,value:a[o]}})}},{key:"getWindow",value:function(){return yD()?window:null}},{key:"hasOffsetParent",value:function(e){return!!e&&!!this.nativeElement(e).offsetParent}},{key:"offset",value:function(e){return e?hl(e):null}},{key:"offsetAtPoint",value:function(e,n){if(!e)return null;var a=this.nativeElement(e),o=a.style,s=o.left,l=o.top,u=o.transition;a.style.transition="none",a.style.left="".concat(n.left,"px"),a.style.top="".concat(n.top,"px");var c=hl(a);return a.style.left=s,a.style.top=l,a.style.transition=u,c}},{key:"nativeElement",value:function(e){return e?e.nativeElement||e:null}},{key:"position",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e&&n?EI(e,this.nativeElement(n),a):null}},{key:"removeScroll",value:function(e,n){return function _W(i,r){return{top:i.top-r.y,left:i.left-r.x,height:i.height,width:i.width}}(e,n)}},{key:"restrictToView",value:function(e){return function(r){var t=r.anchorRect,e=r.anchorAlign,n=r.elementRect,a=r.elementAlign,o=r.collisions,s=r.viewPort,l=r.margin,u=void 0===l?{}:l,c=n.top,d=n.left,h=n.height,f=n.width,g=s.height,_=s.width,C=u.horizontal||0,w=u.vertical||0,E=0,M=0,R="fit"===o.vertical,N="fit"===o.horizontal,G="flip"===o.vertical,U="flip"===o.horizontal;R&&(M+=yW(c,h,g)),N&&(E+=yW(d,f,_)),G&&(M+=kW({margin:w,offset:c,size:h,anchorSize:t.height,viewPortSize:g,anchorAlignPoint:e.vertical,elementAlignPoint:a.vertical})),U&&(E+=kW({margin:C,offset:d,size:f,anchorSize:t.width,viewPortSize:_,anchorAlignPoint:e.horizontal,elementAlignPoint:a.horizontal}));var ee=G&&0!==M,ve=U&&0!==E,V=R&&0!==M,I=N&&0!==E;return{flipped:ve||ee,fitted:V||I,flip:{horizontal:ve,vertical:ee},fit:{horizontal:I,vertical:V},offset:{left:E,top:M}}}(e)}},{key:"scrollPosition",value:function(e){return mD(this.nativeElement(e))}},{key:"scrollableParents",value:function(e){return function(r){var t=[];if(!Ze()||!yD())return t;for(var e=r.parentElement;e;)(rMe.test(sMe(e))||e.hasAttribute("data-scrollable"))&&t.push(e),e=e.parentElement;return t.push(window),t}(e)}},{key:"stackingElementOffset",value:function(e){var n=this.getRelativeContextElement(e);return n?hl(n):null}},{key:"stackingElementScroll",value:function(e){var n=this.getRelativeContextElement(e);return n?{x:n.scrollLeft,y:n.scrollTop}:{x:0,y:0}}},{key:"getRelativeContextElement",value:function(e){if(!e||!cMe())return null;for(var n=this.nativeElement(e).parentElement;n;){if("none"!==window.getComputedStyle(n).transform)return n;n=n.parentElement}return null}},{key:"useRelativePosition",value:function(e){return!!this.getRelativeContextElement(e)}},{key:"windowViewPort",value:function(e){return gD(this.nativeElement(e))}},{key:"zIndex",value:function(e,n){return function(r,t){if(!r||!Ze()||!yD())return null;var e=function(i,r){for(var n,a,t=wI(i),e=r;e&&(n=Dxe(e),!(a=t.reduce(function(o,s){return o.concat(n.filter(function(l){return l===s}))},[])[0]));)e=e.parentElement;return a}(r,t);if(!e)return null;var n=[r].concat(wI(r,e)).reduce(function(a,o){var s=o.style.zIndex||window.getComputedStyle(o).zIndex,l=parseInt(s,10);return l>a?l:a},0);return n?n+1:null}(e,this.nativeElement(n))}},{key:"zoomLevel",value:function(){return Ze()&&yD()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}},{key:"isZoomed",value:function(){return this.zoomLevel()>1}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),AW=function(){var i=function(){function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;p(this,r),this._dom=t,this.scale=e}return v(r,[{key:"alignElement",value:function(e){var n=e.anchor,a=e.element,o=e.anchorAlign,s=e.elementAlign,l=e.margin,u=e.offset,d=this.scale||1,f="fixed"!==e.positionMode&&this._dom.hasOffsetParent(a)?this.relativeRect(n,a,u,d):this.absoluteRect(n,a,u,d),g=zy(this._dom.offset(a.nativeElement),d);return this._dom.align({anchorAlign:o,anchorRect:f,elementAlign:s,elementRect:g,margin:l})}},{key:"absoluteRect",value:function(e,n,a,o){var s=this.elementScrollPosition(e,n),l=TI(this._dom.offset(e),a),u=2*o,c=this._dom.stackingElementScroll(n);1!==o&&c&&(c.x/=u,c.y/=u);var d=this._dom.stackingElementOffset(n);return 1!==o&&d&&(d.left/=u,d.top/=u),this._dom.removeScroll(this._dom.addScroll(function(r,t){return t?{height:r.height,left:r.left-t.left,top:r.top-t.top,width:r.width}:r}(zy(l,o),d),c),s)}},{key:"elementScrollPosition",value:function(e,n){return e?{x:0,y:0}:this._dom.scrollPosition(n)}},{key:"relativeRect",value:function(e,n,a,o){var s=TI(this._dom.position(e,n,o),a);return zy(s,o)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(TW,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),xW=function(){var i=function(){function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;p(this,r),this._dom=t,this.scale=e}return v(r,[{key:"positionElement",value:function(e){var n=e.anchor,a=e.currentLocation,o=e.element,s=e.anchorAlign,l=e.elementAlign,u=e.collisions,c=e.margin,d=this._dom,h=this.scale||1,f=d.offsetAtPoint(o,a),g=zy(f,h),_=zy(d.offset(n),h),C=TI(_,a),w=e.viewPort||d.windowViewPort(o);w.width=w.width/h,w.height=w.height/h;var E=d.restrictToView({anchorAlign:s,anchorRect:C,collisions:u,elementAlign:l,elementRect:g,margin:c,viewPort:w}),M=d.addOffset(a,E.offset);return{flip:E.flip,flipped:E.flipped,offset:M}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(TW,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),MW=function(){var i=function(){function r(t,e){p(this,r),this._dom=t,this._zone=e}return v(r,[{key:"subscribe",value:function(e){var n=this;!Ze()||this._zone.runOutsideAngular(function(){n.subscription=li(n._dom.getWindow(),"resize").pipe(ff(EW)).subscribe(function(){return e()})})}},{key:"unsubscribe",value:function(){!this.subscription||this.subscription.unsubscribe()}},{key:"isUnsubscribed",value:function(){return this.subscription&&this.subscription.closed}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),RW=function(){var i=function(){function r(t,e){p(this,r),this._dom=t,this._zone=e}return v(r,[{key:"forElement",value:function(e){return this.unsubscribe(),this.element=e,this}},{key:"subscribe",value:function(e){var n=this;if(e&&Ze()&&this.element){var a=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(function(){var o=a.map(function(l){return li(l,"scroll").pipe(ff(EW))});n.subscription=xn.apply(void 0,Ae(o)).subscribe(function(u){var c=u.target,d=a.filter(function(g){return g===c}).length>0,h=c===document,f=c===window;(d||h||f)&&e(n.isVisible(n.element,c))})})}}},{key:"unsubscribe",value:function(){!this.subscription||this.subscription.unsubscribe()}},{key:"isVisible",value:function(e,n){var a=this._dom.boundingOffset(e),o=this._dom.boundingOffset(this._dom.nativeElement(n));return!(1=1||Math.abs(n-o)>=1}(this.currentOffset,o))&&(this.currentOffset=o,ut(this.positionChange)&&this._zone.run(function(){return e.positionChange.emit({offset:o,flip:a})})),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,a),this.resizeSensor.acceptSize()}}},{key:"position",value:function(){var e=this._alignService.alignElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})}},{key:"onScroll",value:function(e){var n=this,a=ut(this.anchorViewportLeave);e||!a?this.reposition():a&&this._zone.run(function(){n.anchorViewportLeave.emit()})}},{key:"copyFontStyles",value:function(){var e=this;!this.anchor||!this.copyAnchorStyles||this.domService.getFontStyles(this.domService.nativeElement(this.anchor)).forEach(function(n){return e.setContainerStyle(n.key,n.value)})}},{key:"updateFixedClass",value:function(){this._renderer["fixed"===this.positionMode?"addClass":"removeClass"](this.container.nativeElement,"k-animation-container-fixed")}},{key:"setContainerStyle",value:function(e,n){this._renderer.setStyle(this.container.nativeElement,e,n)}},{key:"unsubscribeReposition",value:function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(AW),m(og),m(xW),m(MW),m(RW),m(OW),m(Ee),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-popup"]],viewQuery:function(t,e){var n;1&t&&(ge(Jxe,7),ge(Vr,7)),2&t&&(P(n=B())&&(e.contentContainer=n.first),P(n=B())&&(e.resizeSensor=n.first))},inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",popupClass:"popupClass",positionMode:"positionMode",offset:"offset",margin:"margin"},outputs:{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},exportAs:["kendo-popup"],features:[de([AW,OW,og,xW,MW,RW]),Ie],ngContentSelectors:tMe,decls:5,vars:4,consts:[[1,"k-popup",3,"ngClass"],["container",""],[3,"ngTemplateOutlet","ngIf"],[3,"rateLimit","resize"]],template:function(t,e){1&t&&(kn(),A(0,"div",0,1),dn(2),T(3,eMe,0,0,"ng-template",2),A(4,"kendo-resize-sensor",3),Q("resize",function(){return e.onResize()}),x()()),2&t&&(y("ngClass",e.popupClass),k(3),y("ngTemplateOutlet",e.content)("ngIf",e.content),k(1),y("rateLimit",100))},directives:[Vr,Ft,En,qe],encapsulation:2}),i}(),_Me=function(r){r&&r.parentNode&&r.parentNode.removeChild(r)},xI=new Dt("Popup Container"),Cr=function(){var i=function(){function r(t,e,n,a){p(this,r),this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n,this.container=a}return v(r,[{key:"rootViewContainer",get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")}},{key:"rootViewContainerNode",get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.contentFrom(e.content),a=n.component,o=n.nodes,s=this.appendPopup(o,e.appendTo),l=s.instance;this.projectComponentInputs(s,e),s.changeDetectorRef.detectChanges(),a&&a.changeDetectorRef.detectChanges();var u=this.getComponentRootNode(s);return{close:function(){a&&a.destroy(),s.destroy(),_Me(u)},content:a,popup:s,popupAnchorViewportLeave:l.anchorViewportLeave,popupClose:l.close,popupElement:u,popupOpen:l.open,popupPositionChange:l.positionChange}}},{key:"appendPopup",value:function(e,n){var a=this.createComponent(NW,e,n);return n||this.rootViewContainerNode.appendChild(this.getComponentRootNode(a)),a}},{key:"getComponentRootNode",value:function(e){return e.location.nativeElement}},{key:"getComponentFactory",value:function(e){return this.componentFactoryResolver.resolveComponentFactory(e)}},{key:"createComponent",value:function(e,n,a){var o=this.getComponentFactory(e);if(a)return a.createComponent(o,void 0,this.injector,n);var s=o.create(this.injector,n);return this.applicationRef.attachView(s.hostView),s}},{key:"projectComponentInputs",value:function(e,n){return Object.getOwnPropertyNames(n).filter(function(a){return"content"!==a||n.content instanceof $e}).map(function(a){e.instance[a]=n[a]}),e}},{key:"contentFrom",value:function(e){if(!e||e instanceof $e)return{component:null,nodes:[[]]};var n=this.createComponent(e);return{component:n,nodes:[n?[n.location.nativeElement]:[]]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(dy),oe(Ts),oe(Jn),oe(xI,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Fa=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[Cr],imports:[[bt,yo]]}),i}(),yMe=[[["","kendoButton",""]]],kMe=["[kendoButton]"],xMe=["button"],MMe=["popupTemplate"],FW=["*"];function RMe(i,r){1&i&&z(0,"span",8),2&i&&y("ngClass",D().kendoIconClass)}function OMe(i,r){1&i&&z(0,"span",9),2&i&&y("ngClass",D().customIconClass)}function IMe(i,r){if(1&i&&(A(0,"span",10),z(1,"span",11),x()),2&i){var t=D();k(1),y("ngClass",t.chipAvatarClass)}}function NMe(i,r){if(1&i&&(A(0,"span",12),te(1),x()),2&i){var t=D();k(1),Nt(" ",t.label," ")}}function FMe(i,r){1&i&&dn(0,0,["*ngIf","!label"])}function LMe(i,r){if(1&i){var t=Me();A(0,"span",13),Q("click",function(a){return re(t),D().onRemoveClick(a)}),z(1,"span",14),x()}if(2&i){var e=D();k(1),y("ngClass",e.removeIconClass)}}var PMe=["kendoDialItem",""];function BMe(i,r){}var VMe=function(r,t,e){return{$implicit:r,index:t,isFocused:e}};function GMe(i,r){if(1&i&&T(0,BMe,0,0,"ng-template",1),2&i){var t=D();y("ngTemplateOutlet",t.dialItemTemplate)("ngTemplateOutletContext",va(2,VMe,t.item,t.index,t.isFocused))}}function UMe(i,r){if(1&i&&(A(0,"span",4),te(1),x()),2&i){var t=D(2);k(1),at(t.item.label)}}function zMe(i,r){1&i&&z(0,"span",5),2&i&&y("ngClass",D(2).iconClasses)}function HMe(i,r){if(1&i&&(Ve(0),T(1,UMe,2,1,"span",2),T(2,zMe,1,1,"span",3),Ge()),2&i){var t=D();k(1),y("ngIf",t.item.label),k(1),y("ngIf",t.item.icon||t.item.iconClass)}}var KMe=["kendoDialList",""];function jMe(i,r){if(1&i&&(Ve(0),z(1,"li",1),Ge()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),y("item",n.dialItems[e])("index",e)("dialItemTemplate",n.dialItemTemplate)("isFocused",n.isFocused(e))("ngClass",t.cssClass)("ngStyle",t.cssStyle)("align",n.align)}}function WMe(i,r){}function $Me(i,r){if(1&i&&T(0,WMe,0,0,"ng-template",4),2&i){var t=D();y("ngTemplateOutlet",null==t.fabTemplate?null:t.fabTemplate.templateRef)}}function qMe(i,r){1&i&&z(0,"span",7),2&i&&y("ngClass",D(2).iconClasses)}function XMe(i,r){if(1&i&&(A(0,"span",8),te(1),x()),2&i){var t=D(2);k(1),at(t.text)}}function ZMe(i,r){if(1&i&&(Ve(0),T(1,qMe,1,1,"span",5),T(2,XMe,2,1,"span",6),Ge()),2&i){var t=D();k(1),y("ngIf",t.icon||t.iconClass),k(1),y("ngIf",t.text)}}function YMe(i,r){if(1&i){var t=Me();A(0,"ul",9),Q("click",function(a){return re(t),D().onItemClick(a)}),x()}if(2&i){var e=D();y("ngClass",e.dialClass)("dialItems",e.dialItems)("dialItemTemplate",null==e.dialItemTemplate?null:e.dialItemTemplate.templateRef)("align",e.align),ie("aria-labelledby",e.id)}}var QMe=function(r,t){return{keydown:r,click:t}},ug={name:"@progress/kendo-angular-buttons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440722,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Xa=(Promise.resolve(null),function(r){return null!=r});function eRe(i){return 9===i.nodeType}function CD(i,r){if(i.closest)return i.closest(r);for(var t=Element.prototype.matches?function(n,a){return n.matches(a)}:function(n,a){return n.msMatchesSelector(a)},e=i;e&&!eRe(e);){if(t(e,r))return e;e=e.parentNode}}var MI={small:"sm",medium:"md",large:"lg"},LW={small:"sm",medium:"md",large:"lg",full:"full"},RI=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(MI[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(MI[n]):""};case"rounded":return{toRemove:"k-rounded-".concat(LW[e]),toAdd:"none"!==n?"k-rounded-".concat(LW[n]):""};case"fillMode":return{toRemove:"k-".concat(r,"-").concat(e),toAdd:"none"!==n?"k-".concat(r,"-").concat(n):""}}},PW=function(r,t,e,n,a){return{toRemove:"k-".concat(r,"-").concat(t,"-").concat(n),toAdd:"none"!==a?"k-".concat(r,"-").concat(e,"-").concat(a):""}},OI=function(){var i=function(){function r(){p(this,r),this.buttonClicked=new Ot,this.buttonClicked$=this.buttonClicked.asObservable()}return v(r,[{key:"click",value:function(e){this.buttonClicked.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),La=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.service=n,this.ngZone=o,this.toggleable=!1,this.role="button",this.selectedChange=new O,this.click=new O,this.isDisabled=!1,this.isIcon=!1,this.isIconClass=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this._focused=!1,this.subs=new Je,jt(ug),this.direction=a.rtl?"rtl":"ltr",this.subs.add(a.changes.subscribe(function(l){return s.direction=l.rtl?"rtl":"ltr"})),this.element=t.nativeElement,this.renderer=e}return v(r,[{key:"togglable",get:function(){return this.toggleable},set:function(e){this.toggleable=e}},{key:"selected",get:function(){return this._selected||!1},set:function(e){this._selected=e}},{key:"tabIndex",get:function(){return this.element.tabIndex},set:function(e){this.element.tabIndex=e}},{key:"icon",set:function(e){var n=this;e?this.iconSetter(e,function(){n.isIcon=!0,n.addIcon("k-button-icon k-icon k-i-"+e)}):(this.isIcon=!1,this.updateIconNode())}},{key:"iconClass",set:function(e){var n=this;e?this.iconSetter(e,function(){n.isIconClass=!0,n.addIcon("k-button-icon "+e)}):(this.isIconClass=!1,this.updateIconNode())}},{key:"imageUrl",set:function(e){e?this.iconSetter(e,this.addImgIcon.bind(this)):this.removeImageNode()}},{key:"disabled",get:function(){return this.isDisabled},set:function(e){e&&Ze()&&function(r){var t=kI(r),e=yI(r);return t&&t.mozilla||e&&"firefox"===e.browser}(navigator.userAgent)&&this.blur(),this.isDisabled=e,this.renderer.setProperty(this.element,"disabled",e)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){var n=e||"base";this.handleThemeColor(n),this._themeColor=n}},{key:"isFocused",get:function(){return this._focused},set:function(e){this.toggleClass("k-focus",e),this._focused=e}},{key:"classButton",get:function(){return!0}},{key:"isToggleable",get:function(){return this.toggleable}},{key:"roleSetter",get:function(){return this.role}},{key:"classDisabled",get:function(){return this.isDisabled}},{key:"classActive",get:function(){return this.selected}},{key:"getDirection",get:function(){return this.direction}},{key:"onFocus",value:function(){this.isFocused=!0}},{key:"onBlur",value:function(){this.isFocused=!1}},{key:"primary",set:function(e){this.themeColor=e?"primary":"base"}},{key:"look",set:function(e){this.fillMode="default"===e?"solid":e}},{key:"ngOnInit",value:function(){var e=this,n="SPAN"===this.element.tagName;this.addTextSpan(),!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaPressed(this.toggleable),this.role&&this.setAttribute("role",this.role),this.ngZone.runOutsideAngular(function(){e.subs.add(e.renderer.listen(e.element,"click",e._onButtonClick.bind(e))),e.subs.add(e.renderer.listen(e.element,"keydown",function(a){n&&(a.keyCode===J.Space||a.keyCode===J.Enter)&&(e.click.emit(a),e._onButtonClick())}))})}},{key:"ngOnChanges",value:function(e){(yn("togglable",e)||yn("toggleable",e))&&this.toggleAriaPressed(this.toggleable)}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","fillMode"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngAfterViewChecked",value:function(){this.setIconTextClasses()}},{key:"ngOnDestroy",value:function(){this.imageNode=null,this.iconNode=null,this.iconSpanNode=null,this.renderer=null,this.subs.unsubscribe(),clearTimeout(this.deferTimeout)}},{key:"focus",value:function(){Ze()&&(this.element.focus(),this.isFocused=!0)}},{key:"blur",value:function(){Ze()&&(this.element.blur(),this.isFocused=!1)}},{key:"setAttribute",value:function(e,n){this.renderer.setAttribute(this.element,e,n)}},{key:"removeAttribute",value:function(e){this.renderer.removeAttribute(this.element,e)}},{key:"setSelected",value:function(e){var n=this,a=this.selected!==e;this.selected=e,this.setAttribute("aria-pressed",this.selected.toString()),this.toggleClass("k-selected",this.selected),a&&ut(this.selectedChange)&&this.ngZone.run(function(){n.selectedChange.emit(e)})}},{key:"toggleAriaPressed",value:function(e){!Ze()||(e?this.setAttribute("aria-pressed",this.selected.toString()):this.removeAttribute("aria-pressed"))}},{key:"hasText",value:function(){return Ze()&&this.element.textContent.trim().length>0}},{key:"addImgIcon",value:function(e){var n=this.renderer;this.iconSpanNode||(this.iconSpanNode=n.createElement("span"),n.setProperty(this.iconSpanNode,"className","k-button-icon k-icon")),this.imageNode?n.setProperty(this.imageNode,"src",e):Ze()&&(this.imageNode=n.createElement("img"),n.setProperty(this.imageNode,"src",e),n.setProperty(this.imageNode,"className","k-image"),n.setAttribute(this.imageNode,"role","presentation")),this.iconSpanNode.appendChild(this.imageNode),this.prependChild(this.iconSpanNode)}},{key:"addIcon",value:function(e){var n=this.renderer;this.iconNode?n.setProperty(this.iconNode,"className",e):Ze()&&(this.iconNode=n.createElement("span"),n.setProperty(this.iconNode,"className",e),n.setAttribute(this.iconNode,"role","presentation"),this.prependChild(this.iconNode))}},{key:"addTextSpan",value:function(){var e=this;if(Ze()&&this.hasText()){var n=this.renderer.createElement("span");this.renderer.addClass(n,"k-button-text"),Array.from(this.element.childNodes).forEach(function(o){return e.renderer.appendChild(n,o)}),this.renderer.appendChild(this.element,n)}}},{key:"prependChild",value:function(e){var n=this;this.defer(function(){n.renderer&&e!==n.element.firstChild&&n.renderer.insertBefore(n.element,e,n.element.firstChild)})}},{key:"defer",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.deferTimeout=setTimeout(e,0)})}},{key:"iconSetter",value:function(e,n){e&&n(e),this.setIconTextClasses()}},{key:"removeImageNode",value:function(){this.imageNode&&this.renderer.parentNode(this.imageNode)&&(this.renderer.removeChild(this.element,this.imageNode),this.renderer.removeChild(this.element,this.iconSpanNode),this.imageNode=null,this.iconSpanNode=null)}},{key:"removeIconNode",value:function(){this.iconNode&&this.renderer.parentNode(this.iconNode)&&(this.renderer.removeChild(this.element,this.iconNode),this.iconNode=null),this.iconSpanNode&&(this.renderer.removeChild(this.element,this.iconSpanNode),this.iconSpanNode=null)}},{key:"updateIconNode",value:function(){!this.isIcon&&!this.isIconClass&&this.removeIconNode()}},{key:"setIconTextClasses",value:function(){this.toggleClass("k-icon-button",(this.isIcon||this.isIconClass||this.imageNode)&&!this.hasText())}},{key:"toggleClass",value:function(e,n){n?this.renderer.addClass(this.element,e):this.renderer.removeClass(this.element,e)}},{key:"_onButtonClick",value:function(){var e=this;!this.disabled&&this.service&&this.ngZone.run(function(){e.service.click(e)}),this.togglable&&!this.service&&this.setSelected(!this.selected)}},{key:"handleClasses",value:function(e,n){var a=this.element,o=RI("button",n,this[n],e);"fillMode"===n&&this.handleThemeColor(this.themeColor,this[n],e),o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleThemeColor",value:function(e,n,a){var o=this.element,l=a||this.fillMode,u=PW("button",n||this.fillMode,l,this.themeColor,e);this.renderer.removeClass(o,u.toRemove),"none"!==l&&"none"!==a&&u.toAdd&&this.renderer.addClass(o,u.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(OI,8),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["button","kendoButton",""],["span","kendoButton",""]],hostVars:11,hostBindings:function(t,e){1&t&&Q("focus",function(){return e.onFocus()})("blur",function(){return e.onBlur()}),2&t&&(ie("role",e.roleSetter)("aria-disabled",e.classDisabled)("dir",e.getDirection),ue("k-button",e.classButton)("k-toggle-button",e.isToggleable)("k-disabled",e.classDisabled)("k-selected",e.classActive))},inputs:{toggleable:"toggleable",togglable:"togglable",selected:"selected",tabIndex:"tabIndex",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor",role:"role",primary:"primary",look:"look"},outputs:{selectedChange:"selectedChange",click:"click"},exportAs:["kendoButton"],features:[de([Y,{provide:Et,useValue:"kendo.button"}]),Ie]}),i}(),zW=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),vf="tabindex",HW=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.service=t,this.element=n,this.selection="multiple",this.navigate=new O,this._tabIndex=0,this.currentTabIndex=0,this.subs=new Je,jt(ug),this.subs.add(e.changes.subscribe(function(o){return a.direction=o.rtl?"rtl":"ltr"}))}return v(r,[{key:"tabIndex",get:function(){return this._tabIndex},set:function(e){this._tabIndex=e,this.currentTabIndex=e}},{key:"wrapperClass",get:function(){return!0}},{key:"disabledClass",get:function(){return this.disabled}},{key:"stretchedClass",get:function(){return!!this.width}},{key:"getRole",get:function(){return this.isSelectionSingle()?"radiogroup":"group"}},{key:"dir",get:function(){return this.direction}},{key:"ariaDisabled",get:function(){return this.disabled}},{key:"wrapperWidth",get:function(){return this.width}},{key:"wrapperTabIndex",get:function(){return this.disabled?void 0:this.currentTabIndex}},{key:"keydown",value:function(e){this.disabled||this.navigateFocus(e)}},{key:"onFocus",value:function(){this.currentTabIndex=-1;var e=this.buttons.toArray().findIndex(function(a){return-1!==a.element.tabIndex}),n=-1===e?0:e;this.focus(this.buttons.filter(function(a,o){return o===n}))}},{key:"focusout",value:function(e){e.relatedTarget&&e.relatedTarget.parentNode!==this.element.nativeElement&&(this.defocus(this.buttons.toArray()),this.currentTabIndex=this.tabIndex)}},{key:"ngOnInit",value:function(){var e=this;this.subs.add(this.service.buttonClicked$.subscribe(function(n){var a;e.isSelectionSingle()?(a=!0,e.deactivate(e.buttons.filter(function(o){return o!==n}))):(e.defocus(e.buttons.toArray()),a=!n.selected),n.togglable&&n.setSelected(a),n.setAttribute(vf,"0")}))}},{key:"ngOnChanges",value:function(e){var n=this;yn("disabled",e)&&this.buttons.forEach(function(a){Xa(n.disabled)&&(a.disabled=n.disabled)})}},{key:"ngAfterContentInit",value:function(){this.buttons.forEach(function(e){e.setAttribute(vf,e.selected?"0":"-1")})}},{key:"ngAfterViewChecked",value:function(){this.buttons.length&&(this.buttons.first.renderer.addClass(this.buttons.first.element,"k-group-start"),this.buttons.last.renderer.addClass(this.buttons.last.element,"k-group-end"))}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"navigateFocus",value:function(e){var n=this.buttons.toArray().findIndex(function(l){return-1!==l.element.tabIndex}),o=this.buttons.length-1,s=new zW;e.keyCode===J.ArrowRight&&n0&&(this.navigate.emit(s),s.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter(function(l,u){return u===n-1}))))}},{key:"deactivate",value:function(e){e.forEach(function(n){n.setSelected(!1),n.setAttribute(vf,"-1")})}},{key:"activate",value:function(e){e.forEach(function(n){n.setSelected(!0),n.setAttribute(vf,"0"),n.focus()})}},{key:"defocus",value:function(e){e.forEach(function(n){n.setAttribute(vf,"-1")})}},{key:"focus",value:function(e){e.forEach(function(n){n.setAttribute(vf,"0"),n.focus()})}},{key:"verifySettings",value:function(){if(xt()&&this.isSelectionSingle()&&this.buttons.filter(function(e){return e.selected}).length>1)throw new Error("Having multiple selected buttons with single selection mode is not supported")}},{key:"isSelectionSingle",value:function(){return"single"===this.selection}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(OI),m(Y),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-buttongroup"]],contentQueries:function(t,e,n){var a;1&t&&he(n,La,4),2&t&&P(a=B())&&(e.buttons=a)},hostVars:12,hostBindings:function(t,e){1&t&&Q("keydown",function(a){return e.keydown(a)})("focus",function(){return e.onFocus()})("focusout",function(a){return e.focusout(a)}),2&t&&(ie("role",e.getRole)("dir",e.dir)("aria-disabled",e.ariaDisabled)("tabindex",e.wrapperTabIndex),Qe("width",e.wrapperWidth),ue("k-button-group",e.wrapperClass)("k-disabled",e.disabledClass)("k-button-group-stretched",e.stretchedClass))},inputs:{disabled:"disabled",selection:"selection",width:"width",tabIndex:"tabIndex"},outputs:{navigate:"navigate"},exportAs:["kendoButtonGroup"],features:[de([OI,Y,{provide:Et,useValue:"kendo.buttongroup"}]),Ie],ngContentSelectors:kMe,decls:1,vars:0,template:function(t,e){1&t&&(kn(yMe),dn(0))},encapsulation:2}),i}(),bD=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),iRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,bD]]}),i}(),SD=function(){var i=function(){function r(){p(this,r),this.onFocus=new O}return v(r,[{key:"isFocused",value:function(e){return e===this.focused}},{key:"focus",value:function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))}},{key:"resetFocus",value:function(){this.focused=-1}},{key:"focused",get:function(){return this.focusedIndex},set:function(e){this.focusedIndex=e,this.onFocus.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),II=function(){var i=function(){function r(t,e,n){p(this,r),this.focusService=t,this.renderer=n,this.subs=new Je,this.element=e.nativeElement,this.subscribeEvents()}return v(r,[{key:"ngOnInit",value:function(){this.index===this.focusService.focused?this.renderer.addClass(this.element,"k-focus"):this.renderer.removeClass(this.element,"k-focus")}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"subscribeEvents",value:function(){var e=this;!Ze()||this.subs.add(this.focusService.onFocus.subscribe(function(n){e.index===n?(e.renderer.addClass(e.element,"k-focus"),e.element.focus()):e.renderer.removeClass(e.element,"k-focus")}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(SD),m(_e),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoButtonFocusable",""]],inputs:{index:"index"}}),i}(),jy=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),Wy=function(){return function(i){i[i.keydown=0]="keydown",i[i.keypress=1]="keypress",i[i.keyup=2]="keyup"}(Wy||(Wy={})),Wy}(),Gr=function(){return function(i){i[i.Undefined=0]="Undefined",i[i.Open=1]="Open",i[i.Close=2]="Close",i[i.Enter=3]="Enter",i[i.EnterPress=4]="EnterPress",i[i.EnterUp=5]="EnterUp",i[i.Tab=6]="Tab",i[i.Esc=7]="Esc",i[i.Navigate=8]="Navigate"}(Gr||(Gr={})),Gr}(),wD=new Dt("navigation.config"),jW=function(){var i=function(){function r(t){p(this,r),this.navigate=new O,this.open=new O,this.close=new O,this.enter=new O,this.enterpress=new O,this.enterup=new O,this.tab=new O,this.esc=new O,this.useLeftRightArrows=t.useLeftRightArrows}return v(r,[{key:"process",value:function(e){var o,n=e.keyCode,a=e.keyEvent,s=Gr.Undefined;return a===Wy.keypress?this.isEnter(n)&&(s=Gr.EnterPress):a===Wy.keyup?this.isEnter(n)&&(s=Gr.EnterUp):e.altKey&&n===J.ArrowDown?s=Gr.Open:e.altKey&&n===J.ArrowUp?s=Gr.Close:this.isEnter(n)?s=Gr.Enter:n===J.Escape?s=Gr.Esc:n===J.Tab?s=Gr.Tab:n===J.ArrowUp||this.useLeftRightArrows&&n===J.ArrowLeft?(o=this.next({current:e.current,start:e.flipNavigation?e.min:e.max,end:e.flipNavigation?e.max:e.min,step:e.flipNavigation?1:-1}),s=Gr.Navigate):n===J.ArrowDown||this.useLeftRightArrows&&n===J.ArrowRight?(o=this.next({current:e.current,start:e.flipNavigation?e.max:e.min,end:e.flipNavigation?e.min:e.max,step:e.flipNavigation?-1:1}),s=Gr.Navigate):n===J.Home?(o=e.min,s=Gr.Navigate):n===J.End&&(o=e.max,s=Gr.Navigate),s!==Gr.Undefined&&this[Gr[s].toLowerCase()].emit(o),s}},{key:"isEnter",value:function(e){return e===J.Enter||e===J.Space}},{key:"next",value:function(e){return Xa(e.current)?e.current!==e.end?e.current+e.step:e.end:e.start}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(wD))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),sRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,bD,jy],jy]}),i}(),uRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,jy,bD],jy]}),i}(),WW=function(){var i=function(){function r(t,e,n,a){p(this,r),this.element=t,this.renderer=e,this.ngZone=n,this.localizationService=a,this.selected=!1,this.removable=!1,this.disabled=!1,this.remove=new O,this.contentClick=new O,this.tabIndex=0,this.hostClass=!0,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this.focused=!1,this.subs=new Je,jt(ug),this.direction=a.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){Xa(e)&&(this._size=e),this.handleClasses(this._size,"size")}},{key:"rounded",get:function(){return this._rounded},set:function(e){Xa(e)&&(this._rounded=e),this.handleClasses(this._rounded,"rounded")}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){Xa(e)&&(this._fillMode=e),this.handleClasses(this._fillMode,"fillMode")}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){Xa(e)&&(this._themeColor=e),this.handleThemeColor(this._themeColor)}},{key:"ariaChecked",get:function(){return this.selected}},{key:"hasIconClass",get:function(){return!!(this.icon||this.iconClass||this.avatarClass)}},{key:"disabledClass",get:function(){return this.disabled}},{key:"selectedClass",get:function(){return this.selected}},{key:"focusedClass",get:function(){return this.focused}},{key:"ngOnInit",value:function(){var e=this;this.subs.add(this.localizationService.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"ngAfterViewInit",value:function(){var e=this,n=this.element.nativeElement;["size","rounded","fillMode"].forEach(function(o){e.handleClasses(e[o],o)}),this.attachElementEventHandlers(n)}},{key:"kendoIconClass",get:function(){return this.verifyIconSettings([this.iconClass,this.avatarClass]),"k-i-".concat(this.icon)}},{key:"customIconClass",get:function(){return this.verifyIconSettings([this.icon,this.avatarClass]),"".concat(this.iconClass)}},{key:"chipAvatarClass",get:function(){return this.verifyIconSettings([this.icon,this.iconClass]),"".concat(this.avatarClass)}},{key:"removeIconClass",get:function(){return this.removeIcon?"".concat(this.removeIcon):"k-i-close-circle"}},{key:"focus",value:function(){Ze()&&this.element.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.element.nativeElement.blur()}},{key:"onRemoveClick",value:function(e){this.removable&&this.remove.emit({sender:this,originalEvent:e})}},{key:"attachElementEventHandlers",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.subs.add(n.renderer.listen(e,"focus",function(){n.renderer.addClass(e,"k-focus")})),n.subs.add(n.renderer.listen(e,"blur",function(){n.renderer.removeClass(e,"k-focus")})),n.subs.add(n.renderer.listen(e,"click",function(a){CD(a.target,".k-chip-remove-action")||n.ngZone.run(function(){n.contentClick.emit({sender:n,originalEvent:a})})}))})}},{key:"verifyIconSettings",value:function(e){if(xt()&&e.filter(function(n){return null!=n}).length>0)throw this.renderer.removeClass(this.element.nativeElement,"k-chip-has-icon"),new Error("Invalid configuration: Having multiple icons is not supported. Only a single icon on a chip can be displayed.")}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=RI("chip",n,this[n],e);"fillMode"===n&&this.handleThemeColor(this.themeColor,this[n],e),o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleThemeColor",value:function(e,n,a){var o=this.element.nativeElement,l=a||this.fillMode,u=PW("chip",n||this.fillMode,l,this.themeColor,e);this.renderer.removeClass(o,u.toRemove),"none"!==l&&"none"!==a&&u.toAdd&&this.renderer.addClass(o,u.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(be),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-chip"]],hostVars:14,hostBindings:function(t,e){2&t&&(ie("tabindex",e.tabIndex)("aria-checked",e.ariaChecked)("aria-disabled",e.disabledClass)("dir",e.direction),ue("k-chip",e.hostClass)("k-chip-has-icon",e.hasIconClass)("k-disabled",e.disabledClass)("k-selected",e.selectedClass)("k-focus",e.focusedClass))},inputs:{label:"label",icon:"icon",iconClass:"iconClass",avatarClass:"avatarClass",selected:"selected",removable:"removable",removeIcon:"removeIcon",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor"},outputs:{remove:"remove",contentClick:"contentClick"},features:[de([Y,{provide:Et,useValue:"kendo.chip"}])],ngContentSelectors:FW,decls:8,vars:6,consts:[["class","k-chip-icon k-icon",3,"ngClass",4,"ngIf"],["class","k-chip-icon",3,"ngClass",4,"ngIf"],["class","k-chip-avatar k-avatar k-rounded-full",4,"ngIf"],[1,"k-chip-content"],["class","k-chip-label",4,"ngIf"],[4,"ngIf"],[1,"k-chip-actions"],["class","k-chip-action k-chip-remove-action",3,"click",4,"ngIf"],[1,"k-chip-icon","k-icon",3,"ngClass"],[1,"k-chip-icon",3,"ngClass"],[1,"k-chip-avatar","k-avatar","k-rounded-full"],[1,"k-avatar-image",3,"ngClass"],[1,"k-chip-label"],[1,"k-chip-action","k-chip-remove-action",3,"click"],[1,"k-icon",3,"ngClass"]],template:function(t,e){1&t&&(kn(),T(0,RMe,1,1,"span",0),T(1,OMe,1,1,"span",1),T(2,IMe,2,1,"span",2),A(3,"span",3),T(4,NMe,2,1,"span",4),T(5,FMe,1,0,"ng-content",5),x(),A(6,"span",6),T(7,LMe,2,1,"span",7),x()),2&t&&(y("ngIf",e.icon),k(1),y("ngIf",e.iconClass),k(1),y("ngIf",e.avatarClass),k(2),y("ngIf",e.label),k(1),y("ngIf",!e.label),k(2),y("ngIf",e.removable))},directives:[qe,Ft],encapsulation:2}),i}(),cRe=function(){var i=function(){function r(t,e,n){p(this,r),this.localizationService=t,this.renderer=e,this.element=n,this.hostClass=!0,this.selection="none",this.selectedChange=new O,this.remove=new O,this.role="listbox",this._size="medium",jt(ug),this.direction=t.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"single",get:function(){return"single"===this.selection}},{key:"multiple",get:function(){return"multiple"===this.selection}},{key:"onClick",value:function(e){var n=e.target,a=CD(n,".k-chip-remove-action"),o=CD(n,".k-chip"),s=this.chips.find(function(u){return o===u.element.nativeElement});a&&o&&this.remove.emit({sender:this,originalEvent:e,removedChip:s}),"none"!==this.selection&&o&&!a&&this.setSelection(s)}},{key:"ngOnInit",value:function(){var e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){var e=this;["size"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngAfterContentInit",value:function(){var e=this;this.chips.forEach(function(n){e.renderer.setAttribute(n.element.nativeElement,"role","option")})}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"selectedChips",value:function(){return this.chips.reduce(function(e,n,a){return n.selected?e.concat(a):e},[])}},{key:"setSelection",value:function(e){"single"===this.selection&&this.clearSelection(e),e.selected=!e.selected,this.selectedChange.emit(this.selectedChips())}},{key:"clearSelection",value:function(e){this.chips.forEach(function(n){e!==n&&(n.selected=!1)})}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=RI("chip-list",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-chiplist"],["kendo-chip-list"]],contentQueries:function(t,e,n){var a;1&t&&he(n,WW,4),2&t&&P(a=B())&&(e.chips=a)},hostVars:8,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(ie("dir",e.direction)("role",e.role),ue("k-chip-list",e.hostClass)("k-selection-single",e.single)("k-selection-multiple",e.multiple))},inputs:{selection:"selection",size:"size"},outputs:{selectedChange:"selectedChange",remove:"remove"},features:[de([Y,{provide:Et,useValue:"kendo.chiplist"}])],ngContentSelectors:FW,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),hRe=([].concat([WW,cRe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}());function fRe(i,r){var t={horizontal:r?"right":"left",vertical:"bottom"};return"end"===i.horizontal&&(t.horizontal=r?"left":"right"),"bottom"===i.vertical&&(t.vertical="top"),"bottom"===i.vertical&&"end"===i.horizontal&&(t.horizontal=r?"left":"right",t.vertical="top"),t}function vRe(i,r){var t={horizontal:r?"right":"left",vertical:"top"};return"end"===i.horizontal&&(t.horizontal=r?"left":"right"),"bottom"===i.vertical&&(t.vertical="bottom"),"bottom"===i.vertical&&"end"===i.horizontal&&(t.horizontal=r?"left":"right",t.vertical="bottom"),t}var $W=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDialItemTemplate",""]]}),i}(),qW=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoFloatingActionButtonTemplate",""]]}),i}(),XW=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.localisationService=n,this.hostClass=!0,this.role="menuitem"}return v(r,[{key:"disabledClass",get:function(){return this.item.disabled}},{key:"title",get:function(){return this.item.label||this.itemTitle}},{key:"indexAttr",get:function(){return this.index}},{key:"iconClasses",get:function(){var e=[];return this.item.iconClass&&e.push("".concat(this.item.iconClass)),this.item.icon&&e.push("k-fab-item-icon k-icon k-i-".concat(this.item.icon)),e}},{key:"itemTitle",get:function(){var e=this.item.icon,n=this.item.itemTitle;return e&&n?n:e}},{key:"ngAfterViewInit",value:function(){this.renderer.addClass(this.element.nativeElement,this.getTextDirectionClass(this.localisationService.rtl,this.align.horizontal))}},{key:"getTextDirectionClass",value:function(e,n){return{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[e?"rtl":"ltr"]["end"===n?"end":"start"]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoDialItem",""]],hostVars:9,hostBindings:function(t,e){2&t&&(ie("role",e.role)("aria-disabled",e.disabledClass)("title",e.title)("aria-label",e.title)("data-fab-item-index",e.indexAttr),ue("k-fab-item",e.hostClass)("k-disabled",e.disabledClass))},inputs:{cssClass:"cssClass",cssStyle:"cssStyle",isFocused:"isFocused",index:"index",item:"item",dialItemTemplate:"dialItemTemplate",align:"align"},attrs:PMe,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","k-fab-item-text",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"k-fab-item-text"],[3,"ngClass"]],template:function(t,e){1&t&&(T(0,GMe,1,6,null,0),T(1,HMe,3,2,"ng-container",0)),2&t&&(y("ngIf",e.dialItemTemplate),k(1),y("ngIf",!e.dialItemTemplate))},directives:[qe,En,Ft],encapsulation:2}),i}(),ZW=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.focusService=t,this.cdr=e,this.hostClass=!0,this.subscriptions=new Je,this.subscriptions.add(this.focusService.onFocus.subscribe(function(){return n.cdr.detectChanges()}))}return v(r,[{key:"bottomClass",get:function(){return"top"===this.align.vertical||"middle"===this.align.vertical}},{key:"topClass",get:function(){return"bottom"===this.align.vertical}},{key:"isFocused",value:function(e){return this.focusService.isFocused(e)}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(SD),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoDialList",""]],hostVars:6,hostBindings:function(t,e){2&t&&ue("k-fab-items",e.hostClass)("k-fab-items-bottom",e.bottomClass)("k-fab-items-top",e.topClass)},inputs:{dialItems:"dialItems",dialItemTemplate:"dialItemTemplate",align:"align"},attrs:KMe,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoButtonFocusable","","kendoDialItem","",3,"item","index","dialItemTemplate","isFocused","ngClass","ngStyle","align"]],template:function(t,e){1&t&&T(0,jMe,2,7,"ng-container",0),2&t&&y("ngForOf",e.dialItems)},directives:[XW,gn,II,Ft,Gi],encapsulation:2}),i}(),_Re={provide:wD,useValue:{useLeftRightArrows:!1}},YW={small:"k-fab-sm",medium:"k-fab-md",large:"k-fab-lg"},QW={small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"},JW="k-fab-solid",DD="16px",n7="primary",CRe=function(){var i=function(){function r(t,e,n,a,o,s,l,u){var c=this;p(this,r),this.renderer=t,this.element=e,this.focusService=n,this.navigationService=a,this.ngZone=o,this.popupService=s,this.builder=l,this.localizationService=u,this.positionMode="fixed",this.dialItemAnimation=!0,this.tabIndex=0,this.dialItems=[],this.onBlur=new O,this.onFocus=new O,this.dialItemClick=new O,this.open=new O,this.close=new O,this.id="k-".concat(qn()),this._themeColor=n7,this._size="medium",this._rounded="full",this._disabled=!1,this._align={horizontal:"end",vertical:"bottom"},this._offset={x:DD,y:DD},this.subscriptions=new Je,this.rtl=!1,this.animationEnd=new O,this.initialSetup=!0,jt(ug),this.subscribeNavigationEvents(),this.subscriptions.add(this.localizationService.changes.subscribe(function(d){c.rtl=d.rtl,c.direction=c.rtl?"rtl":"ltr"}))}return v(r,[{key:"fixedClass",get:function(){return"fixed"===this.positionMode}},{key:"absoluteClass",get:function(){return"absolute"===this.positionMode}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){var n=e||n7;this.handleClasses(n,"themeColor"),this._themeColor=n}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"full";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign(this._align,e)}},{key:"offset",get:function(){return this._offset},set:function(e){this._offset=Object.assign(this._offset,e),this.offsetStyles()}},{key:"componentTabIndex",get:function(){return this.disabled?-1:this.tabIndex}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","themeColor"].forEach(function(n){return e.handleClasses(e[n],n)}),this.renderer.addClass(this.element.nativeElement,this.alignClass()),this.offsetStyles(),this.initialSetup=!1}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"isOpen",get:function(){return Xa(this.popupRef)}},{key:"focus",value:function(){Ze()&&this.button.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.button.nativeElement.blur()}},{key:"toggleDial",value:function(e){var n=this;if(!this.disabled&&this.hasDialItems){var a=Xa(e)?e:!this.isOpen;this.disabled||a===this.isOpen||(a?setTimeout(function(){return n.openDial()}):this.closeDial())}}},{key:"role",get:function(){return this.dialItems&&this.dialItems.length?"menubutton":"button"}},{key:"ariaExpanded",get:function(){return Xa(this.isOpen)}},{key:"ariaHasPopup",get:function(){return Xa(this.isOpen)}},{key:"iconClasses",get:function(){var e=[];return this.iconClass&&e.push("".concat(this.iconClass)),this.icon&&e.push("k-fab-icon k-icon k-i-".concat(this.icon)),e}},{key:"clickHandler",value:function(){var e=this;this.disabled||!this.hasDialItems||this.ngZone.run(function(){e.toggleDialWithEvents(!e.isOpen)})}},{key:"keyDownHandler",value:function(e){this.keyHandler(e)}},{key:"keyHandler",value:function(e,n){if(!this.disabled){var s=this.navigationService.process({altKey:e.altKey,current:this.focusService.focused||0,keyCode:e.keyCode,keyEvent:n,max:this.dialItems?this.dialItems.length-1:0,min:0,flipNavigation:"bottom"===this.align.vertical});s!==Gr.Undefined&&s!==Gr.Tab&&e.preventDefault()}}},{key:"onItemClick",value:function(e){var n=CD(e.target,".k-fab-item");if(n){var a=n.getAttribute("data-fab-item-index");this.emitItemClick(a)}}},{key:"focusHandler",value:function(){this.disabled||this.onFocus.emit()}},{key:"blurHandler",value:function(){this.onBlur.emit(),this.toggleDialWithEvents(!1)}},{key:"handleClasses",value:function(e,n){if(Xa(this.button)&&(this[n]!==e||this.initialSetup)){var a=this.button.nativeElement,o={themeColor:"".concat(JW,"-").concat(this.themeColor),size:YW[this.size],rounded:QW[this.rounded]},s={themeColor:"none"!==e?"".concat(JW,"-").concat(e):"",size:YW[e],rounded:QW[e]};this.renderer.removeClass(a,o[n]),s[n]&&this.renderer.addClass(a,s[n])}}},{key:"onEnterPressed",value:function(){this.emitItemClick(this.focusService.focused)}},{key:"emitItemClick",value:function(e){var n=this.dialItems[e];n&&!n.disabled&&(this.dialItemClick.emit({item:n,index:e}),this.toggleDialWithEvents(!1))}},{key:"subscribeNavigationEvents",value:function(){this.subscriptions.add(this.navigationService.navigate.subscribe(this.onArrowKeyNavigate.bind(this))),this.subscriptions.add(this.navigationService.enter.subscribe(this.onNavigationEnterPress.bind(this))),this.subscriptions.add(xn(this.navigationService.close,this.navigationService.esc).subscribe(this.onNavigationClose.bind(this)))}},{key:"onArrowKeyNavigate",value:function(e){this.focusService.focus(e)}},{key:"onNavigationEnterPress",value:function(){var e=this;this.ngZone.run(function(){if(e.isOpen){var n=e.focusService.focused,a=e.dialItems[n];if(a&&a.disabled)return;if(Xa(n)&&-1!==n)return void e.onEnterPressed()}!e.isOpen&&Ze()&&(e.toggleDialWithEvents(!0),e.button.nativeElement.focus())})}},{key:"onNavigationClose",value:function(){var e=this;this.isOpen&&this.ngZone.run(function(){e.toggleDialWithEvents(!1),Ze()&&e.button.nativeElement.focus()})}},{key:"alignClass",value:function(){return"k-pos-".concat(this.align.vertical,"-").concat(this.align.horizontal)}},{key:"toggleDialWithEvents",value:function(e){if(e!==this.isOpen){var n=new zW;e?this.open.emit(n):this.close.emit(n),!n.isDefaultPrevented()&&(e?this.openDial():this.closeDial())}}},{key:"openPopup",value:function(){var e=this;if(!this.isOpen){var n=this.icon&&!this.text,a=this.rtl,o=this.align;this.popupRef=this.popupService.open({anchor:this.element.nativeElement,animate:!1,content:this.popupTemplate,anchorAlign:fRe(o,a),popupAlign:vRe(o,a),popupClass:"k-fab-popup k-popup-transparent"});var s=this.popupRef.popupElement;this.renderer.setStyle(s,"box-shadow","none"),n&&this.subscriptions.add(this.popupRef.popupOpen.subscribe(function(){return e.positionPopup()})),this.ngZone.runOutsideAngular(function(){e.popupMouseDownListener=e.renderer.listen(s,"mousedown",function(l){l.preventDefault()})}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.toggleDialWithEvents(!1)})}}},{key:"closePopup",value:function(){this.isOpen&&(this.popupMouseDownListener&&this.popupMouseDownListener(),this.popupRef.close(),this.popupRef=null)}},{key:"openDial",value:function(){this.openPopup(),this.focusService.focus(0),this.dialItemAnimation&&this.isValidAnimation()&&this.playAnimation(!0)}},{key:"closeDial",value:function(){var e=this;this.dialItemAnimation&&this.isValidAnimation()?(this.playAnimation(!1),this.animationEnd.pipe(It(1)).subscribe(function(){return e.closePopup()})):this.closePopup()}},{key:"isValidAnimation",value:function(){var e=this.dialItemAnimation;return"boolean"==typeof e||0!==e.duration}},{key:"positionPopup",value:function(){if(!this.dialItemTemplate){var n=this.element.nativeElement.getBoundingClientRect().width,a=this.popupRef.popupElement,o=a.querySelector(".k-fab-item-icon");if(o){var l=n/2-o.getBoundingClientRect().width/2,u=a.getBoundingClientRect().left,c="end"===this.align.horizontal;a.style.left="".concat(this.rtl?c?l+u:u-l:c?u-l:l+u,"px")}}}},{key:"offsetStyles",value:function(){var e=this.element.nativeElement;this.renderer.setStyle(e,this.horizontalPosition,this.horizontalOffset),this.renderer.setStyle(e,this.verticalPosition,this.verticalOffset)}},{key:"hasDialItems",get:function(){return Xa(this.dialItems)&&0!==this.dialItems.length}},{key:"verticalPosition",get:function(){return{top:"top",middle:"top",bottom:"bottom"}[this.align.vertical]}},{key:"verticalOffset",get:function(){return"middle"===this.align.vertical?this.offset.y===DD?"50%":"calc(50% + ".concat(this.offset.y,")"):this.offset.y}},{key:"horizontalPosition",get:function(){return{end:this.rtl?"left":"right",center:"left",start:this.rtl?"right":"left"}[this.align.horizontal]}},{key:"horizontalOffset",get:function(){return"center"===this.align.horizontal?this.offset.x===DD?"50%":"calc(50% + ".concat(this.offset.x,")"):this.offset.x}},{key:"playerFor",value:function(e,n){return this.builder.build(n).create(e)}},{key:"playAnimation",value:function(e){var n=this,a=this.durationSettings(),o={duration:a.duration,gap:a.gap,align:this.align},s=e?function pRe(i){var t=i.duration,e=i.gap;return Tw([MK(".k-fab-item",[Lt({opacity:0,transform:"translateY(".concat("bottom"===i.align.vertical?"8px":"-8px",")")}),RK(e,[Ai("".concat(t,"ms ease-in"),Lt({opacity:"*",transform:"translateY(0)"}))])],{optional:!0})])}(o):function gRe(i){var r="bottom"===i.align.vertical,t=i.duration,e=i.gap;return Tw([MK(".k-fab-item",[Lt({opacity:"*",transform:"translateY(0)"}),RK(-e,[Ai("".concat(t,"ms ease-in"),Lt({opacity:0,transform:"translateY(".concat(r?"8px":"-8px",")")}))])],{optional:!0})])}(o),l=this.playerFor(this.popupRef.popupElement,s);l.play(),l.onDone(function(){l&&(n.animationEnd.emit(),l.destroy(),l=null)})}},{key:"durationSettings",value:function(){return{duration:this.animationDuration(),gap:this.animationGap()}}},{key:"animationGap",value:function(){var e=this.dialItemAnimation;return"boolean"!=typeof e&&Xa(e.gap)?e.gap:90}},{key:"animationDuration",value:function(){var e=this.dialItemAnimation;return"boolean"!=typeof e&&Xa(e.duration)?e.duration:180}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(SD),m(jW),m(be),m(Cr),m(zp),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-floatingactionbutton"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,$W,5),he(n,qW,5)),2&t&&(P(a=B())&&(e.dialItemTemplate=a.first),P(a=B())&&(e.fabTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(xMe,7),ge(MMe,7)),2&t&&(P(n=B())&&(e.button=n.first),P(n=B())&&(e.popupTemplate=n.first))},hostVars:5,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-pos-fixed",e.fixedClass)("k-pos-absolute",e.absoluteClass))},inputs:{themeColor:"themeColor",size:"size",rounded:"rounded",disabled:"disabled",align:"align",offset:"offset",positionMode:"positionMode",icon:"icon",iconClass:"iconClass",buttonClass:"buttonClass",dialClass:"dialClass",text:"text",dialItemAnimation:"dialItemAnimation",tabIndex:"tabIndex",dialItems:"dialItems"},outputs:{onBlur:"blur",onFocus:"focus",dialItemClick:"dialItemClick",open:"open",close:"close"},features:[de([SD,jW,_Re,Y,{provide:Et,useValue:"kendo.floatingactionbutton"}])],decls:6,vars:17,consts:[["type","button",1,"k-fab","k-fab-solid",3,"tabIndex","ngClass","disabled","kendoEventsOutsideAngular","scope","focus","blur"],["button",""],[4,"ngIf"],["popupTemplate",""],[3,"ngTemplateOutlet"],[3,"ngClass",4,"ngIf"],["class","k-fab-text",4,"ngIf"],[3,"ngClass"],[1,"k-fab-text"],["kendoDialList","",3,"ngClass","dialItems","dialItemTemplate","align","click"]],template:function(t,e){1&t&&(A(0,"button",0,1),Q("focus",function(){return e.focusHandler()})("blur",function(){return e.blurHandler()}),T(2,$Me,1,1,null,2),T(3,ZMe,3,2,"ng-container",2),x(),T(4,YMe,1,5,"ng-template",null,3,$n)),2&t&&(ue("k-disabled",e.disabled),y("tabIndex",e.componentTabIndex)("ngClass",e.buttonClass)("disabled",e.disabled)("kendoEventsOutsideAngular",ln(14,QMe,e.keyDownHandler,e.clickHandler))("scope",e),ie("id",e.id)("role",e.role)("aria-disabled",e.disabled)("aria-expanded",e.ariaExpanded)("aria-haspopup",e.ariaHasPopup),k(2),y("ngIf",e.fabTemplate),k(1),y("ngIf",!e.fabTemplate))},directives:[ZW,Ft,qi,qe,En],encapsulation:2}),i}(),SRe=([].concat([CRe,$W,qW],[ZW,XW]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,jy,cr]]}),i}()),wRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[iRe,bD,sRe,uRe,hRe,SRe]}),i}(),NI=function(r,t,e){var n=function o(){e(),r.removeEventListener(t,o,!1)},a=function(){return r.addEventListener(t,n,!1)};return a(),{remove:a}},ARe=function(r){r.animated=!0,i7(r)},xRe=function(r){r.released=!0,i7(r)},i7=function(r){if(r.released&&r.animated){var t=r.blob,e=r.ripple,n=r.container;n&&NI(n,"blur",function(){return n.classList.remove("k-ripple-target")}),t&&(NI(t,"transitionend",function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),t.style.transition="opacity 200ms linear",t.style.opacity="0")}},RRe={name:"@progress/kendo-angular-ripple",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650441054,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},$y=function(){var i=function(){function r(t,e,n){p(this,r),this.renderer=t,this.element=e,this.ngZone=n,this.isDisabled=!1,this.removeListeners=function(){},jt(RRe)}return v(r,[{key:"disabled",set:function(e){this.isDisabled=e,this.isDisabled?this.removeListeners():this.registerListeners(),this.renderer.setProperty(this.element.nativeElement,"disabled",e)}},{key:"containerClass",get:function(){return!0}},{key:"ngOnDestroy",value:function(){this.removeListeners()}},{key:"ngAfterViewInit",value:function(){var e=this;this.isDisabled||this.ngZone.runOutsideAngular(function(){e.registerListeners()})}},{key:"registerListeners",value:function(){if(Ze()){this.removeListeners();var e=function(r,t){var o,n=(o=[{selector:".k-button:not(li)"},{selector:".k-list>.k-item",options:{global:!0}},{selector:".k-checkbox,.k-radio",options:{events:["focusin","animationend","click"]}}].map(function(a){var o={events:["mousedown","touchdown"],global:!1},l=a.options,u=void 0===l?o:l,c=function(r,t){return function(e){var o,n=e.target,a=n.document||n.ownerDocument;if(o=t.container?t.container(n):function(r,t){if(r.closest)return r.closest(t);for(var e=Element.prototype.matches?function(a,o){return a.matches(o)}:function(a,o){return a.msMatchesSelector(o)},n=r;n;){if(e(n,t))return n;n=n.parentElement}}(n,r),o&&(!/focus/i.test(e.type)||!o.classList.contains("k-ripple-target")))if(n.classList.contains("k-checkbox")||n.classList.contains("k-radio"))e.target.classList.remove("k-ripple-focus"),"animationend"!==e.type&&e.target.classList.add("k-ripple-focus");else{o.classList.add("k-ripple-target");var l=function(r){var t=r.createElement("div");t.className="k-ripple";var e=r.createElement("div");return e.className="k-ripple-blob",t.appendChild(e),[t,e]}(a),u=Bt(l,2),c=u[0],d=u[1],h={animated:!1,released:!1,blob:d,container:o,ripple:c};NI(e.currentTarget,{focusin:"focusout",keydown:"keyup",mousedown:"mouseup",pointerdown:"pointerup",touchdown:"touchup",animationstart:"animationend"}[e.type],function(){return xRe(h)}),o.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity");var g=o.getBoundingClientRect(),_=0,C=0;/mouse|pointer|touch/.test(e.type)?(_=e.clientX-g.left,C=e.clientY-g.top):(_=g.width/2,C=g.height/2);var M=_-(_t)throw new Error("The max value should be greater than the min.")}(n,a),e.value){(null==o||Number.isNaN(o))&&(this.value=n);var s=this.displayValue;this.displayValue=r7(this.min,this.max,o),this.previousValue=s}this.min=n,this.max=a,this.displayValue=r7(this.min,this.max,o)}}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["ng-component"]],hostVars:19,hostBindings:function(t,e){2&t&&(ie("dir",e.dirAttribute)("role",e.roleAttribute)("aria-valuemin",e.ariaMinAttribute)("aria-valuemax",e.ariaMaxAttribute)("aria-valuenow",e.ariaValueAttribute),ue("k-widget",e.widgetClasses)("k-progressbar",e.widgetClasses)("k-progressbar-horizontal",e.isHorizontal)("k-progressbar-vertical",e.isVertical)("k-state-disabled",e.disabledClass)("k-progressbar-reverse",e.reverseClass)("k-progressbar-indeterminate",e.indeterminateClass))},inputs:{max:"max",min:"min",value:"value",orientation:"orientation",disabled:"disabled",reverse:"reverse",indeterminate:"indeterminate"},features:[Ie],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),o7=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n)).localization=n,s.zone=a,s.renderer=o,s.label=!0,s.animation=!1,s.animationEnd=new O,s}return v(e,[{key:"showLabel",get:function(){return"boolean"==typeof this.label?this.label:(this.label&&!this.label.hasOwnProperty("visible")&&(this.label.visible=!0),this.label.visible)}},{key:"labelPosition",get:function(){return"boolean"==typeof this.label?"end":(this.label&&!this.label.hasOwnProperty("position")&&(this.label.position="end"),this.label.position)}},{key:"isPositionStart",get:function(){return"start"===this.labelPosition}},{key:"isPositionCenter",get:function(){return"center"===this.labelPosition}},{key:"isPositionEnd",get:function(){return"end"===this.labelPosition}},{key:"formattedLabelValue",get:function(){return function(r,t,e,n){var a=function(r){var t=r.toString().split(".");return 1===t.length?"".concat(t[0]):"".concat(t[0],".").concat(t[1].substr(0,3))}(r);if("boolean"!=typeof n){if("string"!=typeof n.format)return"function"==typeof n.format?n.format(r):a;switch(n.format){case"value":default:return a;case"percent":return"".concat(Math.floor(function(r,t,e){var n=Math.abs((e-t)/100);return Math.abs((r-t)/n)}(r,t,e)),"%")}}return a}(this.displayValue,this.min,this.max,this.label)}},{key:"ngOnChanges",value:function(a){$(q(e.prototype),"ngOnChanges",this).call(this,a),this.isAnimationInProgress&&function(r){var t=Boolean(r.animation);return t&&!(t&&r.animation.currentValue)}(a)&&(this.cancelCurrentAnimation=!0),function(r,t,e,n){return t&&"undefined"!=typeof requestAnimationFrame&&r.value&&e!==n}(a,this.animation,this.previousValue,this.displayValue)&&!a.value.firstChange&&this.startAnimation(this.previousValue)}},{key:"ngOnDestroy",value:function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame)}},{key:"startAnimation",value:function(a){var o=this;this.isAnimationInProgress=!0;var s=this.progressStatusElement.nativeElement,l=this.progressStatusWrapperElement.nativeElement,u=this.getAnimationOptions(a);this.zone.runOutsideAngular(function(){o.animationFrame&&cancelAnimationFrame(o.animationFrame),function d(){var h=(new Date).getTime()-u.startTime,f=Math.min(h/u.duration,1),g=u.startSize+u.deltaSize*f;if(o.renderValueChange(s,l,u.property,g,100/g*100),f<1){if(o.cancelCurrentAnimation)return void o.resetProgress(s,l,u.property);o.animationFrame=requestAnimationFrame(d)}else o.stopAnimation(a)}()})}},{key:"animationDuration",get:function(){return"boolean"==typeof this.animation?400:(this.animation&&!this.animation.hasOwnProperty("duration")&&(this.animation.duration=400),this.animation.duration)}},{key:"stopAnimation",value:function(a){var o=this;ut(this.animationEnd)&&this.zone.run(function(){o.animationEnd.emit({from:a,to:o.displayValue})}),this.zone.run(function(){o.isAnimationInProgress=!1})}},{key:"getAnimationOptions",value:function(a){var o="horizontal"===this.orientation,s=FI(this.min,this.max,a),l=o?100*s:100,u=o?100:100*s,c=o?"width":"height",d=(new Date).getTime(),f=o?this.statusWidth-l:this.statusHeight-u;return{property:c,startTime:d,startSize:o?l:u,deltaSize:f,duration:this.animationDuration*Math.abs(f/100)}}},{key:"renderValueChange",value:function(a,o,s,l,u){this.renderer.setStyle(a,s,l+"%"),this.renderer.setStyle(o,s,u+"%")}},{key:"resetProgress",value:function(a,o,s){var l=this,u=FI(this.min,this.max,this.value);this.renderValueChange(a,o,s,100*u,100/u),this.zone.run(function(){l.cancelCurrentAnimation=!1,l.isAnimationInProgress=!1})}}]),e}(a7);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-progressbar"]],viewQuery:function(t,e){var n;1&t&&(ge(IRe,5),ge(NRe,5)),2&t&&(P(n=B())&&(e.progressStatusElement=n.first),P(n=B())&&(e.progressStatusWrapperElement=n.first))},inputs:{label:"label",progressCssStyle:"progressCssStyle",progressCssClass:"progressCssClass",emptyCssStyle:"emptyCssStyle",emptyCssClass:"emptyCssClass",animation:"animation"},outputs:{animationEnd:"animationEnd"},exportAs:["kendoProgressBar"],features:[de([Y,{provide:Et,useValue:"kendo.progressbar"}]),j,Ie],decls:7,vars:28,consts:[[1,"k-progress-status-wrap",3,"ngStyle","ngClass"],["class","k-progress-status",4,"ngIf"],[1,"k-state-selected",3,"ngStyle","ngClass"],["progressStatus",""],[1,"k-progress-status-wrap"],["progressStatusWrap",""],[1,"k-progress-status"]],template:function(t,e){1&t&&(A(0,"span",0),T(1,FRe,2,1,"span",1),x(),A(2,"div",2,3)(4,"span",4,5),T(6,LRe,2,1,"span",1),x()()),2&t&&(ue("k-progress-start",e.isPositionStart)("k-progress-center",e.isPositionCenter)("k-progress-end",e.isPositionEnd),y("ngStyle",e.emptyCssStyle)("ngClass",e.emptyCssClass),k(1),y("ngIf",e.showLabel),k(1),Qe("width",e.statusWidth,"%")("height",e.statusHeight,"%"),ue("k-complete",e.isCompleted),y("ngStyle",e.progressCssStyle)("ngClass",e.progressCssClass),k(2),Qe("width",e.statusWrapperWidth,"%")("height",e.statusWrapperHeight,"%"),ue("k-progress-start",e.isPositionStart)("k-progress-center",e.isPositionCenter)("k-progress-end",e.isPositionEnd),k(2),y("ngIf",e.showLabel))},directives:[Gi,Ft,qe],encapsulation:2}),i}(),ZRe=[bt],YRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[ZRe]}),i}(),QRe=["header"],JRe=["contentWrapper"];function eOe(i,r){1&i&&z(0,"span",6),2&i&&y("ngClass",D().iconClasses)}function tOe(i,r){1&i&&z(0,"img",7),2&i&&y("src",D().imageUrl,uc)}function nOe(i,r){if(1&i&&(Ve(0),A(1,"span",8),te(2),x(),Ge()),2&i){var t=D();k(2),at(t.title)}}function iOe(i,r){}var rOe=function(r,t,e,n,a,o,s,l,u,c){return{title:r,id:t,icon:e,iconClass:n,imageUrl:a,selected:o,expanded:s,disabled:l,focused:u,content:c}},aOe=function(r){return{item:r}};function oOe(i,r){if(1&i&&T(0,iOe,0,0,"ng-template",9),2&i){var t=D();y("ngTemplateOutlet",t.titleTemplate)("ngTemplateOutletContext",ot(13,aOe,dR(2,rOe,[t.title,t.id,t.icon,t.iconClass,t.imageUrl,t.selected,t.expanded,t.disabled,t.focused,t.content])))}}var sOe=function(r,t){return{"k-i-arrow-chevron-up k-panelbar-collapse":r,"k-i-arrow-chevron-down k-panelbar-expand":t}};function lOe(i,r){if(1&i&&z(0,"span",10),2&i){var t=D();y("ngClass",ln(1,sOe,t.expanded,!t.expanded))}}function uOe(i,r){if(1&i&&(A(0,"div",14),dn(1),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight)}}function cOe(i,r){}var u7=function(r,t,e,n,a,o){return{title:r,id:t,icon:e,imageUrl:n,disabled:a,content:o}},PI=function(r){return{$implicit:r}};function dOe(i,r){if(1&i&&(A(0,"div",15),T(1,cOe,0,0,"ng-template",9),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngTemplateOutlet",t.contentTemplate.first.templateRef)("ngTemplateOutletContext",ot(13,PI,ay(6,u7,t.title,t.id,t.icon,t.imageUrl,t.disabled,t.content)))}}function hOe(i,r){if(1&i&&z(0,"kendo-panelbar-item",18),2&i){var t=D().$implicit,e=D(3);y("title",t.title)("id",t.id)("icon",t.icon)("iconClass",t.iconClass)("imageUrl",t.imageUrl)("selected",!!t.selected)("expanded",!!t.expanded)("disabled",!!t.disabled)("template",e.template)("items",t.children)("content",t.content)}}function fOe(i,r){if(1&i&&(Ve(0),T(1,hOe,1,11,"kendo-panelbar-item",17),Ge()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.hidden)}}function vOe(i,r){if(1&i&&(A(0,"div",14),T(1,fOe,2,1,"ng-container",16),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngForOf",t.items)}}function pOe(i,r){}function gOe(i,r){1&i&&te(0),2&i&&at(D(3).content)}function mOe(i,r){if(1&i&&(A(0,"div",15),T(1,pOe,0,0,"ng-template",9),T(2,gOe,1,1,"ng-template",19),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ot(14,PI,ay(7,u7,t.title,t.id,t.icon,t.imageUrl,t.disabled,t.content))),k(1),y("ngIf",!t.template)}}function _Oe(i,r){if(1&i&&(A(0,"div",null,11),T(2,uOe,2,4,"div",12),T(3,dOe,2,15,"div",13),T(4,vOe,2,5,"div",12),T(5,mOe,3,16,"div",13),x()),2&i){var t=D();y("@toggle",t.state),ie("role","group")("aria-hidden",!t.disabled&&!t.expanded),k(2),y("ngIf",t.hasChildItems&&!(null!=t.items&&t.items.length)),k(1),y("ngIf",t.hasContent&&!t.content),k(1),y("ngIf",t.hasItems),k(1),y("ngIf",t.content)}}var c7=[[["kendo-panelbar-item"]]],d7=["kendo-panelbar-item"];function yOe(i,r){1&i&&dn(0,0,["*ngIf","contentChildItems && !items"])}function kOe(i,r){if(1&i&&z(0,"kendo-panelbar-item",4),2&i){var t=D().$implicit,e=D(2);y("title",t.title)("id",t.id)("icon",t.icon)("iconClass",t.iconClass)("imageUrl",t.imageUrl)("selected",!!t.selected)("expanded",!!t.expanded)("disabled",!!t.disabled)("template",e.templateRef)("items",t.children)("content",t.content)}}function COe(i,r){if(1&i&&(Ve(0),T(1,kOe,1,11,"kendo-panelbar-item",3),Ge()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.hidden)}}function bOe(i,r){1&i&&T(0,COe,2,1,"ng-container",2),2&i&&y("ngForOf",D().items)}function SOe(i,r){1&i&&(Ve(0),dn(1),Ge())}function wOe(i,r){1&i&&z(0,"div",2)}var _a=["*"];function DOe(i,r){if(1&i&&z(0,"kendo-splitter-bar",2),2&i){var t=D().index,e=D();y("index",t)("orientation",e.orientation)}}function EOe(i,r){if(1&i&&(Ve(0),T(1,DOe,1,2,"kendo-splitter-bar",1),Ge()),2&i){var t=r.last;k(1),y("ngIf",!t)}}var TOe=[[["kendo-splitter-pane"]]],AOe=["kendo-splitter-pane"],xOe=["kendoTabStripScrollableButton",""],MOe=["kendoTabStripTab",""];function ROe(i,r){if(1&i&&(A(0,"span",2),te(1),x()),2&i){var t=D();k(1),at(t.tab.title)}}function OOe(i,r){}function IOe(i,r){if(1&i&&(A(0,"span",2),T(1,OOe,0,0,"ng-template",3),x()),2&i){var t=D();k(1),y("ngTemplateOutlet",null==t.tab.tabTitle?null:t.tab.tabTitle.templateRef)}}function NOe(i,r){if(1&i){var t=Me();A(0,"span",4),Q("click",function(){re(t);var a=D();return a.closeTab(a.index)}),z(1,"span",5),x()}if(2&i){var e=D();y("title",e.closeButtonTitle),ie("aria-label",e.closeButtonTitle),k(1),y("ngClass",e.closeButtonClasses)}}var FOe=["tablist"],LOe=["prevScrollButton"],POe=["nextScrollButton"],BOe=["tabHeaderContainer"];function VOe(i,r){1&i&&Wt(0)}function GOe(i,r){1&i&&Wt(0)}function UOe(i,r){if(1&i&&(Ve(0),T(1,VOe,1,0,"ng-container",5),T(2,GOe,1,0,"ng-container",5),Ge()),2&i){D();var t=Yt(4),e=Yt(6);k(1),y("ngTemplateOutlet",t),k(1),y("ngTemplateOutlet",e)}}function zOe(i,r){1&i&&Wt(0)}function HOe(i,r){1&i&&Wt(0)}function KOe(i,r){if(1&i&&(Ve(0),T(1,zOe,1,0,"ng-container",5),T(2,HOe,1,0,"ng-container",5),Ge()),2&i){D();var t=Yt(6),e=Yt(4);k(1),y("ngTemplateOutlet",t),k(1),y("ngTemplateOutlet",e)}}function jOe(i,r){if(1&i){var t=Me();A(0,"span",11,12),Q("tabScroll",function(a){return re(t),D(2).tabScroll.emit(a)})("onClick",function(a){return re(t),D(2).onScrollButtonClick(a)}),x()}if(2&i){var e=D(2);y("scrollable",e.scrollable)("tabPosition",e.tabPosition)("prev",!0)}}function WOe(i,r){if(1&i){var t=Me();Ve(0),A(1,"li",13,14),Q("tabClose",function(s){return re(t),D(2).tabClose.emit(s)})("click",function(s){var u=re(t).index;return D(2).onTabClick(s,u)}),x(),Ge()}if(2&i){var e=r.$implicit,n=r.index,a=D(2);k(1),y("ngClass",e.cssClass)("ngStyle",e.cssStyle)("tab",e)("index",n)("tabStripClosable",a.closable)("tabStripCloseIcon",a.closeIcon)("id","k-tabstrip-tab-"+n),ie("aria-controls","k-tabstrip-tabpanel-"+n)}}function $Oe(i,r){if(1&i){var t=Me();A(0,"span",11,15),Q("tabScroll",function(a){return re(t),D(2).tabScroll.emit(a)})("onClick",function(a){return re(t),D(2).onScrollButtonClick(a)}),x()}if(2&i){var e=D(2);y("scrollable",e.scrollable)("tabPosition",e.tabPosition)("prev",!1)}}function qOe(i,r){if(1&i&&(A(0,"div",6),T(1,jOe,2,3,"span",7),A(2,"ul",8,9),T(4,WOe,3,8,"ng-container",10),x(),T(5,$Oe,2,3,"span",7),x()),2&i){var t=D();y("ngClass",t.itemsWrapperClass),k(1),y("ngIf",t.hasScrollButtons),k(1),Qe("justify-content",t.tabsAlignmentStyles)("width",t.tabListWidth)("height",t.tabListHeight),k(2),y("ngForOf",t.tabs),k(1),y("ngIf",t.hasScrollButtons)}}function XOe(i,r){}function ZOe(i,r){if(1&i&&(A(0,"div",18),T(1,XOe,0,0,"ng-template",19),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D(2);y("@state",e.selected&&a.animate?"active":"inactive")("ngClass",!a.keepTabContent||e.selected?"k-content k-state-active":"k-content")("tabIndex",0)("id","k-tabstrip-tabpanel-"+n),ie("aria-hidden",!e.selected)("aria-expanded",e.selected)("aria-labelledby","k-tabstrip-tab-"+n)("aria-disabled",e.disabled),k(1),y("ngTemplateOutlet",null==e.tabContent?null:e.tabContent.templateRef)}}function YOe(i,r){if(1&i&&T(0,ZOe,2,9,"div",17),2&i){var t=r.$implicit,e=D(2);y("ngIf",t.selected||e.keepTabContent)}}function QOe(i,r){1&i&&T(0,YOe,1,1,"ng-template",16),2&i&&y("ngForOf",D().tabs)}function JOe(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().onResize()}),x()}}var eIe=["kendoDrawerItem",""];function tIe(i,r){}function nIe(i,r){if(1&i&&T(0,tIe,0,0,"ng-template",2),2&i){var t=D();y("ngTemplateOutlet",t.itemTemplate)("ngTemplateOutletContext",ot(2,PI,t.item))}}function iIe(i,r){if(1&i&&(Ve(0),z(1,"span",4),A(2,"span",5),te(3),x(),Ge()),2&i){var t=D(2);k(1),y("ngClass",t.iconClasses),k(2),at(t.item.text)}}function rIe(i,r){if(1&i&&(Ve(0),z(1,"span",4),Ge()),2&i){var t=D(2);k(1),y("ngClass",t.iconClasses)}}function aIe(i,r){if(1&i&&(T(0,iIe,4,2,"ng-container",3),T(1,rIe,2,1,"ng-container",3)),2&i){var t=D();y("ngIf",t.expanded),k(1),y("ngIf",t.mini&&!t.expanded)}}var oIe=["kendoDrawerList",""];function sIe(i,r){if(1&i&&z(0,"li",3),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("item",e)("index",n)("mini",a.mini)("expanded",a.expanded)("itemTemplate",a.itemTemplate)("ngClass",e.cssClass)("ngStyle",e.cssStyle),ie("data-kendo-drawer-index",n)}}function lIe(i,r){if(1&i&&(A(0,"li",4),te(1," \xa0 "),x()),2&i){var t=D().$implicit;y("ngClass",t.cssClass)("ngStyle",t.cssStyle)}}function uIe(i,r){if(1&i&&(Ve(0),T(1,sIe,1,8,"li",1),T(2,lIe,2,2,"li",2),Ge()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.separator),k(1),y("ngIf",t.separator)}}function cIe(i,r){}function dIe(i,r){if(1&i&&T(0,cIe,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",null==t.headerTemplate?null:t.headerTemplate.templateRef)}}function hIe(i,r){}function fIe(i,r){if(1&i&&T(0,hIe,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",null==t.footerTemplate?null:t.footerTemplate.templateRef)}}function vIe(i,r){if(1&i){var t=Me();Ve(0),T(1,dIe,1,1,null,2),A(2,"ul",3),Q("select",function(a){return re(t),D(2).onSelect(a)}),x(),T(3,fIe,1,1,null,2),Ge()}if(2&i){var e=D(2);k(1),y("ngIf",e.headerTemplate),k(1),y("items",e.items)("mini",e.mini)("expanded",e.expanded)("itemTemplate",null==e.itemTemplate?null:e.itemTemplate.templateRef),k(1),y("ngIf",e.footerTemplate)}}function pIe(i,r){}function gIe(i,r){if(1&i&&T(0,pIe,0,0,"ng-template",4),2&i){var t=D(2);y("ngTemplateOutlet",null==t.drawerTemplate?null:t.drawerTemplate.templateRef)}}function mIe(i,r){if(1&i&&(A(0,"div",1),T(1,vIe,4,6,"ng-container",2),T(2,gIe,1,1,null,2),x()),2&i){var t=D();Qe("width",t.drawerWidth,"px"),k(1),y("ngIf",!t.drawerTemplate),k(1),y("ngIf",t.drawerTemplate)}}function _Ie(i,r){if(1&i){var t=Me();A(0,"div",1),Q("click",function(){return re(t),D().closeDrawer()}),x()}}var yIe=["stepLink"],kIe=["kendoStepperStep",""];function CIe(i,r){}var BI=function(r,t){return{$implicit:r,index:t}};function bIe(i,r){if(1&i&&T(0,CIe,0,0,"ng-template",3),2&i){var t=D();y("ngTemplateOutlet",t.stepTemplate)("ngTemplateOutletContext",ln(2,BI,t.step,t.index))}}function SIe(i,r){}function wIe(i,r){if(1&i&&T(0,SIe,0,0,"ng-template",3),2&i){var t=D(3);y("ngTemplateOutlet",t.indicatorTemplate)("ngTemplateOutletContext",ln(2,BI,t.step,t.index))}}function DIe(i,r){1&i&&z(0,"span",9),2&i&&y("ngClass",D(4).indicatorIconClasses)}function EIe(i,r){if(1&i&&(A(0,"span",10),te(1),x()),2&i){var t=D(4);k(1),at(t.indicatorText)}}function TIe(i,r){if(1&i&&(Ve(0),T(1,DIe,1,1,"span",7),T(2,EIe,2,1,"span",8),Ge()),2&i){var t=D(3);k(1),y("ngIf",t.showIndicatorIcon),k(1),y("ngIf",!t.showIndicatorIcon)}}function AIe(i,r){if(1&i&&(A(0,"span",6),T(1,wIe,1,5,null,2),T(2,TIe,3,2,"ng-container",2),x()),2&i){var t=D(2);Qe("transition-duration",t.transitionDuration,"ms"),k(1),y("ngIf",t.indicatorTemplate),k(1),y("ngIf",!t.indicatorTemplate)}}function xIe(i,r){}function MIe(i,r){if(1&i&&T(0,xIe,0,0,"ng-template",3),2&i){var t=D(3);y("ngTemplateOutlet",t.labelTemplate)("ngTemplateOutletContext",ln(2,BI,t.step,t.index))}}function RIe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D(4);k(1),at(t.step.label)}}function OIe(i,r){1&i&&z(0,"span",16),2&i&&y("ngClass",D(4).validationIconClasses)}function IIe(i,r){if(1&i&&(A(0,"span",17),te(1),x()),2&i){var t=D(4);k(1),Nt("(",t.optionalText,")")}}function NIe(i,r){if(1&i&&(Ve(0),T(1,RIe,2,1,"span",12),T(2,OIe,1,1,"span",13),T(3,IIe,2,1,"span",14),Ge()),2&i){var t=D(3);k(1),y("ngIf",t.showLabelText),k(1),y("ngIf",t.showLabelIcon),k(1),y("ngIf",t.step.optional)}}function FIe(i,r){if(1&i&&(A(0,"span",11),T(1,MIe,1,5,null,2),T(2,NIe,4,3,"ng-container",2),x()),2&i){var t=D(2);k(1),y("ngIf",t.labelTemplate),k(1),y("ngIf",!t.labelTemplate)}}function LIe(i,r){if(1&i&&(Ve(0),T(1,AIe,3,4,"span",4),T(2,FIe,3,2,"span",5),Ge()),2&i){var t=D();k(1),y("ngIf",t.showIndicator),k(1),y("ngIf",t.showLabel)}}var PIe=["kendoStepperList",""];function BIe(i,r){if(1&i&&(Ve(0),z(1,"li",1),Ge()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),Qe("max-width",n.maxStepWidth,"%")("max-height",n.maxStepHeight,"%"),ue("k-step-first",0===e)("k-step-last",e===n.steps.length-1)("k-step-done",e0?this.titleTemplates.toArray()[0].templateRef:void 0}},{key:"headerHeight",value:function(){return this.element.nativeElement.offsetHeight-(this.contentWrapper?this.contentWrapper.nativeElement.offsetHeight:0)}},{key:"ngOnInit",value:function(){this.addLevelClass()}},{key:"ngAfterContentChecked",value:function(){var e=this;this.hasItems=this.items&&this.items.filter(function(n){return!n.hidden}).length>0,this.hasChildItems=this.contentItems.filter(function(n){return n!==e}).length>0||this.hasItems,this.hasContent=void 0!==this.contentTemplate&&this.contentTemplate.length>0||void 0!==this.content,this.validateConfiguration()}},{key:"ngAfterViewChecked",value:function(){var e=this;this.childrenItems=this.items?this.viewChildItems.toArray():this.contentItems.filter(function(n){return n!==e})}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"onItemAction",value:function(){this.disabled||this.eventService.onSelect(this)}},{key:"onItemClick",value:function(e){ED(e.target)||this.onItemAction()}},{key:"iconClasses",get:function(){return De({},(this.icon?"k-i-"+this.icon:null)||this.iconClass,!0)}},{key:"serialize",value:function(){return{content:this.content,disabled:this.disabled,expanded:this.expanded,focused:this.focused,icon:this.icon,iconClass:this.iconClass,id:this.id,imageUrl:this.imageUrl,selected:this.selected,title:this.title}}},{key:"subTreeViewItems",value:function(){var e=[];return this.viewChildItems.forEach(function(n){(e=e.concat(n.subTreeViewItems())).push(n)}),e}},{key:"validateConfiguration",value:function(){if(xt()&&this.content&&void 0!==this.contentTemplate&&this.contentTemplate.length>0)throw new Error("Invalid configuration: mixed template components and component property.")}},{key:"toggleAnimationState",value:function(e){!this.animate||(this.state=e&&this.eventService.expandMode!==vl.Single?"active":"activeWithoutAnimation")}},{key:"toggleExpandedChildAnimations",value:function(e){this.childrenItems&&this.childrenItems.forEach(function(n){n.expanded&&(n.toggleAnimationState(e),n.toggleExpandedChildAnimations(e))})}},{key:"addLevelClass",value:function(){this.level>=0&&this.renderer.addClass(this.element.nativeElement,"k-level-".concat(this.level))}},{key:"onWrapperFocusChange",value:function(e){this.wrapperFocused=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(i,13),m(GI),m(_e),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-panelbar-item"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,i,4),he(n,h7,4),he(n,f7,4)),2&t&&(P(a=B())&&(e.contentItems=a),P(a=B())&&(e.contentTemplate=a),P(a=B())&&(e.titleTemplates=a))},viewQuery:function(t,e){var n;1&t&&(ge(QRe,5),ge(JRe,5),ge(i,5)),2&t&&(P(n=B())&&(e.header=n.first),P(n=B())&&(e.contentWrapper=n.first),P(n=B())&&(e.viewChildItems=n))},hostVars:18,hostBindings:function(t,e){2&t&&(QM("id",e.itemId),ie("role",e.role)("title",e.titleAttribute)("aria-expanded",e.ariaExpanded)("aria-selected",e.ariaSelected)("aria-disabled",e.ariaDisabled),ue("k-item",e.kItemClass)("k-state-default",e.kStateDefaultClass)("k-state-disabled",e.kStateDisabledClass)("k-state-expanded",e.kStateExpandedClass)("k-panelbar-header",e.headerClass)("k-panelbar-item",e.childClass))},inputs:{title:"title",id:"id",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled",expanded:"expanded",selected:"selected",content:"content",items:"items",template:"template"},exportAs:["kendoPanelbarItem"],ngContentSelectors:d7,decls:8,vars:12,consts:[[3,"click"],["header",""],["class","k-icon k-panelbar-item-icon",3,"ngClass",4,"ngIf"],["class","k-image k-panelbar-item-icon","alt","",3,"src",4,"ngIf"],[4,"ngIf"],["class","k-icon k-panelbar-toggle",3,"ngClass",4,"ngIf"],[1,"k-icon","k-panelbar-item-icon",3,"ngClass"],["alt","",1,"k-image","k-panelbar-item-icon",3,"src"],[1,"k-panelbar-item-text"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-icon","k-panelbar-toggle",3,"ngClass"],["contentWrapper",""],["class","k-panel k-group k-panelbar-group",3,"overflow","height",4,"ngIf"],["class","k-content k-panelbar-content",3,"overflow","height",4,"ngIf"],[1,"k-panel","k-group","k-panelbar-group"],[1,"k-content","k-panelbar-content"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content"],[3,"ngIf"]],template:function(t,e){1&t&&(kn(c7),A(0,"span",0,1),Q("click",function(a){return e.onItemClick(a)}),T(2,eOe,1,1,"span",2),T(3,tOe,1,1,"img",3),T(4,nOe,3,1,"ng-container",4),T(5,oOe,1,15,null,4),T(6,lOe,1,4,"span",5),x(),T(7,_Oe,6,7,"div",4)),2&t&&(ue("k-link",!0)("k-state-selected",!e.disabled&&e.selected)("k-state-focused",e.focused&&e.wrapperFocused),k(2),y("ngIf",e.icon||e.iconClass),k(1),y("ngIf",e.imageUrl),k(1),y("ngIf",!e.titleTemplate),k(1),y("ngIf",e.titleTemplate),k(1),y("ngIf",e.hasChildItems||e.hasContent),k(1),y("ngIf",e.keepContent||!e.disabled&&e.expanded&&(e.hasChildItems||e.hasContent)))},directives:[i,qe,Ft,En,gn],encapsulation:2,data:{animation:[ef("toggle",[Cd("inactive",Lt({display:"none"})),iu("* => active",[Lt({overflow:"hidden",display:"block",height:0}),Ai(200,Lt({height:ul}))]),iu("active => *",[Lt({overflow:"hidden",height:ul}),Ai(200,Lt({height:0,display:"none"}))])])]}}),i}(),C7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoPanelBarItemTemplate",""]]}),i}(),UI=function(){function i(r){p(this,i),this.prevented=!1,Object.assign(this,r)}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),mNe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(UI),_Ne=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(UI),yNe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(UI),b7=v(function i(){p(this,i)}),kNe=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.localization=n,this.expandMode=vl.Default,this.selectable=!0,this.animate=!0,this.height="400px",this.stateChange=new O,this.select=new O,this.expand=new O,this.collapse=new O,this.tabIndex=0,this.role="tree",this.hostClass=!0,this.activeDescendant="",this.isViewInit=!0,this.focused=!1,this._keepItemContent=!1,this.updateChildrenHeight=function(){var o=0,s=a.elementRef.nativeElement.offsetHeight,l=a.expandMode===vl.Full?"auto":"visible";a.childrenItems.forEach(function(u){o+=u.headerHeight()}),a.childrenItems.forEach(function(u){u.contentHeight=vl.Full===a.expandMode?s-o+"px":"auto",u.contentOverflow=l})},jt(fl),this.keyBindings=this.computedKeys,this.elementRef=t,this.eventService=e,this.eventService.children$.subscribe(function(o){return a.onItemAction(o)})}return v(r,[{key:"keepItemContent",get:function(){return this._keepItemContent},set:function(e){this._keepItemContent=e,this.eventService.onKeepContent(e)}},{key:"items",get:function(){return this._items},set:function(e){e&&(this._items=sNe(e))}},{key:"hostHeight",get:function(){return this.expandMode===vl.Full?this.height:"auto"}},{key:"overflow",get:function(){return this.expandMode===vl.Full?"hidden":"visible"}},{key:"dir",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"invertKeys",value:function(e,n){return this.localization.rtl?n:e}},{key:"computedKeys",get:function(){var n,e=this;return De(n={},J.Space,function(){return e.selectFocusedItem()}),De(n,J.Enter,function(){return e.selectFocusedItem()}),De(n,J.ArrowUp,function(){return e.focusPreviousItem()}),De(n,this.invertKeys(J.ArrowLeft,J.ArrowRight),function(){return e.collapseItem()}),De(n,J.ArrowDown,function(){return e.focusNextItem()}),De(n,this.invertKeys(J.ArrowRight,J.ArrowLeft),function(){return e.expandItem()}),De(n,J.End,function(){return e.focusLastItem()}),De(n,J.Home,function(){return e.focusFirstItem()}),n}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"ngOnInit",value:function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.keyBindings=e.computedKeys}),this.eventService.animate=this.animate,this.eventService.expandMode=this.expandMode}},{key:"ngAfterViewChecked",value:function(){var e=this;this.items?(this.childrenItems=this.viewChildItems.toArray(),this.allItems=this.viewItems):(this.childrenItems=this.contentChildItems.toArray(),this.allItems=this.contentItems.toArray()),this.isViewInit&&this.childrenItems.length&&(this.isViewInit=!1,setTimeout(function(){return e.updateChildrenHeight()})),this.validateConfiguration()}},{key:"ngOnChanges",value:function(e){(e.height||e.expandMode||e.items)&&this.childrenItems&&setTimeout(this.updateChildrenHeight),e.animate&&(this.eventService.animate=this.animate),e.expandMode&&(this.eventService.expandMode=this.expandMode)}},{key:"templateRef",get:function(){return this.template?this.template.templateRef:void 0}},{key:"onComponentClick",value:function(e){var n=this.visibleItems().some(function(a){return a.header.nativeElement.contains(e.target)});!ED(e.target)&&!this.focused&&n&&this.elementRef.nativeElement.focus()}},{key:"onComponentFocus",value:function(){if(this.eventService.onFocus(),this.focused=!0,this.allItems.length>0){var e=this.visibleItems();!e.filter(function(a){return a.focused}).length&&e.length>0&&(e[0].focused=!0,this.activeDescendant=e[0].itemId)}}},{key:"onComponentBlur",value:function(){this.eventService.onBlur(),this.focused=!1,this.activeDescendant=""}},{key:"onComponentKeyDown",value:function(e){if(e.target===this.elementRef.nativeElement){(e.keyCode===J.Space||e.keyCode===J.ArrowUp||e.keyCode===J.ArrowDown||e.keyCode===J.ArrowLeft||e.keyCode===J.ArrowRight||e.keyCode===J.Home||e.keyCode===J.End||e.keyCode===J.PageUp||e.keyCode===J.PageDown)&&e.preventDefault();var n=this.keyBindings[e.keyCode];n&&n()}}},{key:"emitEvent",value:function(e,n){var a;switch(e){case"select":a=new yNe;break;case"collapse":a=new mNe;break;default:a=new _Ne}return a.item=n.serialize(),this[e].emit(a),a}},{key:"viewItems",get:function(){var e=[];return this.viewChildItems.toArray().forEach(function(n){e.push(n),e=e.concat(n.subTreeViewItems())}),e}},{key:"validateConfiguration",value:function(){if(xt()&&this.items&&this.contentItems&&this.contentItems.length>0)throw new Error("Invalid configuration: mixed template components and items property.")}},{key:"onItemAction",value:function(e){var n=this;if(e){var a=new Array,o=[];if(this.allItems.forEach(function(h){var f=h===e,g=f;h.selected===(f=n.selectable?f:h.selected)&&h.focused===g||(f&&n.emitEvent("select",h).isDefaultPrevented()?o.push(h):(h.selected=f,h.focused=g,n.activeDescendant=g?h.itemId:"",a.push(h)))}),this.expandMode===vl.Multiple)!e.hasChildItems&&!e.hasContent||o.includes(e)||(e.expanded?this.emitEvent("collapse",e).isDefaultPrevented():this.emitEvent("expand",e).isDefaultPrevented())||(e.expanded=!e.expanded,a.indexOf(e)<0&&a.push(e));else{var u,l=e.parent?e.parent.childrenItems:this.childrenItems,c=[];(e.hasChildItems||e.hasContent)&&!o.includes(e)&&(l.forEach(function(h){var f=h===e;if(h.expanded!==f){var g=h.expanded?n.emitEvent("collapse",h).isDefaultPrevented():n.emitEvent("expand",h).isDefaultPrevented();g?g&&h.expanded&&(u=h):(h.expanded=f,h.expanded&&c.push(h),a.indexOf(h)<0&&a.push(h))}else h.expanded===f&&f&&(n.emitEvent("collapse",h).isDefaultPrevented()||(h.expanded=!h.expanded,a.indexOf(h)<0&&a.push(h)))}),c.forEach(function(h){if(u&&h.id!==u.id&&(h.expanded=!1,xt())){var f=vl[n.expandMode].toLowerCase();console.warn("\n The ".concat(f," expandMode allows the expansion of only one item at a time.\n See https://www.telerik.com/kendo-angular-ui-develop/components/layout/panelbar/expand-modes/"))}}))}if(a.length>0){var d=new b7;d.items=a.map(function(h){return h.serialize()}),this.stateChange.emit(d)}}}},{key:"isVisible",value:function(e){return this.visibleItems().some(function(a){return a===e})}},{key:"getVisibleParent",value:function(e){var n=this.visibleItems();return e.parent?n.some(function(a){return a===e.parent})?e.parent:this.getVisibleParent(e.parent):e}},{key:"focusItem",value:function(e){var s,n=this.visibleItems(),a=n.findIndex(function(u){return u.focused}),o=n[a];if(-1===a){var l=this.allItems.find(function(u){return u.focused});l.focused=!1,o=this.getVisibleParent(l),a=n.findIndex(function(u){return u===o})}switch(e){case"lastItem":s=n[n.length-1];break;case"firstItem":s=n[0];break;case"nextItem":s=n[a0?a-1:n.length-1]}o&&s&&o!==s&&this.moveFocus(o,s)}},{key:"moveFocus",value:function(e,n){e.focused=!1,n.focused=!0,this.activeDescendant=n.itemId;var a=new Array(e.serialize(),n.serialize()),o=new b7;o.items=a,this.stateChange.emit(o)}},{key:"focusLastItem",value:function(){this.focusItem("lastItem")}},{key:"focusFirstItem",value:function(){this.focusItem("firstItem")}},{key:"focusNextItem",value:function(){this.focusItem("nextItem")}},{key:"focusPreviousItem",value:function(){this.focusItem("previousItem")}},{key:"expandItem",value:function(){var e=this.allItems.filter(function(a){return a.focused})[0];if(this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e.hasChildItems||e.hasContent)if(e.expanded){if(e.hasChildItems){var n=e.childrenItems.findIndex(function(a){return!a.disabled});n>-1&&this.moveFocus(e,e.childrenItems[n])}}else this.onItemAction(e)}},{key:"collapseItem",value:function(){var e=this.allItems.filter(function(n){return n.focused})[0];e.expanded?this.onItemAction(e):e.parent&&this.moveFocus(e,e.parent)}},{key:"selectFocusedItem",value:function(){var e=this.allItems.filter(function(n){return n.focused})[0];this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e&&e.onItemAction()}},{key:"visibleItems",value:function(){return this.flatVisibleItems(this.childrenItems)}},{key:"flatVisibleItems",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Array,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Array;return n.forEach(function(o){a.push(o),o.expanded&&o.hasChildItems&&e.flatVisibleItems(o.childrenItems,a)}),a}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(GI),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-panelbar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,C7,5),he(n,qy,5),he(n,qy,4)),2&t&&(P(a=B())&&(e.template=a.first),P(a=B())&&(e.contentItems=a),P(a=B())&&(e.contentChildItems=a))},viewQuery:function(t,e){var n;1&t&&ge(qy,5),2&t&&P(n=B())&&(e.viewChildItems=n)},hostVars:10,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onComponentClick(a)})("focus",function(){return e.onComponentFocus()})("blur",function(){return e.onComponentBlur()})("keydown",function(a){return e.onComponentKeyDown(a)}),2&t&&(ie("tabIndex",e.tabIndex)("role",e.role)("aria-activedescendant",e.activeDescendant)("dir",e.dir),Qe("height",e.hostHeight)("overflow",e.overflow),ue("k-panelbar",e.hostClass))},inputs:{expandMode:"expandMode",selectable:"selectable",animate:"animate",height:"height",keepItemContent:"keepItemContent",items:"items"},outputs:{stateChange:"stateChange",select:"select",expand:"expand",collapse:"collapse"},exportAs:["kendoPanelbar"],features:[de([GI,Y,{provide:Et,useValue:"kendo.panelbar"}]),Ie],ngContentSelectors:d7,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngIf"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content"]],template:function(t,e){1&t&&(kn(c7),T(0,yOe,1,0,"ng-content",0),T(1,bOe,1,1,"ng-template",1)),2&t&&(y("ngIf",e.contentChildItems&&!e.items),k(1),y("ngIf",null==e.items?null:e.items.length))},directives:[qy,qe,gn],encapsulation:2}),i}(),zI=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.cdr=n,this.resizable=!0,this.collapsible=!1,this.scrollable=!0,this.collapsed=!1,this.orientation="horizontal",this.overlayContent=!1,this.sizeChange=new O,this.collapsedChange=new O,this.ariaRole="group",this.hostClass=!0,this.forceExpand=!1,this.isResized=!1}return v(r,[{key:"order",get:function(){return this._order},set:function(e){this._order=e,this.setOrderStyles()}},{key:"size",get:function(){return this._size},set:function(e){this._size=e;var n=this.element.nativeElement;this.renderer.setStyle(n,"-ms-flex-preferred-size",e),this.renderer.setStyle(n,"flex-basis",e),this.staticPaneClass?this.renderer.addClass(n,"k-pane-static"):this.renderer.removeClass(n,"k-pane-static")}},{key:"containsSplitter",set:function(e){var n=this.element.nativeElement;e?this.renderer.addClass(n,"k-pane-flex"):this.renderer.removeClass(n,"k-pane-flex")}},{key:"isHidden",get:function(){return this.collapsed}},{key:"staticPaneClass",get:function(){return!this.forceExpand&&(!this.resizable&&!this.collapsible||this.fixedSize)}},{key:"scrollablePaneClass",get:function(){return this.scrollable}},{key:"fixedSize",get:function(){return this.size&&this.size.length>0}},{key:"ngAfterViewChecked",value:function(){var e=this.element.nativeElement;this.isHidden?(this.renderer.addClass(e,"k-state-hidden"),this.renderer.addClass(e,"hidden")):(this.renderer.removeClass(e,"k-state-hidden"),this.renderer.removeClass(e,"hidden"))}},{key:"computedSize",get:function(){return"vertical"===this.orientation?this.element.nativeElement.offsetHeight:this.element.nativeElement.offsetWidth}},{key:"toggleOverlay",value:function(e){this.overlayContent=e,this.cdr.detectChanges()}},{key:"detectChanges",value:function(){this.cdr.detectChanges()}},{key:"setOrderStyles",value:function(){var e=this.element.nativeElement;this.renderer.setStyle(e,"-ms-flex-order",this.order),this.renderer.setStyle(e,"order",this.order)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter-pane"]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("role",e.ariaRole),ue("k-pane",e.hostClass)("k-pane-static",e.staticPaneClass)("k-scrollable",e.scrollablePaneClass))},inputs:{order:"order",size:"size",min:"min",max:"max",resizable:"resizable",collapsible:"collapsible",scrollable:"scrollable",collapsed:"collapsed",orientation:"orientation",containsSplitter:"containsSplitter",overlayContent:"overlayContent"},outputs:{sizeChange:"sizeChange",collapsedChange:"collapsedChange"},exportAs:["kendoSplitterPane"],ngContentSelectors:_a,decls:2,vars:2,consts:[[4,"ngIf"],["class","k-splitter-overlay k-overlay",4,"ngIf"],[1,"k-splitter-overlay","k-overlay"]],template:function(t,e){1&t&&(kn(),T(0,SOe,2,0,"ng-container",0),T(1,wOe,1,0,"div",1)),2&t&&(y("ngIf",!e.collapsed),k(1),y("ngIf",e.overlayContent))},directives:[qe],encapsulation:2}),i}(),HI=function(){var i=function(){function r(t){p(this,r),this.zone=t,this.layoutChange=new O,this.containerSize=function(){}}return v(r,[{key:"tryToggle",value:function(e){var n=this.pane(e);n.collapsible&&(n.collapsed=!n.collapsed,n.collapsedChange.emit(n.collapsed),this.emit(this.layoutChange,{}),n.collapsed&&n.detectChanges());var a=this.panes.filter(function(s){return!s.collapsed}),o=a.every(function(s){return s.fixedSize});return a[a.length-1].forceExpand=!!o,n.collapsible}},{key:"toggleContentOverlay",value:function(e,n){this.pane(e).toggleOverlay(n),this.pane(e+1).toggleOverlay(n)}},{key:"dragState",value:function(e){var n=this,a=this.pane(e),o=this.pane(e+1),s=a.computedSize+o.computedSize,l=function(c){return n.toPixels(c)};return{prev:{index:e,initialSize:a.computedSize,min:l(a.min)||s-l(o.max)||0,max:l(a.max)||s-l(o.min)||s},next:{index:e+1,initialSize:o.computedSize,min:l(o.min)||s-l(a.max)||0,max:l(o.max)||s-l(a.min)||s}}}},{key:"setSize",value:function(e,n){var a=this,s=function(d,h){var C,f=a.pane(d.index),g=a.containerSize(),_=function(d,h,f){return Math.min(h,Math.max(d,f))}(d.min,d.max,d.initialSize+h);C=a.isPercent(f.size)?100*_/g+"%":_+"px",f.size=C,f.isResized=!0,a.emit(f.sizeChange,C)},l=this.pane(e.prev.index),u=this.pane(e.next.index);l.fixedSize&&u.fixedSize?(s(e.prev,n),s(e.next,-n)):u.collapsible||u.fixedSize?s(e.next,-n):s(e.prev,n),this.emit(this.layoutChange,{})}},{key:"isDraggable",value:function(e){var n=this.pane(e),a=this.pane(e+1);return n.resizable&&a.resizable&&!(n.collapsed||a.collapsed)}},{key:"isStatic",value:function(e){var n=this.pane(e),a=this.pane(e+1);return!(n.resizable&&a.resizable||n.collapsible||a.collapsible)}},{key:"pane",value:function(e){if(!this.panes)throw new Error("Panes not initialized");if(e<0||e>=this.panes.length)throw new Error("Index out of range");return this.panes[e]}},{key:"configure",value:function(e){var n=e.panes,a=e.orientation,o=e.containerSize;if(this.panes=n,this.panes.forEach(function(u,c){u.order=2*c,u.orientation=a}),xt()){var s=n.length&&!n.some(function(u){return!u.fixedSize}),l=n.length&&n.some(function(u){return u.isResized});if(s&&!l)throw new Error("\n The Splitter should have at least one pane without a set size.\n See ".concat("https://www.telerik.com/kendo-angular-ui/components/layout/splitter/panes/#toc-size"," for more information.\n "))}this.containerSize=o}},{key:"isPercent",value:function(e){return/%$/.test(e)}},{key:"toPixels",value:function(e){var n=parseFloat(e);return this.isPercent(e)&&(n=this.containerSize()*n/100),n}},{key:"emit",value:function(e,n){e.observers.length&&this.zone.run(function(){return e.emit(n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),bNe=function(r){var t=r.originalEvent;t.stopPropagation(),t.preventDefault()},KI=function(r){return Object.keys(r).filter(function(t){return r[t]}).join(" ")},jI=function(){var i=function(){function r(t,e,n,a){p(this,r),this.draggable=t,this.element=e,this.splitter=n,this.localization=a,this.orientation="horizontal",this.index=0,this.ariaRole="separator",this.focused=!1,this.subscriptions=new Je}return v(r,[{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"tabIndex",get:function(){return this.splitter.isStatic(this.index)?-1:0}},{key:"hostClasses",get:function(){var e="horizontal"===this.orientation,n=this.splitter.isDraggable(this.index),a=this.splitter.isStatic(this.index);return KI({"k-state-focused":this.focused,"k-splitbar":!0,"k-splitbar-horizontal":e,"k-splitbar-vertical":!e,"k-splitbar-draggable-horizontal":e&&n,"k-splitbar-draggable-vertical":!e&&n,"k-splitbar-static-horizontal":e&&a,"k-splitbar-static-vertical":!e&&a,"k-touch-action-none":n})}},{key:"order",get:function(){return 2*this.index+1}},{key:"collapseAny",value:function(){this.expandLast?this.toggleNext():this.tryToggleNearest()}},{key:"onFocusIn",value:function(){this.focused=!0}},{key:"onFocusOut",value:function(){this.focused=!1}},{key:"onKeyDown",value:function(e){var n=this,a=e&&e.keyCode,o="horizontal"===this.orientation,s=function(u){e.preventDefault();var c=n.splitter.dragState(n.index);n.splitter.setSize(c,u)};a===J.Enter?(e.preventDefault(),this.collapseAny()):o&&a===J.ArrowLeft?s(-10):o&&a===J.ArrowRight?s(10):o||a!==J.ArrowUp?!o&&a===J.ArrowDown&&s(10):s(-10)}},{key:"expandLast",get:function(){var e=this.splitter.panes;return 2===e.length&&e[1].collapsed}},{key:"ngOnInit",value:function(){var n,e=this,a=this.draggable.kendoPress.pipe(At(bNe),Ue(function(){return e.splitter.isDraggable(e.index)}),At(function(){return n=e.splitter.dragState(e.index)}),At(function(){return e.splitter.toggleContentOverlay(e.index,!0)}),Nn(function(r){return function(t){return lt(t).pipe(Dd(150),Qr(r))}}(this.draggable.kendoRelease)),Nn(function(r){return function(t){return r.kendoDrag.pipe(Qr(r.kendoRelease),We(function(e){return{originalX:t.pageX,originalY:t.pageY,pageX:e.pageX,pageY:e.pageY}}))}}(this.draggable))).subscribe(function(o){var s=o.pageX,u=o.originalX;e.splitter.setSize(n,"vertical"===e.orientation?o.pageY-o.originalY:"rtl"===e.direction?u-s:s-u)});this.subscriptions.add(a),this.subscriptions.add(this.draggable.kendoRelease.subscribe(function(){return e.splitter.toggleContentOverlay(e.index,!1)}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"togglePrevious",value:function(){this.splitter.tryToggle(this.index)}},{key:"toggleNext",value:function(){this.splitter.tryToggle(this.index+1)}},{key:"previousArrowClass",value:function(){var e=this.splitter.pane(this.index),n=this.splitter.pane(this.index+1),a=e.collapsible,o=e.collapsed,s="horizontal"===this.orientation;return KI({"k-icon":!0,"k-hidden":!a||n.isHidden,"k-collapse-prev":a,"k-i-arrow-60-left":a&&s&&!o,"k-i-arrow-60-right":a&&s&&o,"k-i-arrow-60-up":a&&!s&&!o,"k-i-arrow-60-down":a&&!s&&o})}},{key:"nextArrowClass",value:function(){var e=this.splitter.pane(this.index+1),n=this.splitter.pane(this.index),a=e.collapsible,o=e.collapsed,s="horizontal"===this.orientation;return KI({"k-icon":!0,"k-hidden":!a||n.isHidden,"k-collapse-next":a,"k-i-arrow-60-right":a&&s&&!o,"k-i-arrow-60-left":a&&s&&o,"k-i-arrow-60-down":a&&!s&&!o,"k-i-arrow-60-up":a&&!s&&o})}},{key:"tryToggleNearest",value:function(){var n=this.index+1;this.splitter.tryToggle(this.index)||this.splitter.tryToggle(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(_e),m(HI),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter-bar"]],hostVars:11,hostBindings:function(t,e){1&t&&Q("dblclick",function(){return e.collapseAny()})("focusin",function(){return e.onFocusIn()})("focusout",function(){return e.onFocusOut()})("keydown",function(a){return e.onKeyDown(a)}),2&t&&(ie("aria-orientation",e.orientation)("role",e.ariaRole)("tabindex",e.tabIndex),_r(e.hostClasses),Qe("-ms-flex-order",e.order)("order",e.order),ue("k-state-focused",e.focused))},inputs:{orientation:"orientation",index:"index"},decls:3,vars:4,consts:[[3,"click"],[1,"k-resize-handle"]],template:function(t,e){1&t&&(A(0,"div",0),Q("click",function(){return e.togglePrevious()}),x(),z(1,"div",1),A(2,"div",0),Q("click",function(){return e.toggleNext()}),x()),2&t&&(_r(e.previousArrowClass()),k(2),_r(e.nextArrowClass()))},encapsulation:2}),i}(),DNe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.element=t,this.splitterService=e,this.localization=n,this.renderer=a,this.enclosingPane=o,this.orientation="horizontal",jt(fl),o&&(o.containsSplitter=!0),this.layoutChange=this.splitterService.layoutChange,this.configure=this.configure.bind(this)}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"horizontalHostClasses",get:function(){return"horizontal"===this.orientation}},{key:"verticalHostClasses",get:function(){return"vertical"===this.orientation}},{key:"dir",get:function(){return this.direction}},{key:"splitbars",set:function(e){var n=this;Mi(e)&&Mi(this.panes)&&[].concat(Ae(this.panes.toArray()),Ae(e.toArray())).sort(function(s,l){return s.order-l.order}).map(function(s){return s.element.nativeElement}).forEach(function(s){return n.renderer.appendChild(n.element.nativeElement,s)})}},{key:"ngAfterContentInit",value:function(){this.reconfigure()}},{key:"ngOnChanges",value:function(e){e.orientation&&!e.orientation.isFirstChange()&&this.reconfigure()}},{key:"ngOnDestroy",value:function(){this.enclosingPane&&(this.enclosingPane.containsSplitter=!1),this.unsubscribeChanges()}},{key:"reconfigure",value:function(){this.unsubscribeChanges(),this.configure(),this.paneChangesSubscription=this.panes.changes.subscribe(this.configure)}},{key:"unsubscribeChanges",value:function(){this.paneChangesSubscription&&(this.paneChangesSubscription.unsubscribe(),this.paneChangesSubscription=null)}},{key:"configure",value:function(){var e=this;this.splitterService.configure({panes:this.panes.toArray(),orientation:this.orientation,containerSize:function(){return"vertical"===e.orientation?e.element.nativeElement.clientHeight:e.element.nativeElement.clientWidth}})}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(HI),m(Y),m(Ee),m(zI,9))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter"]],contentQueries:function(t,e,n){var a;1&t&&he(n,zI,4),2&t&&P(a=B())&&(e.panes=a)},viewQuery:function(t,e){var n;1&t&&ge(jI,5),2&t&&P(n=B())&&(e.splitbars=n)},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-splitter",e.hostClasses)("k-splitter-flex",e.hostClasses)("k-splitter-horizontal",e.horizontalHostClasses)("k-splitter-vertical",e.verticalHostClasses))},inputs:{orientation:"orientation"},outputs:{layoutChange:"layoutChange"},exportAs:["kendoSplitter"],features:[de([HI,Y,{provide:Et,useValue:"kendo.spliter"}]),Ie],ngContentSelectors:AOe,decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoDraggable","",3,"index","orientation",4,"ngIf"],["kendoDraggable","",3,"index","orientation"]],template:function(t,e){1&t&&(kn(TOe),dn(0),T(1,EOe,2,1,"ng-container",0)),2&t&&(k(1),y("ngForOf",e.panes))},directives:[jI,gn,qe,$o],encapsulation:2}),i}(),WI=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoTabContent",""]]}),i}(),S7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoTabTitle",""]]}),i}(),$I=function(){var i=function(){function r(){p(this,r),this.disabled=!1,this._tabContent=new Ei,this.focused=!1}return v(r,[{key:"tabContent",get:function(){return this._tabContent.first}},{key:"tabTitle",get:function(){return this._tabTitleDirective.first}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip-tab"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,WI,4),he(n,S7,4)),2&t&&(P(a=B())&&(e._tabContent=a),P(a=B())&&(e._tabTitleDirective=a))},inputs:{title:"title",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle",selected:"selected",closable:"closable",closeIcon:"closeIcon"},exportAs:["kendoTabStripTab"],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ENe=v(function i(r,t){p(this,i),this.index=r,this.tab=t}),TNe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).index=e,a.title=n,a}return v(t)}(Is),w7=function(r){return r.enabled&&r.mouseScroll},qI=function(r){var t,e,n=-1,a=-1;return r.forEach(function(o,s){o.selected?(e=o,a=s):o.focused&&(t=o,n=s)}),n>=0?{tab:t,index:n}:{tab:e,index:a}},XI=function(r,t){var e=r.filter(function(n,a){return a===t});return e.length>0?e[0]:null},ko=function(r){return"top"===r||"bottom"===r},D7=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.ngZone=e}return v(r,[{key:"onKeyDown",value:function(e){if(function(r){var t=r.getAttribute("id");return!!(Mi(t)||t.indexOf("k-tabstrip-tab-")>=0)}(e.target)){var n=e.keyCode;if(!this.shouldHandleKey(n))return;e.preventDefault(),_7(n)||function(r){return g7(r)||m7(r)}(n)?this.onNavigate(n):n===J.Delete&&this.onDelete()}}},{key:"onTabSelect",value:function(e,n){var a=new TNe(n,e.title);if(this.owner.tabSelect.emit(a),!a.isDefaultPrevented()){if(e.selected)return void this.focusTabHeader(n);this.selectTab(e,n)}}},{key:"selectTab",value:function(e,n){(function(r){r.forEach(function(t){t.selected=!1})})(this.owner.tabs),this.focusTabHeader(n),e.selected=!0,this.owner.isScrollable&&this.owner.scrollToSelectedTab()}},{key:"onNavigate",value:function(e){var n=this,a=qI(this.owner.tabs),o=a.tab,s=a.index;be.isInAngularZone()||this.ngZone.run(function(){if(s<0)n.owner.selectTab(n.firstNavigatableIndex());else{o.focused=!1;var l=n.computeNextIndex(s,e);n.activateTab(l)}})}},{key:"onDelete",value:function(){var e=this,n=qI(this.owner.tabs),a=n.tab,o=n.index;(function(r,t){return void 0!==r.closable?r.closable:t})(a,this.owner.closable)&&!a.disabled&&this.ngZone.run(function(){e.owner.tabClose.emit({tab:a,index:o})})}},{key:"activateTab",value:function(e){var n=XI(this.owner.tabs,e);n.disabled?(this.focusTabHeader(e),n.focused=!0):this.onTabSelect(n,e)}},{key:"focusTabHeader",value:function(e){var n=function(r,t){var e=r.filter(function(n,a){return a===t});return e.length>0?e[0]:null}(this.owner.tabHeaderContainers,e);n.nativeElement.focus()}},{key:"shouldHandleKey",value:function(e){return!!(_7(e)||ko(this.owner.tabPosition)&&g7(e)||!ko(this.owner.tabPosition)&&m7(e)||e===J.Delete)}},{key:"computeNextIndex",value:function(e,n){switch(n){case this.invertKeys(J.ArrowLeft,J.ArrowRight):case this.invertKeys(J.ArrowUp,J.ArrowDown):return this.prevNavigatableIndex(e);case this.invertKeys(J.ArrowRight,J.ArrowLeft):case this.invertKeys(J.ArrowDown,J.ArrowUp):return this.nextNavigatableIndex(e);case J.Home:return this.firstNavigatableIndex();case J.End:return this.lastNavigatableIndex();default:return}}},{key:"invertKeys",value:function(e,n){return this.localization.rtl?n:e}},{key:"firstNavigatableIndex",value:function(){return 0}},{key:"lastNavigatableIndex",value:function(){return this.owner.tabs.length-1}},{key:"prevNavigatableIndex",value:function(e){return e-1<0?this.lastNavigatableIndex():e-1}},{key:"nextNavigatableIndex",value:function(e){return e+1>=this.owner.tabs.length?this.firstNavigatableIndex():e+1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),T7=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.position=0,this.scrollButtonActiveStateChange=new Ot,this.isDisabled=function(n){return e.owner["".concat(n,"ScrollButton")].host.nativeElement.classList.contains("k-disabled")}}return v(r,[{key:"tablistElement",get:function(){return this.owner.tablist.nativeElement}},{key:"tabstripSize",get:function(){var e=this.owner.wrapper.nativeElement,n=parseFloat(getComputedStyle(e).width),a=parseFloat(getComputedStyle(e).height);return ko(this.owner.tabPosition)?n:a}},{key:"tablistOverflowSize",get:function(){if(!Ze())return 0;var e=ko(this.owner.tabPosition),n=Math.floor(this.tablistElement[e?"scrollWidth":"scrollHeight"]-this.tablistElement.getBoundingClientRect()[e?"width":"height"]);return n<0?0:n}},{key:"tabsOverflow",get:function(){return this.tablistOverflowSize>0}},{key:"scrollButtonsSize",get:function(){if(!this.owner.hasScrollButtons)return 0;var e=this.owner.prevScrollButton.hostBoundingClientRect,n=ko(this.owner.tabPosition)?e.width:e.height,a=this.owner.nextScrollButton.hostBoundingClientRect;return n+(ko(this.owner.tabPosition)?a.width:a.height)}},{key:"toggleScrollButtonsState",value:function(){var e=this;if(this.owner.hasScrollButtons){var a=!this.isDisabled("prev"),o=!this.isDisabled("next"),s=this.position>0&&this.tablistOverflowSize>0,l=this.position0;s!==a&&this.ngZone.run(function(){return e.toggleButtonActiveState("prev",s)}),l!==o&&this.ngZone.run(function(){return e.toggleButtonActiveState("next",l)})}}},{key:"scrollToSelectedTab",value:function(){var e=this;if(this.tabsOverflow){var a=qI(this.owner.tabs).index;if(-1!==a&&(this.position+=this.getScrollOffset(a),ko(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState(),this.owner.hasScrollButtons)){var l=a===this.owner.tabs.length-1;0===a&&!this.isDisabled("prev")&&this.ngZone.run(function(){return e.toggleButtonActiveState("prev",!1)}),l&&!this.isDisabled("next")&&this.ngZone.run(function(){return e.toggleButtonActiveState("next",!1)})}}}},{key:"getScrollOffset",value:function(e){if(!Ze())return 0;var n=ko(this.owner.tabPosition);this.tablistElement["scroll".concat(n?"Left":"Top")]=this.position;var a=this.tablistElement.children[e].getBoundingClientRect(),o=this.tablistElement.getBoundingClientRect(),s=n?"right":"bottom",l=n?"left":"top",u=a[l],c=a[s],d=o[l],h=o[s],f=c<=h,g=u>=d;return f&&g?0:f?g?void 0:u-d:c-h}},{key:"onMouseScroll",value:function(e){e.preventDefault(),w7(this.owner.scrollable)&&(this.calculateListPosition(e.deltaY<0?"prev":"next",this.owner.scrollable.mouseScrollSpeed),ko(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState())}},{key:"scrollTabs",value:function(e){this.calculateListPosition(e,this.owner.scrollable.buttonScrollSpeed),ko(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position,behavior:"smooth"}):this.tablistElement.scrollTo({top:this.position,behavior:"smooth"}),this.toggleScrollButtonsState()}},{key:"calculateListPosition",value:function(e,n){var a=this.tablistOverflowSize+this.scrollButtonsSize;if("prev"===e&&this.position>0)this.position=this.position-n<=0?0:this.position-n;else if("next"===e&&this.positiona)return void(this.position=a);this.position+=n}}},{key:"restoreScrollPosition",value:function(){ko(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position}):this.tablistElement.scrollTo({top:this.position}),this.toggleScrollButtonsState()}},{key:"toggleButtonActiveState",value:function(e,n){this.scrollButtonActiveStateChange.next({buttonType:e,active:n})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),A7=function(r){return function(r){var t=r.enabled,n=r.scrollButtons,o=r.mouseScroll,l=r.buttonScrollSpeed,c=r.mouseScrollSpeed;return{enabled:void 0===t||t,scrollButtons:void 0===n?"auto":n,mouseScroll:void 0===o||o,buttonScrollSpeed:void 0===l?100:l,mouseScrollSpeed:void 0===c?10:c,prevButtonIcon:r.prevButtonIcon,nextButtonIcon:r.nextButtonIcon}}(!1===r?{enabled:!1}:r)},x7=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),M7=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.host=t,this.renderer=e,this.ngZone=n,this.btnClasses=!0,this.prev=!1,this.tabScroll=new O,this.onClick=new O,this.subs=new Je,this.clickHandler=function(o){a.emitScrollEvent(o).isDefaultPrevented()||a.onClick.emit(a.prev?"prev":"next")}}return v(r,[{key:"prevClass",get:function(){return this.prev}},{key:"nextClass",get:function(){return!this.prev}},{key:"hostBoundingClientRect",get:function(){return this.host.nativeElement.getBoundingClientRect()}},{key:"iconClass",get:function(){return this.scrollButtonIconClass[this.prev?"prevScrollButton":"nextScrollButton"]}},{key:"ngAfterViewInit",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.subs.add(e.renderer.listen(e.host.nativeElement,"click",e.clickHandler))})}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"toggle",value:function(e){this.renderer[e?"removeClass":"addClass"](this.host.nativeElement,"k-hidden")}},{key:"scrollButtonIconClass",get:function(){var e=ko(this.tabPosition)?"k-i-arrow-60-left":"k-i-arrow-60-up",n=ko(this.tabPosition)?"k-i-arrow-60-right":"k-i-arrow-60-down";return"object"==typeof this.scrollable?{prevScrollButton:void 0===this.scrollable.prevButtonIcon?e:this.scrollable.prevButtonIcon,nextScrollButton:void 0===this.scrollable.nextButtonIcon?n:this.scrollable.nextButtonIcon}:{prevScrollButton:e,nextScrollButton:n}}},{key:"emitScrollEvent",value:function(e){var n=new x7({originalEvent:e});return this.tabScroll.emit(n),n}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(be))},i.\u0275cmp=L({type:i,selectors:[["","kendoTabStripScrollableButton",""]],hostVars:16,hostBindings:function(t,e){2&t&&ue("k-button",e.btnClasses)("k-button-md",e.btnClasses)("k-icon-button",e.btnClasses)("k-rounded-md",e.btnClasses)("k-button-flat",e.btnClasses)("k-button-flat-base",e.btnClasses)("k-tabstrip-prev",e.prevClass)("k-tabstrip-next",e.nextClass)},inputs:{prev:"prev",tabPosition:"tabPosition",scrollable:"scrollable"},outputs:{tabScroll:"tabScroll",onClick:"onClick"},attrs:xOe,decls:1,vars:1,consts:[[1,"k-icon","k-button-icon",3,"ngClass"]],template:function(t,e){1&t&&z(0,"span",0),2&t&&y("ngClass",e.iconClass)},directives:[Ft],encapsulation:2}),i}(),R7=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.tabClose=new O,this.hostClasses=!0}return v(r,[{key:"activeClass",get:function(){return this.tab.selected}},{key:"disabledClass",get:function(){return this.tab.disabled}},{key:"focusedClass",get:function(){return this.tab.focused}},{key:"tabIndex",get:function(){return this.tab.selected||this.tab.focused?0:-1}},{key:"tabClosable",get:function(){return void 0!==this.tab.closable?this.tab.closable:this.tabStripClosable}},{key:"closeButtonClasses",get:function(){return Mi(this.tab.closeIcon)?this.tab.closeIcon:this.tabStripCloseIcon}},{key:"closeButtonTitle",get:function(){return this.localization.get("closeTitle")}},{key:"closeTab",value:function(e){var n=new ENe(e,this.tab);this.tabClose.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoTabStripTab",""]],hostVars:13,hostBindings:function(t,e){2&t&&(ie("aria-selected",e.activeClass)("aria-disabled",e.disabledClass)("tabindex",e.tabIndex),ue("k-item",e.hostClasses)("k-state-default",e.hostClasses)("k-state-active",e.activeClass)("k-state-disabled",e.disabledClass)("k-state-focused",e.focusedClass))},inputs:{tab:"tab",index:"index",tabStripClosable:"tabStripClosable",tabStripCloseIcon:"tabStripCloseIcon"},outputs:{tabClose:"tabClose"},attrs:MOe,decls:3,vars:3,consts:[["class","k-link",4,"ngIf"],["class","k-remove-tab k-button k-icon-button k-flat","role","button",3,"title","click",4,"ngIf"],[1,"k-link"],[3,"ngTemplateOutlet"],["role","button",1,"k-remove-tab","k-button","k-icon-button","k-flat",3,"title","click"],[3,"ngClass"]],template:function(t,e){1&t&&(T(0,ROe,2,1,"span",0),T(1,IOe,2,1,"span",0),T(2,NOe,2,3,"span",1)),2&t&&(y("ngIf",!e.tab.tabTitle),k(1),y("ngIf",e.tab.tabTitle),k(1),y("ngIf",e.tabClosable))},directives:[qe,En,Ft],encapsulation:2}),i}(),xD=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-tabstrip-messages-base"]],inputs:{closeTitle:"closeTitle"},features:[j]}),i}(),O7=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(xD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoTabStripLocalizedMessages",""]],features:[de([{provide:xD,useExisting:ke(function(){return i})}]),j]}),i}(),I7=function(){var i=function(){function r(t,e,n,a,o,s){var l=this;p(this,r),this.localization=t,this.renderer=e,this.wrapper=n,this.tabstripService=a,this.scrollService=o,this.ngZone=s,this.animate=!0,this.tabPosition="top",this.keepTabContent=!1,this.closable=!1,this.closeIcon="k-icon k-i-x",this.tabSelect=new O,this.tabClose=new O,this.tabScroll=new O,this.hostClasses=!0,this.tabs=new Ei,this._scrollableSettings=A7(!1),this.subscriptions=new Je,this.subscriptionsArePresent=!1,jt(fl),this.tabstripService.owner=this,this.scrollService.owner=this,this.subscriptions.add(this.scrollService.scrollButtonActiveStateChange.subscribe(function(u){l.hasScrollButtons&&l.renderer["".concat(u.active?"remove":"add","Class")](l["".concat(u.buttonType,"ScrollButton")].host.nativeElement,"k-disabled")}))}return v(r,[{key:"height",get:function(){return this._height},set:function(e){this._height=e,this.renderer.setStyle(this.wrapper.nativeElement,"height",e)}},{key:"scrollable",get:function(){return this._scrollableSettings},set:function(e){this._scrollableSettings=A7(e),this.tablist&&(this.toggleScrollButtons(this.scrollService.tabsOverflow),this.attachWheelHandler(this.tablist.nativeElement))}},{key:"tabsAtTop",get:function(){return"top"===this.tabPosition}},{key:"tabsAtRight",get:function(){return"right"===this.tabPosition}},{key:"tabsAtBottom",get:function(){return"bottom"===this.tabPosition}},{key:"tabsAtLeft",get:function(){return"left"===this.tabPosition}},{key:"dir",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"tabStripScrollable",get:function(){return this._scrollableSettings.enabled}},{key:"ngAfterViewInit",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.toggleScrollButtons(!!e.scrollService.tabsOverflow),setTimeout(function(){e.scrollToSelectedTab()})}),this.initDomEvents()}},{key:"ngOnChanges",value:function(e){var n=this,a=e.tabPosition;if(a){var o="bottom"===a.previousValue||"bottom"===a.currentValue;this.ngZone.onStable.pipe(It(1)).subscribe(function(){o&&(n.subscriptionsArePresent&&(n.subscriptions.unsubscribe(),n.subscriptions=new Je,n.subscriptionsArePresent=!1),n.initDomEvents()),n.scrollService.restoreScrollPosition()})}}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"tabsAlignmentStyles",get:function(){return{start:"flex-start",end:"flex-end",center:"center",justify:"space-between"}[this.tabAlignment]}},{key:"tabListWidth",get:function(){return"top"===this.tabPosition||"bottom"===this.tabPosition?"100%":null}},{key:"tabListHeight",get:function(){return"left"===this.tabPosition||"right"===this.tabPosition?"100%":null}},{key:"isScrollable",get:function(){return this._scrollableSettings.enabled}},{key:"hasScrollButtons",get:function(){return function(r){return r.enabled&&"hidden"!==r.scrollButtons}(this._scrollableSettings)}},{key:"mouseScrollEnabled",get:function(){return w7(this._scrollableSettings)}},{key:"itemsWrapperClass",get:function(){return ko(this.tabPosition)?"k-hstack":"k-vstack"}},{key:"selectTab",value:function(e){var n=XI(this.tabs,e);!n||n.disabled||(this.tabstripService.selectTab(n,e),this.scrollToSelectedTab())}},{key:"onTabClick",value:function(e,n){if(!ED(e.target)){var a=e.target;if(!TD(a,"k-remove-tab")&&!TD(a.parentElement,"k-remove-tab")){var s=XI(this.tabs,n);this.tabstripService.onTabSelect(s,n),this.scrollToSelectedTab()}}}},{key:"onResize",value:function(){var e=this;this.toggleScrollButtons(!!this.scrollService.tabsOverflow),this.ngZone.runOutsideAngular(function(){e.scrollService.toggleScrollButtonsState()})}},{key:"scrollToSelectedTab",value:function(){this._scrollableSettings.enabled&&this.scrollService.scrollToSelectedTab()}},{key:"onScrollButtonClick",value:function(e){this.scrollService.scrollTabs(e)}},{key:"initDomEvents",value:function(){var e=this;if(this.wrapper&&!this.subscriptionsArePresent){var n=this.tablist.nativeElement;this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(n,"keydown",function(a){e.tabstripService.onKeyDown(a)}))}),this.subscriptions.add(this.renderer.listen(n,"focusout",function(){!function(r){r.forEach(function(t){t.focused=!1})}(e.tabs)})),this.isScrollable&&this.mouseScrollEnabled&&this.attachWheelHandler(n),this.subscriptionsArePresent=!0}}},{key:"toggleScrollButtons",value:function(e){var n=this;this.ngZone.onStable.pipe(It(1)).subscribe(function(){var a=n._scrollableSettings.scrollButtons,o=n.prevScrollButton&&n.nextScrollButton,s=o&&e,u="visible"===a;o&&!e&&"visible"!==a?(n.prevScrollButton.toggle(!1),n.nextScrollButton.toggle(!1)):(s||u)&&(n.prevScrollButton.toggle(!0),n.nextScrollButton.toggle(!0)),o&&u&&n.ngZone.runOutsideAngular(function(){n.scrollService.toggleScrollButtonsState()})})}},{key:"attachWheelHandler",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.subscriptions.add(n.renderer.listen(e,"wheel",function(a){var o=new x7({originalEvent:a});n.tabScroll.emit(o),o.isDefaultPrevented()||!n.scrollService.tabsOverflow||n.scrollService.onMouseScroll(a)}))})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee),m(_e),m(D7),m(T7),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip"]],contentQueries:function(t,e,n){var a;1&t&&he(n,$I,4),2&t&&P(a=B())&&(e.tabs=a)},viewQuery:function(t,e){var n;1&t&&(ge(FOe,5),ge(LOe,5),ge(POe,5),ge(BOe,5,_e)),2&t&&(P(n=B())&&(e.tablist=n.first),P(n=B())&&(e.prevScrollButton=n.first),P(n=B())&&(e.nextScrollButton=n.first),P(n=B())&&(e.tabHeaderContainers=n))},hostVars:15,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-tabstrip",e.hostClasses)("k-floatwrap",e.hostClasses)("k-tabstrip-top",e.tabsAtTop)("k-tabstrip-right",e.tabsAtRight)("k-tabstrip-bottom",e.tabsAtBottom)("k-tabstrip-left",e.tabsAtLeft)("k-tabstrip-scrollable",e.tabStripScrollable))},inputs:{height:"height",animate:"animate",tabAlignment:"tabAlignment",tabPosition:"tabPosition",keepTabContent:"keepTabContent",closable:"closable",scrollable:"scrollable",closeIcon:"closeIcon"},outputs:{tabSelect:"tabSelect",tabClose:"tabClose",tabScroll:"tabScroll"},exportAs:["kendoTabStrip"],features:[de([D7,T7,Y,{provide:Et,useValue:"kendo.tabstrip"}]),Ie],decls:8,vars:3,consts:function(){return[["kendoTabStripLocalizedMessages","","closeTitle",$localize(s7||(s7=le([":kendo.tabstrip.closeTitle|The title for the **Close** button in the TabStrip tab.:Close"])))],[4,"ngIf"],["heading",""],["content",""],[3,"resize",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"k-tabstrip-items-wrapper",3,"ngClass"],["kendoTabStripScrollableButton","",3,"scrollable","tabPosition","prev","tabScroll","onClick",4,"ngIf"],["role","tablist",1,"k-reset","k-tabstrip-items"],["tablist",""],[4,"ngFor","ngForOf"],["kendoTabStripScrollableButton","",3,"scrollable","tabPosition","prev","tabScroll","onClick"],["prevScrollButton",""],["kendoTabStripTab","","role","tab",3,"ngClass","ngStyle","tab","index","tabStripClosable","tabStripCloseIcon","id","tabClose","click"],["tabHeaderContainer",""],["nextScrollButton",""],["ngFor","",3,"ngForOf"],["role","tabpanel",3,"ngClass","tabIndex","id",4,"ngIf"],["role","tabpanel",3,"ngClass","tabIndex","id"],[3,"ngTemplateOutlet"],[3,"resize"]]},template:function(t,e){1&t&&(Wt(0,0),T(1,UOe,3,2,"ng-container",1),T(2,KOe,3,2,"ng-container",1),T(3,qOe,6,10,"ng-template",null,2,$n),T(5,QOe,1,1,"ng-template",null,3,$n),T(7,JOe,1,0,"kendo-resize-sensor",4)),2&t&&(k(1),y("ngIf",!e.tabsAtBottom),k(1),y("ngIf",e.tabsAtBottom),k(5),y("ngIf",e.isScrollable))},directives:[M7,R7,Vr,O7,qe,En,Ft,gn,Gi],encapsulation:2,data:{animation:[ef("state",[Cd("active",Lt({opacity:1})),iu("* => active",[Lt({opacity:0}),Ai("400ms ease-in")])])]}}),i}(),BNe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(xD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip-messages"]],features:[de([{provide:xD,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),N7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerTemplate",""]]}),i}(),F7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerItemTemplate",""]]}),i}(),L7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerHeaderTemplate",""]]}),i}(),P7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerFooterTemplate",""]]}),i}(),MD=function(){var i=function(){function r(){p(this,r),this.selectedIndices=[]}return v(r,[{key:"onSelect",value:function(e){this.selectedIndices=[e];var n=this.owner;n.autoCollapse&&!n.minimized&&n.toggle(!1)}},{key:"initSelection",value:function(){var e=this.owner.items;this.selectedIndices=[];for(var n=0;n=0}},{key:"label",get:function(){return this.item.text?this.item.text:null}},{key:"ngAfterViewInit",value:function(){var e=V7(this.element.nativeElement,".k-drawer-link");e&&this.renderer.removeAttribute(e,"tabindex")}},{key:"iconClasses",get:function(){var e=[];return this.item.icon&&e.push("k-icon ".concat(this.item.icon)),this.item.iconClass&&e.push("".concat(this.item.iconClass)),e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(MD),m(_e),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["","kendoDrawerItem",""]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("aria-disabled",e.disabledClass)("aria-selected",e.selectedClass)("aria-label",e.label),ue("k-state-disabled",e.disabledClass)("k-state-selected",e.selectedClass))},inputs:{item:"item",index:"index",itemTemplate:"itemTemplate",mini:"mini",expanded:"expanded",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle"},attrs:eIe,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"ngClass"],[1,"k-item-text"]],template:function(t,e){if(1&t&&(T(0,nIe,1,4,null,0),T(1,aIe,2,2,"ng-template",null,1,$n)),2&t){var n=Yt(2);y("ngIf",e.itemTemplate)("ngIfElse",n)}},directives:[qe,En,Ft],encapsulation:2}),i}(),U7=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.drawerService=t,this.renderer=e,this.ngZone=n,this.changeDetector=a,this.element=o,this.select=new O,this.subscriptions=new Je}return v(r,[{key:"ngOnInit",value:function(){this.initialSelection(),this.initDomEvents()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"initialSelection",value:function(){0===this.drawerService.selectedIndices.length&&this.drawerService.initSelection()}},{key:"initDomEvents",value:function(){var e=this;!this.element||this.ngZone.runOutsideAngular(function(){var n=e.element.nativeElement;e.subscriptions.add(e.renderer.listen(n,"click",e.clickHandler.bind(e))),e.subscriptions.add(e.renderer.listen(n,"keydown",e.keyDownHandler.bind(e)))})}},{key:"clickHandler",value:function(e){var n=this,a=this.getDrawerItemIndex(e.target),o=this.items[a];if(o){if(o.disabled)return void e.preventDefault();var s={index:a,item:o,originalEvent:e};this.ngZone.run(function(){var l=new JNe(s);n.select.emit(l),l.isDefaultPrevented()||(n.drawerService.onSelect(a),n.changeDetector.detectChanges())})}}},{key:"keyDownHandler",value:function(e){if(e.keyCode===J.Enter||e.keyCode===J.Space){this.clickHandler(e);var a=V7(this.element.nativeElement,":focus:not(.k-state-disabled) .k-drawer-link");return a&&a.click(),!1}}},{key:"getDrawerItemIndex",value:function(e){var n=k7(e,B7,this.element.nativeElement);if(n)return y7(n,B7)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(MD),m(Ee),m(be),m(nt),m(_e))},i.\u0275cmp=L({type:i,selectors:[["","kendoDrawerList",""]],inputs:{items:"items",itemTemplate:"itemTemplate",mini:"mini",expanded:"expanded"},outputs:{select:"select"},attrs:oIe,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoDrawerItem","","class","k-drawer-item","tabindex","0",3,"item","index","mini","expanded","itemTemplate","ngClass","ngStyle",4,"ngIf"],["class","k-drawer-item k-drawer-separator",3,"ngClass","ngStyle",4,"ngIf"],["kendoDrawerItem","","tabindex","0",1,"k-drawer-item",3,"item","index","mini","expanded","itemTemplate","ngClass","ngStyle"],[1,"k-drawer-item","k-drawer-separator",3,"ngClass","ngStyle"]],template:function(t,e){1&t&&T(0,uIe,3,2,"ng-container",0),2&t&&y("ngForOf",e.items)},directives:[G7,gn,qe,Ft,Gi],encapsulation:2}),i}(),z7={type:"slide",duration:200},H7=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.element=t,this.builder=e,this.localizationService=n,this.drawerService=a,this.hostClasses=!0,this.mode="overlay",this.position="start",this.mini=!1,this.expanded=!1,this.width=240,this.miniWidth=50,this.autoCollapse=!0,this.animation=z7,this.expand=new O,this.collapse=new O,this.select=new O,this.expandedChange=new O,this.animationEnd=new O,this.rtl=!1,this._items=[],jt(fl),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(s){o.rtl=s.rtl,o.direction=o.rtl?"rtl":"ltr"}),this.drawerService.owner=this}return v(r,[{key:"startPositionClass",get:function(){return"start"===this.position}},{key:"endPositionClass",get:function(){return"end"===this.position}},{key:"overlayTransofrmStyles",get:function(){if("push"!==this.mode)return this.expanded||this.minimized?"translateX(0px)":"translateX(-100%)"}},{key:"flexStyles",get:function(){if("overlay"!==this.mode)return this.expanded||this.minimized?this.drawerWidth:0}},{key:"items",get:function(){return this._items},set:function(e){Mi(e)&&(this._items=e,this.drawerService.initSelection())}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"minimized",get:function(){return this.mini&&!this.expanded}},{key:"drawerWidth",get:function(){return this.minimized?this.miniWidth:this.width}},{key:"toggle",value:function(e){var n=this,a=this.expanded,o=Mi(e)?e:!a;o!==a&&(!0===o?this.setExpanded(!0):!1===o&&!this.animation&&this.setExpanded(!1),this.animation?(this.animationEnd.pipe(It(1)).subscribe(function(){n.onAnimationEnd(o)}),this.animate(o)):this[o?"expand":"collapse"].emit())}},{key:"onSelect",value:function(e){this.select.emit(Object.assign(e,{sender:this}))}},{key:"onAnimationEnd",value:function(e){e?this.expand.emit():(this.setExpanded(!1),this.collapse.emit())}},{key:"setExpanded",value:function(e){this.expanded=e,this.expandedChange.emit(e)}},{key:"animate",value:function(e){var n={mode:this.mode,mini:this.mini,miniWidth:this.miniWidth,width:this.width,rtl:this.rtl,position:this.position,animation:"boolean"!=typeof this.animation?this.animation:z7},a=e?function XNe(i){var r=i.animation.duration,t=i.width,e=i.miniWidth,n=i.mode,a=i.mini,o=i.rtl,s=i.position;return a&&"push"===n?function VNe(i,r,t){return[Lt({overflow:"hidden",flexBasis:"".concat(t,"px")}),Ai("".concat(i,"ms ease-in"),Lt({flexBasis:"".concat(r,"px")}))]}(r,t,e):a||"push"!==n?a||"overlay"!==n?a&&"overlay"===n?function UNe(i,r,t){return[Lt({width:"".concat(t,"px")}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",width:"".concat(r,"px")}))]}(r,t,e):void 0:o?function KNe(i){return[Lt({transform:"translateX(100%)"}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",transform:"translateX(0)"}))]}(r):function jNe(i,r){return[Lt({transform:"translateX(".concat("end"!==r?"-100%":"100%",")")}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",transform:"translateX(0)"}))]}(r,s):function zNe(i,r){return[Lt({overflow:"hidden",flexBasis:"0px"}),Ai("".concat(i,"ms ease-in"),Lt({flexBasis:"".concat(r,"px")}))]}(r,t)}(n):function ZNe(i){var r=i.animation.duration,t=i.width,e=i.miniWidth,n=i.mode,a=i.mini,o=i.rtl,s=i.position;return a&&"push"===n?function GNe(i,r,t){return[Lt({overflow:"hidden",flexBasis:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Lt({flexBasis:"".concat(t,"px")}))]}(r,t,e):a||"push"!==n?a||"overlay"!==n?a&&"overlay"===n?function WNe(i,r,t){return[Lt({width:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",width:"".concat(t,"px")}))]}(r,t,e):void 0:o?function qNe(i){return[Lt({transform:"translateX(0)"}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",transform:"translateX(100%)"}))]}(r):function $Ne(i,r){var t="end"!==r?"-100%":"100%";return[Lt({transform:"translateX(0)"}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",transform:"translateX(".concat(t,")")}))]}(r,s):function HNe(i,r){return[Lt({flexBasis:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",flexBasis:"0px"}))]}(r,t)}(n);this.createPlayer(a,this.element.nativeElement).play()}},{key:"createPlayer",value:function(e,n){var a=this,s=this.builder.build(e).create(n);return s.onDone(function(){s&&(a.animationEnd.emit(),s.destroy(),s=null)}),s}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(zp),m(Y),m(MD))},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,N7,5),he(n,P7,5),he(n,L7,5),he(n,F7,5)),2&t&&(P(a=B())&&(e.drawerTemplate=a.first),P(a=B())&&(e.footerTemplate=a.first),P(a=B())&&(e.headerTemplate=a.first),P(a=B())&&(e.itemTemplate=a.first))},hostVars:13,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("transform",e.overlayTransofrmStyles)("flex-basis",e.flexStyles,"px"),ue("k-widget",e.hostClasses)("k-drawer",e.hostClasses)("k-drawer-start",e.startPositionClass)("k-drawer-end",e.endPositionClass))},inputs:{mode:"mode",position:"position",mini:"mini",expanded:"expanded",width:"width",miniWidth:"miniWidth",autoCollapse:"autoCollapse",items:"items",animation:"animation"},outputs:{expand:"expand",collapse:"collapse",select:"select",expandedChange:"expandedChange"},exportAs:["kendoDrawer"],features:[de([Y,MD,{provide:Et,useValue:"kendo.drawer"}])],decls:1,vars:1,consts:[["class","k-drawer-wrapper",3,"width",4,"ngIf"],[1,"k-drawer-wrapper"],[4,"ngIf"],["kendoDrawerList","",1,"k-drawer-items",3,"items","mini","expanded","itemTemplate","select"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&T(0,mIe,3,4,"div",0),2&t&&y("ngIf",e.expanded||e.mini)},directives:[U7,qe,En],encapsulation:2}),i}(),eFe=function(){var i=function(){function r(t){var e=this;p(this,r),this.localizationService=t,this.rtl=!1,this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){e.rtl=n.rtl,e.direction=e.rtl?"rtl":"ltr"})}return v(r,[{key:"hostClass",get:function(){return!0}},{key:"overlayClass",get:function(){return"overlay"===this.drawer.mode}},{key:"miniClass",get:function(){return this.drawer.mini}},{key:"pushClass",get:function(){return"push"===this.drawer.mode}},{key:"isExpandedClass",get:function(){return this.drawer.expanded}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"overlay",get:function(){return Mi(this.drawer)&&this.drawer.expanded&&"overlay"===this.drawer.mode}},{key:"closeDrawer",value:function(){this.overlay&&this.drawer.autoCollapse&&this.drawer.toggle(!1)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer-container"]],contentQueries:function(t,e,n){var a;1&t&&he(n,H7,5),2&t&&P(a=B())&&(e.drawer=a.first)},hostVars:11,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-drawer-container",e.hostClass)("k-drawer-overlay",e.overlayClass)("k-drawer-mini",e.miniClass)("k-drawer-push",e.pushClass)("k-drawer-expanded",e.isExpandedClass))},features:[de([Y,{provide:Et,useValue:"kendo.drawer.container"}])],ngContentSelectors:_a,decls:2,vars:1,consts:[["class","k-overlay",3,"click",4,"ngIf"],[1,"k-overlay",3,"click"]],template:function(t,e){1&t&&(kn(),T(0,_Ie,1,0,"div",0),dn(1)),2&t&&y("ngIf",e.overlay)},directives:[qe],encapsulation:2}),i}(),tFe=function(){var i=v(function r(){p(this,r),this.hostClasses=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer-content"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-drawer-content",e.hostClasses)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),K7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperStepTemplate",""]]}),i}(),j7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperLabelTemplate",""]]}),i}(),W7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperIndicatorTemplate",""]]}),i}(),su={};su[J.ArrowLeft]="left",su[J.ArrowRight]="right",su[J.ArrowUp]="up",su[J.ArrowDown]="down",su[J.Home]="home",su[J.End]="end",su[J.Enter]="enter",su[J.Space]="enter";var ZI=Object.assign({},su);ZI[J.ArrowLeft]="right",ZI[J.ArrowRight]="left";var iFe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),YI=function(){var i=function(){function r(t,e,n){p(this,r),this.localization=t,this.ngZone=e,this.changeDetector=n,this.currentStep=0,this.triggerValidation=new O,this.focusedStepChange=new O}return v(r,[{key:"handlers",get:function(){return this.localization.rtl?ZI:su}},{key:"emit",value:function(e,n){var a=this.owner;return ut(a[e])&&a[e].emit(n),n.isDefaultPrevented()}},{key:"onActivate",value:function(e,n){var a=this,o=new iFe({index:e,step:this.owner.steps[e],originalEvent:n,sender:this.owner});this.ngZone.run(function(){a.emit("activate",o)||(a.currentStep=e,a.owner.currentStepChange.emit(e),a.changeDetector.detectChanges())})}},{key:"validateSteps",value:function(){this.triggerValidation.emit()}},{key:"keydown",value:function(e){var a=this.handlers[e.keyCode];!Mi(this.focusedStep||this.currentStep)||a&&(e.preventDefault(),this[a](e))}},{key:"left",value:function(){!this.isHorizontal||this.focusPrevStep()}},{key:"right",value:function(){!this.isHorizontal||this.focusNextStep()}},{key:"up",value:function(){this.isHorizontal||this.focusPrevStep()}},{key:"down",value:function(){this.isHorizontal||this.focusNextStep()}},{key:"home",value:function(){this.focusedStep=0,this.focusedStepChange.emit()}},{key:"end",value:function(){this.focusedStep=this.owner.steps.length-1,this.focusedStepChange.emit()}},{key:"enter",value:function(e){this.focusedStep!==this.currentStep&&(this.isStepDisabled(this.focusedStep)||this.owner.linear&&!1===this.isPrevOrNextStep(this.focusedStep)||this.onActivate(this.focusedStep,e))}},{key:"focus",value:function(e){this.focusedStep=e}},{key:"focusNextStep",value:function(){this.focusedStep0&&(this.focusedStep-=1,this.focusedStepChange.emit())}},{key:"isStepDisabled",value:function(e){return this.owner.steps[e].disabled}},{key:"isPrevOrNextStep",value:function(e){return e===this.currentStep+1||e===this.currentStep-1}},{key:"isHorizontal",get:function(){return"horizontal"===this.owner.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y),oe(be),oe(nt))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),$7="data-kendo-stepper-index",q7=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.service=t,this.localization=e,this.ngZone=n,this.isStepValid=void 0,this.shouldCheckValidity=void 0,jt(fl),this.subs=this.service.focusedStepChange.subscribe(function(){a.onFocusedStepChange()}),this.subs.add(this.service.triggerValidation.subscribe(function(){a.handleValidityChecks()}))}return v(r,[{key:"errorStepClass",get:function(){return!!Mi(this.isStepValid)&&!this.isStepValid}},{key:"successStepClass",get:function(){return!!Mi(this.isStepValid)&&this.isStepValid}},{key:"ngOnInit",value:function(){this.handleValidityChecks()}},{key:"ngOnChanges",value:function(e){e.current&&!e.current.firstChange&&this.handleValidityChecks()}},{key:"ngOnDestroy",value:function(){this.subs&&this.subs.unsubscribe()}},{key:"onFocusedStepChange",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.index===e.service.focusedStep&&e.stepLink.nativeElement.focus()})}},{key:"onFocus",value:function(){this.service.focus(this.index)}},{key:"tabIndexAttr",get:function(){return this.index===(this.service.focusedStep||this.service.currentStep)?0:-1}},{key:"indicatorIconClasses",get:function(){return this.step.icon?"k-icon k-i-".concat(this.step.icon):this.step.iconClass?"".concat(this.step.iconClass):this.shouldCheckValidity?this.validationIconClasses:void 0}},{key:"showIndicatorIcon",get:function(){return!!(this.shouldCheckValidity||this.step.icon||this.step.iconClass)}},{key:"showLabelIcon",get:function(){return!(!this.shouldCheckValidity||"label"!==this.type&&!this.step.icon&&!this.step.iconClass)}},{key:"showLabelText",get:function(){return"label"===this.type||"full"===this.type}},{key:"validationIconClasses",get:function(){return this.isStepValid?this.successIcon?"".concat(this.successIcon):"k-icon k-i-check":this.errorIcon?"".concat(this.errorIcon):"k-icon k-i-warning"}},{key:"indicatorText",get:function(){return this.step.text||this.index+1}},{key:"updateStepValidity",value:function(){return"boolean"==typeof this.step.isValid?this.step.isValid:"function"==typeof this.step.isValid?this.step.isValid(this.index):void 0}},{key:"showIndicator",get:function(){return"indicator"===this.type||"full"===this.type}},{key:"showLabel",get:function(){return"label"===this.type||"full"===this.type||this.step.optional}},{key:"optionalText",get:function(){return this.localization.get("optional")}},{key:"transitionDuration",get:function(){return this.service.owner.animationDuration}},{key:"_shouldCheckValidity",value:function(){if(Mi(this.step.validate)){if("boolean"==typeof this.step.validate)return this.step.validate;if("function"==typeof this.step.validate)return this.step.validate(this.index)}return Mi(this.step.isValid)&&this.index0&&(this._steps=e)}},{key:"ngOnInit",value:function(){this.applyHostStyling()}},{key:"ngOnChanges",value:function(e){e.steps&&!e.steps.firstChange&&this.applyHostStyling(),e.orientation&&(this.resetHostStyling(),this.applyHostStyling())}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"validateSteps",value:function(){this.stepperService.validateSteps()}},{key:"applyHostStyling",value:function(){var e="horizontal"===this.orientation?"grid-template-columns":"grid-template-rows",n="repeat(".concat(2*this.steps.length,", 1fr)");this.renderer.setStyle(this.elem.nativeElement,e,n)}},{key:"resetHostStyling",value:function(){this.renderer.removeStyle(this.elem.nativeElement,"grid-template-columns"),this.renderer.removeStyle(this.elem.nativeElement,"grid-template-rows")}},{key:"progressAnimation",get:function(){return{duration:this.animationDuration}}},{key:"animationDuration",get:function(){return"number"==typeof this.animation?this.animation:"boolean"==typeof this.animation&&this.animation?400:0}},{key:"stepsListStyling",get:function(){return"horizontal"===this.orientation?{"grid-column-start":1,"grid-column-end":-1}:{"grid-row-start":1,"grid-row-end":-1}}},{key:"progressBarStyling",get:function(){return"horizontal"===this.orientation?{"grid-column-start":2,"grid-column-end":2*this.steps.length}:{"grid-row-start":2,"grid-row-end":2*this.steps.length}}},{key:"onListKeydown",value:function(e){this.stepperService.keydown(e)}},{key:"onListClick",value:function(e){e.stepIdx!==e.currentStep?e.linear&&!1===this.stepperService.isPrevOrNextStep(e.stepIdx)||this.stepperService.onActivate(e.stepIdx,e.originalEvent):this.stepperService.focus(e.stepIdx)}},{key:"isHorizontal",get:function(){return"horizontal"===this.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(Y),m(YI))},i.\u0275cmp=L({type:i,selectors:[["kendo-stepper"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,K7,5),he(n,j7,5),he(n,W7,5)),2&t&&(P(a=B())&&(e.stepTemplate=a.first),P(a=B())&&(e.labelTemplate=a.first),P(a=B())&&(e.indicatorTemplate=a.first))},hostVars:10,hostBindings:function(t,e){2&t&&(ie("role",e.ariaRole)("dir",e.direction),Qe("display",e.displayStyle),ue("k-widget",e.hostClasses)("k-stepper",e.hostClasses)("k-stepper-linear",e.linearClass))},inputs:{stepType:"stepType",linear:"linear",orientation:"orientation",currentStep:"currentStep",steps:"steps",successIcon:"successIcon",errorIcon:"errorIcon",animation:"animation"},outputs:{activate:"activate",currentStepChange:"currentStepChange"},exportAs:["kendoStepper"],features:[de([Y,YI,{provide:Et,useValue:"kendo.stepper"}]),Ie],decls:3,vars:16,consts:function(){return[["kendoStepperLocalizedMessages","","optional",$localize(l7||(l7=le([":kendo.stepper.optional|The text for the optional segment of the step label:Optional"])))],["kendoStepperList","",1,"k-step-list",3,"stepType","linear","orientation","steps","currentStep","successIcon","errorIcon","indicatorTemplate","labelTemplate","stepTemplate","ngStyle","listKeydown","listClick"],[3,"animation","max","label","orientation","reverse","value","ngStyle",4,"ngIf"],[3,"animation","max","label","orientation","reverse","value","ngStyle"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"ol",1),Q("listKeydown",function(a){return e.onListKeydown(a)})("listClick",function(a){return e.onListClick(a)}),x(),T(2,VIe,1,8,"kendo-progressbar",2)),2&t&&(k(1),ue("k-step-list-horizontal",e.isHorizontal)("k-step-list-vertical",!e.isHorizontal),y("stepType",e.stepType)("linear",e.linear)("orientation",e.orientation)("steps",e.steps)("currentStep",e.currentStep)("successIcon",e.successIcon)("errorIcon",e.errorIcon)("indicatorTemplate",null==e.indicatorTemplate?null:e.indicatorTemplate.templateRef)("labelTemplate",null==e.labelTemplate?null:e.labelTemplate.templateRef)("stepTemplate",null==e.stepTemplate?null:e.stepTemplate.templateRef)("ngStyle",e.stepsListStyling),k(1),y("ngIf",e.steps.length>0))},directives:[X7,o7,Z7,Gi,qe],encapsulation:2}),i}(),oFe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(RD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-stepper-messages"]],features:[de([{provide:RD,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),J7="primary",sFe=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.element=e,this.hostClass=!0,this.border=!1,this._themeColor=J7,this._size="medium",this._fillMode="solid",this._rounded="full",jt(fl)}return v(r,[{key:"borderClass",get:function(){return this.border}},{key:"flexBasis",get:function(){return this.width}},{key:"shape",set:function(e){this.rounded=function(r){return oNe[r]||"none"}(e)}},{key:"size",get:function(){return this._size},set:function(e){if(e!==this._size){var n=e||"medium";this.handleClasses("size",n),this._size=n}}},{key:"rounded",get:function(){return this._rounded},set:function(e){if(e!==this._rounded){var n=e||"full";this.handleClasses("rounded",n),this._rounded=n}}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){e!==this._themeColor&&(this._themeColor=e||J7,this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor))}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){e!==this.fillMode&&(this._fillMode=e||"solid",this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor))}},{key:"fill",set:function(e){this.fillMode=e}},{key:"avatarWidth",get:function(){return this.width}},{key:"avatarHeight",get:function(){return this.height}},{key:"ngOnInit",value:function(){this.verifyProperties()}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded"].forEach(function(a){e.handleClasses(a,e[a])}),this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor)}},{key:"iconClasses",value:function(){return this.icon?"k-icon k-i-".concat(this.icon):this.iconClass?"".concat(this.iconClass):void 0}},{key:"customAvatar",get:function(){return!(this.imageSrc||this.initials||this.icon||this.iconClass)}},{key:"verifyProperties",value:function(){if(xt()&&[this.icon||this.iconClass,this.imageSrc,this.initials].filter(function(a){return a}).length>1)throw new Error("\n Invalid property configuration given.\n The kendo-avatar component can accept only one of:\n icon, imageSrc or initials properties.\n ")}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(v7[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(v7[n]):""};case"rounded":return{toRemove:"k-rounded-".concat(p7[e]),toAdd:"none"!==n?"k-rounded-".concat(p7[n]):""}}}("avatar",e,this[e],n);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleFillModeAndThemeColorClasses",value:function(e,n){var a=this,o=this.element.nativeElement;Array.from(o.classList).filter(function(u){return u.startsWith("k-avatar-solid")||u.startsWith("k-avatar-outline")}).forEach(function(u){return a.renderer.removeClass(o,u)}),"none"!==e&&this.renderer.addClass(o,"k-avatar-".concat(e)),"none"!==e&&"none"!==n&&this.renderer.addClass(o,"k-avatar-".concat(e,"-").concat(n))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-avatar"]],hostVars:10,hostBindings:function(t,e){2&t&&(Qe("flex-basis",e.flexBasis)("width",e.avatarWidth)("height",e.avatarHeight),ue("k-avatar",e.hostClass)("k-avatar-bordered",e.borderClass))},inputs:{shape:"shape",size:"size",rounded:"rounded",themeColor:"themeColor",fillMode:"fillMode",fill:"fill",border:"border",iconClass:"iconClass",width:"width",height:"height",cssStyle:"cssStyle",initials:"initials",icon:"icon",imageSrc:"imageSrc"},ngContentSelectors:_a,decls:4,vars:4,consts:[[4,"ngIf"],[1,"k-avatar-image"],[3,"src","ngStyle"],[1,"k-avatar-text",3,"ngStyle"],[1,"k-avatar-icon",3,"ngStyle","ngClass"]],template:function(t,e){1&t&&(kn(),T(0,GIe,1,0,"ng-content",0),T(1,UIe,3,2,"ng-container",0),T(2,zIe,3,2,"ng-container",0),T(3,HIe,2,2,"ng-container",0)),2&t&&(y("ngIf",e.customAvatar),k(1),y("ngIf",e.imageSrc),k(1),y("ngIf",e.initials),k(1),y("ngIf",e.icon||e.iconClass))},directives:[qe,Gi,Ft],encapsulation:2}),i}(),lFe=function(){var i=function(){function r(t){var e=this;p(this,r),this.localizationService=t,this.hostClass=!0,this.orientation="vertical",this.width="285px",this.rtl=!1,jt(fl),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){e.rtl=n.rtl,e.direction=e.rtl?"rtl":"ltr"})}return v(r,[{key:"widthStyle",get:function(){return this.width}},{key:"vertical",get:function(){return"vertical"===this.orientation}},{key:"horizontal",get:function(){return"horizontal"===this.orientation}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-card"]],hostVars:11,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("width",e.widthStyle),ue("k-widget",e.hostClass)("k-card",e.hostClass)("k-card-vertical",e.vertical)("k-card-horizontal",e.horizontal))},inputs:{orientation:"orientation",width:"width"},features:[de([Y,{provide:Et,useValue:"kendo.card.component"}])],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),uFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-header"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-header",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),cFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-body"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-body",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),dFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-footer"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-footer",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),hFe=function(){var i=function(){function r(){p(this,r),this.hostClass=!0,this.orientation="horizontal",this.layout="start",this.action=new O}return v(r,[{key:"stretchedClass",get:function(){return"stretched"===this.layout}},{key:"startClass",get:function(){return"start"===this.layout}},{key:"endClass",get:function(){return"end"===this.layout}},{key:"centerClass",get:function(){return"center"===this.layout}},{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}},{key:"actions",set:function(e){Array.isArray(e)?this.actionsArray=e:e instanceof $e&&(this.actionsTemplate=e)}},{key:"onClick",value:function(e){this.action.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-actions"]],hostVars:14,hostBindings:function(t,e){2&t&&ue("k-card-actions",e.hostClass)("k-card-actions-stretched",e.stretchedClass)("k-card-actions-start",e.startClass)("k-card-actions-end",e.endClass)("k-card-actions-center",e.centerClass)("k-card-actions-vertical",e.verticalClass)("k-card-actions-horizontal",e.horizontalClass)},inputs:{orientation:"orientation",layout:"layout",actions:"actions"},outputs:{action:"action"},ngContentSelectors:_a,decls:3,vars:3,consts:[[4,"ngIf"],["type","button","class","k-button",3,"k-primary","k-flat","click",4,"ngFor","ngForOf"],["type","button",1,"k-button",3,"click"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(kn(),T(0,KIe,1,0,"ng-content",0),T(1,WIe,2,1,"ng-container",0),T(2,qIe,1,1,null,0)),2&t&&(y("ngIf",!e.actionsArray&&!e.actionsTemplate),k(1),y("ngIf",e.actionsArray),k(1),y("ngIf",e.actionsTemplate))},directives:[qe,gn,En],encapsulation:2}),i}(),fFe=function(){var i=function(){function r(){p(this,r),this.hostClass=!0,this.orientation="horizontal"}return v(r,[{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardSeparator",""]],hostVars:8,hostBindings:function(t,e){2&t&&(Qe("color",e.color),ue("k-card-separator",e.hostClass)("k-separator-vertical",e.verticalClass)("k-separator-horizontal",e.horizontalClass))},inputs:{color:"color",orientation:"orientation"}}),i}(),vFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardTitle",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-title",e.hostClass)}}),i}(),pFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardSubtitle",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-subtitle",e.hostClass)}}),i}(),gFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardMedia",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-media",e.hostClass)}}),i}(),t9=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoExpansionPanelTitleDirective",""]]}),i}(),yFe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),QI="k-hidden",CFe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.renderer=t,this.hostElement=e,this.ngZone=n,this.localizationService=a,this.builder=o,this.title="",this.subtitle="",this.disabled=!1,this.animation=!0,this.expandedChange=new O,this.action=new O,this.expand=new O,this.collapse=new O,this.hostClass=!0,this.tabindex=0,this.focused=!1,this.animationEnd=new O,this.subscriptions=new Je,this._expanded=!1,jt(fl),this.direction=a.rtl?"rtl":"ltr"}return v(r,[{key:"expanded",get:function(){return this._expanded},set:function(e){e!==this.expanded&&(this._expanded=e,this.expanded?this.removeContentHiddenClass():this.addContentHiddenClass())}},{key:"expandedClass",get:function(){return this.expanded&&!this.disabled}},{key:"focusClass",get:function(){return this.focused}},{key:"disabledClass",get:function(){return this.disabled}},{key:"onComponentBlur",value:function(){this.focused&&(this.focused=!1)}},{key:"onComponentFocus",value:function(){this.focused||(this.focused=!0)}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"title"),this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){this.initDomEvents(),this.expanded||this.renderer.addClass(this.content.nativeElement,QI)}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"initDomEvents",value:function(){var e=this;!this.hostElement||this.disabled||this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(e.hostElement.nativeElement,"keydown",e.keyDownHandler.bind(e)))})}},{key:"keyDownHandler",value:function(e){var n=this;e.keyCode!==J.Enter&&e.keyCode!==J.Space||TD(e.target,"k-expander")&&(e.preventDefault(),this.ngZone.run(function(){n.onHeaderAction()}))}},{key:"onHeaderClick",value:function(e){!ED(e.target)&&!this.disabled&&this.onHeaderAction()}},{key:"onHeaderAction",value:function(){this.focused=!0;var e=new yFe;if(e.action=this.expanded?"collapse":"expand",this.action.emit(e),!e.isDefaultPrevented()){if(this.setExpanded(!this.expanded),this.expanded&&this.removeContentHiddenClass(),this.animation)return void this.animateContent();this.expanded||this.addContentHiddenClass(),this.emitExpandCollapseEvent()}}},{key:"indicatorClasses",get:function(){return this.expanded?this.collapseIcon?this.collapseIcon:"k-icon k-i-arrow-chevron-up":this.expandIcon?this.expandIcon:"k-icon k-i-arrow-chevron-down"}},{key:"toggle",value:function(e){var n=this.expanded,a=Mi(e)?e:!n;if(a!==n){if(this.setExpanded(a),this.expanded&&this.removeContentHiddenClass(),this.animation)return void this.animateContent();this.expanded||this.addContentHiddenClass(),this.emitExpandCollapseEvent()}}},{key:"setExpanded",value:function(e){this._expanded=e,this.expandedChange.emit(e)}},{key:"animateContent",value:function(){var e=this,n="boolean"==typeof this.animation?200:this.animation,a=getComputedStyle(this.content.nativeElement).height,o=this.expanded?function mFe(i,r){return[Lt({overflow:"hidden",display:"block",height:0}),Ai("".concat(i,"ms ease-in"),Lt({height:"".concat(r)}))]}(n,a):function _Fe(i,r){return[Lt({overflow:"hidden",height:"".concat(r)}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",height:0}))]}(n,a),s=this.createPlayer(o,this.content.nativeElement);this.animationEnd.pipe(It(1)).subscribe(function(){e.expanded||e.addContentHiddenClass(),e.emitExpandCollapseEvent()}),s.play()}},{key:"createPlayer",value:function(e,n){var a=this,s=this.builder.build(e).create(n);return s.onDone(function(){s&&(a.animationEnd.emit(),s.destroy(),s=null)}),s}},{key:"emitExpandCollapseEvent",value:function(){this[this.expanded?"expand":"collapse"].emit()}},{key:"addContentHiddenClass",value:function(){this.renderer.addClass(this.content.nativeElement,QI)}},{key:"removeContentHiddenClass",value:function(){this.renderer.removeClass(this.content.nativeElement,QI)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(be),m(Y),m(zp))},i.\u0275cmp=L({type:i,selectors:[["kendo-expansionpanel"]],contentQueries:function(t,e,n){var a;1&t&&he(n,t9,5),2&t&&P(a=B())&&(e.titleTemplate=a.first)},viewQuery:function(t,e){var n;1&t&&ge(XIe,7),2&t&&P(n=B())&&(e.content=n.first)},hostVars:11,hostBindings:function(t,e){1&t&&Q("blur",function(){return e.onComponentBlur()})("focus",function(){return e.onComponentFocus()}),2&t&&(ie("aria-disabled",e.disabledClass)("dir",e.direction)("tabindex",e.tabindex),ue("k-expander",e.hostClass)("k-expanded",e.expandedClass)("k-state-focus",e.focusClass)("k-state-disabled",e.disabledClass))},inputs:{title:"title",subtitle:"subtitle",disabled:"disabled",expanded:"expanded",expandIcon:"expandIcon",collapseIcon:"collapseIcon",animation:"animation"},outputs:{expandedChange:"expandedChange",action:"action",expand:"expand",collapse:"collapse"},exportAs:["kendoExpansionPanel"],features:[de([Y,{provide:Et,useValue:"kendo.expansionpanel"}])],ngContentSelectors:_a,decls:9,vars:7,consts:[["role","button",3,"click"],[4,"ngIf"],[1,"k-expander-indicator"],[3,"ngClass"],[1,"k-expander-content-wrapper"],["content",""],[1,"k-expander-content"],["class","k-expander-title",4,"ngIf"],[1,"k-spacer"],["class","k-expander-sub-title",4,"ngIf"],[1,"k-expander-title"],[1,"k-expander-sub-title"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(kn(),A(0,"div",0),Q("click",function(a){return e.onHeaderClick(a)}),T(1,QIe,4,2,"ng-container",1),T(2,eNe,1,1,null,1),A(3,"span",2),z(4,"span",3),x()(),A(5,"div",4,5)(7,"div",6),dn(8),x()()),2&t&&(ue("k-expander-header",!0),ie("aria-expanded",e.expanded&&!e.disabled),k(1),y("ngIf",!e.titleTemplate),k(1),y("ngIf",e.titleTemplate),k(2),y("ngClass",e.indicatorClasses),k(3),ie("aria-hidden",!e.expanded))},directives:[qe,En,Ft],encapsulation:2}),i}(),JI=function(r){return r?+r:void 0},n9=function(r,t){for(var e=0;e5&&void 0!==arguments[5]&&arguments[5],s=t.getBoundingClientRect(),l=(s.height-e.rows)/(n.height+e.rows),u=r.y-s.y,c=r.x-s.x,d=s.right-r.x,h=Math.floor((o?d:c)/(e.columns+n.width)),f=Math.min(h+1,a),g=Math.floor(u/(e.rows+n.height)),_=Math.min(g+1,l),C=Math.max(f,0),w=Math.max(_,0);return{row:w,col:C}},a9=["ew","ns","nwse"],o9=["ew","ns","nesw"],cg={ew:{width:9,overlapX:5},ns:{height:9,overlapY:5},nwse:{width:25,height:25,overlapX:18,overlapY:18},nesw:{width:25,height:25,overlapX:18,overlapY:18}},DFe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l,u,c){var d;return p(this,t),(d=r.call(this)).item=e,d.items=n,d.newIndex=a,d.oldIndex=o,d.newCol=s,d.oldCol=l,d.newRow=u,d.oldRow=c,d}return v(t)}(Is),EFe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u;return p(this,t),(u=r.call(this)).item=e,u.items=n,u.newRowSpan=a,u.oldRowSpan=o,u.newColSpan=s,u.oldColSpan=l,u}return v(t)}(Is),eN=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.zone=t,this.renderer=e,this.localization=n,this.reorderable=new xi(null),this.resizable=new xi(null),this.reorder=new Ot,this.resize=new Ot,this.lastDragCursorOffset={x:0,y:0},this.localizationSubscription=this.localization.changes.subscribe(function(o){return a.rtl=o.rtl})}return v(r,[{key:"colStart",get:function(){return this.currentColStart}},{key:"rowStart",get:function(){return this.currentRowStart}},{key:"itemWrapper",get:function(){return this.draggedItemWrapper}},{key:"order",get:function(){return this.targetOrder}},{key:"ngOnDestroy",value:function(){this.localizationSubscription.unsubscribe()}},{key:"handlePress",value:function(e){var n=this,a=!!e.target.classList.contains("k-resize-handle"),o=VI(e.target,function(d){return d.classList.contains("k-tilelayout-item")},this.tileLayoutSettings.tileLayoutElement),s=VI(e.target,function(d){return d.classList.contains("k-tilelayout-item-header")},this.tileLayoutSettings.tileLayoutElement);if(o){this.zone.run(function(){n.draggedItemWrapper=o,n.draggedItem=n.tileLayoutSettings.items.find(function(d){return d.order===+o.style.order})});var l=!a&&this.reorderable.getValue()&&this.draggedItem.reorderable&&s;if(!l&&!a)return;e.preventDefault(),this.zone.run(function(){n.reordering=l,n.resizing=a});var u=this.draggedItemWrapper.getBoundingClientRect();if(this.zone.run(function(){n.offset={top:e.clientY-u.top,left:e.clientX-u.left,x:u.x,y:u.y,width:u.width,height:u.height},n.targetSize={rowSpan:n.draggedItem.rowSpan,colSpan:n.draggedItem.colSpan},n.cellSize={width:(u.width-(n.targetSize.colSpan-1)*n.tileLayoutSettings.gap.columns)/n.targetSize.colSpan,height:(u.height-(n.targetSize.rowSpan-1)*n.tileLayoutSettings.gap.rows)/n.targetSize.rowSpan},n.lastDragCursorOffset={x:e.clientX,y:e.clientY}}),Co(this.renderer,this.draggedItemWrapper,{left:u.left+window.pageXOffset+"px",top:u.top+window.pageYOffset+"px",width:u.width+"px",height:u.height+"px",zIndex:10}),Co(this.renderer,this.tileLayoutSettings.hintElement,{display:"flex",height:u.height-2+"px"}),this.zone.run(function(){return n.targetOrder=n.draggedItem.order}),Co(this.renderer,this.draggedItemWrapper,{position:"absolute"}),this.reorderable.getValue()&&!a){this.zone.run(function(){n.currentColStart=n.draggedItem.colStart,n.currentRowStart=n.draggedItem.rowStart});var c=this.draggedItem.elem.nativeElement.querySelector(".k-tilelayout-item-header");this.renderer.addClass(c,"k-cursor-grabbing")}else this.resizable&&a&&this.zone.run(function(){n.startingPoint={top:e.clientY,left:e.clientX},n.currentResizingColSpan=n.draggedItem.colSpan,n.currentResizingRowSpan=n.draggedItem.rowSpan,n.draggedItem.col&&(n.currentColStart=n.draggedItem.col.toString()),n.draggedItem.row&&(n.currentRowStart=n.draggedItem.row.toString()),n.direction=e.target.classList[1]})}}},{key:"handleDrag",value:function(e){this.draggedItemWrapper&&(this.reordering?this.reorderItems(e):this.resizing&&this.resizeItem(e),this.lastDragCursorOffset={x:e.clientX,y:e.clientY})}},{key:"handleRelease",value:function(e){var n=this;if(e.preventDefault(),this.reordering){var a=this.draggedItem.order,o=this.draggedItem.col,s=this.draggedItem.row,l=JI(this.currentColStart),u=JI(this.currentRowStart);if(n9([this.targetOrder,l,u],[a,o,s])){var c=new DFe(this.draggedItem,this.tileLayoutSettings.items,this.targetOrder,a,JI(this.currentColStart),o,u,s);this.reorder.next(c),c.isDefaultPrevented()||(this.zone.run(this.targetOrder>a?function(){for(var w=function(R){n.tileLayoutSettings.items.find(function(N){return N.order===R}).order=R-1},E=a+1;E<=n.targetOrder;E++)w(E)}:function(){for(var w=function(R){n.tileLayoutSettings.items.find(function(N){return N.order===R}).order=R+1},E=n.targetOrder;E0?"right":l<0?"left":void 0,d=e.clientY-this.lastDragCursorOffset.y>0?"down":l<0?"up":void 0,h=this.draggedItemWrapper.getBoundingClientRect(),f=this.tileLayoutSettings.gap.columns,g=this.tileLayoutSettings.gap.rows;if(c&&this.draggedItem.col){var _=pf({x:"right"===c?h.right-f:h.left+f,y:e.clientY},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),w=this.getTargetCol(_.col,c);this.currentColStart=w.toString()}if(d&&this.draggedItem.row){var E=pf({x:e.clientX,y:"down"===d?h.bottom-g:h.top+g},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),R=this.getTargetRow(E.row,d);this.currentRowStart=R.toString()}}var N=sthis.targetOrder;this.zone.run(function(){return n.targetOrder=s}),N?this.tileLayoutSettings.tileLayoutElement.insertBefore(this.tileLayoutSettings.hintElement,this.tileLayoutSettings.tileLayoutElement.firstChild):G&&this.tileLayoutSettings.tileLayoutElement.appendChild(this.tileLayoutSettings.hintElement),Co(this.renderer,this.draggedItemWrapper,{top:e.pageY-this.offset.top+"px",left:e.pageX-this.offset.left+"px"})}},{key:"resizeItem",value:function(e){var n=this;Co(this.renderer,this.tileLayoutSettings.tileLayoutElement,{cursor:this.direction.split("k-cursor-")[1]});var a=this.rtl?this.offset.width+(this.offset.x-e.clientX):this.offset.width+(e.clientX-this.startingPoint.left),o=this.offset.height+(e.clientY-this.startingPoint.top),s=this.tileLayoutSettings.hintElement.getBoundingClientRect(),l=s.width,u=s.height,c=e.clientX-this.lastDragCursorOffset.x,d=e.clientY-this.lastDragCursorOffset.y,h=this.draggedItem.col?this.draggedItem.col:pf({x:this.rtl?s.right:s.x,y:s.y},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl).col,f=(this.tileLayoutSettings.columns-h)*(this.cellSize.width+this.tileLayoutSettings.gap.columns)+this.cellSize.width,g=function(){if(Co(n.renderer,n.draggedItemWrapper,{width:Math.min(Math.max(a,n.cellSize.width),f)+"px"}),n.rtl&&a>n.cellSize.width){var w=n.tileLayoutSettings.columns*(n.cellSize.width+n.tileLayoutSettings.gap.columns),E=n.tileLayoutSettings.tileLayoutElement.getBoundingClientRect().right-w;Co(n.renderer,n.draggedItemWrapper,{left:Math.max(e.clientX,E)+"px"})}var M=a-l,R=n.draggedItem.elem.nativeElement.getBoundingClientRect(),ee=pf({x:n.rtl?R.right:R.x,y:R.y},n.tileLayoutSettings.tileLayoutElement,n.tileLayoutSettings.gap,n.cellSize,n.tileLayoutSettings.columns,n.rtl),K=n.rtl?c>0:c<0;M>.3*n.cellSize.width&&(n.rtl?c<0:c>0)&&ee.col+n.currentResizingColSpan<=n.tileLayoutSettings.columns?n.currentResizingColSpan++:n.currentResizingColSpan>1&&K&&M<-.7*n.cellSize.width&&n.currentResizingColSpan--,Co(n.renderer,n.tileLayoutSettings.hintElement,{gridColumnEnd:"span ".concat(n.currentResizingColSpan)})};this.direction.indexOf("ew")>-1?g():(this.direction.indexOf("ns")>-1||g(),function(){Co(n.renderer,n.draggedItemWrapper,{height:Math.max(o,n.cellSize.height)+"px"});var w=o-u;w>.3*n.cellSize.height&&d>0?n.currentResizingRowSpan++:n.currentResizingRowSpan>1&&d<0&&w<-.7*n.cellSize.height&&n.currentResizingRowSpan--,Co(n.renderer,n.tileLayoutSettings.hintElement,{gridRowEnd:"span ".concat(n.currentResizingRowSpan)}),Co(n.renderer,n.tileLayoutSettings.hintElement,{height:"".concat(n.calculateHintHeight(),"px")})}())}},{key:"cleanUp",value:function(){if(this.targetOrder=this.currentResizingColSpan=this.currentColStart=this.currentResizingRowSpan=this.currentRowStart=void 0,this.resizing=this.reordering=!1,this.direction=null,this.draggedItemWrapper){var e=this.draggedItemWrapper.querySelector(".k-cursor-grab");e&&this.renderer.removeClass(e,"k-cursor-grabbing"),Co(this.renderer,this.draggedItemWrapper,{top:"",left:"",display:"",width:"",height:"",zIndex:"",position:""}),Co(this.renderer,this.tileLayoutSettings.hintElement,{display:"none",height:"auto"}),Co(this.renderer,this.tileLayoutSettings.tileLayoutElement,{cursor:"default"}),this.draggedItemWrapper=this.offset=this.draggedItem=this.resizing=this.reordering=this.currentResizingColSpan=this.currentResizingRowSpan=this.startingPoint=void 0,this.lastDragCursorOffset={x:0,y:0}}}},{key:"targetSpan",value:function(){var e=this.draggedItem.elem.nativeElement.getBoundingClientRect(),n=pf({x:this.rtl?e.right:e.x,y:e.y},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),a=pf({x:this.rtl?e.x+.3*this.cellSize.width:e.right-.3*this.cellSize.width,y:e.bottom-.3*this.cellSize.height},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl);return{targetColSpan:a.col-n.col+1,targetRowSpan:a.row-n.row+1}}},{key:"getTargetCol",value:function(e,n){return this.rtl?"left"===n?e-this.draggedItem.colSpan+1:e:"right"===n?e-this.draggedItem.colSpan+1:e}},{key:"getTargetRow",value:function(e,n){return"down"===n?e-this.draggedItem.rowSpan+1:e}},{key:"calculateHintHeight",value:function(){return this.currentResizingRowSpan*this.cellSize.height+(this.currentResizingRowSpan-1)*this.tileLayoutSettings.gap.rows-2}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Ee),oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),tN=function(){var i=function(){function r(t,e){p(this,r),this.hostEl=t,this.renderer=e,this.hostClass=!0}return v(r,[{key:"reorderable",set:function(e){var n=this.hostEl.nativeElement;e?(this.renderer.addClass(n,"k-touch-action-none"),this.renderer.removeClass(n,"k-touch-action-auto")):(this.renderer.addClass(n,"k-touch-action-auto"),this.renderer.removeClass(n,"k-touch-action-none"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item-header"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-tilelayout-item-header",e.hostClass)("k-card-header",e.hostClass)},inputs:{reorderable:"reorderable"},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),u9=function(){var i=function(){function r(t,e){p(this,r),this.el=t,this.renderer=e}return v(r,[{key:"ngOnInit",value:function(){this.sizeHandle()}},{key:"setHorizontalPosition",value:function(e){this.renderer.setStyle(e,this.rtl?"left":"right",-cg[this.resizeDirection].overlapX+"px")}},{key:"setBottom",value:function(e){this.renderer.setStyle(e,"bottom",-cg[this.resizeDirection].overlapY+"px")}},{key:"sizeHandle",value:function(){var e=this.el.nativeElement,n=cg[this.resizeDirection].width?"".concat(cg[this.resizeDirection].width,"px"):"100%",a=cg[this.resizeDirection].height?"".concat(cg[this.resizeDirection].height,"px"):"100%";this.renderer.setStyle(e,"width",n),this.renderer.setStyle(e,"height",a),"ew"===this.resizeDirection?this.setHorizontalPosition(e):("ns"===this.resizeDirection||this.setHorizontalPosition(e),this.setBottom(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoTileLayoutResizeHandle",""]],inputs:{resizeDirection:"resizeDirection",rtl:"rtl"}}),i}(),c9=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.elem=t,this.renderer=e,this.localization=n,this.draggingService=a,this.rowSpan=1,this.colSpan=1,this.reorderable=!0,this.resizable=!0,this.itemClass=!0,this.subs=new Je,this.subs.add(this.localization.changes.subscribe(function(s){o.rtl=s.rtl})),this.subs.add(this.draggingService.resizable.subscribe(function(s){o.resizeDirections=s&&o.resizable?o.rtl?o9:a9:void 0}))}return v(r,[{key:"order",get:function(){return this._order},set:function(e){this._order=e,this.renderer.setStyle(this.elem.nativeElement,"order","".concat(this._order))}},{key:"colEnd",get:function(){return"span ".concat(this.colSpan)}},{key:"rowEnd",get:function(){return"span ".concat(this.rowSpan)}},{key:"colStart",get:function(){return Mi(this.col)?this.col.toString():void 0}},{key:"rowStart",get:function(){return Mi(this.row)?this.row.toString():void 0}},{key:"reorderableHeader",get:function(){return this.reorderable&&this.draggingService.reorderable.getValue()}},{key:"ngAfterViewInit",value:function(){var e=this;this.subs.add(this.draggingService.reorderable.subscribe(function(n){var a;e.toggleCursorClass(n&&e.reorderable),(null===(a=e.headers)||void 0===a?void 0:a.first)&&(e.headers.first.reorderable=n&&e.reorderable)}))}},{key:"ngOnChanges",value:function(e){e.reorderable&&!e.reorderable.firstChange&&this.toggleCursorClass(e.reorderable.currentValue&&this.draggingService.reorderable.getValue()),e.resizable&&(this.resizeDirections=this.resizable&&this.draggingService.resizable.getValue()?this.rtl?o9:a9:void 0)}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"toggleCursorClass",value:function(e){var n=this.elem.nativeElement.querySelector(".k-tilelayout-item-header");!n||(e?this.renderer.addClass(n,"k-cursor-grab"):this.renderer.removeClass(n,"k-cursor-grab"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Y),m(eN))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,tN,4),2&t&&P(a=B())&&(e.headers=a)},hostVars:12,hostBindings:function(t,e){2&t&&(Qe("grid-column-end",e.colEnd)("grid-row-end",e.rowEnd)("grid-column-start",e.colStart)("grid-row-start",e.rowStart),ue("k-tilelayout-item",e.itemClass)("k-card",e.itemClass))},inputs:{title:"title",rowSpan:"rowSpan",colSpan:"colSpan",order:"order",col:"col",row:"row",reorderable:"reorderable",resizable:"resizable"},features:[Ie],ngContentSelectors:_a,decls:3,vars:2,consts:[[3,"reorderable",4,"ngIf"],[4,"ngIf"],[3,"reorderable"],[1,"k-card-title"],["kendoTileLayoutResizeHandle","",3,"class","rtl","resizeDirection",4,"ngFor","ngForOf"],["kendoTileLayoutResizeHandle","",3,"rtl","resizeDirection"]],template:function(t,e){1&t&&(kn(),T(0,tNe,3,2,"kendo-tilelayout-item-header",0),dn(1),T(2,iNe,2,1,"ng-container",1)),2&t&&(y("ngIf",e.title),k(2),y("ngIf",e.resizable))},directives:[tN,qe,gn,u9],encapsulation:2}),i}(),nN={column:"k-grid-flow-col",row:"k-grid-flow-row","column-dense":"k-grid-flow-col-dense","row-dense":"k-grid-flow-row-dense"},TFe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.elem=t,this.renderer=e,this.localization=n,this.draggingService=a,this.zone=o,this.columns=1,this.columnWidth="1fr",this.reorderable=!1,this.resizable=!1,this.rowHeight="1fr",this.autoFlow="column",this.reorder=new O,this.resize=new O,this.hostClass=!0,this.subs=new Je,this._gap={rows:16,columns:16},jt(fl)}return v(r,[{key:"gap",get:function(){return this._gap},set:function(e){this._gap="number"==typeof e?{rows:e,columns:e}:Object.assign(this._gap,e)}},{key:"gapStyle",get:function(){return"".concat(this.gap.rows,"px ").concat(this.gap.columns,"px")}},{key:"currentColStart",get:function(){return this.draggingService.colStart}},{key:"currentRowStart",get:function(){return this.draggingService.rowStart}},{key:"draggedItemWrapper",get:function(){return this.draggingService.itemWrapper}},{key:"targetOrder",get:function(){return this.draggingService.order}},{key:"ngOnInit",value:function(){var e=this;this.applyColStyling(),this.applyRowStyling(),this.draggingService.reorderable.next(this.reorderable),this.draggingService.resizable.next(this.resizable),ut(this.reorder)&&this.subs.add(this.draggingService.reorder.subscribe(function(n){return e.reorder.emit(n)})),ut(this.resize)&&this.subs.add(this.draggingService.resize.subscribe(function(n){return e.resize.emit(n)})),this.subs.add(this.draggingService.reorderable.subscribe(function(n){n&&!e.draggable&&e.initializeDraggable()})),this.subs.add(this.draggingService.resizable.subscribe(function(n){n&&!e.draggable&&e.initializeDraggable()})),this.subs.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngAfterViewInit",value:function(){var e=this;this.draggingService.tileLayoutSettings=this.draggingServiceConfig(),this.applyAutoFlow(null,nN[this.autoFlow]),this.items.changes.subscribe(function(){e.setItemsOrder(),e.draggingService.tileLayoutSettings.items=e.items.toArray()})}},{key:"ngAfterContentInit",value:function(){this.setItemsOrder()}},{key:"ngOnChanges",value:function(e){(e.columns||e.columnWidth)&&this.applyColStyling(),e.rowHeight&&this.applyRowStyling(),e.reorderable&&this.draggingService.reorderable.next(e.reorderable.currentValue),e.resizable&&this.draggingService.resizable.next(e.resizable.currentValue),(e.gap||e.autoFlow||e.columns)&&(this.draggingService.tileLayoutSettings=this.draggingServiceConfig(),e.autoFlow&&this.applyAutoFlow(nN[e.autoFlow.previousValue]||"",nN[e.autoFlow.currentValue]))}},{key:"ngOnDestroy",value:function(){this.draggable&&this.draggable.destroy(),this.subs.unsubscribe()}},{key:"handlePress",value:function(e){this.draggingService.handlePress(e.originalEvent)}},{key:"handleDrag",value:function(e){this.draggingService.handleDrag(e.originalEvent)}},{key:"handleRelease",value:function(e){this.draggingService.handleRelease(e.originalEvent)}},{key:"applyColStyling",value:function(){var e="number"==typeof this.columnWidth?"".concat(this.columnWidth,"px"):this.columnWidth,n="repeat(".concat(this.columns,", ").concat(e,")");this.renderer.setStyle(this.elem.nativeElement,"grid-template-columns",n)}},{key:"applyRowStyling",value:function(){var e="number"==typeof this.rowHeight?"".concat(this.rowHeight,"px"):this.rowHeight,n="".concat(e);this.renderer.setStyle(this.elem.nativeElement,"grid-auto-rows",n)}},{key:"draggingServiceConfig",value:function(){return{tileLayoutElement:this.elem?this.elem.nativeElement:void 0,hintElement:this.hint?this.hint.nativeElement:void 0,gap:this.gap,columns:this.columns,autoFlow:this.autoFlow,items:this.items?this.items.toArray():[]}}},{key:"initializeDraggable",value:function(){var e=this;this.draggable=new fI({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular(function(){return e.draggable.bindTo(e.elem.nativeElement)})}},{key:"applyAutoFlow",value:function(e,n){var a=this.elem.nativeElement;e&&this.renderer.removeClass(a,e),"none"!==this.autoFlow&&Mi(n)&&this.renderer.addClass(a,n)}},{key:"setItemsOrder",value:function(){this.items.forEach(function(e,n){Mi(e.order)||(e.order=n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Y),m(eN),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout"]],contentQueries:function(t,e,n){var a;1&t&&he(n,c9,4),2&t&&P(a=B())&&(e.items=a)},viewQuery:function(t,e){var n;1&t&&ge(rNe,5),2&t&&P(n=B())&&(e.hint=n.first)},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("gap",e.gapStyle)("padding",e.gapStyle),ue("k-widget",e.hostClass)("k-tilelayout",e.hostClass))},inputs:{columns:"columns",columnWidth:"columnWidth",gap:"gap",reorderable:"reorderable",resizable:"resizable",rowHeight:"rowHeight",autoFlow:"autoFlow"},outputs:{reorder:"reorder",resize:"resize"},features:[de([Y,eN,{provide:Et,useValue:"kendo.tilelayout.component"}]),Ie],ngContentSelectors:_a,decls:3,vars:14,consts:[[1,"k-layout-item-hint","k-layout-item-hint-reorder"],["hint",""]],template:function(t,e){1&t&&(kn(),dn(0),z(1,"div",0,1)),2&t&&(k(1),Qe("display","none")("order",e.targetOrder)("grid-column-end",null==e.draggedItemWrapper?null:e.draggedItemWrapper.style.gridColumnEnd)("grid-row-end",null==e.draggedItemWrapper?null:e.draggedItemWrapper.style.gridRowEnd)("grid-column-start",e.currentColStart)("grid-row-start",e.currentRowStart)("z-index","1"))},encapsulation:2}),i}(),AFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0,this.minHeight=0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item-body"]],hostVars:6,hostBindings:function(t,e){2&t&&(Qe("min-height",e.minHeight),ue("k-tilelayout-item-body",e.hostClass)("k-card-body",e.hostClass))},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),MFe=([].concat([sFe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),IFe=(Ae([lFe,uFe,cFe,dFe,hFe].concat([vFe,pFe,fFe,gFe])),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),FFe=[H7,eFe,tFe].concat([N7,L7,P7,F7]),LFe=([G7,U7].concat(Ae(FFe)),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),BFe=([].concat([CFe,t9]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}()),GFe=([].concat([kNe,qy,h7,C7,f7]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),zFe=([jI].concat([DNe,zI]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Ly]]}),i}()),KFe=[aFe,oFe].concat([K7,j7,W7]),jFe=([q7,X7,Z7].concat(Ae(KFe)),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,YRe]]}),i}()),$Fe=([].concat([I7,$I,WI,S7,R7,BNe,O7],[M7]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,yo]]}),i}()),XFe=([].concat([TFe,c9,tN,AFe,u9]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),iN={top:"start",middle:"center",bottom:"end",stretch:"stretch"},d9="k-justify-content",rN="k-align-items",t2e=function(){var i=function(){function r(t,e,n){p(this,r),this.renderer=t,this.element=e,this.localization=n,this.hostClass=!0,this.gap=0,this.orientation="horizontal",this._align={horizontal:"stretch",vertical:"stretch"},jt(fl)}return v(r,[{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}},{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"dir",get:function(){return this.direction}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign({},this._align,e),this.handleAlignClasses()}},{key:"ngAfterViewInit",value:function(){this.handleAlignClasses(),this.setGap()}},{key:"ngOnChanges",value:function(e){yn("gap",e)&&this.setGap(),yn("orientation",e)&&this.handleAlignClasses()}},{key:"handleAlignClasses",value:function(){var e=this.element.nativeElement;Mi(this.justifyClass)&&this.renderer.removeClass(e,this.justifyClass),Mi(this.alignClass)&&this.renderer.removeClass(e,this.alignClass),"horizontal"===this.orientation?(this.justifyClass="".concat(d9,"-").concat(this.align.horizontal),this.alignClass="".concat(rN,"-").concat(iN[this.align.vertical])):(this.justifyClass="".concat(d9,"-").concat(iN[this.align.vertical]),this.alignClass="".concat(rN,"-").concat(this.align.horizontal)),this.renderer.addClass(e,this.justifyClass),this.renderer.addClass(e,this.alignClass)}},{key:"setGap",value:function(){var e=function(r){return"number"==typeof r&&isFinite(r)}(this.gap)?"".concat(this.gap,"px"):this.gap;this.renderer.setStyle(this.element.nativeElement,"gap",e)}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-stacklayout"]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-stack-layout",e.hostClass)("k-hstack",e.horizontalClass)("k-vstack",e.verticalClass))},inputs:{align:"align",gap:"gap",orientation:"orientation"},exportAs:["kendoStackLayout"],features:[de([Y,{provide:Et,useValue:"kendo.stacklayout"}]),Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),i2e=([].concat([t2e]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),r2e=function(){var i=function(){function r(t,e,n){p(this,r),this.renderer=t,this.element=e,this.localization=n,this.hostClass=!0,this.gap=0,this._align={horizontal:"stretch",vertical:"stretch"},jt(fl)}return v(r,[{key:"dir",get:function(){return this.direction}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign({},this._align,e),this.handleAlignClasses()}},{key:"ngAfterViewInit",value:function(){this.handleAlignClasses(),this.handleGridTemplateStyling("rows"),this.handleGridTemplateStyling("cols"),this.setGap()}},{key:"ngOnChanges",value:function(e){yn("gap",e)&&this.setGap(),yn("rows",e)&&this.handleGridTemplateStyling("rows"),yn("cols",e)&&this.handleGridTemplateStyling("cols")}},{key:"handleAlignClasses",value:function(){var e=this.element.nativeElement;Mi(this.justifyClass)&&this.renderer.removeClass(e,this.justifyClass),Mi(this.alignClass)&&this.renderer.removeClass(e,this.alignClass),this.justifyClass="".concat("k-justify-items","-").concat(this.align.horizontal),this.alignClass="".concat(rN,"-").concat(iN[this.align.vertical]),this.renderer.addClass(e,this.justifyClass),this.renderer.addClass(e,this.alignClass)}},{key:"setGap",value:function(){var e=function(r){if("number"==typeof r||"string"==typeof r)return{cols:r,rows:r};var t={};return t.rows=r.rows?r.rows:0,t.cols=r.cols?r.cols:0,t}(this.gap),n=function(r){if(r.rows===r.cols)return"number"==typeof r.rows?"".concat(r.rows,"px"):r.rows;var t="".concat("number"==typeof r.rows?r.rows+"px":r.rows),e="".concat("number"==typeof r.cols?r.cols+"px":r.cols);return"".concat(t," ").concat(e)}(e);this.renderer.setStyle(this.element.nativeElement,"gap",n)}},{key:"handleGridTemplateStyling",value:function(e){if(Mi(this[e])){var n=function(r){var e,t=In(r);try{for(t.s();!(e=t.n()).done;){var n=e.value;if("number"!=typeof n&&"string"!=typeof n&&("object"!=typeof n||null===n))return!1}}catch(l){t.e(l)}finally{t.f()}return!0}(this[e]);if(!n&&xt()){var a="rows"===e?"GridLayoutRowSize":"GridLayoutColSize";throw new Error("The provided ".concat(e," value contains invalid elements. The array supports values of type number, string or ").concat(a,"."))}var o="rows"===e?"grid-template-rows":"grid-template-columns",s=function(r,t){var e=[];return r.forEach(function(n){if("number"==typeof n)e.push("".concat(n,"px"));else if("string"==typeof n)e.push(n);else if("rows"===t){var a=n.height;e.push(a?"number"==typeof a?"".concat(a,"px"):a:"0px")}else{var o=n.width;e.push(o?"number"==typeof o?"".concat(o,"px"):o:"0px")}}),e}(this[e],e);this.renderer.setStyle(this.element.nativeElement,o,s.join(" "))}}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-gridlayout"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-grid-layout",e.hostClass))},inputs:{rows:"rows",cols:"cols",gap:"gap",align:"align"},exportAs:["kendoGridLayout"],features:[de([Y,{provide:Et,useValue:"kendo.gridlayout"}]),Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),a2e=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.element=e}return v(r,[{key:"ngOnInit",value:function(){this.setItemStyle()}},{key:"ngOnChanges",value:function(){this.setItemStyle()}},{key:"setItemStyle",value:function(){var e=this.row||"auto",n=this.col||"auto",a=this.rowSpan?"span ".concat(this.rowSpan):"auto",o=this.colSpan?"span ".concat(this.colSpan):"auto",s="".concat(e," / ").concat(n," / ").concat(a," / ").concat(o);this.renderer.setStyle(this.element.nativeElement,"grid-area",s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-gridlayout-item"]],inputs:{row:"row",col:"col",rowSpan:"rowSpan",colSpan:"colSpan"},features:[Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),s2e=([].concat([r2e,a2e]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),l2e=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[MFe,IFe,LFe,GFe,BFe,zFe,jFe,$Fe,XFe,i2e,s2e]}),i}(),aN=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-loading-spinner"]],decls:1,vars:0,consts:[[1,"k-i-loading"]],template:function(t,e){1&t&&z(0,"div",0)},styles:[".k-i-loading[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;font-size:100px;color:#252830}"]}),i}(),Ad="arc",Xi="#000",Zn="bottom",Qt="center",pl="circle",xd="date",f9="12px sans-serif",g9=/\{\d+:?/,ND="height",sN="inside",Sn="left",Zi=Number.MAX_VALUE,br=-Number.MAX_VALUE,lN="none",uN="object",FD="outside",Vn="right",_9="roundedRect",cN="string",Fn="top",qo="value",Ln="#fff",LD="width",yt="x",Ct="y";function Jr(i){return Array.isArray(i)}function Za(i,r){for(var t=Jr(r)?r:[r],e=0;e1&&void 0!==arguments[1]?arguments[1]:0,t={top:0,right:0,bottom:0,left:0};return"number"==typeof i?t.top=t[Vn]=t[Zn]=t[Sn]=i:(t.top=i.top||r,t[Vn]=i[Vn]||r,t[Zn]=i[Zn]||r,t[Sn]=i[Sn]||r),t}var w9={compile:function(r){return r}},C2e=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){w9=t}},{key:"compile",value:function(t){return w9.compile(t)}}]),i}(),D9=C2e;function ea(){var r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.template?i.template=r=D9.compile(i.template):Ri(i.content)&&(r=i.content),r}var b2e=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,Zy={};function yc(i){if(Zy[i])return Zy[i];var r=[];return i.replace(b2e,function(t,e,n,a){r.push(Gt(e)?e:n||a)}),Zy[i]=function(t){for(var e=t,n=0;n1?e-1:0),a=1;a0?Math.ceil(r):Math.floor(r)}var mt=v(function i(){p(this,i)});function x9(i){var r=window.console;void 0!==r&&r.log&&r.log(i)}function Qy(i,r){return i.push.apply(i,r),i}var A2e={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"};function BD(i){for(var r=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],t="";i>0;)i>>6),r+=Ls(128|63&e)):e<65536?(r+=Ls(224|e>>>12),r+=Ls(128|e>>>6&63),r+=Ls(128|63&e)):e<1114111&&(r+=Ls(240|e>>>18),r+=Ls(128|e>>>12&63),r+=Ls(128|e>>>6&63),r+=Ls(128|63&e))}return r}(i);t>2,l=(3&n)<<4|a>>4,u=(15&a)<<2|o>>6,c=63&o;isNaN(a)?u=c=64:isNaN(o)&&(c=64),r=r+GD.charAt(s)+GD.charAt(l)+GD.charAt(u)+GD.charAt(c)}return r}function M9(i){return Gt((i.x||{}).location)?{x:i.x.location,y:i.y.location}:{x:i.pageX||i.clientX||0,y:i.pageY||i.clientY||0}}function R9(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.touch?i.touch.initialTouch:i.target}function mf(i){return""===i||null===i||"none"===i||"transparent"===i||!Gt(i)}function Zo(i){if(i)return i[i.length-1]}function zD(i,r,t){return Math.max(Math.min(i,t),r)}function HD(i,r){return i.length<2?i.slice():function e(n){if(n.length<=1)return n;var a=Math.floor(n.length/2),o=n.slice(0,a),s=n.slice(a);return function t(e,n){for(var a=[],o=0,s=0,l=0;o1&&void 0!==arguments[1]?arguments[1]:{};for(var t in r)for(var e=t.trim().split(" "),n=0;n0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return p(this,t),(e=r.call(this)).a=n,e.b=a,e.c=o,e.d=s,e.e=l,e.f=u,e}return v(t,[{key:"multiplyCopy",value:function(n){return new t(this.a*n.a+this.c*n.b,this.b*n.a+this.d*n.b,this.a*n.c+this.c*n.d,this.b*n.c+this.d*n.d,this.a*n.e+this.c*n.f+this.e,this.b*n.e+this.d*n.f+this.f)}},{key:"invert",value:function(){var n=this.a,a=this.b,o=this.c,s=this.d,l=this.e,u=this.f,c=n*s-a*o;return 0===c?null:new t(s/c,-a/c,-o/c,n/c,(o*u-s*l)/c,(a*l-n*u)/c)}},{key:"clone",value:function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)}},{key:"equals",value:function(n){return!!n&&this.a===n.a&&this.b===n.b&&this.c===n.c&&this.d===n.d&&this.e===n.e&&this.f===n.f}},{key:"round",value:function(n){return this.a=Ci(this.a,n),this.b=Ci(this.b,n),this.c=Ci(this.c,n),this.d=Ci(this.d,n),this.e=Ci(this.e,n),this.f=Ci(this.f,n),this}},{key:"toArray",value:function(n){var a=[this.a,this.b,this.c,this.d,this.e,this.f];if(Gt(n))for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:",";return this.toArray(n).join(a)}}],[{key:"translate",value:function(n,a){return new t(1,0,0,1,n,a)}},{key:"unit",value:function(){return new t(1,0,0,1,0,0)}},{key:"rotate",value:function(n,a,o){var s=new t;return s.a=Math.cos(lu(n)),s.b=Math.sin(lu(n)),s.c=-s.b,s.d=s.a,s.e=a-a*s.a+o*s.b||0,s.f=o-o*s.a-a*s.b||0,s}},{key:"scale",value:function(n,a){return new t(n,0,0,a,0,0)}}]),t}(mt);_N.IDENTITY=_N.unit();var ta=_N,N2e=/matrix\((.*)\)/;function L9(i){var r=getComputedStyle(i).transform;return"none"===r?ta.unit():function F2e(i){var r=i.match(N2e);if(null===r||2!==r.length)return ta.unit();var t=r[1].split(",").map(function(e){return parseFloat(e)});return qr(ta,Ae(t))}(r)}function P9(i){if(!i)return ta.unit();for(var r=L9(i),t=i.parentElement;t;){var e=L9(t);r=r.multiplyCopy(e),t=t.parentElement}return r.b=r.c=r.e=r.f=0,r}var L2e=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._size=e,n._length=0,n._map={},n}return v(t,[{key:"put",value:function(n,a){var o=this._map,s={key:n,value:a};o[n]=s,this._head?(this._tail.newer=s,s.older=this._tail,this._tail=s):this._head=this._tail=s,this._length>=this._size?(o[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++}},{key:"get",value:function(n){var a=this._map[n];if(a)return a===this._head&&a!==this._tail&&(this._head=a.newer,this._head.older=null),a!==this._tail&&(a.older&&(a.older.newer=a.newer,a.newer.older=a.older),a.older=this._tail,a.newer=null,this._tail.newer=a,this._tail=a),a.value}}]),t}(mt),B9=L2e,P2e=/\r?\n|\r|\t/g;function yN(i){return String(i).replace(P2e," ")}function V9(i){var r=[];for(var t in i)r.push(t+i[t]);return r.sort().join("")}function G9(i){for(var r=2166136261,t=0;t>>0}var kN,V2e={baselineMarkerSize:1};"undefined"!=typeof document&&((kN=document.createElement("div")).style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");var CN=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._cache=new B9(1e3),n.options=Object.assign({},V2e,e),n}return v(t,[{key:"measure",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==n)return{width:0,height:0,baseline:0};var s=V9(a),l=G9(n+s),u=this._cache.get(l);if(u)return u;var c={width:0,height:0,baseline:0},d=o.box||kN,h=this._baselineMarker().cloneNode(!1);for(var f in a){var g=a[f];void 0!==g&&(d.style[f]=g)}var _=!1!==o.normalizeText?yN(n):String(n);return d.textContent=_,d.appendChild(h),document.body.appendChild(d),_.length&&(c.width=d.offsetWidth-this.options.baselineMarkerSize,c.height=d.offsetHeight,c.baseline=h.offsetTop+this.options.baselineMarkerSize),c.width>0&&c.height>0&&this._cache.put(l,c),d.parentNode.removeChild(d),c}},{key:"_baselineMarker",value:function(){var n=document.createElement("div");return n.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",n}}]),t}(mt);CN.current=new CN;var z9=CN;function tk(i,r,t){return z9.current.measure(i,r,t)}var _f=Yu.append,nk=Yu.bindEvents,Te=Yu.defined,Rd=Yu.deg,ik=Yu.elementOffset,kc=Yu.elementSize,G2e=Yu.eventCoordinates,_l=Yu.eventElement,U2e=Yu.hashKey,Yi=Yu.last,Mt=Yu.limitValue,z2e=Yu.objectKey,Sr=Yu.rad,tt=Yu.round,rk=Yu.unbindEvents,qt=Yu.valueOrDefault,H2e=function(){function i(){p(this,i)}return v(i,null,[{key:"fetchFonts",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{depth:0},a=5;!t||n.depth>a||!document.fonts||Object.keys(t).forEach(function(o){var s=t[o];"dataSource"===o||"$"===o[0]||!s||("font"===o?e.push(s):"object"==typeof s&&(n.depth++,i.fetchFonts(s,e,n),n.depth--))})}},{key:"loadFonts",value:function(t,e){var n=[];if(t.length>0&&document.fonts){try{n=t.map(function(a){return document.fonts.load(a)})}catch(a){x9(a)}Promise.all(n).then(e,e)}else e()}},{key:"preloadFonts",value:function(t,e){var n=[];i.fetchFonts(t,n),i.loadFonts(n,e)}}]),i}(),K2e=H2e;function ze(i,r){var t=i.prototype;t.options=t.options?ne({},t.options,r):r}function bN(i){for(var r=Zi,t=br,e=0,n=i.length;e.5?h/(2-s-l):h/(s+l),s){case n:u=(a-o)/h+(a2&&void 0!==arguments[2]?arguments[2]:"0",e=i.toString(16);r>e.length;)e=t+e;return e}var SN=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this)).h=e,s.s=n,s.v=a,s.a=o,s}return v(t,[{key:"toRGB",value:function(){var s,l,u,n=this.h,a=this.s,o=this.v;if(0===a)s=l=u=o;else{n/=60;var c=Math.floor(n),d=n-c,h=o*(1-a),f=o*(1-a*d),g=o*(1-a*(1-d));switch(c){case 0:s=o,l=g,u=h;break;case 1:s=f,l=o,u=h;break;case 2:s=h,l=o,u=g;break;case 3:s=h,l=f,u=o;break;case 4:s=g,l=h,u=o;break;default:s=o,l=h,u=f}}return new Od(s,l,u,this.a)}},{key:"toHSL",value:function(){return this.toRGB().toHSL()}},{key:"toBytes",value:function(){return this.toRGB().toBytes()}}]),t}(WD),$9=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this)).h=e,s.s=n,s.l=a,s.a=o,s}return v(t,[{key:"toRGB",value:function(){var s,l,u,n=this.h/360,a=this.s/100,o=this.l/100;if(0===a)s=l=u=o;else{var c=o<.5?o*(1+a):o+a-o*a,d=2*o-c;s=wN(d,c,n+1/3),l=wN(d,c,n),u=wN(d,c,n-1/3)}return new Od(s,l,u,this.a)}},{key:"toHSV",value:function(){return this.toRGB().toHSV()}},{key:"toBytes",value:function(){return this.toRGB().toBytes()}}]),t}(WD);function wN(i,r,t){var e=t;return e<0&&(e+=1),e>1&&(e-=1),e<1/6?i+6*(r-i)*e:e<.5?r:e<2/3?i+(r-i)*(2/3-e)*6:i}function q9(i){return parseFloat(parseFloat(parseInt(i,16)/255).toFixed(3))}function Ps(i,r){var t,e;if(null==i||"none"===i)return null;if(i instanceof WD)return i;var n=i.toLowerCase();if(t=W9(n))return(n="transparent"===t[1]?new Od(1,1,1,0):Ps(vg[t[1]],r)).match=[t[1]],n;if((t=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?e=new Cc(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1):(t=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?e=new Cc(parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),1):(t=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?e=new Cc(parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),q9(t[4]+t[4])):(t=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?e=new Cc(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),q9(t[4])):(t=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(n))?e=new Cc(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),1):(t=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(n))?e=new Cc(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])):(t=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(n))?e=new Od(parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])/100,1):(t=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(n))&&(e=new Od(parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])/100,parseFloat(t[4]))),e)e.match=t;else if(!r)throw new Error("Cannot parse color: "+n);return e}var Z2e=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;if(p(this,e),a=t.call(this),1===arguments.length)for(var o=e.formats,s=a.resolveColor(n),l=0;l255?255:a}},{key:"padDigit",value:function(a){return 1===a.length?"0"+a:a}},{key:"brightness",value:function(a){var o=Math.round;return this.r=o(this.normalizeByte(this.r*a)),this.g=o(this.normalizeByte(this.g*a)),this.b=o(this.normalizeByte(this.b*a)),this}},{key:"percBrightness",value:function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)}},{key:"isDark",value:function(){return this.percBrightness()<180}}],[{key:"fromBytes",value:function(a,o,s,l){return new Cc(a,o,s,null!=l?l:1)}},{key:"fromRGB",value:function(a,o,s,l){return new Od(a,o,s,null!=l?l:1)}},{key:"fromHSV",value:function(a,o,s,l){return new SN(a,o,s,null!=l?l:1)}},{key:"fromHSL",value:function(a,o,s,l){return new $9(a,o,s,null!=l?l:1)}}]),e}(mt);return i.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i.namedColors=vg,i}(),Bs=Z2e,DN=function Y2e(i){return new Bs(i).isDark()?Ln:Xi},X9={},Q2e=function(){function i(r){p(this,i),this._index={},this._values=r?r.slice(0):[];for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};n.element=this,this.trigger("optionsChange",n)}},{key:"geometryChange",value:function(){this.trigger("geometryChange",{element:this})}},{key:"suspend",value:function(){return this._suspended=(this._suspended||0)+1,this}},{key:"resume",value:function(){return this._suspended=Math.max((this._suspended||0)-1,0),this}},{key:"_observerField",value:function(n,a){this[n]&&this[n].removeObserver(this),this[n]=a,a.addObserver(this)}}]),t}(mt),Vs=iLe;function rLe(i){return function(r){return this[i]!==r&&(this[i]=r,this.geometryChange()),this}}function aLe(i){return function(){return this[i]}}var qD=function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function oLe(i,r){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:n;return this.x*=n,this.y*=a,this.geometryChange(),this}},{key:"scaleCopy",value:function(n,a){return this.clone().scale(n,a)}},{key:"transform",value:function(n){var a=yf(n),o=this.x,s=this.y;return this.x=a.a*o+a.c*s+a.e,this.y=a.b*o+a.d*s+a.f,this.geometryChange(),this}},{key:"transformCopy",value:function(n){var a=this.clone();return n&&a.transform(n),a}},{key:"distanceTo",value:function(n){var a=this.x-n.x,o=this.y-n.y;return Math.sqrt(a*a+o*o)}},{key:"round",value:function(n){return this.x=Ci(this.x,n),this.y=Ci(this.y,n),this.geometryChange(),this}},{key:"toArray",value:function(n){var a=Gt(n);return[a?Ci(this.x,n):this.x,a?Ci(this.y,n):this.y]}},{key:"toString",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",o=this.x,s=this.y;return Gt(n)&&(o=Ci(o,n),s=Ci(s,n)),o+a+s}}],[{key:"create",value:function(n,a){if(Gt(n))return n instanceof t?n:1===arguments.length&&2===n.length?new t(n[0],n[1]):new t(n,a)}},{key:"min",value:function(){for(var n=hg,a=hg,o=0;o0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new kf,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(this,t),(e=r.call(this)).setOrigin(n),e.setSize(a),e.setCornerRadius(o),e}return v(t,[{key:"clone",value:function(){return new t(this.origin.clone(),this.size.clone())}},{key:"equals",value:function(n){return n&&n.origin.equals(this.origin)&&n.size.equals(this.size)}},{key:"setOrigin",value:function(n){return this._observerField("origin",Pe.create(n)),this.geometryChange(),this}},{key:"getOrigin",value:function(){return this.origin}},{key:"setCornerRadius",value:function(n){return this.cornerRadius=Array.isArray(n)?n:[n,n],this.geometryChange(),this}},{key:"getCornerRadius",value:function(){return this.cornerRadius}},{key:"setSize",value:function(n){return this._observerField("size",kf.create(n)),this.geometryChange(),this}},{key:"getSize",value:function(){return this.size}},{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}},{key:"topLeft",value:function(){return this.origin.clone()}},{key:"bottomRight",value:function(){return this.origin.clone().translate(this.width(),this.height())}},{key:"topRight",value:function(){return this.origin.clone().translate(this.width(),0)}},{key:"bottomLeft",value:function(){return this.origin.clone().translate(0,this.height())}},{key:"center",value:function(){return this.origin.clone().translate(this.width()/2,this.height()/2)}},{key:"bbox",value:function(n){var a=this.topLeft().transformCopy(n),o=this.topRight().transformCopy(n),s=this.bottomRight().transformCopy(n),l=this.bottomLeft().transformCopy(n);return t.fromPoints(a,o,s,l)}},{key:"transformCopy",value:function(n){return t.fromPoints(this.topLeft().transform(n),this.bottomRight().transform(n))}},{key:"expand",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return this.size.width+=2*n,this.size.height+=2*a,this.origin.translate(-n,-a),this}},{key:"expandCopy",value:function(n,a){return this.clone().expand(n,a)}},{key:"containsPoint",value:function(n){var a=this.origin,o=this.bottomRight();return!(n.x=this.x1&&n.x<=this.x2&&n.y>=this.y1&&n.y<=this.y2}},{key:"points",value:function(){return[new Ut(this.x1,this.y1),new Ut(this.x2,this.y1),new Ut(this.x2,this.y2),new Ut(this.x1,this.y2)]}},{key:"getHash",value:function(){return[this.x1,this.y1,this.x2,this.y2].join(",")}},{key:"overlaps",value:function(n){return!(n.y2=o*o&&w<=s*s}},{key:"getBBox",value:function(){var d,n=new et(Zi,Zi,br,br),a=tt(this.startAngle%360),o=tt((a+this.angle)%360),s=this.innerRadius,l=[0,90,180,270,a,o].sort(fLe),u=l.indexOf(a),c=l.indexOf(o);d=a===o?l:u0&&void 0!==arguments[0]?arguments[0]:[];return p(this,t),(e=r.call(this)).length=0,e._splice(0,n.length,n),e}return v(t,[{key:"elements",value:function(n){return n?(this._splice(0,this.length,n),this._change(),this):this.slice(0)}},{key:"push",value:function(){var n=arguments,a=vLe.apply(this,n);return this._add(n),a}},{key:"slice",value:function(){return Q9.call(this)}},{key:"pop",value:function(){var n=this.length,a=pLe.apply(this);return n&&this._remove([a]),a}},{key:"splice",value:function(n,a){var o=Q9.call(arguments,2),s=this._splice(n,a,o);return this._change(),s}},{key:"shift",value:function(){var n=this.length,a=mLe.apply(this);return n&&this._remove([a]),a}},{key:"unshift",value:function(){var n=arguments,a=_Le.apply(this,n);return this._add(n),a}},{key:"indexOf",value:function(n){for(var a=this.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:"";for(var o in p(this,t),(n=r.call(this)).prefix=a,e){var s=e[o];s=n._wrap(s,o),n[o]=s}return n}return v(t,[{key:"get",value:function(n){for(var a=n.split("."),o=this;a.length&&o;)o=o[a.shift()];return o}},{key:"set",value:function(n,a){this.get(n)!==a&&(this._set(n,this._wrap(a,n)),this.optionsChange({field:this.prefix+n,value:a}))}},{key:"_set",value:function(n,a){var o=n.indexOf(".")>=0,s=this,l=n;if(o){for(var u=l.split("."),c=this.prefix;u.length>1;){c+=(l=u.shift())+".";var d=s[l];d||((d=new t({},c)).addObserver(this),s[l]=d),s=d}l=u[0]}s._clear(l),s[l]=a}},{key:"_clear",value:function(n){var a=this[n];a&&a.removeObserver&&a.removeObserver(this)}},{key:"_wrap",value:function(n,a){var o=CLe.call(n),s=n;return null!==s&&Gt(s)&&"[object Object]"===o&&(!(n instanceof t)&&!(n instanceof mt)&&(s=new t(s,this.prefix+a+".")),s.addObserver(this)),s}}]),t}(Vs),t$=bLe,SLe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ta.unit();return p(this,t),(e=r.call(this))._matrix=n,e}return v(t,[{key:"clone",value:function(){return new t(this._matrix.clone())}},{key:"equals",value:function(n){return n&&n._matrix.equals(this._matrix)}},{key:"translate",value:function(n,a){return this._matrix=this._matrix.multiplyCopy(ta.translate(n,a)),this._optionsChange(),this}},{key:"scale",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=o;return s&&(s=Pe.create(s),this._matrix=this._matrix.multiplyCopy(ta.translate(s.x,s.y))),this._matrix=this._matrix.multiplyCopy(ta.scale(n,a)),s&&(this._matrix=this._matrix.multiplyCopy(ta.translate(-s.x,-s.y))),this._optionsChange(),this}},{key:"rotate",value:function(n,a){var o=Pe.create(a)||Pe.ZERO;return this._matrix=this._matrix.multiplyCopy(ta.rotate(n,o.x,o.y)),this._optionsChange(),this}},{key:"multiply",value:function(n){var a=yf(n);return this._matrix=this._matrix.multiplyCopy(a),this._optionsChange(),this}},{key:"matrix",value:function(n){return n?(this._matrix=n,this._optionsChange(),this):this._matrix}},{key:"_optionsChange",value:function(){this.optionsChange({field:"transform",value:this})}}]),t}(Vs),n$=SLe;function Hn(i){return null===i?null:i instanceof n$?i:new n$(i)}var wLe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._initOptions(e),n}return v(t,[{key:"nodeType",get:function(){return"Rect"}},{key:"_initOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.clip,o=n.transform;o&&(n.transform=Hn(o)),a&&!a.id&&(a.id=VD()),this.options=new t$(n),this.options.addObserver(this)}},{key:"transform",value:function(n){if(!Gt(n))return this.options.get("transform");this.options.set("transform",Hn(n))}},{key:"parentTransform",value:function(){for(var a,n=this;n.parent;){var o=(n=n.parent).transform();o&&(a=o.matrix().multiplyCopy(a||ta.unit()))}if(a)return Hn(a)}},{key:"currentTransform",value:function(){var l,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parentTransform(),a=this.transform(),o=yf(a),s=yf(n);if(l=o&&s?s.multiplyCopy(o):o||s)return Hn(l)}},{key:"visible",value:function(n){return Gt(n)?(this.options.set("visible",n),this):!1!==this.options.get("visible")}},{key:"clip",value:function(n){var a=this.options;return Gt(n)?(n&&!n.id&&(n.id=VD()),a.set("clip",n),this):a.get("clip")}},{key:"opacity",value:function(n){return Gt(n)?(this.options.set("opacity",n),this):pN(this.options.get("opacity"),1)}},{key:"clippedBBox",value:function(n){var a=this._clippedBBox(n);if(a){var o=this.clip();return o?cn.intersect(a,o.bbox(n)):a}}},{key:"containsPoint",value:function(n,a){if(this.visible()){var o=this.currentTransform(a),s=n;return o&&(s=n.transformCopy(o.matrix().invert())),this._hasFill()&&this._containsPoint(s)||this._isOnPath&&this._hasStroke()&&this._isOnPath(s)}return!1}},{key:"_hasFill",value:function(){var n=this.options.fill;return n&&!mf(n.color)}},{key:"_hasStroke",value:function(){var n=this.options.stroke;return n&&n.width>0&&!mf(n.color)}},{key:"_clippedBBox",value:function(n){return this.bbox(n)}}]),t}(Vs),Id=wLe,sk=function(r){return function(t){b(n,t);var e=S(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"fill",value:function(o,s){var l=this.options;if(Gt(o)){if(o&&"Gradient"!==o.nodeType){var u={color:o};Gt(s)&&(u.opacity=s),l.set("fill",u)}else l.set("fill",o);return this}return l.get("fill")}},{key:"stroke",value:function(o,s,l){return Gt(o)?(this.options.set("stroke.color",o),Gt(s)&&this.options.set("stroke.width",s),Gt(l)&&this.options.set("stroke.opacity",l),this):this.options.get("stroke")}}]),n}(r)},TLe=ta.IDENTITY.toString(),ZD=function(r){return function(t){b(n,t);var e=S(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"bbox",value:function(o){var u,s=yf(this.currentTransform(o)),l=s?s.toString():TLe;this._bboxCache&&this._matrixHash===l?u=this._bboxCache.clone():(u=this._bbox(s),this._bboxCache=u?u.clone():null,this._matrixHash=l);var c=this.options.get("stroke.width");return c&&u&&u.expand(c/2),u}},{key:"geometryChange",value:function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}}]),n}(r)};function i$(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return 0===Ci(Math.abs(i-r),t)}function EN(i,r,t){return i0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this)).setCenter(n),e.radiusX=a.radiusX,e.radiusY=a.radiusY||a.radiusX,e.startAngle=a.startAngle,e.endAngle=a.endAngle,e.anticlockwise=a.anticlockwise||!1,e.xRotation=a.xRotation,e}return v(t,[{key:"clone",value:function(){return new t(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})}},{key:"setCenter",value:function(n){return this._observerField("center",Pe.create(n)),this.geometryChange(),this}},{key:"getCenter",value:function(){return this.center}},{key:"pointAt",value:function(n){var a=this.center,o=lu(n);return new Pe(a.x+this.radiusX*Math.cos(o),a.y+this.radiusY*Math.sin(o))}},{key:"curvePoints",value:function(){var h,n=this.startAngle,a=this.anticlockwise?-1:1,o=[this.pointAt(n)],s=this._arcInterval(),l=s.endAngle-s.startAngle,u=Math.ceil(l/45),c=l/u,d=n;this.xRotation&&(h=Hn().rotate(this.xRotation,this.center));for(var f=1;f<=u;f++){var g=d+a*c,_=this._intervalCurvePoints(d,g,h);o.push(_.cp1,_.cp2,_.p2),d=g}return o}},{key:"bbox",value:function(n){for(var a=this._arcInterval(),o=a.startAngle,s=a.endAngle,l=r$(0,this.radiusX,this.radiusY,n),u=Md(l.x),c=Md(l.y),d=this.pointAt(s).transformCopy(n),h=o$(u,o),f=o$(c,o),g=this.pointAt(o).transformCopy(n),_=Pe.min(g,d),C=Pe.max(g,d);ha||o&&n===a)&&(a+=360),{startAngle:n,endAngle:a}}},{key:"_intervalCurvePoints",value:function(n,a,o){var s=this.pointAt(n),l=this.pointAt(a),u=this._derivativeAt(n),c=this._derivativeAt(a),d=(lu(a)-lu(n))/3,h=new Pe(s.x+d*u.x,s.y+d*u.y),f=new Pe(l.x-d*c.x,l.y-d*c.y);return o&&(s.transform(o),l.transform(o),h.transform(o),f.transform(o)),{p1:s,cp1:h,cp2:f,p2:l}}},{key:"_derivativeAt",value:function(n){var a=lu(n);return new Pe(-this.radiusX*Math.sin(a),this.radiusY*Math.cos(a))}},{key:"containsPoint",value:function(n){var C,a=this._arcInterval(),o=a.endAngle-a.startAngle,s=this.center,l=this.radiusX,u=this.radiusY,c=s.distanceTo(n),d=Math.atan2(n.y-s.y,n.x-s.x),h=l*u/Math.sqrt(YD(l,2)*YD(Math.sin(d),2)+YD(u,2)*YD(Math.cos(d),2)),f=this.pointAt(this.startAngle).round(10),g=this.pointAt(this.endAngle).round(10),_=function xLe(i,r,t,e){var n=r.x-i.x,a=e.x-t.x,o=r.y-i.y,s=e.y-t.y,l=i.x-t.x,u=i.y-t.y,c=n*s-a*o,d=(n*u-o*l)/c,h=(a*u-s*l)/c;if(d>=0&&d<=1&&h>=0&&h<=1)return new Pe(i.x+h*n,i.y+h*o)}(s,n.round(10),f,g);if(o<180)C=_&&EN(s.distanceTo(_),c)&&EN(c,h);else{var w=a$(s.x,s.y,l,u,n.x,n.y);360!==w&&(w=(360+w)%360);var E=a.startAngle<=w&&w<=a.endAngle;C=E&&EN(c,h)||!E&&(!_||_.equals(n))}return C}},{key:"_isOnPath",value:function(n,a){var o=this._arcInterval(),s=this.center,l=a$(s.x,s.y,this.radiusX,this.radiusY,n.x,n.y);return 360!==l&&(l=(360+l)%360),o.startAngle<=l&&l<=o.endAngle&&this.pointAt(l).distanceTo(n)<=a}}],[{key:"fromPoints",value:function(n,a,o,s,l,u,c){var d=function ILe(i){var r=i.x1,t=i.y1,e=i.x2,n=i.y2,a=i.rx,o=i.ry,s=i.largeArc,l=i.swipe,u=i.rotation,c=void 0===u?0:u,d=lu(c),h=Math.cos(d),f=Math.sin(d),g=h*(r-e)/2+f*(t-n)/2,_=-f*(r-e)/2+h*(t-n)/2,C=s!==l?1:-1,w=Math.pow(g,2),E=Math.pow(_,2),M=Math.pow(a,2),R=Math.pow(o,2),N=w/M+E/R;N>1&&(a*=N=Math.sqrt(w/M+E/R),M=Math.pow(a,2),o*=N,R=Math.pow(o,2));var G=C*Math.sqrt((M*R-M*E-R*w)/(M*E+R*w));isNaN(G)&&(G=0);var U=G*(a*_)/o,ee=o*g*-G/a,ve=h*U-f*ee+(r+e)/2,V=f*U+h*ee+(t+n)/2,I=(g-U)/a,K=(_-ee)/o,H=-(g+U)/a,se=-(_+ee)/o,me=(K>=0?1:-1)*Md(Math.acos(I/Math.sqrt(I*I+K*K))),ae=Ci((I*H+K*se)/(Math.sqrt(I*I+K*K)*Math.sqrt(H*H+se*se)),10),Ne=(I*se-K*H>=0?1:-1)*Md(Math.acos(ae));!l&&Ne>0&&(Ne-=360),l&&Ne<0&&(Ne+=360);var Ce=me+Ne,ye=Ce>=0?1:-1;return Ce=Math.abs(Ce)%360*ye,{center:new Pe(ve,V),startAngle:me,endAngle:Ce,radiusX:a,radiusY:o,xRotation:c}}({x1:n.x,y1:n.y,x2:a.x,y2:a.y,rx:o,ry:s,largeArc:l,swipe:u,rotation:c});return new t(d.center,{startAngle:d.startAngle,endAngle:d.endAngle,radiusX:d.radiusX,radiusY:d.radiusY,xRotation:d.xRotation,anticlockwise:0===u})}}]),t}(qD(Vs,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]));function a$(i,r,t,e,n,a){var o=Ci((n-i)/t,3),s=Ci((a-r)/e,3);return Ci(Md(Math.atan2(s,o)))}function o$(i,r){for(var t=i;t0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(this,t),(e=r.call(this)).real=n,e.img=a,e}return v(t,[{key:"add",value:function(n){return new t(Ci(this.real+n.real,10),Ci(this.img+n.img,10))}},{key:"addConstant",value:function(n){return new t(this.real+n,this.img)}},{key:"negate",value:function(){return new t(-this.real,-this.img)}},{key:"multiply",value:function(n){return new t(this.real*n.real-this.img*n.img,this.real*n.img+this.img*n.real)}},{key:"multiplyConstant",value:function(n){return new t(this.real*n,this.img*n)}},{key:"nthRoot",value:function(n){var a=Math.atan2(this.img,this.real),o=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),s=Math.pow(o,1/n);return new t(s*Math.cos(a/n),s*Math.sin(a/n))}},{key:"equals",value:function(n){return this.real===n.real&&this.img===n.img}},{key:"isReal",value:function(){return 0===this.img}}]),t}(mt),lk=NLe;function u$(i){return i<0?-1:1}function c$(i,r,t,e){if(0===i)return function FLe(i,r,t){var e=Math.sqrt(Math.pow(r,2)-4*i*t);return[(-r+e)/(2*i),(-r-e)/(2*i)]}(r,t,e);var u,c,d,h,f,g,_,n=(3*i*t-Math.pow(r,2))/(3*Math.pow(i,2)),a=(2*Math.pow(r,3)-9*i*r*t+27*Math.pow(i,2)*e)/(27*Math.pow(i,3)),o=Math.pow(n/3,3)+Math.pow(a/2,2),s=new lk(0,1),l=-r/(3*i);o<0?(u=new lk(-a/2,Math.sqrt(-o)).nthRoot(3),c=new lk(-a/2,-Math.sqrt(-o)).nthRoot(3)):(u=-a/2+Math.sqrt(o),u=new lk(u$(u)*Math.pow(Math.abs(u),1/3)),c=-a/2-Math.sqrt(o),c=new lk(u$(c)*Math.pow(Math.abs(c),1/3))),d=u.add(c),g=u.add(c).multiplyConstant(-.5),_=u.add(c.negate()).multiplyConstant(Math.sqrt(3)/2),h=g.add(s.multiply(_)),f=g.add(s.negate().multiply(_));var C=[];return d.isReal()&&C.push(Ci(d.real+l,10)),h.isReal()&&C.push(Ci(h.real+l,10)),f.isReal()&&C.push(Ci(f.real+l,10)),C}function JD(i,r,t,e,n){for(var s,a=l$(i,e),o=c$(a[0],a[1],a[2],a[3]-r[e]),l=0;l0?t.x-n:a-t.x)/(a-n)+o-t.y>=0}return e?1:0}function PLe(i){var r="_"+i;return function(t){return Gt(t)?(this._observerField(r,Pe.create(t)),this.geometryChange(),this):this[r]}}var e0=function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function BLe(i,r){for(var t=0;t1)&&(g=0);var _=Math.min(Math.max(h,f),1);return(_>1||_<0)&&(_=1),{min:g,max:_}}},{key:"_intersectionsTo",value:function(n,a){var o;return o=this.controlOut()&&n.controlIn()?function LLe(i,r,t){for(var a,e=l$(i,"x"),n=c$(e[0],e[1],e[2],e[3]-r.x),s=0,l=0;lr.y)&&((0===n[l]||1===n[l])&&t.bottomRight().x>r.x||00){var s=Zo(this.segments),l=new yl(o,a);this.suspend(),s.controlOut(n),this.resume(),this.segments.push(l)}return this}},{key:"arc",value:function(n,a,o,s,l){if(this.segments.length>0){var c=Zo(this.segments).anchor(),d=lu(n),h=new Pe(c.x-o*Math.cos(d),c.y-s*Math.sin(d)),f=new Sc(h,{startAngle:n,endAngle:a,radiusX:o,radiusY:s,anticlockwise:l});this._addArcSegments(f)}return this}},{key:"arcTo",value:function(n,a,o,s,l,u){if(this.segments.length>0){var d=Zo(this.segments).anchor(),h=Sc.fromPoints(d,Pe.create(n),a,o,s,l,u);this._addArcSegments(h)}return this}},{key:"_addArcSegments",value:function(n){this.suspend();for(var a=n.curvePoints(),o=1;o1){if(o[0]._isOnPathTo(o[1],n,l,"start"))return!0;for(var u=2;u<=s-2;u++)if(o[u-1]._isOnPathTo(o[u],n,l))return!0;if(o[s-2]._isOnPathTo(o[s-1],n,l,"end"))return!0}return!1}},{key:"_bbox",value:function(n){var s,a=this.segments,o=a.length;if(1===o){var l=a[0].anchor().transformCopy(n);s=new cn(l,kf.ZERO)}else if(o>0)for(var u=1;u0&&Zo(this.paths).lineTo(n,a),this}},{key:"curveTo",value:function(n,a,o){return this.paths.length>0&&Zo(this.paths).curveTo(n,a,o),this}},{key:"arc",value:function(n,a,o,s,l){return this.paths.length>0&&Zo(this.paths).arc(n,a,o,s,l),this}},{key:"arcTo",value:function(n,a,o,s,l,u){return this.paths.length>0&&Zo(this.paths).arcTo(n,a,o,s,l,u),this}},{key:"close",value:function(){return this.paths.length>0&&Zo(this.paths).close(),this}},{key:"_bbox",value:function(n){return t0(this.paths,!0,n)}},{key:"rawBBox",value:function(){return t0(this.paths,!1)}},{key:"_containsPoint",value:function(n){for(var a=this.paths,o=0;o2&&(l="l",c.splice(0,2))),m$[l])m$[l](i,{parameters:c,position:t,isRelative:u,previousCommand:e}),s&&"z"===s.toLowerCase()&&i.close();else if("m"!==l)throw new Error("Error while parsing SVG path. Unsupported command: "+l);e=l}),i}(new t(a),n)}}]),t}(sk(ZD(Id))),TN=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createRing",value:function(n,a){var o=n.startAngle+180,s=n.angle+o;n.angle>0&&o===s&&(s+=.001);var l=new Pe(n.center.x,n.center.y),u=Math.max(n.radius,0),c=Math.max(n.innerRadius,0),d=new Sc(l,{startAngle:o,endAngle:s,radiusX:u,radiusY:u}),h=dt.fromArc(d,a).close();if(c){d.radiusX=d.radiusY=c;var f=d.pointAt(s);h.lineTo(f.x,f.y),h.arc(s,o,c,c,!0)}else h.lineTo(l.x,l.y);return h}}]),t}(mt);TN.current=new TN;var n0=TN,k$=Math.PI/2,ZLe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(this,t),(e=r.call(this)).setCenter(n),e.setRadius(a),e}return v(t,[{key:"setCenter",value:function(n){return this._observerField("center",Pe.create(n)),this.geometryChange(),this}},{key:"getCenter",value:function(){return this.center}},{key:"equals",value:function(n){return n&&n.center.equals(this.center)&&n.radius===this.radius}},{key:"clone",value:function(){return new t(this.center.clone(),this.radius)}},{key:"pointAt",value:function(n){return this._pointAt(lu(n))}},{key:"bbox",value:function(n){for(var a=r$(0,this.radius,this.radius,n),o=Pe.maxPoint(),s=Pe.minPoint(),l=0;l<4;l++){var u=this._pointAt(a.x+l*k$).transformCopy(n),c=this._pointAt(a.y+l*k$).transformCopy(n),d=new Pe(u.x,c.y);o=Pe.min(o,d),s=Pe.max(s,d)}return cn.fromPoints(o,s)}},{key:"_pointAt",value:function(n){var a=this.center,o=this.radius;return new Pe(a.x+o*Math.cos(n),a.y+o*Math.sin(n))}},{key:"containsPoint",value:function(n){var a=this.center,o=this.radius;return Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2)<=Math.pow(o,2)}},{key:"_isOnPath",value:function(n,a){var s=this.radius,l=this.center.distanceTo(n);return s-a<=l&&l<=s+a}}]),t}(qD(Vs,["radius"])),bo=ZLe;function YLe(i){var r="_"+i;return function(t){return Gt(t)?(this._observerField(r,t),this.geometryChange(),this):this[r]}}function QLe(i,r){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:["geometry"],e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return QLe(e.prototype,t),e},tPe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new bo,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this,a)).geometry(n),Gt(e.options.stroke)||e.stroke("#000"),e}return v(t,[{key:"nodeType",get:function(){return"Circle"}},{key:"rawBBox",value:function(){return this._geometry.bbox()}},{key:"_bbox",value:function(n){return this._geometry.bbox(n)}},{key:"_containsPoint",value:function(n){return this.geometry().containsPoint(n)}},{key:"_isOnPath",value:function(n){return this.geometry()._isOnPath(n,this.options.stroke.width/2)}}]),t}(sk(ZD(AN(Id)))),kl=tPe,xN=function(r,t){return function(e){b(a,e);var n=S(a);function a(){return p(this,a),n.apply(this,arguments)}return v(a,[{key:"traverse",value:function(s){for(var l=this[t],u=0;u=0&&(this.children.splice(a,1),n.parent=null,this.childrenChange("remove",[n],a)),this}},{key:"removeAt",value:function(n){if(0<=n&&na);l++);this.visual.insert(l,n)}},{key:"traverse",value:function(n){for(var a=this.children,o=a.length,s=0;s1?new t(n[0],n[1],n[2]):new t(n.offset,n.color,n.opacity)}}]),t}(function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function hPe(i,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this)).stops=new cPe(e._createStops(n.stops)),e.stops.addObserver(Xe(e)),e._userSpace=n.userSpace,e.id=VD(),e}return v(t,[{key:"nodeType",get:function(){return"Gradient"}},{key:"userSpace",value:function(n){return Gt(n)?(this._userSpace=n,this.optionsChange(),this):this._userSpace}},{key:"_createStops",value:function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[],o=0;o=0&&this.stops.splice(a,1)}},{key:"optionsChange",value:function(n){this.trigger("optionsChange",{field:"gradient"+(n?"."+n.field:""),value:this})}},{key:"geometryChange",value:function(){this.optionsChange()}}]),t}(Vs),uk=mPe,yPe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).start(n.start||new Pe),e.end(n.end||new Pe(1,0)),e}return v(t)}(e0(uk,["start","end"])),r0=yPe,kPe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).center(n.center||new Pe),e._radius=Gt(n.radius)?n.radius:1,e._fallbackFill=n.fallbackFill,e}return v(t,[{key:"radius",value:function(n){return Gt(n)?(this._radius=n,this.geometryChange(),this):this._radius}},{key:"fallbackFill",value:function(n){return Gt(n)?(this._fallbackFill=n,this.optionsChange(),this):this._fallbackFill}}]),t}(e0(uk,["center"])),a0=kPe,ck="radial",SPe={glass:{type:"linear",rotation:0,stops:[{offset:0,color:Ln,opacity:0},{offset:.25,color:Ln,opacity:.3},{offset:1,color:Ln,opacity:0}]},sharpBevel:{type:ck,stops:[{offset:0,color:Ln,opacity:.55},{offset:.65,color:Ln,opacity:0},{offset:.95,color:Ln,opacity:.25}]},roundedBevel:{type:ck,stops:[{offset:.33,color:Ln,opacity:.06},{offset:.83,color:Ln,opacity:.2},{offset:.95,color:Ln,opacity:0}]},roundedGlass:{type:ck,supportVML:!1,stops:[{offset:0,color:Ln,opacity:0},{offset:.5,color:Ln,opacity:.3},{offset:.99,color:Ln,opacity:0}]},sharpGlass:{type:ck,supportVML:!1,stops:[{offset:0,color:Ln,opacity:.2},{offset:.15,color:Ln,opacity:.15},{offset:.17,color:Ln,opacity:.35},{offset:.85,color:Ln,opacity:.05},{offset:.87,color:Ln,opacity:.15},{offset:.99,color:Ln,opacity:0}]},bubbleShadow:{type:ck,center:[.5,.5],radius:.5}};function wPe(i,r){if(i.x1===r.x1&&i.y1===r.y1&&i.x2===r.x2&&i.y2===r.y2)return r;var t=Math.min(i.x1,r.x1),e=Math.max(i.x1,r.x1),n=Math.min(i.x2,r.x2),a=Math.max(i.x2,r.x2),o=Math.min(i.y1,r.y1),s=Math.max(i.y1,r.y1),l=Math.min(i.y2,r.y2),u=Math.max(i.y2,r.y2),c=[];return c[0]=new et(e,o,n,s),c[1]=new et(t,s,e,l),c[2]=new et(n,s,a,l),c[3]=new et(e,l,n,u),i.x1===t&&i.y1===o||r.x1===t&&r.y1===o?(c[4]=new et(t,o,e,s),c[5]=new et(n,l,a,u)):(c[4]=new et(n,o,a,s),c[5]=new et(t,l,e,u)),Xo(c,function(d){return d.height()>0&&d.width()>0})[0]}var E$=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=(n=r.call(this,e)).options;return a.width=parseInt(a.width,10),a.height=parseInt(a.height,10),n.gradients={},n}return v(t,[{key:"reflow",value:function(){var n=this.options,a=this.children,o=new et(0,0,n.width,n.height);this.box=o.unpad(n.margin);for(var s=0;sc&&(h.push({groupElements:w,groupSize:f,groupElementsSize:g}),C=Math.max(C,g),_+=u+f,f=0,g=0,w=[]),f=Math.max(f,R[s]),g>0&&(g+=l),g+=R[o],w.push(M)}return h.push({groupElements:w,groupSize:f,groupElementsSize:g}),{groups:h,groupsSize:_+=f,maxGroupElementsSize:C=Math.max(C,g)}}},{key:"elementSize",value:function(n){return{width:n.box.width(),height:n.box.height()}}},{key:"createVisual",value:function(){}}]),t}(Kn);ze(T$,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var ON=T$,TPe="12px sans-serif",xPe=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Pe,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(this,t),(n=r.call(this,o)).content(e),n.position(a),n.options.font||(n.options.font=TPe),Gt(n.options.fill)||n.fill("#000"),n}return v(t,[{key:"nodeType",get:function(){return"Text"}},{key:"content",value:function(n){return Gt(n)?(this.options.set("content",n),this):this.options.get("content")}},{key:"measure",value:function(){return tk(this.content(),{font:this.options.get("font")})}},{key:"rect",value:function(){var n=this.measure(),a=this.position().clone();return new cn(a,[n.width,n.height])}},{key:"bbox",value:function(n){var a=yf(this.currentTransform(n));return this.rect().bbox(a)}},{key:"rawBBox",value:function(){return this.rect().bbox()}},{key:"_containsPoint",value:function(n){return this.rect().containsPoint(n)}}]),t}(sk(e0(Id,["position"]))),IN=xPe,MPe=IN,A$=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).content=e,a.reflow(new et),a}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=a.size=tk(this.content,{font:a.font});this.baseline=o.baseline,this.box=new et(n.x1,n.y1,n.x1+o.width,n.y1+o.height)}},{key:"createVisual",value:function(){var n=this.options,a=n.font,o=n.color,s=n.opacity,l=n.cursor;this.visual=new MPe(this.content,this.box.toRect().topLeft(),{font:a,fill:{color:o,opacity:s},cursor:l})}}]),t}(Kn);ze(A$,{font:f9,color:Xi});var RPe=A$;function o0(i){var r=i.origin,t=i.bottomRight();return new et(r.x,r.y,t.x,t.y)}var OPe=/\n/m,IPe=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).content=e,o.data=a,o._initContainer(),!1!==o.options._autoReflow&&o.reflow(new et),o}return v(t,[{key:"_initContainer",value:function(){var n=this.options,a=String(this.content).split(OPe),o=new ON({vertical:!0,align:n.align,wrap:!1}),s=ne({},n,{opacity:1,animation:null});this.container=o,this.append(o);for(var l=0;l1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{};p(this,i),this._intlService=t.intlService,this.sender=t.sender||r,this.format=new VPe(t.intlService),this.chart=r,this.rtl=Boolean(t.rtl)}return v(i,[{key:"intl",get:function(){return this._intlService||L$.implementation},set:function(t){this._intlService=t,this.format.intl=t}},{key:"notify",value:function(t,e){this.chart&&this.chart.trigger(t,e)}},{key:"isPannable",value:function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t}}]),i}(),NN=GPe,UPe=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){FN=t}},{key:"create",value:function(t,e){if(FN)return FN.create(t,e)}}]),i}(),LN=UPe;function P$(i,r){var t=i.tickX,e=i.tickY,n=i.position,a=new dt({stroke:{width:r.width,color:r.color}});return i.vertical?a.moveTo(t,n).lineTo(t+r.size,n):a.moveTo(n,e).lineTo(n,e+r.size),Ns(a),a}function B$(i,r){var t=i.lineStart,e=i.lineEnd,n=i.position,a=new dt({stroke:{width:r.width,color:r.color,dashType:r.dashType}});return i.vertical?a.moveTo(t,n).lineTo(e,n):a.moveTo(n,t).lineTo(n,e),Ns(a),a}var V$=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new NN;return p(this,t),(n=r.call(this,e)).chartService=a,n.options.visible||(n.options=ne({},n.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),n.options.minorTicks=ne({},{color:n.options.line.color,width:n.options.line.width,visible:n.options.minorTickType!==lN},n.options.minorTicks,{size:n.options.minorTickSize,align:n.options.minorTickType}),n.options.majorTicks=ne({},{color:n.options.line.color,width:n.options.line.width,visible:n.options.majorTickType!==lN},n.options.majorTicks,{size:n.options.majorTickSize,align:n.options.majorTickType}),n.initFields(),n.options._deferLabels||n.createLabels(),n.createTitle(),n.createNotes(),n}return v(t,[{key:"initFields",value:function(){}},{key:"labelsRange",value:function(){return{min:this.options.labels.skip,max:this.labelsCount()}}},{key:"normalizeLabelRotation",value:function(n){var a=n.rotation;gl(a)&&(n.alignRotation=a.align,n.rotation=a.angle)}},{key:"createLabels",value:function(){var n=this.options,o=ne({},n.labels,{align:n.vertical?Vn:Qt,zIndex:n.zIndex}),s=Math.max(1,o.step);if(this.clearLabels(),o.visible){this.normalizeLabelRotation(o),"auto"===o.rotation&&(o.rotation=0,n.autoRotateLabels=!0);for(var l=this.labelsRange(),u=l.min;u0&&a.visible){var s=new dt({stroke:{width:a.width,color:a.color,dashType:a.dashType}});s.moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),n._alignLines&&Ns(s);var l=this._lineGroup=new sn;l.append(s),this.visual.append(l),this.createTicks(l)}}},{key:"getActualTickSize",value:function(){var n=this.options,a=0;return n.majorTicks.visible&&n.minorTicks.visible?a=Math.max(n.majorTicks.size,n.minorTicks.size):n.majorTicks.visible?a=n.majorTicks.size:n.minorTicks.visible&&(a=n.minorTicks.size),a}},{key:"createBackground",value:function(){var o=this.options.background;o&&(this._backgroundPath=dt.fromRect(this.box.toRect(),{fill:{color:o},stroke:null}),this.visual.append(this._backgroundPath))}},{key:"createPlotBands",value:function(){var n=this,a=this.options,o=a.plotBands||[],s=a.vertical,l=this.plotArea;if(0!==o.length){for(var u=this._plotbandGroup=new sn({zIndex:-1}),c=Xo(this.pane.axes,function(M){return M.options.vertical!==n.options.vertical})[0],d=0;d3&&void 0!==arguments[3]?arguments[3]:o,l=this.options,u=l.vertical,c=this.lineBox(),d=this.getActualTickSize()+l.margin;if(u){var f=c.x2;a?(f+=d,n.options.rotationOrigin=Sn):(f-=d+n.box.width(),n.options.rotationOrigin=Vn),h=n.box.move(f,o)}else{var g=c.y1;a?(g-=d+n.box.height(),n.options.rotationOrigin=Zn):(g+=d,n.options.rotationOrigin=Fn),h=new et(o,g,s,g+n.box.height())}n.reflow(h)}},{key:"autoRotateLabelAngle",value:function(n,a){return n.width()a?-90:-45}},{key:"autoRotateLabels",value:function(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(var n=this.getMajorTickPositions(),a=this.labels,o=Math.min(a.length,n.length-1),s=0,l=0;l0&&(!Te(u.max)||s<=u.max))return null;if(a0||ss&&l>0&&(h=Mt(a,o,s),d=Mt(a-c,o,s-c)),{min:d,max:h}}},{key:"valueRange",value:function(){return{min:this.seriesMin,max:this.seriesMax}}},{key:"lineDir",value:function(){var n=this.options;return(n.vertical?-1:1)*(n.reverse?-1:1)}},{key:"lineInfo",value:function(){var n=this.options.vertical,a=this.lineBox(),o=n?a.height():a.width(),s=n?Ct:yt,l=this.lineDir(),c=s+(1===l?1:2).toString();return{axis:s,axisOrigin:c,axisDir:l,lineBox:a,lineSize:o,lineStart:a[c]}}},{key:"pointOffset",value:function(n){var a=this.lineInfo(),o=a.axis,l=a.axisOrigin,u=a.lineBox;return(a.axisDir>0?n[o]-u[l]:u[l]-n[o])/a.lineSize}},{key:"scaleToDelta",value:function(n,a){var s=Mt(n,-.999,.999);return s>0?a*Math.min(1,s):a-a/(1+s)}},{key:"labelsBetweenTicks",value:function(){return!this.options.justified}},{key:"prepareUserOptions",value:function(){}}]),t}(Kn);ze(V$,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:Xi,visible:!0},title:{visible:!0,position:Qt},majorTicks:{align:FD,size:4,skip:0,step:1},minorTicks:{align:FD,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:FD,minorTickType:lN,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:Xi,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var dk=V$,s0="milliseconds",PN="seconds",BN="minutes",hk="hours",cu="days",fk="weeks",Sf="months",wc="years",gg=6e4,l0=60*gg,Dc=24*l0,GN=7*Dc,UN=31*Dc,zN=365*Dc,du={years:zN,months:UN,weeks:GN,days:Dc,hours:l0,minutes:gg,seconds:1e3,milliseconds:1};function HN(i,r){return i.getTime()-r-(i.getTimezoneOffset()-r.getTimezoneOffset())*gg}function zr(i,r){return new Date(i.getTime()+r)}function ni(i){var r;return i instanceof Date?r=i:i&&(r=new Date(i)),r}function u0(i,r){return 0===r&&23===i.getHours()&&(i.setHours(i.getHours()+2),!0)}function Ya(i,r,t,e){var n=i;if(i){var a=ni(i),o=a.getHours();t===wc?u0(n=new Date(a.getFullYear()+r,0,1),0):t===Sf?u0(n=new Date(a.getFullYear(),a.getMonth()+r,1),o):t===fk?(n=Ya(function HPe(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=0,e=i.getDay();if(!isNaN(e))for(;e!==r;)0===e?e=6:e--,t++;return zr(i,-t*Dc)}(a,e),7*r,cu),u0(n,o)):t===cu?u0(n=new Date(a.getFullYear(),a.getMonth(),a.getDate()+r),o):t===hk?n=function KPe(i,r){var t=new Date(i);t.setMinutes(0,0,0);var e=(i.getTimezoneOffset()-t.getTimezoneOffset())*gg;return zr(t,e+r*l0)}(a,r):t===BN?(n=zr(a,r*gg)).getSeconds()>0&&n.setSeconds(0):t===PN?n=zr(a,1e3*r):t===s0&&(n=zr(a,r)),t!==s0&&n.getMilliseconds()>0&&n.setMilliseconds(0)}return n}function KN(i,r,t){return Ya(ni(i),0,r,t)}function G$(i,r,t){var e=ni(i);return e&&KN(e,r,t).getTime()===e.getTime()?e:Ya(e,1,r,t)}function wf(i,r){return i&&r?i.getTime()-r.getTime():-1}function hu(i,r){return i.getTime()-r}function ii(i){if(Jr(i)){for(var r=[],t=0;t0){var o=this.options.vertical?Ct:yt,s=n[o+1],l=n[o+2],u=a[0],c=Yi(a);(u.box[o+1]>l||u.box[o+2]l||c.box[o+2]=0;)c--;return n.slice(u,c+1)}},{key:"lineInfo",value:function(){var n=this.options,a=n.vertical,o=n.reverse,s=this.lineBox(),l=a?s.height():s.width(),u=a?Ct:yt,c=o?-1:1,h=u+(1===c?1:2).toString();return{axis:u,axisOrigin:h,axisDir:c,lineBox:s,lineSize:l,lineStart:s[h]}}},{key:"lineDir",value:function(){return this.options.reverse?-1:1}},{key:"getSlot",value:function(n,a,o){var s=this.options,l=s.reverse,u=s.justified,c=this.scaleOptions(),d=c.scale,h=c.box,f=c.min,g=this.lineInfo(),_=g.axis,C=g.lineStart,w=h.clone(),E=!Te(a),M=qt(n,0),R=qt(a,M);R=Math.max(R-1,M);var N=C+(M-f)*d,G=C+((R=Math.max(M,R))+1-f)*d;return E&&u&&(G=N),o&&(N=Mt(N,h[_+1],h[_+2]),G=Mt(G,h[_+1],h[_+2])),w[_+1]=l?G:N,w[_+2]=l?N:G,w}},{key:"limitSlot",value:function(n){var o=this.options.vertical?Ct:yt,s=this.lineBox(),l=n.clone();return l[o+1]=Mt(n[o+1],s[o+1],s[o+2]),l[o+2]=Mt(n[o+2],s[o+1],s[o+2]),l}},{key:"slot",value:function(n,a,o){var s=Math.floor(this.options.min||0),l=n,u=a;return"string"==typeof l?l=this.categoryIndex(l):un(l)&&(l-=s),"string"==typeof u?u=this.categoryIndex(u):un(u)&&(u-=s),$(q(t.prototype),"slot",this).call(this,l,u,o)}},{key:"pointCategoryIndex",value:function(n){var a=this.options,o=a.reverse,s=a.justified,u=a.vertical?Ct:yt,c=this.scaleOptions(),h=c.box,C=h[u+1],E=n[u];if(Eh[u+2])return null;var M=(o?c.max:c.min)+(E-C)/c.scale,R=M%1;return s?M=Math.round(M):0===R&&M>0&&M--,Math.floor(M)}},{key:"getCategory",value:function(n){var a=this.pointCategoryIndex(n);return null===a?null:this.options.categories[a]}},{key:"categoryIndex",value:function(n){return this.totalIndex(n)-Math.floor(this.options.min||0)}},{key:"categoryAt",value:function(n,a){var o=this.options;return(a?o.srcCategories:o.categories)[n]}},{key:"categoriesCount",value:function(){return(this.options.categories||[]).length}},{key:"translateRange",value:function(n){var a=this.options,o=this.lineBox(),s=a.vertical?o.height():o.width(),l=a.categories.length,c=tt(n/(s/l),10);return{min:c,max:l+c}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),s=this.totalRangeIndices(),u=this.scaleToDelta(n,s.max-s.min),h=s.min+o*u,f=s.max-(1-o)*u;return f-h<.1&&(f=h+.1),{min:h,max:f}}},{key:"zoomRange",value:function(n,a){var o=this.totalRange(),s=o.min,l=o.max,u=this.scaleRange(n,a);return{min:Mt(u.min,s,l),max:Mt(u.max,s,l)}}},{key:"labelsCount",value:function(){var n=this.labelsRange();return n.max-n.min}},{key:"labelsRange",value:function(){var n=this.options,a=n.justified,o=n.labels,s=this.totalRangeIndices(!0),l=s.min,u=s.max,c=Math.floor(l);return a?(l=Math.ceil(l),u=Math.floor(u)):(l=Math.floor(l),u=Math.ceil(u)),{min:(l>o.skip?o.skip+o.step*Math.ceil((l-o.skip)/o.step):o.skip)-c,max:(n.categories.length?u+(a?1:0):0)-c}}},{key:"createAxisLabel",value:function(n,a,o){var s=this.options,l=s.dataItems?s.dataItems[n]:null,u=qt(s.categories[n],"");o.dataItem=l;var c=this.axisLabelText(u,a,o);return new bf(u,c,n,l,a)}},{key:"shouldRenderNote",value:function(n){var a=this.totalRangeIndices();return Math.floor(a.min)<=n&&n<=Math.ceil(a.max)}},{key:"noteSlot",value:function(n){var o=n-Math.floor(this.options.min||0);return this.getSlot(o)}},{key:"arrangeNotes",value:function(){$(q(t.prototype),"arrangeNotes",this).call(this),this.hideOutOfRangeNotes()}},{key:"hideOutOfRangeNotes",value:function(){var n=this.notes,a=this.box;if(n&&n.length)for(var o=this.options.vertical?Ct:yt,s=a[o+1],l=a[o+2],u=0;u=.01)return{min:M,max:R}}},{key:"valueRange",value:function(){return this.range()}},{key:"totalIndex",value:function(n){var a=this.options,o=this._categoriesMap?this._categoriesMap.get(n):function WPe(i,r){if(i instanceof Date){for(var t=r.length,e=0;e=o;){h=h||a[u].slice(0);do{g=h.shift()}while(g&&r===u&&go&&(f=Math.ceil(d/o));break}u=Tc[l++]||Yi(Tc),d=n/du[u],h=null}}i.baseUnitStep=f,i.baseUnit=u}var Z$=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"clone",value:function(){var n=new t(Object.assign({},this.options),this.chartService);return n.createLabels(),n}},{key:"categoriesHash",value:function(){var n=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+n}},{key:"initUserOptions",value:function(n){return n}},{key:"initFields",value:function(){$(q(t.prototype),"initFields",this).call(this);var n=this.chartService,a=n.intl,o=this.options,s=o.categories||[];if(s._parsed||((s=z$(a,s))._parsed=!0),o=ne({roundToBaseUnit:!0},o,{categories:s,min:ya(a,o.min),max:ya(a,o.max),weekStartDay:H$(o,a)}),n.panning&&n.isPannable(o.vertical?Ct:yt)&&(o.roundToBaseUnit=!1),o.userSetBaseUnit=o.userSetBaseUnit||o.baseUnit,o.userSetBaseUnitStep=o.userSetBaseUnitStep||o.baseUnitStep,this.options=o,o.srcCategories=s,s.length>0){var l=d0(s),u=o.maxDivisions;if(this.dataRange=new $N(l.min,l.max,function ZPe(i){var r=(i.baseUnit||"").toLowerCase();return r!==c0&&!hn(r,Tc)&&function XPe(i){for(var n,a,r=i.categories,t=Te(r)?r.length:0,e=Zi,o=0;o0&&(a=(e=Math.min(e,l))>=zN?wc:e>=UN-3*Dc?Sf:e>=GN?fk:e>=Dc?cu:e>=l0?hk:e>=gg?BN:PN)}n=s}i.baseUnit=a||cu}(i),(r===c0||"auto"===i.baseUnitStep)&&X$(i),i}(o)),u){var c=this.dataRange.displayRange(),d=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:c.min,max:c.max,maxDateGroups:u}),h=this.dataRange.options;X$(d,h.baseUnit,h.baseUnitStep),this.divisionRange=new $N(l.min,l.max,d)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||cu,this.dataRange=this.divisionRange=new qPe(o);this.rangeLabels=[]}},{key:"tickIndices",value:function(n){var a=this.dataRange,o=this.divisionRange,s=o.valuesCount();if(!this.options.maxDivisions||!s)return $(q(t.prototype),"tickIndices",this).call(this,n);var l=[],u=o.values(),c=0;this.options.justified||(u=u.concat(o.dateAt(s)),c=.5);for(var d=0;d=1){var h=l.length-1;l.splice(d,0,l[h-1]+(l[h]-l[h-1])*n)}return l}},{key:"shouldRenderNote",value:function(n){var a=this.range(),o=this.options.categories||[];return wf(n,a.min)>=0&&wf(n,a.max)<=0&&o.length}},{key:"parseNoteValue",value:function(n){return ya(this.chartService.intl,n)}},{key:"noteSlot",value:function(n){return this.getSlot(n)}},{key:"translateRange",value:function(n){var a=this.options,o=a.baseUnit,s=a.weekStartDay,l=a.vertical,u=this.lineBox(),c=l?u.height():u.width(),d=this.range(),f=tt(n/(c/(d.max-d.min)),10);if(d.min&&d.max){var g=zr(a.min||d.min,f),_=zr(a.max||d.max,f);d={min:Ya(g,0,o,s),max:Ya(_,0,o,s)}}return d}},{key:"labelsRange",value:function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}}},{key:"pan",value:function(n){if(this.isEmpty())return null;var a=this.options,o=this.lineBox(),s=a.vertical?o.height():o.width(),l=this.dataRange.displayRange(),u=l.min,c=l.max,d=this.dataRange.total(),f=tt(n/(s/(c-u)),10)*(a.reverse?-1:1),g=zr(u,f),_=zr(c,f),C=this.limitRange(ii(g),ii(_),ii(d.min),ii(d.max),f);return C?(C.min=ni(C.min),C.max=ni(C.max),C.baseUnit=a.baseUnit,C.baseUnitStep=a.baseUnitStep||1,C.userSetBaseUnit=a.userSetBaseUnit,C.userSetBaseUnitStep=a.userSetBaseUnitStep,C):void 0}},{key:"pointsRange",value:function(n,a){if(this.isEmpty())return null;var o=$(q(t.prototype),"pointsRange",this).call(this,n,a),s=this.dataRange.displayRange(),l=this.dataRange.displayIndices(),u=hu(s.max,s.min)/(l.max-l.min),c=this.options;return{min:zr(s.min,o.min*u),max:zr(s.min,o.max*u),baseUnit:c.userSetBaseUnit||c.baseUnit,baseUnitStep:c.userSetBaseUnitStep||c.baseUnitStep}}},{key:"scaleRange",value:function(n,a){if(this.isEmpty())return{};var o=this.options,s=o.userSetBaseUnit===c0,l=this.dataRange.total(),u=this.dataRange.displayRange(),c=u.min,d=u.max,h=Math.abs(this.pointOffset(a)),g=this.scaleToDelta(n,d-c),_=Math.round(h*g),C=Math.round((1-h)*g),w=this.dataRange.options.baseUnit,E=new Date(c.getTime()+_),M=new Date(d.getTime()-C);if(s){var V,I,R=o.autoBaseUnitSteps,N=o.maxDateGroups,G=Yi(R[w])*N*du[w],U=hu(d,c),ee=hu(M,E),ve=Tc.indexOf(w);if(eeG&&w!==wc){var K=0;do{ve++,K=0,I=2*du[w=Tc[ve]];do{V=R[w][K],K++}while(K0&&(E=zr(c,-I),M=zr(d,I),E=zr(E,Mt(M,l.min,l.max)-M),M=zr(M,Mt(E,l.min,l.max)-E))}}return E&&M&&hu(M,E)>0?{min:E,max:M,baseUnit:o.userSetBaseUnit||o.baseUnit,baseUnitStep:o.userSetBaseUnitStep||o.baseUnitStep}:void 0}},{key:"zoomRange",value:function(n,a){var o=this.dataRange.total(),s=this.scaleRange(n,a);return s&&(s.mino.max&&(s.max=o.max)),s}},{key:"range",value:function(){return this.dataRange.displayRange()}},{key:"createLabels",value:function(){$(q(t.prototype),"createLabels",this).call(this),this.createRangeLabels()}},{key:"clearLabels",value:function(){$(q(t.prototype),"clearLabels",this).call(this),this.rangeLabels=[]}},{key:"arrangeLabels",value:function(){this.arrangeRangeLabels(),$(q(t.prototype),"arrangeLabels",this).call(this)}},{key:"arrangeRangeLabels",value:function(){var n=this.options,a=this.rangeLabels;if(0!==a.length){var o=this.lineBox(),s=n.vertical,l=n.rangeLabels.mirror||n.labels.mirror,u=a[0];if(u){var c=s?o.y1-u.box.height()/2:o.x1;this.positionLabel(u,l,c)}var d=a[1];if(d){var h=s?o.y2-d.box.height()/2:o.x2;this.positionLabel(d,l,h)}}}},{key:"autoRotateLabels",value:function(){$(q(t.prototype),"autoRotateLabels",this).call(this),this.autoRotateRangeLabels()}},{key:"hideOutOfRangeLabels",value:function(){$(q(t.prototype),"hideOutOfRangeLabels",this).call(this),this.hideOverlappingLabels()}},{key:"hideOverlappingLabels",value:function(){var n=this.rangeLabels,a=this.labels;if(0!==n.length){var s=n[0];if(s&&s.options.visible)for(var l=0;l0&&o(c,a[d]);--d);}function o(f,g){return!(g.options.visible&&!g.box.overlaps(f.box)||(g.options.visible=!1,0))}}},{key:"contentBox",value:function(){for(var n=$(q(t.prototype),"contentBox",this).call(this),a=this.rangeLabels,o=0;o2&&void 0!==arguments[2]?arguments[2]:{},s=this.options,l=s.dataItems&&!s.maxDivisions?s.dataItems[n]:null,u=this.divisionRange.dateAt(n),c=a.dateFormats[this.divisionRange.options.baseUnit];a.format=a.format||c,o.dataItem=l;var d=this.axisLabelText(u,a,o);if(d)return new bf(u,d,n,l,a)}},{key:"createRangeLabels",value:function(){var n=this,a=this.divisionRange,o=a.displayStart,s=a.displayEnd,l=this.options,u=Object.assign({},l.labels,l.rangeLabels,{align:Qt,zIndex:l.zIndex});if(!0===u.visible){this.normalizeLabelRotation(u),u.alignRotation=Qt,"auto"===u.rotation&&(u.rotation=0,l.autoRotateRangeLabels=!0),u.format=u.format||u.dateFormats[this.divisionRange.options.baseUnit];var d=function(_,C,w){if(w){var E=new bf(C,w,_,null,u);n.append(E),n.rangeLabels.push(E)}};d(0,o,this.axisLabelText(o,u,{index:0,count:2})),d(1,s,this.axisLabelText(s,u,{index:1,count:2}))}}},{key:"autoRotateRangeLabels",value:function(){var n=this,a=this.rangeLabels;if(this.options.autoRotateRangeLabels&&!this.options.vertical&&2===a.length){var o=function(u,c,d){var h=2*Math.abs(c[d+1]-c[d]),f=n.autoRotateLabelAngle(u.box,h);0!==f&&(u.options.rotation=f,u.reflow(new et))},s=this.getMajorTickPositions();o(a[0],s,0),o(a[1],s,s.length-2)}}},{key:"categoryIndex",value:function(n){return this.dataRange.valueIndex(n)}},{key:"slot",value:function(n,a,o){var s=this.dataRange,l=n,u=a;l instanceof Date&&(l=s.dateIndex(l)),u instanceof Date&&(u=s.dateIndex(u));var c=this.getSlot(l,u,o);if(c)return c.toRect()}},{key:"getSlot",value:function(n,a,o){var s=n,l=a;return typeof s===uN&&(s=this.categoryIndex(s)),typeof l===uN&&(l=this.categoryIndex(l)),$(q(t.prototype),"getSlot",this).call(this,s,l,o)}},{key:"valueRange",value:function(){var a=d0(this.options.srcCategories);return{min:ni(a.min),max:ni(a.max)}}},{key:"categoryAt",value:function(n,a){return this.dataRange.dateAt(n,a)}},{key:"categoriesCount",value:function(){return this.dataRange.valuesCount()}},{key:"rangeIndices",value:function(){return this.dataRange.displayIndices()}},{key:"labelsBetweenTicks",value:function(){return!this.divisionRange.options.justified}},{key:"prepareUserOptions",value:function(){this.isEmpty()||(this.options.categories=this.dataRange.values())}},{key:"getCategory",value:function(n){var a=this.pointCategoryIndex(n);return null===a?null:this.dataRange.dateAt(a)}},{key:"totalIndex",value:function(n){return this.dataRange.totalIndex(n)}},{key:"currentRangeIndices",value:function(){var n=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(n.min),max:this.dataRange.totalIndex(n.max)}}},{key:"totalRange",value:function(){return this.dataRange.total()}},{key:"totalCount",value:function(){return this.dataRange.totalCount()}},{key:"isEmpty",value:function(){return!this.options.srcCategories.length}},{key:"roundedRange",value:function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var n=this.options,a=d0(n.srcCategories);return new $N(a.min,a.max,Object.assign({},n,{justified:!1,roundToBaseUnit:!0,justifyEnd:n.justified})).displayRange()}}]),t}(Ec);ze(Z$,{type:xd,labels:{dateFormats:$$},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var vk=Z$;function Y$(i,r){return tt(Math.floor(i/r)*r,10)}function h0(i,r){return tt(Math.ceil(i/r)*r,10)}function f0(i){return Math.max(Math.min(i,3e5),-3e5)}var qN=Math.pow(10,-9),Q$=function(i){b(t,i);var r=S(t);function t(e,n,a,o){return p(this,t),r.call(this,Object.assign({},a,{seriesMin:e,seriesMax:n}),o)}return v(t,[{key:"initUserOptions",value:function(n){var a=function JPe(i,r,t){var e=t.narrowRange,n=function YPe(i,r,t){if(!i&&!r)return 0;var e;if(i>=0&&r>=0){var n=i===r?0:i;if(!1===t||!t&&(r-n)/r>.2)return 0;e=Math.max(0,n-(r-n)/2)}else e=i;return e}(i,r,e),a=function QPe(i,r,t){if(!i&&!r)return 1;var e;if(i<=0&&r<=0){var n=i===r?0:r,a=Math.abs((n-i)/n);if(!1===t||!t&&a>.2)return 0;e=Math.min(0,n-(i-n)/2)}else e=r;return e}(i,r,e),o=ak(n,a),s={majorUnit:o};return!1!==t.roundToMajorUnit&&(n<0&&J$(n,o,1/3)&&(n-=o),a>0&&J$(a,o,1/3)&&(a+=o)),s.min=Y$(n,o),s.max=h0(a,o),s}(n.seriesMin,n.seriesMax,n);return this.totalOptions=function eBe(i,r){return{min:Te(r.min)?Math.min(i.min,r.min):i.min,max:Te(r.max)?Math.max(i.max,r.max):i.max,majorUnit:i.majorUnit}}(a,n),function nBe(i,r){var e,n,t=r;if(r){(function tBe(i,r){for(var t=0;t0?r.min=0:r.max=1),r.majorUnit?(i.min=Y$(i.min,r.majorUnit),i.max=h0(i.max,r.majorUnit)):a&&(t=ne(i,r),i.majorUnit=ak(t.min,t.max))}i.minorUnit=(t.majorUnit||i.majorUnit)/5;var o=ne(i,t);return o.min>=o.max&&(e&&!n?o.max=o.min+o.majorUnit:!e&&n&&(o.min=o.max-o.majorUnit)),o}(a,n)}},{key:"initFields",value:function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax}},{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"startValue",value:function(){return 0}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"getDivisions",value:function(n){if(0===n)return 1;var a=this.options;return Math.floor(tt((a.max-a.min)/n,3))+1}},{key:"getTickPositions",value:function(n,a){var o=this.options,s=this.lineInfo(),l=s.axisDir,u=s.axisOrigin,c=s.lineBox,g=n*(s.lineSize/(o.max-o.min)),_=this.getDivisions(n),C=[],w=c[u],E=0;a&&(E=a/n);for(var M=0;M<_;M++)M%E!=0&&C.push(tt(w,3)),w+=g*l;return C}},{key:"getMajorTickPositions",value:function(){return this.getTickPositions(this.options.majorUnit)}},{key:"getMinorTickPositions",value:function(){return this.getTickPositions(this.options.minorUnit)}},{key:"getSlot",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=this.options,l=this.lineInfo(),u=l.axis,c=l.axisDir,d=l.lineBox,h=l.lineSize,f=l.lineStart,g=c*(h/(s.max-s.min)),_=qt(n,a||0),C=qt(a,n||0);o&&(_=Mt(_,s.min,s.max),C=Mt(C,s.min,s.max));var w=Math.min(_,C)-s.min,E=Math.max(_,C)-s.min,M=new et(d.x1,d.y1,d.x1,d.y1);return M[u+1]=f0(f+g*(c>0?w:E)),M[u+2]=f0(f+g*(c>0?E:w)),M}},{key:"getValue",value:function(n){var a=this.options,o=Number(a.max),s=Number(a.min),l=this.pointOffset(n);return l<0||l>1?null:tt(s+l*(o-s),10)}},{key:"translateRange",value:function(n){var a=this.options,o=a.vertical,s=a.reverse,l=a.max,u=a.min,c=this.lineInfo(),g=tt(n/(c.lineSize/(l-u)),10);return(o||s)&&!(o&&s)&&(g=-g),{min:u+g,max:l+g,offset:g}}},{key:"labelsCount",value:function(){return this.getDivisions(this.options.majorUnit)}},{key:"createAxisLabel",value:function(n,a,o){var s=this.options,l=tt(s.min+n*s.majorUnit,10),u=this.axisLabelText(l,a,o);return new bf(l,u,n,null,a)}},{key:"shouldRenderNote",value:function(n){var a=this.range();return a.min<=n&&n<=a.max}},{key:"pan",value:function(n){var a=this.translateRange(n);return this.limitRange(a.min,a.max,this.totalMin,this.totalMax,a.offset)}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a),l=Math.min(o,s),u=Math.max(o,s);if(this.isValidRange(l,u))return{min:l,max:u}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),l=this.scaleToDelta(n,this.options.max-this.options.min),c=(1-o)*l,d=tt(this.options.min+o*l,10),h=tt(this.options.max-c,10);return h-dqN}}]),t}(dk);function J$(i,r,t){var e=tt(Math.abs(i%r),10);return 0===e||e>r*(1-t)}ze(Q$,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Xi},labels:{format:"#.####################"},zIndex:1});var Us=Q$,tq=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t);var l=ni(e),u=ni(n),c=o.intl,d=a||{};d=function rBe(i,r,t){var e=t.min||i,n=t.max||r,a=t.baseUnit||(n&&e?function iBe(i){var r=hk;return i>=zN?r=wc:i>=UN?r=Sf:i>=GN?r=fk:i>=Dc&&(r=cu),r}(HN(n,e)):hk),o=du[a],s=t.weekStartDay||0,l=KN(ii(e)-1,a,s)||ni(n),u=G$(ii(n)+1,a,s),d=(t.majorUnit?t.majorUnit:void 0)||h0(ak(l.getTime(),u.getTime()),o)/o,h=WN(l,u,a),g=h0(h,d)-h,_=Math.floor(g/2),C=g-_;return t.baseUnit||delete t.baseUnit,t.baseUnit=t.baseUnit||a,t.min=t.min||Ya(l,-_,a,s),t.max=t.max||Ya(u,C,a,s),t.minorUnit=t.minorUnit||d/5,t.majorUnit=d,t}(l,u,d=ne(d||{},{min:ya(c,d.min),max:ya(c,d.max),axisCrossingValue:z$(c,d.axisCrossingValues||d.axisCrossingValue),weekStartDay:H$(d,c)})),(s=r.call(this,d,o)).intlService=c,s.seriesMin=l,s.seriesMax=u;var h=d.weekStartDay||0;return s.totalMin=ii(KN(ii(l)-1,d.baseUnit,h)),s.totalMax=ii(G$(ii(u)+1,d.baseUnit,h)),s}return v(t,[{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"getDivisions",value:function(n){var a=this.options;return Math.floor(WN(a.min,a.max,a.baseUnit)/n+1)}},{key:"getTickPositions",value:function(n){for(var a=this.options,o=this.lineInfo(),s=o.axisDir,l=o.lineSize,u=o.lineStart,c=this.getDivisions(n),h=l/hu(a.max,a.min),f=a.weekStartDay||0,g=[u],_=1;_0&&(c=Ya(c,l,s.baseUnit,s.weekStartDay||0)),a.format=a.format||a.dateFormats[s.baseUnit];var h=this.axisLabelText(c,a,o);return new bf(c,h,n,null,a)}},{key:"translateRange",value:function(n){var a=this.options,o=this.lineBox(),s=a.vertical,l=a.reverse,u=s?o.height():o.width(),c=this.range(),d=u/hu(c.max,c.min),h=tt(n/d,10);return(s||l)&&(!s||!l)&&(h=-h),{min:zr(a.min,h),max:zr(a.max,h),offset:h}}},{key:"shouldRenderNote",value:function(n){var a=this.range();return wf(n,a.min)>=0&&wf(n,a.max)<=0}},{key:"pan",value:function(n){var a=this.translateRange(n,!0),o=this.limitRange(ii(a.min),ii(a.max),this.totalMin,this.totalMax,a.offset);if(o)return{min:ni(o.min),max:ni(o.max)}}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a),l=Math.min(o,s),u=Math.max(o,s);return{min:ni(l),max:ni(u)}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),l=this.scaleToDelta(n,this.options.max-this.options.min),u=o*l,c=(1-o)*l,d=ni(ii(this.options.min)+u),h=ni(ii(this.options.max)-c);return h-d<1e3&&(h=ni(ii(d)+1e3)),{min:d,max:h}}},{key:"zoomRange",value:function(n,a){var o=this.scaleRange(n,a);return{min:ni(Mt(ii(o.min),this.totalMin,this.totalMax)),max:ni(Mt(ii(o.max),this.totalMin,this.totalMax))}}}]),t}(dk);ze(tq,{type:xd,majorGridLines:{visible:!0,width:1,color:Xi},labels:{dateFormats:$$}});var nq=tq,aq=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t);var l=ne({majorUnit:10,min:e,max:n},a),u=l.majorUnit,c=function sBe(i,r){var t=tt(Cl(i,r),10)%1;return i<=0?r:0!==t&&(t<.3||t>.9)?Math.pow(r,Cl(i,r)+.2):Math.pow(r,Math.ceil(Cl(i,r)))}(n,u),d=function oBe(i,r,t){var e=t.majorUnit,n=i;return i<=0?n=r<=1?Math.pow(e,-2):1:t.narrowRange||(n=Math.pow(e,Math.floor(Cl(i,e)))),n}(e,n,l),h=function aBe(i,r,t,e){var n=t.min,a=t.max;return Te(t.axisCrossingValue)&&t.axisCrossingValue<=0&&XN(),Te(e.max)?e.max<=0&&XN():a=r,Te(e.min)?e.min<=0&&XN():n=i,{min:n,max:a}}(d,c,l,a);return l.max=h.max,l.min=h.min,l.minorUnit=a.minorUnit||tt(u-1,10),(s=r.call(this,l,o)).totalMin=Te(a.min)?Math.min(d,a.min):d,s.totalMax=Te(a.max)?Math.max(c,a.max):c,s.logMin=tt(Cl(h.min,u),10),s.logMax=tt(Cl(h.max,u),10),s.seriesMin=e,s.seriesMax=n,s.createLabels(),s}return v(t,[{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"startValue",value:function(){return this.options.min}},{key:"getSlot",value:function(n,a,o){var s=this.options,l=this.logMin,u=this.logMax,c=s.majorUnit,d=s.min,h=s.max,f=this.lineInfo(),g=f.axis,_=f.axisDir,C=f.lineBox,E=f.lineStart,M=_*(f.lineSize/(u-l)),R=qt(n,a||1),N=qt(a,n||1);if(R<=0||N<=0)return null;o&&(R=Mt(R,d,h),N=Mt(N,d,h)),R=Cl(R,c),N=Cl(N,c);var G=Math.min(R,N)-l,U=Math.max(R,N)-l,ee=new et(C.x1,C.y1,C.x1,C.y1);return ee[g+1]=f0(E+M*(_>0?G:U)),ee[g+2]=f0(E+M*(_>0?U:G)),ee}},{key:"getValue",value:function(n){var o=this.logMin,s=this.logMax,l=this.options.majorUnit,u=this.lineInfo(),f=u.lineSize,_=u.axisDir*(n[u.axis]-u.lineStart);return _<0||_>f?null:tt(Math.pow(l,o+_*((s-o)/f)),10)}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"translateRange",value:function(n){var a=this.options,o=this.logMin,s=this.logMax,l=a.reverse,u=a.vertical,c=a.majorUnit,d=this.lineBox(),h=u?d.height():d.width(),g=tt(n/(h/(s-o)),10);return(u||l)&&!(u&&l)&&(g=-g),{min:Math.pow(c,o+g),max:Math.pow(c,s+g),offset:g}}},{key:"labelsCount",value:function(){var n=Math.floor(this.logMax);return Math.floor(n-this.logMin)+1}},{key:"getMajorTickPositions",value:function(){var n=[];return this.traverseMajorTicksPositions(function(a){n.push(a)},{step:1,skip:0}),n}},{key:"createTicks",value:function(n){var a=this.options,o=a.majorTicks,s=a.minorTicks,l=a.vertical,u=a.labels.mirror,c=this.lineBox(),h={vertical:l};function f(g,_){h.tickX=u?c.x2:c.x2-_.size,h.tickY=u?c.y1-_.size:c.y1,h.position=g,n.append(P$(h,_))}return o.visible&&this.traverseMajorTicksPositions(f,o),s.visible&&this.traverseMinorTicksPositions(f,s),[]}},{key:"createGridLines",value:function(n){var a=this.options,o=a.minorGridLines,s=a.majorGridLines,l=a.vertical,u=n.lineBox(),c={lineStart:u[l?"x1":"y1"],lineEnd:u[l?"x2":"y2"],vertical:l},d=[],h=this.gridLinesVisual();function f(g,_){hn(g,d)||(c.position=g,h.append(B$(c,_)),d.push(g))}return s.visible&&this.traverseMajorTicksPositions(f,s),o.visible&&this.traverseMinorTicksPositions(f,o),h.children}},{key:"traverseMajorTicksPositions",value:function(n,a){for(var o=this.lineInfo(),s=o.lineStart,l=o.step,u=this.logMin,c=this.logMax,d=Math.ceil(u)+a.skip;d<=c;d+=a.step)n(tt(s+l*(d-u),10),a)}},{key:"traverseMinorTicksPositions",value:function(n,a){for(var o=this.options,s=o.min,l=o.max,u=o.minorUnit,c=o.majorUnit,d=this.lineInfo(),h=d.lineStart,f=d.step,g=this.logMin,_=this.logMax,w=Math.floor(g);w<_;w++)for(var E=this._minorIntervalOptions(w),M=a.skip;Ml)break;R>=s&&n(tt(h+f*(Cl(R,c)-g),10),a)}}},{key:"createAxisLabel",value:function(n,a,o){var s=Math.ceil(this.logMin+n),l=Math.pow(this.options.majorUnit,s),u=this.axisLabelText(l,a,o);return new bf(l,u,n,null,a)}},{key:"shouldRenderNote",value:function(n){var a=this.range();return a.min<=n&&n<=a.max}},{key:"pan",value:function(n){var a=this.translateRange(n);return this.limitRange(a.min,a.max,this.totalMin,this.totalMax,a.offset)}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a);return{min:Math.min(o,s),max:Math.max(o,s)}}},{key:"scaleRange",value:function(n,a){var o=this.options.majorUnit,s=Cl(this.options.min,o),l=Cl(this.options.max,o),u=Math.abs(this.pointOffset(a)),d=this.scaleToDelta(n,l-s),h=Math.pow(o,s+u*d),f=Math.pow(o,l-(1-u)*d);return f-h<1e-6&&(f=h+1e-6),{min:h,max:f}}},{key:"zoomRange",value:function(n,a){var o=this.scaleRange(n,a),s=this.totalMin,l=this.totalMax;return{min:Mt(o.min,s,l),max:Mt(o.max,s,l)}}},{key:"_minorIntervalOptions",value:function(n){var a=this.options,o=a.minorUnit,s=a.majorUnit,l=Math.pow(s,n);return{value:l,minorStep:(Math.pow(s,n+1)-l)/o}}},{key:"lineInfo",value:function(){var n=$(q(t.prototype),"lineInfo",this).call(this);return n.step=n.axisDir*(n.lineSize/(this.logMax-this.logMin)),n}}]),t}(dk);function XN(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function Cl(i,r){return Math.log(i)/Math.log(r)}ze(aq,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Xi},zIndex:1,_deferLabels:!0});var v0=aq,lBe={createGridLines:function(r){var o,s,t=this.options,e=Math.abs(this.box.center().y-r.lineBox().y1),n=[],a=!1;return t.majorGridLines.visible&&(o=this.majorGridLineAngles(r),a=!0,n=this.renderMajorGridLines(o,e,t.majorGridLines)),t.minorGridLines.visible&&(s=this.minorGridLineAngles(r,a),_f(n,this.renderMinorGridLines(s,e,t.minorGridLines,r,a))),n},renderMajorGridLines:function(r,t,e){return this.renderGridLines(r,t,e)},renderMinorGridLines:function(r,t,e,n,a){var o=this.radiusCallback&&this.radiusCallback(t,n,a);return this.renderGridLines(r,t,e,o)},renderGridLines:function(r,t,e,n){for(var a={stroke:{width:e.width,color:e.color,dashType:e.dashType}},o=this.box.center(),s=new bo([o.x,o.y],t),l=this.gridLinesVisual(),u=0;u3&&void 0!==arguments[3]&&arguments[3],l=this.options,u=l.categories.length,c=u/n||1,d=360/c,h=a||0,f=o||1,g=[],_=0,C=h;C3&&void 0!==arguments[3]&&arguments[3],l=this.options.min,u=this.getDivisions(n),c=[],d=a||0,h=o||1,f=d;f1&&void 0!==arguments[1]?arguments[1]:n,o=this.options,s=360-o.startAngle,l=this.getSlot(n,a),u=Math.min(n,a),c=Math.max(n,a);return o.reverse?(d=u,h=c):(d=360-c,h=360-u),new Sc([l.center.x,l.center.y],{startAngle:d=(d+s)%360,endAngle:h=(h+s)%360,radiusX:l.radius,radiusY:l.radius})}},{key:"getValue",value:function(n){var a=this.options,o=this.box.center(),u=Math.round(Rd(Math.atan2(n.y-o.y,n.x-o.x))),c=a.startAngle;return a.reverse||(u*=-1,c*=-1),(u+c+360)%360}},{key:"valueRange",value:function(){return{min:0,max:2*Math.PI}}}]),t}(dk);ze(QN,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:ti(10)},majorGridLines:{color:Xi,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),ne(QN.prototype,oq,{createPlotBands:YN.prototype.createPlotBands,majorAngles:YN.prototype.majorAngles,range:Us.prototype.range,labelsCount:Us.prototype.labelsCount,createAxisLabel:Us.prototype.createAxisLabel});var uBe=QN,cBe={options:{majorGridLines:{visible:!0}},createPlotBands:function(){for(var r=this.options,t=r.majorGridLines.type,e=r.plotBands,n=void 0===e?[]:e,a=this.plotArea.polarAxis,o=a.majorAngles(),s=a.box.center(),l=this._plotbandGroup=new sn({zIndex:-1}),u=0;u0){var f=new bo([r.x,r.y],h);if(n.type===Ad)c.append(new kl(f,a));else{for(var g=new dt(a),_=0;_1){var c=(Rd(Math.atan2(r.y-a.y,r.x-a.x))+540)%360;n.sort(function(_,C){return p0(_,c)-p0(C,c)});var d=p0(n[0],n[1])/2,h=p0(c,n[0]),f=90-d;s=o*(Math.sin(Sr(180-h-f))/Math.sin(Sr(f)))}return this.axisType().prototype.getValue.call(this,new Ut(t.x1,t.y2-s))}};function p0(i,r){return 180-Math.abs(Math.abs(i-r)-180)}var sq=cBe,lq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"radarMajorGridLinePositions",value:function(){return this.getTickPositions(this.options.majorUnit)}},{key:"radarMinorGridLinePositions",value:function(){var n=this.options,a=0;return n.majorGridLines.visible&&(a=n.majorUnit),this.getTickPositions(n.minorUnit,a)}},{key:"axisType",value:function(){return Us}}]),t}(Us);ne(lq.prototype,sq);var dBe=lq,uq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"radarMajorGridLinePositions",value:function(){var n=[];return this.traverseMajorTicksPositions(function(a){n.push(a)},this.options.majorGridLines),n}},{key:"radarMinorGridLinePositions",value:function(){var n=[];return this.traverseMinorTicksPositions(function(a){n.push(a)},this.options.minorGridLines),n}},{key:"axisType",value:function(){return v0}}]),t}(v0);ne(uq.prototype,sq);var hBe=uq,vBe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).closed=e,n}return v(t,[{key:"process",value:function(n){var a=n.slice(0),o=[],s=this.closed,l=a.length;if(l>2&&(this.removeDuplicates(0,a),l=a.length),l<2||2===l&&a[0].equals(a[1]))return o;var f,g,u=a[0],c=a[1],d=a[2];for(o.push(new yl(u));u.equals(a[l-1]);)s=!0,a.pop(),l--;if(2===l){var h=this.tangent(u,c,yt,Ct);return Yi(o).controlOut(this.firstControlPoint(h,u,c,yt,Ct)),o.push(new yl(c,this.secondControlPoint(h,u,c,yt,Ct))),o}if(s){var _=this.controlPoints(u=a[l-1],c=a[0],d=a[1]);f=_[1],g=_[0]}else{var C=this.tangent(u,c,yt,Ct);f=this.firstControlPoint(C,u,c,yt,Ct)}for(var w=f,E=0;E<=l-3;E++)if(this.removeDuplicates(E,a),E+3<=(l=a.length)){var M=this.controlPoints(u=a[E],c=a[E+1],d=a[E+2]);Yi(o).controlOut(w),w=M[1],o.push(new yl(c,M[0]))}if(s){var N=this.controlPoints(u=a[l-2],c=a[l-1],d=a[0]);Yi(o).controlOut(w),o.push(new yl(c,N[0])),Yi(o).controlOut(N[1]),o.push(new yl(d,g))}else{var G=this.tangent(c,d,yt,Ct);Yi(o).controlOut(w),o.push(new yl(d,this.secondControlPoint(G,c,d,yt,Ct)))}return o}},{key:"removeDuplicates",value:function(n,a){for(;a[n+1]&&(a[n].equals(a[n+1])||a[n+1].equals(a[n+2]));)a.splice(n+1,1)}},{key:"invertAxis",value:function(n,a,o){var s=!1;if(n.x===a.x)s=!0;else if(a.x===o.x)(a.y=u||(s=!0)}return s}},{key:"isLine",value:function(n,a,o){var s=this.lineFunction(n,a),l=this.calculateFunction(s,o.x);return n.x===a.x&&a.x===o.x||tt(l,1)===tt(o.y,1)}},{key:"lineFunction",value:function(n,a){var o=(a.y-n.y)/(a.x-n.x);return[n.y-o*n.x,o]}},{key:"controlPoints",value:function(n,a,o){var d,s=yt,l=Ct,u=!1,c=!1;if(this.isLine(n,a,o))d=this.tangent(n,a,yt,Ct);else{var h={x:this.isMonotonicByField(n,a,o,yt),y:this.isMonotonicByField(n,a,o,Ct)};h.x&&h.y?(d=this.tangent(n,o,yt,Ct),u=!0):(this.invertAxis(n,a,o)&&(s=Ct,l=yt),h[s]?d=0:(d=.01*(o[l]a[s]&&a[s]>n[s]||o[s]2&&void 0!==arguments[2])||arguments[2];return this._axis.slot(n,a,o)}},{key:"range",value:function(){return this._axis.range()}},{key:"valueRange",value:function(){return this._axis.valueRange()}}]),t}(mt),gBe=pBe;function hq(i,r){for(var t=0;t0&&(e=tF.sum(r)/t),e},first:function(r){for(var t=r.length,e=0;e1&&void 0!==arguments[1]?arguments[1]:[qo],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=0;s2&&void 0!==arguments[2]?arguments[2]:a,s={};if(a)for(var l=a.length,u=0;u=0){this.valueGetter=this.createValueGetter(a,o);var f=this.getStandardError(s,this.getAverage(s));this.globalRange=function(g){return{low:g-f,high:g+f}}}}},{key:"createValueGetter",value:function(n,a){var c,o=n.data,s=Qi.current,l=s.valueFields(n),u=Te(o[0])?o[0]:{};return Jr(u)?c=yc("["+(a?l.indexOf(a):0)+"]"):un(u)?c=yc():typeof u===uN&&(c=yc(s.sourceFields(n,l)[l.indexOf(a)])),c}},{key:"getErrorRange",value:function(n,a){var o,s,l;if(!Te(a))return null;if(this.globalRange)return this.globalRange(n);if(Jr(a))o=n-a[0],s=n+a[1];else if(un(l=parseFloat(a)))o=n-l,s=n+l;else{if(!(l=SBe.exec(a)))throw new Error("Invalid ErrorBar value: "+a);var u=n*(parseFloat(l[1])/100);o=n-Math.abs(u),s=n+Math.abs(u)}return{low:o,high:s}}},{key:"getStandardError",value:function(n,a){return this.getStandardDeviation(n,a,!0)/Math.sqrt(a.count)}},{key:"getStandardDeviation",value:function(n,a,o){for(var s=n.length,l=o?a.count-1:a.count,u=0,c=0;c2&&void 0!==arguments[2]?arguments[2]:{},e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=t.defaults=t.defaults||{},a=t.depth=t.depth||0,o=!1;if(t.excluded=t.excluded||[],a>5)return null;for(var s in i)if(!hn(s,t.excluded)&&i.hasOwnProperty(s)){var l=i[s];Ri(l)?(o=!0,e||(i[s]=qt(l(r),n[s]))):gl(l)&&(e||(t.defaults=n[s]),t.depth++,o=Mc(l,r,t,e)||o,t.depth--)}return o}function pF(i){for(var r=i.length,t=0,e=0;e0)return n.value/l}return n.value}},{key:"plotRange",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.categoryPoints[n.categoryIx];if(this.options.isStacked){for(var s=this.plotValue(n),l=s>=0,u=a,c=!1,d=0;d=0&&l||_<0&&!l)&&(u+=_,s+=_,c=!0,this.options.isStacked100&&(s=Math.min(s,1)))}}return c&&(u-=a),[u,s]}var C=n.series,w=this.seriesValueAxis(C),E=this.categoryAxisCrossingValue(w);return[E,C9(n.value)?n.value:E]}},{key:"stackLimits",value:function(n,a){for(var o=Zi,s=br,l=0;l0&&(this.errorTotals.positive[a]=Math.max(this.errorTotals.positive[a]||0,l)),{low:s,high:l}}},{key:"addValue",value:function(n,a){var o=a.categoryIx,s=a.series,l=a.seriesIx,u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]);var c=this.seriesPoints[l];c||(this.seriesPoints[l]=c=[]);var d=this.createPoint(n,a);d&&(Object.assign(d,a),d.owner=this,d.noteText=n.fields.noteText,Te(d.dataItem)||(d.dataItem=s.data[o]),this.addErrorBar(d,n,o)),this.points.push(d),c.push(d),u.push(d),this.updateRange(n.valueFields,a)}},{key:"evalPointOptions",value:function(n,a,o,s,l,u){var c={defaults:l._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},d=this._evalSeries[u];Te(d)||(this._evalSeries[u]=d=Mc(n,{},c,!0));var h=n;return d&&Mc(h=ne({},h),{value:a,category:o,index:s,series:l,dataItem:l.data[s]},c),h}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=n.value,l=this.valueAxisRanges[o];isFinite(s)&&null!==s&&((l=this.valueAxisRanges[o]=l||{min:Zi,max:br}).min=Math.min(l.min,s),l.max=Math.max(l.max,s))}},{key:"seriesValueAxis",value:function(n){var a=this.plotArea,o=n.axis,s=o?a.namedValueAxes[o]:a.valueAxis;if(!s)throw new Error("Unable to locate value axis with name "+o);return s}},{key:"reflow",value:function(n){var a=this,o=this.categorySlots=[],s=this.points,l=this.categoryAxis,u=0;this.traverseDataPoints(function(c,d){var h=d.categoryIx,g=a.seriesValueAxis(d.series),_=s[u++],C=o[h];if(C||(o[h]=C=a.categorySlot(l,h,g)),_){var w=a.plotRange(_,g.startValue()),E=a.valueSlot(g,w);if(E){var M=a.pointSlot(C,E);_.aboveAxis=a.aboveAxis(_,g),_.stackValue=w[1],a.options.isStacked100&&(_.percentage=a.plotValue(_)),a.reflowPoint(_,M)}else _.visible=!1}}),this.reflowCategories(o),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=n}},{key:"valueSlot",value:function(n,a){return n.getSlot(a[0],a[1],!this.options.clip)}},{key:"limitPoints",value:function(){for(var n=this.categoryPoints,a=n[0].concat(Yi(n)),o=0;o=o}},{key:"categoryAxisCrossingValue",value:function(n){var a=this.categoryAxis,o=n.options;return[].concat(o.axisCrossingValues||o.axisCrossingValue)[a.axisIndex||0]||0}},{key:"reflowPoint",value:function(n,a){n.reflow(a)}},{key:"reflowCategories",value:function(){}},{key:"pointSlot",value:function(n,a){var s=this.options.invertAxes,l=s?a:n,u=s?n:a;return new et(l.x1,u.y1,l.x2,u.y2)}},{key:"categorySlot",value:function(n,a){return n.getSlot(a)}},{key:"traverseDataPoints",value:function(n){for(var a=this.options.series,o=pF(a),s=a.length,l=0;l1&&(a=this.createSegment(c,s,o,a),this._addSegment(a)),c=[])}c.length>1&&(a=this.createSegment(c,s,o,a),this._addSegment(a))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(r){this._segments.push(r),r.parent=this},sortPoints:function(r){return r},seriesMissingValues:function(r){var t=r.missingValues;return!t&&this.options.isStacked?Ac:t||mg},getNearestPoint:function(r,t,e){for(var s,n=new Ut(r,t),a=this.seriesPoints[e],o=Zi,l=0;l0&&!1!==o.visible&&this.createStroke({stroke:ne({color:s,opacity:n.opacity,lineCap:"butt"},o)})}},{key:"strokeSegments",value:function(){var n=this._strokeSegments;return n||(n=this._strokeSegments=this.createStrokeSegments()),n}},{key:"createStrokeSegments",value:function(){return this.segmentsFromPoints(this.points())}},{key:"stackSegments",value:function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)}},{key:"createStackSegments",value:function(n){return this.segmentsFromPoints(this.toGeometryPoints(n)).reverse()}},{key:"segmentsFromPoints",value:function(n){return n.map(function(a){return new yl(a)})}},{key:"createStroke",value:function(n){var a=new dt(n);a.segments.push.apply(a.segments,this.strokeSegments()),this.visual.append(a)}},{key:"hasStackSegment",value:function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length}},{key:"createFill",value:function(n){var a=this.strokeSegments(),o=a.slice(0),s=this.hasStackSegment();if(s){var l=this.stackSegments();_f(o,l)}var u=new dt(n);u.segments.push.apply(u.segments,o),!s&&a.length>1&&this.fillToAxes(u),this.visual.append(u)}},{key:"fillToAxes",value:function(n){var a=this.parent,o=a.options.invertAxes,s=a.seriesValueAxis(this.series),l=a.categoryAxisCrossingValue(s),u=s.getSlot(l,l,!0),c=this.strokeSegments(),d=c[0].anchor(),h=Yi(c).anchor(),f=o?u.x1:u.y1;o?n.lineTo(f,h.y).lineTo(f,d.y):n.lineTo(h.x,f).lineTo(d.x,f)}}]),t}(Mg),Rg=JBe,Mq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createStrokeSegments",value:function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))}},{key:"createStackSegments",value:function(n){return this.segmentsFromPoints(this.calculateStepPoints(n)).reverse()}}]),t}(Rg);ne(Mq.prototype,mF);var eVe=Mq,tVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createStrokeSegments",value:function(){var n=new g0(this.options.closed),a=this.points();return n.process(a)}},{key:"createStackSegments",value:function(){for(var n=this.strokeSegments(),a=[],o=n.length-1;o>=0;o--){var s=n[o];a.push(new yl(s.anchor(),s.controlOut(),s.controlIn()))}return a}}]),t}(Rg),bF=tVe,nVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createSegment",value:function(n,a,o,s){var c,d,u=(a.line||{}).style;return this.options.isStacked&&o>0&&s&&("gap"!==this.seriesMissingValues(a)?(d=s.linePoints,c=s):d=this._gapStackPoints(n,o,u)),new(u===gk?eVe:u===_g?bF:Rg)(n,a,o,c,d)}},{key:"reflow",value:function(n){$(q(t.prototype),"reflow",this).call(this,n);var a=this._stackPoints;if(a)for(var o=0;o0&&!C);if(C)o!==gk&&f>l&&!s[_][g-1]&&h.push(this._previousSegmentPoint(f,g,g-1,_)),h.push(C),o!==gk&&f+10&&!c;)c=l[--u][o];return c?c=l[u][a]:(c=this._createGapStackPoint(n),this._stackPoints.push(c)),c}},{key:"_createGapStackPoint",value:function(n){var a=this.pointOptions({},0),o=new Tf(0,a);return o.categoryIx=n,o.series={},o}},{key:"seriesMissingValues",value:function(n){return n.missingValues||Ac}},{key:"supportsPointInactiveOpacity",value:function(){return!1}}]),t}(CF),iVe=nVe,rVe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this)).axisRanges={},e}return v(t,[{key:"update",value:function(n){var a=this.axisRanges;for(var o in n){var s=n[o],l=a[o];a[o]=l=l||{min:Zi,max:br},l.min=Math.min(l.min,s.min),l.max=Math.max(l.max,s.max)}}},{key:"reset",value:function(n){this.axisRanges[n]=void 0}},{key:"query",value:function(n){return this.axisRanges[n]}}]),t}(mt),R0=rVe,Rq=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).textBox=new Yo(e,o.options,a),o.append(o.textBox),o}return v(t,[{key:"createVisual",value:function(){this.textBox.options.noclip=this.options.noclip}},{key:"reflow",value:function(n){var a=this.options,o=a.vertical,s=a.aboveAxis,l=this.children[0],u=l.options,c=l.box,d=l.options.padding,h=n;u.align=o?Qt:Sn,u.vAlign=o?Fn:Qt,a.position===T0?o?(u.vAlign=Fn,!s&&c.height()0&&a.height()>0&&this.createRect(this.visual)}},{key:"createRect",value:function(n){var a=this.options,o=a.border,s=Te(o.opacity)?o.opacity:a.opacity,l=this.box.toRect();l.size.width=Math.round(l.size.width);var u=this.rectVisual=dt.fromRect(l,{fill:{color:this.color,opacity:a.opacity},stroke:{color:this.getBorderColor(),width:o.width,opacity:s,dashType:o.dashType}}),c=this.box.width(),d=this.box.height();if((a.vertical?c:d)>6&&(Ns(u),(c<1||d<1)&&(u.options.stroke.lineJoin="round")),n.append(u),SF(a)){var f=this.createGradientOverlay(u,{baseColor:this.color},ne({end:a.vertical?void 0:[0,1]},a.overlay));n.append(f)}}},{key:"createHighlight",value:function(n){return Ns(dt.fromRect(this.box.toRect(),n))}},{key:"highlightVisual",value:function(){return this.rectVisual}},{key:"highlightVisualArgs",value:function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}}},{key:"getBorderColor",value:function(){var n=this.color,a=this.options.border,o=a._brightness||.8,s=a.color;return Te(s)||(s=new Bs(n).brightness(o).toHex()),s}},{key:"tooltipAnchor",value:function(){var c,d,n=this.options,a=this.box,o=this.aboveAxis,s=this.owner.pane.clipBox()||a,l=Sn,u=Fn;if(n.vertical)c=Math.min(a.x2,s.x2)+5,o?d=Math.max(a.y1,s.y1):(d=Math.min(a.y2,s.y2),u=Zn);else{var h=Math.max(a.x1,s.x1),f=Math.min(a.x2,s.x2);n.isStacked?(u=Zn,o?(l=Vn,c=f):c=h,d=Math.max(a.y1,s.y1)-5):(o?c=f+5:(c=h-5,l=Vn),d=Math.max(a.y1,s.y1))}return{point:new Ut(c,d),align:{horizontal:l,vertical:u}}}},{key:"overlapsBox",value:function(n){return this.box.overlaps(n)}},{key:"pointData",value:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}}}]),t}(Kn);ne(O0.prototype,wl),ne(O0.prototype,xg),O0.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var wF=O0;function Iq(i,r){i.forEach(r)}function Nq(i,r){for(var t=i.length,e=t-1;e>=0;e--)r(i[e],e-t-1)}var Fq=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).forEach=e.rtl?Nq:Iq,n}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=a.vertical,s=a.gap,l=a.spacing,u=this.children,c=u.length,d=o?Ct:yt,h=c+s+l*(c-1),f=(o?n.height():n.width())/h,g=n[d+1]+f*(s/2);this.forEach(u,function(_,C){var w=(_.box||n).clone();w[d+1]=g,w[d+2]=g+f,_.reflow(w),C0&&o.options.set("stroke",{color:this.getBorderColor(),width:a.border.width,dashType:a.border.dashType,opacity:qt(a.border.opacity,a.opacity)}),Ns(o),n.append(o),SF(a)&&n.append(this.createGradientOverlay(o,{baseColor:this.color},ne({end:a.vertical?void 0:[0,1]},a.overlay)))}},{key:"createLines",value:function(n,a){this.drawLines(n,a,this.lines,a.line)}},{key:"drawLines",value:function(n,a,o,s){if(o)for(var l={stroke:{color:s.color||this.color,opacity:qt(s.opacity,a.opacity),width:s.width,dashType:s.dashType,lineCap:"butt"}},u=0;u{4:d}Open:{0:C}High:{1:C}Low:{2:C}Close:{3:C}"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),ne(N0.prototype,wl),ne(N0.prototype,xg);var DF=N0;function Bq(i){return eF(i)===i.length}var Vq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflowCategories",value:function(n){for(var a=this.children,o=a.length,s=0;sd.close&&(f=n.fields.downColor||l.downColor||l.color),Ri(l.color)&&(f=h.color),h.vertical=!this.options.invertAxes;var g=new c(d,h);return g.color=f,g}},{key:"splitValue",value:function(n){return[n.low,n.open,n.close,n.high]}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=this.splitValue(n),l=this.valueAxisRanges[o];l=this.valueAxisRanges[o]=l||{min:Zi,max:br},l=this.valueAxisRanges[o]={min:Math.min.apply(Math,s.concat([l.min])),max:Math.max.apply(Math,s.concat([l.max]))}}},{key:"formatPointValue",value:function(n,a){var o=n.value;return this.chartService.format.auto(a,o.open,o.high,o.low,o.close,n.category)}},{key:"animationPoints",value:function(){return this.points}}]),t}(Rc);ne(Vq.prototype,M0);var EF=Vq,TF=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).createNote(),a}return v(t,[{key:"reflow",value:function(n){var u,c,o=this.value,l=this.owner.seriesValueAxis(this.options);this.boxSlot=c=l.getSlot(o.q1,o.q3),this.realBody=c,this.reflowBoxSlot(n),this.whiskerSlot=u=l.getSlot(o.lower,o.upper),this.reflowWhiskerSlot(n);var d=l.getSlot(o.median);if(o.mean){var h=l.getSlot(o.mean);this.meanPoints=this.calcMeanPoints(n,h)}this.whiskerPoints=this.calcWhiskerPoints(c,u),this.medianPoints=this.calcMedianPoints(n,d),this.box=u.clone().wrap(c),this.reflowNote()}},{key:"reflowBoxSlot",value:function(n){this.boxSlot.x1=n.x1,this.boxSlot.x2=n.x2}},{key:"reflowWhiskerSlot",value:function(n){this.whiskerSlot.x1=n.x1,this.whiskerSlot.x2=n.x2}},{key:"calcMeanPoints",value:function(n,a){return[[[n.x1,a.y1],[n.x2,a.y1]]]}},{key:"calcWhiskerPoints",value:function(n,a){var o=a.center().x;return[[[o-5,a.y1],[o+5,a.y1],[o,a.y1],[o,n.y1]],[[o-5,a.y2],[o+5,a.y2],[o,a.y2],[o,n.y2]]]}},{key:"calcMedianPoints",value:function(n,a){return[[[n.x1,a.y1],[n.x2,a.y1]]]}},{key:"renderOutliers",value:function(n){for(var a=this.value,o=a.outliers||[],s=3*Math.abs(a.q3-a.q1),l=[],u=n.markers||{},c=0;ca.q1-s?n.outliers:n.extremes).border);Te(h.color)||(h.color=Te(this.color)?this.color:new Bs(u.background).brightness(.8).toHex());var f=new Fd({type:u.type,width:u.size,height:u.size,rotation:u.rotation,background:u.background,border:h,opacity:u.opacity});f.value=d,l.push(f)}return this.reflowOutliers(l),l}},{key:"reflowOutliers",value:function(n){for(var a=this.owner.seriesValueAxis(this.options),o=this.box.center(),s=0;s{6:d}Lower:{0:C}Q1:{1:C}Median:{2:C}Mean:{5:C}Q3:{3:C}Upper:{4:C}"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:Ln,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:pl,background:Ln,border:{width:2,opacity:1},opacity:0}}),ne(TF.prototype,wl);var Gq=TF,sVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflowBoxSlot",value:function(n){this.boxSlot.y1=n.y1,this.boxSlot.y2=n.y2}},{key:"reflowWhiskerSlot",value:function(n){this.whiskerSlot.y1=n.y1,this.whiskerSlot.y2=n.y2}},{key:"calcMeanPoints",value:function(n,a){return[[[a.x1,n.y1],[a.x1,n.y2]]]}},{key:"calcWhiskerPoints",value:function(n,a){var o=a.center().y;return[[[a.x1,o-5],[a.x1,o+5],[a.x1,o],[n.x1,o]],[[a.x2,o-5],[a.x2,o+5],[a.x2,o],[n.x2,o]]]}},{key:"calcMedianPoints",value:function(n,a){return[[[a.x1,n.y1],[a.x1,n.y2]]]}}]),t}(Gq),lVe=sVe,uVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"addValue",value:function(n,a){var w,o=a.categoryIx,s=a.category,l=a.series,u=a.seriesIx,c=this.children,d=this.options,h=n.valueFields,g=Bq(this.splitValue(h)),_=l.data[o],C=this.categoryPoints[o];C||(this.categoryPoints[o]=C=[]),g&&(w=this.createPoint(n,a));var E=c[o];E||(E=new I0({vertical:d.invertAxes,gap:d.gap,spacing:d.spacing,rtl:!d.invertAxes&&(this.chartService||{}).rtl}),this.append(E)),w&&(this.updateRange(h,a),E.append(w),w.categoryIx=o,w.category=s,w.series=l,w.seriesIx=u,w.owner=this,w.dataItem=_),this.points.push(w),C.push(w)}},{key:"pointType",value:function(){return this.options.invertAxes?lVe:Gq}},{key:"splitValue",value:function(n){return[n.lower,n.q1,n.median,n.q3,n.upper]}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=this.valueAxisRanges[o],l=this.splitValue(n).concat(this.filterOutliers(n.outliers));Te(n.mean)&&(l=l.concat(n.mean)),s=this.valueAxisRanges[o]=s||{min:Zi,max:br},s=this.valueAxisRanges[o]={min:Math.min.apply(Math,l.concat([s.min])),max:Math.max.apply(Math,l.concat([s.max]))}}},{key:"formatPointValue",value:function(n,a){var o=n.value;return this.chartService.format.auto(a,o.lower,o.q1,o.median,o.q3,o.upper,o.mean,n.category)}},{key:"filterOutliers",value:function(n){for(var a=(n||[]).length,o=[],s=0;s0||n.size<0&&a.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(n.size)),$(q(t.prototype),"addValue",this).call(this,n,a)):(this.points.push(null),this.seriesPoints[a.seriesIx].push(null))}},{key:"reflow",value:function(n){this.updateBubblesSize(n),$(q(t.prototype),"reflow",this).call(this,n)}},{key:"pointType",value:function(){return Uq}},{key:"createPoint",value:function(n,a){var o=a.series,l=a.pointIx*(zs/o.data.length),u={delay:l,duration:zs-l,type:yg},c=a.color||o.color;n.size<0&&o.negativeValues.visible&&(c=qt(o.negativeValues.color,c));var d=ne({labels:{animation:{delay:l,duration:zs-l}}},this.pointOptions(o,a.seriesIx),{markers:{type:pl,border:o.border,opacity:o.opacity,animation:u}});d=this.evalPointOptions(d,n,a),Ri(o.color)&&(c=d.color),d.markers.background=c;var h=new Uq(n,d);return h.color=c,this.append(h),h}},{key:"updateBubblesSize",value:function(n){for(var a=this.options.series,o=Math.min(n.width(),n.height()),s=0;s0&&a.options.set("stroke",{color:n.border.color||this.color,width:n.border.width,dashType:n.border.dashType,opacity:qt(n.border.opacity,n.opacity)}),this.bodyVisual=a,Ns(a),this.visual.append(a)}},{key:"createAnimation",value:function(){this.bodyVisual&&(this.animation=Gs.create(this.bodyVisual,this.options.animation))}},{key:"createHighlight",value:function(n){return dt.fromRect(this.box.toRect(),n)}},{key:"highlightVisual",value:function(){return this.bodyVisual}},{key:"highlightVisualArgs",value:function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}}]),t}(Kn);Mk.prototype.tooltipAnchor=wF.prototype.tooltipAnchor,ze(Mk,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}
Target: {1}"}}),ne(Mk.prototype,wl),ne(Mk.prototype,xg);var pVe=Mk,xF=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),function gVe(i){for(var r=i.series,t=0;t0}},{key:"createAnimation",value:function(){var n=this.points;this._setAnimationOptions();for(var a=0;a0&&a0&&void 0!==arguments[0]?arguments[0]:this.panes,a=0;a=0;s--)for(var l=0;l0&&(s=Math.max(s,o.width()-u.contentBox.width()))}if(0!==s)for(var c=0;c0){var d=IF(u),h=Math.max(c.y1-d.y1,c.y2-d.y2);o=Math.max(o,c.x1-d.x1);for(var f=0;f0&&a.y.length>0&&(this.alignAxes(a.x,a.y),this.shrinkAxisWidth(n),this.autoRotateAxisLabels(a),this.alignAxes(a.x,a.y),this.shrinkAxisWidth(n)&&this.alignAxes(a.x,a.y),this.shrinkAxisHeight(n),this.alignAxes(a.x,a.y),this.shrinkAxisHeight(n)&&this.alignAxes(a.x,a.y),this.fitAxes(n))}},{key:"autoRotateAxisLabels",value:function(n){for(var s,a=this.panes,o=xVe(a),l=0;l0&&n.y.length>0&&(this.alignAxes(n.x,n.y),this.shrinkAxisWidth(a))}}},{key:"reflowPaneAxes",value:function(n){var a=n.axes,o=a.length;if(o>0)for(var s=0;s-1){for(var a=i.split(".");a.length>1;)n=a.shift(),Te(e[n])||(e[n]={}),e=e[n];n=a.shift()}e[n]=t}var IVe=RVe,FF=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._defaults={},e}return v(t,[{key:"register",value:function(n,a){for(var o=0;os.to,a.reflow(n)),o&&(o.options.aboveAxis=s.to>s.from,o.reflow(n)),this.note&&this.note.reflow(n)}}]),t}(wF);LF.prototype.defaults=ne({},LF.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var NVe=LF,eX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"pointType",value:function(){return NVe}},{key:"pointValue",value:function(n){return n.valueFields}},{key:"formatPointValue",value:function(n,a){return null===n.value.from&&null===n.value.to?"":this.chartService.format.auto(a,n.value.from,n.value.to)}},{key:"plotRange",value:function(n){return n?[n.value.from,n.value.to]:0}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=n.from,l=n.to,u=this.valueAxisRanges[o];null!==n&&un(s)&&un(l)&&((u=this.valueAxisRanges[o]=u||{min:Zi,max:br}).min=Math.min(u.min,s),u.max=Math.max(u.max,s),u.min=Math.min(u.min,l),u.max=Math.max(u.max,l))}},{key:"aboveAxis",value:function(n){var a=n.value;return a.from=0}},{key:"plotRange",value:function(n){return[n.from,n.to]}},{key:"createSegments",value:function(){for(var n=this.options.series,a=this.seriesPoints,o=this.segments=[],s=0;s0){this.invertAxes=hn(n[0].type,[Sl,Pd,Dg,Sg,Eg,bg,Cg,wg]);for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:this.panes;this.createCategoryAxes(n),this.aggregateCategories(n),this.createCategoryAxesLabels(n),this.createCharts(n),this.createValueAxes(n)}},{key:"removeAxis",value:function(n){var a=n.options.name;$(q(t.prototype),"removeAxis",this).call(this,n),n instanceof Ec?delete this.namedCategoryAxes[a]:(this.valueAxisRangeTracker.reset(a),delete this.namedValueAxes[a]),n===this.categoryAxis&&delete this.categoryAxis,n===this.valueAxis&&delete this.valueAxis}},{key:"createCharts",value:function(n){for(var a=this.groupSeriesByPane(),o=0;o0)for(l=s.options.categories=s.options.categories.slice(0);u--;)l.push("");this.valueAxisRangeTracker.update(n.valueAxisRanges),$(q(t.prototype),"appendChart",this).call(this,n,a)}},{key:"seriesPaneName",value:function(n){var a=this.options,o=n.axis;return(Xo([].concat(a.valueAxis),function(h){return h.name===o})[0]||{}).pane||((a.panes||[{}])[0]||{}).name||"default"}},{key:"seriesCategoryAxis",value:function(n){var a=n.categoryAxis,o=a?this.namedCategoryAxes[a]:this.categoryAxis;if(!o)throw new Error("Unable to locate category axis with name "+a);return o}},{key:"stackableChartOptions",value:function(n,a){var o=n.stack;return{isStacked:o,isStacked100:o&&"100%"===o.type,clip:a.options.clip}}},{key:"groupSeriesByCategoryAxis",value:function(n){for(var a=[],o={},s=0;s0&&d.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,category:Og(c),value:Og(d)})}}},{key:"pointPane",value:function(n){for(var a=this.panes,o=0;or?l():e=setTimeout(l,r-o)};return n.cancel=function(){clearTimeout(e)},n}var QVe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._events={},e}return v(t,[{key:"bind",value:function(n,a,o){var s=arguments,l=this,u=cX(n),c=uX(a),d=u.length;if(void 0===a){for(var h in n)this.bind(h,n[h]);return this}for(var f=function(C){var w=u[C],E=c?a:a[w];if(E){if(o){var M=E;(E=function(){l.unbind(w,E),M.apply(l,s)}).original=M}(l._events[w]=l._events[w]||[]).push(E)}},g=0;g1&&void 0!==arguments[1]?arguments[1]:{},o=this._events[n];if(o){var s=o.length;a.sender=this,a._defaultPrevented=!1,a.preventDefault=JVe,a.isDefaultPrevented=eGe,o=o.slice();for(var l=0;l=0;s--)(o[s]===a||o[s].original===a)&&o.splice(s,1);else this._events[n]=[];return this}}]),t}(mt);function uX(i){return"function"==typeof i}function cX(i){return"string"==typeof i?[i]:i}function JVe(){this._defaultPrevented=!0}function eGe(){return!0===this._defaultPrevented}var nGe=["click","mouseenter","mouseleave","mousemove","resize"],iGe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).options=Object.assign({},n),a.element=e,a.element._kendoExportVisual=a.exportVisual.bind(Xe(a)),a._click=a._handler("click"),a._mouseenter=a._handler("mouseenter"),a._mouseleave=a._handler("mouseleave"),a._mousemove=a._handler("mousemove"),a._visual=new sn,ek(e,a.options),a.bind(nGe,a.options),a._enableTracking(),a}return v(t,[{key:"draw",value:function(n){this._visual.children.push(n)}},{key:"clear",value:function(){this._visual.children=[]}},{key:"destroy",value:function(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()}},{key:"eventTarget",value:function(n){for(var o,a=R9(n);!o&&a&&(o=a._kendoNode,a!==this.element);)a=a.parentElement;if(o)return o.srcElement}},{key:"exportVisual",value:function(){return this._visual}},{key:"getSize",value:function(){return ek(this.element)}},{key:"currentSize",value:function(n){if(!n)return this._size;this._size=n}},{key:"setSize",value:function(n){ek(this.element,n),this.currentSize(n),this._resize()}},{key:"resize",value:function(n){var a=this.getSize(),o=this.currentSize();(n||(a.width>0||a.height>0)&&(!o||a.width!==o.width||a.height!==o.height))&&(this.currentSize(a),this._resize(a,n),this.trigger("resize",a))}},{key:"size",value:function(n){if(!n)return this.getSize();this.setSize(n)}},{key:"suspendTracking",value:function(){this._suspendedTracking=!0}},{key:"resumeTracking",value:function(){this._suspendedTracking=!1}},{key:"_enableTracking",value:function(){}},{key:"_resize",value:function(){}},{key:"_handler",value:function(n){var a=this;return function(o){var s=a.eventTarget(o);s&&!a._suspendedTracking&&a.trigger(n,{element:s,originalEvent:o,type:n})}}},{key:"_elementOffset",value:function(){var n=this.element,a=F9(n),o=I9(n);return{left:o.left+a.left,top:o.top+a.top}}},{key:"_surfacePoint",value:function(n){var a=this._elementOffset(),o=M9(n),s=o.x-a.left,l=o.y-a.top,u=P9(this.element).invert();return new Pe(s,l).transform(u)}}]),t}(QVe),UF=iGe,rGe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).childNodes=[],n.parent=null,e&&(n.srcElement=e,n.observe()),n}return v(t,[{key:"destroy",value:function(){this.srcElement&&this.srcElement.removeObserver(this);for(var n=this.childNodes,a=0;a0&&u.load(l);var c=this.element;c&&u.attachTo(c,a)}}},{key:"root",value:function(){for(var n=this;n.parent;)n=n.parent;return n}},{key:"attachTo",value:function(n,a){var o=document.createElement("div");vX(o,""+this.render()+"");var s=o.firstChild.firstChild;s&&(Gt(a)?n.insertBefore(s,n.childNodes[a]||null):n.appendChild(s),this.setElement(s))}},{key:"setElement",value:function(n){this.element&&(this.element._kendoNode=null),this.element=n,this.element._kendoNode=this;for(var a=this.childNodes,o=0;o")}},{key:"renderOffset",value:function(){return Mf("offset",this.srcElement.offset())}},{key:"mapStyle",value:function(){var n=this.srcElement;return[["stop-color",n.color()],["stop-opacity",n.opacity()]]}},{key:"optionsChange",value:function(n){"offset"===n.field?this.attr(n.field,n.value):("color"===n.field||"opacity"===n.field)&&this.css("stop-"+n.field,n.value)}}]),t}(Of),dGe=cGe,hGe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).id=e.id,n.loadStops(),n}return v(t,[{key:"loadStops",value:function(){for(var n=this.srcElement.stops,a=this.element,o=0;o").concat(this.renderChildren(),"")}},{key:"mapCoordinates",value:function(){var n=this.srcElement,a=n.start(),o=n.end();return[["x1",a.x],["y1",a.y],["x2",o.x],["y2",o.y],this.mapSpace()]}}]),t}(mX),vGe=fGe,pGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}},{key:"mapCoordinates",value:function(){var n=this.srcElement,a=n.center(),o=n.radius();return[["cx",a.x],["cy",a.y],["r",o],this.mapSpace()]}}]),t}(mX),gGe=pGe,mGe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).srcElement=e,n.id=e.id,n.load([e]),n}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}}]),t}(Of),_Ge=mGe,yGe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this)).definitionMap={},e}return v(t,[{key:"attachTo",value:function(n){this.element=n}},{key:"template",value:function(){return"".concat(this.renderChildren(),"")}},{key:"definitionChange",value:function(n){var a=n.definitions,o=n.action;"add"===o?this.addDefinitions(a):"remove"===o&&this.removeDefinitions(a)}},{key:"createDefinition",value:function(n,a){var o;return"clip"===n?o=_Ge:"fill"===n&&(a instanceof r0?o=vGe:a instanceof a0&&(o=gGe)),new o(a)}},{key:"addDefinitions",value:function(n){for(var a in n)this.addDefinition(a,n[a])}},{key:"addDefinition",value:function(n,a){var o=this.element,s=this.definitionMap,l=a.id,u=s[l];if(u)u.count++;else{var c=this.createDefinition(n,a);s[l]={element:c,count:1},this.append(c),o&&c.attachTo(this.element)}}},{key:"removeDefinitions",value:function(n){for(var a in n)this.removeDefinition(n[a])}},{key:"removeDefinition",value:function(n){var a=this.definitionMap,o=n.id,s=a[o];s&&(s.count--,0===s.count&&(this.remove(this.childNodes.indexOf(s.element),1),delete a[o]))}}]),t}(Of),kGe=yGe,CGe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).options=e,n.defs=new kGe,n}return v(t,[{key:"attachTo",value:function(n){this.element=n,this.defs.attachTo(n.firstElementChild)}},{key:"clear",value:function(){V0.prototype.clear.call(this)}},{key:"template",value:function(){return this.defs.render()+this.renderChildren()}},{key:"definitionChange",value:function(n){this.defs.definitionChange(n)}}]),t}(Of),_X=CGe,yX={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},zF="solid",bGe={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},SGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){this.attr("d",this.renderData()),this.invalidate()}},{key:"optionsChange",value:function(n){switch(n.field){case"fill":n.value?this.allAttr(this.mapFill(n.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:n.value}));break;case"stroke":n.value?this.allAttr(this.mapStroke(n.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(n.value);break;default:var a=bGe[n.field];a&&this.attr(a,n.value)}$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"content",value:function(){this.element&&(this.element.textContent=this.srcElement.content())}},{key:"renderData",value:function(){return this.printPath(this.srcElement)}},{key:"printPath",value:function(n){var a=n.segments,o=a.length;if(o>0){for(var l,u,s=[],c=1;c
")}}]),t}(Of),If=SGe,wGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderData",value:function(){return this.printPath(this.srcElement.toPath())}}]),t}(If),DGe=wGe,EGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){var n=this.center();this.attr("cx",n.x),this.attr("cy",n.y),this.attr("r",this.radius()),this.invalidate()}},{key:"center",value:function(){return this.srcElement.geometry().center}},{key:"radius",value:function(){return this.srcElement.geometry().radius}},{key:"template",value:function(){return"")}}]),t}(If),TGe=EGe,AGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}},{key:"optionsChange",value:function(n){"transform"===n.field&&this.transformChange(n.value),$(q(t.prototype),"optionsChange",this).call(this,n)}}]),t}(Of),xGe=AGe,MGe=/&/g,RGe=//g;function HF(i){return String(i).replace(MGe,"&").replace(RGe,"<").replace(NGe,">").replace(OGe,""").replace(IGe,"'")}var FGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){this.allAttr(this.mapPosition()),this.invalidate()}},{key:"optionsChange",value:function(n){"src"===n.field&&this.allAttr(this.mapSource()),$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"mapPosition",value:function(){var n=this.srcElement.rect(),a=n.topLeft();return[["x",a.x],["y",a.y],["width",n.width()+"px"],["height",n.height()+"px"]]}},{key:"renderPosition",value:function(){return Rf(this.mapPosition())}},{key:"mapSource",value:function(n){var a=this.srcElement.src();return n&&(a=HF(a)),[["xlink:href",a]]}},{key:"renderSource",value:function(){return Rf(this.mapSource(!0))}},{key:"template",value:function(){return"")+""}}]),t}(If),LGe=FGe,PGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderData",value:function(){var n=this.srcElement.paths;if(n.length>0){for(var a=[],o=0;o")}}]),t}(If),GGe=VGe,KF=/&(?:[a-zA-Z]+|#\d+);/g;function jF(i){if(!i||"string"!=typeof i||!KF.test(i))return i;var r=jF._element;return KF.lastIndex=0,i.replace(KF,function(t){return r.innerHTML=t,r.textContent||r.innerText})}"undefined"!=typeof document&&(jF._element=document.createElement("span"));var UGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){var n=this.pos();this.attr("x",n.x),this.attr("y",n.y),this.invalidate()}},{key:"optionsChange",value:function(n){"font"===n.field?(this.attr("style",dX(this.mapStyle())),this.geometryChange()):"content"===n.field&&$(q(t.prototype),"content",this).call(this,this.srcElement.content()),$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"mapStyle",value:function(n){var a=$(q(t.prototype),"mapStyle",this).call(this,n),o=this.srcElement.options.font;return n&&(o=HF(o)),a.push(["font",o],["white-space","pre"]),a}},{key:"pos",value:function(){var n=this.srcElement.position(),a=this.srcElement.measure();return n.clone().setY(n.y+a.baseline)}},{key:"renderContent",value:function(){var n=this.srcElement.content();return yN(n=HF(n=jF(n)))}},{key:"renderTextAnchor",value:function(){var n;return(this.options||{}).rtl&&!(ml.browser.msie||ml.browser.edge)&&(n="end"),Mf("text-anchor",n)}},{key:"template",value:function(){return"").concat(this.renderContent(),"")}}]),t}(If),zGe=UGe;Oc.Arc=DGe,Oc.Circle=TGe,Oc.Group=xGe,Oc.Image=LGe,Oc.MultiPath=BGe,Oc.Path=If,Oc.Rect=GGe,Oc.Text=zGe;var jGe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n))._root=new _X(Object.assign({rtl:"rtl"===KD(e,"direction").direction},a.options)),vX(a.element,a._template()),a._rootElement=a.element.firstElementChild,function KGe(i){var r;try{r=i.getScreenCTM?i.getScreenCTM():null}catch(a){}if(r){var t=-r.e%1,e=-r.f%1,n=i.style;(0!==t||0!==e)&&(n.left=t+"px",n.top=e+"px")}}(a._rootElement),a._root.attachTo(a._rootElement),gN(a.element,{click:a._click,mouseover:a._mouseenter,mouseout:a._mouseleave,mousemove:a._mousemove}),a.resize(),a}return v(t,[{key:"type",get:function(){return"svg"}},{key:"destroy",value:function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,mN(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),$(q(t.prototype),"destroy",this).call(this)}},{key:"translate",value:function(n){var a="".concat(Math.round(n.x)," ").concat(Math.round(n.y)," ").concat(this._size.width," ").concat(this._size.height);this._offset=n,this._rootElement.setAttribute("viewBox",a)}},{key:"draw",value:function(n){$(q(t.prototype),"draw",this).call(this,n),this._root.load([n])}},{key:"clear",value:function(){$(q(t.prototype),"clear",this).call(this),this._root.clear()}},{key:"svg",value:function(){return""+this._template()}},{key:"exportVisual",value:function(){var n=this._visual,a=this._offset;if(a){var o=new sn;o.children.push(n),o.transform(Hn().translate(-a.x,-a.y)),n=o}return n}},{key:"_resize",value:function(){this._offset&&this.translate(this._offset)}},{key:"_template",value:function(){return"").concat(this._root.render(),"")}}]),t}(UF),WGe=jGe,Ic={};function z0(i,r){var t=r.segments;if(0!==t.length){var e=t[0],n=e.anchor();i.moveTo(n.x,n.y);for(var a=1;a0&&c.load(u,a,o),Gt(a)?this.insertAt(c,a):this.append(c)}}},{key:"load",value:function(n,a,o){this.loadElements(n,a,o),this.invalidate()}},{key:"setOpacity",value:function(n){if(this.srcElement){var a=this.srcElement.opacity();Gt(a)&&this.globalAlpha(n,a)}}},{key:"globalAlpha",value:function(n,a){var o=a;o&&n.globalAlpha&&(o*=n.globalAlpha),n.globalAlpha=o}},{key:"visible",value:function(){var n=this.srcElement;return!n||n&&!1!==n.options.visible}}]),t}(V0),bX=qGe,XGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderTo",value:function(n){if(this.visible()){n.save(),this.setTransform(n),this.setClip(n),this.setOpacity(n);for(var a=this.childNodes,o=0;o0;)(a=n.pop()).addObserver(this),"Group"===a.nodeType?Qy(n,a.children):this._insertShape(a)}},{key:"_insertShape",value:function(n){var a=n.bbox();if(a){var o=this.getSectors(a),s=o[0][0],l=o[1][0];if(this.inRoot(o))this.root.insert(n,a);else{var u=this.rootMap;u[s]||(u[s]={}),u[s][l]||(u[s][l]=new tUe(new cn([s*vu,l*vu],[vu,vu]))),u[s][l].insert(n,a)}}}},{key:"remove",value:function(n){if(n.removeObserver(this),"Group"===n.nodeType)for(var a=n.children,o=0;o1||n[1].length>1}},{key:"getSectors",value:function(n){for(var a=n.bottomRight(),o=Math.floor(a.x/vu),s=Math.floor(a.y/vu),l=[[],[]],u=Math.floor(n.origin.x/vu);u<=o;u++)l[0].push(u);for(var c=Math.floor(n.origin.y/vu);c<=s;c++)l[1].push(c);return l}}]),t}(mt);function rUe(i,r){return i._zIndexr._zIndex?-1:0}var EX=iUe,aUe=function(){function i(r){p(this,i),r.bind("mouseenter",this._mouseenter.bind(this)),r.bind("mouseleave",this._mouseleave.bind(this)),this.element=r.element}return v(i,[{key:"clear",value:function(){this._resetCursor()}},{key:"destroy",value:function(){this._resetCursor(),delete this.element}},{key:"_mouseenter",value:function(t){var e=this._shapeCursor(t);e?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(e)):this._resetCursor()}},{key:"_mouseleave",value:function(){this._resetCursor()}},{key:"_shapeCursor",value:function(t){for(var e=t.element;e&&!Gt(e.options.cursor);)e=e.parent;if(e)return e.options.cursor}},{key:"_getCursor",value:function(){if(this.element)return this.element.style.cursor}},{key:"_setCursor",value:function(t){this.element&&(this.element.style.cursor=t,this._current=t)}},{key:"_resetCursor",value:function(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)}}]),i}(),oUe=aUe,lUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderTo",value:function(n){n.save(),this.setTransform(n),this.setClip(n),this.setOpacity(n),n.beginPath(),this.renderPoints(n,this.srcElement),this.setLineDash(n),this.setLineCap(n),this.setLineJoin(n),this.setFill(n),this.setStroke(n),n.restore()}},{key:"setFill",value:function(n){var a=this.srcElement.options.fill,o=!1;return a&&("Gradient"===a.nodeType?(this.setGradientFill(n,a),o=!0):mf(a.color)||(n.fillStyle=a.color,n.save(),this.globalAlpha(n,a.opacity),n.fill(),n.restore(),o=!0)),o}},{key:"setGradientFill",value:function(n,a){var s,o=this.srcElement.rawBBox();if(a instanceof r0){var l=a.start(),u=a.end();s=n.createLinearGradient(l.x,l.y,u.x,u.y)}else if(a instanceof a0){var c=a.center();s=n.createRadialGradient(c.x,c.y,0,c.x,c.y,a.radius())}(function sUe(i,r){for(var t=0;t0)return n.strokeStyle=a.color,n.lineWidth=pN(a.width,1),n.save(),this.globalAlpha(n,a.opacity),n.stroke(),n.restore(),!0}},{key:"dashType",value:function(){var n=this.srcElement.options.stroke;if(n&&n.dashType)return n.dashType.toLowerCase()}},{key:"setLineDash",value:function(n){var a=this.dashType();if(a&&a!==zF){var o=yX[a];n.setLineDash?n.setLineDash(o):(n.mozDash=o,n.webkitLineDash=o)}}},{key:"setLineCap",value:function(n){var a=this.dashType(),o=this.srcElement.options.stroke;a&&a!==zF?n.lineCap="butt":o&&o.lineCap&&(n.lineCap=o.lineCap)}},{key:"setLineJoin",value:function(n){var a=this.srcElement.options.stroke;a&&a.lineJoin&&(n.lineJoin=a.lineJoin)}},{key:"renderPoints",value:function(n,a){z0(n,a)}}]),t}(bX),Nf=lUe,uUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){z0(n,this.srcElement.toPath())}}]),t}(Nf),cUe=uUe,dUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){var a=this.srcElement.geometry(),o=a.center;n.arc(o.x,o.y,a.radius,0,2*Math.PI)}}]),t}(Nf),hUe=dUe,fUe=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this,e)).onLoad=a.onLoad.bind(Xe(a)),a.onError=a.onError.bind(Xe(a)),a.loading=gf();var o=a.img=new Image;return n&&!/^data:/i.test(e.src())&&(o.crossOrigin=n),o.src=e.src(),o.complete?a.onLoad():(o.onload=a.onLoad,o.onerror=a.onError),a}return v(t,[{key:"renderTo",value:function(n){"resolved"===this.loading.state()&&(n.save(),this.setTransform(n),this.setClip(n),this.drawImage(n),n.restore())}},{key:"optionsChange",value:function(n){"src"===n.field?(this.loading=gf(),this.img.src=this.srcElement.src()):$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"onLoad",value:function(){this.loading.resolve(),this.invalidate()}},{key:"onError",value:function(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))}},{key:"drawImage",value:function(n){var a=this.srcElement.rect(),o=a.topLeft();n.drawImage(this.img,o.x,o.y,a.width(),a.height())}}]),t}(Nf),vUe=fUe,pUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){for(var a=this.srcElement.paths,o=0;o"}},{key:"_enableTracking",value:function(){this._searchTree=new EX,this._cursor=new oUe(this),$(q(t.prototype),"_enableTracking",this).call(this)}},{key:"_trackMouse",value:function(n){if(!this._suspendedTracking){var a=this.eventTarget(n);if("click"!==n.type){var o=this._currentShape;o&&o!==a&&this.trigger("mouseleave",{element:o,originalEvent:n,type:"mouseleave"}),a&&o!==a&&this.trigger("mouseenter",{element:a,originalEvent:n,type:"mouseenter"}),this.trigger("mousemove",{element:a,originalEvent:n,type:"mousemove"}),this._currentShape=a}else a&&this.trigger("click",{element:a,originalEvent:n,type:"click"})}}}]),t}(UF),TX=CUe,AX=function(){return"undefined"!=typeof document},wUe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._items=[{name:"svg",type:WGe},{name:"canvas",type:TX}],e}return v(t,[{key:"create",value:function(n,a){var o=this._items,s=o[0];if(a&&a.type)for(var l=a.type.toLowerCase(),u=0;ua.x2&&(h=a.x2-o.x),sa.y2&&(f=a.y2-o.y),l=0;n--)t(r[n],n)},UUe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,Object.assign({},BUe,n)))._rect=e,a._fieldMap={},a}return v(t,[{key:"rect",value:function(n){return n?(this._rect=n,this):this._rect}},{key:"_initMap",value:function(){var n=this.options,a=this._fieldMap;"horizontal"===n.orientation?(a.sizeField="width",a.groupsSizeField="height",a.groupAxis="x",a.groupsAxis="y"):(a.sizeField="height",a.groupsSizeField="width",a.groupAxis="y",a.groupsAxis="x"),n.reverse?(this.forEach=GUe,this.justifyAlign=PUe):(this.forEach=VUe,this.justifyAlign=H0)}},{key:"reflow",value:function(){if(this._rect&&0!==this.children.length){this._initMap(),this.options.transform&&this.transform(null);for(var E,M,R,n=this.options,a=this._rect,o=this._initGroups(),s=o.groups,l=o.groupsSize,u=this._fieldMap,c=u.sizeField,d=u.groupsSizeField,h=u.groupAxis,f=u.groupsAxis,g=new Pe,_=new Pe,C=new kf,w=H0(l,a,n.alignContent,f,d),N=function(H,se){var me=M.elements[se];_[h]=E,_[f]=H0(H.size[d],R,n.alignItems,f,d),function LUe(i,r,t){var e=t.transform()||Hn(),n=e.matrix();n.e+=i.x-r.origin.x,n.f+=i.y-r.origin.y,e.matrix(n),t.transform(e)}(_,H,me),E+=H.size[c]+n.spacing},G=0;Ga.size[c]){var U=a.size[c]/R.size[c],ee=R.topLeft().scale(U,U),V=H0(R.size[d]*U,a,n.alignContent,f,d),I=Hn();"x"===h?I.translate(a.origin.x-ee.x,V-ee.y):I.translate(V-ee.x,a.origin.y-ee.y),I.scale(U,U),this.transform(I)}}}},{key:"_initGroups",value:function(){for(var n=this.options,a=this.children,o=n.lineSpacing,s=n.wrap,l=n.spacing,u=this._fieldMap.sizeField,c=this._newGroup(),d=[],h=function(){d.push(c),f+=c.lineSize+o},f=-o,g=0;gthis._rect.size[u]?0===c.bboxes.length?(this._addToGroup(c,C,_),h(),c=this._newGroup()):(h(),c=this._newGroup(),this._addToGroup(c,C,_)):this._addToGroup(c,C,_))}return c.bboxes.length&&h(),{groups:d,groupsSize:f}}},{key:"_addToGroup",value:function(n,a,o){n.size+=a.size[this._fieldMap.sizeField]+this.options.spacing,n.lineSize=Math.max(a.size[this._fieldMap.groupsSizeField],n.lineSize),n.bboxes.push(a),n.elements.push(o)}},{key:"_newGroup",value:function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}}]),t}(sn),zUe=UUe,HUe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e)).chartService=n,a}return v(t,[{key:"render",value:function(){var n=this.children,a=this.options,o=a.vertical;this.visual=new zUe(null,{spacing:o?0:a.spacing,lineSpacing:o?a.spacing:0,orientation:o?"vertical":"horizontal",reverse:a.rtl,alignItems:o?"start":"center"});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(n=r.call(this,e)).chartService=a,hn(n.options.position,[Fn,Vn,Zn,Sn,K0])||(n.options.position=Vn),n.createContainers(),n.createLegendTitle(e.title),n.createItems(),n}return v(t,[{key:"createContainers",value:function(){var n=this.options,a=n.position,o=n.align,s=a,l=Qt;a===K0?s=Sn:hn(a,[Fn,Zn])?(s="start"===o?Sn:"end"===o?Vn:Qt,l=a):o&&("start"===o?l=Fn:"end"===o&&(l=Zn)),this.container=new Cf({margin:n.margin,padding:n.padding,background:n.background,border:n.border,vAlign:l,align:s,zIndex:n.zIndex,shrinkToFit:!0}),this.itemsContainer=this.hasTitle()?new Cf({vAlign:l,align:s,zIndex:n.zIndex,shrinkToFit:!0}):this.container,this.append(this.container)}},{key:"createItems",value:function(){var n=this.getService(),a=this.options,o=this.isVertical(),s=new KUe({vertical:o,spacing:a.spacing,rtl:n.rtl},n),l=a.items;a.reverse&&(l=l.slice(0).reverse());for(var u=l.length,c=0;c0}},{key:"reflow",value:function(n){var a=this.options,o=n.clone();this.hasItems()?(a.position===K0?(this.containerCustomReflow(o),this.box=o):this.containerReflow(o),this.hasTitle()&&this.title.reflow(new et(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=o}},{key:"containerReflow",value:function(n){var a=this.options,o=this.container,s=a.position,l=a.width,u=a.height,c=s===Fn||s===Zn?yt:Ct,d=this.isVertical(),h=n.clone(),f=n.clone();(s===Sn||s===Vn)&&(f.y1=h.y1=0),d&&u?(f.y2=f.y1+u,f.align(h,Ct,o.options.vAlign)):!d&&l&&(f.x2=f.x1+l,f.align(h,yt,o.options.align)),o.reflow(f);var g=(f=o.box).clone();(a.offsetX||a.offsetY)&&(f.translate(a.offsetX,a.offsetY),o.reflow(f)),g[c+1]=n[c+1],g[c+2]=n[c+2],this.box=g}},{key:"containerCustomReflow",value:function(n){var a=this.options,o=this.container,s=a.offsetX,l=a.offsetY,u=a.width,c=a.height,d=this.isVertical(),h=n.clone();d&&c?h.y2=h.y1+c:!d&&u&&(h.x2=h.x1+u),o.reflow(h),o.reflow(new et(s,l,s+(h=o.box).width(),l+h.height()))}},{key:"renderVisual",value:function(){this.hasItems()&&$(q(t.prototype),"renderVisual",this).call(this)}},{key:"createLegendTitle",value:function(n){var a=ne({},{color:Xi,position:Fn,align:Qt},n),o=a.text;if(n&&!1!==n.visible){if(Te(a)&&a.visible){var s=ea(a);s?o=s({text:o}):a.format&&(o=this.chartService.format.auto(a.format,o))}this.title=new Yo(o,a),this.createTitleLayout(),this.appendTitleLayoutContent()}}},{key:"createTitleLayout",value:function(){this.layout=new ON({vertical:!0,wrap:!1}),this.container.append(this.layout)}},{key:"hasTitle",value:function(){return Boolean(this.options.title&&!1!==this.options.title.visible)}},{key:"appendTitleLayoutContent",value:function(){this.options.title.position===Zn?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))}}]),t}(Kn);ze(NX,{position:Vn,items:[],offsetX:0,offsetY:0,margin:ti(5),padding:ti(5),border:{color:Xi,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:Sn,vAlign:Qt}});var qUe=NX,XF=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._registry=[],e}return v(t,[{key:"register",value:function(n,a){this._registry.push({type:n,seriesTypes:a})}},{key:"create",value:function(n,a,o){for(var u,s=this._registry,l=s[0],c=0;c0){l=d;break}}return new l.type(u,a,o)}}]),t}(mt);XF.current=new XF;var Nc=XF;function Fc(i){var r=document.createElement("div");return i&&(r.className=i),r}function FX(i){for(var r=i;r&&!Yy(r,"k-handle");)r=r.parentNode;return r}var LX=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t),s=r.call(this);var l=e.element;return s.options=ne({},s.options,a),s.chart=e,s.observer=o,s.chartElement=l,s.categoryAxis=n,s._dateAxis=s.categoryAxis instanceof vk,s.initOptions(),s.visible=s.options.visible&&l.offsetHeight,s.visible&&(s.createElements(),s.set(s._index(s.options.from),s._index(s.options.to)),s.bindEvents()),s}return v(t,[{key:"onPane",value:function(n){return this.categoryAxis.pane===n}},{key:"createElements",value:function(){var n=this.options,a=this.wrapper=Fc("k-selector");Oi(a,{top:n.offset.top,left:n.offset.left,width:n.width,height:n.height,direction:"ltr"});var o=this.selection=Fc("k-selection");this.leftMask=Fc("k-mask"),this.rightMask=Fc("k-mask"),a.appendChild(this.leftMask),a.appendChild(this.rightMask),a.appendChild(o),o.appendChild(Fc("k-selection-bg"));var s=this.leftHandle=Fc("k-handle k-left-handle"),l=this.rightHandle=Fc("k-handle k-right-handle");s.appendChild(Fc()),l.appendChild(Fc()),o.appendChild(s),o.appendChild(l),this.chartElement.appendChild(a);var u=Oi(o,["borderLeftWidth","borderRightWidth","height"]),c=Oi(s,"height").height,d=Oi(l,"height").height;n.selection={border:{left:u.borderLeftWidth,right:u.borderRightWidth}},Oi(s,{top:(u.height-c)/2}),Oi(l,{top:(u.height-d)/2}),a.style.cssText=a.style.cssText}},{key:"bindEvents",value:function(){!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),nk(this.wrapper,De({},A0,this._mousewheelHandler))),this._domEvents=LN.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})}},{key:"initOptions",value:function(){var n=this.options,o=this.categoryAxis.pane.chartsBox(),s=this.chart.chartService.intl;this._dateAxis&&ne(n,{min:ya(s,n.min),max:ya(s,n.max),from:ya(s,n.from),to:ya(s,n.to)});var l=Oi(this.chartElement,["paddingLeft","paddingTop"]),u=l.paddingLeft,c=l.paddingTop;this.options=ne({},{width:o.width(),height:o.height()+.1,padding:{left:u,top:c},offset:{left:o.x1+u,top:o.y1+c},from:n.min,to:n.max},n)}},{key:"destroy",value:function(){this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(rk(this.wrapper,De({},A0,this._mousewheelHandler)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)}},{key:"_rangeEventArgs",value:function(n){return{axis:this.categoryAxis.options,from:this._value(n.from),to:this._value(n.to)}}},{key:"_start",value:function(n){var a=this.options,o=_l(n);if(!this._state&&o){this.chart._unsetActivePoint(),this._state={moveTarget:FX(o)||o,startLocation:n.x?n.x.location:0,range:{from:this._index(a.from),to:this._index(a.to)}};var s=this._rangeEventArgs({from:this._index(a.from),to:this._index(a.to)});this.trigger(hF,s)&&(this._state=null)}}},{key:"_press",value:function(n){var a;(a=this._state?this._state.moveTarget:FX(_l(n)))&&Za(a,"k-handle-active")}},{key:"_move",value:function(n){if(this._state){var a=this._state,o=this.options,s=this.categoryAxis,l=a.range,u=a.moveTarget,c=s.options.reverse,d=this._index(o.from),h=this._index(o.to),f=this._index(o.min),g=this._index(o.max),_=a.startLocation-n.x.location,C={from:l.from,to:l.to},w=l.to-l.from,E=Oi(this.wrapper,"width").width/(s.categoriesCount()-1),M=Math.round(_/E)*(c?-1:1);if(u){var R=Yy(u,"k-left-handle"),N=Yy(u,"k-right-handle");Yy(u,"k-selection k-selection-bg")?(l.from=Math.min(Math.max(f,d-M),g-w),l.to=Math.min(l.from+w,g)):R&&!c||N&&c?(l.from=Math.min(Math.max(f,d-M),g-1),l.to=Math.max(l.from+1,l.to)):(R&&c||N&&!c)&&(l.to=Math.min(Math.max(f+1,h-M),g),l.from=Math.min(l.to-1,l.from)),(l.from!==C.from||l.to!==C.to)&&(this.move(l.from,l.to),this.trigger(Ak,this._rangeEventArgs(l)))}}}},{key:"_end",value:function(){if(this._state){var n=this._state.moveTarget;n&&function g2e(i,r){i&&i.className&&(i.className=i.className.replace(r,"").replace(p2e," "))}(n,"k-handle-active");var a=this._state.range;this.set(a.from,a.to),this.trigger(fF,this._rangeEventArgs(a)),delete this._state}}},{key:"_tap",value:function(n){var a=this.options,o=this.categoryAxis,s=this.chart._eventCoordinates(n),l=o.pointCategoryIndex(new Ut(s.x,o.box.y1)),u=this._index(a.from),c=this._index(a.to),d=this._index(a.min),h=this._index(a.max),f=c-u,_={},C=3===n.event.which,w=Math.round(u+f/2-l);this._state||C||(this.chart._unsetActivePoint(),o.options.justified||w--,_.from=Math.min(Math.max(d,u-w),h-f),_.to=Math.min(_.from+f,h),this._start(n),this._state&&(this._state.range=_,this.trigger(Ak,this._rangeEventArgs(_)),this._end()))}},{key:"_mousewheel",value:function(n){var a=this,o=hN(n);if(this._start({target:this.selection}),this._state){var s=this._state.range;n.preventDefault(),n.stopPropagation(),Math.abs(o)>1&&(o*=3),this.options.mousewheel.reverse&&(o*=-1),this.expand(o)&&this.trigger(Ak,{axis:this.categoryAxis.options,delta:o,originalEvent:n,from:this._value(s.from),to:this._value(s.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(function(){a._end()},150)}}},{key:"_gesturestart",value:function(n){var a=this.options;this._state={range:{from:this._index(a.from),to:this._index(a.to)}};var o=this._rangeEventArgs(this._state.range);this.trigger(hF,o)?this._state=null:n.preventDefault()}},{key:"_gestureend",value:function(){this._state&&(this.trigger(fF,this._rangeEventArgs(this._state.range)),delete this._state)}},{key:"_gesturechange",value:function(n){var a=this.chart,s=this.options,l=this.categoryAxis,u=this._state.range,c=a._toModelCoordinates(n.touches[0].x.location).x,d=a._toModelCoordinates(n.touches[1].x.location).x,h=Math.min(c,d),f=Math.max(c,d);n.preventDefault(),u.from=l.pointCategoryIndex(new Ut(h))||s.min,u.to=l.pointCategoryIndex(new Ut(f))||s.max,this.move(u.from,u.to),this.trigger(Ak,this._rangeEventArgs(u))}},{key:"_index",value:function(n){var a=n;return n instanceof Date&&(a=this.categoryAxis.categoryIndex(n)),a}},{key:"_value",value:function(n){var a=n;return this._dateAxis&&(a=this.categoryAxis.categoryAt(n))>this.options.max&&(a=this.options.max),a}},{key:"_slot",value:function(n){var a=this.categoryAxis,o=this._index(n);return a.getSlot(o,o,!0)}},{key:"move",value:function(n,a){var o=this.options,s=this.categoryAxis.options.reverse,l=o.offset,u=o.padding,c=o.selection.border,h=s?n:a,f="x"+(s?2:1),g=this._slot(s?a:n),_=tt(g[f]-l.left+u.left);Oi(this.leftMask,{width:_}),Oi(this.selection,{left:_}),g=this._slot(h);var C=tt(o.width-(g[f]-l.left+u.left));Oi(this.rightMask,{width:C});var w=o.width-C;w!==o.width&&(w+=c.right),Oi(this.rightMask,{left:w}),Oi(this.selection,{width:Math.max(o.width-(_+C)-c.right,0)})}},{key:"set",value:function(n,a){var o=this.options,s=this._index(o.min),l=this._index(o.max),u=Mt(this._index(n),s,l),c=Mt(this._index(a),u+1,l);o.visible&&this.move(u,c),o.from=this._value(u),o.to=this._value(c)}},{key:"expand",value:function(n){var a=this.options,o=this._index(a.min),s=this._index(a.max),l=a.mousewheel.zoom,u=this._index(a.from),c=this._index(a.to),d={from:u,to:c},h=ne({},d);if(this._state&&(d=this._state.range),l!==Vn&&(d.from=Mt(Mt(u-n,0,c-1),o,s)),l!==Sn&&(d.to=Mt(Mt(c+n,d.from+1,s),o,s)),d.from!==h.from||d.to!==h.to)return this.set(d.from,d.to),!0}},{key:"zoom",value:function(n,a){var o=this.options,s=this._index(o.min),l=this._index(o.max),u=this._index(o.from),c=this._index(o.to),d={from:u,to:c},h=ne({},d),g=yt+(this.categoryAxis.options.reverse?"2":"1"),_=this.categoryAxis.lineBox(),C=Math.abs(_[g]-a.x),w=_.width(),E=tt(C/w,2),M=tt(E*n),R=tt((1-E)*n);if(this._state&&(d=this._state.range),d.from=Mt(Mt(u-M,0,c-1),s,l),d.to=Mt(Mt(c+R,d.from+1,l),s,l),d.from!==h.from||d.to!==h.to)return this.set(d.from,d.to),!0}},{key:"trigger",value:function(n,a){return(this.observer||this.chart).trigger(n,a)}}]),t}(mt);ze(LX,{visible:!0,mousewheel:{zoom:"both"},min:br,max:Zi});var PX=LX,YUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"show",value:function(n){if(n&&n.tooltipAnchor&&(!this._current||this._current!==n)){var a=ne({},this.options,n.options.tooltip),o=n.tooltipAnchor();o?(this._current=n,$(q(t.prototype),"show",this).call(this,{point:n,anchor:o},a,n)):this.hide()}}},{key:"hide",value:function(){delete this._current,$(q(t.prototype),"hide",this).call(this)}}]),t}(MF),QUe=YUe,BX=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e.chartService,n)).plotArea=e,a.formatService=e.chartService.format,a}return v(t,[{key:"showAt",value:function(n,a){var o=Xo(n,function(c){var d=c.series.tooltip;return!(d&&!1===d.visible)});if(o.length>0){var s=o[0],l=this.plotArea.categoryAxis.getSlot(s.categoryIx),u=a?this._slotAnchor(a,l):this._defaultAnchor(s,l);this.show({anchor:u,shared:!0,points:n,category:s.category,categoryText:this.formatService.auto(this.options.categoryFormat,s.category),series:this.plotArea.series},this.options)}}},{key:"_slotAnchor",value:function(n,a){return this.plotArea.categoryAxis.options.vertical||(n.x=a.center().x),{point:n,align:{horizontal:"left",vertical:"center"}}}},{key:"_defaultAnchor",value:function(n,a){var o=n.owner.pane.chartsBox(),s=this.plotArea.categoryAxis.options.vertical,l=o.center(),u=a.center();return{point:s?new Ut(l.x,u.y):new Ut(u.x,l.y),align:{horizontal:"center",vertical:"center"}}}}]),t}(MF);ze(BX,{categoryFormat:"{0:d}"});var VX=BX,GX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.element,a=this.options;if(n.bbox()){this.origin=a.origin;var s=a.vertical?Ct:yt,l=this.fromScale=new Pe(1,1);l[s]=pk,n.transform(Hn().scale(l.x,l.y))}else this.abort()}},{key:"step",value:function(n){var a=Fs(this.fromScale.x,1,n),o=Fs(this.fromScale.y,1,n);this.element.transform(Hn().scale(a,o,this.origin))}},{key:"abort",value:function(){$(q(t.prototype),"abort",this).call(this),this.element.transform(null)}}]),t}(Gs);ze(GX,{duration:zs}),uu.current.register(Sl,GX);var UX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.center=this.element.bbox().center();this.element.transform(Hn().scale(pk,pk,n))}},{key:"step",value:function(n){this.element.transform(Hn().scale(n,n,this.center))}}]),t}(Gs);ze(UX,{easing:"easeOutElastic"}),uu.current.register(yg,UX);var zX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)}},{key:"step",value:function(n){this.element.opacity(n*this.fadeTo)}}]),t}(Gs);ze(zX,{duration:200,easing:"linear"}),uu.current.register(Ld,zX);var HX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this.element.transform(Hn().scale(pk,pk,this.options.center))}},{key:"step",value:function(n){this.element.transform(Hn().scale(n,n,this.options.center))}}]),t}(Gs);ze(HX,{easing:"easeOutElastic",duration:zs}),uu.current.register(Bd,HX);var KX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"render",value:function(){$(q(t.prototype),"render",this).call(this),this.renderSegments()}},{key:"createSegment",value:function(n,a,o){return new(a.style===_g?_F:Mg)(n,a,o)}},{key:"animationPoints",value:function(){return $(q(t.prototype),"animationPoints",this).call(this).concat(this._segments)}},{key:"createMissingValue",value:function(n,a){if(a===Ac){var o={x:n.x,y:n.y};return Qo(o.x)||(o.x=0),Qo(o.y)||(o.y=0),o}}}]),t}(F0);ne(KX.prototype,yF);var jX=KX,ZF=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initFields",value:function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new R0,this.yAxisRangeTracker=new R0}},{key:"render",value:function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.panes,a=this.groupSeriesByPane(),o=0;o0&&this.appendChart(new F0(this,{series:n,clip:a.options.clip}),a)}},{key:"createScatterLineChart",value:function(n,a){n.length>0&&this.appendChart(new jX(this,{series:n,clip:a.options.clip}),a)}},{key:"createBubbleChart",value:function(n,a){n.length>0&&this.appendChart(new fVe(this,{series:n,clip:a.options.clip}),a)}},{key:"createXYAxis",value:function(n,a,o){for(var s=n.name,l=a?this.namedYAxes:this.namedXAxes,u=a?this.yAxisRangeTracker:this.xAxisRangeTracker,c=ne({reverse:!a&&this.chartService.rtl},n,{vertical:a}),d=Vd(c.type,E0),h=u.query(),f=d?{min:.1,max:1}:{min:0,max:1},g=u.query(s)||h||f,_=[c.min,c.max],C=this.series,w=0;w0&&h.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,x:Og(d),y:Og(h)})}},{key:"updateAxisOptions",value:function(n,a){var o=n.options.vertical,s=this.groupAxes(this.panes),l=(o?s.y:s.x).indexOf(n);WX(this.options,l,o,a),WX(this.originalOptions,l,o,a)}}]),t}(Gd);function WX(i,r,t,e){ne([].concat(t?i.yAxis:i.xAxis)[r],e)}ze(ZF,{xAxis:{},yAxis:{}}),ne(ZF.prototype,Rk);var JUe=ZF,YF=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,a)).value=e,o.sector=n,o}return v(t,[{key:"render",value:function(){var n=this.options.labels,a=this.owner.chartService,o=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var s=ea(n),l=this.pointData();if(s?o=s(l):n.format&&(o=a.format.auto(n.format,o)),n.visible&&(o||0===o)){if(n.position===Qt||n.position===T0)n.color||(n.color=DN(this.options.color)),n.background||(n.background=this.options.color);else{var u=a.theme.seriesDefaults.labels;n.color=n.color||u.color,n.background=n.background||u.background}this.label=new Yo(o,ne({},n,{align:Qt,vAlign:"",animation:{type:Ld,delay:this.animationDelay}}),l),this.append(this.label)}}}},{key:"reflow",value:function(n){this.render(),this.box=n,this.reflowLabel()}},{key:"reflowLabel",value:function(){var n=this.options.labels,a=this.label,o=this.sector.clone(),s=n.distance,l=o.middle();if(a){var d,u=a.box.height(),c=a.box.width();if(n.position===Qt)o.radius=Math.abs((o.radius-u)/2)+u,d=o.point(l),a.reflow(new et(d.x,d.y-u/2,d.x,d.y));else if(n.position===T0)o.radius=o.radius-u/2,d=o.point(l),a.reflow(new et(d.x,d.y-u/2,d.x,d.y));else{var h;(d=o.clone().expand(s).point(l)).x>=o.center.x?(h=d.x+c,a.orientation=Vn):(h=d.x-c,a.orientation=Sn),a.reflow(new et(h,d.y-u,d.x,d.y))}}}},{key:"createVisual",value:function(){var n=this,a=this.sector,o=this.options;if($(q(t.prototype),"createVisual",this).call(this),this.value)if(o.visual){var s=(a.startAngle+180)%360,l=o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new Pe(a.center.x,a.center.y),radius:a.radius,innerRadius:a.innerRadius,startAngle:s,endAngle:s+a.angle,options:o,sender:this.getSender(),createVisual:function(){var c=new sn;return n.createSegmentVisual(c),c}});l&&this.visual.append(l)}else this.createSegmentVisual(this.visual)}},{key:"createSegmentVisual",value:function(n){var a=this.sector,o=this.options,s=o.border||{},u=o.color,c={color:u,opacity:o.opacity},d=this.createSegment(a,ne({fill:c,stroke:{opacity:o.opacity},zIndex:o.zIndex},s.width>0?{stroke:{color:s.color,width:s.width,opacity:s.opacity,dashType:s.dashType}}:{}));n.append(d),SF(o)&&n.append(this.createGradientOverlay(d,{baseColor:u,fallbackFill:c},ne({center:[a.center.x,a.center.y],innerRadius:a.innerRadius,radius:a.radius,userSpace:!0},o.overlay)))}},{key:"createSegment",value:function(n,a){return a.singleSegment?new kl(new bo(new Pe(n.center.x,n.center.y),n.radius),a):n0.current.createRing(n,a)}},{key:"createAnimation",value:function(){var a=this.sector.center;ne(this.options,{animation:{center:[a.x,a.y],delay:this.animationDelay}}),$(q(t.prototype),"createAnimation",this).call(this)}},{key:"createHighlight",value:function(n){var a=this.options.highlight||{},o=a.border||{};return this.createSegment(this.sector,ne({},n,{fill:{color:a.color,opacity:a.opacity},stroke:{opacity:o.opacity,width:o.width,color:o.color}}))}},{key:"highlightVisual",value:function(){return this.visual.children[0]}},{key:"highlightVisualArgs",value:function(){var n=this.sector;return{options:this.options,radius:n.radius,innerRadius:n.innerRadius,center:new Pe(n.center.x,n.center.y),startAngle:n.startAngle,endAngle:n.angle+n.startAngle,visual:this.visual}}},{key:"tooltipAnchor",value:function(){var n=this.sector.clone().expand(5),a=n.middle();return{point:n.point(a),align:nze(a+180)}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}},{key:"pointData",value:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}}}]),t}(Kn),eze=tt(Sr(30),10),tze=tt(Sr(60),10);function nze(i){var r=Sr(i),t=tt(Math.sin(r),10),e=tt(Math.cos(r),10);return{horizontal:Math.abs(t)>tze?Qt:e<0?Vn:Sn,vertical:Math.abs(t)f-5?f-5:N,_.translate(w.x-C.x,w.y-C.y);for(var G=f-N,U=new Ut(G+_.x1+N,G+_.y1+N),ee=0;ee0&&(M.sort(this.labelComparator(!0)),this.leftLabelsReflow(M)),R.length>0&&(R.sort(this.labelComparator(!1)),this.rightLabelsReflow(R)),this.box=_}},{key:"leftLabelsReflow",value:function(n){var a=this.distanceBetweenLabels(n);this.distributeLabels(a,n)}},{key:"rightLabelsReflow",value:function(n){var a=this.distanceBetweenLabels(n);this.distributeLabels(a,n)}},{key:"distanceBetweenLabels",value:function(n){var a=Yi(this.points),o=a.sector,s=n.length-1,l=o.radius+a.options.labels.distance,u=[],c=n[0].box,d=tt(c.y1-(o.center.y-l-c.height()-c.height()/2));u.push(d);for(var h=0;h0&&(s>=0||l0){var u=Math.min(n[o],l);l-=u,n[o]-=u,n[a]+=u}return l}},{key:"reflowLabels",value:function(n,a){var h,o=Yi(this.points),s=o.sector,l=o.options.labels,u=a.length,c=l.distance,d=s.center.y-(s.radius+c)-a[0].box.height();n[0]+=2;for(var f=0;fc.center.x?(M=c.center.x-c.radius-4,g.lineTo(u.options.labels.align!==xc?M>E.x?M:w.x-8:M,w.y),g.lineTo(E.x,R.y)):(N.y=R.y,g.lineTo(N.x,N.y))),g.lineTo(R.x,R.y),this._connectorLines.push(g),this.visual.append(g)}}}}},{key:"renderVisual",value:function(){if($(q(t.prototype),"renderVisual",this).call(this),H9(this.options.series,function(u){return u.autoFit})){var n=this.targetBox,a=this.box.center(),o=this.visual.bbox();if(!o)return;var s=o.bottomRight(),l=Math.min((a.y-n.y1)/(a.y-o.origin.y),(n.y2-a.y)/(s.y-a.y),(a.x-n.x1)/(a.x-o.origin.x),(n.x2-a.x)/(s.x-a.x));l<1&&this.visual.transform(Hn().scale(l,l,[a.x,a.y]))}}},{key:"labelComparator",value:function(n){var a=n?-1:1;return function(o,s){return((o.parent.sector.middle()+270)%360-(s.parent.sector.middle()+270)%360)*a}}},{key:"hAlignLabel",value:function(n,a,o,s,l){var u=a.radius,c=a.center,d=c.x,h=c.y,f=Math.min(Math.abs(h-o),Math.abs(h-s));return f>u?n:d+Math.sqrt(u*u-f*f)*(l?1:-1)}},{key:"pointInCircle",value:function(n,a,o){return Math.pow(a.x-n.x,2)+Math.pow(a.y-n.y,2)u-5?u-5:f),_=0,w=0;w1)for(var n=function kze(i){for(var r=[],t=0;t1){var s=o[0].linePoints[0],l=Yi(o),u=Yi(l.linePoints);0===s.categoryIx&&u.categoryIx===u.categoriesCount-1&&Yi(o).linePoints.push(s)}}}},{key:"createSegment",value:function(n,a,o){var u=new(a.style===_g?_F:Mg)(n,a,o),c=this.seriesMissingValues(a);return(n.length===a.data.length||c===mg)&&(u.options.closed=!0),u}}]),t}(CF);ze(rZ,{clip:!1,limitPoints:!1});var aZ=rZ,Cze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"fillToAxes",value:function(){}}]),t}(bF),bze=Cze,Sze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"fillToAxes",value:function(){}}]),t}(Rg),wze=Sze,Dze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createSegment",value:function(n,a,o,s){var c,d,h,u=(a.line||{}).style;return this.options.isStacked&&o>0&&s&&(d=s.linePoints.slice(0),c=s),u===_g?(h=new bze(n,a,o,c,d)).options.closed=!0:(n.push(n[0]),h=new wze(n,a,o,c,d)),h}},{key:"seriesMissingValues",value:function(n){return n.missingValues||Ac}}]),t}(aZ),Eze=Dze,oZ=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),r.call(this,e,null,n)}return v(t)}(QX);ze(oZ,{overlay:{gradient:"none"},labels:{distance:10}});var Tze=oZ,sZ=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).forEach=e.rtl?Nq:Iq,n}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=this.children,s=a.gap,l=a.spacing,u=o.length,d=n.angle/(u+s+l*(u-1)),h=n.startAngle+d*(s/2);this.forEach(o,function(f){var g=n.clone();g.startAngle=h,g.angle=d,f.sector&&(g.radius=f.sector.radius),f.reflow(g),f.sector=g,h+=d+d*l})}}]),t}(Kn);ze(sZ,{gap:1,spacing:0});var Aze=sZ,xze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflow",value:function(n){var a=this.options.reverse,o=this.children,s=o.length,l=a?s-1:0,u=a?-1:1;this.box=new et;for(var c=l;c>=0&&c1,a.isStacked100=l&&"100%"===l.type&&s.length>1,a.isStacked100&&(this._isStacked100=!0)}return a}},{key:"createAreaChart",value:function(n,a){if(0!==n.length){var o=new Eze(this,this.chartOptions(n));this.appendChart(o,a)}}},{key:"createLineChart",value:function(n,a){if(0!==n.length){var o=new aZ(this,this.chartOptions(n));this.appendChart(o,a)}}},{key:"createBarChart",value:function(n,a){if(0!==n.length){var o=n[0],s=this.chartOptions(n);s.gap=o.gap,s.spacing=o.spacing;var l=new Rze(this,s);this.appendChart(l,a),this._hasBarCharts=!0}}},{key:"seriesCategoryAxis",value:function(){return this.categoryAxis}},{key:"_dispatchEvent",value:function(n,a,o){var s=n._eventCoordinates(a),l=new Ut(s.x,s.y),u=this.categoryAxis.getCategory(l),c=this.valueAxis.getValue(l);null!==u&&null!==c&&n.trigger(o,{element:_l(a),category:u,value:c})}},{key:"createCrosshairs",value:function(){}}]),t}(eZ);ne(n2.prototype,Rk,{appendChart:xf.prototype.appendChart,aggregateSeries:xf.prototype.aggregateSeries,seriesSourcePoints:xf.prototype.seriesSourcePoints}),ze(n2,{categoryAxis:{categories:[]},valueAxis:{}});var Oze=n2,r2=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).value=e,o.options.index=a.index,o}return v(t,[{key:"reflow",value:function(n){var a=this.points,o=this.children[0];this.box=new et(a[0].x,a[0].y,a[1].x,a[2].y),o&&o.reflow(new et(n.x1,a[0].y,n.x2,a[2].y))}},{key:"createVisual",value:function(){var o,n=this,a=this.options;$(q(t.prototype),"createVisual",this).call(this),(o=a.visual?a.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:a,sender:this.getSender(),createVisual:function(){return n.createPath()}}):this.createPath())&&this.visual.append(o)}},{key:"createPath",value:function(){var n=this.options,a=n.border;return dt.fromPoints(this.points,{fill:{color:n.color,opacity:n.opacity},stroke:{color:a.color,opacity:a.opacity,width:a.width}}).close()}},{key:"createHighlight",value:function(n){return dt.fromPoints(this.points,n)}},{key:"highlightVisual",value:function(){return this.visual.children[0]}},{key:"highlightVisualArgs",value:function(){var n=dt.fromPoints(this.points).close();return{options:this.options,path:n}}},{key:"tooltipAnchor",value:function(){var n=this.box;return{point:new Ut(n.center().x,n.y1),align:{horizontal:"center",vertical:"top"}}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}}]),t}(Kn);ze(r2,{color:Ln,border:{width:1}}),ne(r2.prototype,wl);var Ize=r2,a2=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).plotArea=e,a.points=[],a.labels=[],a.legendItems=[],a.render(),a}return v(t,[{key:"formatPointValue",value:function(n,a){return this.chartService.format.auto(a,n.value)}},{key:"render",value:function(){var a=this.plotArea.options.seriesColors,o=void 0===a?[]:a,s=this.options.series[0],l=s.data;if(l)for(var u=qq(s),c=u.total,d=u.points,h=0;hd.percentage&&(d=l[h]);for(var f=c.percentage/d.percentage*a,g=(a-f)/2,_=0,C=0;C1&&void 0!==arguments[1]?arguments[1]:.05,e=Ps(r),n=1-t;return function(a){var o=e.toHSL(),s=100-o.l;return o.l+=Math.min((n-a)*s,s),o.toCss()}}(l)(n.value/this.valueRange.max));var c=new lZ(n,s);return c.color=l,this.append(c),c}},{key:"seriesAxes",value:function(n){var a=n.xAxis,o=n.yAxis,s=this.plotArea,l=a?s.namedXAxes[a]:s.axisX,u=o?s.namedYAxes[o]:s.axisY;if(!l)throw new Error("Unable to locate X axis with name "+a);if(!u)throw new Error("Unable to locate Y axis with name "+o);return{xAxis:l,yAxis:u}}},{key:"reflow",value:function(n){var a=this,o=this.points,s=!this.options.clip,l=0;this.traverseDataPoints(function(u,c){var d=o[l++],h=a.seriesAxes(c.series),f=h.xAxis,g=h.yAxis,_=f.categoryIndex(u.x),C=g.categoryIndex(u.y),w=f.getSlot(_,_,s),E=g.getSlot(C,C,s);if(d)if(w&&E){var M=a.pointSlot(w,E);d.reflow(M)}else d.visible=!1}),this.box=n}},{key:"pointSlot",value:function(n,a){return new et(n.x1,a.y1,n.x2,a.y2)}},{key:"traverseDataPoints",value:function(n){for(var a=this.options.series,o=0;o0&&void 0!==arguments[0]?arguments[0]:this.panes;this.bindCategories(),this.createAxes(n),this.createCharts(n),this.createAxisLabels()}},{key:"bindCategories",value:function(){for(var n=this.srcSeries||this.series,a=0;a0&&h.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,x:Og(d),y:Og(h)})}},{key:"updateAxisOptions",value:function(n,a){var o=n.options.vertical,s=this.groupAxes(this.panes),l=(o?s.y:s.x).indexOf(n);uZ(this.options,l,o,a),uZ(this.originalOptions,l,o,a)}},{key:"crosshairOptions",value:function(n){return Object.assign({},n.options.crosshair,{zIndex:0})}}]),t}(Gd);function uZ(i,r,t,e){ne([].concat(t?i.yAxis:i.xAxis)[r],e)}ze(s2,{xAxis:{},yAxis:{}}),ne(s2.prototype,Rk);var Gze=s2,Jo="color",es="first",Qa="max",Lc="noteText";Nc.current.register(xf,[Sl,xc,yk,Dg,mk,Sg,kg,kk,Pd,Sk,_k,wg,bk,bg,wk,Cg,Ck,Eg]),Nc.current.register(JUe,[lF,uF,yg]),Nc.current.register(YX,[Bd]),Nc.current.register(uze,[C0]),Nc.current.register(Lze,[b0]),Nc.current.register(yze,[aF,oF,sF]),Nc.current.register(Oze,[S0,w0,D0]),Nc.current.register(Gze,[rF]),Qi.current.register([Sl,xc,yk,Dg,mk,Sg],[qo],[fu,Jo,Lc,vq,pq]),Qi.current.register([bk,bg,Ck,Eg],["from","to"],[fu,Jo,Lc]),Qi.current.register([wk,Cg],[qo],[fu,Jo,Lc,"summary"]),Qi.current.register([aF,oF,sF],[yt,Ct],[Jo]),Qi.current.register([S0,w0,D0],[qo],[Jo]),Qi.current.register([b0],[qo],[fu,Jo,"visibleInLegend","visible"]),Af.current.register([Sl,xc,yk,Dg,mk,Sg,wk,Cg],{value:Qa,color:es,noteText:es,errorLow:"min",errorHigh:Qa}),Af.current.register([bk,bg,Ck,Eg],{from:"min",to:Qa,color:es,noteText:es}),Af.current.register([S0,w0,D0],{value:Qa,color:es}),Qi.current.register([lF,uF,yg],[yt,Ct],[Jo,Lc,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Qi.current.register([yg],[yt,Ct,"size"],[Jo,fu,Lc]),Qi.current.register([rF],[yt,Ct,qo],[Jo,Lc]),Qi.current.register([kg,kk],["open","high","low","close"],[fu,Jo,"downColor",Lc]),Af.current.register([kg,kk],{open:Qa,high:Qa,low:"min",close:Qa,color:es,downColor:es,noteText:es}),Qi.current.register([_k,wg],["lower","q1","median","q3","upper","mean","outliers"],[fu,Jo,Lc]),Af.current.register([_k,wg],{lower:Qa,q1:Qa,median:Qa,q3:Qa,upper:Qa,mean:Qa,outliers:es,color:es,noteText:es}),Qi.current.register([Pd,Sk],["current","target"],[fu,Jo,"visibleInLegend",Lc]),Af.current.register([Pd,Sk],{current:Qa,target:Qa,color:es,noteText:es}),Qi.current.register([Bd,C0],[qo],[fu,Jo,"explode","visibleInLegend","visible"]);var u2=[fu,qo,yt,Ct],Ff="mousemove",cZ="contextmenu",dZ="mouseleave",hZ=function(i){b(t,i);var r=S(t);function t(e,n,a){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};p(this,t),(o=r.call(this)).observers=[],o.addObserver(s.observer),o.chartService=new NN(Xe(o),s),o.chartService.theme=a,o._initElement(e);var l=ne({},o.options,n);return o._originalOptions=ne({},l),o._theme=a,o._initTheme(l,a),o._initHandlers(),o._initSurface(),o.bindCategories(),K2e.preloadFonts(n,function(){o.fontLoaded=!0,o._destroyed||(o.trigger("init"),o._redraw(),o._attachEvents())}),o}return v(t,[{key:"_initElement",value:function(n){for(this._setElementClass(n),n.style.position="relative";n.firstChild;)n.removeChild(n.firstChild);this.element=n}},{key:"_setElementClass",value:function(n){Za(n,"k-chart")}},{key:"_initTheme",value:function(n,a){for(var o=[],s=n.series||[],l=0;l0||a.height>0;n||s&&(!o||a.width!==o.width||a.height!==o.height)?(this._size=a,this._resize(a,n),this.trigger("resize",a)):s&&this._selections&&H9(this._selections,function(l){return!l.visible})&&(this._destroySelections(),this._setupSelection())}},{key:"_resize",value:function(){this._noTransitionsRedraw()}},{key:"redraw",value:function(n){if(this.applyDefaults(this.options),this.applySeriesColors(),n){var a=this._model._plotArea,o=a.findPane(n);a.redraw(o)}else this._redraw()}},{key:"getAxis",value:function(n){return hq(n,this._plotArea.axes)}},{key:"findAxisByName",value:function(n){return this.getAxis(n)}},{key:"findPaneByName",value:function(n){for(var a=this._plotArea.panes,o=0;o=0){var c=this._plotArea.pointsByCategoryIndex(u);o.showAt(c)}}else l&&o.show(l)}},{key:"hideTooltip",value:function(){this._tooltip.hide()}},{key:"_initSurface",value:function(){var n=this.surface,a=this._surfaceWrap(),o=this.options.chartArea||{};o.width&&kc(a,{width:o.width}),o.height&&kc(a,{height:o.height}),n&&n.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=Ik.create(a,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))}},{key:"_surfaceWrap",value:function(){return this.element}},{key:"_redraw",value:function(){var n=this._getModel();this._size={width:n.options.width,height:n.options.height},this._destroyView(),this._model=n,this._plotArea=n._plotArea,n.renderVisual(),!1!==this.options.transitions&&n.traverse(function(a){a.animation&&a.animation.setup()}),this._initSurface(),this.surface.draw(n.visual),!1!==this.options.transitions&&n.traverse(function(a){a.animation&&a.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new AUe,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),pZ(this._plotArea.panes),this._navState||this._cancelDomEvents()}},{key:"exportVisual",value:function(n){var a;if(n&&(n.width||n.height||n.options)){var o=this.options,s=ne({},n.options,{chartArea:{width:n.width,height:n.height}});c2(this._originalOptions,s),this.options=ne({},this._originalOptions,s),this._initTheme(this.options,this._theme),this.bindCategories();var l=this._getModel();l.renderVisual(),pZ(l._plotArea.panes),a=l.visual,this.options=o}else a=this.surface.exportVisual();return a}},{key:"_sharedTooltip",value:function(){return this._plotArea instanceof xf&&this.options.tooltip&&this.options.tooltip.shared}},{key:"_createPannable",value:function(){var n=this.options;!1!==n.pannable&&(this._pannable=new xUe(this._plotArea,n.pannable))}},{key:"_createZoomSelection",value:function(){var n=this.options.zoomable,a=(n||{}).selection;!1!==n&&!1!==a&&(this._zoomSelection=new MUe(this,a))}},{key:"_createMousewheelZoom",value:function(){var n=this.options.zoomable,a=(n||{}).mousewheel;!1!==n&&!1!==a&&(this._mousewheelZoom=new FUe(this,a))}},{key:"_toggleDragZoomEvents",value:function(){var a=this.options.zoomable,s=(a||{}).mousewheel,l=!(this.options.pannable||!1!==a&&!1!==(a||{}).selection||this.requiresHandlers([dF,Dk,Ek])),u=(!1===a||!1===s)&&!this.requiresHandlers([Tk,Tg,Ag]),c=this.element;this._dragZoomEnabled&&l&&u?(c.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):!this._dragZoomEnabled&&!(l&&u)&&(c.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!l,!u)}},{key:"_toggleDomEvents",value:function(n,a){var o=this.domEvents;!o||(o.toggleDrag&&o.toggleDrag(n),o.toggleZoom&&o.toggleZoom(a))}},{key:"_createTooltip",value:function(){var n=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(n):new QUe(this.chartService,n)}},{key:"_createSharedTooltip",value:function(n){return new VX(this._plotArea,n)}},{key:"applyDefaults",value:function(n,a){(function Wze(i,r){var e,n,a,t=(r||{}).axisDefaults||{};function o(l){var u=(l||{}).color||n.color,c=ne({},t,t[e],n,n[e],{line:{color:u},labels:{color:u},title:{color:u}},l);return delete c[e],c}for(var s=0;s1?a:a[0]})(n,a),function $ze(i,r){var t=i.series,e=t.length,n=i.seriesDefaults,a=ne({},i.seriesDefaults),o=r?ne({},r.seriesDefaults):{},s=ne({},o);vZ(a),vZ(s);for(var l=0;l=0&&this.observers.splice(a,1)}},{key:"requiresHandlers",value:function(n){for(var a=this.observers,o=0;o1&&void 0!==arguments[1]?arguments[1]:{};n===kq&&(a.anchor.point=this._toDocumentCoordinates(a.anchor.point)),a.sender=this;for(var o=this.observers,s=!1,l=0;l=.1){s=Math.round(10*s),this._gestureDistance=n.distance;var l={delta:s,axisRanges:Nk(this._plotArea.axes),originalEvent:n};if(this._zooming||!this.trigger(Tk,l)){var u=this._eventCoordinates(n);this._zooming||(this._zooming=!0),(l.axisRanges=a.updateRanges(s,u))&&!this.trigger(Tg,l)&&a.zoom()}}}}},{key:"_mouseout",value:function(n){if(n.element){var a=this._drawingChartElement(n.element,n);a&&a.leave&&a.leave(this,n.originalEvent)}}},{key:"_start",value:function(n){var a=this._eventCoordinates(n);this._stopChartHandlers(n)||!this._plotArea.backgroundContainsPoint(a)||(this.requiresHandlers([dF,Dk,Ek])&&this._startNavigation(n,a,dF),this._pannable&&this._pannable.start(n)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(n)&&this.trigger(Tk,{axisRanges:Nk(this._plotArea.axes),originalEvent:n}))}},{key:"_move",value:function(n){var a=this._navState,o=this._pannable;if(!this._stopChartHandlers(n)){if(o){var s=o.move(n);s&&!this.trigger(Dk,{axisRanges:s,originalEvent:n})&&o.pan()}else if(a){for(var l={},u=a.axes,c=0;c1,u=this._hasInactiveOpacity();return this._updateHoveredPoint(o,a),o&&s!==o&&o.hover?(this._activePoint=o,!this._sharedTooltip()&&!o.hover(this,a)&&(this._displayTooltip(o),u?this._displayInactiveOpacity(o,l):this._highlight.show(o))):!o&&u&&(l&&this._activeChartInstance&&(this._updateSeriesOpacity(o,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),o}},{key:"_displayTooltip",value:function(n){ne({},this.options.tooltip,n.options.tooltip).visible&&this._tooltip.show(n)}},{key:"_displayInactiveOpacity",value:function(n,a,o){var s=this._activeChartInstance=this._chartInstanceFromPoint(n);if(s)if(a)this._updateSeriesOpacity(n),this._applySeriesOpacity(s.children,null,!0),this._applySeriesOpacity(s.children,n.series),this._highlight.show(o||n);else{var l;if(!s.supportsPointInactiveOpacity())return void this._highlight.show(n);(l=this._getInactivePoints(n,s))&&l.length&&this._highlight.show(l,1-this._getInactiveOpacityForSeries(n.series))}}},{key:"_getInactivePoints",value:function(n,a){return this._getAllPointsOfType(a,n.constructor).filter(function(s){return s!==n})}},{key:"_getAllPointsOfType",value:function(n,a){for(var o=[],s=0;s0;return n||a}},{key:"_getInactiveOpacityForSeries",value:function(n){return n.highlight.inactiveOpacity||this.options.seriesDefaults.highlight.inactiveOpacity||n.opacity||1}},{key:"_getDefaultOpacityForSeries",value:function(n){return n.defaultOpacity||n.opacity||1}},{key:"_mouseover",value:function(n){var a=this._startHover(n.element,n.originalEvent);a&&a.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),nk(document,De({},Ff,this._mouseMoveTrackHandler)))}},{key:"_mouseMoveTracking",value:function(n){var a=this.options,o=this._tooltip,s=this._highlight,l=this._activePoint,u=this._eventCoordinates(n);if(this._plotArea.box.containsPoint(u)){if(l&&l.tooltipTracking&&l.series&&l.parent.getNearestPoint){var c=l.parent.getNearestPoint(u.x,u.y,l.seriesIx);c&&c!==l&&(this._activePoint=c,!c.hover(this,n))&&(ne({},a.tooltip,c.options.tooltip).visible&&o.show(c),s.show(c))}}else rk(document,De({},Ff,this._mouseMoveTrackHandler)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null}},{key:"_mousemove",value:function(n){var a=this._eventCoordinates(n),o=this._plotArea;if(this._trackCrosshairs(a),o.hover){var s=o.backgroundContainsPoint(a);s?(o.hovered=!0,this._plotArea.hover(this,n)):o.hovered&&!s&&(this.trigger(cF),o.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(a,n)}},{key:"_trackCrosshairs",value:function(n){for(var a=this._plotArea.crosshairs,o=0;o0&&!this.trigger(_q,_)?(s.visible&&c.showAt(f,n),d.show(f),this._sharedHighlight=!0):c.hide(),this._tooltipCategoryIx=h}else o&&this._sharedHighlight&&(d.hide(),c.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(d.hide(),c.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}}},{key:"hideElements",value:function(n){var a=this._plotArea;this._mousemove.cancel(),a.hideCrosshairs(),this._unsetActivePoint(n)}},{key:"_unsetActivePoint",value:function(n){var a=this._tooltip,o=this._highlight;this._activePoint=null,this._hoveredPoint=null,a&&!(n&&n.keepTooltipOpen)&&a.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,o&&o.hide()}},{key:"_deferRedraw",value:function(){this._redraw()}},{key:"_clearRedrawTimeout",value:function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)}},{key:"bindCategories",value:function(){for(var a=[].concat(this.options.categoryAxis),o=0;o0)for(var E=(d=Zq(n,m0(f.categoryField,_[0])))?Xq:m0,M=0;M0){d&&(u=function Xze(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wf,t=qze(i,r),e=t.length,n=e>0?[t[0]]:[],a=1;a1,u):s.show(u)}},{key:"_shouldAttachMouseMove",value:function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([yq,cF])}},{key:"updateMouseMoveHandler",value:function(){rk(this.element,De({},Ff,this._mousemove)),this._shouldAttachMouseMove()&&nk(this.element,De({},Ff,this._mousemove))}},{key:"applyOptions",value:function(n,a){c2(this._originalOptions,n),this._originalOptions=ne(this._originalOptions,n),this.options=ne({},this._originalOptions),a&&(this._theme=a,this.chartService.theme=a),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()}},{key:"setOptions",value:function(n,a){this.applyOptions(n,a),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()}},{key:"setDirection",value:function(n){this.chartService.rtl=Boolean(n),this.surface&&"svg"===this.surface.type&&this._destroySurface()}},{key:"setIntlService",value:function(n){this.chartService.intl=n}},{key:"noTransitionsRedraw",value:function(){this._noTransitionsRedraw()}},{key:"destroy",value:function(){var n;this._destroyed=!0,rk(this.element,(De(n={},cZ,this._clickHandler),De(n,A0,this._mousewheelHandler),De(n,Ff,this._mousemove),De(n,dZ,this._mouseleaveHandler),n)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&rk(document,De({},Ff,this._mouseMoveTrackHandler)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()}},{key:"_destroySurface",value:function(){var n=this.surface;n&&(n.unbind("mouseenter",this._surfaceMouseenterHandler),n.unbind("mouseleave",this._surfaceMouseleaveHandler),n.destroy(),this.surface=null)}},{key:"_destroySelections",value:function(){var n=this._selections;if(n)for(;n.length>0;)n.shift().destroy()}},{key:"_destroyView",value:function(){var n=this._model;n&&(n.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)}}]),t}(mt);function fZ(i,r){if(i)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:wf,t=1,e=i.length;t0&&(_+=o.left+o.right),_}},{key:"_createSharedTooltip",value:function(n){return new e3e(this._plotArea,n)}}],[{key:"normalizeOptions",value:function(n){var a=yZ(n);return(a=Jr(a)?{seriesDefaults:{data:a}}:ne({},a)).series||(a.series=[{data:yZ(a.data)}]),ne(a,{seriesDefaults:{type:a.type}}),(hn(a.series[0].type,gZ)||hn(a.seriesDefaults.type,gZ))&&(a=ne({},{categoryAxis:{crosshair:{visible:!1}}},a)),a}}]),t}(d2);ze(kZ,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var i3e=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this._initialOpacity=parseFloat(Oi(this.element,"opacity").opacity)}},{key:"step",value:function(n){Oi(this.element,{opacity:String(Fs(this._initialOpacity,0,n))})}},{key:"abort",value:function(){$(q(t.prototype),"abort",this).call(this),Oi(this.element,{display:"none",opacity:String(this._initialOpacity)})}},{key:"cancel",value:function(){$(q(t.prototype),"abort",this).call(this),Oi(this.element,{opacity:String(this._initialOpacity)})}}]),t}(Gs),r3e=i3e;function f2(i,r){var t=document.createElement("div");return t.className=i,r&&(t.style.cssText=r),t}var CZ=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;p(this,t),(o=r.call(this)).options=ne({},o.options,a),o.container=e,o.chartService=n;var s=Oi(e,["paddingLeft","paddingTop"]);return o.chartPadding={top:s.paddingTop,left:s.paddingLeft},o.createElements(),e.appendChild(o.element),o}return v(t,[{key:"createElements",value:function(){var n=this.element=f2("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),a=this.tooltip=f2("k-tooltip k-chart-tooltip"),o=this.scroll=f2("k-scroll");a.innerHTML=" ",n.appendChild(a),n.appendChild(o)}},{key:"show",value:function(n,a,o){var s=this.element,l=this.options,u=this.scroll,c=this.tooltip,d=ni(ii(n)+ii(a-n)/2),h=.4*o.width(),f=o.center().x-h,w=(o.center().x-f)/(l.max-l.min),E=d-l.min,M=this.chartService.intl.format(l.format,n,a),R=ea(l);this.clearHideTimeout(),this._visible||(Oi(s,{visibility:"hidden",display:"block"}),this._visible=!0),R&&(M=R({from:n,to:a})),c.innerHTML=M,Oi(c,{left:o.center().x-c.offsetWidth/2,top:o.y1});var N=Oi(c,["marginTop","borderTopWidth","height"]);Oi(u,{width:h,left:f+E*w,top:o.y1+N.marginTop+N.borderTopWidth+N.height/2}),Oi(s,{visibility:"visible"})}},{key:"clearHideTimeout",value:function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()}},{key:"hide",value:function(){var n=this;this.clearHideTimeout(),this._hideTimeout=setTimeout(function(){n._visible=!1,n._hideAnimation=new r3e(n.element),n._hideAnimation.setup(),n._hideAnimation.play()},this.options.hideDelay)}},{key:"destroy",value:function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll}}]),t}(mt);ze(CZ,{format:"{0:d} - {1:d}",hideDelay:500});var a3e=CZ,Ud="_navigator",Pc=Ud,s3e=function(i){b(t,i);var r=S(t);function t(e){var n,a;p(this,t),(a=r.call(this)).chart=e;var o=a.options=ne({},a.options,e.options.navigator),s=o.select;return s&&(s.from=a.parseDate(s.from),s.to=a.parseDate(s.to)),Te(o.hint.visible)||(o.hint.visible=o.visible),a.chartObserver=new dN(Xe(a),(De(n={},Dk,"_drag"),De(n,Ek,"_dragEnd"),De(n,Tg,"_zoom"),De(n,Ag,"_zoomEnd"),n)),e.addObserver(a.chartObserver),a}return v(t,[{key:"parseDate",value:function(n){return ya(this.chart.chartService.intl,n)}},{key:"clean",value:function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)}},{key:"destroy",value:function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()}},{key:"redraw",value:function(){this._redrawSelf(),this.initSelection()}},{key:"initSelection",value:function(){var n=this.chart,a=this.options,o=this.mainAxis(),s=o.roundedRange(),l=s.min,u=s.max,c=a.select,d=c.from,h=c.to,f=c.mousewheel,g=function l3e(i){return bZ.prototype=i,new bZ}(o);0!==o.categoriesCount()&&(this.clean(),g.box=o.box,this.selection=new PX(n,g,{min:l,max:u,from:d||l,to:h||u,mousewheel:qt(f,{zoom:"left"}),visible:a.visible},new dN(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),a.hint.visible&&(this.hint=new a3e(n.element,n.chartService,{min:l,max:u,template:ea(a.hint),format:a.hint.format})))}},{key:"setRange",value:function(){var o=this.chart._createPlotArea(!0).namedCategoryAxes[Pc].roundedRange(),s=o.min,l=o.max,u=this.options.select||{},c=u.from||s;cl&&(d=l),this.options.select=ne({},u,{from:c,to:d}),this.filterAxes()}},{key:"_redrawSelf",value:function(n){var a=this.chart._plotArea;a&&a.redraw(Yi(a.panes),n)}},{key:"redrawSlaves",value:function(){var n=this.chart,a=n._plotArea,o=a.panes.slice(0,-1);a.srcSeries=n.options.series,a.options.categoryAxis=n.options.categoryAxis,a.clearSeriesPointsCache(),a.redraw(o)}},{key:"_drag",value:function(n){var g,a=this.chart,o=this.selection,s=a._eventCoordinates(n.originalEvent),l=this.mainAxis(),u=l.roundedRange(),c=l.pane.box.containsPoint(s),h=n.axisRanges[a._plotArea.categoryAxis.options.name],f=this.options.select;if(h&&!c&&o){g=f.from&&f.to?ii(f.to)-ii(f.from):ii(o.options.to)-ii(o.options.from);var _=ni(Mt(ii(h.min),u.min,ii(u.max)-g)),C=ni(Mt(ii(_)+g,ii(u.min)+g,u.max));this.options.select={from:_,to:C},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),o.set(_,C),this.showHint(_,C)}}},{key:"_dragEnd",value:function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()}},{key:"readSelection",value:function(){var n=this.selection.options,o=n.to,s=this.options.select;s.from=n.from,s.to=o}},{key:"filterAxes",value:function(){for(var n=this.options.select,a=void 0===n?{}:n,s=this.chart.options.categoryAxis,l=a.from,u=a.to,c=0;c1&&(d*=3),f-h>1?(o.zoom(d,g),this.readSelection()):(a.options.min=l.from,l.from=a.scaleRange(-n.delta*this.chart._mousewheelZoomRate(),g).min),u&&(this.filterAxes(),this.redrawSlaves()),o.set(l.from,l.to),this.showHint(this.options.select.from,this.options.select.to)}}},{key:"_zoomEnd",value:function(n){this._dragEnd(n)}},{key:"showHint",value:function(n,a){this.hint&&this.hint.show(n,a,this.chart._plotArea.backgroundBox())}},{key:"_selectStart",value:function(n){return this.chart._selectStart(n)}},{key:"_select",value:function(n){return this.showHint(n.from,n.to),this.chart._select(n)}},{key:"_selectEnd",value:function(n){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(n)}},{key:"mainAxis",value:function(){var n=this.chart._plotArea;if(n)return n.namedCategoryAxes[Pc]}},{key:"select",value:function(n,a){var o=this.options.select;return n&&a&&(o.from=this.parseDate(n),o.to=this.parseDate(a),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(n,a)),{from:o.from,to:o.to}}}],[{key:"setup",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n.__navi){n.__navi=!0;var o=ne({},a.navigator,n.navigator),s=n.panes=[].concat(n.panes),l=ne({},o.pane,{name:Ud});o.visible||(l.visible=!1,l.height=.1),s.push(l),t.attachAxes(n,o),t.attachSeries(n,o,a)}}},{key:"attachAxes",value:function(n,a){var o=a.series||[],s=n.categoryAxis=[].concat(n.categoryAxis),l=n.valueAxis=[].concat(n.valueAxis),c=0===Ji(o,mq).length,d=ne({type:"date",pane:Ud,roundToBaseUnit:!c,justified:c,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:a.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),h=a.categoryAxis;s.push(ne({},d,{maxDateGroups:200},h,{name:Pc,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),ne({},d,h,{name:Pc+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),ne({},d,h,{name:Pc+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),l.push(ne({name:Pc,pane:Ud,majorGridLines:{visible:!1},visible:!1},a.valueAxis))}},{key:"attachSeries",value:function(n,a,o){for(var s=n.series=n.series||[],l=[].concat(a.series||[]),u=o.seriesColors,c=a.seriesDefaults,d=0;d3&&void 0!==arguments[3]?arguments[3]:{};return p(this,t),(o=r.call(this)).element=e,o.theme=a,o.contextService=new NN(Xe(o),s),o._originalOptions=ne({},o.options,n),o.options=ne({},o._originalOptions),o._initTheme(a),o.redraw(),o}return v(t,[{key:"destroy",value:function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement}},{key:"value",value:function(n){var a=this.pointers[0];if(0===arguments.length)return a.value();a.value(n),this._setValueOptions(n)}},{key:"_draw",value:function(){var n=this.surface;n.clear(),n.draw(this._visuals)}},{key:"exportVisual",value:function(){return this._visuals}},{key:"allValues",value:function(n){var a=this.pointers,o=[];if(0===arguments.length){for(var s=0;s0&&(s=LZ(s,o.width)),p3e.fromRect(s,{stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n.background}})}},{key:"_initSurface",value:function(){var n=this.options,a=this.surface,o=this._surfaceElement(),s=this._surfaceSize();kc(o,s),a&&a.options.type===n.renderAs?(this.surface.clear(),this.surface.resize()):(a&&a.destroy(),this.surface=g3e.create(o,{type:n.renderAs}))}},{key:"_surfaceSize",value:function(){var n=this.options,a=this._getSize();return n.gaugeArea&&ne(a,n.gaugeArea),a}},{key:"_surfaceElement",value:function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement}},{key:"getSize",value:function(){return this._getSize()}},{key:"_getSize",value:function(){var n=this.element,a=this._defaultSize(),o=n.offsetWidth,s=n.offsetHeight;return o||(o=a.width),s||(s=a.height),{width:o,height:s}}},{key:"_defaultSize",value:function(){return{width:200,height:200}}},{key:"_toggleTransitions",value:function(n){this.options.transitions=n;for(var a=0;a0&&n.visible){var s=new p2({stroke:{color:n.color,dashType:n.dashType,width:n.width}});s.moveTo(a.x1,a.y1).lineTo(a.x2,a.y2),o.append(s)}return o}},{key:"renderTicks",value:function(){var n=new Pk,a=this.options,o=a.majorTicks.visible?a.majorUnit:0,s={vertical:a.vertical,mirror:a.labels.mirror,lineBox:this.lineBox()};return VZ(n,this.getMajorTickPositions(),s,a.majorTicks),VZ(n,this.getMinorTickPositions(),s,ne({},{skipUnit:o/a.minorUnit},a.minorTicks)),n}}]),t}(Us);ze(GZ,{min:0,max:50,majorTicks:{size:15,align:zd,color:Xi,width:.5,visible:!0},minorTicks:{size:10,align:zd,color:Xi,width:.5,visible:!0},line:{width:.5},labels:{position:zd,padding:2},mirror:!1,_alignLines:!1});var _3e=GZ,UZ=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),a=r.call(this);var o=e.options,s=o.min,l=o.max,u=a.options=ne({},a.options,n);return u.fill=u.color,a.scale=e,u.value=Te(u.value)?Mt(u.value,s,l):s,a}return v(t,[{key:"value",value:function(n){var a=this.options,o=a.value;if(0===arguments.length)return o;var s=this.scale.options,l=s.min,u=s.max;a._oldValue=Te(a._oldValue)?a.value:l,a.value=Mt(n,l,u),this.elements&&this.repaint()}}]),t}(mt);ze(UZ,{color:Xi});var g2=UZ,zZ=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).options=ne({track:{visible:Te(n.track)}},a.options),a}return v(t,[{key:"reflow",value:function(){var g,_,C,n=this.options,a=this.scale,o=a.options,s=o.mirror,l=o.vertical,u=a.lineBox(),c=n.track.size||n.size,d=n.size/2,h=ti(n.margin),f=l?h[s?"left":"right"]:h[s?"bottom":"top"];f=s?-f:f,l?(C=new et(u.x1+f,u.y1,u.x1+f,u.y2),s?C.x1-=c:C.x2+=c,n.shape!==Lk&&(g=_=new et(u.x2+f,u.y1-d,u.x2+f,u.y2+d))):(C=new et(u.x1,u.y1-f,u.x2,u.y1-f),s?C.y2+=c:C.y1-=c,n.shape!==Lk&&(g=_=new et(u.x1-d,u.y1-f,u.x2+d,u.y1-f))),this.trackBox=C,this.pointerRangeBox=_,this.box=g||C.clone().pad(n.border.width)}},{key:"getElementOptions",value:function(){var n=this.options;return{fill:{color:n.color,opacity:n.opacity},stroke:Te(n.border)?{color:n.border.width?n.border.color||n.color:"",width:n.border.width,dashType:n.border.dashType,opacity:n.opacity}:null}}},{key:"_margin",value:function(){var o=this.scale.options,s=o.mirror,l=o.vertical,u=ti(this.options.margin);return l?u[s?"left":"right"]:u[s?"bottom":"top"]}}]),t}(g2);ze(zZ,{shape:Lk,track:{border:{width:1}},color:Xi,border:{width:1},opacity:1,margin:ti(3),animation:{type:Lk},visible:!0});var HZ=zZ,m2=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.options,a=n.margin,o=n.from,s=n.to,l=n.vertical,u=l?"x1":"y1";n.mirror===l?(o[u]-=a,s[u]-=a):(o[u]+=a,s[u]+=a);var c=this.fromScale=new Pe(o.x1,o.y1),d=this.toScale=new Pe(s.x1,s.y1);0!==n.duration&&(n.duration=Math.max(c.distanceTo(d)/n.duration*1e3,1))}},{key:"step",value:function(n){var a=Fs(this.fromScale.x,this.toScale.x,n),o=Fs(this.fromScale.y,this.toScale.y,n);this.element.transform(Hn().translate(a,o))}}]),t}(Gs);ze(m2,{easing:$0,duration:250}),uu.current.register(EZ,m2);var y3e=m2,Ng=Pe,k3e=dt,C3e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),a=r.call(this,e,n),Te(a.options.size)||(a.options.size=.6*a.scale.options.majorTicks.size),a}return v(t,[{key:"pointerShape",value:function(){var n=this.scale,a=this.options.size,o=a/2,s=n.options.mirror?-1:1;return n.options.vertical?[new Ng(0,0-o),new Ng(0-s*a,0),new Ng(0,0+o)]:[new Ng(0-o,0),new Ng(0,0+s*a),new Ng(0+o,0)]}},{key:"repaint",value:function(){var n=this.scale,a=this.options,o=new y3e(this.elements,ne(a.animation,{vertical:n.options.vertical,mirror:n.options.mirror,margin:this._margin(a.margin),from:n.getSlot(a._oldValue),to:n.getSlot(a.value)}));!1===a.animation.transitions&&(o.options.duration=0),o.setup(),o.play()}},{key:"render",value:function(){var n=this.scale,a=this.options,o=this.getElementOptions(),s=this.pointerShape(a.value);a.animation.type=EZ;var l=new k3e({stroke:o.stroke,fill:o.fill}).moveTo(s[0]).lineTo(s[1]).lineTo(s[2]).close(),u=n.getSlot(a.value);return l.transform(Hn().translate(u.x1,u.y1)),this.elements=l,l}}]),t}(HZ),b3e=C3e,_2=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.options,a=this.axis=n.vertical?Ct:yt,o=this.to=n.newPoints[0][a],s=this.from=n.oldPoints[0][a];0!==n.duration&&(n.duration=Math.max(Math.abs(o-s)/n.speed*1e3,1)),this._set(s)}},{key:"step",value:function(n){var a=Fs(this.from,this.to,n);this._set(a)}},{key:"_set",value:function(n){var a="set"+this.axis.toUpperCase(),o=this.options.newPoints;o[0][a](n),o[1][a](n)}}]),t}(Gs);ze(_2,{easing:$0,speed:250}),uu.current.register(Lk,_2);var S3e=_2,w3e=sn,KZ=dt,D3e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),a=r.call(this,e,n),Te(a.options.size)||(a.options.size=.3*a.scale.options.majorTicks.size),a}return v(t,[{key:"pointerShape",value:function(n){var a=this.scale,s=a.options,u=s.vertical,c=s.mirror===u?-1:1,d=this.options.size*c,h=a.getSlot(a.options.min),f=a.getSlot(n),g=u?Ct:yt,_=u?yt:Ct,C=this._margin()*c,w=new Pe;w[g]=h[g+"1"],w[_]=h[_+"1"];var E=new Pe;E[g]=f[g+"1"],E[_]=f[_+"1"],u?(w.translate(C,0),E.translate(C,0)):(w.translate(0,C),E.translate(0,C));var M=E.clone(),R=w.clone();return u?(M.translate(d,0),R.translate(d,0)):(M.translate(0,d),R.translate(0,d)),[w,E,M,R]}},{key:"repaint",value:function(){var n=this.scale,a=this.options,o=this.pointerShape(a.value),s=this.pointerPath,l=this.pointerShape(a._oldValue);s.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close();var u=new S3e(s,ne(a.animation,{reverse:n.options.reverse,vertical:n.options.vertical,oldPoints:[l[1],l[2]],newPoints:[o[1],o[2]]}));!1===a.animation.transitions&&(u.options.duration=0),u.setup(),u.play()}},{key:"render",value:function(){var n=new w3e,a=this.getElementOptions();this.options.track.visible&&n.append(this.renderTrack());var o=this.pointerPath=new KZ({stroke:a.stroke,fill:a.fill});return n.append(o),this.elements=n,n}},{key:"renderTrack",value:function(){var n=this.options.track,a=n.border||{},o=this.trackBox.clone().pad(a.width||0);return new KZ.fromRect(o.toRect(),{fill:{color:n.color,opacity:n.opacity},stroke:{color:a.width?a.color||n.color:"",width:a.width,dashType:a.dashType}})}}]),t}(HZ),E3e=D3e,x3e=sn,M3e=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflow",value:function(n){var a=this.pointers,o=n.origin.x,s=n.origin.y,l=new et(o,s,o+n.width(),s+n.height());this.scale.reflow(l),this._shrinkScaleWidth(l);for(var u=0;u0&&(a.box.shrink(o,0),a.box.alignTo(n,"center"),a.reflow(a.box))}}},{key:"_shrinkElements",value:function(){for(var n=this.scale,a=this.pointers,o=n.box.clone(),s=n.options.vertical?"y":"x",l=a[0].box,u=0;u0&&void 0!==arguments[0]?arguments[0]:new Sc,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this,a)).geometry(n),Gt(e.options.stroke)||e.stroke("#000"),e}return v(t,[{key:"nodeType",get:function(){return"Arc"}},{key:"_bbox",value:function(n){return this._geometry.bbox(n)}},{key:"rawBBox",value:function(){return this.geometry().bbox()}},{key:"toPath",value:function(){var n=new dt,a=this.geometry().curvePoints();if(a.length>0){n.moveTo(a[0].x,a[0].y);for(var o=1;o=360&&a.max%a.majorUnit==0&&(n-=1),n}},{key:"renderLabels",value:function(){var n=this.options,a=this.arc.clone(),o=a.getRadiusX(),s=this.tickAngles(a,n.majorUnit),l=n.rangeSize=n.rangeSize||.1*o,u=new Z0,c=.05*o;Te(n.rangeDistance)?c=n.rangeDistance:n.rangeDistance=c;var d=n.labels,h=d.position===zd,f=Te(this.labelElements);h&&(o-=this.ticksSize(),this.hasRanges()&&!f&&(o-=l+c),a.setRadiusX(o).setRadiusY(o));for(var g=this.labels,_=g.length,C=ti(d.padding),w=(C.left+C.right)/2,E=(C.top+C.bottom)/2,M=0;M<_;M++){var R=g[M],N=R.box.width()/2,G=R.box.height()/2,U=s[M],ee=(U-180)*xZ,ve=a.pointAt(U),V=ve.x+Math.cos(ee)*(N+w)*(h?1:-1),I=ve.y+Math.sin(ee)*(G+E)*(h?1:-1);R.reflow(new et(V-N,I-G,V+N,I+G));var K=new Pe(R.box.x1,R.box.y1),H=void 0;if(f){var se=(H=this.labelElements.children[M]).bbox().origin,me=H.transform()||Hn();me.translate(K.x-se.x,K.y-se.y),H.transform(me)}else H=NZ(R,n.labels),u.append(H);this.bbox=cn.union(this.bbox,H.bbox())}return u}},{key:"repositionRanges",value:function(){var n=this.ranges.children;if(n.length>0){var a=this.options,o=a.rangeDistance,s=a.rangeSize,l=this.getRangeRadius();this.options.labels.position===zd&&(l+=s+o);for(var u=l+s/2,c=0;c=0;s--)s%o==0&&n.splice(s,1);return n}},{key:"tickAngles",value:function(n,a){var o=this.options,u=n.endAngle-n.startAngle,c=(o.max-o.min)/a,d=n.startAngle,h=u/c;o.reverse&&(d+=u,h=-h),u>=360&&o.max%a==0&&(c-=1);for(var f=[],g=0;g5||l!==f&&(c=this.getPlotBox(l,n,a),0<=c&&c<=2)||u!==f&&(h=this.getPlotBox(u,n,a),0<=h&&h<=2)||(f=c>0&&h>0?2*l:c<0&&h<0?2*u:tt((l+u)/2||1,3),d=this.getPlotBox(f,n,a),0<=d&&d<=2));)g=h,d>0?(u=f,h=d):(l=f,c=d)}},{key:"getPlotBox",value:function(n,a,o){var s=this.scale,l=this.pointers,u=o.getRadiusX(),c=o.clone();c.setRadiusX(u+n).setRadiusY(u+n),s.arc=c,s.reflow(a),this.plotBbox=s.bbox;for(var d=0;d=this.kCheckSumMinLength){var s=(o+this.getWeightedSum(n,a,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=s,this.addPattern(this.characterMap[s])}}},{key:"getWeightedSum",value:function(n,a,o){for(var s=0,l=0;la;)l=parseFloat((l-.1).toFixed(1)),s=this.getBaseUnit(l);if(s127?this.invalidCharacterError(r):this.addExtended(r.charCodeAt(0))},addExtended:function(r){for(var t,e=0;e=0;u--)o+=this.weightedValue(n[u],a-u,this.cCheckSumTotal);for(o=this.weightedValue(s=o%this.checkSumMod,1,this.kCheckSumTotal),u=a-1;u>=0;u--)o+=this.weightedValue(n[u],a-u+1,this.kCheckSumTotal);return[s,o%this.checkSumMod]}},{key:"_findCharacterByValue",value:function(n){for(var a in this.characterMap)if(this.characterMap[a].value===n)return a}},{key:"weightedValue",value:function(n,a,o){return(a%o||o)*n}},{key:"addPattern",value:function(n){for(var a,o=0;o=0&&this.isCode(l)&&n.index=n.value.length||this.encoding[this.shiftKey].is(n.value,n.index+1)))return this.encoding.addPattern(this.SHIFT),n.shifted=!0,!0}},{key:"_moveState",value:function(){return this.encoding.addPattern(this.MOVE),!0}}]),t}(Y0),Fg={};Fg.A=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"A",shiftKey:"B",MOVE:101,START:103})}},{key:"isCode",value:function(n){return 0<=n&&n<96}},{key:"getValue",value:function(n){return n<32?n+64:n-32}}]),t}(rY),Fg.B=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"B",shiftKey:"A",MOVE:100,START:104})}},{key:"isCode",value:function(n){return 32<=n&&n<128}},{key:"getValue",value:function(n){return n-32}}]),t}(rY),Fg.C=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"C",MOVE:99,START:105})}},{key:"addStart",value:function(){this.encoding.addPattern(this.START)}},{key:"is",value:function(n,a){var o=w2(n,a,4);return(a+4<=n.length||2===n.length)&&S2.test(o)}},{key:"move",value:function(){this.encoding.addPattern(this.MOVE)}},{key:"pushState",value:function(n){for(var a;(a=w2(n.value,n.index,2))&&S2.test(a)&&2===a.length;)this.encoding.addPattern(parseInt(a,10)),n.index+=2}},{key:"getValue",value:function(n){return n}}]),t}(Y0),Fg.FNC4=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e))._initSubStates(n),a}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"FNC4",dependentStates:["A","B"]})}},{key:"addStart",value:function(n){var a=n.value.charCodeAt(0)-128,o=this._getSubState(a);this.encoding[o].addStart()}},{key:"is",value:function(n,a){var o=n.charCodeAt(a);return this.isCode(o)}},{key:"isCode",value:function(n){return 128<=n&&n<256}},{key:"pushState",value:function(n){var l,a=this._initSubState(n),o=this.encoding,s=a.value.length;if(n.index+=s,s<3)for(;a.index0?this.getBySeparator(o,l):this.getByLength(o,l)).ai.length)d=l+h+c.id.length+c.ai.length;else if((d=o.indexOf(this.startAI,l+1))<0){if(l+c.ai.max+c.id.length+h=o.length)break;l=d,u.state!==this.startState&&(a[this.startState].move(u),u.state=this.startState),c.ai.length||a.addPattern(this.START)}n.index=n.value.length}},{key:"validate",value:function(n,a){var o=a.substr(n.id.length),s=n.ai;if(!s.type&&!S2.test(o))throw new Error("Application identifier "+n.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===s.type&&!rHe.test(o))throw new Error("Application identifier "+n.id+" is alphanumeric only but contains non alphanumeric character(s).");if(s.length&&s.length!==o.length)throw new Error("Application identifier "+n.id+" must be "+s.length+" characters long.");if(s.min&&s.min>o.length)throw new Error("Application identifier "+n.id+" must be at least "+s.min+" characters long.");if(s.max&&s.max=n.value.length);)if(n.shifted){var s=n.state;n.state=n.previousState,n.previousState=s,n.shifted=!1}else n.previousState=n.state,n.state=this.getNextState(n,a),this[n.state].move(n)}},{key:"addStart",value:function(n){this[n.state].addStart(n),this.position=1}},{key:"addCheckSum",value:function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)}},{key:"addStop",value:function(){this.addPattern(this.STOP)}},{key:"setBaseUnit",value:function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)}},{key:"addPattern",value:function(n){for(var o,a=this.characterMap[n].toString(),s=0;s2&&void 0!==arguments[2]?arguments[2]:Y9;return p(this,t),(a=r.call(this)).options=ne({},a.options,n),a.element=e,a.onError=o,a._initElement(),a._initSurface(),a._setOptions(n),n&&Te(n.value)&&a.redraw(),a}return v(t,[{key:"destroy",value:function(){this._destroySurface()}},{key:"_initElement",value:function(){Za(this.element,"k-barcode")}},{key:"_initSurface",value:function(){var a=this.surface;(!a||a.options.type!==this.options.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}},{key:"_createSurface",value:function(){return Ik.create(this.surfaceElement,{type:this.options.renderAs})}},{key:"_destroySurface",value:function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}},{key:"_initSurfaceElement",value:function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}},{key:"_destroySurfaceElement",value:function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}},{key:"setOptions",value:function(n){this._setOptions(n),this._initSurface(),this.redraw()}},{key:"redraw",value:function(){var n=this._getSize();this.surface.clear(),this.surface.setSize({width:n.width,height:n.height}),this.createVisual(),this.surface.draw(this.visual)}},{key:"getSize",value:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}}},{key:"_resize",value:function(){this.redraw()}},{key:"createVisual",value:function(){this.visual=this._render()}},{key:"_render",value:function(){var f,g,n=this.options,a=n.value,o=n.text,s=ti(o.margin),l=this._getSize(),u=n.border||{},c=this.encoding,d=new et(0,0,l.width,l.height).unpad(u.width).unpad(n.padding),h=d.height(),C=new sn;this.contentBox=d,C.append(this._getBackground(l)),o.visible&&(h-=tk(a,{font:o.font}).height+s.top+s.bottom);try{f=c.encode(a,d.width(),h)}catch(w){return this.onError(w),C}return o.visible&&(g=a,n.checksum&&Te(c.checksum)&&(g+=" "+c.checksum),C.append(this._getText(g))),this.barHeight=h,this._bandsGroup=this._getBands(f.pattern,f.baseUnit),C.append(this._bandsGroup),C}},{key:"exportVisual",value:function(){return this._render()}},{key:"_getSize",value:function(){var a=sY(this.element,this.options.renderAs),o=new kf(300,100);return a.width>0&&(o.width=a.width),a.height>0&&(o.height=a.height),this.options.width&&(o.width=this.options.width),this.options.height&&(o.height=this.options.height),o}},{key:"value",value:function(n){if(!Te(n))return this.options.value;this.options.value=String(n),this.redraw()}},{key:"_getBands",value:function(n,a){for(var l,u,o=this.contentBox,s=o.x1,c=new sn,d=0;d1&&void 0!==arguments[1]?arguments[1]:new cn,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(this,t),(n=r.call(this,o)).src(e),n.rect(a),n}return v(t,[{key:"nodeType",get:function(){return"Image"}},{key:"src",value:function(n){return Gt(n)?(this.options.set("src",n),this):this.options.get("src")}},{key:"bbox",value:function(n){var a=yf(this.currentTransform(n));return this._rect.bbox(a)}},{key:"rawBBox",value:function(){return this._rect.bbox()}},{key:"_containsPoint",value:function(n){return this._rect.containsPoint(n)}},{key:"_hasFill",value:function(){return this.src()}}]),t}(AN(Id,["rect"])),D2=SHe,Lg=Object.assign;function lY(i,r){for(var t=[],e=0;e=this.matrix.length)&&(this.dir=-this.dir,this.startColumn-=8!==this.startColumn?2:3,this.column=this.startColumn,this.row=this.dir<0?this.matrix.length-1:0);return{row:this.row,column:this.column}}},{key:"getNextRemainderCell",value:function(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}}}]),t}(mt),uY=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).dataString=e,a.version=n,a}return v(t)}(mt),DHe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getEncodingResult",value:function(n,a){var o=function l8e(i){var t,r=[],e=0,n=i;for(r.push(gY(n,8,5,8,t)),t=r[0].mode,n=n.substr(r[0].modeString.length);n.length>0;){var a=gY(n,17,9,16,t);a.mode!==t?(t=a.mode,r.push(a),e++):r[e].modeString+=a.modeString,n=n.substr(a.modeString.length)}return r}(n),s=function u8e(i){for(var r=0,e=0;e26?2:1}},{key:"getBitsCharacterCount",value:function(n){return this.bitsInCharacterCount[this.getVersionIndex(n||40)]}},{key:"getModeCountString",value:function(n,a){return this.modeIndicator+So(n,this.getBitsCharacterCount(a))}},{key:"encode",value:function(){}},{key:"getStringBitsLength",value:function(){}},{key:"getValue",value:function(){}}]),t}(mt),EHe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Lg(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})}},{key:"getValue",value:function(n){return parseInt(n,10)}},{key:"encode",value:function(n,a){var u,s=lY(n,3),l=this.getModeCountString(n.length,a);for(u=0;u>6*u&63|128,8)+s;s=(n>>6*o|255>>l<=0;n--)t[n]=i[n]^r[n];return t}function i8e(i,r){for(var t=[],e=0;e=0?r[n]:0))%255:A2[Hd[t[e+n]]^Hd[(i[e]+r[n])%255]];return t}function a8e(i,r){var t=[],e=i.length-1;do{t[e]=Hd[(i[e]+r)%255],e--}while(void 0!==i[e]);return t}function o8e(i,r){var s,l,t=R2[r-1],e=new Array(r).concat(i),n=new Array(e.length-t.length).concat(t),a=i.length,o=[];for(l=0;l=0;l--)o[r-1-l]=So(e[l],8);return o}function gY(i,r,t,e,n){var d,h,a=KHe.exec(i),o=a?a[0]:"",s=WHe.exec(i),l=s?s[0]:"",u=fY.exec(i),c=u?u[0]:"";return o&&(o.length>=r||i.length===o.length||o.length>=t&&!fY.test(i.charAt(o.length)))?(d="numeric",h=o):c&&(i.length===c.length||c.length>=e||n===dY)?(d=dY,h=o||l):(d="byte",h=c?c+vY.exec(i.substring(c.length))[0]:vY.exec(i)[0]),{mode:d,modeString:h}}function mY(i,r){var t=0,e=Uk.length-1,n=Math.floor(Uk.length/2);do{i1);return i<=Uk[t][r].totalDataCodewords?n+1:e+1}function _Y(i,r,t){var e=J0(r),n=r.length-1,a=i<=t);return n}(a,e);return s+So(l,n)}function zk(i,r){return parseInt(i.charAt(r),10)}function yY(i,r){var e,n,t=i[0],a=0,o=r.length;for(e=0,n=8;e<=8;e++)6!==e&&Ja(i,zk(r,o-1-a++),e,n);for(e=8,n=7;n>=0;n--)6!==n&&Ja(i,zk(r,o-1-a++),e,n);for(a=0,n=t.length-1,e=8;n>=t.length-8;n--)Ja(i,zk(r,o-1-a++),e,n);for(Ja(i,1,t.length-8,8),e=t.length-7,n=8;e=0&&n=5&&(r[i]+=3+n[i][a]-5),n[i][a]=1)}function y8e(i,r){var t=Math.floor(i/r*100),e=t%5,n=Math.abs(t-e-50),a=Math.abs(t+5-e-50);return 10*Math.min(n/5,a/5)}(function t8e(){var i,r;for(r=1;r<255;r++)(i=2*Hd[r-1])>255&&(i^=285),Hd[r]=i,A2[i]=r;Hd[r]=i=2*Hd[r-1]^285,Hd[-1]=0})(),function r8e(){for(var r=2;r<=68;r++)R2[r]=i8e(R2[r-1],[r,0])}();var Hk=Math.round,b8e=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],SY=[[0,1],[1,1],[1,0]],S8e=function(i){b(t,i);var r=S(t);function t(e,n){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y9;return p(this,t),(a=r.call(this)).options=ne({},a.options,n),a.element=e,a.wrapper=a.element,a.onError=o,a._initElement(),a._initSurface(),a.setOptions(n),a}return v(t,[{key:"destroy",value:function(){this._destroySurface()}},{key:"_initElement",value:function(){Za(this.element,"k-qrcode")}},{key:"_initSurface",value:function(){var a=this.surface;(!a||a.options.type!==this.options.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}},{key:"_createSurface",value:function(){return Ik.create(this.surfaceElement,{type:this.options.renderAs})}},{key:"_destroySurface",value:function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}},{key:"_initSurfaceElement",value:function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}},{key:"_destroySurfaceElement",value:function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}},{key:"redraw",value:function(){var n=this._getSize();this.surface.clear(),this.surface.setSize({width:n,height:n}),this.createVisual(),this.surface.draw(this.visual)}},{key:"getSize",value:function(){var n=this.element,a=n.clientWidth,o=n.clientHeight,s={width:0,height:0};return a>0&&(s.width=a),o&&(s.height=o),s}},{key:"_resize",value:function(){this.redraw()}},{key:"createVisual",value:function(){this.visual=this._render()}},{key:"exportVisual",value:function(){return this._render()}},{key:"_render",value:function(){var a,u,c,d,f,n=this._value,o=this.options.border||{},s=this.options.padding||0,l=o.width||0;o.width=l;var g=new sn;try{n&&(c=function C8e(i,r,t){var e=function k8e(i){return i&&i.toLowerCase().indexOf("utf_8")>=0?new IHe:new DHe}(t),n=e.getEncodingResult(i,r),a=n.version,o=Uk[a-1][r],s=function e8e(i,r){for(var t=8*r,e=0,n=0,a=i;a.length=7&&kY(u,So(0,18)),yY(u,So(0,15)),function JHe(i,r){for(var e,n,a,t=new wHe(i[0]),o=0;o0;){for(var s=0;s=0&&o[d+1][h]===t[f][0]&&o[d+1][h-1]===t[f][0]&&(r[f]+=3),CY(f,n,r,0,o[d][h]),CY(f,n,r,1,o[h][d]),bY(f,r,t,o[d][h],a,0),bY(f,r,t,o[h][d],a,1);var _,g=c*c,C=Number.MAX_VALUE;for(s=0;s=7&&kY([d],function v8e(i){return _Y(i,"1111100100101",18)}(a)),yY([d],function d8e(i){var t,e="";if(0===J0(i))return"101010000010010";t=_Y(J0(i),"10100110111",15);for(var n=0;n0?s:200}return n}},{key:"_calculateBaseUnit",value:function(n,a){var o=Math.floor(n/a);if(o<1){var s=Math.ceil(1*a);this.onError(new Error("Insufficient size for QR Code: the current size is ".concat(n,"px and the minimum size is ").concat(s,"px.")))}else o*a>=n&&o-1>=1&&o--;return o}},{key:"_renderMatrix",value:function(n,a,o){for(var s=new Nd({fill:{color:this.options.color},stroke:null}),l=0;l0;){G=Vc(E),U=jd(E),ee=Kd.sqrt(gu(w*G)+gu(g*C-f*w*U)),K=tE(ee,V=f*C+g*w*U);var H=g*w*G/ee;I=0,0!=(ve=1-gu(H))&&(I=V-2*f*C/ve),M=E;var se=c/16*ve*(4+c*(4-3*ve));E=d+(1-se)*c*H*(K+se*ee*(I+se*V*(2*gu(I)-1))),N=E8e(E-M)<=this.DISTANCE_CONVERGENCE}var me=ve*(gu(l)-gu(u))/gu(u),ae=1+me/16384*(4096+me*(me*(320-175*me)-768)),Ne=me/1024*(256+me*(me*(74-47*me)-128)),Ce=Ne*ee*(I+Ne/4*(V*(2*gu(I)-1)-Ne/6*I*(4*gu(ee)-3)*(4*gu(I)-3))),ye=tE(w*G,g*C-f*w*U),Be=tE(g*G,-f*w+g*C*U);return{distance:tt(u*ae*(K-Ce),this.DISTANCE_PRECISION),azimuthFrom:Rd(ye),azimuthTo:Rd(Be)}}},{key:"toString",value:function(){return String(this.lat)+","+String(this.lng)}}],[{key:"fromLngLat",value:function(n){return new t(n[1],n[0])}},{key:"fromLatLng",value:function(n){return new t(n[0],n[1])}},{key:"create",value:function(n,a){if(Te(n))return n instanceof t?n.clone():1===arguments.length&&2===n.length?t.fromLatLng(n):new t(n,a)}}]),t}(mt),Wd=Math,N2=Wd.atan,EY=Wd.exp,TY=Wd.pow,AY=Wd.sin,xY=Wd.log,MY=Wd.tan,T8e=Pe,nE=Wd.PI,F2=nE/2,RY=nE/4,A8e=nE/180,x8e=I2.WGS84,OY=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).initProperties(),n._initOptions(e),n}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"initProperties",value:function(){ne(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})}},{key:"forward",value:function(n,a){var o=this,s=o.options,u=s.datum.a,c=s.centralMeridian,d=Mt(n.lat,-o.MAX_LAT,o.MAX_LAT),h=a?Mt(n.lng,-o.MAX_LNG,o.MAX_LNG):n.lng,f=Sr(h-c)*u,g=o._projectLat(d);return new T8e(f,g)}},{key:"_projectLat",value:function(n){var a=this.options.datum,o=a.e,s=a.a,l=Sr(n),u=MY(RY+l/2),c=o*AY(l),d=TY((1-c)/(1+c),o/2);return s*xY(u*d)}},{key:"inverse",value:function(n,a){var o=this,s=o.options,d=n.x/(A8e*s.datum.a)+s.centralMeridian,h=Mt(o._inverseY(n.y),-o.MAX_LAT,o.MAX_LAT);return a&&(d=Mt(d,-o.MAX_LNG,o.MAX_LNG)),new na(h,d)}},{key:"_inverseY",value:function(n){var h,a=this,o=a.options.datum,l=o.e,u=l/2,c=EY(-n/o.a),d=F2-2*N2(c);for(h=0;h<=a.INVERSE_ITERATIONS;h++){var f=l*AY(d),g=TY((1-f)/(1+f),u),_=F2-2*N2(c*g)-d;if(d+=_,Wd.abs(_)<=a.INVERSE_CONVERGENCE)break}return Rd(d)}}]),t}(mt);ze(OY,{centralMeridian:0,datum:x8e});var M8e=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),ne(this,{MAX_LAT:85.0511287798})}},{key:"_projectLat",value:function(n){var a=this.options.datum.a,o=Sr(n),s=MY(RY+o/2);return a*xY(s)}},{key:"_inverseY",value:function(n){var o=EY(-n/this.options.datum.a);return Rd(F2-2*N2(o))}}]),t}(OY),R8e=function(i){b(t,i);var r=S(t);function t(){var e;p(this,t);var a=Xe(e=r.call(this))._proj=new M8e,o=e.c=2*nE*a.options.datum.a;return e._tm=Hn().translate(.5,.5).scale(1/o,-1/o),e._itm=Hn().scale(o,-o).translate(-.5,-.5),e}return v(t,[{key:"toPoint",value:function(n,a,o){return this._proj.forward(n,o).transform(this._tm).scale(a||1)}},{key:"toLocation",value:function(n,a,o){var s=n.clone().scale(1/(a||1)).transform(this._itm);return this._proj.inverse(s,o)}}]),t}(mt),IY=Object.defineProperty,Pg=function(r){var t=document.createElement("div");return t.innerHTML=r,t.firstChild},Kk=function(r){for(;r.firstChild;)r.removeChild(r.firstChild)},NY=function(r,t){t.insertBefore(r,t.firstChild)},FY=function(r){return r.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()})},LY=function(r){return r&&String(r).endsWith("px")?r:String(r)+"px"},PY=function(r){var e,t=!1,n=[],a={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},o={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},s={tablet:/playbook|ipad|fire/i},l={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(var u in a)if(a.hasOwnProperty(u)&&(n=r.match(a[u]))){if("windows"===u&&"plugins"in navigator)return!1;(t={}).device=u,t.tablet=L2(u,s,!1),t.browser=L2(r,l,"default"),t.name=L2(u,o),t[t.name]=!0,t.majorVersion=n[2],t.minorVersion=(n[3]||"0").replace("_","."),e=t.minorVersion.replace(".","").substr(0,2),t.flatVersion=t.majorVersion+e+new Array(3-(e.length<3?e.length:2)).join("0");break}return t};function L2(i,r,t){for(var e in r)if(r.hasOwnProperty(e)&&r[e].test(i))return e;return void 0!==t?t:i}var P2=function(){var r={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},t=Pf();return t.touch&&(t.mobileOS.ios||t.mobileOS.android)?r={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:t.pointers?r={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:t.msPointers&&(r={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),r},Pf=function(){var r=PY(navigator.userAgent),t=function(r){var t=!1,e=[],n={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var a in n)if(n.hasOwnProperty(a)&&(e=r.match(n[a]))){(t={})[a]=!0,t[e[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||e[2],10);break}return t}(navigator.userAgent),e=t.chrome,n=t.crios,a=t.mozilla,o=t.safari,s={};s.mobileOS=r,s.touch="ontouchstart"in window,s.pointers=!e&&!n&&!a&&!o&&window.PointerEvent,s.msPointers=!e&&window.MSPointerEvent,s.mouseAndTouchPresent=s.touch&&!(s.mobileOS.ios||s.mobileOS.android),s.eventCapture=document.documentElement.addEventListener;var l=document.createElement("table"),u=s.transitions=!1,c=s.transforms=!1,d="string";return["Moz","webkit","O","ms"].forEach(function(h){var f=typeof l.style[h+"Transition"]===d;if(f||typeof l.style[h+"Transform"]===d){var g=h.toLowerCase();return c={css:"ms"!==g?"-"+g+"-":"",prefix:h,event:"o"===g||"webkit"===g?g:""},f&&((u=c).event=u.event?u.event+"TransitionEnd":"transitionend"),!1}}),l=null,s.transforms=c,s.transitions=u,s.delayedClick=function(){if(s.touch){if(s.mobileOS.ios)return!0;if(s.mobileOS.android){if(!s.browser.chrome)return!0;if(s.browser.version<32)return!1;var h=document.querySelector("meta[name=viewport]");return!(h?h.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},s},ui=function(r,t){return r.bind(t)},eo=function(r,t,e,n,a){V8e(r,t,e,n,a)},V8e=function(r,t,e,n,a){(Jr(t)?t:(t||"").split(" ")).forEach(function(s){G8e(r,s,e,n,a)})},G8e=function(r,t,e,n,a){var s,o=n;e&&Ri(e)&&!n?o=e:e&&function B8e(i){return"string"==typeof i}(e)&&Ri(o)&&(s=e),r.addEventListener(t,function(l){var u=l.target?l.target.closest(s):null;(!s||s&&l.target&&u)&&(IY(l,"currentTarget",{value:s?u:l.currentTarget}),IY(l,"delegateTarget",{value:r}),o(l))},Boolean(a))},wo=function(r,t,e,n,a){U8e(r,t,e,n,a)},U8e=function(r,t,e,n){(Jr(t)?t:(t||"").split(" ")).forEach(function(o){z8e(r,o,e,n)})},z8e=function(r,t,e,n){r.removeEventListener(t,e,Boolean(n))},Hs=function(r){var t=P2(navigator);return r.replace(/([^ ]+)/g,function e(o){return t[o]||o})},iE=function(r,t){var e=r.prototype;e.events?t.forEach(function(n){e.events.indexOf(n)<0&&e.events.push(n)}):e.events=t},Gc=function(){return Number(new Date)},BY=function(){},GY="function",K8e=function(){this._defaultPrevented=!0},j8e=function(){return!0===this._defaultPrevented},El=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._events={},e}return v(t,[{key:"destroy",value:function(){this.unbind()}},{key:"bind",value:function(n,a,o){var l,c,d,h,s=this,u="string"==typeof n?[n]:n||[],f=typeof a===GY;if(void 0===a){for(l in n)s.bind(l,n[l]);return s}var _=function(){var w=u[l];(h=f?a:a[w])&&(o&&(d=h,h=function(){s.unbind(w,h),d.apply(s,arguments)},h.original=d),(s._events[w]=s._events[w]||[]).push(h))};for(l=0,c=u.length;l=0;l--)(s[l]===a||s[l].original===a)&&s.splice(l,1);else o._events[n]=[];return o}},{key:"_setEvents",value:function(n){for(var a=(this.events||[]).length,o=0;o0?(Kk(this.element),function(r,t){var e=document.createElement("div");for(e.innerHTML=r;e.childNodes.length>0;)t.appendChild(e.childNodes[0])}(n.join(this.options.separator),this.element),this.showElement()):this.hideElement()}},{key:"hideElement",value:function(){this.element.style.display="none"}},{key:"showElement",value:function(){this.element.style.display=""}},{key:"_itemText",value:function(n){var a="",o=this._inZoomLevel(n.minZoom,n.maxZoom),s=this._inArea(n.extent);return o&&s&&(a+=n.text),a}},{key:"_inZoomLevel",value:function(n,a){var s=qt(n,-Number.MAX_VALUE),l=qt(a,Number.MAX_VALUE);return this._zoom>s&&this._zoom')}var B2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this)).element=e,a._initOptions(n);var o=rE("up"),s=rE("right"),l=rE("down"),u=rE("left");a.element.appendChild(o),a.element.appendChild(s),a.element.appendChild(l),a.element.appendChild(u),Za(a.element,"k-widget k-navigator"),eo(a.element,"click",".k-button",ui(a._click,Xe(a)));var c=a.element.parentNode.closest("[data-role]");return a._keyroot=c||a.element,a._tabindex(a._keyroot),a._keydownHandler=ui(a._keydown,Xe(a)),eo(a._keyroot,"keydown",a._keydownHandler),a}return v(t,[{key:"destroy",value:function(){this.dispose()}},{key:"dispose",value:function(){wo(this._keyroot,"keydown",this._keydownHandler)}},{key:"_tabindex",value:function(n){var a=n||this.wrapper||this.element,o=this.element,s="tabindex",l=a.getAttribute(s)||o.getAttribute(s);o.removeAttribute(s),a.setAttribute(s,isNaN(l)?0:l)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_pan",value:function(n,a){var o=this.options.panStep;this.trigger("pan",{x:n*o,y:a*o})}},{key:"_click",value:function(n){var a=0,o=0,s=n.currentTarget;s.matches(".k-navigator-n")?o=1:s.matches(".k-navigator-s")?o=-1:s.matches(".k-navigator-e")?a=1:s.matches(".k-navigator-w")&&(a=-1),this._pan(a,o),n.preventDefault()}},{key:"_keydown",value:function(n){switch(n.which){case pg_UP:this._pan(0,1),n.preventDefault();break;case pg_DOWN:this._pan(0,-1),n.preventDefault();break;case pg_RIGHT:this._pan(1,0),n.preventDefault();break;case pg_LEFT:this._pan(-1,0),n.preventDefault()}}}]),t}(El);function KY(i,r){return Pg('')}ze(B2,{name:"Navigator",panStep:1}),iE(B2,["pan"]);var V2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this)).element=e,a._initOptions(n);var o=KY("in","k-i-plus"),s=KY("out","k-i-minus");a.element.appendChild(o),a.element.appendChild(s),Za(a.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),a._clickHandler=a._click.bind(Xe(a)),eo(a.element,"click",".k-button",a._clickHandler);var l=a.element.parentNode.closest("[data-role]");return a._keyroot=l||a.element,a._tabindex(a._keyroot),a._keydownHandler=a._keydown.bind(Xe(a)),eo(a._keyroot,"keydown",a._keydownHandler),a}return v(t,[{key:"destroy",value:function(){this.element&&wo(this.element,"click",this._clickHandler),this._keyroot&&wo(this._keyroot,"keydown",this._keydownHandler)}},{key:"_tabindex",value:function(n){var a=n||this.wrapper||this.element,o=this.element,s="tabindex",l=a.getAttribute(s)||o.getAttribute(s);o.removeAttribute(s),a.setAttribute(s,isNaN(l)?0:l)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_change",value:function(n){this.trigger("change",{delta:n*this.options.zoomStep})}},{key:"_click",value:function(n){var o=1;Yy(n.currentTarget,"k-zoom-out")&&(o=-1),this._change(o),n.preventDefault()}},{key:"_keydown",value:function(n){switch(n.which){case pg_NUMPAD_PLUS:case 187:case 61:this._change(1);break;case pg_NUMPAD_MINUS:case 189:case 173:this._change(-1)}}}]),t}(El);ze(V2,{name:"ZoomControl",zoomStep:1}),iE(V2,["change"]);var WY=Math,$Y=WY.max,qY=WY.min,aE=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),a=r.call(this);var o=na.create(e),s=na.create(n);return o.lng+180>s.lng+180&&o.lat+90=a.lng+180&&s+180<=o.lng+180&&l+90>=o.lat+90&&l+90<=a.lat+90}},{key:"center",value:function(){var n=this.nw,a=this.se;return new na(n.lat+(a.lat-n.lat)/2,n.lng+(a.lng-n.lng)/2)}},{key:"containsAny",value:function(n){for(var a=!1,o=0;o=n.minZoom,s=!Te(n.maxZoom)||a<=n.maxZoom,l=aE.create(n.extent),u=!l||l.overlaps(this.map.extent());this._setVisibility(o&&s&&u)}},{key:"_setVisibility",value:function(n){this.element.style.display=n?"":"none"}},{key:"_activate",value:function(){var n=this.map;this._deactivate(),n.bind("beforeReset",this._beforeReset),n.bind("reset",this._reset),n.bind("resize",this._resize),n.bind("panEnd",this._panEnd)}},{key:"_deactivate",value:function(){var n=this.map;n.unbind("beforeReset",this._beforeReset),n.unbind("reset",this._reset),n.unbind("resize",this._resize),n.unbind("panEnd",this._panEnd)}},{key:"_updateAttribution",value:function(){var n=this.map.attribution;n&&n.add(this.options.attribution)}},{key:"_readData",value:function(){return this.options.data||[]}},{key:"_hasData",value:function(){return this._data&&this._data.length>0}}]),t}(mt),$d=Math,U2=Pe;function XY(i){return Ri(i)?i:D9.compile(i)}function Z8e(i){return new U2(tt(i.x),tt(i.y))}function ZY(i){var r=i;return"string"!=typeof i&&(r+="px"),r}var YY=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),"string"==typeof(a=r.call(this,e,n)).options.subdomains&&(a.options.subdomains=a.options.subdomains.split(""));var o=a._viewType();return a._view=new o(a.element,a.options),a}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this._view.destroy(),this._view=null}},{key:"_beforeReset",value:function(){var n=this.map,a=n.locationToLayer(n.extent().nw).round();this._view.viewOrigin(a)}},{key:"_reset",value:function(){$(q(t.prototype),"_reset",this).call(this),this._updateView(),this._view.reset()}},{key:"_viewType",value:function(){return Y8e}},{key:"_activate",value:function(){$(q(t.prototype),"_activate",this).call(this),this.support.mobileOS||(this._pan||(this._pan=GF(this._render.bind(this),100)),this.map.bind("pan",this._pan))}},{key:"_deactivate",value:function(){$(q(t.prototype),"_deactivate",this).call(this),this._pan&&this.map.unbind("pan",this._pan)}},{key:"_updateView",value:function(){var n=this._view,a=this.map,o=a.extent(),s={nw:a.locationToLayer(o.nw).round(),se:a.locationToLayer(o.se).round()};n.center(a.locationToLayer(a.center())),n.extent(s),n.zoom(a.zoom())}},{key:"_resize",value:function(){this._render()}},{key:"_panEnd",value:function(n){$(q(t.prototype),"_panEnd",this).call(this,n),this._render()}},{key:"_render",value:function(){this._updateView(),this._view.render()}}]),t}(G2);ze(YY,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});var Y8e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).element=e,a._initOptions(n),a.pool=new JY,a}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"center",value:function(n){this._center=n}},{key:"extent",value:function(n){this._extent=n}},{key:"viewOrigin",value:function(n){this._viewOrigin=n}},{key:"zoom",value:function(n){this._zoom=n}},{key:"pointToTileIndex",value:function(n){return new U2($d.floor(n.x/this.options.tileSize),$d.floor(n.y/this.options.tileSize))}},{key:"tileCount",value:function(){var n=this.size(),a=this.pointToTileIndex(this._extent.nw),o=this._extent.nw,s=this.indexToPoint(a).translate(-o.x,-o.y);return{x:$d.ceil(($d.abs(s.x)+n.width)/this.options.tileSize),y:$d.ceil(($d.abs(s.y)+n.height)/this.options.tileSize)}}},{key:"size",value:function(){var n=this._extent.nw,o=this._extent.se.clone().translate(-n.x,-n.y);return{width:o.x,height:o.y}}},{key:"indexToPoint",value:function(n){return new U2(n.x*this.options.tileSize,n.y*this.options.tileSize)}},{key:"subdomainText",value:function(){var n=this.options.subdomains;return n[this.subdomainIndex++%n.length]}},{key:"destroy",value:function(){Kk(this.element),this.pool.empty()}},{key:"reset",value:function(){this.pool.reset(),this.subdomainIndex=0,this.render()}},{key:"render",value:function(){var o,s,l,n=this.tileCount(),a=this.pointToTileIndex(this._extent.nw);for(s=0;s=0?o:a-(0===o?a:o)}}]),t}(mt),QY=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).id=e,a.visible=!0,a._initOptions(n),a.createElement(),a.show(),a}return v(t,[{key:"destroy",value:function(){var n=this.element,a=n?n.parentNode:null;n&&(a&&a.removeChild(n),this.element=null)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"createElement",value:function(){var n=document.createElement("img"),a=this.options.size+"px";n.style.position="absolute",n.style.display="block",n.style.width=n.style.maxWidth=a,n.style.height=n.style.maxHeight=a,this.element=n}},{key:"show",value:function(){var n=this.element;n.style.top=ZY(this.options.offset.y),n.style.left=ZY(this.options.offset.x);var a=this.url();a&&n.setAttribute("src",a),n.style.visibility="visible",this.visible=!0}},{key:"hide",value:function(){this.element.style.visibility="hidden",this.visible=!1}},{key:"url",value:function(){return XY(this.options.urlTemplate)(this.urlOptions())}},{key:"errorUrl",value:function(){return XY(this.options.errorUrlTemplate)(this.urlOptions())}},{key:"urlOptions",value:function(){var n=this.options;return{zoom:n.zoom,subdomain:n.subdomain,z:n.zoom,x:n.index.x,y:n.index.y,s:n.subdomain,quadkey:n.quadkey,q:n.quadkey,culture:n.culture,c:n.culture}}}]),t}(mt);ze(QY,{urlTemplate:"",errorUrlTemplate:""});var JY=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._items=[],e}return v(t,[{key:"get",value:function(n,a){return this._items.length>=this.options.maxSize&&this._remove(n),this._create(a)}},{key:"empty",value:function(){for(var n=this._items,a=0;ao&&!a[l].visible&&(s=l,o=u)}-1!==s&&(a[s].destroy(),a.splice(s,1))}}]),t}(mt);ze(JY,{maxSize:100});var Bf=Object.assign,jk="change",Q8e=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t);var o=Xe(a=r.call(this)),s=e[0]||e;o.capture=!1;var l=P2(navigator);return s.addEventListener?(l.down.split(" ").forEach(function(u){s.addEventListener(u,ui(o._press,o),!0)}),l.up.split(" ").forEach(function(u){s.addEventListener(u,ui(o._release,o),!0)})):(l.down.split(" ").forEach(function(u){s.attachEvent(u,ui(o._press,o))}),l.up.split(" ").forEach(function(u){s.attachEvent(u,ui(o._release,o))})),o.bind(["press","release"],n||{}),a}return v(t,[{key:"captureNext",value:function(){this.capture=!0}},{key:"cancelCapture",value:function(){this.capture=!1}},{key:"_press",value:function(n){this.trigger("press"),this.capture&&n.preventDefault()}},{key:"_release",value:function(n){var a=this;a.trigger("release"),a.capture&&(n.preventDefault(),a.cancelCapture())}}]),t}(El),eQ=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));return a.forcedEnabled=!1,Bf(a,e),a.scale=1,a.horizontal?(a.measure="offsetWidth",a.scrollSize="scrollWidth",a.axis="x"):(a.measure="offsetHeight",a.scrollSize="scrollHeight",a.axis="y"),n}return v(t,[{key:"makeVirtual",value:function(){Bf(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})}},{key:"virtualSize",value:function(n,a){(this._virtualMin!==n||this._virtualMax!==a)&&(this._virtualMin=n,this._virtualMax=a,this.update())}},{key:"outOfBounds",value:function(n){return n>this.max||nl,n||a.trigger(jk,a))}}]),t}(El),J8e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));return a.x=new eQ(Bf({horizontal:!0},e)),a.y=new eQ(Bf({horizontal:!1},e)),a.container=e.container,a.forcedMinScale=e.minScale,a.maxScale=e.maxScale||100,a.bind(jk,e),n}return v(t,[{key:"rescale",value:function(n){this.x.rescale(n),this.y.rescale(n),this.refresh()}},{key:"centerCoordinates",value:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}}},{key:"refresh",value:function(){var n=this;n.x.update(),n.y.update(),n.enabled=n.x.enabled||n.y.enabled,n.minScale=n.forcedMinScale||Math.min(n.x.minScale,n.y.minScale),n.fitScale=Math.max(n.x.minScale,n.y.minScale),n.trigger(jk)}}]),t}(El),tQ=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Bf(Xe(n),e),n}return v(t,[{key:"outOfBounds",value:function(){return this.dimension.outOfBounds(this.movable[this.axis])}},{key:"dragMove",value:function(n){var a=this,o=a.dimension,s=a.axis,l=a.movable,u=l[s]+n;if(o.enabled){var c=n;(uo.max&&n>0)&&(c*=a.resistance),l.translateAxis(s,c),a.trigger(jk,a)}}}]),t}(El),e5e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var o,s,l,u,a=Xe(n=r.call(this));return Bf(a,{elastic:!0},e),a.x=o=new tQ({axis:"x",dimension:a.dimensions.x,resistance:l=a.elastic?.5:0,movable:u=a.movable}),a.y=s=new tQ({axis:"y",dimension:a.dimensions.y,resistance:l,movable:u}),a.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(d){a.gesture=d,a.offset=ik(a.dimensions.container)},press:function(d){var h=d.event.target.closest("a");h&&h.matches("[data-navigate-on-press=true]")&&d.sender.cancel()},gesturechange:function(d){var E,h=a.gesture,f=h.center,g=d.center,_=d.distance/h.distance,w=a.dimensions.maxScale;u.scale<=a.dimensions.minScale&&_<1&&(_+=.8*(1-_)),u.scale*_>=w&&(_=w/u.scale);var M=u.x+a.offset.left,R=u.y+a.offset.top;E={x:(M-f.x)*_+g.x-M,y:(R-f.y)*_+g.y-R},u.scaleWith(_),o.dragMove(E.x),s.dragMove(E.y),a.dimensions.rescale(u.scale),a.gesture=d,d.preventDefault()},move:function(d){d.event.target.tagName.match(/textarea|input/i)||(o.dimension.enabled||s.dimension.enabled?(o.dragMove(d.x.delta),s.dragMove(d.y.delta),d.preventDefault()):d.touch.skip())},end:function(d){d.preventDefault()}}),n}return v(t)}(mt),nQ=function(r,t,e){return"translate3d("+r+"px,"+t+"px,0) scale("+e+")"},z2=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));a.support=Pf(),n.transformStyle=n.support.transitions.prefix+"Transform",a.element=e,a.element.style.webkitTransformOrigin="left top",a.x=0,a.y=0,a.scale=1;var o=nQ(a.x,a.y,a.scale);return a.element.style[n.transformStyle]=o,a._saveCoordinates(o),n}return v(t,[{key:"translateAxis",value:function(n,a){this[n]+=a,this.refresh()}},{key:"scaleTo",value:function(n){this.scale=n,this.refresh()}},{key:"scaleWith",value:function(n){this.scale*=n,this.refresh()}},{key:"translate",value:function(n){this.x+=n.x,this.y+=n.y,this.refresh()}},{key:"moveAxis",value:function(n,a){this[n]=a,this.refresh()}},{key:"moveTo",value:function(n){Bf(this,n),this.refresh()}},{key:"refresh",value:function(){var s,n=this,a=n.x,o=n.y;n.round&&(a=Math.round(a),o=Math.round(o)),(s=nQ(a,o,n.scale))!==n.coordinates&&(n.element.style[this.transformStyle]=s,n._saveCoordinates(s),n.trigger(jk))}},{key:"_saveCoordinates",value:function(n){this.coordinates=n}}]),t}(El),H2=sn,K2=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n))._pan=ui(a._pan,Xe(a)),a.surface=Ik.create(a.element,{width:e.scrollElement.clientWidth,height:e.scrollElement.clientHeight}),a._initRoot(),a.movable=new z2(a.surface.element),a._markers=[],a._click=a._handler("shapeClick"),a.surface.bind("click",a._click),a._mouseenter=a._handler("shapeMouseEnter"),a.surface.bind("mouseenter",a._mouseenter),a._mouseleave=a._handler("shapeMouseLeave"),a.surface.bind("mouseleave",a._mouseleave),a}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this.surface.destroy()}},{key:"_reset",value:function(){$(q(t.prototype),"_reset",this).call(this),this._translateSurface(),this._data=this._readData(),this._hasData()&&this._load(this._data)}},{key:"_initRoot",value:function(){this._root=new H2,this.surface.draw(this._root)}},{key:"_beforeReset",value:function(){this.surface.clear(),this._initRoot()}},{key:"_resize",value:function(){this.surface.size(this.map.size())}},{key:"_readData",value:function(){var n=$(q(t.prototype),"_readData",this).call(this);return"FeatureCollection"===n.type?n.features:"GeometryCollection"===n.type?n.geometries:n}},{key:"_load",value:function(n){this._data=n,this._clearMarkers(),this._loader||(this._loader=new t5e(this.map,this.options.style,this));for(var a=new H2,o=0;o1?Nd:dt)(this.style),s=0;s-1&&this.items.splice(a,1)}},{key:"clear",value:function(){for(var n=0;n=this.duration}},{key:"timePassed",value:function(){return Math.min(this.duration,Gc()-this.startDate)}},{key:"moveTo",value:function(n){var a=this;a.initial=a.movable[a.axis],a.delta=n.location-a.initial,a.duration="number"==typeof n.duration?n.duration:300,a.tick=a._easeProxy(n.ease),a.startDate=Gc(),a.start()}},{key:"_easeProxy",value:function(n){var a=this;return function(){a.movable.moveAxis(a.axis,n(a.timePassed(),a.initial,a.delta,a.duration))}}}],[{key:"easeOutExpo",value:function(n,a,o,s){return n===s?a+o:o*(1-Math.pow(2,-10*n/s))+a}}]),t}(oE),sE=Object.assign,s5e=function(r){r.preventDefault()},cQ=800,dQ=0,$2="move",lE="tap",mQ="doubleTap",_Q="release",yQ="gesturechange",kQ="gestureend",CQ="gesturetap",c5e={api:0,touch:0,mouse:9,pointer:9};function bQ(i){var o,s,l,r=Pf(),t=[],e=i.originalEvent||i,n=i.currentTarget,a=0;if(i.api)t.push({id:2,event:i,target:i.target,currentTarget:i.target,location:i,type:"api"});else if(i.type.match(/touch/))for(o=(s=e?e.changedTouches:[]).length;a1}},{key:"_maxTouchesReached",value:function(){return this.touches.length>=this._maxTouches}},{key:"_disposeAll",value:function(){for(var n=this.touches;n.length>0;)n.pop().dispose()}},{key:"_isMoved",value:function(){return Xo(this.touches,function(n){return n.isMoved()}).length}},{key:"_select",value:function(n){(!this.allowSelection||this.trigger("select",{event:n}))&&n.preventDefault()}},{key:"_start",value:function(n){var l,d,a=this,o=0,s=a.filter,u=bQ(n),c=u.length,h=n.which;if(!(h&&h>1||a._maxTouchesReached()))for(t.current=null,a.currentTarget=n.currentTarget,a.stopPropagation&&n.stopPropagation();oa.max?a.max:a.min)}},{key:"_moveTo",value:function(n){this.transition.moveTo({location:n,duration:500,ease:uQ.easeOutExpo})}}]),t}(oE),S5e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this,e));return Bg(a,e,{origin:{},destination:{},offset:{}}),n}return v(t,[{key:"tick",value:function(){this._updateCoordinates(),this.moveTo(this.origin)}},{key:"done",value:function(){return Vf(this.offset.y)<5&&Vf(this.offset.x)<5}},{key:"onEnd",value:function(){this.moveTo(this.destination),this.callback&&this.callback.call()}},{key:"setCoordinates",value:function(n,a){this.offset={},this.origin=n,this.destination=a}},{key:"setCallback",value:function(n){n&&Ri(n)?this.callback=n:n=void 0}},{key:"_updateCoordinates",value:function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}]),t}(oE),w5e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this)),o="x"===e.axis,l=Pg('
');return Bg(a,e,{element:l,elementSize:0,movable:new z2(l),scrollMovable:e.movable,alwaysVisible:e.alwaysVisible,size:o?"width":"height"}),a.scrollMovable.bind(uE,a.refresh.bind(a)),a.container.appendChild(l),e.alwaysVisible&&a.show(),n}return v(t,[{key:"refresh",value:function(){var n=this,a=n.axis,o=n.dimension,s=o.size,u=s/o.total,c=Math.round(-n.scrollMovable[a]*u),d=Math.round(s*u);this.element.style.display=u>=1?"none":"",c+d>s?d=s-c:c<0&&(d+=c,c=0),n.elementSize!==d&&(n.element.style[n.size]=d+"px",n.elementSize=d),n.movable.moveAxis(a,c)}},{key:"show",value:function(){this.element.style.opacity=.7,this.element.style.visibility="visible"}},{key:"hide",value:function(){this.alwaysVisible||(this.element.style.opacity=0)}}]),t}(mt),Y2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t);var o=Xe(a=r.call(this));a.element=e,a._initOptions(n);var s=function(r){var t=PY(r);return t.ios||t.android}(navigator.userAgent);o._native=o.options.useNative&&s;var l=Pg('
');if(o._native)return Za(e,"km-native-scroller"),NY(l,e),Bg(o,{scrollElement:e,fixedContainer:e.children[0]}),gs(a);e.style.overflow="hidden",Za(e,"km-scroll-wrapper"),function(r,t){for(r.appendChild(t);r.firstChild!==t;)t.appendChild(r.firstChild)}(e,Pg('
')),NY(l,e);var c=e.children[1],d=new Q8e(e),h=new z2(c),f=new J8e({element:c,container:e,forcedEnabled:o.options.zoom}),g=a.options.avoidScrolling,_=new X2(e,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:o.options.zoom,supportDoubleTap:o.options.supportDoubleTap,start:function(R){f.refresh();var N=Vf(R.x.velocity),G=Vf(R.y.velocity),U=2*N>=G,ee=function(r,t){return r===t||function(r,t){if(!t)return!1;for(var e=t.parentNode;null!==e;){if(e===r)return!0;e=e.parentNode}return!1}(r,t)}(o.fixedContainer,R.event.target),ve=2*G>=N;!ee&&!g(R)&&o.enabled&&(f.x.enabled&&U||f.y.enabled&&ve)?_.capture():_.cancel()}}),C=new e5e({movable:h,dimensions:f,userEvents:_,elastic:o.options.elastic}),w=new C5e({movable:h,dimensions:f,userEvents:_,tapCapture:d}),E=new S5e({moveTo:function(R){o.scrollTo(R.x,R.y)}});return h.bind(uE,function(){o.scrollTop=-h.y,o.scrollLeft=-h.x,o.trigger("scroll",{scrollTop:o.scrollTop,scrollLeft:o.scrollLeft})}),o.options.mousewheelScrolling&&(a._wheelScrollHandler=a._wheelScroll.bind(Xe(a)),eo(e,"DOMMouseScroll mousewheel",a._wheelScrollHandler)),Bg(o,{movable:h,dimensions:f,zoomSnapBack:w,animatedScroller:E,userEvents:_,pane:C,tapCapture:d,pulled:!1,enabled:!0,scrollElement:c,scrollTop:0,scrollLeft:0,fixedContainer:e.children[0]}),o._initAxis("x"),o._initAxis("y"),o._wheelEnd=function(){o._wheel=!1,o.userEvents.end(0,o._wheelY)},f.refresh(),o.options.pullToRefresh&&o._initPullToRefresh(),a}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_wheelScroll",value:function(n){if(!n.ctrlKey){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var a=function(r){var n,t=r.originalEvent||r,e=t.wheelDeltaY;return t.wheelDelta?(void 0===e||e)&&(n=t.wheelDelta):t.detail&&t.axis===t.VERTICAL_AXIS&&(n=10*-t.detail),n}(n);a&&(this._wheelY+=a,this.userEvents.move(0,this._wheelY)),n.preventDefault()}}},{key:"makeVirtual",value:function(){this.dimensions.y.makeVirtual()}},{key:"virtualSize",value:function(n,a){this.dimensions.y.virtualSize(n,a)}},{key:"height",value:function(){return this.dimensions.y.size}},{key:"scrollHeight",value:function(){return this.scrollElement.scrollHeight}},{key:"scrollWidth",value:function(){return this.scrollElement.scrollWidth}},{key:"_resize",value:function(){this._native||this.contentResized()}},{key:"setOptions",value:function(n){this._initOptions(n),n.pullToRefresh&&this._initPullToRefresh()}},{key:"reset",value:function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))}},{key:"contentResized",value:function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)}},{key:"zoomOut",value:function(){var n=this.dimensions;n.refresh(),this._scale(n.fitScale),this.movable.moveTo(n.centerCoordinates())}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1}},{key:"scrollTo",value:function(n,a){this._native?(this.scrollElement.scrollLeft(Vf(n)),this.scrollElement.scrollTop(Vf(a))):(this.dimensions.refresh(),this.movable.moveTo({x:n,y:a}))}},{key:"animatedScrollTo",value:function(n,a,o){this._native?this.scrollTo(n,a):(this.animatedScroller.setCoordinates({x:this.movable.x,y:this.movable.y},{x:n,y:a}),this.animatedScroller.setCallback(o),this.animatedScroller.start())}},{key:"pullHandled",value:function(){}},{key:"destroy",value:function(){wo(this.element,"DOMMouseScroll mousewheel",this._wheelScrollHandler),this.userEvents&&this.userEvents.destroy()}},{key:"_scale",value:function(n){this.dimensions.rescale(n),this.movable.scaleTo(n)}},{key:"_initPullToRefresh",value:function(){}},{key:"_dragEnd",value:function(){}},{key:"_paneChange",value:function(){}},{key:"_initAxis",value:function(n){var a=this,o=a.movable,s=a.dimensions[n],l=a.tapCapture,u=a.pane[n],c=new w5e({axis:n,movable:o,dimension:s,container:a.element,alwaysVisible:a.options.visibleScrollHints});s.bind(uE,function(){c.refresh()}),u.bind(uE,function(){c.show()}),a[n+"inertia"]=new b5e({axis:n,paneAxis:u,movable:o,tapCapture:l,userEvents:a.userEvents,dimension:s,elastic:a.options.elastic,friction:a.options.friction||.96,velocityMultiplier:a.options.velocityMultiplier||10,end:function(){c.hide(),a.trigger("scrollEnd",{axis:n,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft})}})}}]),t}(El);ze(Y2,{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}}),iE(Y2,["pull","scroll","resize"]);var D5e=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,i),this.sender=t.sender||r,this.widget=r,this.rtl=Boolean(t.rtl)}return v(i,[{key:"notify",value:function(t,e){this.widget&&this.widget.trigger(t,e)}}]),i}(),E5e=D5e,qd=Math,TQ=qd.min,Q2=qd.pow,AQ=Pe,cE="marker",dE="location",xQ="DOMMouseScroll mousewheel",R5e=De({bubble:iQ,shape:K2,tile:YY},cE,W2);function MQ(i){var r=[];if(i)for(var t=FY(i).split("-"),e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p(this,t),(n=r.call(this))._init(e,a,o,s),n}return v(t,[{key:"destroy",value:function(){this.scroller.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),Jr(this.markers)?this.markers.forEach(function(a){a.destroy()}):this.markers.destroy();for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.support=Pf(),this.context=s,this.initObserver(s),this.initServices(s),this._initOptions(a),this._setEvents(a),this.crs=new R8e,this._initElement(n),this._viewOrigin=this._getOrigin(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset(),this._mousewheelHandler=this._mousewheel.bind(this),eo(this.element,xQ,this._mousewheelHandler)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_initElement",value:function(n){this.element=n,Za(n,"k-map"),n.style.position="relative",n.setAttribute("data-role","map"),Kk(n);var a=Pg("
");this.element.appendChild(a)}},{key:"initServices",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.widgetService=new E5e(this,n)}},{key:"initObserver",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.observers=[],this.addObserver(n.observer)}},{key:"addObserver",value:function(n){n&&this.observers.push(n)}},{key:"removeObserver",value:function(n){var a=this.observers.indexOf(n);a>=0&&this.observers.splice(a,1)}},{key:"requiresHandlers",value:function(n){for(var a=this.observers,o=0;o1&&void 0!==arguments[1]?arguments[1]:{};a.sender=this;for(var o=this.observers,s=!1,l=0;l1&&void 0!==arguments[1]?arguments[1]:{};a.sender=this;for(var o=this.observers,s=!1,l=0;l0&&void 0!==arguments[0]?arguments[0]:{},a=this.element;this.destroy(),Kk(a),this._init(a,n,{},this.context),this._reset()}},{key:"locationToLayer",value:function(n,a){var o=!this.options.wraparound,s=na.create(n);return this.crs.toPoint(s,this._layerSize(a),o)}},{key:"layerToLocation",value:function(n,a){var o=!this.options.wraparound,s=AQ.create(n);return this.crs.toLocation(s,this._layerSize(a),o)}},{key:"locationToView",value:function(n){var a=na.create(n),o=this.locationToLayer(this._viewOrigin);return this.locationToLayer(a).translateWith(o.scale(-1))}},{key:"viewToLocation",value:function(n,a){var o=this.locationToLayer(this._getOrigin(),a),l=AQ.create(n).clone().translateWith(o);return this.layerToLocation(l,a)}},{key:"eventOffset",value:function(n){var a,o,s=ik(this.element);if(n.x&&n.x[dE]||n.y&&n.y[dE])a=n.x[dE]-s.left,o=n.y[dE]-s.top;else{var l=n.originalEvent||n;a=qt(l.pageX,l.clientX)-s.left,o=qt(l.pageY,l.clientY)-s.top}return new Pe(a,o)}},{key:"eventToView",value:function(n){var a=this.eventOffset(n);return this.locationToView(this.viewToLocation(a))}},{key:"eventToLayer",value:function(n){return this.locationToLayer(this.eventToLocation(n))}},{key:"eventToLocation",value:function(n){var a=this.eventOffset(n);return this.viewToLocation(a)}},{key:"viewSize",value:function(){var n=this.element,a=this._layerSize(),o=n.clientWidth;return this.options.wraparound||(o=TQ(a,o)),{width:o,height:TQ(a,n.clientHeight)}}},{key:"exportVisual",value:function(){return this._reset(),!1}},{key:"_setOrigin",value:function(n,a){var s,o=this.viewSize(),l=this._origin=na.create(n);return(s=this.locationToLayer(l,a)).x+=o.width/2,s.y+=o.height/2,this.options.center=this.layerToLocation(s,a).toArray(),this}},{key:"_getOrigin",value:function(n){var o,a=this.viewSize();return(n||!this._origin)&&((o=this.locationToLayer(this.center())).x-=a.width/2,o.y-=a.height/2,this._origin=this.layerToLocation(o)),this._origin}},{key:"_setExtent",value:function(n){var a=aE.create(n),o=a.se.clone();this.options.wraparound&&o.lng<0&&n.nw.lng>0&&(o.lng=180+(180+o.lng));var s=new aE(a.nw,o);this.center(s.center());var c,l=this.element.clientWidth,u=this.element.clientHeight;for(c=this.options.maxZoom;c>=this.options.minZoom;c--){var d=this.locationToLayer(s.nw,c),h=this.locationToLayer(s.se,c),f=qd.abs(h.x-d.x),g=qd.abs(h.y-d.y);if(f<=l&&g<=u)break}this.zoom(c)}},{key:"_getExtent",value:function(){var n=this._getOrigin(),a=this.locationToLayer(n),o=this.viewSize();a.x+=o.width,a.y+=o.height;var s=this.layerToLocation(a);return new aE(n,s)}},{key:"_zoomAround",value:function(n,a){this._setOrigin(this.layerToLocation(n,a),a),this.zoom(a)}},{key:"_initControls",value:function(){var n=this.options.controls;n.attribution&&this._createAttribution(n.attribution),this.support.mobileOS||(n.navigator&&this._createNavigator(n.navigator),n.zoom&&this._createZoomControl(n.zoom))}},{key:"_createControlElement",value:function(n,a){var o=n.position||a,s="."+MQ(o).replace(" ","."),l=this.element.querySelector(".k-map-controls"+s)||[];if(0===l.length){var u=document.createElement("div");Za(u,"k-map-controls "+MQ(o)),this.element.appendChild(l=u)}var c=document.createElement("div");return l.appendChild(c),c}},{key:"_createAttribution",value:function(n){var a=this._createControlElement(n,"bottomRight");this.attribution=new UY(a,n)}},{key:"_createNavigator",value:function(n){var a=this._createControlElement(n,"topLeft"),o=this.navigator=new B2(a,n);this._navigatorPan=this._navigatorPan.bind(this),o.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),o.bind("center",this._navigatorCenter)}},{key:"_navigatorPan",value:function(n){var a=this.scroller,o=a.scrollLeft+n.x,s=a.scrollTop-n.y,l=this._virtualSize,c=this.element.clientHeight;o=Mt(o,l.x.min,l.x.max-this.element.clientWidth),s=Mt(s,l.y.min,l.y.max-c),this.scroller.one("scroll",ui(this._scrollEnd,this)),this.scroller.scrollTo(-o,-s)}},{key:"_navigatorCenter",value:function(){this.center(this.options.center)}},{key:"_createZoomControl",value:function(n){var a=this._createControlElement(n,"topLeft"),o=this.zoomControl=new V2(a,n);this._zoomControlChange=this._zoomControlChange.bind(this),o.bind("change",this._zoomControlChange)}},{key:"_zoomControlChange",value:function(n){this.trigger("zoomStart",{originalEvent:n})||(this.zoom(this.zoom()+n.delta),this.trigger("zoomEnd",{originalEvent:n}))}},{key:"_initScroller",value:function(){var o=this.scroller=new Y2(this.element.children[0],{friction:this.support.mobileOS?.93:.9,velocityMultiplier:5,zoom:!1!==this.options.zoomable,mousewheelScrolling:!1,supportDoubleTap:!0});o.bind("scroll",ui(this._scroll,this)),o.bind("scrollEnd",ui(this._scrollEnd,this)),o.userEvents.bind("gesturestart",ui(this._scaleStart,this)),o.userEvents.bind("gestureend",ui(this._scale,this)),o.userEvents.bind("doubleTap",ui(this._doubleTap,this)),o.userEvents.bind("tap",ui(this._tap,this)),this.scrollElement=o.scrollElement}},{key:"_initLayers",value:function(){for(var n=this.options.layers,a=this.layers=[],o=0;o0||(this.markers=new W2(this,this.options.markerDefaults),this.markers.add(this.options.markers))}},{key:"_scroll",value:function(n){var a=this.locationToLayer(this._viewOrigin).round(),o=n.sender.movable,s=new Pe(o.x,o.y).scale(-1).scale(1/o.scale);a.x+=s.x,a.y+=s.y,this._scrollOffset=s,this._setOrigin(this.layerToLocation(a)),this.trigger("pan",{originalEvent:n,origin:this._getOrigin(),center:this.center()})}},{key:"_scrollEnd",value:function(n){!this._scrollOffset||!this._panComplete()||(this._scrollOffset=null,this._panEndTimestamp=Gc(),this.trigger("panEnd",{originalEvent:n,origin:this._getOrigin(),center:this.center()}))}},{key:"_panComplete",value:function(){return Gc()-(this._panEndTimestamp||0)>50}},{key:"_scaleStart",value:function(n){if(this.trigger("zoomStart",{originalEvent:n})){var a=n.touches[1];a&&a.cancel()}}},{key:"_scale",value:function(n){var o=this._scaleToZoom(this.scroller.movable.scale),s=new Pe(n.center.x,n.center.y),l=this.viewToLocation(s,o),c=this.locationToLayer(l,o).translate(-s.x,-s.y);this._zoomAround(c,o),this.trigger("zoomEnd",{originalEvent:n})}},{key:"_scaleToZoom",value:function(n){var a=this._layerSize()*n,s=qd.log(a/this.options.minSize)/qd.log(2);return qd.round(s)}},{key:"_reset",value:function(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.trigger("beforeReset"),this.trigger("reset")}},{key:"_resetScroller",value:function(){var n=this.scroller,a=n.dimensions.x,o=n.dimensions.y,s=this._layerSize(),l=this.extent().nw,u=this.locationToLayer(l).round();n.movable.round=!0,n.reset(),n.userEvents.cancel();var c=this.zoom();n.dimensions.forcedMinScale=Q2(2,this.options.minZoom-c),n.dimensions.maxScale=Q2(2,this.options.maxZoom-c);var d={min:-u.x,max:s-u.x},h={min:-u.y,max:s-u.y};if(this.options.wraparound&&(d.max=20*s,d.min=-d.max),!1===this.options.pannable){var f=this.viewSize();d.min=h.min=0,d.max=f.width,h.max=f.height}a.makeVirtual(),o.makeVirtual(),a.virtualSize(d.min,d.max),o.virtualSize(h.min,h.max),this._virtualSize={x:d,y:h}}},{key:"_renderLayers",value:function(){}},{key:"_layerSize",value:function(n){var a=qt(n,this.options.zoom);return this.options.minSize*Q2(2,a)}},{key:"_tap",value:function(n){if(this._panComplete()){var a=this.eventOffset(n);this.trigger("click",{originalEvent:n,location:this.viewToLocation(a)})}}},{key:"_doubleTap",value:function(n){if(!1!==this.options.zoomable&&!this.trigger("zoomStart",{originalEvent:n})){var o=this.zoom()+1,s=this.eventOffset(n),l=this.viewToLocation(s),c=this.locationToLayer(l,o).translate(-s.x,-s.y);this._zoomAround(c,o),this.trigger("zoomEnd",{originalEvent:n})}}},{key:"_mousewheel",value:function(n){n.preventDefault();var a=hN(n)>0?-1:1,o=this.options,s=this.zoom(),l=Mt(s+a,o.minZoom,o.maxZoom);if(!1!==o.zoomable&&l!==s&&!this.trigger("zoomStart",{originalEvent:n})){var u=this.eventOffset(n),c=this.viewToLocation(u),h=this.locationToLayer(c,l).translate(-u.x,-u.y);this._zoomAround(h,l),this.trigger("zoomEnd",{originalEvent:n})}}}]),t}(El);ze(RQ,{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}},bubble:{style:{fill:{color:"#fff",opacity:.5},stroke:{color:"#aaa",width:.5}}},marker:{shape:"pinTarget",tooltip:{position:"top"}}},center:[0,0],zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{position:"top"}},wraparound:!0,renderPointsAsMarkers:!1}),iE(RQ,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);var J2="Arial, Helvetica, sans-serif",eL="12px "+J2,IQ="16px "+J2,NQ="transparent",LQ=function(){return{icon:{border:{width:1}},label:{font:eL,padding:3},line:{length:10,width:2},visible:!0}},I5e=function(){return{labels:{font:eL},notes:LQ(),title:{font:IQ,margin:5}}},W5e=function(r){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:r.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:NQ},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:NQ,visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:LQ(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},$5e=function(){return{font:IQ}},q5e=function(){return{labels:{font:eL}}},jQ=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{axisDefaults:I5e(),categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:W5e(r),title:$5e(),legend:q5e()}};function X5e(i,r){var t={width:"800px",height:"600px",cors:"Anonymous"},e=i,n=i.clippedBBox();if(n){var a=n.getOrigin();(e=new sn).transform(Hn().translate(-a.x,-a.y)),e.children.push(i);var o=n.getSize();t.width=o.width+"px",t.height=o.height+"px"}var s=Object.assign(t,r),l=document.createElement("div"),u=l.style;u.display="none",u.width=s.width,u.height=s.height,document.body.appendChild(l);var c=new TX(l,s);c.suspendTracking(),c.draw(e);var d=c.image(),h=function(){c.destroy(),document.body.removeChild(l)};return d.then(h,h),d}function Y5e(i,r){var t=function Z5e(i){var r=new _X({skipBaseHref:!0}),t=i.clippedBBox(),e=i;if(t){var n=t.getOrigin(),a=new sn;a.transform(Hn().translate(-n.x,-n.y)),a.children.push(i),e=a}r.load([e]);var o="").concat(r.render(),"");return r.destroy(),o}(i);return(!r||!r.raw)&&(t="data:image/svg+xml;base64,"+UD(t)),gf().resolve(t)}function hE(i){return"string"==typeof i}var r,t4e=/\{(\d+)}?\}/g,n4e=function(){function i(r){var t=r.name,e=r.message;if(p(this,i),!t||!e)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=e}return v(i,[{key:"formatMessage",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n=1;a--){var o=e[a];(o===r.variant||o===r.script)&&e.splice(a,1)}var s=e.length;if(s>1)return e[s-1].toUpperCase()}(i.name,t),i.territory=e,e}function k4e(i,r){for(var t in r)"numbers"===t?c4e(i,r[t]):"dates"===t&&_4e(i,r[t])}function JQ(i,r){var t=r.type,e=r.nameType,n=r.standAlone,a=r.lower,l=(a?"lower-":"")+e,u=Gg(i).calendar[t][n?"stand-alone":"format"],c=u[l];return!c&&a&&(c=u[l]=function D4e(i){var r=Array.isArray(i)?function S4e(i){for(var r=[],t=0;t1&&void 0!==arguments[1])||arguments[1];if(tJ[i])return tJ[i];var t=zi.supplemental.currencyData;if(t){var e=t.region[i];if(e)return I4e(e);if(r)throw x4e.error(i)}else if(r)throw A4e.error()}(gE(t),r);if(!n&&r)throw M4e.error(t.name);e.localeCurrency=n}return e.localeCurrency}var sL=["sun","mon","tue","wed","thu","fri","sat"],B4e=Tl.NoWeekData,V4e=Tl.NoFirstDay;function rJ(i){var r=Gg(i);if(!isNaN(r.firstDay))return r.firstDay;var t=zi.supplemental.weekData;if(!t)throw B4e.error();var e=t.firstDay[gE(r)]||t.firstDay["001"];if(!e)throw V4e.error();return r.firstDay=sL.indexOf(e),r.firstDay}var G4e=Tl.NoWeekData;function aJ(i){return 1/i==-1/0}function oJ(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.currency||(r.currency=iJ(i,!0));var t=F4e(i,r);return t}function sJ(i,r,t,e,n){var a=n.numbers.symbols,o=i.indexOf(a.decimal),s=e.groupSize.slice(),l=s.shift(),u=-1!==o?o:t+1,c=i.substring(r,u),d=i,h=c.length;if(h>=l){for(var f=h,g=[];f>-1;){var _=c.substring(f-l,f);_&&g.push(_),f-=l;var C=s.shift();if(0===(l=void 0!==C?C:l)){(_=c.substring(0,f))&&g.push(_);break}}c=g.reverse().join(a.group),d=i.substring(0,r)+c+i.substring(u)}return d}function uL(i){return i===$k||i===fE}function to(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e=r-String(i).length,n=i;if(e>0){var a=new Array(e+1).join("0");n=t?i+a:a+i}return n}function qk(i,r){var t=i,e=r||0;return t=t.toString().split("e"),t=(t=Math.round(Number(t[0]+"e"+(t[1]?Number(t[1])+e:e)))).toString().split("e"),(t=Number(t[0]+"e"+(t[1]?Number(t[1])-e:-e))).toFixed(Math.min(e,20))}var W4e=/0+$/;function Z4e(i,r,t){var e=t.numbers.symbols,n=r.style,a=uL(n);if(n===WQ)return(void 0!==r.minimumFractionDigits?i.toExponential(r.minimumFractionDigits):i.toExponential()).replace(Zd,e.decimal);var l,s=i;a&&(r.value=s,l=oJ(t,r)),n===Ug&&(s*=100,l=e.percentSign);var u=function $4e(i){var a,r=i.minimumFractionDigits,t=i.maximumFractionDigits,e=i.style,n=uL(e);return n&&(a=function L4e(i){var r=2,t=2,e=((zi.supplemental.currencyData||{}).fractions||{})[i];return e&&e._digits&&(t=r=parseInt(e._digits,10)),{minimumFractionDigits:r,maximumFractionDigits:t}}(i.currency)),void 0===r&&(r=n?a.minimumFractionDigits:0),void 0===t&&(t=e===Ug?Math.max(r,0):n?Math.max(r,a.maximumFractionDigits):Math.max(r,3)),{minimumFractionDigits:r,maximumFractionDigits:t}}(r),c=u.minimumFractionDigits,h=(s=qk(s,u.maximumFractionDigits))<0,f=aJ(i),g=s.split(Zd),_=g[0],C=to(g[1]?g[1].replace(W4e,""):"",c,!0);h&&(_=_.substring(1)),r.minimumIntegerDigits&&(_=to(_,r.minimumIntegerDigits));var E,w=!1!==r.useGrouping?sJ(_,0,_.length,r,t):_;if(C&&(w+=e.decimal+C),a&&"name"===r.currencyDisplay)E=function X4e(i,r){var t=i.numbers.currency,e=1!==r?t["unitPattern-count-other"]:t["unitPattern-count-one"];return r<0&&(e=e.replace(Xd,"-".concat(Xd))),e}(t,i);else{var M=r.patterns;E=h||f?M[1]||"-"+M[0]:M[0]}if(E===Xd&&!h)return w;var R=function q4e(i,r,t){for(var e="",n=0,a=r.length;n-1||r.indexOf('"')>-1||r.indexOf("\\")>-1){var t=i.literals=[];i.format=r.replace(Y4e,function(e){var n=e.charAt(0).replace("\\",""),a=e.slice(1).replace(n,"");return t.push(a),"__??__"})}}var J4e=/(\.(?:[0-9]*[1-9])?)0+$/g,eKe=/\.$/,tKe=/\,/g;function dJ(i,r,t){return-1===i&&-1!==r?r:-1!==i&&-1===r?i:t?Math.min(i,r):Math.max(i,r)}function dKe(i,r,t){var e={negative:i<0,number:Math.abs(i),negativeZero:aJ(i),format:r};return function aKe(i){var r=i.number,t=i.format;if(t=t.split(";"),(i.negative||i.negativeZero)&&t[1])t=t[1],i.hasNegativeFormat=!0;else if(0===r){var e=t[2];t=e||t[0],e&&function rKe(i){return-1===i.indexOf("#")&&-1===i.indexOf("0")}(e)&&(i.constant=e)}else t=t[0];i.format=t}(e),e.constant?e.constant:(cJ(e),uJ(e,t),function oKe(i){i.hasGroup=i.format.indexOf(",")>-1,i.hasGroup&&(i.format=i.format.replace(tKe,""))}(e),function iKe(i){var r=i.number,t=i.format,e=t.indexOf(Zd);if(-1!==e){var n=t.lastIndexOf("0")-e,a=t.lastIndexOf("#")-e,o=n>-1,s=a>-1,l=r.toString().split("e"),u=(l=(l=l[1]?qk(r,Math.abs(l[1])):l[0]).split(Zd)[1]||"").length,c=-1;o||s?o&&n>a?u=n:a>n&&(s&&u>a?u=a:o&&u-1&&(r=qk(r,u),c>-1&&(r=function nKe(i,r){var t;return t=0===r?J4e:new RegExp("(\\.[0-9]{".concat(r,"}[1-9]*)0+$"),"g"),i.replace(t,"$1").replace(eKe,"")}(r,c)))}else r=qk(r);i.negative&&-1*r>=0&&!i.negativeZero&&(i.negative=!1),i.number=r,i.decimalIndex=e}(e),function sKe(i){var r=i.format,t=r.indexOf("#"),e=r.indexOf("0"),n=dJ(t,e,!0),a=dJ(t=r.lastIndexOf("#"),e=r.lastIndexOf("0"));n===r.length&&(a=n),i.start=n,i.end=a,i.lastZeroIndex=e}(e),function cKe(i,r){var t=i.number;return-1!==i.start&&(t=function uKe(i,r){var t=i.start,e=i.end,n=i.negative,a=i.negativeZero,o=i.format,s=i.decimalIndex,l=i.lastZeroIndex,u=i.hasNegativeFormat,c=i.hasGroup,d=i.number,h=d.toString().split(Zd),f=o.length,g=h[0],_=h[1]||"",C=g.length,w="";d=o.substring(0,t),(n||a)&&!u&&(d+="-");for(var E=t;E-1&&(d+=g,E=s),s===E){d+=(_?r.numbers.symbols.decimal:"")+_,E+=e-s+1;continue}"0"===M?(d+=M,w=M):"#"===M&&(d+=w)}return c&&(d=sJ(d,t+(n&&!u?1:0),Math.max(e,C+t),r.numbers.decimal,r)),e>=t&&(d+=o.substring(e+1)),d}(i,r),t=function lKe(i,r,t){var e=i;if(r===$k||r===Ug){e="";for(var n=0,a=i.length;n1&&void 0!==arguments[1]?arguments[1]:Xd,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hg;if(null==i)return"";if(!isFinite(i))return String(i);var a,e=Gf(t),n=hJ(r);if(n){var o=n.style||tL;a=Z4e(i,Object.assign({},e.numbers[o],n),e)}else a=dKe(i,r,e);return a}function cL(i){return"number"==typeof i}var vKe=/[eE][\-+]?[0-9]+/,vJ=/\u00A0/g;function pJ(i,r){if(r.length>1){var t=(r[1]||"").replace("$","").split(Xd);if(i.indexOf(t[0])>-1&&i.indexOf(t[1])>-1)return i.replace(t[0],"").replace(t[1],"")}}function pKe(i,r,t){var o,e=hJ(t)||{},n=uL(e.style),a=i,s=e.currency||iJ(r,n);if(s){var l=function N4e(i,r){var e=nJ(i,r,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]);if(e){if(!e.displays){var n=[r];for(var a in e)n.push(e[a]);n.sort(O4e),e.displays=n}return e.displays}}(r,s,n);if(l)for(var u=0;ue&&(e=u,n=s,a=r[o])}a=a.replace("v","z");for(var _=0;_0){var a=i.substr(0,e),o=i.substr(e);n=dL(r.calendar.dateTimeFormats.short,t[o]||vL(mE(o),t),t[a]||vL(mE(a),t))}else n=vL(mE(i),t);return function xKe(i,r,t){jg[t]||(jg[t]={}),jg[t][i]=r}(i,n,r.name),n}(n,r))}return e||(e=t.patterns.d),e}function yJ(i){var r;return i<=3?r="abbreviated":4===i?r="wide":5===i?r="narrow":6===i&&(r="short"),r}function Al(i,r,t,e,n){return JQ(i,{type:r,nameType:yJ(t),standAlone:e,lower:n})}function kJ(i){return"function"==typeof i}function gL(i){return Boolean(i)&&kJ(i.getTime)&&kJ(i.getMonth)}var _E="hour",yE="zone",mL="weekday",bJ="quarter",OKe={G:"era",y:"year",q:bJ,Q:bJ,M:"month",L:"month",d:"day",E:mL,c:mL,e:mL,h:_E,H:_E,k:_E,K:_E,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:yE,X:yE,z:yE,Z:yE},Yk=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function SJ(i,r,t,e){return r<=2?to(i+1,r):Al(t,"months",r,e)[i]}function wJ(i,r,t,e){var n=Math.floor(i.getMonth()/3);return r<3?n+1:Al(t,"quarters",r,e)[n]}function kE(i,r,t){var e=t.shortHours,n=t.optionalMinutes,a=t.separator,o=t.localizedName,s=t.zZeroOffset,l=i.getTimezoneOffset()/60;if(0===l&&s)return"Z";var u=l<=0?"+":"-",c=Math.abs(l).toString().split("."),d=c[1]||0,h=u+(e?c[0]:to(c[0],2));return(d||!n)&&(h+=(a?":":"")+to(d,2)),o&&(h=dL(0===l?r.calendar.gmtZeroFormat:r.calendar.gmtFormat,h)),h}function DJ(i,r,t,e){return r<3?function IKe(i,r,t){var e=rJ(t);return(i2&&void 0!==arguments[2]?arguments[2]:Hg;if(!gL(i))return null==i?"":i;var e=Gf(t),n=pL(r,e);return n.replace(Yk,function(a){var o=a.length;return a.includes("'")||a.includes('"')?a.slice(1,o-1):er[a[0]](i,o,e)})}function TJ(i,r,t){var e=i.getTimezoneOffset(),n=new Date(i.getTime()+6e4*(r-t)),a=n.getTimezoneOffset();return new Date(n.getTime()+6e4*(a-e))}er.d=function(i,r){return to(i.getDate(),r)},er.E=function(i,r,t){return Al(t,"days",r)[i.getDay()]},er.M=function(i,r,t){return SJ(i.getMonth(),r,t,!1)},er.L=function(i,r,t){return SJ(i.getMonth(),r,t,!0)},er.y=function(i,r){var t=i.getFullYear();return 2===r&&(t%=100),to(t,r)},er.h=function(i,r){return to(i.getHours()%12||12,r)},er.H=function(i,r){return to(i.getHours(),r)},er.k=function(i,r){return to(i.getHours()||24,r)},er.K=function(i,r){return to(i.getHours()%12,r)},er.m=function(i,r){return to(i.getMinutes(),r)},er.s=function(i,r){return to(i.getSeconds(),r)},er.S=function(i,r){var t=i.getMilliseconds();return 0!==t?to(String(t/1e3).split(".")[1].substr(0,r),r,!0):to("",r)},er.a=function(i,r,t){return Al(t,"dayPeriods",r)[i.getHours()<12?"am":"pm"]},er.z=function(i,r,t){return kE(i,t,{shortHours:r<4,optionalMinutes:r<4,separator:!0,localizedName:!0})},er.Z=function(i,r,t){return kE(i,t,{separator:r>3,localizedName:4===r,zZeroOffset:5===r})},er.x=function(i,r,t){return kE(i,t,{optionalMinutes:1===r,separator:3===r||5===r})},er.X=function(i,r,t){return kE(i,t,{optionalMinutes:1===r,separator:3===r||5===r,zZeroOffset:!0})},er.G=function(i,r,t){var e=i.getFullYear()>=0?1:0;return Al(t,"eras",r)[e]},er.e=DJ,er.c=function(i,r,t){return DJ(i,r,t,!0)},er.q=function(i,r,t){return wJ(i,r,t,!0)},er.Q=wJ;var FKe=/([+|\-]\d{1,2})(:?)(\d{2})?/,LKe=/^\/Date\((.*?)\)\/$/,PKe=/[+-]\d*/,BKe={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},VKe=/\d+/,GKe=/^ */,UKe=/ *$/,zKe=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],xJ=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Ks(i,r,t){return!(i>=r&&i<=t)}function ia(i,r){for(var t=r.format,e=r.idx,n=0;t[e]===i;)n++,e++;return n>0&&(e-=1),r.idx=e,n}function mu(i,r){var t=i?BKe[i]||new RegExp("^\\d{1,"+i+"}"):VKe,e=r.value.substr(r.valueIdx,i).match(t);return e?(r.valueIdx+=(e=e[0]).length,parseInt(e,10)):null}function Uf(i,r,t){for(var a,o,u,e=0,n=i.length,s=0,l=0;es&&(s=o,l=e);return s?(r.valueIdx+=s,l+1):null}function _L(i){var r=!1;return i.value.charAt(i.valueIdx)===i.format[i.idx]&&(i.valueIdx++,r=!0),r}function CE(i,r,t){var e=t.shortHours,n=t.noSeparator,a=t.optionalMinutes,o=t.localizedName,s=t.zLiteral;if(i.UTC=!0,s&&"Z"===i.value.charAt(i.valueIdx))return i.valueIdx++,!1;if(o&&!Uf(function KKe(i){var r=i.gmtFormat,t=i.gmtZeroFormat;if(!r)throw Tl.NoGMTInfo.error();return[r.replace("{0}","").toLowerCase(),t.replace("{0}","").toLowerCase()]}(r.calendar),i,!0))return!0;var l=FKe.exec(i.value.substr(i.valueIdx,6));if(!l)return!o;var u=l[1],c=l[3],d=parseInt(u,10),h=l[2],f=parseInt(c,10);if(isNaN(d)||!e&&3!==u.length||!a&&isNaN(f)||n&&h||(isNaN(f)&&(f=null),Ks(d,-12,13)||f&&Ks(f,0,59)))return!0;i.valueIdx+=l[0].length,i.hoursOffset=d,i.minutesOffset=f}function MJ(i,r,t){var e=ia(i,r),n=Al(t,"months",e,"L"===i,!0),a=e<3?mu(2,r):Uf(n,r,!0);if(null===a||Ks(a,1,12))return!0;r.month=a-1}function RJ(i,r,t){var e=ia(i,r),n=Al(t,"days",e,"c"===i,!0),a=e<3?mu(1,r):Uf(n,r,!0);if(!a&&0!==a||Ks(a,1,7))return!0}var dr={};function WKe(i,r){var t=GKe.exec(r)[0],e=UKe.exec(r)[0];return"".concat(t).concat(i).concat(e)}function $Ke(i,r,t){for(var e=pL(r,t).split(""),n={format:e,idx:0,value:WKe(i,r),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},a=e.length,o=!1;n.idx2029&&(t-=100)}i.year=t},dr.h=function(i){ia("h",i);var r=mu(2,i);if(12===r&&(r=0),null===r||Ks(r,0,11))return!0;i.hours=r},dr.K=function(i){ia("K",i);var r=mu(2,i);if(null===r||Ks(r,0,11))return!0;i.hours=r},dr.a=function(i,r){var e=Al(r,"dayPeriods",ia("a",i),!1,!0),n=Uf([e.pm],i,!0);if(!n&&!Uf([e.am],i,!0))return!0;i.pmHour=n},dr.H=function(i){ia("H",i);var r=mu(2,i);if(null===r||Ks(r,0,23))return!0;i.hours=r},dr.k=function(i){ia("k",i);var r=mu(2,i);if(null===r||Ks(r,1,24))return!0;i.hours=24===r?0:r},dr.m=function(i){ia("m",i);var r=mu(2,i);if(null===r||Ks(r,0,59))return!0;i.minutes=r},dr.s=function(i){ia("s",i);var r=mu(2,i);if(null===r||Ks(r,0,59))return!0;i.seconds=r},dr.S=function(i){var r=ia("S",i),t=i.value.substr(i.valueIdx,r),e=null;if(isNaN(parseInt(t,10))||(e=qk(e=parseFloat("0."+t,10),3),e*=1e3,i.valueIdx+=r),null===e||Ks(e,0,999))return!0;i.milliseconds=e},dr.z=function(i,r){var e=ia("z",i)<4,n=CE(i,r,{shortHours:e,optionalMinutes:e,localizedName:!0});if(n)return n},dr.Z=function(i,r){var t=ia("Z",i),e=CE(i,r,{noSeparator:t<4,zLiteral:5===t,localizedName:4===t});if(e)return e},dr.x=function(i,r){var t=ia("x",i),e=CE(i,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t});if(e)return e},dr.X=function(i,r){var t=ia("X",i),e=CE(i,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t,zLiteral:!0});if(e)return e},dr.G=function(i,r){var e=Al(r,"eras",ia("G",i),!1,!0);if(null===Uf([e[0],e[1]],i,!0))return!0},dr.e=function(i,r){return RJ("e",i,r)},dr.c=function(i,r){return RJ("c",i,r)};var QKe={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},OJ="literal";function yL(i,r){var t=i[i.length-1];t&&t.type===OJ?t.pattern+=r:i.push({type:OJ,pattern:r})}function JKe(i){return"h"===i||"K"===i}var t6e=/\{(\d+)(:[^\}]+)?\}/g;function kL(i,r,t){if(r){if(gL(i))return EJ(i,r,t);if(cL(i))return fJ(i,r,t)}return null!=i?i:""}var i6e={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440833,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Uc="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",IJ={NoCurrency:"Solution: ".concat(Uc,"#toc-no-currency"),NoCurrencyDisplay:"Solution: ".concat(Uc,"#toc-no-currency-display"),NoCurrencyRegion:"Solution: ".concat(Uc,"#toc-no-currency-region"),NoDateFieldNames:"Solution: ".concat(Uc,"#toc-no-date-filed-names"),NoFirstDay:"Solution: ".concat(Uc,"#toc-no-first-day"),NoGMTInfo:"Solution: ".concat(Uc,"#toc-no-gmt-info"),NoLocale:"Solution: ".concat(Uc,"#toc-no-locale"),NoValidCurrency:"Solution: ".concat(Uc,"#toc-no-valid-currency"),NoWeekData:"Solution: ".concat(Uc,"#toc-no-week-data")};function NJ(i){var r=i.message,t=IJ[Object.keys(IJ).filter(function(e){return 0===r.indexOf(e)})[0]];return t?"".concat(r," ").concat(t):r}function ts(i){return function(){try{for(var r=arguments.length,t=new Array(r),e=0;e1&&void 0!==arguments[1]?arguments[1]:Hg,t=Gf(r),e=t.calendar.dateFields;if(!e)throw Tl.NoDateFieldNames.error();var n=e[i.type]||{};return n[i.nameType]||n.wide}),o6e=ts(rJ),s6e=ts(function n6e(i,r,t){return i.replace(t6e,function(e,n,a){return kL(r[parseInt(n,10)],a?a.substring(1):"",t)})}),l6e=ts(EJ),u6e=ts(fJ),c6e=(ts(function C4e(){for(var i=arguments.length,r=0;r2&&void 0!==arguments[2]?arguments[2]:Hg;if(!i)return null;if(gL(i))return i;var e=String(i).trim(),n=XKe(e);if(n)return n;for(var a=Gf(t),o=r||ZKe(a.calendar),s=(o=Array.isArray(o)?o:[o]).length,l=0;l1&&void 0!==arguments[1]?arguments[1]:Hg,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!i&&0!==i)return null;if(cL(i))return i;var s,e=Gf(r),n=e.numbers.symbols,a=i.toString(),o=t||{};if(hE(t)&&(cJ(o={format:t}),a=gKe(a,o),uJ(o,e)),(o.style===Ug||a.indexOf(n.percentSign)>-1)&&(a=a.replace(n.percentSign,""),s=!0),vKe.test(a))return a=parseFloat(a.replace(n.decimal,Zd)),isNaN(a)?null:a;var l=pKe(a,e,o),u=l.negative,c=l.number,d=(a=String(c).trim()).indexOf("-");if(d>0)return null;var h=d>-1;return h=void 0!==u?u:h,a=a.replace("-","").replace(vJ," ").split(n.group.replace(vJ," ")).join("").replace(n.decimal,Zd),a=parseFloat(a),isNaN(a)?a=null:h&&(a*=-1),a&&s&&(a/=100),a}),f6e=ts(function e6e(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hg,t=Gf(r),e=pL(i,t),n=[],a=Yk.lastIndex=0,o=Yk.exec(e);o;){var s=o[0];if(a=h&&(c.names={type:d.type,nameType:yJ(f),standAlone:d.standAlone===l})}n.push(c)}a=Yk.lastIndex,o=Yk.exec(e)}return a1?o-1:0),l=1;l1){var l=e[0],u=e[1];s=Math.sqrt(Math.pow(l.pageX-u.pageX,2)+Math.pow(l.pageY-u.pageY,2))}return{distance:s,event:r.srcEvent,preventDefault:function(){r.preventDefault()},target:r.target,touches:e.map(G6e),type:r.type,x:{delta:t?a-t.x.location:0,initialDelta:r.deltaX,location:a,startLocation:a-r.deltaX},y:{delta:t?o-t.y.location:0,initialDelta:r.deltaY,location:o,startLocation:o-r.deltaY}}}(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](n),n}},{key:"bind",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.unbind(),this.eventHandlers=t;for(var e=0;e0;)a=a[s]=a[s]||{},s=o.shift();a[s]=n}},{key:"next",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.source.next(e.store)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),$g=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.configurationService=t,this.collectionService=e,this.options={},this.subscription=t.onFastChange$.subscribe(function(a){n.options=a,n.notify()})}return v(r,[{key:"ngOnChanges",value:function(e){var n=this.configurationService.store;CL(e,n),this.configurationService.push(n)}},{key:"notifyChanges",value:function(e){this.ngOnChanges(bL(e))}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"notify",value:function(){!this.collectionService||this.collectionService.notify(new q6e(this,this.options))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275dir=X({type:i,features:[Ie]}),i}(),ft=function(){var i=function(){function r(t,e){if(p(this,r),this.configKey=t,this.configurationService=e,this.store={},void 0===t)throw new Error("Configuration key not set")}return v(r,[{key:"ngOnDestroy",value:function(){this.store=void 0,this.notify()}},{key:"ngOnChanges",value:function(e){CL(e,this.store),this.notify()}},{key:"notifyChanges",value:function(e){this.ngOnChanges(bL(e))}},{key:"markAsVisible",value:function(){this.store.visible=!0,this.notify()}},{key:"notify",value:function(){this.configurationService.notify(new SL(this.configKey,this.store))}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275dir=X({type:i,features:[Ie]}),i}(),wL=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"tooltip",n)).configurationService=n,a.markAsVisible(),a}return v(e,[{key:"seriesTooltipTemplateRef",get:function(){return this.seriesTooltipTemplate}}]),e}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-item-tooltip"]],contentQueries:function(t,e,n){var a;1&t&&he(n,$e,5),2&t&&P(a=B())&&(e.seriesTooltipTemplate=a.first)},inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),GJ=function(r){return void 0!==r&&!r},zf=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).configurationService=n,o.collectionService=a,o}return v(e,[{key:"toggleVisibility",value:function(){this.options.visible=GJ(this.options.visible),this.notify()}},{key:"togglePointVisibility",value:function(a){var o=this.options.pointVisibility=this.options.pointVisibility||{};o[a]=GJ(o[a]),this.notify()}},{key:"seriesTooltipTemplateRef",get:function(){if(this.seriesTooltip)return this.seriesTooltip.seriesTooltipTemplateRef}}]),e}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,wL,5),2&t&&P(a=B())&&(e.seriesTooltip=a.first)},inputs:{aggregate:"aggregate",autoFit:"autoFit",axis:"axis",border:"border",categoryAxis:"categoryAxis",categoryField:"categoryField",closeField:"closeField",color:"color",colorField:"colorField",connectors:"connectors",currentField:"currentField",dashType:"dashType",data:"data",downColor:"downColor",downColorField:"downColorField",dynamicHeight:"dynamicHeight",dynamicSlope:"dynamicSlope",errorHighField:"errorHighField",errorLowField:"errorLowField",explodeField:"explodeField",field:"field",fromField:"fromField",gap:"gap",highField:"highField",holeSize:"holeSize",line:"line",lowField:"lowField",lowerField:"lowerField",margin:"margin",maxSize:"maxSize",mean:"mean",meanField:"meanField",median:"median",medianField:"medianField",minSize:"minSize",missingValues:"missingValues",name:"name",neckRatio:"neckRatio",negativeColor:"negativeColor",negativeValues:"negativeValues",noteTextField:"noteTextField",opacity:"opacity",openField:"openField",outliersField:"outliersField",overlay:"overlay",padding:"padding",q1Field:"q1Field",q3Field:"q3Field",segmentSpacing:"segmentSpacing",size:"size",sizeField:"sizeField",spacing:"spacing",stack:"stack",startAngle:"startAngle",style:"style",summaryField:"summaryField",target:"target",toField:"toField",type:"type",upperField:"upperField",visible:"visible",visibleInLegend:"visibleInLegend",visibleInLegendField:"visibleInLegendField",visual:"visual",width:"width",whiskers:"whiskers",xAxis:"xAxis",xErrorHighField:"xErrorHighField",xErrorLowField:"xErrorLowField",xField:"xField",yAxis:"yAxis",yErrorHighField:"yErrorHighField",yErrorLowField:"yErrorLowField",yField:"yField",zIndex:"zIndex",errorBars:"errorBars",extremes:"extremes",highlight:"highlight",labels:"labels",markers:"markers",notes:"notes",outliers:"outliers",tooltip:"tooltip"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),Z6e={horizontal:"fit",vertical:"fit"},UJ=function(){var i=function(){function r(t,e){p(this,r),this.popupService=t,this.localizationService=e,this.style={},this.popupRef=null}return v(r,[{key:"active",get:function(){return null!==this.popupRef}},{key:"show",value:function(e){var n=e.anchor.align,a=this.position(e.anchor.point);if(this.style=e.style,this.popupRef){var o=this.popupRef.popup.instance;o.offset=a,o.popupAlign=n}else this.popupRef=this.popupService.open(Object.assign({offset:a,popupAlign:n,animate:this.animate,content:this.templateRef,collision:Z6e,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit()}},{key:"hide",value:function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)}},{key:"onInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.hide()}},{key:"position",value:function(e){if(!this.popupSettings||!this.popupSettings.appendTo)return e;var n=this.popupSettings.appendTo.element.nativeElement;console.log("appendTo",n);var a=n.getBoundingClientRect(),o=this.scrollOffset(n);return{left:e.left-a.left-o.scrollLeft,top:e.top-a.top-o.scrollTop}}},{key:"scrollOffset",value:function(e){if(!e)return null;for(var n=e.scrollLeft,a=e.scrollTop,o=e.parentElement;o;)n+=o.scrollLeft,a+=o.scrollTop,o=o.parentElement;return{scrollLeft:n,scrollTop:a}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Cr),m(Y))},i.\u0275dir=X({type:i}),i}();function zJ(){if(Ze())return new _e(document.body)}var DL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).animate=!1,o}return v(e,[{key:"show",value:function(a){$(q(e.prototype),"show",this).call(this,a),this.value=a.value,this.popupRef.popup.changeDetectorRef.detectChanges()}}]),e}(UJ);return i.\u0275fac=function(t){return new(t||i)(m(Cr),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-crosshair-tooltip"]],viewQuery:function(t,e){var n;1&t&&ge(FJ,7),2&t&&P(n=B())&&(e.templateRef=n.first)},inputs:{key:"key",popupSettings:"popupSettings"},features:[de([Cr,{provide:xI,useFactory:zJ}]),j],decls:2,vars:0,consts:[["content",""],[1,"k-chart-tooltip","k-chart-crosshair-tooltip",3,"ngStyle"]],template:function(t,e){1&t&&T(0,b6e,2,2,"ng-template",null,0,$n)},directives:[Gi],encapsulation:2}),i}(),HJ=["categoryAxis","valueAxis","xAxis","yAxis"],Qk=function(){var i=function(){function r(){p(this,r),this.tooltipKeys=[],this.tooltipsMap={}}return v(r,[{key:"show",value:function(e){for(var n=this.crossahirTooltipComponents.toArray(),a=e.axisName,o=e.axisIndex,s=0;s0}},{key:"createCrosshairTooltips",value:function(e){var n=this.mapTooltips(e),a=this.tooltipsMap;for(var o in a)n[o]||(this.removeTooltip(o),delete a[o]);for(var s in n)a[s]||(a[s]=n[s],this.tooltipKeys.push(s))}},{key:"removeTooltip",value:function(e){for(var n=this.tooltipKeys,a=0;a0,l=a.series.length>1,u=1;return s&&u++,l&&u++,{category:a.category,categoryText:a.categoryText,colorMarker:l,colspan:u,nameColumn:s,points:this.wrapPoints(a.points,a.format)}}},{key:"pointTemplateRef",value:function(a){return this.templateService.getTemplate(a.series.index)||this.defaultSeriesTooltipTemplate.templateRef}},{key:"wrapPoints",value:function(a,o){for(var s=[],l=0;l
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n
\n\n
\n
\n '.concat(function(){for(var r='\n
\n
\n
\n
\n
\n
\n ',t=0;t<30;t++)r+='\n
');return r}(),"\n
\n"),document.body.appendChild(a)}},{key:"destroyElement",value:function(){this.element&&(document.body.removeChild(this.element),this.element=void 0)}},{key:"setStyle",value:function(a,o){this.set(a,o)}},{key:"setColors",value:function(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color");var a=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(a)||(this.setStyle("seriesDefaults.area.opacity",a),this.setStyle("seriesDefaults.radarArea.opacity",a),this.setStyle("seriesDefaults.verticalArea.opacity",a),this.setStyle("seriesDefaults.labels.opacity",a)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")}},{key:"setInactiveOpacity",value:function(a,o){var s=this,l=parseFloat(this.queryStyle(o).opacity);!isNaN(l)&&l<1&&a.forEach(function(u){return s.setStyle("seriesDefaults.".concat(u,".highlight.inactiveOpacity"),l)})}},{key:"setFonts",value:function(){var a=wE(this.queryStyle("chart-font")),o=wE(this.queryStyle("chart-title-font")),s=wE(this.queryStyle("chart-pane-title-font")),l=wE(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",l),this.setStyle("axisDefaults.notes.label.font",a),this.setStyle("axisDefaults.title.font",a),this.setStyle("legend.labels.font",a),this.setStyle("seriesDefaults.labels.font",l),this.setStyle("seriesDefaults.notes.label.font",a),this.setStyle("title.font",o),this.setStyle("paneDefaults.title.font",s)}},{key:"setSeriesColors",value:function(){var a=this.element,o=[].slice.call(a.querySelectorAll(".k-var--series div")),s=$J(a.querySelector(".k-var--series-unset")),l=o.reduce(function(u,c){var d=function(r){var t=r.match(/series-([a-z])$/);if(null!==t)return function(r){return r.toLowerCase().charCodeAt(0)-"a".charCodeAt(0)}(t[1]);var e=r.split("--series-")[1];return parseInt(e,10)-1}(c.className),h=$J(c);return h!==s&&(u[d]=h),u},[]);this.setStyle("seriesColors",l)}},{key:"mapColor",value:function(a,o){this.setStyle(a,this.queryColor(o))}},{key:"queryColor",value:function(a){return this.queryStyle(a).backgroundColor}},{key:"queryStyle",value:function(a){var o=this.element.querySelector(".k-var--".concat(a));return window.getComputedStyle(o)}}]),e}(we);return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function RL(i){return i.observers.length>0}var qg=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c){p(this,r),this.configurationService=t,this.themeService=e,this.element=n,this.intl=a,this.localizationService=o,this.ngZone=s,this.instanceEventService=l,this.changeDetector=u,this.renderer=c,this.axisLabelClick=new O,this.drag=new O,this.dragEnd=new O,this.dragStart=new O,this.legendItemHover=new O,this.legendItemLeave=new O,this.noteClick=new O,this.noteHover=new O,this.noteLeave=new O,this.paneRender=new O,this.plotAreaClick=new O,this.plotAreaHover=new O,this.plotAreaLeave=new O,this.render=new O,this.select=new O,this.selectEnd=new O,this.selectStart=new O,this.seriesClick=new O,this.seriesHover=new O,this.seriesOver=new O,this.seriesLeave=new O,this.zoom=new O,this.zoomEnd=new O,this.zoomStart=new O,this.legendItemClick=new O,this.resizeRateLimit=10,this.theme=null,this.suppressTransitions=!1,this.rtl=!1,this.hostClasses=["k-chart","k-widget"],jt(ML),this.themeService.loadTheme(),this.refreshWait()}return v(r,[{key:"ngOnInit",value:function(){var e=this;this.element&&(this.hostClasses.forEach(function(n){e.renderer.addClass(e.element.nativeElement,n)}),this.renderer.setStyle(this.element.nativeElement,"position","relative"))}},{key:"ngAfterViewInit",value:function(){var e=this;this.canRender&&this.ngZone.runOutsideAngular(function(){var n=e.renderer.listen(e.surfaceElement.nativeElement,"mouseleave",e.chartMouseleave.bind(e));e.domSubscriptions=function(){n()}}),this.setDirection(),this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))}},{key:"ngAfterViewChecked",value:function(){var e=this;this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(function(){e.resize()},0)})}},{key:"ngOnChanges",value:function(e){var n=this.configurationService.store;CL(e,n),n.popupSettings=null,this.configurationService.push(n)}},{key:"notifyChanges",value:function(e){this.ngOnChanges(bL(e))}},{key:"ngOnDestroy",value:function(){this.destroyed=!0,this.subscription&&this.subscription.unsubscribe(),this.domSubscriptions&&(this.domSubscriptions(),this.domSubscriptions=null),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.resizeTimeout),clearTimeout(this.redrawTimeout)}},{key:"createInstance",value:function(e,n){this.instance=new d2(e,this.options,this.theme,{intlService:this.intl,observer:n,rtl:this.rtl,sender:this})}},{key:"exportImage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return X5e(this.exportVisual(e),e)}},{key:"exportSVG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Y5e(this.exportVisual(e),e)}},{key:"exportVisual",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.instance.exportVisual(e)}},{key:"findAxisByName",value:function(e){if(this.instance)return this.instance.findAxisByName(e)}},{key:"findPaneByIndex",value:function(e){if(this.instance)return this.instance.findPaneByIndex(e)}},{key:"findPaneByName",value:function(e){if(this.instance)return this.instance.findPaneByName(e)}},{key:"getPlotArea",value:function(){if(this.instance)return this.instance.plotArea()}},{key:"toggleHighlight",value:function(e,n){this.instance&&this.instance.toggleHighlight(e,n)}},{key:"hideTooltip",value:function(){this.instance&&this.instance.hideTooltip()}},{key:"showTooltip",value:function(e){this.instance&&this.instance.showTooltip(e)}},{key:"init",value:function(){if(this.canRender){var e=this.surfaceElement.nativeElement,n=new J6e(this);this.createInstance(e,n)}}},{key:"resize",value:function(){this.instance&&this.instance.resize()}},{key:"onResize",value:function(e){this.autoResize&&this.resize()}},{key:"onLegendItemClick",value:function(e){var n=this;this.run(function(){var a=new Sje(e,n);if(n.legendItemClick.emit(a),!a.isDefaultPrevented()){var o=n.seriesComponents.toArray()[e.series.index];if(!o)return;void 0===e.pointIndex?o.toggleVisibility():o.togglePointVisibility(e.pointIndex),n.suppressTransitions=!0}},RL(this.legendItemClick),this.seriesComponents.length>0)}},{key:"onInit",value:function(e){this.instance=e.sender}},{key:"onRender",value:function(e){var n=this,a=this.getDonutCenterStyle();this.run(function(){var o=new jJ(e,n);n.surface=e.sender.surface,n.render.emit(o),n.donutCenterStyle=a},RL(this.render),this.donutCenterStyle!==a)}},{key:"onShowTooltip",value:function(e){var n=this;this.run(function(){e.crosshair?n.crossahirTooltips.show(e):n.tooltipInstance.show(e)},!e.crosshair,!0)}},{key:"onHideTooltip",value:function(e){e.crosshair?this.crossahirTooltips.active&&(this.crossahirTooltips.hide(),this.detectChanges()):this.tooltipInstance.active&&(this.tooltipInstance.hide(),this.detectChanges())}},{key:"trigger",value:function(e,n){if("resize"!==e){var a=this.activeEmitter(e);if(a){var o=this.instanceEventService.create(e,n,this);return this.run(function(){a.emit(o)}),o.isDefaultPrevented&&o.isDefaultPrevented()}}}},{key:"requiresHandlers",value:function(e){for(var n=0;n0}},{key:"activeEmitter",value:function(e){var n=this[e];if(n&&n.emit&&RL(n))return n}},{key:"getDonutCenterStyle",value:function(){if(this.instance&&this.options&&this.options.series){var e=this.options.series[0],n=this.instance._plotArea.charts;if(e&&"donut"===e.type&&n&&0!==n[0].points.length){var a=n[0].points[0],o=a.box.center(),s=a.sector.innerRadius,c=2*s;return{height:c+"px",left:o.x-s+"px",top:o.y-s+"px",width:c+"px"}}}}},{key:"refreshWait",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.subscription=zO(e.configurationService.onChange$,e.themeService.onChange$).pipe(At(function(n){e.options=n[0],e.theme=n[1]}),ff(VJ)).subscribe(function(){e.refresh()})})}},{key:"run",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;n?(a&&this.changeDetector.markForCheck(),this.ngZone.run(e)):(e(),a&&this.detectChanges())}},{key:"detectChanges",value:function(){this.destroyed||this.changeDetector.detectChanges()}},{key:"intlChange",value:function(){this.instance&&this.deferredRedraw()}},{key:"rtlChange",value:function(){this.instance&&this.rtl!==this.isRTL&&this.deferredRedraw()}},{key:"deferredRedraw",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){clearTimeout(e.redrawTimeout),e.redrawTimeout=setTimeout(function(){e.updateDirection(),e.instance.noTransitionsRedraw()},0)})}},{key:"updateDirection",value:function(){var e=this.isRTL;this.rtl!==e&&(this.setDirection(),this.instance&&this.instance.setDirection(e))}},{key:"setDirection",value:function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")}},{key:"isRTL",get:function(){return Boolean(this.localizationService.rtl)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(we),m(DE),m(_e),m(fi),m(Y),m(be),m(eC),m(nt),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,BJ,5),he(n,zf,5)),2&t&&(P(a=B())&&(e.donutCenterTemplate=a.first),P(a=B())&&(e.seriesComponents=a))},viewQuery:function(t,e){var n;1&t&&(ge(Jk,7),ge(Qk,7),ge(P6e,7)),2&t&&(P(n=B())&&(e.tooltipInstance=n.first),P(n=B())&&(e.crossahirTooltips=n.first),P(n=B())&&(e.surfaceElement=n.first))},inputs:{pannable:"pannable",renderAs:"renderAs",seriesColors:"seriesColors",title:"title",transitions:"transitions",zoomable:"zoomable",axisDefaults:"axisDefaults",categoryAxis:"categoryAxis",chartArea:"chartArea",legend:"legend",panes:"panes",paneDefaults:"paneDefaults",plotArea:"plotArea",series:"series",seriesDefaults:"seriesDefaults",tooltip:"tooltip",valueAxis:"valueAxis",xAxis:"xAxis",yAxis:"yAxis",resizeRateLimit:"resizeRateLimit",popupSettings:"popupSettings"},outputs:{axisLabelClick:"axisLabelClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",legendItemHover:"legendItemHover",legendItemLeave:"legendItemLeave",noteClick:"noteClick",noteHover:"noteHover",noteLeave:"noteLeave",paneRender:"paneRender",plotAreaClick:"plotAreaClick",plotAreaHover:"plotAreaHover",plotAreaLeave:"plotAreaLeave",render:"render",select:"select",selectEnd:"selectEnd",selectStart:"selectStart",seriesClick:"seriesClick",seriesHover:"seriesHover",seriesOver:"seriesOver",seriesLeave:"seriesLeave",zoom:"zoom",zoomEnd:"zoomEnd",zoomStart:"zoomStart",legendItemClick:"legendItemClick"},exportAs:["kendoChart"],features:[de([we,Hf,eC,Y,{provide:Et,useValue:"kendo.chart"}]),Ie],decls:6,vars:4,consts:[[1,"k-chart-surface"],["surface",""],[3,"popupSettings"],[3,"popupSettings","leave"],[3,"rateLimit","resize"],["class","k-chart-donut-center",3,"ngStyle",4,"ngIf"],[1,"k-chart-donut-center",3,"ngStyle"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(z(0,"div",0,1)(2,"kendo-chart-crosshair-tooltips-container",2),A(3,"kendo-chart-tooltip-popup",3),Q("leave",function(a){return e.tooltipMouseleave(a)}),x(),A(4,"kendo-resize-sensor",4),Q("resize",function(a){return e.onResize(a)}),x(),T(5,V6e,2,2,"div",5)),2&t&&(k(2),y("popupSettings",e.popupSettings),k(1),y("popupSettings",e.popupSettings),k(1),y("rateLimit",e.resizeRateLimit),k(1),y("ngIf",e.donutCenterStyle&&e.donutCenterTemplate))},directives:[Qk,Jk,Vr,qe,Gi,En],encapsulation:2,changeDetection:0}),i}(),Xg=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.configKey=t,this.configurationService=e,this.collectionService=n,this.items=[],this.subscription=n.onItemChange$.subscribe(function(o){return a.processChanges(o)})}return v(r,[{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"ngAfterContentInit",value:function(){var e=this;this.readItems(),this.children.changes.subscribe(function(){return e.readItems()})}},{key:"processChanges",value:function(e){if(this.children){var n=this.children.toArray().indexOf(e.sender);n<0||(this.items[n]=e.options,this.change())}}},{key:"readItems",value:function(){this.items=this.children.map(function(e){return e.options}),this.change()}},{key:"change",value:function(){this.configurationService.notify(new SL(this.configKey,0===this.items.length?void 0:this.items))}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275dir=X({type:i}),i}(),tC=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a)).configurationService=n,l.collectionService=a,l.notifyChanges({weekStartDay:o.firstDay(s)}),l}return v(e)}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr),m(fi),m(Ko))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-category-axis-item"]],inputs:{autoBaseUnitSteps:"autoBaseUnitSteps",axisCrossingValue:"axisCrossingValue",background:"background",baseUnit:"baseUnit",baseUnitStep:"baseUnitStep",categories:"categories",color:"color",justified:"justified",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",max:"max",maxDateGroups:"maxDateGroups",maxDivisions:"maxDivisions",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",name:"name",pane:"pane",plotBands:"plotBands",reverse:"reverse",roundToBaseUnit:"roundToBaseUnit",startAngle:"startAngle",type:"type",visible:"visible",weekStartDay:"weekStartDay",crosshair:"crosshair",labels:"labels",notes:"notes",select:"select",title:"title",rangeLabels:"rangeLabels"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),OL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,"categoryAxis",n,a)).configurationService=n,o.collectionService=a,o}return v(e)}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-category-axis"]],contentQueries:function(t,e,n){var a;1&t&&he(n,tC,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),tee=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"legend",n)).configurationService=n,a.markAsVisible(),a}return v(e)}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-legend"]],inputs:{align:"align",background:"background",border:"border",height:"height",labels:"labels",margin:"margin",offsetX:"offsetX",offsetY:"offsetY",orientation:"orientation",padding:"padding",position:"position",reverse:"reverse",visible:"visible",width:"width",markers:"markers",spacing:"spacing",inactiveItems:"inactiveItems",item:"item",title:"title"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),nC=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,"series",n,a)).configurationService=n,s.collectionService=a,s.tooltipTemplateService=o,s}return v(e,[{key:"ngAfterContentChecked",value:function(){this.readTooltipTemplates()}},{key:"readTooltipTemplates",value:function(){var a=this.children.map(function(o){return o.seriesTooltipTemplateRef});this.tooltipTemplateService.setSeriesTemplates(a)}}]),e}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr),m(Hf))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series"]],contentQueries:function(t,e,n){var a;1&t&&he(n,zf,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),FL=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"seriesDefaults",n)).configurationService=n,a}return v(e)}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-defaults"]],inputs:{border:"border",gap:"gap",highlight:"highlight",overlay:"overlay",spacing:"spacing",stack:"stack",type:"type",visual:"visual",labels:"labels",notes:"notes",tooltip:"tooltip"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),LL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,"tooltip",n)).configurationService=n,o.templateService=a,o.markAsVisible(),o}return v(e,[{key:"ngAfterContentChecked",value:function(){this.templateService.setTemplate(this.seriesTooltipTemplate?this.seriesTooltipTemplate.templateRef:null),this.templateService.setSharedTemplate(this.sharedTooltipTemplate?this.sharedTooltipTemplate.templateRef:null)}}]),e}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we),m(Hf))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-tooltip"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,bE,5),he(n,SE,5)),2&t&&(P(a=B())&&(e.seriesTooltipTemplate=a.first),P(a=B())&&(e.sharedTooltipTemplate=a.first))},inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",opacity:"opacity",padding:"padding",shared:"shared",visible:"visible"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),EE=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).configurationService=n,o.collectionService=a,o}return v(e)}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-value-axis-item"]],inputs:{axisCrossingValue:"axisCrossingValue",background:"background",color:"color",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",majorUnit:"majorUnit",max:"max",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",minorUnit:"minorUnit",name:"name",narrowRange:"narrowRange",pane:"pane",plotBands:"plotBands",reverse:"reverse",type:"type",visible:"visible",crosshair:"crosshair",labels:"labels",notes:"notes",title:"title"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),PL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,"valueAxis",n,a)).configurationService=n,o.collectionService=a,o}return v(e)}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-value-axis"]],contentQueries:function(t,e,n){var a;1&t&&he(n,EE,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),iC=(new Dt("configuration prefix"),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[DE],imports:[[bt,Fa,yo]]}),i}()),QWe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[iC,bt,Fa,yo],iC]}),i}(),JWe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[iC,bt,Fa,yo],iC]}),i}(),e7e=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[iC,JWe,QWe]}),i}(),rC=function(){return{style:"smooth"}},ka=function(){return{visible:!1}},VL=function(){return{step:4,skip:2,font:"10px sans-serif"}},t7e=function(r){return{margin:r}},n7e=function(){return{color:"#FFF"}},i7e=function(){return{from:0,to:100,color:"#35C473"}},r7e=function(r){return[r]},a7e=function(){return{color:"#35C473",opacity:.3}},o7e=function(){return{color:"#CC3458",opacity:.3}},s7e=function(){return{top:8}},l7e=function(r){return{rotation:"auto",margin:r}},u7e=function(){return{right:4}},c7e=function(r){return{step:2,skip:2,margin:r}},d7e=function(){return{step:2,skip:2,color:"#F0F2F2"}},h7e=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"months",set:function(e){this.baseUnit=e>3?"months":"weeks"}},{key:"closeRate",set:function(e){this.bulletData=[{target:70,current:Math.round(100*e)}]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-active-issues"]],inputs:{data:"data",active:"active",issues:"issues",months:"months",closeRate:"closeRate"},decls:83,vars:128,consts:[[1,"k-card"],[1,"k-card-header","m-0"],[1,"k-card-body"],[1,"row"],[1,"col-sm-12","col-lg-6","col-xl","active-issues"],[1,"comp-label"],[1,"issues-count"],[1,"issues-label"],[2,"height","80px"],["format","{0}%"],["type","column",3,"stack","gap","overlay"],["type","area","field","count","categoryField","date","aggregate","count",3,"line","color","data"],[3,"baseUnit","majorTicks","labels","majorGridLines","line"],[3,"visible","majorGridLines"],[1,"col-12","col-lg-6","col-xl","pb-4","text-danger","closed-issues"],["format","{0}"],[1,"col-12","col-lg-6","col-xl","pb-4","text-success","open-issues"],[1,"col-12","col-lg-6","col-xl","pb-4","close-rate"],[1,"m-0","small","text-uppercase","text-muted"],[2,"height","20px",3,"chartArea"],["type","bullet","currentField","current","targetField","target","color","#e91e63",3,"data","target"],[3,"plotBands","visible","majorGridLines"],[1,"col-12","all-issues"],[3,"type","stack","gap","overlay"],["field","count","categoryField","date","aggregate","count",3,"line","opacity","border","color","data"],[3,"baseUnit","majorTicks","line","majorGridLines","labels"],[3,"line","labels","majorGridLines"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"h2",1),te(2,"Active Issues"),x(),A(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),te(8),x(),A(9,"div",7),te(10,"Active issues"),x()(),A(11,"kendo-chart",8),z(12,"kendo-chart-tooltip",9)(13,"kendo-chart-series-defaults",10),A(14,"kendo-chart-series"),z(15,"kendo-chart-series-item",11),x(),A(16,"kendo-chart-category-axis"),z(17,"kendo-chart-category-axis-item",12),x(),A(18,"kendo-chart-value-axis"),z(19,"kendo-chart-value-axis-item",13),x()()(),A(20,"div",14)(21,"span",5)(22,"div",6),te(23),x(),A(24,"div",7),te(25,"Closed issues"),x()(),A(26,"kendo-chart",8),z(27,"kendo-chart-tooltip",15)(28,"kendo-chart-series-defaults",10),A(29,"kendo-chart-series"),z(30,"kendo-chart-series-item",11),x(),A(31,"kendo-chart-category-axis"),z(32,"kendo-chart-category-axis-item",12),x(),A(33,"kendo-chart-value-axis"),z(34,"kendo-chart-value-axis-item",13),x()()(),A(35,"div",16)(36,"span",5)(37,"div",6),te(38),x(),A(39,"div",7),te(40,"Open issues"),x()(),A(41,"kendo-chart",8),z(42,"kendo-chart-tooltip",15)(43,"kendo-chart-series-defaults",10),A(44,"kendo-chart-series"),z(45,"kendo-chart-series-item",11),x(),A(46,"kendo-chart-category-axis"),z(47,"kendo-chart-category-axis-item",12),x(),A(48,"kendo-chart-value-axis"),z(49,"kendo-chart-value-axis-item",13),x()()(),A(50,"div",17)(51,"span",5)(52,"div",6),te(53),Wa(54,"percent"),x(),A(55,"div",7),te(56,"Close rate"),x()(),A(57,"p",18),te(58),Wa(59,"percent"),Wa(60,"date"),x(),A(61,"p",18),te(62),Wa(63,"percent"),Wa(64,"date"),x(),A(65,"kendo-chart",19),z(66,"kendo-chart-tooltip",15),A(67,"kendo-chart-series"),z(68,"kendo-chart-series-item",20),x(),A(69,"kendo-chart-value-axis"),z(70,"kendo-chart-value-axis-item",21),x()()()(),A(71,"div",3)(72,"div",22)(73,"kendo-chart"),z(74,"kendo-chart-tooltip",15)(75,"kendo-chart-series-defaults",23),A(76,"kendo-chart-series"),z(77,"kendo-chart-series-item",24)(78,"kendo-chart-series-item",24),x(),A(79,"kendo-chart-category-axis"),z(80,"kendo-chart-category-axis-item",25),x(),A(81,"kendo-chart-value-axis"),z(82,"kendo-chart-value-axis-item",26),x()()()()()()),2&t&&(k(8),at(e.issues.open+e.issues.closed),k(5),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("line",wt(88,rC))("color","#888")("data",e.active),k(2),y("baseUnit",e.baseUnit)("majorTicks",wt(89,ka))("labels",wt(90,VL))("majorGridLines",wt(91,ka))("line",wt(92,ka)),k(2),y("visible",!1)("majorGridLines",wt(93,ka)),k(4),at(e.issues.closed),k(5),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("line",wt(94,rC))("color","#e91e63")("data",e.data.closed),k(2),y("baseUnit",e.baseUnit)("majorTicks",wt(95,ka))("labels",wt(96,VL))("majorGridLines",wt(97,ka))("line",wt(98,ka)),k(2),y("visible",!1)("majorGridLines",wt(99,ka)),k(4),at(e.issues.open),k(5),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("line",wt(100,rC))("color","#27c46d")("data",e.data.open),k(2),y("baseUnit",e.baseUnit)("majorTicks",wt(101,ka))("labels",wt(102,VL))("majorGridLines",wt(103,ka))("line",wt(104,ka)),k(2),y("visible",!1)("majorGridLines",wt(105,ka)),k(4),at(rw(54,75,e.issues.closeRate.average,"2.0-0")),k(5),Jl(" Highest: ",rw(59,78,e.issues.closeRate.highest.close_rate,"2.0-0")," on ",fc(60,81,e.issues.closeRate.highest.created_at)," "),k(4),Jl(" Lowest: ",rw(63,83,e.issues.closeRate.lowest.close_rate,"2.0-0")," on ",fc(64,86,e.issues.closeRate.lowest.created_at)," "),k(3),y("chartArea",ot(106,t7e,-20)),k(3),y("data",e.bulletData)("target",wt(108,n7e)),k(2),y("plotBands",ot(110,r7e,wt(109,i7e)))("visible",!1)("majorGridLines",wt(112,ka)),k(5),y("type","area")("stack",!0)("gap",.06)("overlay",!1),k(2),y("line",wt(113,rC))("opacity",.3)("border",wt(114,a7e))("color","#35C473")("data",e.data.open),k(1),y("line",wt(115,rC))("opacity",.3)("border",wt(116,o7e))("color","#CC3458")("data",e.data.closed),k(2),y("baseUnit",e.baseUnit)("majorTicks",wt(117,ka))("line",wt(118,ka))("majorGridLines",wt(119,ka))("labels",ot(121,l7e,wt(120,s7e))),k(2),y("line",wt(123,ka))("labels",ot(125,c7e,wt(124,u7e)))("majorGridLines",wt(127,d7e)))},directives:[qg,LL,FL,nC,zf,OL,tC,PL,EE],pipes:[Y4,Cw],encapsulation:2}),i}(),f7e=function(){var i=function(){function r(){p(this,r),this.hoverColor="rgb(255, 99, 88)"}return v(r,[{key:"data",set:function(e){var n=this;this.issues=e,e.forEach(function(a){"SEV: LOW"===a.type&&n.setDonutLegend({value:a.value,category:a.type,point:{options:{color:n.hoverColor}}})})}},{key:"className",get:function(){return"k-card issue-types"}},{key:"onHover",value:function(e){this.setDonutLegend(e)}},{key:"setDonutLegend",value:function(e){this.hoverColor=e.point.options.color,this.donutPercent=Math.round(100*e.value||0)+"",this.donutLabel=e.category}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-issue-types"]],hostVars:2,hostBindings:function(t,e){2&t&&_r(e.className)},inputs:{data:"data"},decls:14,vars:7,consts:[[1,"k-card-header"],[1,"k-card-body","height-1"],[3,"seriesHover"],["type","donut","field","value","categoryField","type",3,"holeSize","data","overlay"],["position","bottom"],[1,"comp-label","chart-label"],[1,"issues-count"],[1,"percentage"],[1,"issues-label"]],template:function(t,e){1&t&&(A(0,"h2",0),te(1,"Issue Types"),x(),A(2,"div",1)(3,"kendo-chart",2),Q("seriesHover",function(a){return e.onHover(a)}),A(4,"kendo-chart-series"),z(5,"kendo-chart-series-item",3),x(),z(6,"kendo-chart-legend",4),x(),A(7,"div",5)(8,"div",6),te(9),A(10,"span",7),te(11,"%"),x()(),A(12,"div",8),te(13),x()()()),2&t&&(k(5),y("holeSize",100)("data",e.issues)("overlay",!1),k(2),Qe("color",e.hoverColor),k(2),Nt(" ",e.donutPercent," "),k(4),at(e.donutLabel))},directives:[qg,nC,zf,tee],encapsulation:2}),i}();function v7e(i,r){if(1&i){var t=Me();A(0,"div",12),Q("click",function(){var s=re(t).$implicit;return D().addSeries(s,!0)}),A(1,"div",13),te(2),x(),A(3,"div",14),te(4),x()()}if(2&i){var e=r.$implicit,n=D();Qe("color",e.active?e.value:n.initialGrey),k(2),at(n.data[e.label].length),k(2),at(e.label)}}function p7e(i,r){if(1&i&&z(0,"kendo-chart-series-item",15),2&i){var t=r.$implicit;y("data",t.data)("markers",t.markers)("color",t.color)}}var AE=function(){return{visible:!1}},g7e=function(){return{step:4,skip:2}},m7e=function(){return{step:2,skip:2}},_7e=function(){return{step:2,skip:2,color:"#F0F2F2"}},y7e=function(){var i=function(){function r(){p(this,r),this.initialGrey="#A2ACAC",this.series=[],this.visibleSeries=[],this.seriesColors=[{label:"SEV: Low",value:"#FF9966",active:!1},{label:"SEV: Medium",value:"#BB6ACB",active:!1},{label:"SEV: High",value:"#52C3D3",active:!1},{label:"Enhancement",value:"#22C85D",active:!1},{label:"Feature",value:"#FF6358",active:!1},{label:"Others",value:"#2BA7DA",active:!1}]}return v(r,[{key:"months",set:function(e){this.baseUnit=e>3?"months":"weeks"}},{key:"addSeries",value:function(e,n){n&&this.seriesColors.forEach(function(l){l.value===e.value&&(l.active=!l.active)});var a={color:this.seriesColors.filter(function(l){return l.label===e.label})[0].value,markers:{visible:!1},data:this.data[e.label]};if(this.visibleSeries.some(function(l){return l.color===a.color})){var s=this.visibleSeries.map(function(l){return l.color}).indexOf(a.color);~s&&this.visibleSeries.splice(s,1)}else this.visibleSeries.push(a);this.series=this.visibleSeries}},{key:"ngOnInit",value:function(){this.addSeries({label:"SEV: Low",value:"#FF9966",active:!1},!0),this.addSeries({label:"Enhancement",value:"#22C85D",active:!1},!0),this.addSeries({label:"Others",value:"#2BA7DA",active:!1},!0)}},{key:"ngOnChanges",value:function(e){e.data.previousValue&&e.data.previousValue.hasOwnProperty("Others")&&(this.visibleSeries=[],this.addSeries({label:"SEV: Low",value:"#FF9966",active:!1},!1),this.addSeries({label:"Enhancement",value:"#22C85D",active:!1},!1),this.addSeries({label:"Others",value:"#2BA7DA",active:!1},!1))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-types-distribution"]],inputs:{data:"data",months:"months"},features:[Ie],decls:17,vars:20,consts:[[1,"k-card"],[1,"k-card-header"],[1,"k-card-body"],[1,"row"],["class","col-6 col-sm-4 col-xl-2 comp-label label-clickable",3,"color","click",4,"ngFor","ngForOf"],[1,"col-12","types-distribution"],[2,"height","300px",3,"pannable","zoomable","transitions"],["format","{0}"],["type","line",3,"overlay"],["baseUnit","months",3,"majorTicks","labels","majorGridLines","line"],["style","smooth","aggregate","count","categoryField","date",3,"data","markers","color",4,"ngFor","ngForOf"],[3,"line","labels","majorGridLines"],[1,"col-6","col-sm-4","col-xl-2","comp-label","label-clickable",3,"click"],[1,"issues-count"],[1,"issues-label"],["aggregate","count","categoryField","date",3,"data","markers","color"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"h2",1),te(2,"Types Distribution"),x(),A(3,"div",2)(4,"div",3),T(5,v7e,5,4,"div",4),x(),A(6,"div",3)(7,"div",5)(8,"kendo-chart",6),z(9,"kendo-chart-tooltip",7)(10,"kendo-chart-series-defaults",8),A(11,"kendo-chart-category-axis"),z(12,"kendo-chart-category-axis-item",9),x(),A(13,"kendo-chart-series"),T(14,p7e,1,3,"kendo-chart-series-item",10),x(),A(15,"kendo-chart-value-axis"),z(16,"kendo-chart-value-axis-item",11),x()()()()()()),2&t&&(k(5),y("ngForOf",e.seriesColors),k(3),y("pannable",!0)("zoomable",!0)("transitions",!1),k(2),y("overlay",!1),k(2),y("majorTicks",wt(13,AE))("labels",wt(14,g7e))("majorGridLines",wt(15,AE))("line",wt(16,AE)),k(2),y("ngForOf",e.visibleSeries),k(2),y("line",wt(17,AE))("labels",wt(18,m7e))("majorGridLines",wt(19,_7e)))},directives:[gn,qg,LL,FL,OL,tC,nC,zf,PL,EE],encapsulation:2}),i}();function k7e(i,r){1&i&&(A(0,"div",6),z(1,"app-loading-spinner"),x())}function C7e(i,r){if(1&i&&z(0,"app-active-issues",7),2&i){var t=D();y("data",t.issues.groupedIssues)("months",t.months)("issues",t.issues)("closeRate",t.issues.closeRate.average)("active",t.issues.active)}}function b7e(i,r){if(1&i&&(A(0,"div",8),z(1,"app-issue-types",9),x()),2&i){var t=D();k(1),y("data",t.issues.issueTypes)}}function S7e(i,r){if(1&i&&z(0,"app-types-distribution",12),2&i){var t=D(2);y("data",t.issues.typesDistribution)("months",t.months)}}function w7e(i,r){if(1&i&&(A(0,"div",10),T(1,S7e,1,2,"app-types-distribution",11),x()),2&i){var t=D();k(1),y("ngIf",t.issues.active.length)}}var D7e=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-statistics"]],inputs:{issues:"issues",months:"months",loading:"loading"},decls:6,vars:4,consts:[[1,"row"],[1,"col-12"],["class","k-card","style","height: 400px",4,"ngIf"],[3,"data","months","issues","closeRate","active",4,"ngIf"],["class","col-xl-4",4,"ngIf"],["class","col-xl-8",4,"ngIf"],[1,"k-card",2,"height","400px"],[3,"data","months","issues","closeRate","active"],[1,"col-xl-4"],[3,"data"],[1,"col-xl-8"],[3,"data","months",4,"ngIf"],[3,"data","months"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1),T(2,k7e,2,0,"div",2),T(3,C7e,1,5,"app-active-issues",3),x(),T(4,b7e,2,1,"div",4),T(5,w7e,2,1,"div",5),x()),2&t&&(k(2),y("ngIf",e.loading),k(1),y("ngIf",!e.loading&&e.issues.active.length),k(1),y("ngIf",!e.loading&&e.issues.active.length),k(1),y("ngIf",!e.loading&&e.issues.active.length))},directives:[qe,aN,h7e,f7e,y7e],encapsulation:2}),i}();function E7e(i,r){if(1&i&&z(0,"app-statistics",12),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}function T7e(i,r){if(1&i&&z(0,"app-statistics",12),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}function A7e(i,r){if(1&i&&z(0,"app-statistics",12),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}var x7e=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.githubService=t,this.issuesProcessor=e,this.isLoading=!0,this.today=new Date,this.months=3,this.selectedIndex=0,this.rangeStart=this.issuesProcessor.getMonthsRange(this.months),this.subscription=xn(t.getGithubIssues({pages:5}).pipe(We(function(a){return n.data=a,n.isLoading=!1,n.issuesProcessor.process(a,n.months)},function(a){return n.isLoading=!1})),lt(new Zj)).subscribe(function(a){n.issues=a})}return v(r,[{key:"get_id",get:function(){return"dashboard"}},{key:"get_class",get:function(){return"container-fluid"}},{key:"onFilterClick",value:function(e){this.months!==e&&(this.months=e,this.rangeStart=this.issuesProcessor.getMonthsRange(e),this.issues=this.issuesProcessor.process(this.data,e),this.filterIssues(this.selectedIndex))}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onTabSelect",value:function(e){this.filterIssues(e.index)}},{key:"filterIssues",value:function(e){switch(e){case 0:this.issues=this.issuesProcessor.process(this.data,this.months),this.selectedIndex=0;break;case 1:var n=this.issuesProcessor.flatten(this.data).filter(function(o){return!!o.assignee&&"ggkrustev"===o.assignee.login});this.issues=this.issuesProcessor.process(n,this.months),this.selectedIndex=1;break;case 2:var a=this.issuesProcessor.flatten(this.data).filter(function(o){return"ggkrustev"===o.user.login});this.issues=this.issuesProcessor.process(a,this.months),this.selectedIndex=2;break;default:this.issues=this.issuesProcessor.process(this.data,this.months)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Jp),m(hD))},i.\u0275cmp=L({type:i,selectors:[["app-dashboard"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.get_id),_r(e.get_class))},features:[de([Jp,hD])],decls:24,vars:15,consts:[["id","header",1,"row"],[1,"col-sm"],[1,"h2"],[1,"col-sm","text-sm-right","p-0","p-sm-3"],[3,"selection"],["kendoRippleContainer","","kendoButton","",3,"togglable","selected","click"],["kendoRippleContainer","","kendoButton","",3,"togglable","click"],["id","statistics"],[3,"select"],[3,"title","selected"],["kendoTabContent",""],[3,"title"],[3,"loading","issues","months"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"h4"),te(3,"Statistics"),x(),A(4,"p",2),te(5),Wa(6,"date"),Wa(7,"date"),x()(),A(8,"div",3)(9,"kendo-buttongroup",4)(10,"button",5),Q("click",function(){return e.onFilterClick(3)}),te(11,"3 Months"),x(),A(12,"button",6),Q("click",function(){return e.onFilterClick(6)}),te(13,"6 Months"),x(),A(14,"button",6),Q("click",function(){return e.onFilterClick(12)}),te(15,"1 Year"),x()()()(),A(16,"div",7)(17,"kendo-tabstrip",8),Q("select",function(a){return e.onTabSelect(a)}),A(18,"kendo-tabstrip-tab",9),T(19,E7e,1,3,"ng-template",10),x(),A(20,"kendo-tabstrip-tab",11),T(21,T7e,1,3,"ng-template",10),x(),A(22,"kendo-tabstrip-tab",11),T(23,A7e,1,3,"ng-template",10),x()()()),2&t&&(k(5),Jl("",fc(6,11,e.rangeStart)," - ",fc(7,13,e.today),""),k(4),y("selection","single"),k(1),y("togglable",!0)("selected",!0),k(2),y("togglable",!0),k(2),y("togglable",!0),k(4),y("title","All Issues")("selected",!0),k(2),y("title","Assigned to Me"),k(2),y("title","Created by Me"))},directives:[HW,La,$y,I7,$I,WI,D7e],pipes:[Cw],encapsulation:2}),i}();function aC(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return i<0&&(i=0),jw(i,i,r)}var M7e=Array.isArray;function R7e(i){return 1===i.length&&M7e(i[0])?i[0]:i}function O7e(){for(var i=arguments.length,r=new Array(i),t=0;t1&&void 0!==arguments[1]?arguments[1]:kee;return oi(function(t,e){var n=r.leading,a=r.trailing,o=!1,s=null,l=null,u=!1,c=function(){null==l||l.unsubscribe(),l=null,a&&(f(),u&&e.complete())},d=function(){l=null,u&&e.complete()},h=function(_){return l=Pi(i(_)).subscribe(Wn(e,c,d))},f=function(){if(o){o=!1;var _=s;s=null,e.next(_),!u&&h(_)}};t.subscribe(Wn(e,function(g){o=!0,s=g,(!l||l.closed)&&(n?f():h(g))},function(){u=!0,(!(a&&o&&l)||l.closed)&&e.complete()}))})}function GL(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kee,e=jw(i,r);return F7e(function(){return e},t)}var Cee=function(){var i=function(){function r(t,e){p(this,r),this._renderer=t,this._elementRef=e,this.onChange=function(n){},this.onTouched=function(){}}return v(r,[{key:"setProperty",value:function(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"setDisabledState",value:function(e){this.setProperty("disabled",e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e))},i.\u0275dir=X({type:i}),i}(),Kf=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(Cee);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,features:[j]}),i}(),jn=new Dt("NgValueAccessor"),P7e={provide:jn,useExisting:ke(function(){return zL}),multi:!0},zL=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e,[{key:"writeValue",value:function(a){this.setProperty("checked",a)}}]),e}(Kf);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Q("change",function(a){return e.onChange(a.target.checked)})("blur",function(){return e.onTouched()})},features:[de([P7e]),j]}),i}(),B7e={provide:jn,useExisting:ke(function(){return zc}),multi:!0},G7e=new Dt("CompositionEventMode"),zc=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a))._compositionMode=o,s._composing=!1,null==s._compositionMode&&(s._compositionMode=!function V7e(){var i=tu()?tu().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}()),s}return v(e,[{key:"writeValue",value:function(a){this.setProperty("value",null==a?"":a)}},{key:"_handleInput",value:function(a){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(a)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(a){this._composing=!1,this._compositionMode&&this.onChange(a)}}]),e}(Cee);return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(G7e,8))},i.\u0275dir=X({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Q("input",function(a){return e._handleInput(a.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(a){return e._compositionEnd(a.target.value)})},features:[de([B7e]),j]}),i}(),tr=new Dt("NgValidators"),Jd=new Dt("NgAsyncValidators");function See(i){return null!=i}function wee(i){var r=X_(i)?wi(i):i;return $M(r),r}function Dee(i){var r={};return i.forEach(function(t){r=null!=t?Object.assign(Object.assign({},r),t):r}),0===Object.keys(r).length?null:r}function Eee(i,r){return r.map(function(t){return t(i)})}function Tee(i){return i.map(function(r){return function Z7e(i){return!i.validate}(r)?r:function(t){return r.validate(t)}})}function KL(i){return null!=i?function Y7e(i){if(!i)return null;var r=i.filter(See);return 0==r.length?null:function(t){return Dee(Eee(t,r))}}(Tee(i)):null}function jL(i){return null!=i?function Q7e(i){if(!i)return null;var r=i.filter(See);return 0==r.length?null:function(t){return FO(Eee(t,r).map(wee)).pipe(We(Dee))}}(Tee(i)):null}function Aee(i,r){return null===i?[r]:Array.isArray(i)?[].concat(Ae(i),[r]):[i,r]}function xee(i){return i._rawValidators}function Mee(i){return i._rawAsyncValidators}function WL(i){return i?Array.isArray(i)?i:[i]:[]}function ME(i,r){return Array.isArray(i)?i.includes(r):i===r}function Ree(i,r){var t=WL(r);return WL(i).forEach(function(n){ME(t,n)||t.push(n)}),t}function Oee(i,r){return WL(r).filter(function(t){return!ME(i,t)})}var Iee=function(){function i(){p(this,i),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return v(i,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=KL(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=jL(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),i}(),ra=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return v(t)}(Iee),no=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(Iee),Nee=function(){function i(r){p(this,i),this._cd=r}return v(i,[{key:"is",value:function(t){var e,n,a;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(a=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===a?void 0:a[t])}}]),i}(),jf=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,n)}return v(e)}(Nee);return i.\u0275fac=function(t){return new(t||i)(m(ra,2))},i.\u0275dir=X({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ue("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[j]}),i}(),Fee=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,n)}return v(e)}(Nee);return i.\u0275fac=function(t){return new(t||i)(m(no,10))},i.\u0275dir=X({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&ue("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[j]}),i}();function oC(i,r){XL(i,r),r.valueAccessor.writeValue(i.value),function o9e(i,r){r.valueAccessor.registerOnChange(function(t){i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&Pee(i,r)})}(i,r),function l9e(i,r){var t=function(n,a){r.valueAccessor.writeValue(n),a&&r.viewToModelUpdate(n)};i.registerOnChange(t),r._registerOnDestroy(function(){i._unregisterOnChange(t)})}(i,r),function s9e(i,r){r.valueAccessor.registerOnTouched(function(){i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&Pee(i,r),"submit"!==i.updateOn&&i.markAsTouched()})}(i,r),function a9e(i,r){if(r.valueAccessor.setDisabledState){var t=function(n){r.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),r._registerOnDestroy(function(){i._unregisterOnDisabledChange(t)})}}(i,r)}function IE(i,r){var e=function(){};r.valueAccessor&&(r.valueAccessor.registerOnChange(e),r.valueAccessor.registerOnTouched(e)),function FE(i,r){var t=!1;if(null!==i){if(null!==r.validator){var e=xee(i);if(Array.isArray(e)&&e.length>0){var n=e.filter(function(l){return l!==r.validator});n.length!==e.length&&(t=!0,i.setValidators(n))}}if(null!==r.asyncValidator){var a=Mee(i);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(l){return l!==r.asyncValidator});o.length!==a.length&&(t=!0,i.setAsyncValidators(o))}}}var s=function(){};return NE(r._rawValidators,s),NE(r._rawAsyncValidators,s),t}(i,r),i&&(r._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(function(){}))}function NE(i,r){i.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(r)})}function XL(i,r){var t=xee(i);null!==r.validator?i.setValidators(Aee(t,r.validator)):"function"==typeof t&&i.setValidators([t]);var e=Mee(i);null!==r.asyncValidator?i.setAsyncValidators(Aee(e,r.asyncValidator)):"function"==typeof e&&i.setAsyncValidators([e]);var n=function(){return i.updateValueAndValidity()};NE(r._rawValidators,n),NE(r._rawAsyncValidators,n)}function Pee(i,r){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function ZL(i,r){if(!i.hasOwnProperty("model"))return!1;var t=i.model;return!!t.isFirstChange()||!Object.is(r,t.currentValue)}function YL(i,r){if(!r)return null;Array.isArray(r);var t=void 0,e=void 0,n=void 0;return r.forEach(function(a){a.constructor===zc?t=a:function d9e(i){return Object.getPrototypeOf(i.constructor)===Kf}(a)?e=a:n=a}),n||e||t||null}function QL(i,r){var t=i.indexOf(r);t>-1&&i.splice(t,1)}var sC="VALID",LE="INVALID",Zg="PENDING",lC="DISABLED";function eP(i){return(PE(i)?i.validators:i)||null}function Uee(i){return Array.isArray(i)?KL(i):i||null}function tP(i,r){return(PE(r)?r.asyncValidators:i)||null}function zee(i){return Array.isArray(i)?jL(i):i||null}function PE(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}var nP=function(r){return r instanceof uC};function Kee(i){return function(r){return r instanceof rP}(i)?i.value:i.getRawValue()}function jee(i,r){var t=nP(i),e=i.controls;if(!(t?Object.keys(e):e).length)throw new gt(1e3,"");if(!e[r])throw new gt(1001,"")}function Wee(i,r){nP(i),i._forEachChild(function(e,n){if(void 0===r[n])throw new gt(1002,"")})}var iP=function(){function i(r,t){p(this,i),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=t,this._composedValidatorFn=Uee(this._rawValidators),this._composedAsyncValidatorFn=zee(this._rawAsyncValidators)}return v(i,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===sC}},{key:"invalid",get:function(){return this.status===LE}},{key:"pending",get:function(){return this.status==Zg}},{key:"disabled",get:function(){return this.status===lC}},{key:"enabled",get:function(){return this.status!==lC}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=Uee(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=zee(t)}},{key:"addValidators",value:function(t){this.setValidators(Ree(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(Ree(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(Oee(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(Oee(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return ME(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return ME(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Zg,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=lC,this.errors=null,this._forEachChild(function(n){n.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(n){return n(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=sC,this._forEachChild(function(n){n.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(n){return n(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===sC||this.status===Zg)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?lC:sC}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=Zg,this._hasOwnPendingAsyncValidator=!0;var n=wee(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(a){e._hasOwnPendingAsyncValidator=!1,e.setErrors(a,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function h9e(i,r,t){if(null==r||(Array.isArray(r)||(r=r.split(t)),Array.isArray(r)&&0===r.length))return null;var e=i;return r.forEach(function(n){e=nP(e)?e.controls.hasOwnProperty(n)?e.controls[n]:null:function(r){return r instanceof v9e}(e)&&e.at(n)||null}),e}(this,t,".")}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new O,this.statusChanges=new O}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?lC:this.errors?LE:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zg)?Zg:this._anyControlsHaveStatus(LE)?LE:sC}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){PE(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),i}(),rP=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return p(this,t),(e=r.call(this,eP(a),tP(o,a))).defaultValue=null,e._onChange=[],e._pendingChange=!1,e._applyFormState(n),e._setUpdateStrategy(a),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),PE(a)&&a.initialValueIsDefault&&(e.defaultValue=e._isBoxedValue(n)?n.value:n),e}return v(t,[{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=n,this._onChange.length&&!1!==o.emitModelToViewChange&&this._onChange.forEach(function(s){return s(a.value,!1!==o.emitViewToModelChange)}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(n,a)}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(n),this.markAsPristine(a),this.markAsUntouched(a),this.setValue(this.value,a),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(n){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(n){this._onChange.push(n)}},{key:"_unregisterOnChange",value:function(n){QL(this._onChange,n)}},{key:"registerOnDisabledChange",value:function(n){this._onDisabledChange.push(n)}},{key:"_unregisterOnDisabledChange",value:function(n){QL(this._onDisabledChange,n)}},{key:"_forEachChild",value:function(n){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}]),t}(iP),uC=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,eP(n),tP(a,n))).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return v(t,[{key:"registerControl",value:function(n,a){return this.controls[n]?this.controls[n]:(this.controls[n]=a,a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange),a)}},{key:"addControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(n,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),delete this.controls[n],this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),delete this.controls[n],a&&this.registerControl(n,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}},{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wee(this,n),Object.keys(n).forEach(function(s){jee(a,s),a.controls[s].setValue(n[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=n&&(Object.keys(n).forEach(function(s){a.controls[s]&&a.controls[s].patchValue(n[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(n[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(n,a,o){return n[o]=Kee(a),n})}},{key:"_syncPendingControls",value:function(){var n=this._reduceChildren(!1,function(a,o){return!!o._syncPendingControls()||a});return n&&this.updateValueAndValidity({onlySelf:!0}),n}},{key:"_forEachChild",value:function(n){var a=this;Object.keys(this.controls).forEach(function(o){var s=a.controls[o];s&&n(s,o)})}},{key:"_setUpControls",value:function(){var n=this;this._forEachChild(function(a){a.setParent(n),a._registerOnCollectionChange(n._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(n){for(var a=0,o=Object.keys(this.controls);a0||this.disabled}}]),t}(iP),v9e=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,eP(n),tP(a,n))).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return v(t,[{key:"at",value:function(n){return this.controls[n]}},{key:"push",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(n,0,a),this._registerControl(a),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"removeAt",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"setControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),a&&(this.controls.splice(n,0,a),this._registerControl(a)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wee(this,n),n.forEach(function(s,l){jee(a,l),a.at(l).setValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=n&&(n.forEach(function(s,l){a.at(l)&&a.at(l).patchValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(n[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this.controls.map(function(n){return Kee(n)})}},{key:"clear",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(a){return a._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}},{key:"_syncPendingControls",value:function(){var n=this.controls.reduce(function(a,o){return!!o._syncPendingControls()||a},!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}},{key:"_forEachChild",value:function(n){this.controls.forEach(function(a,o){n(a,o)})}},{key:"_updateValue",value:function(){var n=this;this.value=this.controls.filter(function(a){return a.enabled||n.disabled}).map(function(a){return a.value})}},{key:"_anyControls",value:function(n){return this.controls.some(function(a){return a.enabled&&n(a)})}},{key:"_setUpControls",value:function(){var n=this;this._forEachChild(function(a){return n._registerControl(a)})}},{key:"_allControlsDisabled",value:function(){var a,n=In(this.controls);try{for(n.s();!(a=n.n()).done;)if(a.value.enabled)return!1}catch(s){n.e(s)}finally{n.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}]),t}(iP),p9e={provide:no,useExisting:ke(function(){return BE})},cC=function(){return Promise.resolve(null)}(),BE=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).submitted=!1,o._directives=new Set,o.ngSubmit=new O,o.form=new uC({},KL(n),jL(a)),o}return v(e,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(a){var o=this;cC.then(function(){var s=o._findContainer(a.path);a.control=s.registerControl(a.name,a.control),oC(a.control,a),a.control.updateValueAndValidity({emitEvent:!1}),o._directives.add(a)})}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){var o=this;cC.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name),o._directives.delete(a)})}},{key:"addFormGroup",value:function(a){var o=this;cC.then(function(){var s=o._findContainer(a.path),l=new uC({});(function Bee(i,r){XL(i,r)})(l,a),s.registerControl(a.name,l),l.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(a){var o=this;cC.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name)})}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){var s=this;cC.then(function(){s.form.get(a.path).setValue(o)})}},{key:"setValue",value:function(a){this.control.setValue(a)}},{key:"onSubmit",value:function(a){return this.submitted=!0,function Gee(i,r){i._syncPendingControls(),r.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(a){return a.pop(),a.length?this.form.get(a):this.form}}]),e}(no);return i.\u0275fac=function(t){return new(t||i)(m(tr,10),m(Jd,10))},i.\u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Q("submit",function(a){return e.onSubmit(a)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([p9e]),j]}),i}(),m9e={provide:ra,useExisting:ke(function(){return Wf})},Xee=function(){return Promise.resolve(null)}(),Wf=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l){var u;return p(this,e),(u=t.call(this))._changeDetectorRef=l,u.control=new rP,u._registered=!1,u.update=new O,u._parent=n,u._setValidators(a),u._setAsyncValidators(o),u.valueAccessor=YL(Xe(u),s),u}return v(e,[{key:"ngOnChanges",value:function(a){if(this._checkForErrors(),!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var o=a.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a),ZL(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){oC(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(a){var o=this;Xee.then(function(){var s;o.control.setValue(a,{emitViewToModelChange:!1}),null===(s=o._changeDetectorRef)||void 0===s||s.markForCheck()})}},{key:"_updateDisabled",value:function(a){var o=this,s=a.isDisabled.currentValue,l=""===s||s&&"false"!==s;Xee.then(function(){var u;l&&!o.control.disabled?o.control.disable():!l&&o.control.disabled&&o.control.enable(),null===(u=o._changeDetectorRef)||void 0===u||u.markForCheck()})}},{key:"_getPath",value:function(a){return this._parent?function OE(i,r){return[].concat(Ae(r.path),[i])}(a,this._parent):[a]}}]),e}(ra);return i.\u0275fac=function(t){return new(t||i)(m(no,9),m(tr,10),m(Jd,10),m(jn,10),m(nt,8))},i.\u0275dir=X({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[de([m9e]),j,Ie]}),i}(),Zee=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i}(),Qee=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),aP=new Dt("NgModelWithFormControlWarning"),b9e={provide:ra,useExisting:ke(function(){return oP})},oP=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this))._ngModelWarningConfig=s,l.update=new O,l._ngModelWarningSent=!1,l._setValidators(n),l._setAsyncValidators(a),l.valueAccessor=YL(Xe(l),o),l}return v(e,[{key:"isDisabled",set:function(a){}},{key:"ngOnChanges",value:function(a){if(this._isControlChanged(a)){var o=a.form.previousValue;o&&IE(o,this),oC(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}ZL(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&IE(this.form,this)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_isControlChanged",value:function(a){return a.hasOwnProperty("form")}}]),e}(ra);return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(t){return new(t||i)(m(tr,10),m(Jd,10),m(jn,10),m(aP,8))},i.\u0275dir=X({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[de([b9e]),j,Ie]}),i}(),vte=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Qee]]}),i}(),dC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[vte]}),i}(),fP=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"withConfig",value:function(e){return{ngModule:r,providers:[{provide:aP,useValue:e.warnOnNgModelWithFormControl}]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[vte]}),i}(),ji=function(r){return null!=r},VE=function(r){return null==r},vP=function(r){return Array.isArray(r)},pte=function(r){return"function"==typeof r},pP=function(r){return"string"==typeof r},qf=function(r){return!isNaN(r-parseFloat(r))},eh=function(r){return r&&r.getTime},Hc=function(r){return ji(r.filters)},gte=function(r,t,e){return function(n){return r(n)?t(n):e(n)}},xl=function(){for(var r=arguments.length,t=new Array(r),e=0;e0}(r(t))}},Yg=function(r,t){return gte(r,t,e$e)},mP=function(r,t){return function(e){return r(e).map(t).join("~")}},a$e=xl.apply(void 0,Ae([['"',""],[":","-"]].map(function(t){var e=Bt(t,2),n=e[0],a=e[1];return function(o){return o.replace(new RegExp(n,"g"),a)}}))),o$e=function(t){return t.slice(0,t.indexOf("."))},wte=function(r){var e=r.dir,n=void 0===e?"asc":e;return"".concat(r.field,"-").concat(n)},Dte=_u("take"),Ete=_u("aggregates"),l$e=_u("skip"),Tte=_u("group"),_P=_u("sort",!0),u$e=mP(_P,wte),c$e=mP(Tte,wte),d$e=mP(Ete,function(r){var e=r.aggregate;return"".concat(r.field,"-").concat(e)}),f$e=xl(function(r){return"datetime'".concat(r,"'")},o$e,a$e,JSON.stringify,function(r){return new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()))}),g$e=xl(fC("page"),function(r){return Math.floor((r.skip||0)/r.take)+1}),m$e=xl(fC("pageSize"),Dte),_$e=xl(fC("group"),c$e),y$e=xl(fC("sort"),u$e),k$e=xl(fC("aggregate"),d$e),yP=(Yg(gP(l$e),g$e),Yg(gP(Dte),m$e),Yg(Ste(Tte),_$e),Yg(gP(Ete),k$e),xl(Yg(Ste(_P),y$e),function(r){return Object.assign({},r,{sort:(_P(r)||[]).filter(function(t){return function(r){return!function(r){return VE(r)||0===r.trim().length}(r)}(t.dir)})})}),function(r){var e=r.operator,n=r.value;return"".concat(r.field,"~").concat(e,"~").concat(n)}),GE=(gte(function(r){return eh(r.value)},xl(yP,function(r){var t=r.field,n=r.ignoreCase,a=r.operator;return{value:f$e(r.value),field:t,ignoreCase:n,operator:a}}),yP),function(r,t,e){return t[r]=e,t}),kP=function(r){return function(t){var e=t[r];return ji(e)?e:t[function(r){return r.replace(/(^[A-Z])/g,function(t,e){return e.toLowerCase()})}(r)]}},Mte=(kP("Member"),kP("AggregateMethodName"),kP("Value"),function(r){return function(t){return Object.keys(t).reduce(r.bind(null,t),{})}}),F$e=Mte(function(i,r,t){return GE(t.toLowerCase(),r,i[t])}),L$e=Mte(function(i,r,t){return GE(t,r,F$e(i[t]))}),Rte=function(r,t){return ji(r)?r:t},Ote=xl(function(i){var r=i.field,t=i.hasSubgroups,e=i.value,a=i.items;return{aggregates:L$e(i.aggregates),field:r,items:t?a.map(Ote):a,value:e}},function(r){return{aggregates:r.Aggregates||r.aggregates,field:r.Member||r.member||r.field,hasSubgroups:r.HasSubgroups||r.hasSubgroups||!1,items:r.Items||r.items,value:Rte(r.Key,Rte(r.key,r.value))}}),Ite=function(r,t){return VE(r)?r===t?0:-1:VE(t)?1:r.localeCompare?r.localeCompare(t):r>t?1:r0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(r).forEach(function(t){var e=r[t];Object.keys(e).forEach(function(n){e[n]=e[n].result()})}),r},W$e=function(r){var t=r.map(function(e){var n=_u(e.field,!0),a=(e.aggregate||"").toLowerCase(),o=_u(a,!0);return function(s,l){var u=s[e.field]||{},c=o(u)||function(r){return{average:function(){var e=0,n=0;return{calc:function(o){qf(o)?(e+=o,n++):e=o},result:function(){return qf(e)?e/n:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(a){(e=qf(e)||eh(e)?e:a)a&&(qf(a)||eh(a))&&(e=a)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(a){a=ji(a)?a:0,e+=a},result:function(){return e}}}}[r]()}(a);return c.calc(n(l)),u[e.aggregate]=c,s[e.field]=u,s}});return function(e,n){return t.reduce(function(a,o){return o(a,n)},e)}},$$e=function(r,t){return r.push(t),r},Nte=function(r){return function(t){return function(e,n,a){return t(e,r(n,a))}}},Fte=function(r){return function(t){return function(e,n){return r(n)?t(e,n):e}}},Lte=function(r){return ji(r.__value)},CP=function(r,t,e){for(var n=t,a=0,o=e.length;a1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z$e,n={};if(!t.length)return n;var a=CP(e(W$e(t)),n,r);return K$e(a)},J$e=function i(r){r.filters&&(r.filters=r.filters.map(function(t){var e=Object.assign({},t);return!Hc(t)&&pP(t.operator)&&(e.operator=function(r){return{"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[r.toLowerCase()]||r}(t.operator)),Hc(t)&&i(e),e}))},Bte=function(r){return ji(r)&&(r=function(r){return Hc(r)?Object.assign({},r):{filters:vP(r)?r:[r],logic:"and"}}(r),J$e(r)),r},tqe={or:{concat:function(r,t){return function(e){return r(e)||t(e)}},identity:function(){return!1}},and:{concat:function(r,t){return function(e){return r(e)&&t(e)}},identity:function(){return!0}}},nqe={contains:function(r,t){return(r||"").indexOf(t)>=0},doesnotcontain:function(r,t){return-1===(r||"").indexOf(t)},doesnotendwith:function(r,t){return(r||"").indexOf(t,(r||"").length-(t||"").length)<0},doesnotstartwith:function(r,t){return-1===(r||"").lastIndexOf(t,0)},endswith:function(r,t){return(r||"").indexOf(t,(r||"").length-(t||"").length)>=0},eq:function(r,t){return r===t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t},isempty:function(r){return""===r},isnotempty:function(r){return""!==r},isnotnull:function(r){return ji(r)},isnull:function(r){return VE(r)},lt:function(r,t){return r1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hte,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;if(!(t=zte(t)).length)return r;var a=t[0],o={},s=CP(e(H$e(a.field)),o,r),l=[];return Object.keys(s).forEach(function(u){Object.keys(s[u]).forEach(function(c){var d=s[u][c],h={},f=n;ji(a.aggregates)&&(f=Ute(n,{field:a.field,ignoreCase:!1,operator:"eq",value:d.value}),h=Y$e(f,a.aggregates)),l[d.__position]={aggregates:h,field:u,items:t.length>1?i(d.items,t.slice(1),Hte,f):d.items,value:d.value}})}),l},lqe=function i(r,t,e,n){if(!(e-t<2)){var a=t+e>>>1;i(r,t,a,n),i(r,a,e,n),function(r,t,e,n,a){for(var o=e-t,s=n-e,l=[],u=0;u0&&o>0);for(;o;)r[h++]=l[c++],o--;for(;s;)r[h++]=r[d++],s--}(r,t,a,e,n)}},UE=function(r,t){if(t.some(function(n){return ji(n.dir)})){r=r.slice(0);var e=function(r){return r.filter(function(t){return ji(t.dir)}).map(function(t){return V$e(t)}).reduce(function(t,e){return function(n,a){return t(n,a)||e(n,a)}},G$e)}(t);lqe(r,0,r.length,e)}return r},jte=function(r,t){var e=t.skip,n=t.take,a=t.filter,o=t.sort,s=t.group,l=[].concat(Ae(zte(s||[])),Ae(o||[]));l.length&&(r=UE(r,l));var u=ji(a)&&Fte.length,c=ji(s)&&s.length;if(!u&&!c)return{data:n?r.slice(e,e+n):r,total:r.length};var d,f,h=[];if(u?(d=function(r,t){for(var e=0,n=0,a=r.length;n0?t(e,n):function(r){return Lte(r)?r:{__value:r,reduced:!0}}(e)}}}(n))),h.length){var g=xl.apply(void 0,h),_=c?Kte(r,s,g,function(r,t){return t?r.filter(t):r}(r,f)):CP(g($$e),[],r);return{data:_,total:d}}return{data:c?Kte(r,s):r,total:d}},Une=["track"],xqe=["thumb"],Hne=function(r,t,e){return{keydown:r,focus:t,blur:e}},Mqe=["numericInput"],Rqe=function(r,t){return{mouseup:r,mouseleave:t}},Kne=function(r){return{mousedown:r}};function Oqe(i,r){if(1&i&&(A(0,"span",4)(1,"button",5),z(2,"span",6),x(),A(3,"button",7),z(4,"span",8),x()()),2&i){var t=D();y("kendoEventsOutsideAngular",ln(13,Rqe,t.releaseArrow,t.releaseArrow)),k(1),ue("k-active",t.arrowDirection===t.ArrowDirection.Up),y("kendoEventsOutsideAngular",ot(16,Kne,t.increasePress))("title",t.incrementTitle),ie("aria-hidden",!0)("aria-label",t.incrementTitle),k(2),ue("k-active",t.arrowDirection===t.ArrowDirection.Down),y("kendoEventsOutsideAngular",ot(18,Kne,t.decreasePress))("title",t.decrementTitle),ie("aria-hidden",!0)("aria-label",t.decrementTitle)}}var Iqe=function(r,t,e,n,a,o,s){return{mousedown:r,dragenter:t,keydown:e,input:n,focus:a,blur:o,paste:s}},Nqe=["input"];function Fqe(i,r){}function Lqe(i,r){if(1&i&&T(0,Fqe,0,0,"ng-template",8),2&i){var t=D();y("ngTemplateOutlet",null==t.prefixTemplate?null:t.prefixTemplate.templateRef)}}function Pqe(i,r){if(1&i){var t=Me();A(0,"span",9),Q("click",function(){return re(t),D().clearValue()})("mousedown",function(a){return a.preventDefault()})("keydown.enter",function(a){return re(t),D().clearValue(a)})("keydown.space",function(a){return re(t),D().clearValue(a)}),z(1,"span",10),x()}if(2&i){var e=D();y("tabindex",e.tabIndex)("title",e.clearTitle()),ie("aria-label",e.clearTitle()),k(1),y("ngClass",e.clearButtonClasses)}}function Bqe(i,r){1&i&&z(0,"span",10),2&i&&y("ngClass",D().errorIconClasses)}function Vqe(i,r){1&i&&z(0,"span",10),2&i&&y("ngClass",D().successIconClasses)}function Gqe(i,r){}function Uqe(i,r){if(1&i&&T(0,Gqe,0,0,"ng-template",8),2&i){var t=D();y("ngTemplateOutlet",null==t.suffixTemplate?null:t.suffixTemplate.templateRef)}}var zqe=function(r,t,e){return{focus:r,blur:t,input:e}},mn=function(r){return null!=r},vC=function(r,t){return r===t||null===r&&void 0===t||void 0===r&&null===t},pC=function(r){return r&&(!r.touched||r.control&&"blur"===r.control.updateOn)},Wne={small:"sm",medium:"md",large:"lg"},$ne={small:"sm",medium:"md",large:"lg",full:"full"},Xf=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(Wne[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(Wne[n]):""};case"rounded":return{toRemove:"k-rounded-".concat($ne[e]),toAdd:"none"!==n?"k-rounded-".concat($ne[n]):""};case"fillMode":return{toRemove:"k-".concat(r,"-").concat(e),toAdd:"none"!==n?"k-".concat(r,"-").concat(n):""}}},qne=function(r){return Math.min(r,20)},gC=function(r){return(String(r).split(".")[1]||"").length},zE=function(r,t){var e=qne(t);return parseFloat(r.toFixed(e))},Zf=function(r,t){var e=function(r,t){return Math.max(gC(r),gC(t))}(r,t);return zE(r+t,e)};function th(i,r){if(i&&i.nativeElement){for(var t=arguments.length,e=new Array(t>2?t-2:0),n=2;n=0?Math.floor(r):Math.ceil(r)},Yf=function(r){},Qf=function(r){return!isNaN(r)&&null!==r};function uie(i,r){var t=r-String(i).length,e=i;if(t>0){var n=new Array(t+1).join("0");e=parseFloat(i+n)}return e}var Wc=function(){return function(i){i[i.Down=-1]="Down",i[i.None=0]="None",i[i.Up=1]="Up"}(Wc||(Wc={})),Wc}(),qE=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-numerictextbox-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[j]}),i}(),AZe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(qE);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoNumericTextBoxLocalizedMessages",""]],features:[de([{provide:qE,useExisting:ke(function(){return i})}]),j]}),i}(),cie=["min","max","step","decimals"],xZe={decimals:null,max:null,min:null,step:1},Jf=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.intl=t,this.renderer=e,this.localizationService=n,this.injector=a,this.ngZone=o,this.changeDetector=s,this.hostElement=l,this.focusableId="k-".concat(qn()),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new O,this.onFocus=new O,this.onBlur=new O,this.ArrowDirection=Wc,this.arrowDirection=Wc.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=Yf,this.maxValidateFn=Yf,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=Yf,this.ngTouched=Yf,this.ngValidatorChange=Yf,this.domEvents=[],this.increasePress=function(c){u.arrowPress(Wc.Up,c)},this.decreasePress=function(c){u.arrowPress(Wc.Down,c)},this.releaseArrow=function(){clearTimeout(u.spinTimeout),u.arrowDirection!==Wc.None&&(u.arrowDirection=Wc.None,u.changeDetector.detectChanges())},this.handlePaste=function(){u.isPasted=!0},this.handleInput=function(){var c=u.numericInput.nativeElement,d=c.selectionStart,h=c.selectionEnd,f=c.value;if(u.pressedKey===J.NumpadDecimal&&(f=u.replaceNumpadDotValue()),u.isPasted&&(f=u.formatInputValue(u.intl.parseNumber(f))),!u.isValid(f))return c.value=u.inputValue,void u.setSelection(d-1,h-1);var g=u.intl.parseNumber(f),_=u.restrictDecimals(g);if(u.autoCorrect){var C=u.limitInputValue(_);_=C.value,d=C.selectionStart,h=C.selectionEnd}g!==_||u.hasTrailingZeros(f)||!u.focused?(u.setInputValue(_),u.setSelection(d,h)):u.inputValue=f,u.isPasted&&(c.value=u.inputValue),u.updateValue(_),u.previousSelection=null,u.isPasted=!1},this.handleDragEnter=function(){!u.focused&&!u.isDisabled&&u.setInputValue(u.value,!0)},this.handleMouseDown=function(){u.mouseDown=!0},this.handleFocus=function(){if(!u.focused&&(u.focused=!0,!u.isDisabled)){var c=u.selectOnFocus||!u.mouseDown;u.ngZone.runOutsideAngular(function(){setTimeout(function(){c?u.selectAll():u.selectCaret()},0)})}u.mouseDown=!1,ut(u.onFocus)&&u.ngZone.run(function(){u.onFocus.emit()})},this.handleBlur=function(){u.changeDetector.markForCheck(),u.focused=!1,u.inputValue!==u.elementValue&&u.handleInput(),u.setInputValue(),(ut(u.onBlur)||pC(u.control))&&u.ngZone.run(function(){u.ngTouched(),u.onBlur.emit()})},this.handleKeyDown=function(c){if(!u.isDisabled){var d;c.keyCode===J.ArrowDown?d=-1:c.keyCode===J.ArrowUp&&(d=1),d&&u.step&&(c.preventDefault(),u.addStep(d));var h=u.numericInput.nativeElement;u.previousSelection={end:h.selectionEnd,start:h.selectionStart},u.pressedKey=c.keyCode}},this.handleWheel=function(c){if(u.focused&&!u.isDisabled&&u.changeValueOnScroll){c.preventDefault();var d=function(r){var t=0;return r.wheelDelta?t=(t=r.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):r.detail&&(t=Math.round(-r.detail/3)),t}(c);u.addStep(d)}},jt(jc),this.direction=n.rtl?"rtl":"ltr"}return v(r,[{key:"format",get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"disableClass",get:function(){return this.disabled}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(ra,null),this.ngZone.runOutsideAngular(function(){e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"mousewheel",e.handleWheel.bind(e))),e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"DOMMouseScroll",e.handleWheel.bind(e)))})}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","fillMode"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngOnChanges",value:function(e){Ki(cie,e,!1)&&this.parseOptions(cie.filter(function(n){return e[n]})),this.verifySettings(),Ki(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?function(r){return function(t){return!mn(r)||!mn(t.value)||t.value>=r?null:{minError:{minValue:r,value:t.value}}}}(this.min):Yf,this.maxValidateFn=this.rangeValidation?function(r){return function(t){return!mn(r)||!mn(t.value)||t.value<=r?null:{maxError:{maxValue:r,value:t.value}}}}(this.max):Yf,this.ngValidatorChange()),Ki(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Ki(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),(!this.focused||this.intl.parseNumber(this.elementValue)!==this.value)&&this.setInputValue())}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach(function(e){return e()})}},{key:"validate",value:function(e){return this.minValidateFn(e)||this.maxValidateFn(e)}},{key:"registerOnValidatorChange",value:function(e){this.ngValidatorChange=e}},{key:"writeValue",value:function(e){this.verifyValue(e);var n=this.restrictModelValue(e);this.value=n,this.setInputValue()}},{key:"registerOnChange",value:function(e){this.ngChange=e}},{key:"registerOnTouched",value:function(e){this.ngTouched=e}},{key:"setDisabledState",value:function(e){this.changeDetector.markForCheck(),this.disabled=e}},{key:"focus",value:function(){th(this.numericInput,"focus")}},{key:"blur",value:function(){th(this.numericInput,"blur")}},{key:"notifyValueChange",value:function(){this.setInputValue()}},{key:"incrementTitle",get:function(){return this.localizationService.get("increment")}},{key:"decrementTitle",get:function(){return this.localizationService.get("decrement")}},{key:"decimalSeparator",get:function(){return this.intl.numberSymbols().decimal}},{key:"elementValue",get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)}},{key:"focused",get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var n=this.hostElement.nativeElement;e?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus"),this.isFocused=e}}},{key:"hasDecimals",get:function(){return null!==this.decimals&&this.decimals>=0}},{key:"isDisabled",get:function(){return this.disabled||this.readonly}},{key:"arrowPress",value:function(e,n){n.preventDefault(),!this.isDisabled&&!function(r){return r.button&&2===r.button||r.which&&3===r.which}(n)&&(cW||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())}},{key:"updateValue",value:function(e){var n=this;vC(this.value,e)||this.ngZone.run(function(){n.value=e,n.ngChange(e),n.valueChange.emit(e),n.changeDetector.markForCheck()})}},{key:"replaceNumpadDotValue",value:function(){var e=this.inputValue||"";if(this.previousSelection){var n=this.numericInput.nativeElement,a=n.selectionStart,o=n.selectionEnd,s=this.previousSelection,u=s.end;n.value=e=e.substring(0,s.start)+this.decimalSeparator+e.substring(u),this.setSelection(a,o)}return e}},{key:"isValid",value:function(e){return this.numericRegex||(this.numericRegex=function(r){var n=r.min,a=r.separator;"."===a&&(a="\\"+a);var s,o=r.autoCorrect&&null!==n&&n>=0?"":"-?";return s=0===r.decimals?"\\d*":"(?:(?:\\d+(".concat(a,"\\d*)?)|(?:").concat(a,"\\d*))?"),new RegExp("^".concat(o).concat(s,"$"))}({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)}},{key:"spin",value:function(e,n){var a=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){a.spin(e,50)},n),this.addStep(e)}},{key:"addStep",value:function(e){var n=Zf(this.value||0,this.step*e);n=this.limitValue(n),n=this.restrictDecimals(n),this.setInputValue(n),this.updateValue(n)}},{key:"setSelection",value:function(e,n){this.focused&&th(this.numericInput,"setSelectionRange",e,n)}},{key:"limitValue",value:function(e){var n=e;return this.isInRange(e)||(Qf(this.max)&&e>this.max&&(n=this.max),Qf(this.min)&&eh?e>0?C=!0:_=h:g&&e0?_=d:C=!0),_){var E=this.tryPadValue(e,_);E&&lie(e)!==lie(_)&&(w=E,u=!0)}else C&&this.inputValue&&a!==s.length&&(w=parseFloat(s.substr(0,a)+s.substr(a+c)));l=this.limitValue(w),u=(u||l!==w)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+c>0}return{selectionEnd:u?String(l).length:o,selectionStart:a,value:l}}},{key:"tryPadValue",value:function(e,n){var l,a=String(Math.floor(n)).length,o=uie(e,a),s=uie(e,a+1);return this.isInRange(o)?l=o:this.isInRange(s)&&(l=s),l}},{key:"isInRange",value:function(e){return!Qf(e)||(!Qf(this.min)||this.min<=e)&&(!Qf(this.max)||e<=this.max)}},{key:"restrictModelValue",value:function(e){var n=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(n)!==n&&(n=null),n}},{key:"restrictDecimals",value:function(e,n){var a=e;if(e&&this.hasDecimals){var o=this.decimals,s=String(e);if(n||sie.test(s))a=zE(e,o);else{var l=s.split("."),u=l[1];u&&u.length>o&&(u=u.substr(0,o),a=parseFloat("".concat(l[0]).concat(".").concat(u)))}}return a}},{key:"formatInputValue",value:function(e){var n=String(e),a=sie.exec(n);return a&&(n=e.toFixed(qne(parseInt(a[1],10)))),n.replace(".",this.decimalSeparator)}},{key:"formatValue",value:function(e,n){var a;return a=null!==e&&function(r){return void 0!==r}(e)&&""!==e?n&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):"",a}},{key:"setInputValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.value,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.focused,a=this.formatValue(e,n);this.elementValue=a,this.inputValue=a}},{key:"verifySettings",value:function(){if(xt()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max","."))}},{key:"verifyValue",value:function(e){if(xt()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and ".concat(JSON.stringify(e)," was set."))}},{key:"parseOptions",value:function(e){for(var n=0;nthis.decimals&&n.lastIndexOf("0")===n.length-1}}},{key:"selectAll",value:function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)}},{key:"selectCaret",value:function(){var e=function(r){return r.selectionStart}(this.numericInput.nativeElement),n=this.elementValue,a=n.substring(0,e);if(this.setInputValue(),a.length){var o=function(r,t){var e="".concat(t,"0123456789-");return r.split("").reduce(function(n,a){return e.includes(a)?++n:n},0)}(a,this.decimalSeparator),s=this.adjustSignificantChars(n,o);this.setSelection(s,s)}else this.setSelection(0,0)}},{key:"numberOfLeadingZeroes",value:function(e){var n=e.indexOf(this.decimalSeparator),a=e.match(/^[^1-9]*?(0+)/);if(a){var s=a[1].length;return a[0].length===n?s-1:s}return 0}},{key:"adjustSignificantChars",value:function(e,n){var a=this.numberOfLeadingZeroes(e);return a>0?Math.max(0,n-a):n}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("input",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(fi),m(Ee),m(Y),m(Jn),m(be),m(nt),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-numerictextbox"]],viewQuery:function(t,e){var n;1&t&&ge(Mqe,7),2&t&&P(n=B())&&(e.numericInput=n.first)},hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-disabled",e.disableClass)("k-input",e.hostClasses)("k-numerictextbox",e.hostClasses))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",autoCorrect:"autoCorrect",format:"format",max:"max",min:"min",decimals:"decimals",placeholder:"placeholder",step:"step",spinners:"spinners",rangeValidation:"rangeValidation",tabindex:"tabindex",tabIndex:"tabIndex",changeValueOnScroll:"changeValueOnScroll",selectOnFocus:"selectOnFocus",value:"value",maxlength:"maxlength",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur"},exportAs:["kendoNumericTextBox"],features:[de([Y,{provide:Et,useValue:"kendo.numerictextbox"},{provide:jn,useExisting:ke(function(){return i}),multi:!0},{provide:tr,useExisting:ke(function(){return i}),multi:!0},{provide:Ui,useExisting:ke(function(){return i})}]),Ie],decls:4,vars:20,consts:function(){return[["kendoNumericTextBoxLocalizedMessages","","increment",$localize(Yte||(Yte=le([":kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox:Increase value"]))),"decrement",$localize(Qte||(Qte=le([":kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox:Decrease value"])))],["role","spinbutton","autocomplete","off","autocorrect","off",1,"k-input-inner",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["numericInput",""],["class","k-input-spinner k-spin-button",3,"kendoEventsOutsideAngular",4,"ngIf"],[1,"k-input-spinner","k-spin-button",3,"kendoEventsOutsideAngular"],["type","button","tabindex","-1",1,"k-spinner-increase","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],[1,"k-button-icon","k-icon","k-i-arrow-n"],["type","button","tabindex","-1",1,"k-spinner-decrease","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],[1,"k-button-icon","k-icon","k-i-arrow-s"]]},template:function(t,e){1&t&&(Wt(0,0),z(1,"input",1,2),T(3,Oqe,5,20,"span",3)),2&t&&(k(1),y("id",e.focusableId)("tabindex",e.tabIndex)("disabled",e.disabled)("readonly",e.readonly)("kendoEventsOutsideAngular",cR(12,Iqe,e.handleMouseDown,e.handleDragEnter,e.handleKeyDown,e.handleInput,e.handleFocus,e.handleBlur,e.handlePaste)),ie("aria-valuemin",e.min)("aria-valuemax",e.max)("aria-valuenow",e.value)("title",e.title)("placeholder",e.placeholder)("maxLength",e.maxlength),k(2),y("ngIf",e.spinners))},directives:[AZe,qi,qe],encapsulation:2}),i}(),hie=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(qE);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-numerictextbox-messages"]],features:[de([{provide:qE,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),fie=(Promise.resolve(null),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Ly,cr,yo],Ly,cr,yo]}),i}()),vie=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,fie]]}),i}(),LZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,fie]]}),i}(),PZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,yo]]}),i}(),AP=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}(),BZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}(),UZe=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxSuffixTemplate",""]]}),i}(),pie=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxPrefixTemplate",""]]}),i}(),gie=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-textbox-messages-base"]],inputs:{clear:"clear"},features:[j]}),i}(),zZe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(gie);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxLocalizedMessages",""]],features:[de([{provide:gie,useExisting:ke(function(){return i})}]),j]}),i}(),_ie=function(){var i=function(){function r(t,e,n,a,o,s){var l=this;p(this,r),this.localizationService=t,this.ngZone=e,this.changeDetector=n,this.renderer=a,this.injector=o,this.hostElement=s,this.focusableId="k-".concat(qn()),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new O,this.inputFocus=new O,this.inputBlur=new O,this.onFocus=new O,this.onBlur=new O,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){l.disabled||(l.selectOnFocus&&l.value&&l.ngZone.run(function(){setTimeout(function(){l.selectAll()})}),ut(l.onFocus)&&(l.isFocused||l.ngZone.run(function(){l.onFocus.emit()})),ut(l.inputFocus)&&(!l.focusChangedProgrammatically||l.focusChangedProgrammatically&&l.clearButtonClicked)&&l.ngZone.run(function(){l.inputFocus.emit()}),l.ngZone.run(function(){l.isFocused=!0}))},this.handleInputBlur=function(){l.changeDetector.markForCheck(),(ut(l.inputBlur)||pC(l.control))&&l.ngZone.run(function(){l.ngTouched(),l.inputBlur.emit()})},this.handleInput=function(u){var c=u.target,d=function(r){var t=kI(r),e=yI(r);return t&&t.safari||e&&"mobilesafari"===e.browser}(navigator.userAgent),h=d&&function(r){return/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(r)}(c.value)?u.data:c.value,f=[c.selectionStart,c.selectionEnd],g=f[0],_=f[1];l.updateValue(h),d&&c.setSelectionRange(g,_)},this.ngChange=function(u){},this.ngTouched=function(){},jt(jc),this.direction=t.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledClass",get:function(){return this.disabled}},{key:"ngOnInit",value:function(){var e=this;this.control=this.injector.get(ra,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){var e=this,n=this.hostElement.nativeElement,a=!1,o=!1;this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(n,"focusin",function(){e.isFocused||e.ngZone.run(function(){e.onFocus.emit(),e.isFocused=!0})})),e.subscriptions.add(e.renderer.listen(n,"focusout",function(l){if(e.isFocused)if(o){var u=function(r,t){for(;r&&r!==e.hostElement.nativeElement;)r=r.parentNode;return r}(l.relatedTarget);u||e.handleBlur(),o=!1}else!a&&!e.clearButtonClicked&&e.handleBlur()})),e.subscriptions.add(e.renderer.listen(n,"mouseenter",function(){a=!0})),e.subscriptions.add(e.renderer.listen(n,"mouseleave",function(){a=!1})),e.subscriptions.add(e.renderer.listen(n,"keydown",function(l){o=l.keyCode===J.Tab}))}),["size","rounded","fillMode"].forEach(function(l){e.handleClasses(e[l],l)})}},{key:"ngOnChanges",value:function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"focus",value:function(){!this.input||(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}},{key:"blur",value:function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}},{key:"clearTitle",value:function(){return this.localizationService.get("clear")}},{key:"checkClearButton",value:function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value}},{key:"clearValue",value:function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1}},{key:"writeValue",value:function(e){this.value=e,this.checkClearButton()}},{key:"registerOnChange",value:function(e){this.ngChange=e}},{key:"registerOnTouched",value:function(e){this.ngTouched=e}},{key:"setDisabledState",value:function(e){this.changeDetector.markForCheck(),this.disabled=e}},{key:"showErrorsInitial",value:function(){if(!this.control)return!1;var e=this.control;return e.invalid&&(e.dirty||e.touched)}},{key:"showSuccessInitial",value:function(){if(!this.control)return!1;var e=this.control;return e.valid&&(e.dirty||e.touched)}},{key:"successIconClasses",get:function(){return this.successIcon?"".concat(this.successIcon):"k-input-validation-icon k-icon k-i-check"}},{key:"errorIconClasses",get:function(){return this.errorIcon?"".concat(this.errorIcon):"k-input-validation-icon k-icon k-i-warning"}},{key:"clearButtonClasses",get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-x"}},{key:"hasErrors",get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon}},{key:"isSuccessful",get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon}},{key:"setSelection",value:function(e,n){this.isFocused&&th(this.input,"setSelectionRange",e,n)}},{key:"selectAll",value:function(){this.value&&this.setSelection(0,this.value.length)}},{key:"updateValue",value:function(e){var n=this;vC(this.value,e)||this.ngZone.run(function(){n.value=e,n.ngChange(e),n.valueChange.emit(e),n.checkClearButton(),n.changeDetector.markForCheck()})}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var n=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus"),this._isFocused=e}}},{key:"handleBlur",value:function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("input",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(be),m(nt),m(Ee),m(Jn),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-textbox"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,UZe,5),he(n,pie,5)),2&t&&(P(a=B())&&(e.suffixTemplate=a.first),P(a=B())&&(e.prefixTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&ge(Nqe,7),2&t&&P(n=B())&&(e.input=n.first)},hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-disabled",e.disabledClass)("k-textbox",e.hostClasses)("k-input",e.hostClasses))},inputs:{focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",value:"value",selectOnFocus:"selectOnFocus",showSuccessIcon:"showSuccessIcon",showErrorIcon:"showErrorIcon",clearButton:"clearButton",successIcon:"successIcon",errorIcon:"errorIcon",clearButtonIcon:"clearButtonIcon",size:"size",rounded:"rounded",fillMode:"fillMode",tabIndex:"tabIndex",placeholder:"placeholder",maxlength:"maxlength"},outputs:{valueChange:"valueChange",inputFocus:"inputFocus",inputBlur:"inputBlur",onFocus:"focus",onBlur:"blur"},exportAs:["kendoTextBox"],features:[de([Y,{provide:Et,useValue:"kendo.textbox"},{provide:jn,useExisting:ke(function(){return i}),multi:!0},{provide:Ui,useExisting:ke(function(){return i})}]),Ie],decls:10,vars:18,consts:function(){return[["kendoTextBoxLocalizedMessages","","clear",$localize(Jte||(Jte=le([":kendo.textbox.clear|The title for the **Clear** button in the TextBox.:Clear"])))],[1,"k-input-prefix"],[4,"ngIf"],[1,"k-input-inner",3,"id","disabled","readonly","value","kendoEventsOutsideAngular"],["input",""],["role","button","class","k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"k-input-suffix"],[3,"ngTemplateOutlet"],["role","button",1,"k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space"],[3,"ngClass"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"span",1),T(2,Lqe,1,1,null,2),x(),z(3,"input",3,4),T(5,Pqe,2,4,"span",5),T(6,Bqe,1,1,"span",6),T(7,Vqe,1,1,"span",6),A(8,"span",7),T(9,Uqe,1,1,null,2),x()),2&t&&(k(2),y("ngIf",e.prefixTemplate),k(1),y("id",e.focusableId)("disabled",e.disabled)("readonly",e.readonly)("value",e.value)("kendoEventsOutsideAngular",va(14,zqe,e.handleInputFocus,e.handleInputBlur,e.handleInput)),ie("tabindex",e.disabled?void 0:e.tabindex)("placeholder",e.placeholder)("title",e.title)("maxlength",e.maxlength),k(2),y("ngIf",e.showClearButton),k(1),y("ngIf",e.hasErrors),k(1),y("ngIf",e.isSuccessful),k(2),y("ngIf",e.suffixTemplate))},directives:[zZe,qe,En,qi,Ft],encapsulation:2}),i}(),yie=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),$Ze=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,yie],cr]}),i}(),qZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,yie],cr]}),i}(),mYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[vie,AP,bt,Fa,Ly]]}),i}(),_Ye=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),kYe=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.hostElement=e,this.kendoClass=!0,this._size="medium",jt(jc)}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"ngAfterViewInit",value:function(){var e=this;["size"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("radio",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e))},i.\u0275dir=X({type:i,selectors:[["input","kendoRadioButton",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-radio",e.kendoClass)},inputs:{size:"size"}}),i}(),CYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),bYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),kC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],qZe,$Ze,vie,LZe,PZe,AP,BZe,mYe,_Ye,CYe,bYe]}),i}();function SYe(i,r){return function(t,e){return!i.call(r,t,e)}}function Kie(i){return oi(function(r,t){var e=!1,n=0;r.subscribe(Wn(t,function(a){return(e||(e=!i(a,n++)))&&t.next(a)}))})}var DYe=["kendoTreeViewGroup",""];function EYe(i,r){if(1&i){var t=Me();A(0,"span",12),Q("click",function(){re(t);var l=D(),u=l.index,c=l.$implicit,d=D();return d.expandNode(d.nodeIndex(u),c,!d.isExpanded(c,d.nodeIndex(u)))}),z(1,"span",13),x()}if(2&i){var e=D(),n=e.index,a=e.$implicit,o=D();y("kendoTreeViewLoading",o.nodeIndex(n)),k(1),ue("k-i-collapse",o.isExpanded(a,o.nodeIndex(n)))("k-i-expand",!o.isExpanded(a,o.nodeIndex(n)))}}function TYe(i,r){if(1&i){var t=Me();A(0,"kendo-checkbox",14),Q("checkStateChange",function(){re(t);var l=D().index,u=D();return u.checkNode(u.nodeIndex(l))}),x()}if(2&i){var e=D(),n=e.$implicit,a=e.index,o=D();y("size",o.size)("node",n)("index",o.nodeIndex(a))("isChecked",o.isChecked)("tabindex",-1)}}function AYe(i,r){}var xYe=function(r,t){return{$implicit:r,index:t}};function MYe(i,r){if(1&i&&(Ve(0),T(1,AYe,0,0,"ng-template",15),Ge()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();k(1),y("ngTemplateOutlet",a.nodeTemplateRef)("ngTemplateOutletContext",ln(2,xYe,e,a.nodeIndex(n)))}}function RYe(i,r){if(1&i&&(Ve(0),te(1),Ge()),2&i){var t=D().$implicit,e=D();k(1),Nt(" ",e.nodeText(t)," ")}}function OYe(i,r){if(1&i&&z(0,"ul",16),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("nodes",a.fetchChildren)("loadOnDemand",a.loadOnDemand)("checkboxes",a.checkboxes)("expandIcons",a.expandIcons)("selectable",a.selectable)("touchActions",a.touchActions)("children",a.children)("hasChildren",a.hasChildren)("isChecked",a.isChecked)("isDisabled",a.isDisabled)("disabled",a.disabled||a.isDisabled(e,a.nodeIndex(n)))("isExpanded",a.isExpanded)("isSelected",a.isSelected)("isVisible",a.isVisible)("nodeTemplateRef",a.nodeTemplateRef)("loadMoreButtonTemplateRef",a.loadMoreButtonTemplateRef)("parentIndex",a.nodeIndex(n))("parentDataItem",e)("textField",a.nextFields)("loadMoreService",a.loadMoreService)("@toggle",!0)("trackBy",a.trackBy)}}function IYe(i,r){if(1&i&&(A(0,"li",2)(1,"div",3),T(2,EYe,2,5,"span",4),T(3,TYe,1,5,"kendo-checkbox",5),A(4,"span",6)(5,"span",7),Ve(6,8),T(7,MYe,2,5,"ng-container",9),T(8,RYe,2,1,"ng-container",10),Ge(),x()()(),T(9,OYe,1,22,"ul",11),x()),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-display-none",!n.isVisible(t,n.nodeIndex(e))),y("dataItem",t)("index",n.nodeIndex(e))("parentDataItem",n.parentDataItem)("parentIndex",n.parentIndex)("loadOnDemand",n.loadOnDemand)("checkable",n.checkboxes)("isChecked",n.isChecked(t,n.nodeIndex(e)))("isDisabled",n.disabled||n.isDisabled(t,n.nodeIndex(e)))("isVisible",n.isVisible(t,n.nodeIndex(e)))("expandable",n.expandIcons&&n.hasChildren(t))("isExpanded",n.isExpanded(t,n.nodeIndex(e)))("selectable",n.selectable)("isSelected",n.isSelected(t,n.nodeIndex(e))),ie("aria-setsize",n.totalNodesCount)("data-treeindex",n.nodeIndex(e)),k(1),y("ngClass",n.setItemClasses(n.data.length,e)),k(1),y("ngIf",n.expandIcons&&n.hasChildren(t)),k(1),y("ngIf",n.checkboxes),k(1),Qe("touch-action",n.touchActions?"":"none"),y("dataItem",t)("index",n.nodeIndex(e))("initialSelection",n.isSelected(t,n.nodeIndex(e)))("isSelected",n.isSelected),ie("data-treeindex",n.nodeIndex(e)),k(2),y("ngSwitch",n.hasTemplate),k(1),y("ngSwitchCase",!0),k(2),y("ngIf",n.isExpanded(t,n.nodeIndex(e))&&n.hasChildren(t))}}function NYe(i,r){1&i&&z(0,"span",22)}function FYe(i,r){}var LYe=function(r){return{index:r}};function PYe(i,r){if(1&i&&T(0,FYe,0,0,"ng-template",15),2&i){var t=D(2);y("ngTemplateOutlet",t.loadMoreButtonTemplateRef)("ngTemplateOutletContext",ot(2,LYe,t.loadMoreButtonIndex))}}function BYe(i,r){1&i&&(Ve(0),te(1," Load more "),Ge())}function VYe(i,r){if(1&i&&(A(0,"li",17)(1,"div",18),T(2,NYe,1,0,"span",19),A(3,"span",20)(4,"span",7),T(5,PYe,1,4,null,21),T(6,BYe,2,0,"ng-container",21),x()()()()),2&i){var t=D();ue("k-treeview-load-more-checkboxes-container",t.checkboxes),y("selectable",!1)("checkable",!1)("expandable",!1)("index",t.loadMoreButtonIndex)("parentDataItem",t.parentDataItem)("parentIndex",t.parentIndex),ie("data-treeindex",t.loadMoreButtonIndex),k(2),y("ngIf",t.loadingMoreNodes),k(1),y("index",t.loadMoreButtonIndex),ie("data-treeindex",t.loadMoreButtonIndex),k(2),y("ngIf",t.loadMoreButtonTemplateRef),k(1),y("ngIf",!t.loadMoreButtonTemplateRef)}}var GYe=["assetsContainer"];function UYe(i,r){1&i&&z(0,"span",6)}function zYe(i,r){if(1&i){var t=Me();A(0,"span",3)(1,"kendo-textbox",4),Q("valueChange",function(a){return re(t),D().filterChange.emit(a)}),T(2,UYe,1,0,"ng-template",5),x()()}if(2&i){var e=D();k(1),y("size",e.size)("value",e.filter)("clearButton",!0)("placeholder",e.filterInputPlaceholder)}}var QYe={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1651820172,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},MP=function(){function i(){p(this,i),this.changes=new O}return v(i,[{key:"notify",value:function(){this.changes.emit()}}]),i}(),JYe=function(){return!1},eQe=function(){return"none"},tQe=function(){return!1},nQe=function(){return!0},jie=function(){return!1},Wie=function(){return!0},iQe=function(r,t){return t},CC=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"expand",value:function(e,n){this.changes.next({dataItem:n,index:e,expand:!0})}},{key:"collapse",value:function(e,n){this.changes.next({dataItem:n,index:e,expand:!1})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),em=function(){var i=function(){function r(){p(this,r),this.INDEX_SEPARATOR="_"}return v(r,[{key:"nodeIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(n).concat(n?this.INDEX_SEPARATOR:"").concat(e)}},{key:"indexForLevel",value:function(e,n){return e.split(this.INDEX_SEPARATOR).slice(0,n).join(this.INDEX_SEPARATOR)}},{key:"lastLevelIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=e.split(this.INDEX_SEPARATOR);return n.length?parseInt(n[n.length-1],10):NaN}},{key:"level",value:function(e){return e.split(this.INDEX_SEPARATOR).length}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),RP=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"notifyLoaded",value:function(e){this.changes.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rQe=/^(?:a|input|select|option|textarea|button|object)$/i,tv=function(r,t){var e=r.matches||r.msMatchesSelector||r.webkitMatchesSelector;return!!e&&e.call(r,t)},tm=function(r,t){if(!document.documentElement.contains(r))return null;for(var e=r;null!==e&&1===e.nodeType;){if(tv(e,t))return e;e=e.parentElement||e.parentNode}return null},Re=function(r){return null!=r},Xie=function(r){return Array.isArray(r)},nv=function(r){var t="li.k-treeview-item";return Ze()?r.closest?r.closest(t):tm(r,t):null},Zie=function(r){if(r.tagName){var t=r.tagName.toLowerCase(),e=r.getAttribute("tabIndex"),n="-1"===e,a=null!==e&&!n;return rQe.test(t)&&(a=!r.disabled&&!n),a}return!1},Yie=function(r){return Re(tm(r,".k-treeview-leaf.k-treeview-load-more-button"))},NP=function(r,t){return Boolean(function(r,t){for(;r&&!t(r);)r=r.parentNode;return r}(r,function(e){return e===t}))},Qie=function(r){return r.nativeElement.querySelector('li[tabindex="0"]')},FP=function(r){return r?r.getAttribute("data-treeindex"):""},yu=function(r){return(r||{}).index},bC=function(r,t){return[r,t].filter(function(e){return Re(e)}).join("_")},vQe=function(r,t,e){return Re(r)?{dataItem:r,index:bC(e,t)}:null},a1=function(r,t){return{small:"k-".concat(r,"-sm"),medium:"k-".concat(r,"-md"),large:"k-".concat(r,"-lg")}[t]},LP=function(r){return r||{}},PP=function(r){return LP(r).children||[]},BP=function(r){if(!Array.isArray(r)||0===r.length)return null;for(var n=r.length-1;n>=0;n-=1){var a=r[n];if(a.visible)return a}return null},gQe=function(){function i(){p(this,i),this.ib=new em,this.nodes=[]}return v(i,[{key:"firstVisibleNode",value:function(){return(this.nodes||[]).find(function(t){return t.visible})}},{key:"lastVisibleNode",value:function(){for(var t=BP(this.nodes);Re(t)&&PP(t).length>0;){var e=PP(t),n=BP(e);if(!Re(n))return t;t=n}return t}},{key:"closestNode",value:function(t){var a=LP(this.findNode(t)).prev||this.firstVisibleNode();return LP(a).index===t?this.visibleSibling(a,1):a}},{key:"firstFocusableNode",value:function(){return this.nodes.find(function(t){return!t.disabled&&t.visible})}},{key:"findNode",value:function(t){return this.find(t,this.nodes)}},{key:"findParent",value:function(t){var e=this.ib.level(t)-1;return this.findNode(this.ib.indexForLevel(t,e))}},{key:"findVisibleChild",value:function(t){var e=this.findNode(t);return PP(e).find(function(a){return a.visible})}},{key:"findVisiblePrev",value:function(t){var e=t.index,n=this.findParent(e),a=this.ib.lastLevelIndex(e),s=this.container(n).slice(0,a).every(function(d){return!d.visible});if(0===a||s)return n;var l=this.findNode(e),u=this.visibleSibling(l,-1);if(u)for(var c=this.container(u);c.length>0&&c.some(function(d){return d.visible});)u=BP(c),c=this.container(u);return u}},{key:"findVisibleNext",value:function(t){var e=this.container(t),n=e.some(function(a){return a.visible});return 0!==e.length&&n?e.find(function(a){return a.visible}):this.visibleSibling(t,1)}},{key:"registerItem",value:function(t,e,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=[],l=this.ib.level(e),u=this.findParent(e);if(u||1===l){var c={id:t,children:s,index:e,parent:u,disabled:n,loadMoreButton:a,visible:o};this.insert(c,u)}}},{key:"unregisterItem",value:function(t,e){var n=this.find(e,this.nodes);if(n&&n.id===t){var a=this.container(n.parent);a.splice(a.indexOf(n),1)}}},{key:"childLevel",value:function(t){var e=t.filter(function(n){return Re(n)});return e&&e.length?this.ib.level(e[0].index):1}},{key:"container",value:function(t){return t?t.children:this.nodes}},{key:"find",value:function(t,e){var n=this.childLevel(e),a=this.ib.indexForLevel(t,n),o=n===this.ib.level(t),s=e.find(function(l){return l&&l.index===a});return s?o?s:this.find(t,s.children):null}},{key:"insert",value:function(t,e){this.container(e).splice(this.ib.lastLevelIndex(t.index),0,t)}},{key:"visibleSibling",value:function(t,e){if(!t)return null;for(var n=this.findParent(t.index),a=this.container(n),o=a.indexOf(t)+e,s=a[o];Re(s);){if(s.visible)return s;s=a[o+=e]}return this.visibleSibling(n,e)}}]),i}(),SC=function(){var i=function(){function r(t){var n,e=this;p(this,r),this.localization=t,this.expands=new Ot,this.moves=new Ot,this.checks=new Ot,this.selects=new Ot,this.loadMore=new Ot,this.navigable=!0,this.actions=(De(n={},J.ArrowUp,function(){return e.activate(e.model.findVisiblePrev(e.focusableItem),!0)}),De(n,J.ArrowDown,function(){return e.activate(e.model.findVisibleNext(e.focusableItem),!0)}),De(n,J.ArrowLeft,function(){return!e.isLoadMoreButton&&e.expand({expand:e.localization.rtl,intercept:e.localization.rtl?e.moveToFirstVisibleChild:e.moveToParent})}),De(n,J.ArrowRight,function(){return!e.isLoadMoreButton&&e.expand({expand:!e.localization.rtl,intercept:e.localization.rtl?e.moveToParent:e.moveToFirstVisibleChild})}),De(n,J.Home,function(){return e.activate(e.model.firstVisibleNode(),!0)}),De(n,J.End,function(){return e.activate(e.model.lastVisibleNode(),!0)}),De(n,J.Enter,function(){return e.handleEnter()}),De(n,J.Space,function(){return e.handleSpace()}),n),this.isFocused=!1,this.shouldScroll=!1,this._model=new gQe,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return v(r,[{key:"model",get:function(){return this._model},set:function(e){this._model=e}},{key:"activeIndex",get:function(){return yu(this.activeItem)||null}},{key:"isActiveExpanded",get:function(){return this.activeItem&&this.activeItem.children.length>0}},{key:"isLoadMoreButton",get:function(){return this.activeItem&&this.activeItem.loadMoreButton}},{key:"focusableItem",get:function(){return this.activeItem||this.model.firstFocusableNode()}},{key:"activate",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!this.navigable||!e||this.isActive(yu(e))||(this.isFocused=!0,this.activeItem=e||this.activeItem,this.shouldScroll=n,this.notifyMove())}},{key:"activateParent",value:function(e){this.activate(this.model.findParent(e))}},{key:"activateIndex",value:function(e){!e||this.activate(this.model.findNode(e))}},{key:"activateClosest",value:function(e){!e||yu(this.focusableItem)!==e||(this.activeItem=this.model.closestNode(e),this.notifyMove())}},{key:"activateFocusable",value:function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())}},{key:"deactivate",value:function(){!this.navigable||!this.isFocused||(this.isFocused=!1,this.notifyMove())}},{key:"checkIndex",value:function(e){this.isDisabled(e)||this.checks.next(e)}},{key:"selectIndex",value:function(e){this.isDisabled(e)||this.selects.next(e)}},{key:"notifyLoadMore",value:function(e){!Re(e)||this.loadMore.next(e)}},{key:"isActive",value:function(e){return!!e&&this.isFocused&&this.activeIndex===e}},{key:"isFocusable",value:function(e){return yu(this.focusableItem)===e}},{key:"isDisabled",value:function(e){return this.model.findNode(e).disabled}},{key:"registerItem",value:function(e,n,a){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=this.model.findNode(n);Re(l)&&(this.model.unregisterItem(l.id,l.index),this.isActive(n)&&this.deactivate()),this.model.registerItem(e,n,a,o,s)}},{key:"unregisterItem",value:function(e,n){this.isActive(n)&&this.activateParent(n),this.model.unregisterItem(e,n)}},{key:"move",value:function(e){if(this.navigable){var n=this.actions[e.keyCode];!n||(n(),e.preventDefault())}}},{key:"expand",value:function(e){var n=e.expand,a=e.intercept,o=yu(this.activeItem);!o||a(o)||this.notifyExpand(n)}},{key:"moveToParent",value:function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(yu(this.activeItem))),!0)}},{key:"moveToFirstVisibleChild",value:function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(yu(this.activeItem))),!0)}},{key:"notifyExpand",value:function(e){this.expands.next(this.navigationState(e))}},{key:"notifyMove",value:function(){this.moves.next(this.navigationState())}},{key:"navigationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{expand:e,index:this.activeIndex,isFocused:this.isFocused,shouldScroll:this.shouldScroll}}},{key:"handleEnter",value:function(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))}},{key:"handleSpace",value:function(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),VP=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"childrenLoaded",value:function(e,n){this.changes.next({item:e,children:n})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),GP=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewNodeTemplate",""]]}),i}(),UP=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewLoadMoreButtonTemplate",""]]}),i}(),ku=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),wC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),o1=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"isFirstSelected",value:function(e){return this.firstIndex===e}},{key:"setFirstSelected",value:function(e,n){this.firstIndex===e&&!1===n?this.firstIndex=null:!this.firstIndex&&n&&(this.firstIndex=e)}},{key:"select",value:function(e,n){this.changes.next({dataItem:n,index:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),mQe=/\d+$/,s1=function(){var i=function(){function r(){p(this,r),this.map=new Map}return v(r,[{key:"reset",value:function(){this.map.clear()}},{key:"registerItem",value:function(e,n){var a={children:[],item:e,parent:this.item(yu(n))};this.map.set(e.index,a)}},{key:"registerChildren",value:function(e,n){var a=this.item(e);!a||(a.children=n)}},{key:"unregisterItem",value:function(e,n){var a=this.item(e);a&&a.item.dataItem===n&&(this.map.delete(e),a.parent&&a.parent.children&&(a.parent.children=a.parent.children.filter(function(o){return o.dataItem!==n})))}},{key:"replaceItem",value:function(e,n,a){!n||(this.unregisterItem(e,n.dataItem),this.registerItem(n,a),this.addToParent(n,a))}},{key:"itemLookup",value:function(e){var n=this.item(e);return n?{children:this.mapChildren(n.children),item:n.item,parent:n.parent}:null}},{key:"hasItem",value:function(e){return this.map.has(e)}},{key:"item",value:function(e){return this.map.get(e)||null}},{key:"addToParent",value:function(e,n){if(n){var a=this.item(n.index),o=parseInt(mQe.exec(e.index)[0],10);a.children=a.children||[],a.children.splice(o,0,e)}}},{key:"mapChildren",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.map(function(a){var o=e.item(a.index),s=o.item,l=o.parent;return{children:e.mapChildren(o.children),item:s,parent:l}})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),ere=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.changeDetector=n,this.id="_".concat(qn()),this.tabindex=0,this.size="medium",this.checkStateChange=new O,this.checkState="none"}return v(r,[{key:"classWrapper",get:function(){return!0}},{key:"indeterminate",get:function(){return"indeterminate"===this.checkState}},{key:"checked",get:function(){return"checked"===this.checkState}},{key:"checkBoxClasses",get:function(){return"k-checkbox ".concat(this.size?a1("checkbox",this.size):""," k-rounded-md")}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")}},{key:"ngDoCheck",value:function(){this.checkState=this.isChecked(this.node,this.index)}},{key:"handleChange",value:function(e){var n=e.target.checked?"checked":"none";this.checkState=n,this.changeDetector.detectChanges(),this.checkStateChange.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-checkbox"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-checkbox-wrapper",e.classWrapper)},inputs:{id:"id",isChecked:"isChecked",node:"node",index:"index",labelText:"labelText",tabindex:"tabindex",size:"size"},outputs:{checkStateChange:"checkStateChange"},decls:3,vars:8,consts:[["type","checkbox",3,"id","checked","indeterminate","tabindex","change"],["tabindex","-1",1,"k-checkbox-label",3,"for"]],template:function(t,e){1&t&&(A(0,"input",0),Q("change",function(a){return e.handleChange(a)}),x(),A(1,"label",1),te(2),x()),2&t&&(_r(e.checkBoxClasses),y("id",e.id)("checked",e.checked)("indeterminate",e.indeterminate)("tabindex",e.tabindex),k(1),y("for",e.id),k(1),at(e.labelText))},encapsulation:2}),i}(),tre=function(r,t){return{dataItem:t,index:r}},_Qe=0,nre=function(){var i=function(){function r(t,e,n,a,o,s,l){p(this,r),this.element=t,this.expandService=e,this.navigationService=n,this.selectionService=a,this.lookupService=o,this.renderer=s,this.ib=l,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=_Qe++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}return v(r,[{key:"isChecked",set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"}},{key:"isExpanded",get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e}},{key:"isSelected",get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e}},{key:"isButton",get:function(){return"button"===this.role}},{key:"treeItem",get:function(){return tre(this.index,this.dataItem)}},{key:"parentTreeItem",get:function(){return this.parentDataItem?tre(this.parentIndex,this.parentDataItem):null}},{key:"ngOnInit",value:function(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()}},{key:"ngOnChanges",value:function(e){var n=e.index,a=e.isDisabled;Ki(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),a&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(n),Ki(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()}},{key:"ngOnDestroy",value:function(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce(function(e,n){return n.unsubscribe(),e},[])}},{key:"subscribe",value:function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe(function(n){e.updateTabIndex(),e.focusItem(n.shouldScroll)}),this.navigationService.expands.pipe(Ue(function(n){return n.index===e.index&&!e.isDisabled})).subscribe(function(n){return e.expand(n.expand)})]}},{key:"registerNavigationItem",value:function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()}},{key:"activateItem",value:function(){if(!this.isDisabled){var e=this.navigationService,n=this.selectionService,a=this.index;n.setFirstSelected(a,this.isSelected),!e.isActive(a)&&n.isFirstSelected(a)&&e.activateIndex(a)}}},{key:"expand",value:function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)}},{key:"isFocusable",value:function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)}},{key:"focusItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus({preventScroll:!e})}},{key:"moveLookupItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.dataItem,a=e.index,o=e.parentDataItem,s=e.parentIndex;if((!a||!a.firstChange)&&(n||a||o||s)){var l=(a||{}).previousValue||this.index;this.lookupService.replaceItem(l,this.treeItem,this.parentTreeItem)}}},{key:"moveNavigationItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.currentValue,a=e.firstChange,o=e.previousValue;!a&&Re(n)&&Re(o)&&(this.navigationService.unregisterItem(this.id,o),this.navigationService.registerItem(this.id,n,this.isDisabled,this.isButton))}},{key:"updateNodeAvailability",value:function(){var e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.unregisterItem(this.id,this.index),e.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)}},{key:"setAriaAttributes",value:function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)}},{key:"setDisabledClass",value:function(){this.setClass("k-disabled",this.isDisabled)}},{key:"setClass",value:function(e,n){this.renderer[n?"addClass":"removeClass"](this.element.nativeElement,e)}},{key:"updateTabIndex",value:function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")}},{key:"setAttribute",value:function(e,n){Re(n)?this.renderer.setAttribute(this.element.nativeElement,e,n):this.renderer.removeAttribute(this.element.nativeElement,e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(CC),m(SC),m(o1),m(s1),m(Ee),m(em))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewItem",""]],inputs:{dataItem:"dataItem",index:"index",parentDataItem:"parentDataItem",parentIndex:"parentIndex",role:"role",loadOnDemand:"loadOnDemand",checkable:"checkable",selectable:"selectable",expandable:"expandable",isChecked:"isChecked",isDisabled:"isDisabled",isVisible:"isVisible",isExpanded:"isExpanded",isSelected:"isSelected"},features:[Ie]}),i}(),ire=function(){var i=function(){function r(t,e,n){p(this,r),this.expandService=t,this.loadingService=e,this.cd=n,this._loading=!1}return v(r,[{key:"loading",get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()}},{key:"ngOnInit",value:function(){var e=this,n=this.loadingService.changes.pipe(Ue(function(a){return a===e.index}));this.subscription=this.expandService.changes.pipe(Ue(function(a){return a.index===e.index}),At(function(a){!a.expand&&e.loading&&(e.loading=!1)}),Ue(function(a){return a.expand}),Nn(function(a){return lt(a).pipe(Dd(100),Qr(n))})).subscribe(function(){return e.loading=!0}),this.subscription.add(n.subscribe(function(){return e.loading=!1}))}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(CC),m(RP),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewLoading",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-i-loading",e.loading)},inputs:{index:["kendoTreeViewLoading","index"]}}),i}(),rre=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.element=t,this.navigationService=e,this.selectionService=n,this.renderer=a,this.initialSelection=!1,this.isSelected=jie,this.subscriptions=new Je,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(Ue(function(s){return s===o.index})).subscribe(function(s){return o.selectionService.select(s,o.dataItem)})),this.subscriptions.add(this.selectionService.changes.subscribe(function(){o.updateSelectionClass(o.isSelected(o.dataItem,o.index))}))}return v(r,[{key:"ngOnChanges",value:function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"updateFocusClass",value:function(){this.render(this.navigationService.isActive(this.index),"k-focus")}},{key:"updateSelectionClass",value:function(e){this.render(e,"k-selected")}},{key:"render",value:function(e,n){this.renderer[e?"addClass":"removeClass"](this.element.nativeElement,n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(SC),m(o1),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewItemContent",""]],inputs:{dataItem:"dataItem",index:"index",initialSelection:"initialSelection",isSelected:"isSelected"},features:[Ie]}),i}(),are="k-treeview-top",ore="k-treeview-mid",zP="k-treeview-bot",sre=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.expandService=t,this.loadingService=e,this.indexBuilder=n,this.treeViewLookupService=a,this.navigationService=o,this.nodeChildrenService=s,this.dataChangeNotification=l,this.changeDetectorRef=u,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.size="medium",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new Je,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return lt([])},this.hasChildren=function(){return!1}}return v(r,[{key:"moreNodesAvailable",get:function(){return!(!Re(this.loadMoreService)||0===this.data.length)&&this.pageSize0?this.pageSize:0):this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)}},{key:"loadMoreButtonIndex",get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null}},{key:"totalNodesCount",get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length}},{key:"hasTemplate",get:function(){return Re(this.nodeTemplateRef)}},{key:"expandNode",value:function(e,n,a){a?this.expandService.expand(e,n):this.expandService.collapse(e,n)}},{key:"checkNode",value:function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)}},{key:"nodeIndex",value:function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)}},{key:"nodeText",value:function(e){return kr(Xie(this.textField)?this.textField[0]:this.textField)(e)}},{key:"ngOnDestroy",value:function(){Re(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),Re(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()}},{key:"ngOnInit",value:function(){var e=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(Ue(function(n){return n===e.loadMoreButtonIndex})).subscribe(this.loadMoreNodes.bind(this)))}},{key:"ngOnChanges",value:function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))}},{key:"fetchChildren",value:function(e,n){var a=this;return this.children(e).pipe(cl(function(){return a.loadingService.notifyLoaded(n),po}),At(function(){return a.loadingService.notifyLoaded(n)}))}},{key:"nextFields",get:function(){return Xie(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]}},{key:"loadMoreNodes",value:function(){Re(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()}},{key:"setItemClasses",value:function(e,n){return 1===e?this.parentIndex?zP:"".concat(are," ").concat(zP):0===n?are:n>0&&n0){var a=e.loadMoreButtonIndex;e.pageSize+=n.length,e.data=e.data.concat(n),e.navigationService.isActive(a)&&(e.changeDetectorRef.detectChanges(),e.reselectItemAt(a))}}))}},{key:"setNodeChildren",value:function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)}},{key:"mapToTreeItem",value:function(e){var n=this;return this.parentIndex?e.map(function(a,o){return{dataItem:a,index:n.nodeIndex(o)}}):[]}},{key:"emitChildrenLoaded",value:function(e){if(this.parentIndex){var n=e.filter(function(a){return a.dataItem});this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},n)}}},{key:"subscribeToNodesChange",value:function(){var e=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(function(n){e.data=n,e.initialNodesLoaded=!0})}},{key:"reselectItemAt",value:function(e){!Re(e)||(this.navigationService.deactivate(),this.navigationService.activateIndex(e))}},{key:"registerLoadedNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(n),this.emitChildrenLoaded(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(CC),m(RP),m(em),m(s1),m(SC),m(VP),m(MP),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoTreeViewGroup",""]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("role",e.role),ue("k-treeview-group",e.kGroupClass))},inputs:{checkboxes:"checkboxes",expandIcons:"expandIcons",disabled:"disabled",selectable:"selectable",touchActions:"touchActions",loadOnDemand:"loadOnDemand",trackBy:"trackBy",nodes:"nodes",textField:"textField",parentDataItem:"parentDataItem",parentIndex:"parentIndex",nodeTemplateRef:"nodeTemplateRef",loadMoreButtonTemplateRef:"loadMoreButtonTemplateRef",loadMoreService:"loadMoreService",size:"size",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isVisible:"isVisible",isSelected:"isSelected",children:"children",hasChildren:"hasChildren"},features:[Ie],attrs:DYe,decls:2,vars:3,consts:[["class","k-treeview-item","kendoTreeViewItem","",3,"k-display-none","dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-treeview-item","kendoTreeViewItem","","role","button",3,"k-treeview-load-more-checkboxes-container","selectable","checkable","expandable","index","parentDataItem","parentIndex",4,"ngIf"],["kendoTreeViewItem","",1,"k-treeview-item",3,"dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected"],[3,"ngClass"],["class","k-treeview-toggle",3,"kendoTreeViewLoading","click",4,"ngIf"],[3,"size","node","index","isChecked","tabindex","checkStateChange",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf",3,"dataItem","index","initialSelection","isSelected"],[1,"k-treeview-leaf-text"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy",4,"ngIf"],[1,"k-treeview-toggle",3,"kendoTreeViewLoading","click"],[1,"k-icon"],[3,"size","node","index","isChecked","tabindex","checkStateChange"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy"],["kendoTreeViewItem","","role","button",1,"k-treeview-item",3,"selectable","checkable","expandable","index","parentDataItem","parentIndex"],[1,"k-treeview-bot"],["class","k-icon k-i-loading k-i-expand",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf","k-treeview-load-more-button",3,"index"],[4,"ngIf"],[1,"k-icon","k-i-loading","k-i-expand"]],template:function(t,e){1&t&&(T(0,IYe,10,30,"li",0),T(1,VYe,7,14,"li",1)),2&t&&(y("ngForOf",e.data)("ngForTrackBy",e.trackBy),k(1),y("ngIf",e.initialNodesLoaded&&e.moreNodesAvailable))},directives:[ere,i,gn,nre,Ft,qe,ire,rre,kd,Vp,En,$R],encapsulation:2,data:{animation:[ef("toggle",[iu("void => *",[Lt({height:0}),Ai("0.1s ease-in",Lt({height:"*"}))]),iu("* => void",[Lt({height:"*"}),Ai("0.1s ease-in",Lt({height:0}))])])]}}),i}(),bQe=[CC,em,s1,RP,VP,SC,o1,MP,Y,{provide:Et,useValue:"kendo.treeview"},{provide:ku,useExisting:ke(function(){return is})},{provide:wC,useExisting:ke(function(){return is})}],is=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){var f=this;p(this,r),this.element=t,this.changeDetectorRef=e,this.expandService=n,this.navigationService=a,this.nodeChildrenService=o,this.selectionService=s,this.treeViewLookupService=l,this.ngZone=u,this.renderer=c,this.dataChangeNotification=d,this.localization=h,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return f.data},this.childrenLoaded=new O,this.onBlur=new O,this.onFocus=new O,this.expand=new O,this.collapse=new O,this.nodeDragStart=new O,this.nodeDrag=new O,this.filterStateChange=new O,this.nodeDrop=new O,this.nodeDragEnd=new O,this.addItem=new O,this.removeItem=new O,this.checkedChange=new O,this.selectionChange=new O,this.filterChange=new O,this.nodeClick=new O,this.nodeDblClick=new O,this.trackBy=iQe,this.isDisabled=tQe,this.isVisible=Wie,this.navigable=!0,this.children=function(){return lt([])},this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new xi([]),this._animate=!0,this._size="medium",this.subscriptions=new Je,this.domSubscriptions=[],jt(QYe)}return v(r,[{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"animate",get:function(){return!this._animate},set:function(e){this._animate=e}},{key:"nodeTemplateRef",get:function(){return this._nodeTemplateRef||this.nodeTemplateQuery},set:function(e){this._nodeTemplateRef=e}},{key:"loadMoreButtonTemplateRef",get:function(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery},set:function(e){this._loadMoreButtonTemplateRef=e}},{key:"nodes",get:function(){return this.data.value},set:function(e){this.data.next(e||[]),this.dataChangeNotification.notify()}},{key:"hasChildren",get:function(){return this._hasChildren||JYe},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}},{key:"isChecked",get:function(){return this._isChecked||eQe},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)}},{key:"isExpanded",get:function(){return this._isExpanded||nQe},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}},{key:"isSelected",get:function(){return this._isSelected||jie},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";"none"!==this.size&&this.renderer.removeClass(this.element.nativeElement,a1("treeview",this.size)),this.renderer.addClass(this.element.nativeElement,a1("treeview",n)),this._size=e}},{key:"ngOnChanges",value:function(e){this.navigationService.navigable=Boolean(this.navigable),Ki(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(function(e){return e()})}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe(function(n){return e.childrenLoaded.emit(n)})),this.subscriptions.add(this.expandService.changes.subscribe(function(n){var a=n.index,o=n.dataItem;return n.expand?e.expand.emit({index:a,dataItem:o}):e.collapse.emit({index:a,dataItem:o})})),this.subscriptions.add(this.navigationService.checks.subscribe(function(n){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(n))})),this.subscriptions.add(this.selectionService.changes.subscribe(function(n){ut(e.selectionChange)&&e.ngZone.run(function(){e.selectionChange.emit(n)})})),this.element&&this.ngZone.runOutsideAngular(function(){e.attachDomHandlers()}),this.size&&this.renderer.addClass(this.element.nativeElement,a1("treeview",this.size))}},{key:"blur",value:function(){if(Ze()){var e=Qie(this.element);document.activeElement===e&&e.blur()}}},{key:"focus",value:function(e){var n=e||yu(this.navigationService.focusableItem);this.navigationService.activateIndex(n);var a=Qie(this.element);a&&a.focus()}},{key:"itemLookup",value:function(e){return this.treeViewLookupService.itemLookup(e)}},{key:"rebindChildren",value:function(){this.dataChangeNotification.notify()}},{key:"expandNode",value:function(e,n){this.expandService.expand(n,e)}},{key:"collapseNode",value:function(e,n){this.expandService.collapse(n,e)}},{key:"getNodePageSize",value:function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)}},{key:"setNodePageSize",value:function(e,n){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,n)}},{key:"preloadChildNodes",value:function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)}},{key:"attachDomHandlers",value:function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))}},{key:"focusHandler",value:function(e){var a,n=this;tv(e.target,".k-treeview-item")?a=e.target:Zie(e.target)||(a=nv(e.target)),a&&(this.navigationService.activateIndex(FP(e.target)),!this.isActive&&ut(this.onFocus)&&this.ngZone.run(function(){n.onFocus.emit()}),this.isActive=!0)}},{key:"blurHandler",value:function(e){var n=this;this.isActive&&tv(e.target,".k-treeview-item")&&(!e.relatedTarget||!tv(e.relatedTarget,".k-treeview-item")||!NP(e.relatedTarget,this.element.nativeElement))&&(this.navigationService.deactivate(),this.isActive=!1,ut(this.onBlur)&&this.ngZone.run(function(){n.onBlur.emit()}))}},{key:"clickHandler",value:function(e){var n=this,a=e.target;if(("contextmenu"!==e.type||ut(this.nodeClick))&&("click"!==e.type||ut(this.nodeClick)||ut(this.selectionChange)||Yie(a))&&("dblclick"!==e.type||ut(this.nodeDblClick))&&!Zie(a)&&(function(r){if(!Ze())return null;for(var e=r;e&&!tv(e,".k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)e=e.parentNode;return e?tv(e,".k-treeview-leaf:not(.k-treeview-load-more-button)"):void 0}(a)||Yie(a))&&NP(a,this.element.nativeElement)){var o=FP(nv(a));!o||this.navigationService.isDisabled(o)||this.ngZone.run(function(){var s=n.treeViewLookupService.itemLookup(o);if("click"===e.type){if(n.navigationService.model.findNode(o).loadMoreButton)return void n.navigationService.notifyLoadMore(o);n.navigationService.selectIndex(o)}("dblclick"===e.type?n.nodeDblClick:n.nodeClick).emit({item:s.item,originalEvent:e,type:e.type})})}}},{key:"keydownHandler",value:function(e){var n=this;this.isActive&&this.navigable&&this.ngZone.run(function(){n.navigationService.move(e)})}},{key:"verifyLoadMoreService",value:function(){if(xt()&&!Re(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See ".concat("http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/","."))}},{key:"registerLookupItems",value:function(e){var n=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Re(e)&&0!==e.length){var o=yu(a),s=e.map(function(l,u){return vQe(l,u,o)});Re(a)&&this.treeViewLookupService.registerChildren(o,s),s.forEach(function(l){n.treeViewLookupService.registerItem(l,a),n.hasChildren(l.dataItem)&&n.children(l.dataItem).subscribe(function(u){return n.registerLookupItems(u,l)})})}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(nt),m(CC),m(SC),m(VP),m(o1),m(s1),m(be),m(Ee),m(MP),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-treeview"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,GP,5),he(n,UP,5)),2&t&&(P(a=B())&&(e.nodeTemplateQuery=a.first),P(a=B())&&(e.loadMoreButtonTemplateQuery=a.first))},viewQuery:function(t,e){var n;1&t&&ge(GYe,7,ei),2&t&&P(n=B())&&(e.assetsContainer=n.first)},hostVars:5,hostBindings:function(t,e){2&t&&(ie("role",e.role)("dir",e.direction),JM("@.disabled",e.animate),ue("k-treeview",e.classNames))},inputs:{filterInputPlaceholder:"filterInputPlaceholder",animate:"animate",nodeTemplateRef:["nodeTemplate","nodeTemplateRef"],loadMoreButtonTemplateRef:["loadMoreButtonTemplate","loadMoreButtonTemplateRef"],trackBy:"trackBy",nodes:"nodes",textField:"textField",hasChildren:"hasChildren",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isSelected:"isSelected",isVisible:"isVisible",navigable:"navigable",children:"children",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",size:"size"},outputs:{childrenLoaded:"childrenLoaded",onBlur:"blur",onFocus:"focus",expand:"expand",collapse:"collapse",nodeDragStart:"nodeDragStart",nodeDrag:"nodeDrag",filterStateChange:"filterStateChange",nodeDrop:"nodeDrop",nodeDragEnd:"nodeDragEnd",addItem:"addItem",removeItem:"removeItem",checkedChange:"checkedChange",selectionChange:"selectionChange",filterChange:"filterChange",nodeClick:"nodeClick",nodeDblClick:"nodeDblClick"},exportAs:["kendoTreeView"],features:[de(bQe),Ie],decls:4,vars:20,consts:[["class","k-treeview-filter",4,"ngIf"],["kendoTreeViewGroup","","role","group",1,"k-treeview-lines",3,"size","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","textField","nodes","loadMoreService","trackBy"],["assetsContainer",""],[1,"k-treeview-filter"],[3,"size","value","clearButton","placeholder","valueChange"],["kendoTextBoxPrefixTemplate",""],[1,"k-input-icon","k-icon","k-i-search"]],template:function(t,e){1&t&&(T(0,zYe,3,4,"span",0),z(1,"ul",1),Wt(2,null,2)),2&t&&(y("ngIf",e.filterable),k(1),y("size",e.size)("loadOnDemand",e.loadOnDemand)("checkboxes",e.checkboxes)("expandIcons",e.expandIcons)("selectable",e.selectable)("touchActions",e.touchActions)("children",e.children)("hasChildren",e.hasChildren)("isChecked",e.isChecked)("isDisabled",e.isDisabled)("isExpanded",e.isExpanded)("isSelected",e.isSelected)("isVisible",e.isVisible)("nodeTemplateRef",null==e.nodeTemplateRef?null:e.nodeTemplateRef.templateRef)("loadMoreButtonTemplateRef",null==e.loadMoreButtonTemplateRef?null:e.loadMoreButtonTemplateRef.templateRef)("textField",e.textField)("nodes",e.fetchNodes)("loadMoreService",e.loadMoreService)("trackBy",e.trackBy))},directives:[_ie,sre,qe,pie],encapsulation:2}),i}();!function xQe(i){var r,t=!1}(function(){if(!Ze()||!Re(document.body))return!1;var r=document.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='
child
'),document.body.appendChild(r);var t=10!==r.children[0].getBoundingClientRect().top;return document.body.removeChild(r),t}),new RegExp("(auto|scroll)"),new em,new em;var xre,Mre,Rre,Ore,Ire,Nre,Fre,Lre,Pre,WQe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),$Qe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,WQe,kC]]}),i}(),qQe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[$Qe]]}),i}(),XQe=["input"],ZQe=function(r,t){return{focus:r,blur:t}},YQe=["content"],QQe=["list"],JQe=["virtualContainer"];function eJe(i,r){}var Cu=function(r,t){return{templateRef:r,$implicit:t}};function tJe(i,r){if(1&i&&T(0,eJe,0,0,"ng-template",10),2&i){var t=D(2);y("templateContext",ln(1,Cu,t.fixedGroupTemplate.templateRef,t.currentGroup))}}function nJe(i,r){if(1&i&&(A(0,"span"),te(1),x()),2&i){var t=D(2);_r(t.listGroupStickyHeaderTextClass),k(1),at(t.currentGroup)}}var Wre=function(r,t,e){return{"height.px":r,"minHeight.px":t,boxSizing:e}};function iJe(i,r){if(1&i&&(A(0,"div",8),T(1,tJe,1,4,null,5),T(2,nJe,2,3,"ng-template",9),x()),2&i){var t=D();_r(t.listGroupStickyHeaderClass),y("ngStyle",va(5,Wre,null==t.virtual?null:t.virtual.itemHeight,null==t.virtual?null:t.virtual.itemHeight,t.virtual?"border-box":"inherit")),k(1),y("ngIf",t.fixedGroupTemplate),k(1),y("ngIf",!t.fixedGroupTemplate)}}function rJe(i,r){if(1&i){var t=Me();A(0,"input",14),Q("change",function(o){re(t);var s=D().index;return D(2).onCheckedChange(o,s)}),x()}if(2&i){var e=D().index,n=D(2);y("ngClass",n.checkboxClasses)("checked",n.isChecked(e))}}function aJe(i,r){}function oJe(i,r){if(1&i&&T(0,aJe,0,0,"ng-template",10),2&i){var t=D().$implicit,e=D(2);y("templateContext",ln(1,Cu,e.template.templateRef,t))}}function sJe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D().$implicit,e=D(2);k(1),at(e.getText(t))}}var $re=function(r,t){return{"k-disabled":r,"k-table-alt-row":t}};function lJe(i,r){if(1&i&&(A(0,"li",12),T(1,rJe,1,2,"input",13),T(2,oJe,1,4,null,5),T(3,sJe,2,1,"ng-template",9),x()),2&i){var t=r.$implicit,e=r.index,n=D(2);_r(n.listItemClass),y("checkboxes",n.checkboxes)("height",null==n.virtual?null:n.virtual.itemHeight)("index",e+n.startFrom)("multipleSelection",n.multipleSelection)("ngClass",ln(12,$re,n.isDisabled(e),n.isAltRow(e))),ie("id",n.optionPrefix+"-"+n.getValue(t))("tabIndex",-1),k(1),y("ngIf",n.checkboxes.enabled),k(1),y("ngIf",n.template),k(1),y("ngIf",!n.template)}}function uJe(i,r){1&i&&T(0,lJe,4,15,"ng-template",11),2&i&&y("ngForOf",D().data)}function cJe(i,r){}function dJe(i,r){if(1&i&&T(0,cJe,0,0,"ng-template",10),2&i){var t=D(2).$implicit,e=D(2);y("templateContext",ln(1,Cu,e.groupTemplate.templateRef,t.value))}}function hJe(i,r){1&i&&te(0),2&i&&at(D(2).$implicit.value)}function fJe(i,r){if(1&i&&(A(0,"li",18)(1,"span"),T(2,dJe,1,4,null,5),T(3,hJe,1,1,"ng-template",9),x()()),2&i){var t=D(),e=t.index,n=t.$implicit,a=D(2);_r(a.listGroupItemClass),ue("k-table-alt-row",a.isAltRow(e-1)),y("ngStyle",va(12,Wre,null==a.virtual?null:a.virtual.itemHeight,null==a.virtual?null:a.virtual.itemHeight,a.virtual?"border-box":"inherit")),ie("group-index",n.index)("id",a.optionPrefix+"-"+a.getValue(n.value))("tabIndex",-1),k(1),_r(a.listGroupItemTextClass),k(1),y("ngIf",a.groupTemplate),k(1),y("ngIf",!a.groupTemplate)}}function vJe(i,r){}function pJe(i,r){if(1&i&&T(0,vJe,0,0,"ng-template",10),2&i){var t=D(2).$implicit,e=D(2);y("templateContext",ln(1,Cu,e.template.templateRef,t.value))}}function gJe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D(2).$implicit,e=D(2);k(1),at(e.getText(t.value))}}function mJe(i,r){if(1&i&&(A(0,"li",19),T(1,pJe,1,4,null,5),T(2,gJe,2,1,"ng-template",9),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D(2);_r(a.listItemClass),y("height",null==a.virtual?null:a.virtual.itemHeight)("index",e.offsetIndex)("multipleSelection",a.multipleSelection)("ngClass",ln(11,$re,a.isDisabled(e.offsetIndex),a.isAltRow(n-1))),ie("absolute-index",e.index)("id",a.optionPrefix+"-"+a.getValue(e.value))("tabIndex",-1),k(1),y("ngIf",a.template),k(1),y("ngIf",!a.template)}}function _Je(i,r){if(1&i&&(T(0,fJe,4,16,"li",16),T(1,mJe,3,14,"li",17)),2&i){var t=r.$implicit;y("ngIf",t.header&&t.index>0),k(1),y("ngIf",!t.header)}}function yJe(i,r){1&i&&T(0,_Je,2,2,"ng-template",11),2&i&&y("ngForOf",D().data)}function kJe(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().listResize.emit()}),x()}}function CJe(i,r){if(1&i){var t=Me();A(0,"div",21,22)(2,"div")(3,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().listResize.emit()}),x()()()}if(2&i){var e=D();k(2),Qe("height",e.scrollHeight,"px")}}var im=["container"],rm=["popupTemplate"],c1=["optionsList"];function bJe(i,r){if(1&i){var t=Me();A(0,"span",8),Q("click",function(a){return re(t),D().clearValue(a)})("mousedown",function(a){return a.preventDefault()}),z(1,"span",9),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),ie("title",e.messageFor("clearTitle"))}}function SJe(i,r){1&i&&z(0,"span",10)}function wJe(i,r){}var fr=function(r){return{templateRef:r}};function DJe(i,r){if(1&i&&T(0,wJe,0,0,"ng-template",15),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function EJe(i,r){}function TJe(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function AJe(i,r){if(1&i&&(A(0,"div",16),T(1,EJe,0,0,"ng-template",17),T(2,TJe,2,1,"ng-template",6),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,null==t.noDataTemplate?null:t.noDataTemplate.templateRef)),k(1),y("ngIf",!t.noDataTemplate)}}function xJe(i,r){}function MJe(i,r){if(1&i&&T(0,xJe,0,0,"ng-template",15),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function RJe(i,r){if(1&i){var t=Me();T(0,DJe,1,3,null,11),A(1,"kendo-list",12,13),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(3,AJe,3,5,"div",14),T(4,MJe,1,3,null,11)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.valueField)("valueField",e.valueField)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function OJe(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",18),Q("resize",function(){return re(t),D().onResize()}),x()}}var IJe=["select"],DC=function(r){return{mousedown:r}};function NJe(i,r){if(1&i){var t=Me();A(0,"span",10),Q("click",function(a){return re(t),D().clearValue(a)}),z(1,"span",11),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),y("kendoEventsOutsideAngular",ot(4,DC,e.preventEventDefault)),ie("title",e.messageFor("clearTitle"))}}function FJe(i,r){}function LJe(i,r){if(1&i&&T(0,FJe,0,0,"ng-template",16),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function PJe(i,r){}function BJe(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function VJe(i,r){if(1&i&&(A(0,"div",17),T(1,PJe,0,0,"ng-template",18),T(2,BJe,2,1,"ng-template",8),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function GJe(i,r){}function UJe(i,r){if(1&i&&T(0,GJe,0,0,"ng-template",16),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function zJe(i,r){if(1&i){var t=Me();T(0,LJe,1,3,null,12),A(1,"kendo-list",13,14),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(3,VJe,3,5,"div",15),T(4,UJe,1,3,null,12)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function HJe(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",19),Q("resize",function(){return re(t),D().onResize()}),x()}}function KJe(i,r){}function jJe(i,r){if(1&i&&T(0,KJe,0,0,"ng-template",9),2&i){var t=D();y("templateContext",ln(1,Cu,t.valueTemplate.templateRef,t.dataItem))}}function WJe(i,r){1&i&&te(0),2&i&&at(D().getText())}function $Je(i,r){if(1&i){var t=Me();A(0,"div",13),Q("click",function(a){return a.stopImmediatePropagation()}),A(1,"span",14),z(2,"span",15),A(3,"input",16),Q("ngModelChange",function(a){return re(t),D(2).filterText=a})("keydown",function(a){return re(t),D(2).keydown(a)})("input",function(a){return re(t),D(2).handleFilter(a)})("focus",function(){return re(t),D(2).onFilterFocus()})("blur",function(){return re(t),D(2).blurFilterInput()}),x()()()}if(2&i){var e=D(2);k(1),y("ngClass",e.filterInputClasses),k(2),y("filterInput",e.isFocused&&!e.touchEnabled)("dir",e.direction)("ngModel",e.filterText),ie("aria-owns",e.ariaOwns)("aria-activedescendant",e.ariaActivedescendant)("aria-label",e.noDataLabel)}}var qre=function(r){return{"k-disabled":r}};function qJe(i,r){if(1&i&&(A(0,"div",17)(1,"div",18),te(2),x()()),2&i){var t=D(2);y("ngClass",t.optionLabelSizeClass),k(1),y("ngClass",ot(4,qre,t.isDisabledDefaultItem))("index",-1),k(1),Nt(" ",t.getDefaultItemText()," ")}}function XJe(i,r){}function ZJe(i,r){if(1&i&&(A(0,"div",17)(1,"div",18),T(2,XJe,0,0,"ng-template",9),x()()),2&i){var t=D(2);y("ngClass",t.optionLabelSizeClass),k(1),y("ngClass",ot(4,qre,t.isDisabledDefaultItem))("index",-1),k(1),y("templateContext",ln(6,Cu,t.itemTemplate.templateRef,t.defaultItem))}}function YJe(i,r){}function QJe(i,r){if(1&i&&T(0,YJe,0,0,"ng-template",9),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function JJe(i,r){}function eet(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function tet(i,r){if(1&i&&(A(0,"div",19),T(1,JJe,0,0,"ng-template",20),T(2,eet,2,1,"ng-template",4),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function net(i,r){}function iet(i,r){if(1&i&&T(0,net,0,0,"ng-template",9),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function ret(i,r){if(1&i){var t=Me();T(0,$Je,4,7,"ng-template",4),T(1,qJe,3,6,"ng-template",4),T(2,ZJe,3,9,"ng-template",4),T(3,QJe,1,3,null,3),A(4,"kendo-list",10,11),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(6,tet,3,5,"div",12),T(7,iet,1,3,null,3)}if(2&i){var e=D();y("ngIf",e.filterable),k(1),y("ngIf",e.defaultItem&&!e.itemTemplate),k(1),y("ngIf",e.defaultItem&&e.itemTemplate),k(1),y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("template",e.itemTemplate)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function aet(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",21),Q("resize",function(){return re(t),D().onResize()}),x()}}function oet(i,r){}function set(i,r){1&i&&T(0,oet,0,0,"ng-template")}function uet(i,r){}function cet(i,r){if(1&i&&T(0,uet,0,0,"ng-template",12),2&i){var t=D(2).$implicit,e=D();y("templateContext",ln(1,Cu,e.groupTemplate.templateRef,t))}}function det(i,r){if(1&i&&te(0),2&i){var t=D(2).$implicit;Jl("",t.length," ",1===t.length?"item":"items"," selected")}}function het(i,r){if(1&i&&(A(0,"span",9),T(1,cet,1,4,null,10),T(2,det,1,2,"ng-template",11),x()),2&i){var t=D(2);k(1),y("ngIf",t.groupTemplate),k(1),y("ngIf",!t.groupTemplate)}}function fet(i,r){}function vet(i,r){if(1&i&&T(0,fet,0,0,"ng-template",12),2&i){var t=D(2).$implicit,e=D();y("templateContext",ln(1,Cu,e.template.templateRef,t))}}function pet(i,r){if(1&i&&te(0),2&i){var t=D(2),e=t.$implicit,n=t.index,a=D();at(a.tagProp(e,a.textField,n))}}function get(i,r){if(1&i&&(A(0,"span",9),T(1,vet,1,4,null,10),T(2,pet,1,1,"ng-template",11),x()),2&i){var t=D(2);k(1),y("ngIf",t.template),k(1),y("ngIf",!t.template)}}var met=function(r,t,e,n,a,o,s,l,u,c,d,h){return{"k-focus":r,"k-disabled":t,"k-chip-sm":e,"k-chip-md":n,"k-chip-lg":a,"k-rounded-sm":o,"k-rounded-md":s,"k-rounded-lg":l,"k-rounded-full":u,"k-chip-solid k-chip-solid-base":c,"k-chip-flat k-chip-flat-base":d,"k-chip-outline k-chip-outline-base":h}};function _et(i,r){if(1&i){var t=Me();A(0,"div",1)(1,"span",2),T(2,set,1,0,null,3),T(3,het,3,2,"ng-template",null,4,$n),T(5,get,3,2,"ng-template",null,5,$n),x(),A(7,"span",6)(8,"span",7)(9,"span",8),Q("mousedown",function(u){var c=re(t),d=c.$implicit,h=c.index;return D().deleteTag(u,d,h)}),x()()()()}if(2&i){var e=r.$implicit,n=r.index,a=Yt(4),o=Yt(6),s=D();y("ngClass",dR(7,met,[n===s.focused,s.isTagDisabled(e,n),"small"===s.size,"medium"===s.size,"large"===s.size,"small"===s.rounded,"medium"===s.rounded,"large"===s.rounded,"full"===s.rounded,"solid"===s.fillMode,"flat"===s.fillMode,"outline"===s.fillMode])),ie("id",s.itemId(e,n))("aria-hidden",s.tagAriaHidden(n)),k(2),y("ngIf",s.isGroupTag(e))("ngIfThen",a)("ngIfElse",o),k(6),ie("aria-hidden",n!==s.focused)}}var yet=["*"];function ket(i,r){if(1&i){var t=Me();A(0,"span",9),Q("mousedown",function(a){return re(t),D().clearAll(a)}),z(1,"span",10),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),ie("title",e.messageFor("clearTitle"))}}function Cet(i,r){1&i&&z(0,"span",11)}function bet(i,r){}function wet(i,r){if(1&i&&T(0,bet,0,0,"ng-template",17),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function Det(i,r){}function Eet(i,r){if(1&i&&T(0,Det,0,0,"ng-template",17),2&i){var t=D(3);y("templateContext",ln(1,Cu,t.customItemTemplate.templateRef,t.text))}}function Tet(i,r){1&i&&te(0),2&i&&at(D(3).text)}function Aet(i,r){if(1&i&&(A(0,"div",18)(1,"div",19),T(2,Eet,1,4,null,20),T(3,Tet,1,1,"ng-template",null,21,$n),z(5,"span",22),x()()),2&i){var t=Yt(4),e=D(2);y("ngClass",e.customItemSizeClass),k(1),y("multipleSelection",!0)("index",-1),k(1),y("ngIf",e.customItemTemplate)("ngIfElse",t)}}function xet(i,r){}function Met(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function Ret(i,r){if(1&i&&(A(0,"div",23),T(1,xet,0,0,"ng-template",24),T(2,Met,2,1,"ng-template",7),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function Oet(i,r){}function Iet(i,r){if(1&i&&T(0,Oet,0,0,"ng-template",17),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function Net(i,r){if(1&i){var t=Me();T(0,wet,1,3,null,12),T(1,Aet,6,5,"div",13),A(2,"kendo-list",14,15),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(4,Ret,3,5,"div",16),T(5,Iet,1,3,null,12)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("ngIf",e.allowCustom&&e.text),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("height",e.listHeight)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("show",e.isOpen)("multipleSelection",!0)("virtual",e.virtual)("checkboxes",e.checkboxes),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function Fet(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",25),Q("resize",function(){return re(t),D().onResize()}),x()}}var mae,_ae,d1={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652188959,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},fe=function(r){return null!=r},ro=function(){var t,e,r="";for(t=0;t<32;t++)e=16*Math.random()|0,(8===t||12===t||16===t||20===t)&&(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16);return r},Sa=function(r){return Array.isArray(r)},av=function(r){return fe(r)&&"object"==typeof r},Yre=function(r){return"string"==typeof r&&0===r.length},h1=function(r){return Sa(r)&&r.every(function(t){return av(t)})},YP=function(r,t,e){var n=t.map(function(a){return fe(a)&&fe(rt(a,e))?rt(a,e):a});return r.reduce(function(a,o){var s=fe(o)&&fe(rt(o,e))?rt(o,e):o,l=n.indexOf(s);return-1!==l&&a.push(l),a},[])},rt=function(r,t){return fe(r)?fe(t)&&av(r)?kr(t)(r):r:null},Qre=function(r,t,e){if(!fe(r))return!1;var n=String(r);return e&&(n=n.toLowerCase()),0===n.indexOf(t)},am=function(r){return r.className.includes("ng-untouched")},ov=function(r){},Ktt=function(r,t){var e=r.matches||r.msMatchesSelector||r.webkitMatchesSelector;return!!e&&e.call(r,t)},EC=function(r,t,e){return r.nativeElement.contains(t)||e&&e.popupElement.contains(t)},Un=function(r,t){return{small:"k-".concat(r,"-sm"),medium:"k-".concat(r,"-md"),large:"k-".concat(r,"-lg")}[t]},vr=function(r){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[r]},aa=function(r,t){return{solid:"k-".concat(r,"-solid"),flat:"k-".concat(r,"-flat"),outline:"k-".concat(r,"-outline")}[t]},ah=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.valueChange=new O,this.onBlur=new O,this.onFocus=new O,this.onClick=new O,this.onNavigate=new O,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=t.rtl?"rtl":"ltr",this.renderer=e}return v(r,[{key:"userInput",get:function(){return this._userInput},set:function(e){this._userInput=e||""}},{key:"value",get:function(){return this.input.nativeElement.value}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()}},{key:"ariaExpanded",get:function(){return"combobox"===this.role?this.popupOpen:null}},{key:"ngOnInit",value:function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngOnChanges",value:function(e){if(this.input&&(e.userInput||e.suggestedText)){var a=this.input.nativeElement.selectionStart,o=(e.userInput&&e.userInput.previousValue?this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"":this._previousValue).length===a;this.writeInputValue(this.suggestedText?function(r,t){return r.concat(t.substr(t.toLowerCase().indexOf(r.toLowerCase())+r.length))}(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):o?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(a,a),this._previousValue=this.userInput}}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"writeInputValue",value:function(e){Ze()&&this.renderer.setProperty(this.input.nativeElement,"value",e)}},{key:"setInputSelection",value:function(e,n){if(Ze()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,n)}catch(a){}}},{key:"handleInput",value:function(e){var n=e.target.value;n!==this.userInput&&(this._previousValue=n,this.valueChange.emit(n))}},{key:"handleFocus",value:function(e){this.onFocus.emit(e)}},{key:"handleBlur",value:function(e){this.onBlur.emit(e)}},{key:"handleKeydown",value:function(e){[J.ArrowUp,J.ArrowDown,J.ArrowLeft,J.ArrowRight,J.Enter,J.Escape,J.Delete,J.Backspace,J.Home,J.End].indexOf(e.keyCode)>-1&&this.onNavigate.emit(e)}},{key:"focus",value:function(){Ze()&&this.input.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.input.nativeElement.blur()}},{key:"setInputSize",value:function(){var e=function(u){return u?u.length:0},n=this.input.nativeElement,a=e(this.placeholder),o=e(this.value),s=Math.max(a,o,1);this.renderer.setAttribute(n,"size",s.toString())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-searchbar"]],viewQuery:function(t,e){var n;1&t&&ge(XQe,7),2&t&&P(n=B())&&(e.input=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-searchbar",e.searchBarClass)},inputs:{id:"id",listId:"listId",tagListId:"tagListId",activeDescendant:"activeDescendant",noDataLabel:"noDataLabel",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",popupOpen:"popupOpen",role:"role",userInput:"userInput",suggestedText:"suggestedText",placeholder:"placeholder"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},features:[Ie],decls:2,vars:21,consts:[["autocomplete","off","aria-haspopup","listbox",3,"id","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope","input","keydown"],["input",""]],template:function(t,e){1&t&&(A(0,"input",0,1),Q("input",function(a){return e.handleInput(a)})("keydown",function(a){return e.handleKeydown(a)}),x()),2&t&&(_r("k-input-inner"),y("id",e.id)("disabled",e.disabled)("readonly",e.readonly)("placeholder",e.placeholder)("kendoEventsOutsideAngular",ln(18,ZQe,e.handleFocus,e.handleBlur))("scope",e),ie("tabIndex",e.tabIndex)("dir",e.direction)("role",e.role)("aria-disabled",e.disabled)("aria-readonly",e.readonly)("aria-expanded",e.ariaExpanded)("aria-owns",e.listId)("aria-describedby",e.tagListId)("aria-activedescendant",e.activeDescendant)("aria-label",e.noDataLabel))},directives:[qi],encapsulation:2}),i}(),TC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListItemTemplate",""],["","kendoComboBoxItemTemplate",""],["","kendoAutoCompleteItemTemplate",""],["","kendoMultiSelectItemTemplate",""]]}),i}(),sv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListHeaderTemplate",""],["","kendoComboBoxHeaderTemplate",""],["","kendoDropDownTreeHeaderTemplate",""],["","kendoMultiColumnComboBoxHeaderTemplate",""],["","kendoAutoCompleteHeaderTemplate",""],["","kendoMultiSelectHeaderTemplate",""],["","kendoMultiSelectTreeHeaderTemplate",""]]}),i}(),lv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListFooterTemplate",""],["","kendoComboBoxFooterTemplate",""],["","kendoDropDownTreeFooterTemplate",""],["","kendoMultiColumnComboBoxFooterTemplate",""],["","kendoAutoCompleteFooterTemplate",""],["","kendoMultiSelectFooterTemplate",""],["","kendoMultiSelectTreeFooterTemplate",""]]}),i}(),AC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListGroupTemplate",""],["","kendoComboBoxGroupTemplate",""],["","kendoMultiColumnComboBoxGroupTemplate",""],["","kendoAutoCompleteGroupTemplate",""],["","kendoMultiSelectGroupTemplate",""]]}),i}(),xC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListFixedGroupTemplate",""],["","kendoComboBoxFixedGroupTemplate",""],["","kendoMultiColumnComboBoxFixedGroupTemplate",""],["","kendoAutoCompleteFixedGroupTemplate",""],["","kendoMultiSelectFixedGroupTemplate",""]]}),i}(),ao=function(){var i=function(){function r(){p(this,r),this.onSelect=new O,this.onChange=new O,this.onFocus=new O,this.total=0,this.selectedIndices=[]}return v(r,[{key:"getTotal",value:function(){return this.total}},{key:"isSelected",value:function(e){return fe(this.selectedIndices.find(function(n){return n===e}))}},{key:"isFocused",value:function(e){return e===this.focused}},{key:"focus",value:function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))}},{key:"select",value:function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:fe(e)}))}},{key:"add",value:function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))}},{key:"unselect",value:function(e){if(this.isSelected(e)){var n=this.selectedIndices.indexOf(e);this.selectedIndices.splice(n,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e})}}},{key:"change",value:function(e){var n=fe(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:n})}},{key:"resetSelection",value:function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]}},{key:"selected",get:function(){return this.selectedIndices.slice()}},{key:"focused",get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Jt=function(){return function(i){i[i.Undefined=0]="Undefined",i[i.Open=1]="Open",i[i.Close=2]="Close",i[i.Enter=3]="Enter",i[i.Tab=4]="Tab",i[i.Esc=5]="Esc",i[i.Delete=6]="Delete",i[i.Backspace=7]="Backspace",i[i.Home=8]="Home",i[i.End=9]="End",i[i.Up=10]="Up",i[i.Down=11]="Down",i[i.Left=12]="Left",i[i.Right=13]="Right"}(Jt||(Jt={})),Jt}(),Do=function(){var i=function(){function r(){p(this,r),this.grouped=!1,this.groupIndices=[]}return v(r,[{key:"data",get:function(){return this.grouped?this._flatData:this._data},set:function(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))}},{key:"itemsCount",get:function(){return fe(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(function(n){return!n.header}):this.data).length:0}},{key:"isGrouped",value:function(e){return fe(e)&&0!==e.length&&fe(e[0])&&function(r,t){return!!fe(r)&&t.every(function(e){return r.hasOwnProperty(e)})}(e[0],["aggregates","field","items","value"])}},{key:"getGroupIndices",value:function(e){for(var n=[],a=0;a<=e.length-1;a++)n[a]=(n[a-1]||0)+e[a].items.length;return n}},{key:"filter",value:function(e){var n=[];if(this.isGrouped(this.data))for(var a=0;a<=this.groupIndices.length-1;a++){var o=this.data[a].items.filter(e);o&&(n=n.concat(o))}else n=this.data.filter(e);return n}},{key:"indexOf",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=function(s){return s===e};return this.grouped&&(a=function(s){return s.value===e}),this.findIndex(a,n)}},{key:"findIndex",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=-1;if(this.grouped){var o=this._flatData.filter(function(u){return!u.header&&u.offsetIndex>=n});a=o.findIndex(e),a=o[a]?o[a].offsetIndex:-1}else{var s=this.data.slice(n),l=s.findIndex(e);a=-1!==l?l+n:-1}return a}},{key:"closestGroup",value:function(e){for(var n=e;n>=0;n--)if(this._flatData[n].header)return this._flatData[n]}},{key:"find",value:function(e){var n=this.findIndex(e);return this.itemAt(n)}},{key:"flatIndex",value:function(e){if(0===this.itemsCount)return-1;if(!this.grouped)return e;var n=this._flatData.find(function(a){return!a.header&&a.offsetIndex===e});return n?n.index:-1}},{key:"itemAt",value:function(e){var n;if(0===this.itemsCount)return n;if(this.grouped){var a=this._flatData.find(function(o){return!o.header&&o.offsetIndex===e});a&&(n=a.value)}else n=this.data[e];return n}},{key:"groupAt",value:function(e){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(n){return n.header&&n.index===e})}},{key:"groupField",value:function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null}},{key:"itemGroup",value:function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var n=this.groupField();if(n)return rt(e,n)}}},{key:"flatten",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=[];fe(n)&&s.push({header:!0,index:o+a,offsetIndex:o,value:n});for(var l=0;l=a?n:this.firstFocusableIndex(l,a,o,-1*s)}},{key:"clampIndex",value:function(e,n,a){return!fe(e)||ea?a:e}},{key:"firstFocusableIndex",value:function(e,n,a,o){for(;n<=e&&e<=a;){if(!this.isDisabled(e))return e;e+=o}}},{key:"isDisabled",value:function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Eo),oe(ao))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),uv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListNoDataTemplate",""],["","kendoDropDownTreeNoDataTemplate",""],["","kendoComboBoxNoDataTemplate",""],["","kendoMultiColumnComboBoxNoDataTemplate",""],["","kendoAutoCompleteNoDataTemplate",""],["","kendoMultiSelectNoDataTemplate",""],["","kendoMultiSelectTreeNoDataTemplate",""]]}),i}(),cv=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),sm=v(function i(){p(this,i)}),iae={pageSize:50,itemHeight:28},v1=function(r,t){var e=Object.assign({},iae,t);return!0===r?e:r?Object.assign({pageSize:iae.pageSize},r):null},qc=new Dt("dropdowns-touch-enabled"),JP=function(){var i=v(function r(t){p(this,r),this.element=t});return i.\u0275fac=function(t){return new(t||i)(m(_e))},i.\u0275dir=X({type:i,selectors:[["li","role","option"],["li","role","group"]]}),i}(),bu=function(){var i=function(){function r(t){p(this,r),this.viewContainerRef=t}return v(r,[{key:"templateContext",set:function(e){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ei))},i.\u0275dir=X({type:i,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),i}(),p1=function(){var i=function(){function r(t){p(this,r),this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=t}return v(r,[{key:"focusedClassName",get:function(){return this.selectionService.isFocused(this.index)}},{key:"selectedClassName",get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)}},{key:"onClick",value:function(e){e.stopPropagation(),(!this.checkboxes.enabled||this.checkboxes.checkOnClick)&&(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ao))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownsSelectable",""]],hostVars:9,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(ie("index",e.index),Qe("height",e.height,"px")("min-height",e.height,"px"),ue("k-focus",e.focusedClassName)("k-selected",e.selectedClassName))},inputs:{index:"index",checkboxes:"checkboxes",height:"height",multipleSelection:"multipleSelection"}}),i}(),lm=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.dataService=t,this.wrapper=e,this.selectionService=n,this.disabledItemsService=a,this.cdr=o,this.zone=s,this.renderer=l,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",this.onClick=new O,this.pageChange=new O,this.listResize=new O,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this._size="medium",this.selectSubscription=xn(this.selectionService.onSelect.pipe(We(function(c){return c.indices[0]})),this.selectionService.onFocus).pipe(Nn(function(c){return u.zone.onStable.pipe(It(1),We(function(){return c}))})).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}return v(r,[{key:"data",get:function(){return this._data},set:function(e){this._data=e[0]&&e[0].header?e.slice(0):e}},{key:"size",get:function(){return this._size},set:function(e){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,Un("list",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,Un("list",e)),this._size=e)}},{key:"pageSize",get:function(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)}},{key:"scrollHeight",get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight}},{key:"overflowY",get:function(){if(fe(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"}},{key:"checkboxClasses",get:function(){return"".concat(this.size?Un("checkbox",this.size):""," ").concat(this.rounded?vr(this.rounded):"")}},{key:"ngOnChanges",value:function(e){yn("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),yn("virtual",e,!1)&&this.setOverflow(),yn("type",e,!1)&&this.prepareClasses()}},{key:"ngAfterViewInit",value:function(){var e=this;this.setComponentClasses(),this.zone.runOutsideAngular(function(){e.scrollSubscription=li(e.content.nativeElement,"scroll").pipe(ff(100),At(e.prefetchData.bind(e)),At(e.findCurrentGroup.bind(e))).subscribe(function(){e.lastScrollTop=e.content.nativeElement.scrollTop})}),this.setOverflow()}},{key:"ngAfterViewChecked",value:function(){this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,this.scrollToItem(this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused)),this.dataService.grouped&&this.findCurrentGroup()}},{key:"ngOnDestroy",value:function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}},{key:"onCheckedChange",value:function(e,n){var a=e.target.checked;a&&!this.selectionService.isSelected(n)&&this.selectionService.add(n),!a&&this.selectionService.isSelected(n)&&this.selectionService.unselect(n)}},{key:"prepareClasses",value:function(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")}},{key:"isChecked",value:function(e){return this.selectionService.isSelected(this.virtual?e+this.virtual.skip:e)}},{key:"firstVisibleItem",value:function(){var e=this,n=this.content.nativeElement,a=n.getBoundingClientRect(),o=Array.prototype.slice.call(n.querySelectorAll(".k-disabled"));o.forEach(function(l){return e.renderer.setStyle(l,"pointer-events","auto")});var s=document.elementFromPoint(a.left+1,a.top+1);return o.forEach(function(l){return e.renderer.setStyle(l,"pointer-events","none")}),function(r,t){for(var e=r;null!==e&&1===e.nodeType;){if(Ktt(e,"li"))return e;e=e.parentElement||e.parentNode}return null}(s)}},{key:"findCurrentGroup",value:function(){if(this.dataService.grouped){var n,e=this.firstVisibleItem();e?"group"===e.getAttribute("role")?(n=parseInt(e.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(n).value):(n=parseInt(e.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(n))):this.currentGroup=void 0,this.cdr.detectChanges()}else this.currentGroup=void 0}},{key:"prefetchData",value:function(){if(this.virtual){var e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),n=this.content.nativeElement.scrollTop,a=Math.trunc(n/this.virtual.itemHeight),o=n>this.lastScrollTop,u=this.lastLoaded-this.pageSize+e>=a-(this.pageSize-(this.lastLoaded-this.startFrom));o&&a+e>=this.lastLoaded&&this.lastLoadedn.virtual.total&&(e--,a=n.virtual.total),e<0&&(e=0),n.startFrom=e,n.lastLoaded=a,n.pageChange.emit({skip:e,take:n.pageSize})})}},{key:"index",value:function(e,n){return e>0?this.dataService.groupIndices[e-1]+n:n}},{key:"getText",value:function(e){return rt(e,this.textField)}},{key:"getValue",value:function(e){return rt(e,this.valueField)}},{key:"isDisabled",value:function(e){return fe(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)}},{key:"isAltRow",value:function(e){return"dropdowngrid"===this.type&&e%2!=0}},{key:"scrollToItem",value:function(e){var n=e;if(this.dataService.grouped&&(n=this.dataService.flatIndex(e),n+=this.firstGroupHeaderInTargetedPage(n)?-1:0),this.virtual&&n>-1)this.scrollToIndex(n);else{var o=this.items.toArray();fe(o[n])&&-1!==n&&this.scroll(o[n].element)}}},{key:"scrollToIndex",value:function(e){var n=this.content.nativeElement,a=n.scrollTop,o=e*this.virtual.itemHeight,l=n.clientHeight,u=o+this.virtual.itemHeight;a>o?a=o:u>a+l&&(a=u-l),n.scrollTop=a}},{key:"scroll",value:function(e){if(e){var n=e.nativeElement,a=this.content.nativeElement,o=n.offsetTop,l=a.scrollTop,u=a.clientHeight,c=o+n.offsetHeight;l>o?l=o:c>l+u&&(l=c-u),a.scrollTop=l}}},{key:"hasScrollbar",value:function(){return!!(fe(this.items)&&this.items.length&&fe(this.list)&&fe(this.content))&&(fe(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)}},{key:"setOverflow",value:function(){if(this.virtual){var e=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",e)}}},{key:"hasVirtualScrollbar",value:function(){return this.virtualContainer&&(this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight)>this.content.nativeElement.offsetHeight}},{key:"positionItems",value:function(){var e=this;this.items.forEach(function(n,a){e.renderer.setStyle(n.element.nativeElement,"transform","translateY(".concat((a+e.startFrom)*e.virtual.itemHeight,"px"))})}},{key:"firstGroupHeaderInTargetedPage",value:function(e){return!fe(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e}},{key:"setComponentClasses",value:function(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,Un("list",this.size))),fe(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Do),m(_e),m(ao),m(Eo),m(nt),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-list"]],viewQuery:function(t,e){var n;1&t&&(ge(YQe,7),ge(QQe,7),ge(JQe,5),ge(JP,5)),2&t&&(P(n=B())&&(e.content=n.first),P(n=B())&&(e.list=n.first),P(n=B())&&(e.virtualContainer=n.first),P(n=B())&&(e.items=n))},inputs:{selected:"selected",focused:"focused",textField:"textField",valueField:"valueField",height:"height",template:"template",groupTemplate:"groupTemplate",fixedGroupTemplate:"fixedGroupTemplate",show:"show",id:"id",optionPrefix:"optionPrefix",multipleSelection:"multipleSelection",virtual:"virtual",type:"type",checkboxes:"checkboxes",data:"data",size:"size",rounded:"rounded"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize"},features:[Ie],decls:9,vars:15,consts:[[3,"class","ngStyle",4,"ngIf"],["unselectable","on"],["content",""],["role","listbox"],["list",""],[4,"ngIf"],[3,"resize",4,"ngIf"],["class","k-height-container","role","presentation",4,"ngIf"],[3,"ngStyle"],[3,"ngIf"],[3,"templateContext"],["ngFor","",3,"ngForOf"],["role","option","kendoDropDownsSelectable","",3,"checkboxes","height","index","multipleSelection","ngClass"],["type","checkbox","class","k-checkbox",3,"ngClass","checked","change",4,"ngIf"],["type","checkbox",1,"k-checkbox",3,"ngClass","checked","change"],[1,"k-list-item-text"],["role","group",3,"class","k-table-alt-row","ngStyle",4,"ngIf"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","class","ngClass",4,"ngIf"],["role","group",3,"ngStyle"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","ngClass"],[3,"resize"],["role","presentation",1,"k-height-container"],["virtualContainer",""]],template:function(t,e){1&t&&(T(0,iJe,3,9,"div",0),A(1,"div",1,2)(3,"ul",3,4),T(5,uJe,1,1,null,5),T(6,yJe,1,1,null,5),T(7,kJe,1,0,"kendo-resize-sensor",6),x(),T(8,CJe,4,2,"div",7),x()),2&t&&(y("ngIf",e.dataService.grouped),k(1),_r(e.listContentClass),Qe("overscroll-behavior","none")("max-height",e.height,"px"),k(2),_r(e.listClass),ie("id",e.id)("aria-hidden",!e.show),k(2),y("ngIf",!e.dataService.grouped&&e.show),k(1),y("ngIf",e.dataService.grouped),k(1),y("ngIf",!e.virtual),k(1),y("ngIf",e.virtual))},directives:[Vr,qe,Gi,bu,gn,JP,p1,Ft],encapsulation:2}),i}(),g1=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,inputs:{noDataText:"noDataText",clearTitle:"clearTitle",checkAllText:"checkAllText",selectButtonText:"selectButtonText"},features:[j]}),i}(),oh=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(g1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListLocalizedMessages",""],["","kendoDropDownTreeLocalizedMessages",""],["","kendoComboBoxLocalizedMessages",""],["","kendoMultiColumnComboBoxLocalizedMessages",""],["","kendoAutoCompleteLocalizedMessages",""],["","kendoMultiSelectLocalizedMessages",""],["","kendoMultiSelectTreeLocalizedMessages",""]],features:[de([{provide:g1,useExisting:ke(function(){return i})}]),j]}),i}(),Xtt={multi:!0,provide:jn,useExisting:ke(function(){return eB})},eB=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.localization=t,this.dataService=e,this.popupService=n,this.selectionService=a,this.navigationService=o,this.disabledItemsService=s,this._zone=l,this.cdr=u,this.renderer=c,this.hostElement=d,this.touchEnabled=h,this.highlightFirst=!0,this.focusableId="k-".concat(ro()),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new O,this.filterChange=new O,this.open=new O,this.opened=new O,this.close=new O,this.closed=new O,this.onFocus=new O,this.onBlur=new O,this.widgetClasses=!0,this.listBoxId=ro(),this.optionPrefix=ro(),this.onChangeCallback=ov,this.onTouchedCallback=ov,this.popupMouseDownHandler=function(f){return f.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new Ot,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",jt(d1),this.direction=t.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}return v(r,[{key:"width",get:function(){var e=0;Ze()&&(e=this.wrapper.offsetWidth);var n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"height",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"listContainerClasses",get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e}},{key:"suggestion",get:function(){if(this.text&&this.suggestedText){var e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&e?this.suggestedText:void 0}this.suggestedText=void 0}},{key:"appendTo",get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e}},{key:"clearButtonVisiblity",get:function(){if(this.touchEnabled)return"visible"}},{key:"toggle",value:function(e){var n=this;Promise.resolve(null).then(function(){var a=fe(e)?e:!n._open;n._toggle(a)})}},{key:"isOpen",get:function(){return this._open}},{key:"togglePopup",value:function(e){this.disabled||this.readonly||this.isOpen===e||this.triggerPopupEvents(e)||this._toggle(e)}},{key:"activeDescendant",get:function(){if(!this.isOpen||!fe(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+rt(e,this.valueField)}},{key:"noDataLabel",get:function(){if(0===this.data.length)return this.messageFor("noDataText")}},{key:"data",get:function(){var e=this.virtual;if(e){var n=e.skip||0,a=n+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(n,a)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=rt(this.dataService.itemAt(0),this.valueField))}},{key:"value",get:function(){return this._value||""},set:function(e){this.verifySettings(e),this._value=e||"",this.text=this.value,this.cdr.markForCheck()}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=v1(e)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper,Un("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper,Un("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper,vr(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper,aa("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper,aa("input",n)),this._fillMode=n}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-focus"),this._isFocused=e}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()}),this.setComponentClasses()}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize})}},{key:"reset",value:function(){this.value=""}},{key:"messageFor",value:function(e){return this.localization.get(e)}},{key:"clearValue",value:function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this.onChangeCallback=e}},{key:"registerOnTouched",value:function(e){this.onTouchedCallback=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"focusItemAt",value:function(e){var n=e>=0&&e1&&void 0!==arguments[1]?arguments[1]:0;a=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),n):-1,this.disabledItemsService.isIndexDisabled(a)?a+1=0)a=rt(this.dataService.itemAt(n),this.valueField);else{var o=this.suggest&&this.suggestedText&&this.data.length&&rt(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();a=this.isOpen&&o?this.suggestedText:this.searchbar.value}this.change(a)}},{key:"handleEscape",value:function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null}},{key:"searchBarChange",value:function(e){var n=fe(this.text)?this.text.length:0;this.backspacePressed=e.length0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)}},{key:"handleFocus",value:function(){var e=this;this.isFocused=!0,ut(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()})}},{key:"handleBlur",value:function(){var a,o,e=this,n=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0,-1!==n?(a=this.dataService.itemAt(n),o=rt(a,this.valueField)||""):o=this.searchbar.value;var s=o===this.searchbar.value,l=o.toLowerCase()===this.searchbar.value.toLowerCase();!s&&l&&this.selectionService.resetSelection([]),this.isFocused=!1;var u=this.value!==this.text;ut(this.onBlur)||ut(this.close)||am(this.wrapper)||u?this._zone.run(function(){u&&e.change(e.searchbar.value),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)}},{key:"pageChange",value:function(e){this.virtual.skip=e.skip}},{key:"change",value:function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)}},{key:"subscribeEvents",value:function(){var e=this;!Ze()||(this.valueChangeSubscription=this.valueChangeSubject.subscribe(function(n){var a=e.value!==n;e.value=n,e.text=n,a&&e.emitChange(n)}),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=xn(this.navigationService.up,this.navigationService.down).subscribe(function(n){return e.navigate(n.index)}),this.closeSubscription=this.navigationService.close.subscribe(function(){return e.togglePopup(!1)}),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this._zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){e.isFocused&&!EC(e.hostElement,n.target,e.popupRef)&&e._zone.run(function(){return e.blur()})})})}},{key:"unsubscribeEvents",value:function(){!Ze()||(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}},{key:"handleItemChange",value:function(e){var n=e.indices.length?e.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),fe(n)){var a=rt(this.dataService.itemAt(n),this.valueField);this.change(a)}}},{key:"handleItemFocus",value:function(e){var n=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&n>=0)&&(this.suggestedText=rt(this.dataService.itemAt(n),this.valueField))}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:n,vertical:"top"},anchorAlign:{horizontal:n,vertical:"bottom"}});var s=this.popupRef.popupElement,l=this.width,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"firstFocusableIndex",value:function(e){var n=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=a}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=rt(this.dataService.itemAt(0),this.textField))}},{key:"value",get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()}},{key:"valuePrimitive",get:function(){return fe(this._valuePrimitive)?this._valuePrimitive:!fe(this.valueField)},set:function(e){this._valuePrimitive=e}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=v1(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Un("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Un("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,vr(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,aa("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,aa("input",n)),this._fillMode=n}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"clearButtonVisiblity",get:function(){if(this.touchEnabled)return"visible"}},{key:"popupWidth",get:function(){var e=0;Ze()&&(e=this.wrapper.nativeElement.offsetWidth);var n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"popupHeight",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setComponentClasses()}},{key:"createValueStream",value:function(){var e=this,n=this.valueSubject.pipe(Ue(function(c){var d=rt(e.value,e.valueField),h=rt(c,e.valueField),f=rt(c,e.textField);return!(!fe(e.value)&&!fe(h)||(fe(f)&&(f=f.toString()),d===h&&e.text===f&&(e.clearFilter(),1)))}),We(function(c){var d=rt(c,e.valueField);return{dataItem:c,text:rt(c,e.textField),value:e.valuePrimitive?d:c}})),a=function wYe(i,r){return function(t){return[Ue(i,r)(t),Ue(SYe(i,r))(t)]}}(function(){return e.allowCustom})(this.customValueSubject.pipe(GL(300))),o=a[0].pipe(At(function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()}),Ue(function(){var c=e.text!==rt(e.value,e.valueField);return e.loading=c,e.disabled=c,c||e.clearFilter(),c}),this.valueNormalizer,We(function(c){return{custom:!0,dataItem:c,text:e.text,value:c}})),s=a[1].pipe(We(function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}})),l=this.clearValueSubject.pipe(We(function(){return{dataItem:void 0,text:void 0,value:void 0}}));this.valueSubscription&&this.valueSubscription.unsubscribe();var u=xn(n,o,s,l);this.valueSubscription=u.pipe(cl(function(){var c=void 0!==rt(e.dataItem,e.valueField);return e.dataItem=void 0,e.value=void 0,e.text=void 0,e.loading=!1,e.disabled=!1,c&&e.selectionChange.emit(void 0),e.emitValueChange(),e.createValueStream(),lt(null)})).subscribe(function(c){var d=rt(e.dataItem,e.valueField)!==rt(c.dataItem,e.valueField);e.dataItem=c.dataItem,e.value=c.value,e.text=c.text,e.loading=!1,e.disabled=!1,e.clearFilter(),c.custom&&(e.selectionService.focused=-1),d&&e.selectionChange.emit(c.custom?void 0:e.dataItem),e.emitValueChange()})}},{key:"attachStreams",value:function(){var e=this;!Ze()||(this.subs.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()})),this.subs.add(xn(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(Ue(function(n){return fe(n.index)})).subscribe(function(n){return e.navigate(n.index)})),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(function(){return e.togglePopup(!1)})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(At(function(n){e.isOpen&&n.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(xn(this.selectionService.onChange,this.selectionService.onSelect.pipe(Ue(function(n){return!e.isOpen}))).pipe(At(function(n){e._filtering=!1,e.togglePopup(!1)}),We(function(n){return e.dataService.itemAt(n.indices[0])})).subscribe(function(n){e.change(n)})),this.subs.add(this.selectionService.onSelect.pipe(Ue(function(n){return e.isOpen}),At(function(n){return e._filtering=!1}),We(function(n){return e.dataService.itemAt(n.indices[0])})).subscribe(function(n){var a=rt(n,e.valueField)!==rt(e.dataItem,e.valueField);e.updateState({dataItem:n}),a&&e.selectionChange.emit(n)})))}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.subs.unsubscribe(),fe(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("valueNormalizer",e)&&this.createValueStream(),Ki(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"focusItemAt",value:function(e){var n=e>=0&&e1&&void 0!==arguments[1]?arguments[1]:0;a=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),n):-1,this.disabledItemsService.isIndexDisabled(a)?a+10||(this.suggestedText=null,this.selectionService.focused=-1)}},{key:"handleNavigationOpen",value:function(){this.restoreItemFocus(),this.togglePopup(!0)}},{key:"searchBarChange",value:function(e){this.backspacePressed=e.length<(this.text?this.text.length:0),this.text=e,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==e?(this.filterText=e,this.filterChange.emit(e)):this.search(e)}},{key:"handleFocus",value:function(){var e=this;this.isFocused=!0,ut(this.onFocus)&&this.zone.run(function(){return e.onFocus.emit()})}},{key:"pageChange",value:function(e){this.virtual.skip=e.skip}},{key:"change",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n?this.customValueSubject.next(e):this.valueSubject.next(e)}},{key:"emitValueChange",value:function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem}},{key:"selectClick",value:function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)}},{key:"listContainerClasses",get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])}},{key:"preventEventDefault",value:function(e){e.preventDefault()}},{key:"focusedItemText",get:function(){var e=this.selectionService.focused;if(!fe(e)||-1===e)return null;var n=rt(this.dataService.itemAt(e),this.textField);return fe(n)?n.toString():""}},{key:"restoreItemFocus",value:function(){!(fe(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))}},{key:"useSuggestion",value:function(){if(!this.suggest||!fe(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),n=rt(e,this.textField);return!!fe(n)&&this.searchbar.value.toLowerCase()===n.toLowerCase()}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:n,vertical:"bottom"},popupAlign:{horizontal:n,vertical:"top"}});var s=this.popupRef.popupElement,l=this.popupWidth,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.popupHeight,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"clearFilter",value:function(){!this.filterable||!this.filterText||(this.filterText="",this.filterChange.emit(this.filterText))}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this.zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){var o=EC(e.wrapper,n.target,e.popupRef);e.isFocused&&!o?e.zone.run(function(){return e.blur()}):e.isOpen&&!o&&e.zone.run(function(){return e.togglePopup(!1)})})})}},{key:"attachSelectClickHandler",value:function(){this.selectClickDisposeHandler=this.renderer.listen(this.select.nativeElement,dW?"pointerdown":"click",this.selectClick.bind(this))}},{key:"setComponentClasses",value:function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,Un("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,aa("input",this.fillMode))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Y),m(Cr),m(ao),m(To),m(Eo),m(Do),m(be),m(nt),m(Ee),m(qc,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-combobox"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,TC,5),he(n,sv,5),he(n,lv,5),he(n,uv,5),he(n,AC,5),he(n,xC,5)),2&t&&(P(a=B())&&(e.template=a.first),P(a=B())&&(e.headerTemplate=a.first),P(a=B())&&(e.footerTemplate=a.first),P(a=B())&&(e.noDataTemplate=a.first),P(a=B())&&(e.groupTemplate=a.first),P(a=B())&&(e.fixedGroupTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(im,7,ei),ge(rm,7),ge(ah,7),ge(c1,5),ge(IJe,7)),2&t&&(P(n=B())&&(e.container=n.first),P(n=B())&&(e.popupTemplate=n.first),P(n=B())&&(e.searchbar=n.first),P(n=B())&&(e.optionsList=n.first),P(n=B())&&(e.select=n.first))},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-combobox",e.widgetClasses)("k-input",e.widgetClasses)("k-disabled",e.isDisabled)("k-loading",e.isLoading))},inputs:{focusableId:"focusableId",allowCustom:"allowCustom",data:"data",value:"value",textField:"textField",valueField:"valueField",valuePrimitive:"valuePrimitive",valueNormalizer:"valueNormalizer",placeholder:"placeholder",popupSettings:"popupSettings",listHeight:"listHeight",iconClass:"iconClass",loading:"loading",suggest:"suggest",clearButton:"clearButton",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",selectionChange:"selectionChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoComboBox"],features:[de([Ztt,Do,ao,To,Eo,Y,{provide:Et,useValue:"kendo.combobox"},{provide:sm,useExisting:ke(function(){return i})},{provide:Ui,useExisting:ke(function(){return i})}]),Ie],decls:12,vars:20,consts:function(){return[["kendoComboBoxLocalizedMessages","","noDataText",$localize(Rre||(Rre=le([":kendo.combobox.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND"]))),"clearTitle",$localize(Ore||(Ore=le([":kendo.combobox.clearTitle|The title of the clear button:clear"]))),"selectButtonText",$localize(Ire||(Ire=le([":kendo.combobox.selectButtonText|The text set as aria-label on the select button:Select"])))],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-clear-value","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["unselectable","on","type","button",1,"k-input-button","k-button","k-icon-button",3,"ngClass","kendoEventsOutsideAngular"],["select",""],[1,"k-button-icon","k-icon",3,"ngClass"],["popupTemplate",""],[3,"ngIf"],["container",""],["aria-hidden","true",1,"k-clear-value",3,"kendoEventsOutsideAngular","click"],[1,"k-icon","k-i-x"],[4,"ngIf"],[3,"size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"kendo-searchbar",1,2),Q("onNavigate",function(a){return e.handleNavigate(a)})("valueChange",function(a){return e.searchBarChange(a)})("onBlur",function(){return e.handleBlur()})("onFocus",function(){return e.handleFocus()}),x(),T(3,NJe,2,6,"span",3),A(4,"button",4,5),z(6,"span",6),x(),T(7,zJe,5,16,"ng-template",null,7,$n),T(9,HJe,1,0,"ng-template",8),Wt(10,null,9)),2&t&&(k(1),y("role","combobox")("id",e.focusableId)("listId",e.listBoxId)("activeDescendant",e.activeDescendant)("noDataLabel",e.noDataLabel)("userInput",e.text)("suggestedText",e.getSuggestion())("disabled",e.disabled)("readonly",e.readonly)("tabIndex",e.tabIndex)("popupOpen",e.isOpen)("placeholder",e.placeholder),k(2),y("ngIf",e.clearButton&&!e.loading&&!e.disabled&&!e.readonly&&(null==e.text?null:e.text.length)),k(1),y("ngClass",e.selectButtonClasses)("kendoEventsOutsideAngular",ot(18,DC,e.preventEventDefault)),ie("aria-label",e.messageFor("selectButtonText")),k(2),y("ngClass",e.buttonClasses),k(3),y("ngIf",e.isOpen))},directives:[ah,lm,Vr,oh,qe,qi,Ft,bu],encapsulation:2}),i}(),nB=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListValueTemplate",""],["","kendoDropDownTreeValueTemplate",""]]}),i}(),C1=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.zone=e}return v(r,[{key:"ngOnChanges",value:function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})}},{key:"nextTick",value:function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(be))},i.\u0275dir=X({type:i,selectors:[["","filterInput",""]],inputs:{focused:["filterInput","focused"]},features:[Ie]}),i}(),ent={multi:!0,provide:jn,useExisting:ke(function(){return js})},js=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.wrapper=t,this.localization=e,this.popupService=n,this.selectionService=a,this.navigationService=o,this.disabledItemsService=s,this.dataService=l,this._zone=u,this.renderer=c,this.cdr=d,this.touchEnabled=h,this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new O,this.filterChange=new O,this.selectionChange=new O,this.open=new O,this.opened=new O,this.close=new O,this.closed=new O,this.onFocus=new O,this.onBlur=new O,this.hostClasses=!0,this.focusableId="k-".concat(ro()),this.role="listbox",this.groupIndices=[],this.listBoxId=ro(),this.optionPrefix=ro(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(f){},this.onChangeCallback=function(f){},this.word="",this.last="",this.filterFocused=new O,this.filterBlurred=new O,this.hostElementFocused=new O,this.hostElementBlurred=new O,this.selectionSubscription=new Je,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",jt(d1),this.direction=e.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}return v(r,[{key:"width",get:function(){var e=Ze()?this.wrapper.nativeElement.offsetWidth:0,n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"height",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"widgetTabIndex",get:function(){if(!this.disabled){var e=Number(this.tabIndex);return isNaN(e)?0:e}}},{key:"ariaExpanded",get:function(){return this.isOpen}},{key:"ariaOwns",get:function(){if(this.isOpen)return this.listBoxId}},{key:"ariaActivedescendant",get:function(){if(fe(this.dataItem)&&this.isOpen)return this.optionPrefix+"-"+rt(this.dataItem,this.valueField)}},{key:"noDataLabel",get:function(){if(0===this.dataService.itemsCount)return this.messageFor("noDataText")}},{key:"appendTo",get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e}},{key:"data",get:function(){var e=this.virtual;if(e){var n=e.skip||0,a=n+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(n,a)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()}},{key:"value",get:function(){return this._value},set:function(e){fe(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=v1(e)}},{key:"valuePrimitive",get:function(){return fe(this._valuePrimitive)?this._valuePrimitive:!fe(this.valueField)},set:function(e){this._valuePrimitive=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Un("picker",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Un("picker",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,vr(n)),this._rounded=e}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,aa("picker",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,aa("picker",n)),this._fillMode=n}},{key:"blurComponent",value:function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())}},{key:"blurFilterInput",value:function(){this.filterBlurred.emit()}},{key:"focusComponent",value:function(e){var n=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,ut(this.onFocus)&&this._zone.run(function(){n.onFocus.emit()})))}},{key:"onResize",value:function(){if(this._open){var e=this.popupRef.popupElement,n=this.width,o=n.max;e.style.minWidth=n.min,e.style.width=o}}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"hostTabIndex",get:function(){return this.widgetTabIndex}},{key:"isReadonly",get:function(){return this.readonly}},{key:"isAriaExpanded",get:function(){return this.ariaExpanded}},{key:"hostAriaOwns",get:function(){return this.ariaOwns}},{key:"hostAriaActivedescendant",get:function(){return this.ariaActivedescendant}},{key:"hostNoDataLabel",get:function(){return this.noDataLabel}},{key:"keydown",value:function(e){var n=fe(this.defaultItem)?-1:0,a=isNaN(this.selectionService.focused)?this.firstFocusableIndex(n):this.selectionService.focused,o=0;if(!(this.disabled||this.readonly||this.filterable&&this.isFocused&&this.isOpen&&(e.keyCode===J.Home||e.keyCode===J.End))){var u=fe(this.selectionService.selected[0]),c=fe(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);(!u||c)&&(e.keyCode===J.ArrowDown||e.keyCode===J.ArrowRight?o=-1:(e.keyCode===J.ArrowUp||e.keyCode===J.ArrowLeft)&&(o=1));var d=e,h=this.navigationService.process({current:a+o,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:d});h!==Jt.Undefined&&h!==Jt.Tab&&h!==Jt.Backspace&&h!==Jt.Delete&&(h!==Jt.Left&&h!==Jt.Right||!this.filterable)&&h!==Jt.Enter&&d.preventDefault()}}},{key:"keypress",value:function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)}},{key:"click",value:function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()}),this.assignAriaDescribedBy(),this.setComponentClasses()}},{key:"isEmpty",value:function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)}},{key:"onFilterFocus",value:function(){this.filterFocused.emit()}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),Ki(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"focusItemAt",value:function(e){var a=(fe(this.defaultItem)?-1:0)<=e&&e0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(h1(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=function(r,t,e){var n=function(r,t){return Sa(r)&&r.filter(function(e){return av(e)&&fe(rt(e,t))})}(r,e)||[],a=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2?arguments[2]:void 0;return r.map(function(n){return t.find(function(a){return rt(a,e)===n})}).filter(function(n){return void 0!==n})}(r,t,e)||[];return a.concat(n)}(e,a,this.valueField)),this.selectedDataItems.length0)this.handleBackspace();else if(!(this.disabled||n&&!a)){var s=e,l=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,u=this.navigationService.process({current:l,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:s});u!==Jt.Undefined&&(u===Jt.Enter&&this.isOpen||u!==Jt.Enter)&&e.preventDefault()}}},{key:"handleRemoveTag",value:function(e){var n=e.tag,a=new oae(n);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(a),!a.isDefaultPrevented()&&(n instanceof Array?this.removeGroupTag(n):this.removeSingleTag(n),this.cdr.detectChanges()))}},{key:"clearAll",value:function(e){var n=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter();var a=this.selectionService.selected;this.value=this.value.filter(function(o,s){return n.disabledItemsService.isIndexDisabled(a[s])}),this.emitValueChange()}},{key:"addCustomValue",value:function(e){this.customValueSubject.next(e)}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"ngDoCheck",value:function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.markForCheck()}),this.setState(this.value),this.setComponentClasses(),this.initialized=!0}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("valueNormalizer",e)&&this.createCustomValueStream(),Ki(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)}},{key:"ngAfterViewInit",value:function(){this.searchbar.setInputSize()}},{key:"ngOnDestroy",value:function(){this._toggle(!1),this.unsubscribeEvents()}},{key:"toggle",value:function(e){var n=this;Promise.resolve(null).then(function(){var a=fe(e)?e:!n._open;n._toggle(a),n.cdr.markForCheck()})}},{key:"isOpen",get:function(){return this._open}},{key:"reset",value:function(){this.text="",this.value=[]}},{key:"messageFor",value:function(e){return this.localization.get(e)}},{key:"writeValue",value:function(e){this.value=e||[]}},{key:"registerOnChange",value:function(e){this.onChangeCallback=e}},{key:"registerOnTouched",value:function(e){this.onTouchedCallback=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"onTagMapperChange",value:function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"subscribeEvents",value:function(){var e=this;if(Ze()){var n=function(){return e.isOpen},a=function(){return!e.isOpen},o=function(){return!e.isOpen&&void 0!==e.focusedTagIndex};[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(Ue(n)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe(Ue(n)).subscribe(function(s){return e.handleUp(s.index)}),this.navigationService.home.pipe(Ue(function(){return a})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Ue(function(){return a})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Ue(o)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Ue(o)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe(function(s){return e.handleDownKey(s.index)})].forEach(function(s){return e.observableSubscriptions.add(s)})}}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this._zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){(e.isFocused||e.isOpen)&&!EC(e.wrapper,n.target,e.popupRef)&&e._zone.run(function(){e.blur(),e.isOpen&&e.togglePopup(!1)})})})}},{key:"unsubscribeEvents",value:function(){!Ze()||(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}},{key:"removeGroupTag",value:function(e){var n=this,a=this.dataService.data;this.dataService.grouped&&(a=a.filter(function(s){return!s.header}).map(function(s){return s.value}));var o=new Set(e.map(function(s){return rt(s,n.valueField)}));this.value=this.value.filter(function(s){var l=YP([s],a,n.valueField)[0],u=n.disabledItemsService.isIndexDisabled(l);return!o.has(rt(s,n.valueField))||u}),this.emitValueChange()}},{key:"removeSingleTag",value:function(e){var n=this,a=this.dataService.data;this.dataService.grouped&&(a=a.filter(function(l){return!l.header}).map(function(l){return l.value}));var o=YP([e],a,this.valueField)[0];this.disabledItemsService.isIndexDisabled(o)||(!function(r){return!isNaN(r)}(o)?(this.value=this.value.filter(function(u){return rt(u,n.valueField)!==rt(e,n.valueField)}),this.emitValueChange()):(this.selectionService.unselect(o),this.selectionService.focused=o,this.togglePopup(!1)))}},{key:"disabledItemsMapper",value:function(){var e=this,n=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(a,o,s){return e.disabledItemsService.isIndexDisabled(n[s])&&a.push(s),a},[]))}},{key:"createCustomValueStream",value:function(){var e=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(At(function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()}),this.valueNormalizer,cl(function(){return e.loading=!1,e.disabled=!1,e.autoClose&&e.togglePopup(!1),(e.autoClose||!e.filterable)&&e.clearFilter(),e.nextTick(function(){e.searchbar.focus()}),e.createCustomValueStream(),lt(null)})).subscribe(function(n){if(e.loading=!1,e.disabled=!1,fe(n)){var a=e.valuePrimitive?rt(n,e.valueField):n,o=e.dataService.indexOf(a),s=-1===o;-1===e.value.indexOf(a)?(e.tags=e.tagMapper([].concat(Ae(e.selectedDataItems),[n])),s?e.value=[].concat(Ae(e.value),[a]):e.selectionService.add(o)):!s&&e.selectionService.isSelected(o)?(e.selectionService.unselect(o),e.selectionService.focused=o):e.value=e.value.filter(function(l){return rt(l,e.valueField)!==a}),e.emitValueChange()}e.autoClose&&e.togglePopup(!1),(e.autoClose||!e.filterable)&&e.clearFilter(),e.nextTick(function(){e.searchbar.focus()})})}},{key:"handleItemChange",value:function(e){this.change(e),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()}},{key:"handleEnter",value:function(e){var n=this.selectionService,a=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),-1!==a?(n.isSelected(a)?(n.unselect(a),n.focused=a):n.add(a),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)}},{key:"handleClose",value:function(){this.closePopup(),this.searchbar.focus()}},{key:"handleEnd",value:function(){this.focusedTagIndex=this.tags.length-1}},{key:"handleHome",value:function(){this.focusedTagIndex=0}},{key:"handleUp",value:function(e){this.selectionService.focused=e}},{key:"handleBackspace",value:function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())}},{key:"handleDelete",value:function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)}},{key:"handleLeftKey",value:function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--}},{key:"handleDownKey",value:function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()}},{key:"handleRightKey",value:function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex1&&void 0!==arguments[1]?arguments[1]:0;e=e.toLowerCase();var s=this.dataService.findIndex(function(l){return o=rt(n.dataService.grouped?l.value:l,n.textField),o=fe(o)?o.toString().toLowerCase():"",e&&o.startsWith(e)},a);return this.disabledItemsService.isIndexDisabled(s)?s+1>this.dataService.itemsCount?-1:this.findIndex(e,s+1):s}},{key:"searchTextAndFocus",value:function(e){var n=this.findIndex(e);this.selectionService.focused=n}},{key:"closePopup",value:function(){this.togglePopup(!1),this.focusedTagIndex=void 0}},{key:"openPopup",value:function(){this.togglePopup(!0),this.focusedTagIndex=void 0}},{key:"togglePopup",value:function(e){this.disabled||this.readonly||this.isOpen===e||this.triggerPopupEvents(e)||this._toggle(e)}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:n,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:n,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});var s=this.popupRef.popupElement,l=this.width,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){e.togglePopup(!1)})}},{key:"emitValueChange",value:function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)}},{key:"resolveDataItemFromTags",value:function(e){var n=this;if(this.tags&&this.tags.length&&fe(e))return this.tags.reduce(function(o,s){var l=Sa(s)?s:[s];return o.push.apply(o,Ae(l)),o},[]).find(function(o){return rt(o,n.valueField)===rt(e,n.valueField)})}},{key:"firstFocusableIndex",value:function(e){var n=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(e)){var a=e+1;return a input, kendo-label > textarea, kendo-label > select")}(this.elementRef.nativeElement);if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-".concat(qn())),void(this.control=e);this.control=this.kendoInput}}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngAfterViewInit",value:function(){this.labelDirective.setAriaLabelledby()}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"textFor",value:function(e){return this.localization.get(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-label"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Ui,7),2&t&&P(a=B())&&(e.kendoInput=a.first)},viewQuery:function(t,e){var n;1&t&&ge(b1,7),2&t&&P(n=B())&&(e.labelDirective=n.first)},hostVars:1,hostBindings:function(t,e){2&t&&ie("dir",e.direction)},inputs:{text:"text",for:"for",optional:"optional"},exportAs:["kendoLabel"],features:[de([Y,{provide:Et,useValue:"kendo.label"}])],ngContentSelectors:yae,decls:5,vars:5,consts:function(){return[["kendoLabelLocalizedMessages","","optional",$localize(_ae||(_ae=le([":kendo.label.optional|The text for the optional segment of a Label component:Optional"])))],[3,"for"],["class","k-label-optional",4,"ngIf"],[1,"k-label-optional"]]},template:function(t,e){1&t&&(kn(),Wt(0,0),A(1,"label",1),te(2),T(3,Wnt,2,1,"span",2),x(),dn(4)),2&t&&(k(1),ue("k-label-empty",!e.text),y("for",e.control),k(1),Nt(" ",e.text,""),k(1),y("ngIf",e.optional))},directives:[hB,b1,qe],encapsulation:2}),i}(),wae=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,w1],eit,w1]}),i}(),Ke=function(r){return r?new Date(r.getTime()):null},OC=function(r,t){var e=Ke(r);return 0===t&&23===e.getHours()&&e.setHours(e.getHours()+2),e},rs=function(r,t){var e=Ke(r);return e.setDate(e.getDate()+t),OC(e,r.getHours())},Ao=function(r,t,e){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,l=new Date(r,t,e,n,a,o,s);return r>-1&&r<100&&l.setFullYear(l.getFullYear()-1900),OC(l,n)},Ii=function(r){return Ao(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0)},vi=function(r,t){return!r&&!t||r&&t&&r.getTime()===t.getTime()},Ml=function(r){var t=Ao(r.getFullYear(),r.getMonth()+1,1,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return rs(t,-1)},Kr=function(r,t){var e=Ke(r),a=(12+(e.getMonth()+t)%12)%12;return e.setMonth(e.getMonth()+t),function(r,t){return r.getMonth()!==t?Ml(Kr(r,-1)):r}(OC(e,r.getHours()),a)},Dae=function(r,t){var e=r.getMonth(),n=Ao(t,e,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return n.getMonth()===e?n:Ml(Kr(n,-1))},xo=function(r,t){return OC(Dae(r,r.getFullYear()+t),r.getHours())},Ws=function(r,t){return xo(r,10*t)},IC=function(r,t){return xo(r,100*t)},D1=function(r,t){return Dae(r,t(r.getFullYear()))},hv=function(r){return D1(r,function(t){return t-t%100})},E1=function(r){return D1(r,function(t){return t-t%100+90})},oo=function(r){return D1(r,function(t){return t-t%10})},NC=function(r){return D1(r,function(t){return t-t%10+9})},Eae=function(r,t){var e=r.getDate(),n=Ao(r.getFullYear(),t,e,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return n.getDate()===e?n:Ml(Kr(n,-1))},FC=function(r){return Eae(r,11)},Tae=function(r,t){return(hv(t).getFullYear()-hv(r).getFullYear())/100},Aae=function(r,t){return(oo(t).getFullYear()-oo(r).getFullYear())/10},xae=function(r,t){return rs(r,7*t)},Mae=function(r){return Ao(r.getFullYear(),r.getMonth(),1,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())},LC=function(){return function(i){i[i.Forward=1]="Forward",i[i.Backward=-1]="Backward"}(LC||(LC={})),LC}(),Rae=function(r,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:LC.Forward,n=Ke(r),a=(t-n.getDay()+7*e)%7;return n.setDate(n.getDate()+a),OC(n,r.getHours())},Oae=function(r,t){return 12*(t.getFullYear()-r.getFullYear())+(t.getMonth()-r.getMonth())},Iae=function(r){return Eae(r,0)},Nae=function(r,t){return t.getFullYear()-r.getFullYear()},PC=function(){return function(i){i[i.Sunday=0]="Sunday",i[i.Monday=1]="Monday",i[i.Tuesday=2]="Tuesday",i[i.Wednesday=3]="Wednesday",i[i.Thursday=4]="Thursday",i[i.Friday=5]="Friday",i[i.Saturday=6]="Saturday"}(PC||(PC={})),PC}(),vB=function(r,t){var e=Ao(r.getFullYear(),0,1,-6),a=function(r,t){return t!==PC.Monday?rs(function(r,t){return Rae(r,t,LC.Backward)}(r,t),4):rs(r,4-(r.getDay()||7))}(r,t).getTime()-e.getTime(),o=Math.floor(a/864e5);return 1+Math.floor(o/7)},Fae=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PC.Monday;r=Ii(r);var e=rs(r,-7),n=rs(r,7),a=vB(r,t);return 0===a?vB(e,t)+1:53===a&&vB(n,t)>1?1:a},BC={schedule:function(r){var t=requestAnimationFrame,e=cancelAnimationFrame,n=BC.delegate;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);var a=t(function(o){e=void 0,r(o)});return new Je(function(){return null==e?void 0:e(a)})},requestAnimationFrame:function(i){function r(){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(){var i=BC.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,arguments)}),cancelAnimationFrame:function(i){function r(){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(){var i=BC.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,arguments)}),delegate:void 0},ait=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).scheduler=e,a.work=n,a}return v(t,[{key:"requestAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?$(q(t.prototype),"requestAsyncId",this).call(this,n,a,o):(n.actions.push(this),n._scheduled||(n._scheduled=BC.requestAnimationFrame(function(){return n.flush(void 0)})))}},{key:"recycleAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return $(q(t.prototype),"recycleAsyncId",this).call(this,n,a,o);n.actions.some(function(s){return s.id===a})||(BC.cancelAnimationFrame(a),n._scheduled=void 0)}}]),t}(D6),oit=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"flush",value:function(n){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;n=n||o.shift();do{if(s=n.execute(n.state,n.delay))break}while((n=o[0])&&n.id===a&&o.shift());if(this._active=!1,s){for(;(n=o[0])&&n.id===a&&o.shift();)n.unsubscribe();throw s}}}]),t}(E6),sit=new oit(ait),uit=["kendoCalendarView",""];function cit(i,r){1&i&&(A(0,"td",3),te(1,"\xa0"),x())}function dit(i,r){if(1&i&&(A(0,"tr",4)(1,"th",5),te(2),x()()),2&i){var t=D();k(1),y("colSpan",t.colSpan),k(1),at(t.title)}}function hit(i,r){if(1&i&&te(0),2&i){var t=D(3).$implicit,e=D();Nt(" ",e.getWeekNumber(e.firstDate(t))," ")}}function fit(i,r){}var sh=function(r){return{click:r}},Coe=function(r,t){return{$implicit:r,cellContext:t}};function vit(i,r){if(1&i&&(A(0,"td",9),T(1,hit,1,1,"ng-template",6),T(2,fit,0,0,"ng-template",10),x()),2&i){var t=D(2).$implicit,e=D();y("kendoEventsOutsideAngular",ot(5,sh,e.handleWeekNumberClick.bind(e,t))),k(1),y("ngIf",!e.weekNumberTemplateRef),k(1),y("ngIf",e.weekNumberTemplateRef)("ngTemplateOutlet",e.weekNumberTemplateRef)("ngTemplateOutletContext",ln(7,Coe,e.firstDate(t),e.getWeekNumberContext(t)))}}function pit(i,r){if(1&i&&T(0,vit,3,10,"td",8),2&i){var t=D().$implicit,e=D(),n=Yt(1);y("ngIf",e.firstDate(t))("ngIfElse",n)}}function git(i,r){1&i&&te(0),2&i&&at(D(2).$implicit.formattedValue)}function mit(i,r){}function _it(i,r){if(1&i&&T(0,mit,0,0,"ng-template",15),2&i){var t=D(2).$implicit;y("ngTemplateOutlet",D(2).templateRef)("ngTemplateOutletContext",ln(2,Coe,t.value,t))}}function yit(i,r){if(1&i&&(A(0,"td",12)(1,"span",13),T(2,git,1,1,"ng-template",6),T(3,_it,1,5,null,14),x()()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D().index,o=D();y("ngClass",o.getStyles(e))("title",e.title),ie("id",e.id)("data-cell-index",o.tableCellIndex(a,n))("aria-selected",e.isSelected||e.isRangeStart||e.isRangeMid||e.isRangeEnd)("aria-disabled",e.isDisabled),k(2),y("ngIf",!o.templateRef),k(1),y("ngIf",o.templateRef)}}function kit(i,r){if(1&i&&(Ve(0),T(1,yit,4,8,"td",11),Ge()),2&i){var t=r.$implicit,e=D(2),n=Yt(1);k(1),y("ngIf",e.shouldRenderCellContent(t))("ngIfElse",n)}}function Cit(i,r){if(1&i&&(A(0,"tr",4),T(1,pit,1,2,"ng-template",6),T(2,kit,2,2,"ng-container",7),x()),2&i){var t=r.$implicit,e=D();k(1),y("ngIf",e.weekNumber),k(1),y("kForOf",t)}}function bit(i,r){if(1&i&&(A(0,"caption",7),te(1),x()),2&i){var t=D().date,e=D();y("ngClass",e.getCaptionClass()),k(1),at(e.getCaptionTitle(t))}}function Sit(i,r){if(1&i&&(A(0,"th",11),te(1),x()),2&i){var t=r.$implicit;k(1),at(t)}}function wit(i,r){if(1&i&&(A(0,"thead",8)(1,"tr",9),T(2,Sit,2,1,"th",10),x()()),2&i){var t=D(2);k(2),y("ngForOf",t.weekNames)}}function Dit(i,r){if(1&i){var t=Me();A(0,"table",3),T(1,bit,2,2,"caption",4),T(2,wit,3,1,"thead",5),A(3,"tbody",6),Q("cellClick",function(s){return re(t),D().cellClick.emit(s)})("weekNumberCellClick",function(s){return re(t),D().weekNumberCellClick.emit(s)})("cellEnter",function(s){return re(t),D().cellEnter.emit(s)})("cellLeave",function(s){return re(t),D().cellLeave.emit(s)}),x()()}if(2&i){var e=r.date,n=r.className,a=D();y("ngClass",n),k(1),y("ngIf",a.showViewHeader),k(1),y("ngIf",a.isMonthView()),k(1),y("activeView",a.activeView)("isActive",a.isActive)("min",a.min)("max",a.max)("cellUID",a.cellUID)("focusedDate",a.focusedDate)("selectedDates",a.selectedDates)("selectionRange",a.selectionRange)("activeRangeEnd",a.activeRangeEnd)("weekNumber",a.weekNumber)("templateRef",a.cellTemplateRef)("weekNumberTemplateRef",a.weekNumberTemplateRef)("viewDate",e)}}function Eit(i,r){}var boe=function(r){return{date:r,className:"k-pointer-events-none"}};function Tit(i,r){if(1&i&&T(0,Eit,0,0,"ng-template",12),2&i){var t=D();y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,boe,t.nextAnimationDate))}}function Ait(i,r){}var xit=function(r){return{date:r}};function Mit(i,r){if(1&i&&T(0,Ait,0,0,"ng-template",12),2&i){var t=r.$implicit;D(),y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,xit,t))}}function Rit(i,r){}function Oit(i,r){if(1&i&&T(0,Rit,0,0,"ng-template",12),2&i){var t=D();y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,boe,t.prevAnimationDate))}}function Iit(i,r){1&i&&te(0),2&i&&at(D().title)}function Nit(i,r){}function Fit(i,r){if(1&i){var t=Me();A(0,"button",8),Q("click",function(){return re(t),D().prevButtonClick.emit()}),z(1,"span",9),x()}if(2&i){var e=D();y("disabled",e.isPrevDisabled)("title",e.prevButtonTitle),ie("aria-disabled",e.isPrevDisabled)}}function Lit(i,r){if(1&i){var t=Me();A(0,"button",10),Q("click",function(){return re(t),D().nextButtonClick.emit()}),z(1,"span",11),x()}if(2&i){var e=D();y("disabled",e.isNextDisabled)("title",e.nextButtonTitle),ie("aria-disabled",e.isNextDisabled)}}var Soe=function(r,t,e){return{$implicit:r,activeView:t,date:e}},Pit=function(r){return{focusin:r}},woe=["*"],Doe=["list"];function Bit(i,r){if(1&i&&te(0),2&i){var t=D().$implicit;at(D().service.navigationTitle(t))}}function Vit(i,r){}function Git(i,r){if(1&i&&(A(0,"li")(1,"span"),T(2,Bit,1,1,"ng-template",5),T(3,Vit,0,0,"ng-template",6),x()()),2&i){var t=r.$implicit,e=r.index,n=D();ie("data-date-index",e),k(1),ue("k-calendar-navigation-marker",n.service.isRangeStart(t)),k(1),y("ngIf",!n.templateRef),k(1),y("ngIf",n.templateRef)("ngTemplateOutlet",n.templateRef)("ngTemplateOutletContext",va(7,Soe,n.service.navigationTitle(t),n.activeViewValue,t))}}function Uit(i,r){if(1&i&&(A(0,"th",11),te(1),x()),2&i){var t=r.$implicit;Qe("width",D(2).colWidth,"%"),k(1),at(t)}}function zit(i,r){if(1&i&&(A(0,"table",7)(1,"thead",8)(2,"tr",9),T(3,Uit,2,3,"th",10),x()()()),2&i){var t=D();k(3),y("ngForOf",t.weekNames)}}function Hit(i,r){1&i&&z(0,"col")}function Kit(i,r){if(1&i){var t=Me();A(0,"tbody",12),Q("cellClick",function(o){return re(t),D().cellClick.emit(o)})("weekNumberCellClick",function(o){return re(t),D().weekNumberCellClick.emit(o)}),x()}if(2&i){var e=r.$implicit,n=D();y("activeView",n.activeView)("isActive",n.isActive)("min",n.min)("max",n.max)("cellUID",n.cellUID)("focusedDate",n.focusedDate)("selectedDates",n.selectedDates)("weekNumber",n.weekNumber)("templateRef",n.cellTemplateRef)("weekNumberTemplateRef",n.weekNumberTemplateRef)("viewDate",e)}}function jit(i,r){if(1&i){var t=Me();A(0,"kendo-calendar-navigation",5),Q("valueChange",function(a){return re(t),D(2).handleNavigation(a)})("pageChange",function(){return re(t),D(2).onPageChange()}),x()}if(2&i){var e=D(2);y("activeView",e.activeViewEnum)("focusedDate",e.focusedDate)("min",e.min)("max",e.max)("templateRef",null==e.navigationItemTemplateRef?null:e.navigationItemTemplateRef.templateRef)}}function Wit(i,r){if(1&i){var t=Me();Ve(0),T(1,jit,1,5,"kendo-calendar-navigation",2),A(2,"kendo-calendar-viewlist",3),Q("todayButtonClick",function(o){return re(t),D().handleDateChange({selectedDates:[o],focusedDate:o})})("cellClick",function(o){return re(t),D().handleCellClick(o)})("weekNumberCellClick",function(o){return re(t),D().handleWeekNumberClick(o)})("activeDateChange",function(o){return re(t),D().handleActiveDateChange(o)})("pageChange",function(){return re(t),D().onPageChange()}),x(),A(3,"kendo-resize-sensor",4),Q("resize",function(){return re(t),D().onResize()}),x(),Ge()}if(2&i){var n,e=D();k(1),y("ngIf",e.navigation),k(1),y("activeView",e.activeViewEnum)("isActive",e.isActive)("cellTemplateRef",null==(n=e.activeCellTemplate())?null:n.templateRef)("headerTitleTemplateRef",null==e.headerTitleTemplateRef?null:e.headerTitleTemplateRef.templateRef)("weekNumberTemplateRef",null==e.weekNumberTemplateRef?null:e.weekNumberTemplateRef.templateRef)("cellUID",e.cellUID)("min",e.min)("max",e.max)("focusedDate",e.focusedDate)("weekNumber",e.weekNumber)("selectedDates",e.selectedDates)}}function $it(i,r){if(1&i){var t=Me();Ve(0),A(1,"kendo-multiviewcalendar",6,7),Q("activeViewChange",function(a){return re(t),D().handleActiveViewChange(a)})("navigate",function(a){return re(t),D().handleNavigate(a)})("valueChange",function(a){re(t);var o=Yt(2);return D().handleMultiViewCalendarValueChange(a,o.focusedDate)})("focus",function(){return re(t),D().handleFocus()})("blur",function(a){return re(t),D().handleBlur(a)})("keydown",function(a){return re(t),D().handleMultiViewCalendarKeydown(a)}),z(3,"kendo-multiviewcalendar-messages",8),x(),Ge()}if(2&i){var e=D();k(1),y("views",1)("min",e.min)("max",e.max)("isActive",e.isActive)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("weekNumber",e.weekNumber)("animateNavigation",e.animateNavigation)("cellTemplate",e.activeCellTemplate())("monthCellTemplate",e.monthCellTemplateRef)("yearCellTemplate",e.yearCellTemplateRef)("decadeCellTemplate",e.decadeCellTemplateRef)("centuryCellTemplate",e.centuryCellTemplateRef)("headerTitleTemplate",e.headerTitleTemplateRef)("weekNumberTemplate",e.weekNumberTemplateRef)("focusedDate",e.focusedDate)("selection",e.selection)("value",e.value)("disabledDates",e.disabledDates),k(2),y("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))}}var qit=["dateInput"],Xit=["spinup"],Zit=["spindown"];function Yit(i,r){if(1&i){var t=Me();A(0,"span",4),Q("mousedown",function(a){return a.preventDefault()}),A(1,"button",5,6),Q("mousedown",function(){re(t);var a=D();return a.arrowDirection=a.arrow.Up})("mouseleave",function(){re(t);var a=D();return a.arrowDirection=a.arrow.None})("click",function(){return re(t),D().handleButtonClick(1)}),z(3,"span",7),x(),A(4,"button",8,9),Q("click",function(){return re(t),D().handleButtonClick(-1)})("mousedown",function(){re(t);var a=D();return a.arrowDirection=a.arrow.Down})("mouseleave",function(){re(t);var a=D();return a.arrowDirection=a.arrow.None}),z(6,"span",10),x()()}if(2&i){var e=D();k(1),ue("k-active",e.arrowDirection===e.arrow.Up),y("title",e.localization.get("increment")),ie("aria-label",e.localization.get("increment")),k(3),ue("k-active",e.arrowDirection===e.arrow.Down),y("title",e.localization.get("decrement")),ie("aria-label",e.localization.get("decrement"))}}var Qit=function(r,t,e,n,a,o,s){return{click:r,focus:t,mousedown:e,touchstart:n,dragstart:a,drop:o,blur:s}},M1=["container"],pB=["popupTemplate"],gB=["toggleButton"];function Jit(i,r){}var Eoe=function(r){return{keydown:r}};function ert(i,r){if(1&i){var t=Me();A(0,"kendo-calendar",8,9),Q("valueChange",function(a){re(t);var o=D();return o.handleChange(o.mergeTime(a))}),z(2,"kendo-calendar-messages",10),x(),T(3,Jit,0,0,"ng-template")}if(2&i){var e=D();y("type",e.calendarType)("min",e.min)("max",e.max)("navigation",e.navigation)("animateNavigation",e.animateCalendarNavigation)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("weekNumber",e.weekNumber)("cellTemplate",e.cellTemplate)("monthCellTemplate",e.monthCellTemplate)("yearCellTemplate",e.yearCellTemplate)("decadeCellTemplate",e.decadeCellTemplate)("centuryCellTemplate",e.centuryCellTemplate)("weekNumberTemplate",e.weekNumberTemplate)("headerTitleTemplate",e.headerTitleTemplate)("navigationItemTemplate",e.navigationItemTemplate)("focusedDate",e.focusedDate)("value",e.value)("kendoEventsOutsideAngular",ot(25,Eoe,e.handleKeydown))("scope",e)("disabledDates",e.disabledDates),k(2),y("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))}}var Toe=function(r,t){return{click:r,mousedown:t}},cm={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652250169,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},zt=function(){return function(i){i[i.Left=0]="Left",i[i.Right=1]="Right",i[i.Up=2]="Up",i[i.Down=3]="Down",i[i.PrevView=4]="PrevView",i[i.NextView=5]="NextView",i[i.FirstInView=6]="FirstInView",i[i.LastInView=7]="LastInView",i[i.LowerView=8]="LowerView",i[i.UpperView=9]="UpperView"}(zt||(zt={})),zt}(),vt=function(){return function(i){i[i.month=0]="month",i[i.year=1]="year",i[i.decade=2]="decade",i[i.century=3]="century"}(vt||(vt={})),vt}(),Au=new Date(1980,0,1),Rl=new Date(1900,0,1),Ol=new Date(2099,11,31),so=(new Date(1980,0,1),new Date(1980,0,1,23,59,59),{start:null,end:null}),R1=function(r){return r&&(!r.touched||r.control&&"blur"===r.control.updateOn)},Art=function(r){return r.preventDefault()},St=function(r){return null!=r},Aoe=function(r){return null!=r},VC=function(r){return function(t,e){var n=Ke(t);return n[r](e),n}},xu=function(r,t){var e=Ke(r);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},Rrt=VC("setFullYear"),O1=VC("setHours"),I1=VC("setMinutes"),N1=VC("setSeconds"),F1=VC("setMilliseconds"),Ba=function(r,t){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=[],a=r;ar||e&&ee?Ke(e):r)},Il=function(){return Ii(new Date)},Vt=function(r){},Roe=function(r,t){return r.slice(t).concat(r.slice(0,t))},as=function(r){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=document.createElement(r);return a.className=e,Object.keys(n).map(function(o){return a.style[o]=n[o]}),"string"==typeof t?a.innerHTML=t||"":(t||[]).forEach(function(o){return o&&a.appendChild(o)}),a}},lh=function(r,t){return void 0!==r[t]},Ooe=function(r,t){return r[t]&&null!=r[t].currentValue},uh=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r&&r[r.length-1]},P1=function(r,t){var e=t||so,n=e.start,a=e.end;return!(!n||!a)&&nC.getFullYear();if(!n.isInRange(N,u,l)||G)return null;var U=n.isEqual(N,h.start),ee=n.isEqual(N,h.end),V=!U&&!ee&&P1(N,h);return{formattedValue:n.value(N),id:"".concat(a).concat(N.getTime()),isFocused:n.isEqual(N,o),isSelected:s&&c.some(function(I){return n.isEqual(N,I)}),isWeekend:!1,isRangeStart:U,isRangeMid:V,isRangeEnd:ee,isRangeSplitEnd:V&&n.isEqual(N,C),isRangeSplitStart:V&&n.isEqual(N,_),isToday:n.isEqual(N,w),title:n.cellTitle(N),value:N}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&oo(e).getFullYear()===oo(n).getFullYear()}},{key:"isInArray",value:function(e,n){if(!n.length)return!1;var a=e.getFullYear();return n[0].getFullYear()<=a&&a<=n[n.length-1].getFullYear()+99}},{key:"isInRange",value:function(e,n,a){var o=oo(e).getFullYear(),s=!n||oo(n).getFullYear()<=o,l=!a||o<=oo(a).getFullYear();return s&&l}},{key:"beginningOfPeriod",value:function(e){if(!e)return e;var n=oo(hv(e));return Ao(n.getFullYear(),0,1)}},{key:"lastDayOfPeriod",value:function(e){var n=E1(e),a=NC(n),o=FC(a);return Ml(o)}},{key:"isRangeStart",value:function(e){return e.getFullYear()%1e3==0}},{key:"move",value:function(e,n){var a=Krt[n];return a?a(e):e}},{key:"cellTitle",value:function(e){return oo(e).getFullYear().toString()}},{key:"navigationTitle",value:function(e){return e?hv(e).getFullYear().toString():""}},{key:"title",value:function(e){return e?"".concat(hv(e).getFullYear()," - ").concat(E1(e).getFullYear()):""}},{key:"rowLength",value:function(){return 4}},{key:"skip",value:function(e,n){return Tae(n,e)}},{key:"total",value:function(e,n){return Tae(e,n)+1}},{key:"value",value:function(e){return e?oo(e).getFullYear().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),jrt=[[]],$rt=(De(Du={},zt.Left,function(i){return xo(i,-1)}),De(Du,zt.Up,function(i){return xo(i,-5)}),De(Du,zt.Right,function(i){return xo(i,1)}),De(Du,zt.Down,function(i){return xo(i,5)}),De(Du,zt.PrevView,function(i){return Ws(i,-1)}),De(Du,zt.NextView,function(i){return Ws(i,1)}),De(Du,zt.FirstInView,function(i){return oo(i)}),De(Du,zt.LastInView,function(i){return NC(i)}),Du),EB=function(){var i=function(){function r(){p(this,r),this.dateRange=function(t,e){if(!St(t)||!St(e))return[];for(var n=[],a=t;a<=e;)n.push(a),a=xo(a,1);return n}}return v(r,[{key:"addToDate",value:function(e,n){return Ws(e,n)}},{key:"datesList",value:function(e,n){return Ba(0,n).map(function(a){return Ws(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate;if(!f)return jrt;var g=Ba(0,4),_=oo(f),C=NC(f),w=Il();return Ba(0,3).map(function(E){var M=xo(_,4*E);return g.map(function(R){var N=n.normalize(xo(M,R),u,l),G=N.getFullYear()>C.getFullYear();if(!n.isInRange(N,u,l)||G)return null;var U=n.isEqual(N,h.start),ee=n.isEqual(N,h.end),V=!U&&!ee&&P1(N,h);return{formattedValue:n.value(N),id:"".concat(a).concat(N.getTime()),isFocused:n.isEqual(N,o),isSelected:s&&c.some(function(I){return n.isEqual(N,I)}),isWeekend:!1,isRangeStart:U,isRangeMid:V,isRangeEnd:ee,isRangeSplitEnd:V&&n.isEqual(N,C),isRangeSplitStart:V&&n.isEqual(N,_),isToday:n.isEqual(N,w),title:n.cellTitle(N),value:N}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&e.getFullYear()===n.getFullYear()}},{key:"isInArray",value:function(e,n){if(!n.length)return!1;var a=e.getFullYear();return n[0].getFullYear()<=a&&a<=n[n.length-1].getFullYear()+9}},{key:"isInRange",value:function(e,n,a){var o=e.getFullYear(),s=!n||n.getFullYear()<=o,l=!a||o<=a.getFullYear();return s&&l}},{key:"beginningOfPeriod",value:function(e){if(!e)return e;var n=oo(e);return Ao(n.getFullYear(),0,1)}},{key:"lastDayOfPeriod",value:function(e){var n=NC(e),a=FC(n);return Ml(a)}},{key:"isRangeStart",value:function(e){return e.getFullYear()%100==0}},{key:"move",value:function(e,n){var a=$rt[n];return a?a(e):e}},{key:"cellTitle",value:function(e){return e.getFullYear().toString()}},{key:"navigationTitle",value:function(e){return e?oo(e).getFullYear().toString():""}},{key:"title",value:function(e){return e?"".concat(oo(e).getFullYear()," - ").concat(NC(e).getFullYear()):""}},{key:"rowLength",value:function(){return 4}},{key:"skip",value:function(e,n){return Aae(n,e)}},{key:"total",value:function(e,n){return Aae(e,n)+1}},{key:"value",value:function(e){return e?e.getFullYear().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),qrt=[[]],Zrt=(De(Eu={},zt.Left,function(i){return rs(i,-1)}),De(Eu,zt.Up,function(i){return xae(i,-1)}),De(Eu,zt.Right,function(i){return rs(i,1)}),De(Eu,zt.Down,function(i){return xae(i,1)}),De(Eu,zt.PrevView,function(i){return Kr(i,-1)}),De(Eu,zt.NextView,function(i){return Kr(i,1)}),De(Eu,zt.FirstInView,function(i){return Mae(i)}),De(Eu,zt.LastInView,function(i){return Ml(i)}),Eu),AB=function(){var i=function(){function r(t){p(this,r),this._intlService=t,this.dateRange=function(e,n){if(!St(e)||!St(n))return[];for(var a=[],o=e;o<=n;)a.push(o),o=rs(o,1);return a}}return v(r,[{key:"addToDate",value:function(e,n){return Kr(e,n)}},{key:"datesList",value:function(e,n){return Ba(0,n).map(function(a){return Kr(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate,g=e.isDateDisabled,_=void 0===g?function(){return!1}:g;if(!f)return qrt;var C=Mae(f),w=Ii(C),E=Ml(f),M=Ii(E),N=Rae(C,this._intlService.firstDay(),-1),G=Ba(0,7),U=Il();return Ba(0,6).map(function(ee){var ve=rs(N,7*ee);return G.map(function(V){var I=n.normalize(rs(ve,V),u,l),K=Ii(I),H=KM;if(Il)return null;var me=n.isEqual(I,h.start),ae=n.isEqual(I,h.end),Ce=!me&&!ae&&P1(I,h);return{formattedValue:n.value(I),id:"".concat(a).concat(I.getTime()),isFocused:n.isEqual(I,o),isSelected:s&&c.some(function(ye){return n.isEqual(I,ye)}),isWeekend:n.isWeekend(I),isRangeStart:me,isRangeMid:Ce,isRangeEnd:ae,isRangeSplitStart:Ce&&n.isEqual(I,C),isRangeSplitEnd:Ce&&n.isEqual(I,E),isToday:n.isEqual(I,U),title:n.cellTitle(I),value:I,isDisabled:_(I),isOtherMonth:H}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&Ii(e).getTime()===Ii(n).getTime()}},{key:"isInArray",value:function(e,n){if(0===n.length)return!1;var a=this.beginningOfPeriod(n[0]),o=this.beginningOfPeriod(Kr(n[n.length-1],1));return a<=e&&e0&&void 0!==arguments[0]?arguments[0]:{};return 7+(e.prependCell?1:0)}},{key:"skip",value:function(e,n){return Oae(n,e)}},{key:"total",value:function(e,n){return Oae(e,n)+1}},{key:"value",value:function(e){return e?e.getDate().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}},{key:"wideMonthNames",value:function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Yrt=[[]],tat=(De(Tu={},zt.Left,function(i){return Kr(i,-1)}),De(Tu,zt.Up,function(i){return Kr(i,function(r){return r>4?-5:r<2?-2:-7}(i.getMonth()))}),De(Tu,zt.Right,function(i){return Kr(i,1)}),De(Tu,zt.Down,function(i){return Kr(i,function(r){return r<7?5:r<10?7:2}(i.getMonth()))}),De(Tu,zt.PrevView,function(i){return xo(i,-1)}),De(Tu,zt.NextView,function(i){return xo(i,1)}),De(Tu,zt.FirstInView,function(i){return Iae(i)}),De(Tu,zt.LastInView,function(i){return FC(i)}),Tu),MB=function(){var i=function(){function r(t){p(this,r),this._intlService=t,this.dateRange=function(e,n){if(!St(e)||!St(n))return[];for(var a=[],o=e;o<=n;)a.push(o),o=Kr(o,1);return a}}return v(r,[{key:"addToDate",value:function(e,n){return xo(e,n)}},{key:"datesList",value:function(e,n){return Ba(0,n).map(function(a){return xo(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate;if(!f)return Yrt;var g=this.abbrMonthNames(),_=Iae(f),C=FC(f),w=_.getFullYear(),E=Ba(0,4),M=Il();return Ba(0,3).map(function(R){var N=Kr(_,4*R);return E.map(function(G){var U=n.normalize(Kr(N,G),u,l),ee=w2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),nat=(De(um={},vt.month,AB),De(um,vt.year,MB),De(um,vt.decade,EB),De(um,vt.century,wB),um),Nl=function(){var i=function(){function r(t){p(this,r),this.injector=t,this.viewChanged=new O,this.bottom=vt.month,this.top=vt.century}return v(r,[{key:"configure",value:function(e,n){this.bottom=e,this.top=n}},{key:"service",value:function(e){var n=nat[e];return n?this.injector.get(n):null}},{key:"moveDown",value:function(e){this.move(e,-1)}},{key:"moveUp",value:function(e){this.move(e,1)}},{key:"moveToBottom",value:function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})}},{key:"canMoveDown",value:function(e){return this.bottomthis.top?this.top:e}},{key:"move",value:function(e,n){var a=this.clamp(function(r,t){var e=vt[vt[r+t]];return void 0!==e?e:r}(e,n));a!==e&&this.viewChanged.emit({view:a})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),RB=function(){var i=function(){function r(t){p(this,r),this.intl=t}return v(r,[{key:"getWeekNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Roe(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(n):n}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),OB=function(r,t,e){for(;r&&r!==e&&!t(r);)r=r.parentNode;if(r!==e)return r},IB=function(r,t){for(;r&&!t(r);)r=r.parentNode;return r},Foe=function(){return!1},Ru=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.isDateDisabled=Foe}return v(r,[{key:"initialize",value:function(e){if("function"==typeof e)this.isDateDisabled=function(o){return e(Ii(o))};else if(function(r){return Array.isArray(r)&&r.length>0&&r.every(function(t){return"number"==typeof t})}(e)){var n=new Set(e);this.isDateDisabled=function(o){return n.has(o.getDay())}}else if(function(r){return Array.isArray(r)&&r.length>0&&r.every(function(t){return t instanceof Date})}(e)){var a=new Set(e.map(function(o){return Ii(o).getTime()}));this.isDateDisabled=function(o){return a.has(Ii(o).getTime())}}else this.isDateDisabled=Foe,this.notifyInvalidInput(e);this.notifyServiceChange()}},{key:"notifyInvalidInput",value:function(e){if(St(e)&&xt())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check ".concat("https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/"," for more information."))}},{key:"notifyServiceChange",value:function(){this.changes.next()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),aat=function(){function i(r,t,e,n){p(this,i),this.$implicit=r,this.kForOf=t,this.index=e,this.count=n}return v(i,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),i}(),G1=function(){var i=function(){function r(t,e,n){p(this,r),this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return v(r,[{key:"kForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngOnChanges",value:function(e){if("kForOf"in e){var n=e.kForOf.currentValue;if(this._differ||!n)return;try{this._differ=this._differs.find(n).create(this.kForTrackBy)}catch(a){throw new Error("Cannot find a differ supporting object '".concat(n,"' of type '").concat(function oat(i){return i.name||typeof i}(n),"'."))}}}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}}},{key:"_applyChanges",value:function(e){if(Ze()){var n=this._viewContainer.length,a=this.kForOf.length,o={};e.forEachOperation(function(d,h,f){null!==f&&(o[f]=d.item)});for(var s=n;sa;l--)this._viewContainer.remove(l-1);for(var u=0;u0&&lh(e,"views");(o||!this.isInDates(n)||s||!this.activeDate)&&(this.dates=this.service.datesList(a,this.getTake(this.skip)),this.activeDate=Ke(this.dates[0]),this.activeDateChange.emit(this.activeDate))}}},{key:"ngAfterViewInit",value:function(){1===this.views&&this.setTableMinWidth()}},{key:"ngOnDestroy",value:function(){this.intlSubscription.unsubscribe()}},{key:"initService",value:function(){this.service=this.bus.service(this.activeView)}},{key:"isMonthView",value:function(){return this.activeView===vt.month}},{key:"getCaptionTitle",value:function(e){return this.service.title(e)}},{key:"getCaptionClass",value:function(){return this.isMonthView()?"k-month-header":"k-meta-header"}},{key:"animateView",value:function(e){var n=this,a=this.element.nativeElement,o=a.querySelector("table"),s=parseFloat(getComputedStyle(a).width),l=parseFloat(getComputedStyle(o).width);this.renderer.setStyle(a,"width","".concat(s,"px")),this.renderer.setStyle(a,"overflow","visible"),e===zt.NextView?this.nextAnimationDate=Ke(this.dates[0]):this.prevAnimationDate=Ke(this.dates[this.dates.length-1]),this.cdr.detectChanges(),a.querySelectorAll("table").forEach(function(f){n.renderer.setStyle(f,"width","".concat(l,"px")),1===n.views&&n.renderer.setStyle(f,"min-width","".concat(s,"px"))});var u=o.getBoundingClientRect(),c=parseFloat(getComputedStyle(a).columnGap),d=e===zt.NextView?"translateX(0)":"translateX(-".concat(u.width+c,"px)"),h=e===zt.NextView?"translateX(-".concat(u.width+c,"px)"):"translateX(0)";this.animation?this.animation.cancel():(this.animation=a.animate([{transform:d},{transform:h}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=function(){n.renderer.removeStyle(a,"width"),n.renderer.removeStyle(a,"overflow"),a.querySelectorAll("table").forEach(function(f){n.renderer.removeStyle(f,"width")}),n.animation=null,n.nextAnimationDate=null,n.prevAnimationDate=null,n.cdr.detectChanges()})}},{key:"navigate",value:function(e){this.animateNavigation&&Ze()&&St(this.element.nativeElement.animate)&&this.animateView(e);var n=this.move(e),a=this.service.datesList(n,this.getTake(this.skip));return this.isListInRange(a)&&(this.dates=a),this.activeDate=Ke(this.dates[0]),this.focusedDate=Ke(n),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),Ke(n)}},{key:"canNavigate",value:function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))}},{key:"setTableMinWidth",value:function(){var e=this.element.nativeElement,n=e.querySelector("table");if(n){var a=parseFloat(getComputedStyle(e).width);this.renderer.setStyle(n,"min-width","".concat(a,"px"))}}},{key:"intlChange",value:function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()}},{key:"clampDate",value:function(e){return Mu(e,this.min,this.max)}},{key:"move",value:function(e){return this.service.move(this.dates[0]||this.focusedDate,e)}},{key:"isListInRange",value:function(e){var n=this.service.beginningOfPeriod(this.min),a=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return n<=e[0]&&e[e.length-1]u[0]?u[0]:uh(u)}else u=[n],l=n;else u=[n],l=n;return{selectedDates:u,rangePivot:l}}},{key:"isDateSelected",value:function(e,n){return e.some(function(a){return vi(a,n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Nl))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),z1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarCellTemplate",""]]}),i}(),H1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarMonthCellTemplate",""]]}),i}(),K1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarYearCellTemplate",""]]}),i}(),j1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarDecadeCellTemplate",""]]}),i}(),W1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarCenturyCellTemplate",""]]}),i}(),$1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarWeekNumberCellTemplate",""]]}),i}(),q1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarHeaderTitleTemplate",""]]}),i}(),UC=function(r){return function(t){return r&&t.value&&t.valuer?{maxError:{maxValue:r,value:t.value}}:null}},lat=function(){return null},X1=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-multiview-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[j]}),i}(),cat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(X1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoMultiViewCalendarLocalizedMessages",""]],features:[de([{provide:X1,useExisting:ke(function(){return i})}]),j]}),i}(),Voe="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",pat={multi:!0,provide:jn,useExisting:ke(function(){return fh})},gat={multi:!0,provide:tr,useExisting:ke(function(){return fh})},fh=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.bus=t,this.element=e,this.navigator=n,this.renderer=a,this.cdr=o,this.zone=s,this.disabledDatesService=l,this.selectionService=u,this.id=qn(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.isHeaderActive=!1,this.activeView=vt[vt.month],this.bottomView=vt[vt.month],this.topView=vt[vt.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new O,this.navigate=new O,this.cellEnter=new O,this.cellLeave=new O,this.valueChange=new O,this.blurEvent=new O,this.cellUID=qn(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=zt.PrevView,this.nextView=zt.NextView,this.selectedDates=[],this._min=new Date(Rl),this._max=new Date(Ol),this._focusedDate=Il(),this.resolvedPromise=Promise.resolve(),this.onControlChange=Vt,this.onControlTouched=Vt,this.onValidatorChange=Vt,this.minValidateFn=Vt,this.maxValidateFn=Vt,this.disabledDatesRangeValidateFn=Vt,this.subscriptions=new Je,this.setClasses(e.nativeElement)}return v(r,[{key:"focusedDate",get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||Il()}},{key:"min",get:function(){return this._min},set:function(e){this._min=e||new Date(Rl)}},{key:"max",get:function(){return this._max},set:function(e){this._max=e||new Date(Ol)}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(function(o){return St(o)}).map(function(o){return Ke(o)}):Ke(e);var n=[].concat(e).filter(function(o){return St(o)}).map(function(o){return Ke(o)});if(!V1(n,this.selectedDates)){var a=uh(n);this.rangePivot=Ke(a),this.focusedDate=Ke(a)||this.focusedDate,this.selectedDates=n}}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledDates",set:function(e){this.disabledDatesService.initialize(e)}},{key:"selectionRange",get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()}},{key:"cellTemplateRef",get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e}},{key:"monthCellTemplateRef",get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e}},{key:"yearCellTemplateRef",get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e}},{key:"decadeCellTemplateRef",get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e}},{key:"centuryCellTemplateRef",get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e}},{key:"weekNumberTemplateRef",get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e}},{key:"headerTitleTemplateRef",get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e}},{key:"activeViewEnum",get:function(){var e=vt[this.activeView];return et.end)return null;var n=function(r,t,e){if(!(r&&t&&e)||r>t)return[];for(var n=[],a=r;a<=t;)e(a)&&n.push(a),a=rs(a,1);return n}(t.start,t.end,r);return n.length?{disabledDatesInRange:n}:null}:lat}(this.disabledDatesService.isDateDisabled):Vt,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"ngAfterViewInit",value:function(){this.updateButtonState()}},{key:"focus",value:function(){!this.element||this.element.nativeElement.focus()}},{key:"blur",value:function(){!this.element||this.element.nativeElement.blur()}},{key:"handleHeaderFocus",value:function(){this.isHeaderActive=!0}},{key:"handleDateChange",value:function(e){var n=this,a=this.bus.canMoveDown(this.activeViewEnum),o=e.selectedDates.filter(function(l){return!n.disabledDatesService.isDateDisabled(l)});this.focusedDate=e.focusedDate||this.focusedDate;var s=!a&&V1(o,this.selectedDates);if(!this.disabled&&!s){if(a)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=o.map(function(l){return Ke(l)}),this.value=this.parseSelectionToValue(o),this.onControlChange(this.parseSelectionToValue(o)),this.valueChange.emit(this.parseSelectionToValue(o)))}}},{key:"handleTodayButtonClick",value:function(e){var n=e.focusedDate,a=this.bus.service(this.activeViewEnum).isInArray(n,this.viewList.dates),o=!this.bus.canMoveDown(this.activeViewEnum);!a&&o&&this.emitNavigate(n),this.handleDateChange(e)}},{key:"setActiveDate",value:function(e){this.activeDate=Ke(e),this.cdr.detectChanges()}},{key:"writeValue",value:function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()}},{key:"registerOnChange",value:function(e){this.onControlChange=e}},{key:"registerOnTouched",value:function(e){this.onControlTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.cdr.markForCheck()}},{key:"validate",value:function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)}},{key:"registerOnValidatorChange",value:function(e){this.onValidatorChange=e}},{key:"activeCellTemplate",value:function(){switch(this.activeViewEnum){case vt.month:return this.monthCellTemplateRef||this.cellTemplateRef;case vt.year:return this.yearCellTemplateRef;case vt.decade:return this.decadeCellTemplateRef;case vt.century:return this.centuryCellTemplateRef;default:return null}}},{key:"navigateView",value:function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)}},{key:"emitNavigate",value:function(e){this.navigate.emit({activeView:vt[this.activeViewEnum],focusedDate:e})}},{key:"emitCellEvent",value:function(e,n){ut(e)&&this.zone.run(function(){e.emit(n)})}},{key:"handleCellClick",value:function(e){this.performSelection(e.date,e.modifiers),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}},{key:"handleWeekNumberClick",value:function(e){var n=this;"single"!==this.selection&&this.zone.run(function(){n.handleDateChange({selectedDates:e,focusedDate:uh(e)})})}},{key:"setClasses",value:function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")}},{key:"verifyChanges",value:function(){if(xt()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max","."));if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview","."))}}},{key:"verifyValue",value:function(e){if(xt()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat(Voe," for possible resolution."));if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(function(a){return a instanceof Date}))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check ".concat(Voe," for possible resolution."))}}},{key:"updateButtonState",value:function(){var e=this;this.resolvedPromise.then(function(){e.isPrevDisabled=!e.viewList.canNavigate(e.prevView),e.isNextDisabled=!e.viewList.canNavigate(e.nextView),e.cdr.markForCheck()})}},{key:"parseSelectionToValue",value:function(e){return e=e||[],"single"===this.selection?Ke(uh(e)):e.map(function(n){return Ke(n)})}},{key:"performSelection",value:function(e,n){var a=this.selectionService.performSelection({date:e,modifiers:n,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=a.rangePivot,this.handleDateChange({selectedDates:a.selectedDates,focusedDate:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(_e),m(GC),m(Ee),m(nt),m(be),m(Ru),m(U1))},i.\u0275cmp=L({type:i,selectors:[["kendo-multiviewcalendar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,z1,5),he(n,H1,5),he(n,K1,5),he(n,j1,5),he(n,W1,5),he(n,$1,5),he(n,q1,5)),2&t&&(P(a=B())&&(e.cellTemplate=a.first),P(a=B())&&(e.monthCellTemplate=a.first),P(a=B())&&(e.yearCellTemplate=a.first),P(a=B())&&(e.decadeCellTemplate=a.first),P(a=B())&&(e.centuryCellTemplate=a.first),P(a=B())&&(e.weekNumberTemplate=a.first),P(a=B())&&(e.headerTitleTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(NB,5,_e),ge(Boe,5)),2&t&&(P(n=B())&&(e.headerElement=n.first),P(n=B())&&(e.viewList=n.first))},hostVars:6,hostBindings:function(t,e){1&t&&Q("focusout",function(a){return e.handleFocusout(a)})("focus",function(){return e.handleFocus()})("mouseenter",function(){return e.handleMouseEnter()})("mouseleave",function(){return e.handleMouseLeave()})("mousedown",function(a){return e.handleMousedown(a)})("click",function(){return e.handleClick()})("keydown",function(a){return e.keydown(a)}),2&t&&(ie("id",e.widgetId)("tabindex",e.calendarTabIndex)("aria-disabled",e.ariaDisabled)("aria-activedescendant",e.ariaActivedescendant),ue("k-disabled",e.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",isActive:"isActive",disabledDates:"disabledDates",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",views:"views",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange",blurEvent:"blur"},exportAs:["kendo-multiviewcalendar"],features:[de([Nl,pat,gat,Y,Ru,{provide:Et,useValue:"kendo.multiviewcalendar"},GC,U1]),Ie],decls:3,vars:28,consts:function(){return[["kendoMultiViewCalendarLocalizedMessages","","today",$localize(Lae||(Lae=le([":kendo.multiviewcalendar.today|The label for the today button in the calendar header:Today"]))),"prevButtonTitle",$localize(Pae||(Pae=le([":kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar:Navigate to previous view"]))),"nextButtonTitle",$localize(Bae||(Bae=le([":kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar:Navigate to next view"])))],[3,"activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","kendoEventsOutsideAngular","scope","todayButtonClick","prevButtonClick","nextButtonClick"],[3,"activeView","isActive","cellTemplateRef","weekNumberTemplateRef","cellUID","views","min","max","focusedDate","animateNavigation","showViewHeader","weekNumber","activeRangeEnd","selectionRange","selectedDates","cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange"]]},template:function(t,e){var n;1&t&&(Wt(0,0),A(1,"kendo-calendar-header",1),Q("todayButtonClick",function(o){return e.handleTodayButtonClick({selectedDates:[o],focusedDate:o})})("prevButtonClick",function(){return e.navigateView(e.prevView)})("nextButtonClick",function(){return e.navigateView(e.nextView)}),x(),A(2,"kendo-calendar-horizontal",2),Q("cellClick",function(o){return e.handleCellClick(o)})("weekNumberCellClick",function(o){return e.handleWeekNumberClick(o)})("cellEnter",function(o){return e.emitCellEvent(e.cellEnter,o)})("cellLeave",function(o){return e.emitCellEvent(e.cellLeave,o)})("activeDateChange",function(o){return e.setActiveDate(o)}),x()),2&t&&(k(1),y("activeView",e.activeViewEnum)("currentDate",e.activeDate)("min",e.min)("max",e.max)("rangeLength",e.views)("templateRef",null==e.headerTitleTemplateRef?null:e.headerTitleTemplateRef.templateRef)("isPrevDisabled",e.isPrevDisabled)("isNextDisabled",e.isNextDisabled)("showNavigationButtons",!0)("kendoEventsOutsideAngular",ot(26,Pit,e.handleHeaderFocus))("scope",e),k(1),y("activeView",e.activeViewEnum)("isActive",e.isActive||e.isHovered&&!e.isHeaderActive)("cellTemplateRef",null==(n=e.activeCellTemplate())?null:n.templateRef)("weekNumberTemplateRef",null==e.weekNumberTemplateRef?null:e.weekNumberTemplateRef.templateRef)("cellUID",e.cellUID)("views",e.views)("min",e.min)("max",e.max)("focusedDate",e.focusedDate)("animateNavigation",e.animateNavigation)("showViewHeader",e.showViewHeader)("weekNumber",e.weekNumber)("activeRangeEnd",e.activeRangeEnd)("selectionRange",e.selectionRange)("selectedDates",e.selectedDates))},directives:[NB,Boe,cat,qi],encapsulation:2,changeDetection:0}),i}(),_at=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0;p(this,i),this.total=r,this.rowHeight=t,this.detailRowHeight=e,this.offsets=[],this.heights=[];for(var n=0,a=0;athis.rowHeight&&this.updateRowHeight(t,-1*this.detailRowHeight)}},{key:"index",value:function(t){if(!(t<0)){var e=this.offsets.reduce(function(n,a,o){return void 0!==n?n:a===t?o:a>t?o-1:void 0},void 0);return void 0===e?this.total-1:e}}},{key:"offset",value:function(t){return this.offsets[t]}},{key:"totalHeight",value:function(){return this.heights.reduce(function(t,e){return t+e},0)}},{key:"updateRowHeight",value:function(t,e){this.heights[t]+=e,this.offsets=function(r,t,e){return[].concat(Ae(r.slice(0,t+1)),Ae(r.slice(t+1).map(function(n){return n+e})))}(this.offsets,t,e)}}]),i}(),Z1=function(r){return Math.max(r,0)},FB=v(function i(r){p(this,i),this.offset=r}),Y1=v(function i(r){p(this,i),this.skip=r}),yat=function(){function i(r){p(this,i),this.scrollObservable=r,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return v(i,[{key:"create",value:function(t,e,n,a){var o=this,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"vertical";this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+n,this.take=n,this.total=a,this.lastScroll=0,this.topOffset=s,this.bottomOffset=l,this.direction=u;var c=new I6(2),d=this.rowsForHeight(s),h=Z1(e-d);return c.next(new FB(this.rowOffset(h))),d&&c.next(new Y1(h)),this.subscription=new An(function(f){o.unsubscribe(),o.scrollSubscription=o.scrollObservable.subscribe(function(g){return o.onScroll(g,f)})}).subscribe(function(f){return c.next(f)}),c}},{key:"destroy",value:function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}},{key:"onScroll",value:function(t,e){var l="vertical"===this.direction?t.scrollTop:t.scrollLeft,u="vertical"===this.direction?t.offsetHeight:t.offsetWidth;if(this.lastScroll!==l){var c=this.lastScroll>=l;this.lastScroll=l;var d=this.rowHeightService.index(Z1(l-this.topOffset)),h=this.rowHeightService.index(Z1(l+u-this.bottomOffset));if(!c&&h>=this.lastLoaded&&this.lastLoadedi}}),x1),gv=function(){var i=function(){function r(t,e,n,a){p(this,r),this.container=e,this.renderer=n,this.zone=a,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new O,this.pageChange=new O,this.scrollChange=new O,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new Ot,this.scroller=t(this.dispatcher)}return v(r,[{key:"horizontalClass",get:function(){return"horizontal"===this.direction}},{key:"totalVertexLength",get:function(){var e="".concat(this.totalSize,"px");return"vertical"===this.direction?{height:e}:{width:e}}},{key:"containerOffsetSize",get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")}},{key:"containerScrollSize",get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")}},{key:"containerScrollPosition",get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")}},{key:"ngOnChanges",value:function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)}},{key:"ngOnInit",value:function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())}},{key:"ngAfterViewInit",value:function(){var e=this;this.zone.runOutsideAngular(function(){e.containerScrollSubscription=e.scroll$().pipe(We(function(n){return n.target})).subscribe(function(n){e.dispatcher.next(n),e.emitActiveIndex()})})}},{key:"ngOnDestroy",value:function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()}},{key:"getContainerProperty",value:function(e){return this.container.nativeElement[e]}},{key:"activeIndex",value:function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}},{key:"itemIndex",value:function(e){return this.rowHeightService.index(e)}},{key:"itemOffset",value:function(e){return this.rowHeightService.offset(e)}},{key:"isIndexVisible",value:function(e){if(!this.rowHeightService)return!1;var n=this.containerScrollPosition,a=n+this.containerOffsetSize,o=this.rowHeightService.offset(e),s=o+this.rowHeightService.height(e);return o>=n&&s<=a}},{key:"isListScrolled",value:function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)}},{key:"scrollTo",value:function(e){this.renderer.setProperty(this.container.nativeElement,"vertical"===this.direction?"scrollTop":"scrollLeft",e)}},{key:"scrollToIndex",value:function(e){var n=this;this.zone.runOutsideAngular(function(){n.resolvedPromise.then(function(){n.scrollTo(n.rowHeightService.offset(e))})})}},{key:"scrollToBottom",value:function(){this.scrollTo(this.totalSize)}},{key:"animateToIndex",value:function(e){var n=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var a=this.rowHeightService.offset(e),o=this.getContainerScrollDirection(a),s=this.scrollRange(a,o),l=s.start,u=s.end;if(l!==u){var c=this.scrollStep(l,u),d=bat[o](c),h=Sat[o](u),f=wat[o](d(u));this.zone.runOutsideAngular(function(){n.animationSubscription=zO(lt(l),aC(0,sit)).pipe(We(function(g){return g[0]}),HO(d),function lit(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return oi(function(t,e){var n=0;t.subscribe(Wn(e,function(a){var o=i(a,n++);(o||r)&&e.next(a),!o&&e.complete()}))})}(f),We(h)).subscribe(function(g){return n.scrollTo(g)})})}}},{key:"scrollRange",value:function(e,n){var a=this.containerScrollPosition;if(parseInt(e,10)===parseInt(a,10))return{start:e,end:e};var o=this.containerMaxScroll(),s=n===$s.Backward?1:-1,l=function(r,t,e){return Math.min(Math.abs(t-r),e)}(a,e,this.maxScrollDifference),u=Math.min(e,o);return{start:Math.min(Math.max(u+s*l,0),o),end:u}}},{key:"scrollStep",value:function(e,n){return Math.abs(n-e)/(this.scrollDuration/17)}},{key:"scroll$",value:function(){return Ze()?li(this.container.nativeElement,"scroll"):po}},{key:"initServices",value:function(){var e=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(function(n){n instanceof Y1?e.pageChange.emit(n):e.scrollChange.emit(n)})}},{key:"createRowHeightService",value:function(){return new _at(this.total,"vertical"===this.direction?this.itemHeight:this.itemWidth,0)}},{key:"emitActiveIndex",value:function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))}},{key:"containerMaxScroll",value:function(){return this.containerScrollSize-this.containerOffsetSize}},{key:"getContainerScrollDirection",value:function(e){return eFEB")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),i):null}}(),PB=function(r,t,e){var o,n=r.cells,a=r.rows;return function(){return Ze?(o||(o=function(r,t,e){return Q1([Q1('\n March 2017\n \n \n TODAY\n \n ',"k-calendar-header k-hstack"),e?zoe([Mat([LB([Uoe("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,Koe([r,r])],t,{left:"-10000px",position:"absolute"})}(function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return zoe([xat([LB([Uoe("1","k-calendar-th")],"k-calendar-tr")].concat(Hoe(r,function(){return LB(Hoe(t,function(e){return Aat(''.concat(e,""),"k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table")}(a,n),t,e)),o):null}},J1=function(r){return r.querySelector(".k-scrollable")},BB=function(r){return J1(r).classList.add("k-scrollable-horizontal"),r},joe=PB({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Woe=PB({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),$oe=PB({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),vh=function(r){return parseFloat(window.getComputedStyle(r).height)||r.offsetHeight},HC=function(r){var t=window.getComputedStyle(r);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||r.offsetWidth},hm=function(r){return r.querySelector("tbody")},KC=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"ensureHeights",value:function(){void 0===this.calendarHeight&&this.calculateHeights()}},{key:"calculateHeights",value:function(e){var n=this;!Ze()||(this.hostContainer=e,this.batch(joe(),function(a){var o=hm(a);n.calendarHeight=vh(a),n.monthViewHeight=vh(o),n.headerHeight=vh(o.children[0]),n.scrollableContentHeight=vh(J1(a))}),this.batch(BB(joe()),function(a){var o=hm(a);n.calendarWidth=HC(a),n.monthViewWidth=HC(o),n.scrollableContentWidth=HC(J1(a))}),this.batch(Woe(),function(a){n.yearViewHeight=vh(hm(a)),n.scrollableYearContentHeight=vh(J1(a))}),this.batch(BB(Woe()),function(a){n.yearViewWidth=HC(hm(a))}),this.batch($oe(),function(a){n.decadeViewHeight=vh(hm(a)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(BB($oe()),function(a){n.decadeViewWidth=HC(hm(a)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(Fat(),function(a){n.navigationItemHeight=vh(a.querySelector("li"))}))}},{key:"viewHeight",value:function(e){return this.viewDimension(e,"height")}},{key:"viewWidth",value:function(e){return this.viewDimension(e,"width")}},{key:"viewDimension",value:function(e,n){var a="height"===n?"ViewHeight":"ViewWidth";switch(e){case vt.month:return this["month".concat(a)];case vt.year:return this["year".concat(a)];case vt.decade:return this["decade".concat(a)];case vt.century:return this["century".concat(a)];default:return 1}}},{key:"batch",value:function(e,n){if(St(this.hostContainer)){var a=this.hostContainer.cloneNode();document.body.appendChild(a);try{n(a.appendChild(e))}catch(s){throw s}finally{document.body.removeChild(a)}}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),qoe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.bus=t,this.dom=e,this.intl=n,this.cdr=a,this.renderer=o,this.min=new Date(Rl),this.max=new Date(Ol),this.focusedDate=new Date,this.valueChange=new O,this.pageChange=new O,this.dates=[],this.take=30,this.indexToScroll=-1}return v(r,[{key:"getComponentClass",get:function(){return!0}},{key:"ngOnInit",value:function(){this.dom.ensureHeights();var e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}},{key:"ngOnChanges",value:function(e){if(this.service=this.bus.service(this.activeView),this.service){this.activeViewValue=vt[this.activeView];var n=Mu(this.focusedDate,this.min,this.max),a=this.service.total(this.min,this.max),o=this.total&&this.total!==a;this.skip=this.service.skip(n,this.min),this.total=a,(o||!this.service.isInArray(n,this.dates))&&(this.dates=this.service.datesList(n,this.getTake(this.skip))),(e.focusedDate||o)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe()}},{key:"ngAfterViewInit",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"ngAfterViewChecked",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"onPageChange",value:function(e){var n=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,n),this.getTake(n)),this.pageChange.emit()}},{key:"scrollChange",value:function(e){var a=this.list.nativeElement,o="translateY(".concat(e.offset,"px)");this.renderer.setStyle(a,"transform",o),this.renderer.setStyle(a,"-ms-transform",o)}},{key:"handleDateChange",value:function(e){var n=OB(e.target,function(s){return s.hasAttribute("data-date-index")},this.list.nativeElement);if(n){var a=parseInt(n.getAttribute("data-date-index"),10);this.valueChange.emit(Ke(this.dates[a]))}}},{key:"getTake",value:function(e){return Math.min(this.total-e,this.take)}},{key:"intlChange",value:function(){this.activeView===vt.month&&this.cdr.markForCheck()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(KC),m(fi),m(nt),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar-navigation"]],viewQuery:function(t,e){var n;1&t&&(ge(gv,5),ge(Doe,7)),2&t&&(P(n=B())&&(e.virtualization=n.first),P(n=B())&&(e.list=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-calendar-navigation",e.getComponentClass)},inputs:{activeView:"activeView",min:"min",max:"max",focusedDate:"focusedDate",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},features:[Ie],decls:5,vars:12,consts:[[1,"k-calendar-navigation-highlight"],[3,"skip","take","total","itemHeight","topOffset","bottomOffset","maxScrollDifference","pageChange","scrollChange"],[1,"k-reset",3,"kendoEventsOutsideAngular","scope"],["list",""],[4,"kFor","kForOf"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(z(0,"span",0),A(1,"kendo-virtualization",1),Q("pageChange",function(a){return e.onPageChange(a)})("scrollChange",function(a){return e.scrollChange(a)}),A(2,"ul",2,3),T(4,Git,4,11,"li",4),x()()),2&t&&(k(1),y("skip",e.skip)("take",e.take)("total",e.total)("itemHeight",e.itemHeight)("topOffset",e.topOffset)("bottomOffset",e.bottomOffset)("maxScrollDifference",e.maxViewHeight),k(1),y("kendoEventsOutsideAngular",ot(10,sh,e.handleDateChange))("scope",e),k(2),y("kForOf",e.dates))},directives:[gv,qi,G1,qe,En],encapsulation:2,changeDetection:0}),i}(),Xoe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.bus=t,this.cdr=e,this.intl=n,this.dom=a,this.renderer=o,this.isActive=!0,this.min=new Date(Rl),this.max=new Date(Ol),this.selectedDates=[],this.cellClick=new O,this.weekNumberCellClick=new O,this.activeDateChange=new O,this.todayButtonClick=new O,this.pageChange=new O,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}return v(r,[{key:"weekNumber",get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e}},{key:"getComponentMonthClass",get:function(){return this.activeView===vt.month}},{key:"getComponentYearClass",get:function(){return this.activeView===vt.year}},{key:"getComponentDecadeClass",get:function(){return this.activeView===vt.decade}},{key:"getComponentCenturyClass",get:function(){return this.activeView===vt.century}},{key:"ngOnInit",value:function(){this.weekNames=this.getWeekNames(),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}},{key:"ngOnChanges",value:function(e){if(this.service=this.bus.service(this.activeView),this.service){this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=lh(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;var n=lh(e,"activeView"),a=this.focusedDate,o=Mu(this.service.viewDate(a,this.max,this.minViewsToRender),this.min,this.max),s=this.service.total(this.min,this.max),u=this.total&&this.total!==s||!this.service.isInArray(a,this.dates);this.skip=this.service.skip(o,this.min),this.total=s,this.animateToIndex=!n,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),u&&(this.dates=this.service.datesList(o,this.getTake(this.skip))),function(r,t){return r&&t&&r.getFullYear()===t.getFullYear()&&r.getMonth()===t.getMonth()}(this.activeDate,a)||(this.activeDate=Ke(a));var c=lh(e,"focusedDate")||n;(u||c||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(a,this.min))}}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe()}},{key:"ngAfterViewInit",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"ngAfterViewChecked",value:function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)}},{key:"onPageChange",value:function(e){var n=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,n),this.getTake(n)),this.pageChange.emit()}},{key:"scrollChange",value:function(e){var a=this.list.nativeElement,o="translateY(".concat(e.offset,"px)");this.renderer.setStyle(a,"transform",o),this.renderer.setStyle(a,"-ms-transform",o)}},{key:"setActiveDate",value:function(e){var n=this.service.addToDate(this.min,e);this.activeDate=n,this.activeDateChange.emit(n),this.cdr.detectChanges()}},{key:"isMonthView",value:function(){return this.activeView===vt.month}},{key:"isScrolled",value:function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))}},{key:"getBottomOffset",value:function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)}},{key:"getScrollableHeight",value:function(){return this.activeView===vt.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight}},{key:"getTake",value:function(e){return Math.min(this.total-e,this.take)}},{key:"getWeekNames",value:function(){var e=Roe(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e}},{key:"intlChange",value:function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(nt),m(fi),m(KC),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar-viewlist"]],viewQuery:function(t,e){var n;1&t&&(ge(gv,5),ge(Doe,7)),2&t&&(P(n=B())&&(e.virtualization=n.first),P(n=B())&&(e.list=n.first))},hostVars:12,hostBindings:function(t,e){2&t&&ue("k-vstack",e.getComponentClass)("k-calendar-view",e.getComponentClass)("k-calendar-monthview",e.getComponentMonthClass)("k-calendar-yearview",e.getComponentYearClass)("k-calendar-decadeview",e.getComponentDecadeClass)("k-calendar-centuryview",e.getComponentCenturyClass)},inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange"},features:[Ie],decls:8,vars:17,consts:[[3,"currentDate","min","max","activeView","templateRef","todayButtonClick"],["class","k-calendar-weekdays k-calendar-table","style","table-layout: auto;",4,"ngIf"],[3,"tabindex","skip","take","total","itemHeight","topOffset","bottomOffset","scrollOffsetSize","maxScrollDifference","pageChange","scrollChange","activeIndexChange"],["role","grid",1,"k-calendar-table"],["list",""],[4,"ngFor","ngForOf"],["class","k-calendar-tbody","kendoCalendarView","","role","rowgroup",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick",4,"kFor","kForOf"],[1,"k-calendar-weekdays","k-calendar-table",2,"table-layout","auto"],[1,"k-calendar-thead"],[1,"k-calendar-tr"],["class","k-calendar-th",3,"width",4,"ngFor","ngForOf"],[1,"k-calendar-th"],["kendoCalendarView","","role","rowgroup",1,"k-calendar-tbody",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick"]],template:function(t,e){1&t&&(A(0,"kendo-calendar-header",0),Q("todayButtonClick",function(a){return e.todayButtonClick.emit(a)}),x(),T(1,zit,4,1,"table",1),A(2,"kendo-virtualization",2),Q("pageChange",function(a){return e.onPageChange(a)})("scrollChange",function(a){return e.scrollChange(a)})("activeIndexChange",function(a){return e.setActiveDate(a)}),A(3,"table",3,4)(5,"colgroup"),T(6,Hit,1,0,"col",5),x(),T(7,Kit,1,11,"tbody",6),x()()),2&t&&(y("currentDate",e.activeDate)("min",e.min)("max",e.max)("activeView",e.activeView)("templateRef",e.headerTitleTemplateRef),k(1),y("ngIf",e.isMonthView()),k(1),y("tabindex",-1)("skip",e.skip)("take",e.take)("total",e.total)("itemHeight",e.viewHeight)("topOffset",e.viewOffset)("bottomOffset",e.bottomOffset)("scrollOffsetSize",e.viewOffset)("maxScrollDifference",e.viewHeight),k(4),y("ngForOf",e.cols),k(1),y("kForOf",e.dates))},directives:[NB,gv,Loe,qe,gn,G1],encapsulation:2,changeDetection:0}),i}(),Zoe=function(){var i=function(){function r(t,e){p(this,r),this.dom=t,this.zone=e}return v(r,[{key:"configure",value:function(e){var n=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(r){return function(t){return Math.floor(t/r)}}(n),this.powerByMagnitude=function(r){return function(t){return t*r}}(n)}},{key:"sync",value:function(e,n){var a=this;this.unsubscribe(),e&&n&&(this.navigator=e,this.view=n,this.zone.runOutsideAngular(function(){var o,s;a.navSubscription=e.scroll$().subscribe(function(l){s?s=!1:(o=!0,a.scrollSiblingOf(l.target))}),a.viewSubscription=n.scroll$().subscribe(function(l){o?o=!1:(s=!0,a.scrollSiblingOf(l.target))})}))}},{key:"scrollSiblingOf",value:function(e){var n=this.siblingComponent(e),a=this.calculateScroll(n,e.scrollTop);n.scrollTo(a)}},{key:"siblingComponent",value:function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator}},{key:"calculateScroll",value:function(e,n){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(n)}},{key:"destroy",value:function(){this.unsubscribe()}},{key:"unsubscribe",value:function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(KC),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Yoe=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarNavigationItemTemplate",""]]}),i}(),Xc=v(function i(){p(this,i),this.onFocus=new O,this.onBlur=new O,this.sameDateSelected=new O,this.dateCompletenessChange=new O}),Kat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(X1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-multiviewcalendar-messages"]],features:[de([{provide:X1,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),eT=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[j]}),i}(),jat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(eT);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarLocalizedMessages",""]],features:[de([{provide:eT,useExisting:ke(function(){return i})}]),j]}),i}(),Qoe="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",Joe=function(r){return r?r.virtualization:null},Zat={multi:!0,provide:jn,useExisting:ke(function(){return jC})},Yat={multi:!0,provide:tr,useExisting:ke(function(){return jC})},Qat={provide:Ui,useExisting:ke(function(){return jC})},jC=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h,f,g){p(this,r),this.bus=t,this.dom=e,this.element=n,this.navigator=a,this.renderer=o,this.cdr=s,this.ngZone=l,this.injector=u,this.scrollSyncService=c,this.disabledDatesService=d,this.localization=h,this.selectionService=f,this.pickerService=g,this.id=qn(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=vt[vt.month],this.bottomView=vt[vt.month],this.topView=vt[vt.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new O,this.navigate=new O,this.activeViewDateChange=new O,this.valueChange=new O,this.isActive=!1,this.cellUID=qn(),this.selectedDates=[],this._min=new Date(Rl),this._max=new Date(Ol),this._focusedDate=Il(),this.onControlChange=Vt,this.onControlTouched=Vt,this.onValidatorChange=Vt,this.minValidateFn=Vt,this.maxValidateFn=Vt,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,jt(cm),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}return v(r,[{key:"focusedDate",get:function(){return this._focusedDate},set:function(e){if(this.activeViewDate&&!vi(this._focusedDate,e)){var n=this.bus.service(this.activeViewEnum),a=n.lastDayOfPeriod(this.activeViewDate);n.isInRange(e,this.activeViewDate,a)||this.emitNavigate(e)}this._focusedDate=e||Il(),this.setAriaActivedescendant()}},{key:"min",get:function(){return this._min},set:function(e){this._min=e||new Date(Rl)}},{key:"max",get:function(){return this._max},set:function(e){this._max=e||new Date(Ol)}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(function(o){return St(o)}).map(function(o){return Ke(o)}):Ke(e);var n=[].concat(e).filter(function(o){return St(o)}).map(function(o){return Ke(o)});if(!V1(n,this.selectedDates)){var a=uh(n);this.rangePivot=Ke(a),this.focusedDate=Ke(a)||this.focusedDate,this.selectedDates=n}}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledDates",get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e}},{key:"type",get:function(){return this._type},set:function(e){this.renderer.removeClass(this.element.nativeElement,"k-calendar-".concat(this.type)),this.renderer.addClass(this.element.nativeElement,"k-calendar-".concat(e)),this._type=e}},{key:"cellTemplateRef",get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e}},{key:"monthCellTemplateRef",get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e}},{key:"yearCellTemplateRef",get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e}},{key:"decadeCellTemplateRef",get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e}},{key:"centuryCellTemplateRef",get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e}},{key:"weekNumberTemplateRef",get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e}},{key:"headerTitleTemplateRef",get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e}},{key:"navigationItemTemplateRef",get:function(){return this._navigationItemTemplateRef||this.navigationItemTemplate},set:function(e){this._navigationItemTemplateRef=e}},{key:"activeViewEnum",get:function(){var e=vt[this.activeView];return ethis.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max","."));if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview","."))}}},{key:"verifyValue",value:function(e){if(xt()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat(Qoe," for possible resolution."));if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(function(a){return a instanceof Date}))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check ".concat(Qoe," for possible resolution."))}}},{key:"bindEvents",value:function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"blur",this.handleBlur.bind(this)),this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",Art),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))}},{key:"emitBlur",value:function(e){this.pickerService&&this.pickerService.onBlur.emit(e)}},{key:"emitFocus",value:function(){this.pickerService&&this.pickerService.onFocus.emit()}},{key:"handleComponentClick",value:function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=Ke(this.focusedDate),this.detectChanges()),this.focus())}},{key:"handleKeydown",value:function(e){if("classic"!==this.type||!this.multiViewCalendar.isHeaderActive){var a=-1!==[J.ArrowUp,J.ArrowRight,J.ArrowDown,J.ArrowLeft].indexOf(e.keyCode);if(!(St(this.pickerService)&&a&&e.altKey)){St(this.pickerService)&&e.keyCode===J.Enter&&e.preventDefault();var o=Mu(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);vi(this.focusedDate,o)||(this.focusedDate=o,this.detectChanges(),e.preventDefault()),e.keyCode===J.Enter&&this.performSelection(this.focusedDate,e)}}}},{key:"detectChanges",value:function(){this.destroyed||this.cdr.detectChanges()}},{key:"emitSameDate",value:function(){this.pickerService&&this.pickerService.sameDateSelected.emit()}},{key:"setAriaActivedescendant",value:function(){if(St(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant"))){if("classic"===this.type)return void this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant");var e=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)}}},{key:"parseSelectionToValue",value:function(e){return e=e||[],"single"===this.selection?Ke(uh(e)):e.map(function(n){return Ke(n)})}},{key:"performSelection",value:function(e,n){var a=this.selectionService.performSelection({date:e,modifiers:n,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=a.rangePivot,this.handleDateChange({selectedDates:a.selectedDates,focusedDate:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(KC),m(_e),m(GC),m(Ee),m(nt),m(be),m(Jn),m(Zoe),m(Ru),m(Y),m(U1),m(Xc,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,z1,5),he(n,H1,5),he(n,K1,5),he(n,j1,5),he(n,W1,5),he(n,$1,5),he(n,q1,5),he(n,Yoe,5)),2&t&&(P(a=B())&&(e.cellTemplate=a.first),P(a=B())&&(e.monthCellTemplate=a.first),P(a=B())&&(e.yearCellTemplate=a.first),P(a=B())&&(e.decadeCellTemplate=a.first),P(a=B())&&(e.centuryCellTemplate=a.first),P(a=B())&&(e.weekNumberTemplate=a.first),P(a=B())&&(e.headerTitleTemplate=a.first),P(a=B())&&(e.navigationItemTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(qoe,5),ge(Xoe,5),ge(fh,5)),2&t&&(P(n=B())&&(e.navigationView=n.first),P(n=B())&&(e.monthView=n.first),P(n=B())&&(e.multiViewCalendar=n.first))},hostVars:7,hostBindings:function(t,e){2&t&&(ie("id",e.widgetId)("tabindex",e.calendarTabIndex)("aria-disabled",e.ariaDisabled),ue("k-week-number",e.weekNumber)("k-disabled",e.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",type:"type",animateNavigation:"animateNavigation",weekNumber:"weekNumber",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",valueChange:"valueChange"},exportAs:["kendo-calendar"],features:[de([Nl,Zat,Yat,Qat,Y,Ru,{provide:Et,useValue:"kendo.calendar"},GC,Zoe,U1]),Ie],decls:3,vars:2,consts:function(){return[["kendoCalendarLocalizedMessages","","today",$localize(Vae||(Vae=le([":kendo.calendar.today|The label for the today button in the calendar header:Today"]))),"prevButtonTitle",$localize(Gae||(Gae=le([":kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar:Navigate to previous view"]))),"nextButtonTitle",$localize(Uae||(Uae=le([":kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar:Navigate to next view"])))],[4,"ngIf"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange",4,"ngIf"],[3,"activeView","isActive","cellTemplateRef","headerTitleTemplateRef","weekNumberTemplateRef","cellUID","min","max","focusedDate","weekNumber","selectedDates","todayButtonClick","cellClick","weekNumberCellClick","activeDateChange","pageChange"],[3,"resize"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange"],[3,"views","min","max","isActive","activeView","bottomView","topView","weekNumber","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","headerTitleTemplate","weekNumberTemplate","focusedDate","selection","value","disabledDates","activeViewChange","navigate","valueChange","focus","blur","keydown"],["multiviewcalendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(t,e){1&t&&(Wt(0,0),T(1,Wit,4,12,"ng-container",1),T(2,$it,4,23,"ng-container",1)),2&t&&(k(1),y("ngIf","infinite"===e.type),k(1),y("ngIf","classic"===e.type))},directives:[qoe,Xoe,Vr,fh,Kat,jat,qe],encapsulation:2,changeDetection:0}),i}(),tT=function(){return function(r,t){return!St(r.value)&&t?{incompleteDate:!0}:null}},fm=function(){return function(i){i[i.Up=0]="Up",i[i.Down=1]="Down",i[i.None=2]="None"}(fm||(fm={})),fm}(),ese=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-dateinput-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[j]}),i}(),Jat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(ese);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDateInputLocalizedMessages",""]],features:[de([{provide:ese,useExisting:ke(function(){return i})}]),j]}),i}(),iot=/year|month|/,rot=/hour|minute|second|millisecond/,aot=/d|M|H|h|m|s/,nse=function(r){return r.replace(/^0*/,"")},uot=v(function i(){p(this,i),this.symbols=""}),cot=function(){function i(r,t,e,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:68;if(p(this,i),this.intl=r,this.formatPlaceholder=t,this.format=e,this.twoDigitYearMax=a,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=Ii(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},jt(cm),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),n)this.value=Ke(n);else{this.value=Ii(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,s=0;s0&&(this.setExisting(t,!0),this.value=n)}},{key:"parsePart",value:function(t,e,n){if(!e)return this.resetLeadingZero(),this.setExisting(t,!1),{value:null,switchToNext:!1};for(var a=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),s=o.symbols,l=!1,u="",c="",d="",h=0;h-1&&ee<12&&((g=Ke(this.value)).setMonth(ee),g.getMonth()!==ee&&(g=Ml(Kr(g,-1))))}"y"===t&&(g=Ao(parseInt(N,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&g.getDate()!==this.value.getDate()&&(g=Ml(Kr(g,-1))))}if(g){var ve=this.partPattern(o.partMap,t).pattern,V=this.intl.parseDate("".concat(u).concat(this.peek(N,ve)).concat(d),this.format),I=this.patternLength(ve)||ve.length,K=E+(nse(N)||e).length>=I,H=null===V||K;return this.shouldNormalizeCentury()&&(g=this.normalizeCentury(g)),this.value=g,this.setExisting(t,!0),{value:this.value,switchToNext:H}}}return _&&(g=this.intl.parseDate(u+_+d,this.format))?(this.value=g,this.setExisting(t,!0),{value:this.value,switchToNext:!1}):C&&(g=this.intl.parseDate(u+C+d,this.format))?(this.value=g,{value:this.value,switchToNext:!0}):(w&&this.setExisting(t,!1),{value:null,switchToNext:!1})}},{key:"resetLeadingZero",value:function(){var t=null!==this.leadingZero;return this.setLeadingZero(null),t}},{key:"setLeadingZero",value:function(t){this.leadingZero=t}},{key:"normalizeCentury",value:function(t){if(!St(t))return t;var e=function(r){return!St(r)||isNaN(r.getTime())?0:Number(r.getFullYear().toString().slice(-2))}(t),n=this.getNormalizedCenturyBase(e);return Rrt(t,n+e)}},{key:"incrementLeadingZero",value:function(t){var e=this.leadingZero||{};e[t]=(e[t]||0)+1,this.leadingZero=e}},{key:"isAbbrMonth",value:function(t,e){var n=this.partPattern(t,e);return"month"===n.type&&n.names}},{key:"partPattern",value:function(t,e){return t.filter(function(n){return-1!==n.pattern.indexOf(e)})[0]}},{key:"peek",value:function(t,e){var n=nse(t)+"0";return function(r){return new Array(Math.max(r,0)).fill("0").join("")}(e.length-n.length)+n}},{key:"matchMonth",value:function(t){if(this.typedMonthPart+=t.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(var e=0;e=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}},{key:"matchDayPeriod",value:function(t,e){var n=String(t).toLowerCase();if("a"===e&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""}},{key:"allFormatedMonths",value:function(){for(var t=this.intl.splitDateFormat(this.format),e=0;e0;)a.push(this.symbols[n[s].pattern[0]]||"_"),o.push(n[s]),l--;var u=new uot;return u.symbols=a.join(""),u.partMap=o,u}},{key:"merge",value:function(t,e){for(var n="",a="",o=e.symbols,s=o.length-1;s>=0;s--)if(-1===this.knownParts.indexOf(o[s])||this.getExisting(o[s]))n=t[s]+n,a=o[s]+a;else{for(var l=o[s];s>=0&&l===o[s];)s--;for(s++,n=this.leadingZero&&this.leadingZero[l]?"0"+n:this.dateFieldName(e.partMap[s])+n;a.lengththis.twoDigitYearMax?1900:2e3}}]),i}(),WC=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.cdr=t,this.intl=e,this.renderer=n,this.wrapper=a,this.ngZone=o,this.injector=s,this.localization=l,this.pickerService=u,this.focusableId="k-".concat(qn()),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new O,this.valueUpdate=new O,this.onFocus=new O,this.onBlur=new O,this.arrow=fm,this.arrowDirection=fm.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=Vt,this.maxValidator=Vt,this.incompleteValidator=Vt,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=Vt,this.onControlTouched=Vt,this.onValidatorChange=Vt,this._size=dh,this._rounded=ch,this._fillMode=hh,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}return v(r,[{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),(!this.autoCorrect||pv(e,this.min,this.max))&&(this._value=Ke(e),this.valueUpdate.emit(Ke(e)))}},{key:"size",get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,pr("input",this.size));var n=e||dh;"none"!==n&&this.renderer.addClass(this.wrapper.nativeElement,pr("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,os(this.rounded));var n=e||ch;"none"!==n&&this.renderer.addClass(this.wrapper.nativeElement,os(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,wr("input",this.fillMode));var n=e||hh;"none"!==n&&(this.renderer.addClass(this.wrapper.nativeElement,wr("input",n)),this.spinners&&this.spinup&&this.spindown&&(this.setSpinnerFill(this.spinup.nativeElement,n,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,n,this.fillMode))),this._fillMode=n}},{key:"wrapperClass",get:function(){return!0}},{key:"disabledClass",get:function(){return this.disabled}},{key:"inputElement",get:function(){return this.dateInput?this.dateInput.nativeElement:null}},{key:"inputValue",get:function(){return(this.inputElement||{}).value||""}},{key:"isActive",get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper&&!St(this.pickerService)){var n=this.wrapper.nativeElement;e?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus")}}},{key:"inputFormat",get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"}},{key:"displayFormat",get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"}},{key:"isEmpty",value:function(){return!this.currentValue||!String(this.currentValue).trim()}},{key:"containsElement",value:function(e){var n=this;return Boolean(IB(e,function(a){return a===n.wrapper.nativeElement}))}},{key:"ngOnChanges",value:function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?UC(this.min):Vt,this.maxValidator=this.rangeValidation?zC(this.max):Vt,this.incompleteValidator=this.incompleteDateValidation?tT():Vt,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var n=this.kendoDate&&vi(this.value,this.kendoDate.getDateObject());(e.format||!n||e.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(function(e){return e()})}},{key:"validate",value:function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)}},{key:"registerOnValidatorChange",value:function(e){this.onValidatorChange=e}},{key:"ngOnInit",value:function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(ra,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))}},{key:"ngAfterViewInit",value:function(){this.setComponentClasses()}},{key:"setDisabledState",value:function(e){this.disabled=e,this.cdr.markForCheck()}},{key:"writeValue",value:function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=Ke(e),this.updateElementValue(this.isActive)}},{key:"triggerChange",value:function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=Ke(e),this.notify())}},{key:"notify",value:function(){var e=this;this.ngZone.run(function(){e.onControlChange(Ke(e.value)),e.valueChange.emit(Ke(e.value))})}},{key:"registerOnChange",value:function(e){this.onControlChange=e}},{key:"registerOnTouched",value:function(e){this.onControlTouched=e}},{key:"focus",value:function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))}},{key:"blur",value:function(){var e=this.inputElement;e&&e.blur()}},{key:"handleButtonClick",value:function(e){this.arrowDirection=fm.None,this.modifyDateSegmentValue(e)}},{key:"modifyDateSegmentValue",value:function(e){var n=this.caret(),a=this.currentFormat[n[0]],o=(this.steps||{})[this.symbolsMap[a]]||1;if("S"===a&&!this.steps.millisecond){var s=function(r){var t=r&&r.match(/S+(\1)/);return t?t[0].length:0}(this.inputFormat);o=function(r){return Math.pow(10,3-r)}(s)}this.kendoDate.modifyPart(a,e*o),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(a),this.updateIncompleteValidationStatus()}},{key:"switchDateSegment",value:function(e){var n=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),n[0]0?n[0]:n[1]-1),this.resetSegmentValue=!0,!0;for(var a=this.currentFormat[n[0]],o=n[0]+e;o>0&&o=0&&ss&&(s+1!==n[0]||o+1!==n[1])?(this.caret(s+1,o+1),this.resetSegmentValue=!0,!0):o1&&void 0!==arguments[1]?arguments[1]:e,a=void 0!==e,o=[e,e],s=this.inputElement;if(!a||!this.disabled&&!this.readonly){try{void 0!==s.selectionStart&&(a&&(Ze()&&document.activeElement!==s&&s.focus(),s.setSelectionRange(e,n)),o=[s.selectionStart,s.selectionEnd])}catch(l){o=[]}return o}}},{key:"selectNearestSegment",value:function(e){for(var n=e,a=e-1;n=0;n++,a--){if(n=0&&"_"!==this.currentFormat[a])return void this.selectDateSegment(this.currentFormat[a])}}},{key:"verifyRange",value:function(){if(xt()&&!yB(this.min,this.max))throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max","."))}},{key:"verifyValue",value:function(e){if(xt()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json"," for possible resolution."))}},{key:"putDateInRange",value:function(){var e=this.kendoDate.getDateObject(),n=Mu(e,this.min,this.max);this.autoCorrect&&!vi(e,n)&&(this.kendoDate=this.getKendoDate(n))}},{key:"updateFormatSections",value:function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(function(e,n){var o=e.time;return{date:e.date||iot.test(n.type),time:o||rot.test(n.type)}},{date:!1,time:!1})}},{key:"intlChange",value:function(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)}},{key:"updateOnPaste",value:function(){var e=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value;St(e)&&this.kendoDate.shouldNormalizeCentury()&&(e=this.kendoDate.normalizeCentury(e));var n=+e!=+this.value;this.writeValue(e),n&&this.notify()}},{key:"bindEvents",value:function(){var e=this.wrapper.nativeElement,n=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(e,"DOMMouseScroll",n),this.renderer.listen(e,"mousewheel",n),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"paste",this.handlePaste.bind(this)),this.renderer.listen(e,"input",this.handleInput.bind(this)))}},{key:"handleMouseWheel",value:function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment((e.wheelDelta||-e.detail)>0?-1:1):this.modifyDateSegmentValue((e.wheelDelta||-e.detail)>0?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())}},{key:"handlePaste",value:function(){this.paste=!0}},{key:"handleKeydown",value:function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey)){if(e.keyCode===J.Tab)return void(this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault());if(e.keyCode===J.Backspace)return void(this.backspace=!0);switch(e.keyCode){case J.ArrowDown:this.modifyDateSegmentValue(-1);break;case J.ArrowUp:this.modifyDateSegmentValue(1);break;case J.ArrowRight:this.switchDateSegment(1);break;case J.ArrowLeft:this.switchDateSegment(-1);break;case J.Home:this.selectNearestSegment(0);break;case J.End:this.selectNearestSegment(this.inputValue.length);break;default:return}e.preventDefault()}}},{key:"handleInput",value:function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);var e=function(r,t,e,n){var a=n+r.length-e.length,o=r[a],s=r.substring(0,n+r.length-e.length),l=e.substring(0,n),u=[];if(s===l&&n>0)return u.push([t[n-1],l[n-1]]),u;if(0===s.indexOf(l)&&(0===l.length||t[l.length-1]!==t[l.length])){var c="";1===l.length&&u.push([t[0],l[0]]);for(var d=l.length;d=t&&r<=e},Lot=function(r,t,e){return!t&&!e||r>=t||r<=e},Cse=function(){var i=function(){function r(t){p(this,r),this.intl=t}return v(r,[{key:"apply",value:function(e,n){var a=e.getHours(),o=WB(a),s=WB(n.getHours());if(o&&s||!o&&!s)return e;var u=Bt(this.normalizedRange(),2),d=u[1],h=void 0===d?24:d;return jB(e,Math.min(Math.max(u[0],a+(s?-12:12)),h||24))}},{key:"configure",value:function(e){var n=e.min,o=e.max,s=void 0===o?this.max:o,l=e.part,u=void 0===l?this.part:l;this.min=void 0===n?this.min:n,this.max=s,this.part=u}},{key:"data",value:function(e){var n=this.part.names;if(!n)return[];var a=[],s=Bt(this.normalizedRange(),2),l=s[0],u=s[1],c=this.intl.dateFormatNames(n);return WB(l)&&a.push({text:c.am,value:jB(this.min,l)}),function(r){return null!==r&&(!r||r>11)}(u)&&a.push({text:c.pm,value:jB(this.min,Math.max(12,u))}),this.min.getHours()!==l?a.reverse():a}},{key:"isRangeChanged",value:function(e,n){return!1}},{key:"limitRange",value:function(e,n,a){return[e,n]}},{key:"total",value:function(){var n=Bt(this.normalizedRange(),2),a=n[0],o=n[1];return(a||o)&&(a>11||o<12)?1:2}},{key:"selectedIndex",value:function(e){if(!this.valueInList(e))return-1;var n=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?n:0===n?1:0}},{key:"valueInList",value:function(e){return(this.min.getHours()!==this.normalizedRange()[0]?Lot:Fot)(e.getHours(),this.min.getHours(),this.max.getHours())}},{key:"normalizedRange",value:function(){var e=this.min.getHours(),n=this.max.getHours();return[Math.min(e,n),Math.max(e,n)]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),$B=as("div"),Pot=as("ul"),Bot=as("li"),Vot=as("span"),aT=(Ze()&&$B([Vot("hour","k-title k-timeselector-title"),$B([$B([Pot([Bot("02","k-item")],"k-reset")],"k-time-container k-flex k-content k-calendar-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),De(fv={},"dayperiod",Cse),De(fv,"hour",lse),De(fv,"minute",hse),De(fv,"second",gse),De(fv,"millisecond",kse),new RegExp("".concat("hour","|").concat("minute","|").concat("second","|").concat("millisecond","|").concat("dayperiod","|literal")),new RegExp("".concat("hour","|").concat("minute","|").concat("second","|").concat("dayperiod","|literal")),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}()),gh=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),oT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[GC,wB,EB,AB,MB,RB],imports:[[bt,aT,Wg,gh,Fa,cr],aT,gh]}),i}(),Pse=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),sT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[KC,wB,EB,AB,MB,RB],imports:[[bt,aT,oT,Wg,gh,Pse,cr,yo],aT,gh]}),i}(),$C=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Wg,cr]]}),i}(),Bse=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(iT);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-datepicker-messages"]],features:[de([{provide:iT,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),lT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[{provide:vm,useValue:Py}],imports:[[bt,$C,sT,Wg,Fa,gh,cr],gh]}),i}(),mh="undefined"!=typeof Uint8Array&&ml.browser&&(!ml.browser.msie||ml.browser.version>9),tV=function(){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(t){for(var e=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=0,a=e.length,o=[];n>>2,f=(3&u)<<6|c;o.push(s<<2|l>>>4),64!=u&&o.push(h),64!=c&&o.push(f)}return o},encode:function(t){for(var e=0,n=t.length,a="";e>>4,d=(15&s)<<2|l>>>6,h=63&l;e-n==2?d=h=64:e-n==1&&(h=64),a+=i.charAt(o>>>2)+i.charAt(c)+i.charAt(d)+i.charAt(h)}return a}}}();function Ni(i){var r=0,t=0;null==i?i=mh?new Uint8Array(256):[]:t=i.length;var e=mh?function(I){if(I>=i.length){var K=new Uint8Array(Math.max(I+256,2*i.length));K.set(i,0),i=K}}:function(){},n=mh?function(){return new Uint8Array(i.buffer,0,t)}:function(){return i},a=mh?function(I){if("string"==typeof I)return ee(I);var K=I.length;e(r+K),i.set(I,r),(r+=K)>t&&(t=r)}:function(I){if("string"==typeof I)return ee(I);for(var K=0;Kt&&(t=r)}function c(){return l()<<8|l()}function d(I){u(I>>8),u(I)}function g(){return 65536*c()+c()}function _(I){d(I>>>16&65535),d(65535&I)}function C(){var I=g();return I>=2147483648?I-4294967296:I}function w(I){_(I<0?I+4294967296:I)}function G(I){return ve(I,l)}function ee(I){for(var K=0;K=t},readByte:l,writeByte:u,readShort:c,writeShort:d,readLong:g,writeLong:_,readFixed:function E(){return g()/65536},writeFixed:function M(I){_(Math.round(65536*I))},readShort_:function h(){var I=c();return I>=32768?I-65536:I},writeShort_:function f(I){d(I<0?I+65536:I)},readLong_:C,writeLong_:w,readFixed_:function R(){return C()/65536},writeFixed_:function N(I){w(Math.round(65536*I))},read:G,write:a,readString:function U(I){return String.fromCharCode.apply(String,G(I))},writeString:ee,times:ve,get:n,slice:mh?function(I,K){if(i.buffer.slice)return new Uint8Array(i.buffer.slice(I,I+K));var H=new Uint8Array(K);return H.set(new Uint8Array(i.buffer,I,K)),H}:function(I,K){return i.slice(I,I+K)},offset:function(K){return null!=K?(r=K,V):r},skip:function(K){r+=K},toString:function(){throw new Error("FIX CALLER. BinaryStream is no longer convertible to string!")},length:function(){return t},saveExcursion:function(K){var H=r;try{return K()}finally{r=H}},writeBase64:function(K){window.atob?ee(window.atob(K)):a(tV.decode(K))},base64:function(){return tV.encode(n())}};return V}function qC(i,r){return Object.prototype.hasOwnProperty.call(i,r)}function nV(i){return Object.keys(i).sort(function(r,t){return r-t}).map(parseFloat)}var Ou=function(){function i(r,t){p(this,i),this.definition=t,this.length=t.length,this.offset=t.offset,this.file=r,this.rawData=r.raw,this.parse(r.raw)}return v(i,[{key:"raw",value:function(){return this.rawData.slice(this.offset,this.length)}},{key:"parse",value:function(){}}]),i}();(function(){var i=function(){function s(l){p(this,s),this.raw=l}return v(s,[{key:"compound",get:function(){return!1}},{key:"render",value:function(){return this.raw.get()}}]),s}(),o=function(){function s(l){p(this,s),this.raw=l;for(var u=this.glyphIds=[],c=this.idOffsets=[];;){var d=l.readShort();if(c.push(l.offset()),u.push(l.readShort()),!(32&d))break;l.skip(1&d?4:2),128&d?l.skip(8):64&d?l.skip(4):8&d&&l.skip(2)}}return v(s,[{key:"compound",get:function(){return!0}},{key:"render",value:function(u){for(var c=Ni(this.raw.get()),d=0;d0;)a[s++]=e.readShort();break;case 12:e.readShort(),o.length=e.readLong(),o.language=e.readLong();for(var N=e.readLong();N-- >0;){s=e.readLong();for(var G=e.readLong(),U=e.readLong();s<=G;)a[s++]=U++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+o.format)}})})}();var rr={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function Qc(i,r){i=i.toLowerCase(),rr[i]=function(){return rr[r]},rr[i+"|bold"]=function(){return rr[r+"|bold"]},rr[i+"|italic"]=function(){return rr[r+"|italic"]},rr[i+"|bold|italic"]=function(){return rr[r+"|bold|italic"]}}Qc("Times New Roman","serif"),Qc("Courier New","monospace"),Qc("Arial","sans-serif"),Qc("Helvetica","sans-serif"),Qc("Verdana","sans-serif"),Qc("Tahoma","sans-serif"),Qc("Georgia","sans-serif"),Qc("Monaco","monospace"),Qc("Andale Mono","monospace");var nn={};nn._root=nn,"undefined"!=typeof Element&&Element.prototype&&Element,"undefined"!=typeof window&&window.kendo&&window;!function(){var i={}}();function db(i,r){return Object.prototype.hasOwnProperty.call(i,r)}var Wue={toString:function(r){return r}},jct=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){Wue=t}},{key:"toString",value:function(t,e){return Wue.toString(t,e)}}]),i}(),$ue=jct;!function mce(i,r,t){return(1461*(i+4800+((r-13)/12|0))/4|0)+(367*(r-1-12*((r-13)/12|0))/12|0)-(3*((i+4900+((r-13)/12|0))/100|0)/4|0)+t-32075}(1900,0,-1);function Li(i,r){var t="";if(null!=i)if(Array.isArray(i))for(var e=0;e\r','\n \n \n \n \n ');var Lce,Pce,Bce,Vce,Gce,Uce,zce,Hce,Kce,jce,Wce,$ce,qce,Xce,Zce,Yce,Qce,Jce,ede,tde,nde,ide,rde,ade,ode,sde,lde,ude,cde,dde,hde,fde,vde,pde,gde,mde,_de,yde,kde,Cde,bde,Sde,wde,Dde,Ede,Tde,Ade,xde,Mde,Rde,Ode,Ide,Nde,Fde,Lde,Pde,Bde,Vde,Gde,Ude,zde,Hde,Kde,jde,Wde,$de,qde,Xde,Zde,Oht=function(r){var e=r.criteria;return"\n\n").concat(Li(e,function(n){var a=xv.customOperator(n),o=xv.customValue(n);return"')}),"\n")},Iht=function(r){return'')},Nht=function(r){var t=r.type,e=r.value;return'')},Fht=function(r){var e=r.values;return"\n ").concat(Li(e,function(n){return'\n ')}),"\n ")};function xv(i){return function(r){var e=r.columns,n=r.generators;return'\n\n ').concat(Li(e,function(a){return'\n \n ').concat(n[a.filter](a),"\n \n ")}),"\n")}({ref:i.ref,columns:i.columns,generators:{custom:Oht,dynamic:Iht,top:Nht,value:Fht}})}function Wht(i,r){}function $ht(i,r){if(1&i&&T(0,Wht,0,0,"ng-template",1),2&i){var t=D();y("ngTemplateOutlet",t.toolbarTemplateRef)("ngTemplateOutletContext",t.context)}}xv.customOperator=function(i){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[i.operator.toLowerCase()]},xv.customValue=function(i){function r(t){return t.replace(/([*?])/g,"~$1")}switch(i.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return r(i.value)+"*";case"endswith":case"doesnotendwith":return"*"+r(i.value);case"contains":case"doesnotcontain":return"*"+r(i.value)+"*";default:return i.value}},xv.dynamicFilterType=function(i){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[i.toLowerCase()]||i},$ue.register({toString:kL});var qht=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"k-pager-first":!0}},Xht=function(){return{"k-icon":!0,"k-i-seek-w":!0}},Yde=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"":!0}},Zht=function(){return{"k-icon":!0,"k-i-arrow-w":!0}};function Yht(i,r){if(1&i&&(A(0,"option",7),te(1,"... "),x()),2&i){var t=D();y("selected",!1),ie("aria-label",t.pageLabel(t.start-1))}}var Qht=function(r){return{"k-link":!0,"k-state-selected":r}};function Jht(i,r){if(1&i&&(A(0,"option",8),te(1),x()),2&i){var t=r.$implicit,e=D();y("value",t.toString())("selected",t===e.currentPage)("ngClass",ot(6,Qht,e.currentPage===t)),ie("aria-label",e.pageLabel(t))("aria-current",e.currentPage===t?"page":void 0),k(1),Nt(" ",t," ")}}function eft(i,r){if(1&i&&(A(0,"option",9),te(1,"... "),x()),2&i){var t=D();y("selected",!1),ie("aria-label",t.pageLabel(t.end+1))}}function tft(i,r){if(1&i){var t=Me();A(0,"li")(1,"span",10),Q("click",function(){re(t);var a=D();return a.changePage(a.start-2)})("keydown.enter",function(){re(t);var a=D();return a.changePage(a.start-2)}),te(2,"..."),x()()}if(2&i){var e=D();k(1),ie("aria-label",e.pageLabel(e.start-1))}}var nft=function(r){return{"k-link":!0,"k-state-selected":r,"k-pager-nav":!0}};function ift(i,r){if(1&i){var t=Me();A(0,"li")(1,"span",11),Q("click",function(){var s=re(t).$implicit;return D().changePage(s-1)})("keydown.enter",function(){var s=re(t).$implicit;return D().changePage(s-1)}),te(2),x()()}if(2&i){var e=r.$implicit,n=D();k(1),y("ngClass",ot(3,nft,n.currentPage===e)),ie("aria-label",n.pageLabel(e)),k(1),Nt(" ",e," ")}}function rft(i,r){if(1&i){var t=Me();A(0,"li")(1,"span",10),Q("click",function(){re(t);var a=D();return a.changePage(a.end)})("keydown.enter",function(){re(t);var a=D();return a.changePage(a.end)}),te(2,"..."),x()()}if(2&i){var e=D();k(1),ie("aria-label",e.pageLabel(e.end+1))}}var aft=function(){return{"k-pager-numbers":!0,"k-reset":!0}},oft=function(){return{"k-pager-input":!0,"k-label":!0}},sft=function(r,t){return{keydown:r,focusout:t}},lft=function(){return{"k-icon":!0,"k-i-arrow-e":!0}},uft=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"k-pager-last":!0}},cft=function(){return{"k-icon":!0,"k-i-seek-e":!0}};function dft(i,r){if(1&i){var t=Me();A(0,"div",4),Q("focusin",function(a){return re(t),D().onInnerFocusIn(a,"start")}),x()}2&i&&(y("tabindex",D().focusTrapTabIndex),ie("aria-hidden",!0))}function hft(i,r){if(1&i&&Wt(0,5),2&i){var t=D();y("ngTemplateOutlet",t.template.templateRef)("ngTemplateOutletContext",t.templateContext)}}function fft(i,r){1&i&&z(0,"kendo-pager-prev-buttons")}function vft(i,r){1&i&&z(0,"kendo-pager-numeric-buttons",8),2&i&&y("buttonCount",D(2).settings.buttonCount)}function pft(i,r){1&i&&z(0,"kendo-pager-input")}function gft(i,r){1&i&&z(0,"kendo-pager-next-buttons")}function mft(i,r){1&i&&z(0,"kendo-pager-info")}function _ft(i,r){1&i&&z(0,"kendo-pager-page-sizes",9,10),2&i&&y("pageSizes",D(2).settings.pageSizes)}function yft(i,r){if(1&i&&(Ve(0),T(1,fft,1,0,"kendo-pager-prev-buttons",2),T(2,vft,1,1,"kendo-pager-numeric-buttons",6),T(3,pft,1,0,"kendo-pager-input",2),T(4,gft,1,0,"kendo-pager-next-buttons",2),T(5,mft,1,0,"kendo-pager-info",2),T(6,_ft,2,1,"kendo-pager-page-sizes",7),Ge()),2&i){var t=D();k(1),y("ngIf",t.settings.previousNext),k(1),y("ngIf","numeric"===t.settings.type),k(1),y("ngIf","input"===t.settings.type),k(1),y("ngIf",t.settings.previousNext),k(1),y("ngIf",t.settings.info),k(1),y("ngIf",t.settings.pageSizes)}}function kft(i,r){if(1&i){var t=Me();A(0,"div",4),Q("focusin",function(a){return re(t),D().onInnerFocusIn(a,"end")}),x()}2&i&&(y("tabindex",D().focusTrapTabIndex),ie("aria-hidden",!0))}function Cft(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",11),Q("resize",function(){return re(t),D().resizeHandler()}),x()}}var bft=["kendoGroupIndicator",""],Qde=function(){return{lastTarget:!0}};function Sft(i,r){if(1&i&&(Ve(0),A(1,"div",3),te(2),x(),Ge()),2&i){var t=D();k(1),y("context",wt(2,Qde)),k(1),Nt(" ",t.text," ")}}var wft=function(r){return{field:r}},Dft=function(r,t){return{field:r,type:"groupIndicator",hint:t}};function Eft(i,r){if(1&i){var t=Me();A(0,"div",3)(1,"div",4),Q("directionChange",function(s){return re(t),D().directionChange(s)})("remove",function(s){return re(t),D().remove(s)}),x()()}if(2&i){var e=r.$implicit,n=r.index,a=D();y("context",ot(5,wft,e.field)),k(1),y("enableDrag",!0)("context",ln(7,Dft,e.field,a.groupTitles[n]))("group",e)("groupTitle",a.groupTitles[n])}}function Tft(i,r){1&i&&(A(0,"div",3),te(1,"\xa0"),x()),2&i&&y("context",wt(1,Qde))}var Aft=["kendoGridColGroup",""];function xft(i,r){1&i&&z(0,"col"),2&i&&ue("k-group-col",!0)}function Mft(i,r){1&i&&z(0,"col"),2&i&&ue("k-hierarchy-col",!0)}function Rft(i,r){1&i&&z(0,"col"),2&i&&Qe("width",r.$implicit.width,"px")}var uG=["*"];function Oft(i,r){if(1&i){var t=Me();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function Ift(i,r){if(1&i&&z(0,"kendo-grid-string-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("menuTabbingService",t.menuTabbingService)}}function Nft(i,r){if(1&i){var t=Me();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function Fft(i,r){if(1&i&&z(0,"kendo-grid-numeric-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("format",t.format)("decimals",t.decimals)("spinners",t.spinners)("min",t.min)("max",t.max)("step",t.step)("menuTabbingService",t.menuTabbingService)}}function Lft(i,r){if(1&i){var t=Me();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function Pft(i,r){if(1&i&&z(0,"kendo-grid-date-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("activeView",t.activeView)("bottomView",t.bottomView)("topView",t.topView)("format",t.format)("formatPlaceholder",t.formatPlaceholder)("placeholder",t.placeholder)("min",t.min)("max",t.max)("weekNumber",t.weekNumber)("menuTabbingService",t.menuTabbingService)}}function Bft(i,r){if(1&i){var t=Me();A(0,"li")(1,"input",2,3),Q("change",function(){var s=re(t).$implicit,l=Yt(2);return D().onChange(s.value,l)})("keydown.shift.tab",function(o){return re(t),D().onShiftTab(o)}),x(),A(3,"label",4),te(4),x()()}if(2&i){var e=r.$implicit,n=D();k(1),y("columnLabel",n.columnLabel)("name",n.idPrefix)("checked",n.isSelected(e.value)),ie("id",n.radioId(e.value)),k(2),ie("for",n.radioId(e.value)),k(1),at(e.text)}}var Vft=["resetButton"],Gft=["filterButton"];function Uft(i,r){if(1&i&&(Ve(0),Wt(1,9),Ge()),2&i){var t=D();k(1),y("filterService",t.childService)("column",t.column)("filter",t.childFilter)("menuTabbingService",t.menuTabbingService)}}function zft(i,r){}function Hft(i,r){if(1&i&&T(0,zft,0,0,"ng-template",11),2&i){var t=D(2);y("ngTemplateOutlet",t.column.filterMenuTemplateRef)("ngTemplateOutletContext",t.templateContext)}}function Kft(i,r){if(1&i&&(Ve(0),T(1,Hft,1,2,null,10),Ge()),2&i){var t=D();k(1),y("ngIf",t.column.filterMenuTemplateRef)}}var Jde=["anchor"],ehe=["template"];function jft(i,r){if(1&i){var t=Me();A(0,"kendo-grid-filter-menu-container",4),Q("close",function(){return re(t),D().close()})("keydown.escape",function(){return re(t),D().close()})("keydown.enter",function(a){return a.stopImmediatePropagation()}),x()}if(2&i){var e=D();y("column",e.column)("filter",e.filter)}}var Wft=function(r){return{"k-grid-filter":!0,"k-state-active":r}};function $ft(i,r){1&i&&z(0,"span",3),2&i&&y("ngClass",D().iconClass)}function qft(i,r){if(1&i&&(A(0,"div",4),Wt(1,5),z(2,"div"),x()),2&i){var t=D();y("@state",t.contentState),k(1),y("ngTemplateOutlet",t.contentTemplate.templateRef)}}function Xft(i,r){if(1&i){var t=Me();A(0,"kendo-grid-columnmenu-lock",3),Q("keydown.tab",function(a){re(t);var o=D(2);return o.onTab(a,!o.showStick)}),x()}2&i&&y("service",D(2).service)}function Zft(i,r){if(1&i){var t=Me();A(0,"kendo-grid-columnmenu-stick",3),Q("keydown.tab",function(a){return re(t),D(2).onTab(a,!0)}),x()}2&i&&y("service",D(2).service)}function Yft(i,r){if(1&i&&(T(0,Xft,1,1,"kendo-grid-columnmenu-lock",2),T(1,Zft,1,1,"kendo-grid-columnmenu-stick",2)),2&i){var t=D();y("ngIf",t.showLock),k(1),y("ngIf",t.showStick)}}var Qft=["applyButton"];function Jft(i,r){if(1&i&&(A(0,"label",3),z(1,"input",4),A(2,"span",5),te(3),x()()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),y("checked",!t.hidden)("disabled",n.isDisabled(t)),ie("data-index",e),k(2),at(t.displayTitle)}}function evt(i,r){if(1&i){var t=Me();A(0,"div",6)(1,"button",7),Q("click",function(){return re(t),D().cancelChanges()}),te(2),x(),A(3,"button",8,9),Q("keydown.tab",function(a){return re(t),D().onTab(a)})("click",function(){return re(t),D().applyChanges()}),te(5),x()()}if(2&i){var e=D();y("ngClass",e.actionsClass),k(2),at(e.resetText),k(3),at(e.applyText)}}function tvt(i,r){if(1&i){var t=Me();A(0,"kendo-grid-columnlist",2),Q("apply",function(a){return re(t),D().onApply(a)}),x()}if(2&i){var e=D();y("applyText",e.localization.get("columnsApply"))("resetText",e.localization.get("columnsReset"))("columns",e.columns)("autoSync",!1)("allowHideAll",!1)("actionsClass",e.actionsClass)("isLast",e.isLast)("isExpanded",e.expanded)("service",e.service)}}function nvt(i,r){if(1&i){var t=Me();A(0,"kendo-grid-filter-menu-container",2),Q("keydown.shift.tab",function(a){return a.stopImmediatePropagation()})("close",function(){return re(t),D().close()}),x()}if(2&i){var e=D();y("column",e.service.column)("menuTabbingService",e.service.menuTabbingService)("filter",e.service.filter)("actionsClass",e.actionsClass)("isLast",e.isLast)("isExpanded",e.expanded)}}var ivt=function(r,t){return{service:r,column:t}};function rvt(i,r){if(1&i&&Wt(0,5),2&i){var t=D(),e=Yt(6);y("ngTemplateOutlet",t.column.columnMenuTemplateRef||t.columnMenuTemplate||e)("ngTemplateOutletContext",ln(2,ivt,t.service,t.column))}}function avt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-sort",10,11),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function ovt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-lock",10,12),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function svt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-stick",10,13),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function lvt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-position",14,15),2&i){var t=Yt(1),e=D(2);y("showLock",e.hasLock)("showStick",e.hasStick)("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedPosition)}}function uvt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-chooser",16,17),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedColumns)}}function cvt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-filter",16,18),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedFilter)}}function dvt(i,r){if(1&i){var t=Me();A(0,"kendo-grid-columnmenu-container",6),Q("keydown.escape",function(){return re(t),D().close()})("keydown.enter",function(a){return a.stopImmediatePropagation()}),T(1,avt,2,2,"kendo-grid-columnmenu-sort",7),T(2,ovt,2,2,"kendo-grid-columnmenu-lock",7),T(3,svt,2,2,"kendo-grid-columnmenu-stick",7),T(4,lvt,2,5,"kendo-grid-columnmenu-position",8),T(5,uvt,2,3,"kendo-grid-columnmenu-chooser",9),T(6,cvt,2,3,"kendo-grid-columnmenu-filter",9),x()}if(2&i){var e=D();k(1),y("ngIf",e.hasSort),k(1),y("ngIf",e.hasLock&&!e.hasPosition),k(1),y("ngIf",e.hasStick&&!e.hasPosition),k(1),y("ngIf",e.hasPosition),k(1),y("ngIf",e.hasColumnChooser),k(1),y("ngIf",e.hasFilter)}}var hvt=function(r){return{"k-state-active":r}},fvt=["dropdown"],the=function(){return{width:"auto"}};function vvt(i,r){if(1&i){var t=Me();A(0,"kendo-dropdownlist",2,3),Q("valueChange",function(a){return re(t),D().onChange(a)})("keydown",function(a){return re(t),D().dropdownKeydown(a)}),x()}if(2&i){var e=D();y("data",e.operators)("value",e.value)("valuePrimitive",!0)("popupSettings",wt(4,the))}}function pvt(i,r){if(1&i){var t=Me();A(0,"button",4),Q("click",function(){return re(t),D().clearClick()})("keydown",function(a){return re(t),D().clearKeydown(a)}),z(1,"span",5),x()}2&i&&y("title",D().clearText)}var gvt=["kendoGridFilterCell",""];function mvt(i,r){if(1&i&&(Ve(0),Wt(1,3),Ge()),2&i){var t=D(2);k(1),y("column",t.column)("filter",t.filter)}}function _vt(i,r){}function yvt(i,r){if(1&i&&T(0,_vt,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",t.column.filterCellTemplateRef)("ngTemplateOutletContext",t.templateContext)}}function kvt(i,r){if(1&i&&(Ve(0),T(1,yvt,1,2,null,0),Ge()),2&i){var t=D(2);k(1),y("ngIf",t.column.filterCellTemplateRef)}}function Cvt(i,r){if(1&i&&(Ve(0)(1,1),T(2,mvt,2,2,"ng-container",2),T(3,kvt,2,1,"ng-container",2),Ge()()),2&i){var t=D();k(1),y("ngSwitch",t.hasTemplate),k(1),y("ngSwitchCase",!1),k(1),y("ngSwitchCase",!0)}}var bvt=["kendoGridFilterRow",""];function Svt(i,r){1&i&&z(0,"td",3),2&i&&ue("k-group-cell",!0)}function wvt(i,r){1&i&&z(0,"td",3),2&i&&ue("k-hierarchy-cell",!0)}function Dvt(i,r){if(1&i&&z(0,"td",4),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-grid-header-sticky",t.sticky),y("ngStyle",n.addStickyStyles(t))("ngClass",t.filterClass)("column",t)("filter",n.filter)("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",n.lockedColumnsCount+e),ie("aria-label",n.filterLabel(t))}}var Evt=["kendoGridHeader",""];function Tvt(i,r){1&i&&z(0,"th",6)}function Avt(i,r){1&i&&z(0,"th",7),2&i&&y("logicalRowIndex",D().index)("logicalColIndex",0)}function xvt(i,r){if(1&i&&z(0,"kendo-grid-filter-menu",16),2&i){var t=D(3).$implicit,e=D(2);y("column",e.getColumnComponent(t))("filter",e.filter)("tabIndex",e.tabIndex)}}function Mvt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",17),2&i){var t=D(3).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)("sort",e.sort)("filter",e.filter)("sortable",e.sortable)("tabIndex",e.tabIndex)}}function Rvt(i,r){}function Ovt(i,r){if(1&i&&(Ve(0),te(1),Ge()),2&i){var t=D(3).$implicit;k(1),at(t.displayTitle)}}var zT=function(r,t,e,n){return{templateRef:r,columnIndex:t,column:e,$implicit:n}};function Ivt(i,r){if(1&i&&(Ve(0),T(1,xvt,1,3,"kendo-grid-filter-menu",13),T(2,Mvt,1,8,"kendo-grid-column-menu",14),T(3,Rvt,0,0,"ng-template",15),T(4,Ovt,2,1,"ng-container",11),Ge()),2&i){var t=D(2).$implicit,e=D(2);k(1),y("ngIf",e.showFilterMenu&&e.isFilterable(e.getColumnComponent(t))),k(1),y("ngIf",e.showColumnMenu(t)),k(1),y("templateContext",eu(4,zT,t.headerTemplateRef,t.leafIndex,t,t)),k(1),y("ngIf",!t.headerTemplateRef)}}function Nvt(i,r){}function Fvt(i,r){if(1&i&&(Ve(0),A(1,"span",24),te(2),x(),Ge()),2&i){var t=D(3).$implicit;k(2),at(t.displayTitle)}}function Lvt(i,r){if(1&i&&(A(0,"span",25),te(1),x()),2&i){var t=D(3).$implicit,e=D(2);k(1),at(e.sortOrder(e.getColumnComponent(t).field))}}function Pvt(i,r){if(1&i&&z(0,"kendo-grid-filter-menu",16),2&i){var t=D(3).$implicit,e=D(2);y("column",e.getColumnComponent(t))("filter",e.filter)("tabIndex",e.tabIndex)}}function Bvt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",17),2&i){var t=D(3).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)("sort",e.sort)("filter",e.filter)("sortable",e.sortable)("tabIndex",e.tabIndex)}}function Vvt(i,r){if(1&i){var t=Me();Ve(0),A(1,"span",18)(2,"span",19,20),Q("click",function(o){re(t);var s=Yt(3),l=D(2).$implicit,u=D(2);return u.onSortClick(u.getColumnComponent(l),o,s)}),T(4,Nvt,0,0,"ng-template",15),T(5,Fvt,3,1,"ng-container",11),z(6,"span",21),T(7,Lvt,2,1,"span",22),x(),z(8,"span",23),T(9,Pvt,1,3,"kendo-grid-filter-menu",13),T(10,Bvt,1,8,"kendo-grid-column-menu",14),x(),Ge()}if(2&i){var e=D(2).$implicit,n=D(2);k(4),y("templateContext",eu(8,zT,e.headerTemplateRef,e.leafIndex,e,e)),k(1),y("ngIf",!e.headerTemplateRef),k(1),y("ngClass",n.sortIcon(n.getColumnComponent(e).field)),ie("aria-label",n.sortableLabel),k(1),y("ngIf",n.showSortNumbering(n.getColumnComponent(e))),k(1),y("innerHtml",n.sortStatus(n.getColumnComponent(e)),BS),k(1),y("ngIf",n.showFilterMenu&&n.isFilterable(n.getColumnComponent(e))),k(1),y("ngIf",n.showColumnMenu(e))}}function Gvt(i,r){if(1&i&&(Ve(0),z(1,"input",26),Ge()),2&i){var t=D(4);k(1),ie("id",t.selectAllCheckboxId())("aria-label",t.selectAllCheckboxLabel)}}function Uvt(i,r){if(1&i&&z(0,"span",27),2&i){var t=D(2).$implicit,e=D(2);y("column",t)("columns",e.columns)}}var zvt=function(r,t,e,n){return{field:r,type:"column",column:t,hint:e,lastColumn:n}};function Hvt(i,r){if(1&i){var t=Me();A(0,"th",10),Q("keydown",function(c){re(t);var d=D().$implicit,h=D(2);return h.onHeaderKeydown(h.getColumnComponent(d),c)}),T(1,Ivt,5,9,"ng-container",11),T(2,Vvt,11,13,"ng-container",11),T(3,Gvt,2,2,"ng-container",11),T(4,Uvt,1,2,"span",12),x()}if(2&i){var e=D(),n=e.$implicit,a=e.index,o=e.last,s=D().index,l=D();ue("k-filterable",l.showFilterMenu&&l.isFilterable(l.getColumnComponent(n))||l.showColumnMenu(n))("k-first",l.isFirstOnRow(l.getColumnComponent(n),a))("k-grid-header-sticky",n.sticky),y("logicalRowIndex",s)("logicalColIndex",l.logicalColumnIndex(n))("headerLabelText",n.title||l.getColumnComponent(n).field)("colSpan",n.colspan)("rowSpan",n.rowspan(l.totalColumnLevels))("enableDrag",l.shouldActivate(n))("context",eu(22,zvt,l.getColumnComponent(n).field,n,n.title||l.getColumnComponent(n).field,o&&0===a))("ngClass",n.headerClass)("ngStyle",n.sticky?l.addStickyStyles(n):n.headerStyle),ie("aria-sort",l.sortState(l.getColumnComponent(n)))("rowspan",n.rowspan(l.totalColumnLevels))("colspan",n.colspan),k(1),y("ngIf",!l.isSortable(l.getColumnComponent(n))),k(1),y("ngIf",l.isSortable(l.getColumnComponent(n))),k(1),y("ngIf",l.isCheckboxColumn(n)&&!n.headerTemplateRef&&n.showSelectAll),k(1),y("ngIf",l.resizable)}}function Kvt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",30),2&i){var t=D(2).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)}}function jvt(i,r){}function Wvt(i,r){if(1&i&&(Ve(0),te(1),Ge()),2&i){var t=D(2).$implicit;k(1),at(t.displayTitle)}}function $vt(i,r){if(1&i&&z(0,"span",27),2&i){var t=D(2).$implicit,e=D(2);y("column",t)("columns",e.columns)}}var qvt=function(r,t,e){return{type:"columnGroup",column:r,hint:t,lastColumn:e}};function Xvt(i,r){if(1&i&&(A(0,"th",28),T(1,Kvt,1,4,"kendo-grid-column-menu",29),T(2,jvt,0,0,"ng-template",15),T(3,Wvt,2,1,"ng-container",11),T(4,$vt,1,2,"span",12),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=t.last,o=D().index,s=D();ue("k-first",s.isFirstOnRow(s.getColumnComponent(e),n))("k-filterable",s.showColumnMenu(e))("k-grid-content-sticky",e.sticky),y("logicalRowIndex",o)("logicalColIndex",s.logicalColumnIndex(e))("rowSpan",e.rowspan(s.totalColumnLevels))("colSpan",e.colspan)("headerLabelText",e.title||s.getColumnComponent(e).field)("enableDrag",s.shouldActivate(e))("context",va(21,qvt,e,e.title,a&&0===n))("ngClass",e.headerClass)("ngStyle",e.headerStyle),ie("rowspan",e.rowspan(s.totalColumnLevels))("colspan",e.colspan),k(1),y("ngIf",s.showColumnMenu(e)),k(1),y("templateContext",eu(25,zT,e.headerTemplateRef,s.lockedColumnsCount+n,e,e)),k(1),y("ngIf",!e.headerTemplateRef),k(1),y("ngIf",s.resizable)}}function Zvt(i,r){if(1&i&&(Ve(0),T(1,Hvt,5,27,"th",8),T(2,Xvt,5,30,"th",9),Ge()),2&i){var t=r.$implicit,e=D(2);k(1),y("ngIf",!e.isColumnGroupComponent(t)),k(1),y("ngIf",e.isColumnGroupComponent(t))}}function Yvt(i,r){if(1&i&&(A(0,"tr",2),T(1,Tvt,1,0,"th",3),T(2,Avt,1,2,"th",4),T(3,Zvt,3,2,"ng-container",5),x()),2&i){var t=r.index,e=D();y("logicalRowIndex",t)("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount),k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsForLevel(t))("ngForTrackBy",e.trackByIndex)}}function Qvt(i,r){if(1&i&&z(0,"tr",31),2&i){var t=D();y("columns",t.leafColumns)("filter",t.filter)("groups",t.groups)("detailTemplate",t.detailTemplate)("lockedColumnsCount",t.lockedColumnsCount)("logicalRowIndex",t.totalColumnLevels+1)("logicalSlaveRow",t.lockedColumnsCount>0)("logicalCellsCount",t.columns.length)("logicalSlaveCellsCount",t.unlockedColumnsCount)}}var Jvt=["kendoGridCell",""];function ept(i,r){}function tpt(i,r){if(1&i&&T(0,ept,0,0,"ng-template",5),2&i){var t=D(3);y("ngTemplateOutlet",t.column.templateRef)("ngTemplateOutletContext",t.templateContext)}}function npt(i,r){if(1&i&&(Ve(0),te(1),Wa(2,"valueOf"),Ge()),2&i){var t=r.$implicit,e=D(4);k(1),Nt(" ",aw(2,1,e.dataItem,t.field,t.format)," ")}}function ipt(i,r){if(1&i&&(Ve(0),T(1,npt,3,5,"ng-container",6),Ge()),2&i){var t=D(3);k(1),y("ngForOf",t.childColumns)}}function rpt(i,r){if(1&i&&(Ve(0),te(1),Wa(2,"valueOf"),Ge()),2&i){var t=D(3);k(1),at(aw(2,1,t.dataItem,t.column.field,t.column.format))}}function apt(i,r){if(1&i&&(Ve(0),z(1,"input",7),Ge()),2&i){var t=D(3);k(1),y("kendoGridSelectionCheckbox",t.rowIndex),ie("id",t.selectionCheckboxId)("aria-label",t.selectionCheckboxLabel)}}function opt(i,r){if(1&i&&(Ve(0),T(1,tpt,1,2,null,4),T(2,ipt,2,1,"ng-container",4),T(3,rpt,3,5,"ng-container",4),T(4,apt,2,3,"ng-container",4),Ge()),2&i){var t=D(2);k(1),y("ngIf",t.column.templateRef),k(1),y("ngIf",t.isSpanColumn),k(1),y("ngIf",t.isBoundColumn),k(1),y("ngIf",t.isCheckboxColumn&&!t.isNew)}}function spt(i,r){}var lpt=function(r){return{$implicit:r}};function upt(i,r){if(1&i&&T(0,spt,0,0,"ng-template",5),2&i){var t=D(3);y("ngTemplateOutlet",t.loadingTemplate)("ngTemplateOutletContext",ot(2,lpt,t.column))}}function cpt(i,r){1&i&&z(0,"div",9)}function dpt(i,r){if(1&i&&(T(0,upt,1,4,null,4),T(1,cpt,1,0,"div",8)),2&i){var t=D(2);y("ngIf",t.loadingTemplate),k(1),y("ngIf",!t.loadingTemplate)}}function hpt(i,r){if(1&i&&(Ve(0),T(1,opt,5,4,"ng-container",2),T(2,dpt,2,2,"ng-template",null,3,$n),Ge()),2&i){var t=Yt(3),e=D();k(1),y("ngIf",!e.showLoading)("ngIfElse",t)}}function fpt(i,r){}function vpt(i,r){if(1&i&&T(0,fpt,0,0,"ng-template",5),2&i){var t=D(2);y("ngTemplateOutlet",t.column.editTemplateRef)("ngTemplateOutletContext",t.editTemplateContext)}}function ppt(i,r){if(1&i&&z(0,"kendo-numerictextbox",14),2&i){var t=D(3);y("format",t.format)("formControl",t.formGroup.get(t.column.field))}}function gpt(i,r){if(1&i&&z(0,"kendo-datepicker",14),2&i){var t=D(3);y("format",t.format)("formControl",t.formGroup.get(t.column.field))}}function mpt(i,r){if(1&i&&z(0,"input",15),2&i){var t=D(3);y("formControl",t.formGroup.get(t.column.field))}}function _pt(i,r){if(1&i&&z(0,"input",16),2&i){var t=D(3);y("formControl",t.formGroup.get(t.column.field))}}function ypt(i,r){1&i&&(Ve(0,0),T(1,ppt,1,2,"kendo-numerictextbox",11),T(2,gpt,1,2,"kendo-datepicker",11),T(3,mpt,1,1,"input",12),T(4,_pt,1,1,"input",13),Ge()),2&i&&(y("ngSwitch",D(2).column.editor),k(1),y("ngSwitchCase","numeric"),k(1),y("ngSwitchCase","date"),k(1),y("ngSwitchCase","boolean"))}function kpt(i,r){if(1&i&&(Ve(0),T(1,vpt,1,2,null,4),T(2,ypt,5,4,"ng-container",10),Ge()),2&i){var t=D();k(1),y("ngIf",t.column.editTemplateRef),k(1),y("ngIf",!t.column.editTemplateRef)}}var Cpt=["kendoGridGroupHeader",""];function bpt(i,r){1&i&&z(0,"td",3)}function Spt(i,r){if(1&i&&(Ve(0),T(1,bpt,1,0,"td",2),Ge()),2&i){var t=D();k(1),y("ngForOf",t.prefixGroupCell(t.item))}}function wpt(i,r){if(1&i&&(Ve(0),te(1),Wa(2,"valueOf"),Ge()),2&i){var t=D(3);k(1),Jl(" ",t.groupTitle(t.item),": ",aw(2,2,t.item.data,"value",t.formatForGroup(t.item))," ")}}function Dpt(i,r){}var Ept=function(r,t){return{"k-i-collapse":r,"k-i-expand":t}},Tpt=function(r,t,e,n,a,o,s,l){return{templateRef:r,group:t,aggregates:e,value:n,field:a,index:o,expanded:s,$implicit:l}};function Apt(i,r){if(1&i){var t=Me();Ve(0),A(1,"a",6),Q("click",function(){re(t);var a=D(2);return a.toggleGroup(a.item)}),x(),T(2,wpt,3,6,"ng-container",0),T(3,Dpt,0,0,"ng-template",7),Ge()}if(2&i){var e=D(2);k(1),y("ngClass",ln(5,Ept,e.isExpanded,!e.isExpanded)),ie("title",e.groupButtonTitle)("aria-label",e.groupButtonTitle),k(1),y("ngIf",!e.groupHeaderTemplate(e.item)),k(1),y("templateContext",function I5(i,r,t,e,n,a,o,s,l,u,c){var d=Ha()+i,h=Oe(),f=Es(h,d,t,e,n,a);return Es(h,d+4,o,s,l,u)||f?Zl(h,d+8,c?r.call(c,t,e,n,a,o,s,l,u):r(t,e,n,a,o,s,l,u)):q_(h,d+8)}(8,Tpt,e.groupHeaderTemplate(e.item),e.item.data,null==e.item.data?null:e.item.data.aggregates,null==e.item.data?null:e.item.data.value,null==e.item.data?null:e.item.data.field,e.item.index,e.isExpanded,e.item.data))}}function xpt(i,r){if(1&i&&(A(0,"td",4)(1,"p",5),T(2,Apt,4,17,"ng-container",0),x()()),2&i){var t=D();y("logicalRowIndex",t.logicalRowIndex)("logicalColIndex",0)("logicalSlaveCell",t.skipGroupDecoration)("groupItem",t.item)("colSpan",t.logicalColSpan()),ie("colspan",t.groupSpan(t.item))("role",t.ariaRole())("aria-expanded",t.isExpanded),k(2),y("ngIf",!t.skipGroupDecoration)}}function Mpt(i,r){}var Rpt=function(r,t,e,n,a,o){return{group:r,aggregates:t,value:e,field:n,index:a,$implicit:o}};function Opt(i,r){if(1&i&&T(0,Mpt,0,0,"ng-template",10),2&i){var t=D().$implicit,e=D(2);y("ngTemplateOutlet",t.groupHeaderColumnTemplateRef)("ngTemplateOutletContext",ay(2,Rpt,e.item.data,null==e.item.data?null:e.item.data.aggregates,null==e.item.data?null:e.item.data.value,null==e.item.data?null:e.item.data.field,e.item.index,e.item.data))}}function Ipt(i,r){if(1&i&&(A(0,"td",9),T(1,Opt,1,9,null,0),x()),2&i){var t=r.$implicit,e=r.index,n=D(2);y("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",e+1)("logicalSlaveCell",!1)("groupItem",n.item)("colSpan",1),k(1),y("ngIf",t.groupHeaderColumnTemplateRef)}}function Npt(i,r){if(1&i&&(Ve(0),T(1,Ipt,2,6,"td",8),Ge()),2&i){var t=D();k(1),y("ngForOf",t.groupHeaderColumns)}}var Fpt=["kendoGridTableBody",""];function Lpt(i,r){1&i&&z(0,"td",8)}function Ppt(i,r){if(1&i&&(Ve(0),T(1,Lpt,1,0,"td",7),Ge()),2&i){var t=D(2);k(1),y("ngForOf",t.groups)}}function Bpt(i,r){1&i&&z(0,"td",9),2&i&&y("logicalRowIndex",D(2).addRowLogicalIndex())("logicalColIndex",0)}function Vpt(i,r){if(1&i&&z(0,"td",10),2&i){var t=r.$implicit,e=r.index,n=D(2);Qe("left",t.sticky?"0":void 0),ue("k-grid-content-sticky",t.sticky),y("rowIndex",-1)("columnIndex",n.lockedColumnsCount+e)("isNew",!0)("column",t)("dataItem",n.newDataItem)("ngClass",t.cssClass)("ngStyle",t.sticky?n.addStickyColumnStyles(t):t.style)("logicalRowIndex",n.addRowLogicalIndex())("logicalColIndex",n.logicalColIndex(t))("colSpan",t.colspan),ie("colspan",t.colspan)}}function Gpt(i,r){if(1&i&&(Ve(0),A(1,"tr",4),T(2,Ppt,2,1,"ng-container",0),T(3,Bpt,1,2,"td",5),T(4,Vpt,1,15,"td",6),x(),Ge()),2&i){var t=D();k(1),y("logicalRowIndex",t.addRowLogicalIndex())("logicalSlaveRow",t.lockedColumnsCount>0)("logicalCellsCount",t.columns.length)("logicalSlaveCellsCount",t.unlockedColumnsCount),k(1),y("ngIf",!t.skipGroupDecoration),k(1),y("ngIf",null==t.detailTemplate?null:t.detailTemplate.templateRef),k(1),y("ngForOf",t.columns)("ngForTrackBy",t.trackByColumns)}}function Upt(i,r){}var zpt=function(r){return{templateRef:r}};function Hpt(i,r){if(1&i&&T(0,Upt,0,0,"ng-template",12),2&i){var t=D(2);y("templateContext",ot(1,zpt,null==t.noRecordsTemplate?null:t.noRecordsTemplate.templateRef))}}function Kpt(i,r){if(1&i&&(Ve(0),te(1),Ge()),2&i){var t=D(2);k(1),Nt(" ",t.noRecordsText," ")}}function jpt(i,r){if(1&i&&(A(0,"tr",11)(1,"td"),T(2,Hpt,1,3,null,0),T(3,Kpt,2,1,"ng-container",0),x()()),2&i){var t=D();k(1),ie("colspan",t.colSpan),k(1),y("ngIf",null==t.noRecordsTemplate?null:t.noRecordsTemplate.templateRef),k(1),y("ngIf",!(null!=t.noRecordsTemplate&&t.noRecordsTemplate.templateRef))}}function Wpt(i,r){if(1&i&&z(0,"tr",17),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("columns",a.columns)("groups",a.groups)("item",e)("hasDetails",!(null==a.detailTemplate||!a.detailTemplate.templateRef))("skipGroupDecoration",a.skipGroupDecoration)("hasGroupHeaderColumn",a.hasGroupHeaderColumn)("groupHeaderColumns",a.groupHeaderColumns)("rowIndex",n+1)("totalColumnsCount",a.totalColumnsCount)("logicalRowIndex",a.logicalRowIndex(n))("logicalSlaveRow",a.lockedColumnsCount>0)("logicalCellsCount",a.columns.length)("logicalSlaveCellsCount",a.groupHeaderSlaveCellsCount)}}function $pt(i,r){1&i&&z(0,"td",8)}function qpt(i,r){if(1&i&&(Ve(0),T(1,$pt,1,0,"td",7),Ge()),2&i){var t=D(3);k(1),y("ngForOf",t.groups)}}function Xpt(i,r){if(1&i){var t=Me();A(0,"a",23),Q("click",function(){re(t);var o=D(3).$implicit;return D().toggleRow(o.index,o.data)}),x()}if(2&i){var e=D(3).$implicit,n=D();y("ngClass",n.detailButtonStyles(e)),ie("title",n.detailButtonTitle(e))("aria-label",n.detailButtonTitle(e))}}function Zpt(i,r){if(1&i&&(A(0,"td",21),T(1,Xpt,1,3,"a",22),x()),2&i){var t=D(2),e=t.index,n=t.$implicit,a=D();y("logicalRowIndex",a.logicalRowIndex(e))("logicalColIndex",0)("dataRowIndex",n.index)("dataItem",n.data)("detailExpandCell",!0),k(1),y("ngIf",a.detailTemplate.showIf(n.data,n.index))}}function Ypt(i,r){if(1&i&&z(0,"td",24),2&i){var t=r.$implicit,e=r.index,n=D(2),a=n.$implicit,o=n.index,s=D();ue("k-grid-content-sticky",t.sticky)("k-touch-action-none",s.isSelectable()&&s.selectable.drag)("k-touch-action-auto",!(s.isSelectable()&&s.selectable.drag))("k-grid-edit-cell",s.isEditingCell(a.index,t))("k-state-selected",s.isSelectable&&s.cellSelectionService.isCellSelected(a,t)),y("rowIndex",a.index)("columnIndex",s.lockedColumnsCount+e)("column",t)("dataItem",a.data)("isLoading",s.isLoading)("isVirtual",s.isVirtual)("loadingTemplate",s.cellLoadingTemplate)("logicalRowIndex",s.logicalRowIndex(o))("logicalColIndex",s.logicalColIndex(t))("dataRowIndex",a.index)("dataItem",a.data)("colIndex",e)("colSpan",t.colspan)("ngClass",t.cssClass)("ngStyle",t.sticky?s.addStickyColumnStyles(t):t.style),ie("data-kendo-grid-column-index",s.lockedColumnsCount+e)("aria-selected",s.isSelectable()?s.isAriaSelected(a,t):void 0)("colspan",t.colspan)}}var nhe=function(r,t){return{dataItem:r,index:t}};function Qpt(i,r){if(1&i&&(A(0,"tr",18),T(1,qpt,2,1,"ng-container",0),T(2,Zpt,2,6,"td",19),T(3,Ypt,1,28,"td",20),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();ue("k-grid-row-sticky",!!a.rowSticky&&a.rowSticky(ln(22,nhe,e.data,e.index)))("k-alt",a.isOdd(e))("k-master-row",null==a.detailTemplate?null:a.detailTemplate.templateRef)("k-grid-edit-row",a.isEditingRow(e.index))("k-state-selected",a.isSelectable()&&a.isRowSelected(e)),y("dataRowIndex",e.index)("dataItem",e.data)("logicalRowIndex",a.logicalRowIndex(n))("logicalSlaveRow",a.lockedColumnsCount>0)("logicalCellsCount",a.columns.length)("logicalSlaveCellsCount",a.unlockedColumnsCount)("ngClass",a.rowClass(ln(25,nhe,e.data,e.index))),ie("data-kendo-grid-item-index",e.index),k(1),y("ngIf",!a.skipGroupDecoration),k(1),y("ngIf",null==a.detailTemplate?null:a.detailTemplate.templateRef),k(1),y("ngForOf",a.columns)("ngForTrackBy",a.trackByColumns)}}function Jpt(i,r){1&i&&z(0,"td",30)}function egt(i,r){}var tgt=function(r,t,e){return{dataItem:r,rowIndex:t,$implicit:e}};function ngt(i,r){if(1&i&&(A(0,"tr",25),T(1,Jpt,1,0,"td",26),z(2,"td",27),A(3,"td",28),T(4,egt,0,0,"ng-template",29),x()()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();ue("k-alt",a.isOdd(e)),y("dataRowIndex",e.index)("dataItem",e.data)("logicalRowIndex",a.logicalRowIndex(n)+1)("logicalSlaveRow",!1)("logicalCellsCount",1),k(1),y("ngForOf",a.groups),k(2),y("logicalRowIndex",a.logicalRowIndex(n)+1)("logicalColIndex",0)("dataRowIndex",e.index)("dataItem",e.data)("colIndex",0)("colSpan",a.allColumnsSpan+1),ie("colspan",a.columnsSpan),k(1),y("ngTemplateOutlet",a.detailTemplate.templateRef)("ngTemplateOutletContext",va(17,tgt,e.data,e.index,e.data))}}function igt(i,r){1&i&&z(0,"td",30)}function rgt(i,r){if(1&i&&(Ve(0),T(1,igt,1,0,"td",26),Ge()),2&i){var t=D(3);k(1),y("ngForOf",t.groups)}}function agt(i,r){if(1&i&&z(0,"td",9),2&i){var t=D(2).index;y("logicalRowIndex",D().logicalRowIndex(t))("logicalColIndex",0)}}function ogt(i,r){}var sgt=function(r,t,e,n,a,o){return{templateRef:r,group:t,field:e,column:n,aggregates:a,$implicit:o}};function lgt(i,r){if(1&i&&(A(0,"td",33),T(1,ogt,0,0,"ng-template",12),x()),2&i){var s,t=r.$implicit,e=D(2),n=e.index,a=e.$implicit,o=D();y("logicalRowIndex",o.logicalRowIndex(n))("logicalColIndex",o.logicalColIndex(t)),ie("data-skip",o.skipGroupDecoration),k(1),y("templateContext",ay(4,sgt,t.groupFooterTemplateRef,a.data,t.field,t,null==(s=a.data)?null:s.aggregates,null==(s=a.data)?null:s.aggregates))}}function ugt(i,r){if(1&i&&(A(0,"tr",31),T(1,rgt,2,1,"ng-container",0),T(2,agt,1,2,"td",5),T(3,lgt,2,11,"td",32),x()),2&i){var t=D().index,e=D();y("logicalRowIndex",e.logicalRowIndex(t))("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount),k(1),y("ngIf",!e.skipGroupDecoration),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.footerColumns)("ngForTrackBy",e.trackByColumns)}}function cgt(i,r){if(1&i&&(Ve(0),T(1,Wpt,1,13,"tr",13),T(2,Qpt,4,28,"tr",14),T(3,ngt,5,21,"tr",15),T(4,ugt,4,8,"tr",16),Ge()),2&i){var t=r.$implicit,e=D();k(1),y("ngIf",e.isGroup(t)&&e.isParentGroupExpanded(t)&&e.showGroupHeader(t)),k(1),y("ngIf",e.isDataItem(t)&&(!t.group||e.isDataItemInExpandedGroup(t))),k(1),y("ngIf",e.isDataItem(t)&&(!t.group||e.isDataItemInExpandedGroup(t))&&(null==e.detailTemplate?null:e.detailTemplate.templateRef)&&e.detailTemplate.showIf(t.data,t.index)&&e.isExpanded(t)),k(1),y("ngIf",e.isFooter(t)&&t.group&&(e.isFooterItemInExpandedGroup(t)||e.showGroupFooters&&e.isParentGroupExpanded(t.group))&&!t.data.hideFooter)}}function dgt(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",34),Q("resize",function(){return re(t),D().resizeHandler()}),x()}}var hgt=["container"],fgt=["lockedContainer"],vgt=["lockedTable"],pgt=["table"],ggt=function(r,t,e,n){return{keydown:r,scroll:t,mousewheel:e,DOMMouseScroll:n}};function mgt(i,r){if(1&i&&(A(0,"div",11,12)(2,"div",3)(3,"table",13,14),z(5,"colgroup",6)(6,"tbody",15),x(),z(7,"kendo-resize-sensor"),x(),A(8,"div",9),z(9,"div"),x()()),2&i){var t=D();Qe("width",t.lockedWidth,"px"),y("kendoEventsOutsideAngular",eu(28,ggt,t.lockedKeydown,t.lockedScroll,t.lockedMousewheel,t.lockedMousewheel))("scope",t),k(3),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(2),y("groups",t.groups)("columns",t.lockedLeafColumns)("detailTemplate",t.detailTemplate),k(1),y("groups",t.groups)("isLocked",!0)("data",t.data)("noRecordsText","")("columns",t.lockedLeafColumns)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("showGroupFooters",t.showFooter)("skip",t.skip)("selectable",t.selectable)("trackBy",t.trackBy)("filterable",t.filterable)("rowClass",t.rowClass)("isLoading",t.loading)("isVirtual",t.isVirtual)("cellLoadingTemplate",t.cellLoadingTemplate),k(3),Qe("height",t.totalHeight,"px")}}function _gt(i,r){1&i&&z(0,"kendo-resize-sensor")}function ygt(i,r){1&i&&z(0,"kendo-resize-sensor")}function kgt(i,r){if(1&i&&(A(0,"div",16),z(1,"div"),x()),2&i){var t=D();k(1),Qe("width",t.totalWidth,"px")}}var bb=function(){return[]},Cgt=["kendoGridFooter",""];function bgt(i,r){1&i&&z(0,"td",4),2&i&&ue("k-group-cell",!0)}function Sgt(i,r){1&i&&z(0,"td",4),2&i&&ue("k-hierarchy-cell",!0)}function wgt(i,r){}function Dgt(i,r){if(1&i&&(A(0,"td",5),T(1,wgt,0,0,"ng-template",6),x()),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-grid-footer-sticky",t.sticky),y("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",n.logicalColumnIndex(t))("ngClass",t.footerClass)("ngStyle",t.sticky?n.addStickyStyles(t):t.footerStyle),k(1),y("templateContext",eu(7,zT,t.footerTemplateRef,n.lockedColumnsCount+e,t,t))}}var Egt=["kendoGridLoading",""];function Tgt(i,r){if(1&i&&(Ve(0),A(1,"span",1),te(2),x(),z(3,"div",2)(4,"div",3),Ge()),2&i){var t=D();k(2),at(t.loadingText)}}function Agt(i,r){}function xgt(i,r){if(1&i&&T(0,Agt,0,0,"ng-template",4),2&i){var t=D();y("ngTemplateOutlet",null==t.loadingTemplate?null:t.loadingTemplate.templateRef)}}var Mgt=["lockedHeader"],Rgt=["header"],Ogt=["ariaRoot"],Igt=["footer"];function Ngt(i,r){1&i&&z(0,"kendo-grid-toolbar",11)}function Fgt(i,r){if(1&i){var t=Me();A(0,"kendo-pager",12),Q("pageChange",function(a){return re(t),D().notifyPageChange("pager",a)}),x()}if(2&i){var e=D();y("tabindex",e.navigable?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("options",e.pageable),ie("role",e.navigable?"navigation":void 0)}}function Lgt(i,r){if(1&i){var t=Me();A(0,"kendo-grid-group-panel",13),Q("change",function(a){return re(t),D().groupChange.emit(a)}),x()}if(2&i){var e=D();y("text",e.groupableEmptyText)("groups",e.group)}}function Pgt(i,r){if(1&i&&(A(0,"div",25,26)(2,"table",27),z(3,"colgroup",22)(4,"thead",28),x()()),2&i){var t=D(3);Qe("width",t.lockedWidth,"px"),k(2),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(1),y("columns",t.lockedLeafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("resizable",t.resizable)("scrollable",!0)("columns",t.lockedColumns)("totalColumnLevels",t.totalColumnLevels)("sort",t.sort)("groups",t.group)("filter",t.filter)("filterable",t.filterable)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("sortable",t.sortable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0")}}function Bgt(i,r){if(1&i&&(A(0,"div",29),z(1,"div"),x()),2&i){var t=D(3);k(1),Qe("width",t.columnsContainer.unlockedWidth,"px")}}function Vgt(i,r){if(1&i&&(A(0,"div",17),T(1,Pgt,5,24,"div",18),A(2,"div",19,20)(4,"table",21),z(5,"colgroup",22)(6,"thead",23),x(),T(7,Bgt,2,2,"div",24),x()()),2&i){var t=D(2);Qe("padding",t.headerPadding),k(1),y("ngIf",t.isLocked),k(1),y("kendoGridResizableContainer",t.lockedLeafColumns.length>0)("lockedWidth",t.lockedWidth+t.scrollbarWidth+2),k(2),Qe("width",t.nonLockedWidth,"px"),y("virtualColumns",t.virtualColumns),k(1),y("columns",t.headerLeafColumns)("groups",t.isLocked?wt(29,bb):t.group)("detailTemplate",t.detailTemplate),k(1),y("resizable",t.resizable)("scrollable",!0)("columns",t.headerColumns)("totalColumnLevels",t.totalColumnLevels)("sort",t.sort)("filter",t.filter)("filterable",t.filterable)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("groups",t.isLocked?wt(30,bb):t.group)("sortable",t.sortable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("lockedColumnsCount",t.lockedLeafColumns.length)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0"),k(1),y("ngIf",t.virtualColumns)}}function Ggt(i,r){if(1&i&&(A(0,"div",37)(1,"table",27),z(2,"colgroup",35)(3,"tfoot",38),x()()),2&i){var t=D(3);Qe("width",t.lockedWidth,"px"),k(1),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(1),y("columns",t.lockedLeafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("scrollable",!0)("groups",t.group)("columns",t.lockedLeafColumns)("detailTemplate",t.detailTemplate)("logicalRowIndex",t.ariaRowCount)}}function Ugt(i,r){if(1&i&&(A(0,"div",30),T(1,Ggt,4,13,"div",31),A(2,"div",32,33)(4,"table",34),z(5,"colgroup",35)(6,"tfoot",36),x()()()),2&i){var t=D(2);Qe("padding",t.headerPadding),k(1),y("ngIf",t.lockedLeafColumns.length),k(1),y("kendoGridResizableContainer",t.lockedLeafColumns.length>0)("lockedWidth",t.lockedWidth+t.scrollbarWidth+3),k(2),Qe("width",t.nonLockedWidth,"px"),k(1),y("columns",t.nonLockedLeafColumns)("groups",t.isLocked?wt(16,bb):t.group)("detailTemplate",t.detailTemplate),k(1),y("logicalRowIndex",t.ariaRowCount)("scrollable",!0)("groups",t.isLocked?wt(17,bb):t.group)("columns",t.nonLockedLeafColumns)("lockedColumnsCount",t.lockedLeafColumns.length)("detailTemplate",t.detailTemplate)}}function zgt(i,r){if(1&i){var t=Me();Ve(0),T(1,Vgt,8,31,"div",14),A(2,"kendo-grid-list",15),Q("pageChange",function(a){return re(t),D().notifyPageChange("list",a)})("scrollBottom",function(){return re(t),D().notifyScrollBottom()})("contentScroll",function(a){return re(t),D().contentScroll.emit(a)}),x(),T(3,Ugt,7,18,"div",16),Ge()}if(2&i){var e=D();k(1),y("ngIf",!e.hideHeader),k(1),y("data",e.view)("rowHeight",e.rowHeight)("detailRowHeight",e.detailRowHeight)("total",e.totalCount)("take",e.pageSize)("groups",e.group)("groupable",e.groupable)("skip",e.skip)("trackBy",e.trackBy)("columns",e.columnsContainer)("selectable",e.selectable)("filterable",e.filterable)("detailTemplate",e.detailTemplate)("noRecordsTemplate",e.noRecordsTemplate)("rowClass",e.rowClass)("rowSticky",e.rowSticky)("loading",e.loading)("isVirtual",e.isVirtual)("cellLoadingTemplate",null==e.cellLoadingTemplate?null:e.cellLoadingTemplate.templateRef)("loadingTemplate",null==e.loadingTemplate?null:e.loadingTemplate.templateRef)("virtualColumns",e.virtualColumns)("enableDrag",e.marqueeSelection),k(1),y("ngIf",e.showFooter)}}function Hgt(i,r){if(1&i&&z(0,"thead",42),2&i){var t=D(2);y("resizable",t.resizable)("scrollable",!1)("columns",t.visibleColumns)("totalColumnLevels",t.totalColumnLevels)("groups",t.group)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("sort",t.sort)("sortable",t.sortable)("filter",t.filter)("filterable",t.filterable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0")}}function Kgt(i,r){if(1&i&&z(0,"tfoot",43),2&i){var t=D(2);y("scrollable",!1)("logicalRowIndex",t.ariaRowCount)("groups",t.group)("columns",t.leafColumns)("detailTemplate",t.detailTemplate)}}function jgt(i,r){if(1&i&&(Ve(0),A(1,"table"),z(2,"colgroup",35),T(3,Hgt,1,15,"thead",39),z(4,"tbody",40),T(5,Kgt,1,5,"tfoot",41),x(),Ge()),2&i){var t=D();k(1),Qe("table-layout",t.resizable?"fixed":null),k(1),y("columns",t.leafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("ngIf",!t.hideHeader),k(1),y("isLoading",t.loading)("groups",t.group)("data",t.view)("skip",t.skip)("columns",t.leafColumns)("selectable",t.selectable)("filterable",t.filterable)("noRecordsTemplate",t.noRecordsTemplate)("detailTemplate",t.detailTemplate)("showGroupFooters",t.showGroupFooters)("trackBy",t.trackBy)("rowClass",t.rowClass)("enableDrag",t.marqueeSelection),k(1),y("ngIf",t.showFooter)}}function Wgt(i,r){1&i&&z(0,"div",44),2&i&&y("loadingTemplate",D().loadingTemplate)}function $gt(i,r){if(1&i){var t=Me();A(0,"kendo-pager",45),Q("pageChange",function(a){return re(t),D().notifyPageChange("pager",a)}),x()}if(2&i){var e=D();y("tabindex",e.navigable?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("options",e.pageable),ie("role",e.navigable?"navigation":void 0)}}function qgt(i,r){1&i&&z(0,"kendo-grid-toolbar",46)}function Xgt(i,r){if(1&i){var t=Me();A(0,"span",4),te(1),x(),A(2,"kendo-grid-columnlist",5),Q("apply",function(a){return re(t),D().onApply(a)})("columnChange",function(a){return re(t),D().onChange(a)}),x()}if(2&i){var e=D();k(1),at(e.localization.get("columns")),k(1),y("columns",e.columns)("applyText",e.localization.get("columnsApply"))("resetText",e.localization.get("columnsReset"))("autoSync",e.autoSync)("allowHideAll",e.allowHideAll)}}var Zgt=/^\s*$/,He=function(r){return null!=r},Sb=function(r){return null==r},cG=function(r){return Array.isArray(r)},hs=function(r){return!!r},Dr=function(r){return Sb(r)||Zgt.test(r)},HT=function(r){return xn(lt(r),r.changes)},wb=function(){return"undefined"==typeof document},dG=function(r){return"string"==typeof r},ihe=function(r){return"number"==typeof r&&!isNaN(r)},hG=function(r){return dG(r)&&!Dr(r)&&r.startsWith("{0:")?r.slice(3,r.length-1):r},Db=function(r){return function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:this.activeRow,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.activeCol,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.activate(t,e,n)&&(this.virtualRow=t,this.virtualCol=e)}},{key:"activate",value:function(t,e,n){if(!n&&this.isActiveRange(t,e))return!1;var a=this.activeCol,o=this.activeRow;return this.activeCol=e,this.activeRow=t,this.changes.next({colIndex:e,prevColIndex:a,prevRowIndex:o,rowIndex:t}),!0}},{key:"isActiveRange",value:function(t,e){if(this.activeRow!==t)return!1;var n=this.cell,a=this.model.cellRange(n),o=a.start,s=a.end;return!Boolean(n)||o<=e&&e<=s}},{key:"assume",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.activeRow,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.activeCol;this.virtualRow=t,this.virtualCol=e,this.activeCol=e,this.activeRow=t}},{key:"announce",value:function(){this.changes.next({colIndex:this.activeCol,prevColIndex:this.activeCol,prevRowIndex:this.activeRow,rowIndex:this.activeRow})}},{key:"activateVirtualCell",value:function(t){var e=this.model.rowRange(t),n=this.model.cellRange(t),a=this.activeCol,o=this.activeRow;if(e.start<=o&&o<=e.end&&n.start<=a&&a<=n.end)return this.activeRow=t.rowIndex,this.activeCol=t.colIndex,!0}},{key:"isActive",value:function(t,e){return this.activeCol===e&&this.activeRow===t}},{key:"moveUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetRow(-t)}},{key:"moveDown",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetRow(t)}},{key:"moveLeft",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetCol(-t)}},{key:"moveRight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetCol(t)}},{key:"lastCellIndex",value:function(t){return this.metadata.columns.leafColumnsToRender.length-1+(!this.metadata.hasDetailTemplate||t&&t.groupItem?0:1)}},{key:"offsetCol",value:function(t){var e=this.model.findRow(this.virtualRow),n=this.lastCellIndex(e),a=this.virtualCol;this.virtualCol=Math.max(0,Math.min(a+t,n));var o=this.virtualCol,s=this.virtualRow,l=this.model.findCell(this.virtualCol,e);if(!l&&this.metadata.virtualColumns)return this.activate(s,o);if(l.colSpan>1&&l.colIndex<=a&&a0?Math.min(l.colIndex+l.colSpan,n):Math.max(0,l.colIndex+t);var u=this.model.findCell(o,e);this.virtualCol=l!==u?(l=u).colIndex:a}return this.activate(l.rowIndex,l.colIndex)}},{key:"offsetRow",value:function(t){var e=this.virtualCol;if(this.metadata&&this.metadata.isVirtual){var n=this.metadata.maxLogicalRowIndex,a=Math.max(0,Math.min(this.activeRow+t,n));this.metadata.hasDetailTemplate&&!this.model.findRow(a)&&(a=t>0?a+1:a-1,a=Math.max(0,Math.min(a,n))),this.metadata.hasDetailTemplate&&a===n&&this.model.lastRow.index!==n&&a--;var o=this.model.findRow(a);if(o){var s=this.model.findCell(this.virtualCol,o);s.rowIndex<=this.virtualRow&&t>0&&s.rowSpan>1&&(s=this.model.findCell(this.virtualCol,this.model.findRow(s.rowIndex+s.rowSpan-1+t))),a=s.rowIndex,e=s.colIndex}return this.virtualRow=a,this.activate(a,e)}var l=this.model.findRow(this.virtualRow+t)||this.model.nextRow(this.virtualRow,t);if(!l)return!1;var u=this.model.findCell(this.virtualCol,l);return u&&u.rowIndex<=this.virtualRow&&t>0&&u.rowSpan>1&&(u=this.model.findCell(this.virtualCol,this.model.findRow(u.rowIndex+u.rowSpan-1+t))),!u&&this.metadata.virtualColumns?this.activate(this.virtualRow+t,this.virtualCol):(this.virtualRow=u.rowIndex,this.activate(this.virtualRow,u.colIndex))}}]),i}(),ahe=function(){function i(){p(this,i),this.count=0,this.items={}}return v(i,[{key:"first",get:function(){var t;if(this.count>0)return this.forEach(function(e){return t=e,!0}),t}},{key:"last",get:function(){if(this.count>0){var t=Object.keys(this.items);return this.items[t[t.length-1]]}}},{key:"removeItem",value:function(t){this.items[t]&&(delete this.items[t],this.count--)}},{key:"setItem",value:function(t,e){this.items[t]||this.count++,this.items[t]=e}},{key:"getItem",value:function(t){return this.items[t]}},{key:"toArray",value:function(){var t=[];return this.forEach(function(e){t.push(e)}),t}},{key:"forEach",value:function(t){for(var e in this.items)if(this.items.hasOwnProperty(e)&&t(this.items[e]))return this.items[e]}},{key:"find",value:function(t){return this.forEach(t)}}]),i}(),omt=function(){function i(){p(this,i),this.rows=new ahe}return v(i,[{key:"firstRow",get:function(){return this.rows.first}},{key:"lastRow",get:function(){return this.rows.last}},{key:"registerCell",value:function(t){var e=this.rows.getItem(t.logicalRowIndex);if(e){var n=t.logicalColIndex,a={uid:t.uid,colIndex:n,rowIndex:e.index,colSpan:t.colSpan,rowSpan:t.rowSpan,detailExpandCell:t.detailExpandCell,dataItem:e.dataItem,dataRowIndex:e.dataRowIndex,focusGroup:t.focusGroup};return e.cells.setItem(n,a),t.groupItem&&(e.groupItem=t.groupItem),a}}},{key:"unregisterCell",value:function(t,e,n){var a=this.rows.getItem(e);if(a){var o=a.cells.getItem(t);o&&o.uid===n.uid&&a.cells.removeItem(t)}}},{key:"registerRow",value:function(t){var e={uid:t.uid,index:t.logicalRowIndex,dataItem:t.dataItem,dataRowIndex:t.dataRowIndex,cells:new ahe};this.rows.setItem(t.logicalRowIndex,e)}},{key:"updateRow",value:function(t){var e=this.rows.getItem(t.logicalRowIndex);e&&Object.assign(e,{dataItem:t.dataItem,dataRowIndex:t.dataRowIndex})}},{key:"unregisterRow",value:function(t,e){var n=this.rows.getItem(t);n&&n.uid===e.uid&&this.rows.removeItem(t)}},{key:"cellRange",value:function(t){return t?{start:t.colIndex,end:t.colIndex+(t.colSpan||1)-1}:{}}},{key:"rowRange",value:function(t){return t?{start:t.rowIndex,end:t.rowIndex+(t.rowSpan||1)-1}:{}}},{key:"nextRow",value:function(t,e){var n=this.rows.toArray(),a=this.rows.getItem(t),o=n.indexOf(a);return n[o+e]}},{key:"findRow",value:function(t){return this.rows.getItem(t)}},{key:"findCell",value:function(t,e){if(e){for(var n=e.index,a=e.cells.getItem(t),o=n;!a&&e;)e=this.rows.getItem(o),a=this.rowCell(t,e),o--;if(a&&n<=e.index+(a.rowSpan||1)-1)return a}}},{key:"rowCell",value:function(t,e){if(e&&e.cells.count){for(var a,n=e.cells.first,o=t;!a&&o>=n.colIndex;)a=e.cells.getItem(o),o--;if(a&&t<=a.colIndex+(a.colSpan||1)-1)return a}}}]),i}(),smt=/^(?:a|input|select|option|textarea|button|object)$/i,vG={},ohe=function(r){return String(r).trim().split(" ")},Rv=function(r,t){var e=ohe(t);return Boolean(ohe(r.className).find(function(n){return e.indexOf(n)>=0}))},Hu=function(r){return function(t){return Rv(t,r)}},Ta=function(r){return vG[r]||(vG[r]=function(t){return String(t.nodeName).toLowerCase()===r.toLowerCase()}),vG[r]},Ga=function(r,t){for(;r&&!t(r);)r=r.parentNode;return r},pG=function(r,t,e){for(;r&&r!==e&&!t(r);)r=r.parentNode;if(r!==e)return r},gG=function(r){var t=r.getBoundingClientRect();return(t.width>0&&t.height>0||0!==t.x&&0!==t.y)&&"hidden"!==window.getComputedStyle(r).visibility},she=function(r){if(!r.tagName)return!1;var t=r.tagName.toLowerCase(),e=Boolean(r.getAttribute("tabIndex"));return!r.disabled&&smt.test(t)||e},Eb=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!she(r))return!1;var e=!t||gG(r),n="true"===r.getAttribute("aria-hidden"),a=r.getAttribute("tabIndex");return e&&!n&&"-1"!==a},Ku=function i(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(r){if(e&&t(r))return r;for(r=r.firstChild;r;){if(1===r.nodeType){var n=i(r,t);if(n)return n}r=r.nextSibling}}},umt=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=null;return Ku(r,function(a){return t(a)&&(n=a),!1},e),n},lhe=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ku(r,function(e){return Eb(e,t)},!1)},ju=function(){function i(){p(this,i),this.changes=new Ot,this.pageChange=new Ot}return v(i,[{key:"currentPage",get:function(){return this.skip/this.pageSize}},{key:"notifyChanges",value:function(t){this.total=t.total,this.pageSize=t.pageSize,this.skip=t.skip,this.changes.next(t)}},{key:"changePage",value:function(t){this.pageChange.next({skip:t*this.pageSize,take:this.pageSize})}},{key:"changePageSize",value:function(t){this.pageChange.next({skip:0,take:t})}},{key:"nextPage",value:function(){var t=this.currentPage+1;t*this.pageSize=0&&this.changePage(t)}}]),i}(),WT=function(){var i=function(){function r(){p(this,r),this.requests=new Ot}return v(r,[{key:"scrollTo",value:function(e){this.requests.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),mG=function i(r){return He(r)?{group:r.data,groupIndex:r.index,parentGroup:i(r.parentGroup)}:null},Fm=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.rowState=new Set}return v(r,[{key:"reset",value:function(){this.rowState.clear()}},{key:"ngOnDestroy",value:function(){this.reset()}},{key:"isExpanded",value:function(e){return this.userCallback?this.userCallback(e):!this.rowState.has(e.groupIndex)}},{key:"isInExpandedGroup",value:function(e){for(var n=!0;e&&n;)n=this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:mG(e.parentGroup)}),e=e.parentGroup;return n}},{key:"toggleRow",value:function(e){var n=mG(e.parentGroup),a=!this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:n});this.changes.next({group:e.data,expand:a,groupIndex:e.index,parentGroup:n}),!this.userCallback&&(a?this.rowState.delete(e.index):this.rowState.add(e.index))}},{key:"expandChildren",value:function(e){var n=this;this.rowState.forEach(function(a){return function(r,t){return t!==r&&r.startsWith(t)}(a,e)&&n.rowState.delete(a)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Ov=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),vmt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Ov),pmt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Ov),Tb=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.rowState=new Set}return v(r,[{key:"ngOnDestroy",value:function(){this.rowState.clear()}},{key:"isExpanded",value:function(e,n){return this.userCallback?this.userCallback({index:e,dataItem:n}):this.rowState.has(e)}},{key:"toggleRow",value:function(e,n){this.isExpanded(e,n)?this.collapseRow(e,n):this.expandRow(e,n)}},{key:"expandRow",value:function(e,n){!this.emitEvent({dataItem:n,index:e,expand:!0})&&!this.userCallback&&this.rowState.add(e)}},{key:"collapseRow",value:function(e,n){!this.emitEvent({dataItem:n,index:e,expand:!1})&&!this.userCallback&&this.rowState.delete(e)}},{key:"emitEvent",value:function(e){var n=new(e.expand?pmt:vmt)(e);return this.changes.next(n),n.isDefaultPrevented()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),_G=new Dt("focus-root-initial-active-state"),Eh=function(){var i=function(){function r(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,r),this.active=t,this.groups=new Set}return v(r,[{key:"registerGroup",value:function(e){this.active&&this.groups.add(e)}},{key:"unregisterGroup",value:function(e){this.active&&this.groups.delete(e)}},{key:"activate",value:function(){this.active&&this.groups.forEach(function(e){return e.activate()})}},{key:"deactivate",value:function(){this.active&&this.groups.forEach(function(e){return e.deactivate()})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(_G,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),gmt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).action="cellClose",Object.assign(Xe(n),e),n}return v(t)}(Ov),Iv=function(r){return-1===r||void 0===r},Pl=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.changes=new O,this.editedIndices=[],this.keepEditCell=!1,this.closingCell=!1,this.changedSource=new Ot,this.changed=this.changedSource.asObservable().pipe(Nn(function(){return e.ngZone.onStable.asObservable().pipe(It(1))}))}return v(r,[{key:"editRow",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.editedIndices.push({index:e,group:n}),this.onChanged()}},{key:"addRow",value:function(e){this.newItemGroup={group:e},this.onChanged()}},{key:"editCell",value:function(e,n,a){Iv(e)||!1===n.editable||!n.editTemplate&&!n.field||(this.preventCellClose(),this.closeCell()||(this.editRow(e,a),this.column=n,this.onChanged()))}},{key:"isEditing",value:function(){return this.editedIndices.length>0}},{key:"isEditingCell",value:function(){return this.isEditing()&&void 0!==this.column}},{key:"hasNewItem",get:function(){return He(this.newItemGroup)}},{key:"newDataItem",get:function(){return this.hasNewItem?this.newItemGroup.group.value:{}}},{key:"close",value:function(e){Iv(e)?this.newItemGroup=void 0:(this.editedIndices=this.editedIndices.filter(function(r){return function(t){return t.index!==r}}(e)),delete this.column,this.onChanged())}},{key:"closeCell",value:function(e){var n=this;if(this.column&&!this.closingCell)return this.ngZone.run(function(){var a=n.editedIndices[0],l=new gmt({column:n.column,formGroup:a.group,originalEvent:e,rowIndex:a.index});return n.closingCell=!0,n.changes.emit(l),n.closingCell=!1,l.isDefaultPrevented()||n.cancelCell(),l.isDefaultPrevented()})}},{key:"cancelCell",value:function(){this.column&&(this.editedIndices=[],delete this.column,this.onChanged())}},{key:"shouldCloseCell",value:function(){return this.column&&!this.keepEditCell}},{key:"preventCellClose",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){window.clearTimeout(e.keepCellTimeout),e.keepEditCell=!0,e.keepCellTimeout=window.setTimeout(function(){e.keepEditCell=!1},0)})}},{key:"context",value:function(e){return Iv(e)?this.newItemGroup:this.findByIndex(e)}},{key:"columnContext",value:function(e,n){return Iv(e)?this.newItemGroup:this.column&&n!==this.column?void 0:this.findByIndex(e)}},{key:"isEdited",value:function(e){return!(!Iv(e)||!He(this.newItemGroup))||!this.column&&He(this.findByIndex(e))}},{key:"hasEdited",value:function(e){return He(this.context(e))}},{key:"isEditedColumn",value:function(e,n){return!(!this.column||this.column!==n)&&He(this.findByIndex(e))}},{key:"beginEdit",value:function(e){this.changes.emit({action:"edit",rowIndex:e})}},{key:"beginAdd",value:function(){this.changes.emit({action:"add"})}},{key:"endEdit",value:function(e){var n=this.context(e);this.changes.emit({action:"cancel",rowIndex:e,formGroup:n.group,isNew:Iv(e)})}},{key:"save",value:function(e){var n=this.context(e);this.changes.emit({action:"save",rowIndex:e,formGroup:n.group,isNew:Iv(e)})}},{key:"remove",value:function(e){this.changes.emit({action:"remove",rowIndex:e})}},{key:"findByIndex",value:function(e){return this.editedIndices.find(function(r){return function(t){return t.index===r}}(e))}},{key:"onChanged",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.changedSource.next()})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),ymt=Ta("button"),kmt=Ta("input"),Cmt=/(button|checkbox|color|file|radio|reset|submit)/i,wmt=function(){function i(r,t){p(this,i),this.renderer=t,this.element=r.nativeElement,this.focusable=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ku(r,function(e){return Eb(e,t)})}(this.element,!1)||this.element}return v(i,[{key:"enabled",get:function(){return this.focusable&&!this.focusable.disabled}},{key:"visible",get:function(){return this.focusable&&gG(this.focusable)}},{key:"isNavigable",value:function(){return this.canFocus()&&function(r){return!r.disabled&&(ymt(r)||function(r){return kmt(r)&&Cmt.test(r.type)}(r))}(this.element)}},{key:"toggle",value:function(t){this.renderer.setAttribute(this.focusable,"tabIndex",t?"0":"-1")}},{key:"focus",value:function(){this.focusable&&this.focusable.focus()}},{key:"canFocus",value:function(){return this.visible&&this.enabled}},{key:"hasFocus",value:function(){var t=this;return document.activeElement!==this.element&&Ga(document.activeElement,function(e){return e===t.element})}}]),i}(),td=new Dt("grid-cell-context"),Dmt={},co=function(){var i=function(){function r(t,e,n){p(this,r),this.cellContext=t,this.hostElement=e,this.renderer=n,this.active=!0,this._enabled=!0,this.cellContext&&(this.group=this.cellContext.focusGroup),this.group&&this.group.registerElement(this)}return v(r,[{key:"enabled",get:function(){return this._enabled},set:function(e){(e=""===e||Boolean(e))!==this.enabled&&(this._enabled=e,this.element&&this.element.toggle(this.active&&e))}},{key:"ngAfterViewInit",value:function(){this.element||(this.element=new wmt(this.hostElement,this.renderer)),this.group&&this.element&&this.toggle(this.group.isActive)}},{key:"ngOnDestroy",value:function(){this.group&&this.group.unregisterElement(this)}},{key:"toggle",value:function(e){this.element&&e!==this.active&&(this.element.toggle(this.enabled&&e),this.active=e)}},{key:"canFocus",value:function(){return this.enabled&&this.element&&this.element.canFocus()}},{key:"isNavigable",value:function(){return this.enabled&&this.element&&this.element.isNavigable()}},{key:"focus",value:function(){this.enabled&&this.element&&this.element.focus()}},{key:"hasFocus",value:function(){return this.enabled&&this.element&&this.element.hasFocus()}},{key:"registerElement",value:function(e){this.element=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(td,12),m(_e),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoGridFocusable",""],["","kendoGridEditCommand",""],["","kendoGridRemoveCommand",""],["","kendoGridSaveCommand",""],["","kendoGridCancelCommand",""],["","kendoGridSelectionCheckbox",""]],inputs:{enabled:["kendoGridFocusable","enabled"]}}),i}(),Emt=function(r,t){return Ga(r,Ta("kendo-grid"))===t},Tmt=Ta("th"),Amt=Ta("td"),xmt=Ta(".k-grid-footer td"),uhe=function(r){return Amt(r)||Tmt(r)||xmt(r)},yG=function(r,t){var e=function(r,t){for(var e=Ga(r,uhe);e&&!Emt(e,t);)e=Ga(e.parentElement,uhe);return e}(r,t),n=Ga(e,Ta("tr"));if(e&&n){var a=n.getAttribute("aria-rowindex");a=a?parseInt(a,10)-1:null;var o=e.getAttribute("aria-colindex");if(o=o?parseInt(o,10)-1:null,null!==a&&null!==o)return{colIndex:o,rowIndex:a,element:e}}},che=function(r){return function(r){return r===J.ArrowLeft||r===J.ArrowRight||r===J.ArrowUp||r===J.ArrowDown}(r)||r===J.PageUp||r===J.PageDown||r===J.Home||r===J.End},Omt=Ta("input"),dhe=function(){function i(r,t){p(this,i),this.firstItemIndex=r,this.lastItemIndex=t}return v(i,[{key:"containsRow",value:function(t){return t<0||t>=this.firstItemIndex&&t<=this.lastItemIndex}},{key:"intersects",value:function(t,e){return t<=this.firstItemIndex&&this.lastItemIndex<=e||this.firstItemIndex<=t&&t<=this.lastItemIndex||this.firstItemIndex<=e&&e<=this.lastItemIndex}}]),i}(),Ua=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.zone=t,this.domEvents=e,this.pagerContextService=n,this.scrollRequestService=a,this.groupsService=o,this.detailsService=s,this.focusRoot=l,this.editService=u,this.cd=c,this.localization=d,this.focusableParent=h,this.cellKeydown=new O,this.activeRowIndex=0,this.alive=!1,this.active=!0,this.mode=0,this.model=new omt,this.cursor=new amt(this.model),this.changes=this.cursor.changes}return v(r,[{key:"metadata",get:function(){return this.meta},set:function(e){this.meta=e,this.cursor.metadata=e}},{key:"enabled",get:function(){return this.alive}},{key:"activeCell",get:function(){if(0!==this.mode)return this.cursor.cell}},{key:"activeRow",get:function(){if(0!==this.mode)return Object.assign({},this.cursor.row,{cells:this.cursor.row.cells.toArray()})}},{key:"activeDataRow",get:function(){return Math.max(0,this.activeRowIndex-this.meta.headerRows)}},{key:"init",value:function(e){var n=this;this.alive=!0,this.focusRoot.active=!0,this.metadata=e;var a=function(){for(var u=arguments.length,c=new Array(u),d=0;do&&this.cursor.reset(0,0)}}},{key:"isCellFocusable",value:function(e){return this.alive&&this.active&&2!==this.mode&&this.cursor.isActive(e.logicalRowIndex,e.logicalColIndex)}},{key:"isCellFocused",value:function(e){return 1===this.mode&&this.isCellFocusable(e)}},{key:"navigateTo",value:function(e){if(this.alive){var n=yG(e,this.meta.gridElement.nativeElement);if(n){var a=this.mode,o=function(r,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!Ga(t,function(o){return o===r});if(n)return!1;var a=Ga(t,function(o){return o===t});return a&&(e||a!==r)}(n.element,document.activeElement),s=2===this.mode&&this.activeRowIndex===n.rowIndex&&e!==n.element;if(o)this.mode=2,this.cursor.reset(n.rowIndex,n.colIndex),this.activateRow();else if(!s){this.mode=1,this.deactivateElements();var l=this.cursor.isActive(n.rowIndex,n.colIndex);1===a&&l||this.cursor.reset(n.rowIndex,n.colIndex)}}}}},{key:"tryFocus",value:function(e){this.activateElements();var n=lhe(e);if(n){var a=yG(n,this.meta.gridElement.nativeElement);a&&(this.cursor.reset(a.rowIndex,a.colIndex),this.deactivateElements(),this.enterCell()),n.focus()}else this.deactivateElements();return!!n}},{key:"needsViewport",value:function(){return this.meta&&this.meta.isVirtual}},{key:"setViewport",value:function(e,n){if(this.viewport=new dhe(e,n),this.meta&&this.meta.isVirtual&&this.activeDataRow>-1){var a=this.activeDataRow,s=a-n;e-a>0?this.cursor.reset(e+this.meta.headerRows):s>0&&this.cursor.reset(n-this.meta.headerRows)}}},{key:"setColumnViewport",value:function(e,n){this.columnViewport=new dhe(e,n)}},{key:"focusCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.mode=1,this.cursor.reset(e,n),this.activeCell}},{key:"focusCellByElement",value:function(e){var n=yG(e,this.meta.gridElement.nativeElement);if(n)return this.focusCell(n.rowIndex,n.colIndex)}},{key:"focusNextCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.focusAdjacentCell(!0,e)}},{key:"focusPrevCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.focusAdjacentCell(!1,e)}},{key:"toggle",value:function(e){this.active=e,this.cursor.announce()}},{key:"hasFocus",value:function(){return 1===this.mode||2===this.mode}},{key:"autoFocusCell",value:function(e,n){return!this.meta.virtualColumns||n=this.meta.headerRows&&this.viewport&&!this.viewport.containsRow(n)&&n>-1&&this.scrollRequestService.scrollTo({row:n}),this.meta.virtualColumns&&e.colIndex>=this.meta.columns.lockedLeafColumns.length){var a=this.activeCell,o=this.model.cellRange(a),s=o.start,l=o.end;a||(this.virtualCell=!0),(!a&&0!==this.mode||a&&!this.columnViewport.intersects(s,l))&&this.scrollRequestService.scrollTo({column:e.colIndex-(this.metadata.hasDetailTemplate?1:0)})}}},{key:"onFocusOut",value:function(e){this.mode=gG(e.target)?0:1,this.deactivateElements(),this.cursor.announce()}},{key:"onWindowBlur",value:function(){this.mode=0,this.deactivateElements(),this.cursor.announce()}},{key:"onKeydown",value:function(e){1===this.mode?this.onCursorKeydown(e):2===this.mode&&this.onContentKeydown(e)}},{key:"onTabout",value:function(){this.cursor.cell.focusGroup.isNavigable()||(this.leaveCell(),this.cursor.reset())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Mv),oe(ju),oe(WT),oe(Fm),oe(Tb),oe(Eh),oe(Pl),oe(nt),oe(Y),oe(co,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Lm=function(){var i=function(){function r(t,e,n){p(this,r),this.domEvents=t,this.localDataChangesService=e,this.navigationService=n,this.changes=new O,this.lastSelectionStartIndex=0,this.currentSelection=[],this.selectAllChecked=!1,this.active=!1,this.dragging=!1,this.addSubscriptions()}return v(r,[{key:"enableMarquee",get:function(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;var n=this.settings.selectable,a="object"==typeof n&&He(n)&&"multiple"===n.mode&&!1!==n.enabled&&!n.checkboxOnly&&n.drag;return this.active&&a}},{key:"init",value:function(e){if(this.settings=e,this.currentSelection=[],e.selectable&&!1!==e.selectable.enabled){var n=this.getIterator();this._selectAllState=!0;for(var a=n.next();!a.done;){if(a.value&&"data"===a.value.type){var o={dataItem:a.value.data,index:a.value.index};e.rowSelected(o)?this.currentSelection[a.value.index]=o:this._selectAllState=void 0}a=n.next()}0===this.currentSelection.length&&(this._selectAllState=!1)}}},{key:"isSelected",value:function(e){if(this.settings&&this.active)return this.options.enabled&&He(this.currentSelection[e])}},{key:"handleClick",value:function(e,n){if(this.dragging)this.dragging=!1;else{var a,o=n.ctrlKey||n.metaKey;"single"===this.options.mode&&o&&this.isSelected(e.index)?a=this.toggle(e):"multiple"===this.options.mode&&(o&&!n.shiftKey?a=this.toggle(e):n.shiftKey&&(a=this.addAllTo(e,o))),He(a)||(a=this.select(e),this.currentSelection[e.index]={dataItem:e.data,index:e.index}),(a.selectedRows.length||a.deselectedRows.length)&&(a.ctrlKey=o,a.shiftKey=n.shiftKey,this.changes.emit(a))}}},{key:"toggle",value:function(e){var n=[],a=[];this.lastSelectionStartIndex=e.index;var o={dataItem:e.data,index:e.index};return this.isSelected(e.index)?a.push(o):n.push(o),{deselectedRows:a,selectedRows:n}}},{key:"toggleByIndex",value:function(e){var n=this.getIterator();this.selectAllChecked&&this.isSelected(e)&&(this.selectAllChecked=!1);for(var a=n.next();!a.done;){if(a.value&&"data"===a.value.type&&a.value.index===e){var o={data:a.value.data,index:a.value.index};return this.isSelected(e)||"multiple"===this.options.mode?this.toggle(o):this.select(o)}a=n.next()}}},{key:"select",value:function(e){var n=[],a=[];return this.lastSelectionStartIndex=e.index,this.isSelected(e.index)||a.push({dataItem:e.data,index:e.index}),this.currentSelection.forEach(function(o){o.index!==e.index&&n.push(o)}),{deselectedRows:n,selectedRows:a}}},{key:"deselect",value:function(e){for(var n=this.getIterator(),a=n.next();!a.done;){if(a.value&&"data"===a.value.type&&a.value.data===e){var o={dataItem:a.value.data,index:a.value.index};this.isSelected(o.index)&&this.changes.emit({ctrlKey:!1,deselectedRows:[o],selectedRows:[]})}a=n.next()}}},{key:"addAllTo",value:function(e,n){for(var a=[],o=[],s=Math.min(this.lastSelectionStartIndex,e.index),l=Math.max(this.lastSelectionStartIndex,e.index),u=this.getIterator(),c=u.next();!c.done;){if(c.value&&"data"===c.value.type){var d=c.value.index,h={dataItem:c.value.data,index:d};(dl)&&this.isSelected(d)&&!n&&o.push(h),d>=s&&d<=l&&!this.isSelected(d)&&a.push(h)}c=u.next()}return{deselectedRows:o,selectedRows:a}}},{key:"updateAll",value:function(e){this.selectAllChecked=e;for(var n=[],a=[],o=this.getIterator(),s=o.next();!s.done;){if(s.value&&"data"===s.value.type){var l=s.value.index,u={dataItem:s.value.data,index:l};this.isSelected(l)&&!e&&a.push(u),!this.isSelected(l)&&e&&n.push(u)}s=o.next()}(n.length||a.length)&&this.changes.emit({ctrlKey:!0,deselectedRows:a,selectedRows:n,shiftKey:!0})}},{key:"selectRange",value:function(e,n){for(var a=[],o=[],s=Math.min(e,n),l=Math.max(e,n),u=this.getIterator(),c=u.next();!c.done;){if(c.value&&"data"===c.value.type){var d=c.value.index,h={dataItem:c.value.data,index:d};(dl)&&this.isSelected(d)&&o.push(h),d>=s&&d<=l&&!this.isSelected(d)&&a.push(h)}c=u.next()}return{deselectedRows:o,selectedRows:a}}},{key:"selectAllState",get:function(){return this._selectAllState}},{key:"selected",get:function(){return this.currentSelection.map(function(e){return e.index}).filter(function(e){return"number"==typeof e})}},{key:"options",get:function(){var e={checkboxOnly:!1,enabled:!0,mode:"multiple"};return He(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}},{key:"ngOnDestroy",value:function(){this.removeSubscriptions()}},{key:"targetArgs",value:function(){return{index:this.mouseDownEventArgs.rowIndex,dataItem:this.mouseDownEventArgs.dataItem}}},{key:"addSubscriptions",value:function(){var e=this;this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(function(n){e.options.enabled&&!e.options.checkboxOnly&&"contextmenu"!==n.type&&e.active&&e.handleClick({index:n.rowIndex,data:n.dataItem},n.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(function(n){e.mouseDownEventArgs=n,e.options.enabled&&(!e.options.mode||"multiple"===e.options.mode)&&!e.options.checkboxOnly&&n.originalEvent.shiftKey&&e.active&&(n.originalEvent.preventDefault(),e.navigationService.focusCellByElement(n.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(function(n){e.active&&He(n.action)&&"remove"===n.action&&e.deselect(n.item)}))}},{key:"getIterator",value:function(){var e=this.settings.view.accessor();if(e)return e[zu]()}},{key:"removeSubscriptions",value:function(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Mv),oe(ed),oe(Ua))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),$T=function(){var i=function(){function r(t,e,n){p(this,r),this.domEvents=t,this.localDataChangesService=e,this.navigationService=n,this.changes=new O,this.mouseUpEvent=new O,this.currentSelection=[],this.active=!1,this.dragging=!1,this.dragSelectDeselect=!1,this.lastSelectionItem={itemKey:0,columnKey:0},this.lastSelectionItemRowIndex=0,this.lastSelectionItemColIndex=0,this.addSubscriptions()}return v(r,[{key:"enableMarquee",get:function(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;var n=this.settings.selectable,a="object"==typeof n&&He(n)&&"multiple"===n.mode&&n.cell&&!1!==n.enabled&&n.drag;return this.active&&a}},{key:"init",value:function(e){var n=this;if(this.settings=e,this.currentSelection=[],e.selectable&&!1!==e.selectable.enabled)for(var a=this.getIterator(),o=a.next();!o.done;)o.value&&"data"===o.value.type&&function(){var s={dataItem:o.value.data,index:o.value.index};e.columns.forEach(function(l){var u=e.cellSelected(s,l,l.leafIndex);u.selected&&n.currentSelection.push(u.item)})}(),o=a.next()}},{key:"isCellSelected",value:function(e,n){if(this.settings&&this.active){var a=this.settings.cellSelected({dataItem:e.data,index:e.index},n,n.leafIndex);return this.options.enabled&&a.selected}return!1}},{key:"handleClick",value:function(e,n){if(this.dragging)this.dragging=!1;else{var a,o=n.ctrlKey||n.metaKey;if("single"===this.options.mode&&o&&this.isCellSelected(e,e.column))a=this.toggle(e);else if("multiple"===this.options.mode)if(o&&!n.shiftKey)a=this.toggle(e);else if(n.shiftKey){var s=Math.min(this.lastSelectionItemRowIndex,e.index),l=Math.min(this.lastSelectionItemColIndex,e.column.leafIndex),u=Math.max(this.lastSelectionItemRowIndex,e.index),c=Math.max(this.lastSelectionItemColIndex,e.column.leafIndex);a=this.selectRange(s,l,u,c)}He(a)||(a=this.select(e),this.currentSelection=[this.lastSelectionItem]),(a.selectedCells.length||a.deselectedCells.length)&&(a.ctrlKey=o,a.shiftKey=n.shiftKey,this.changes.emit(a))}}},{key:"toggle",value:function(e){var n=[],a=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:e.data,index:e.index},e.column,e.column.leafIndex).item,this.lastSelectionItemRowIndex=e.index,this.lastSelectionItemColIndex=e.column.leafIndex,this.isCellSelected(e,e.column)?a.push(this.lastSelectionItem):n.push(this.lastSelectionItem),{deselectedCells:a,selectedCells:n}}},{key:"select",value:function(e){var n=this,a=[],o=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:e.data,index:e.index},e.column,e.column.leafIndex).item,this.lastSelectionItemRowIndex=e.index,this.lastSelectionItemColIndex=e.column.leafIndex,this.isCellSelected(e,e.column)||a.push(this.lastSelectionItem),this.currentSelection.forEach(function(s){(s.itemKey!==n.lastSelectionItem.itemKey||s.columnKey!==n.lastSelectionItem.columnKey)&&o.push(s)}),{deselectedCells:o,selectedCells:a}}},{key:"deselect",value:function(e){for(var s,n=this,a=this.getIterator(),o=a.next();!o.done;){if(o.value&&"data"===o.value.type&&o.value.data===e){s={dataItem:o.value.data,index:o.value.index};break}o=a.next()}if(s){var l=this.currentSelection.filter(function(c){var d=n.settings.cellSelected(s,null,null).item;return c.itemKey===d.itemKey});l.length&&this.changes.emit({ctrlKey:!1,deselectedCells:l,selectedCells:[]})}}},{key:"selectRange",value:function(e,n,a,o){for(var s=this,l=[],u=[],c=Math.min(e,a),d=Math.min(n,o),h=Math.max(e,a),f=Math.max(n,o),g=this.getIterator(),_=g.next();!_.done;)_.value&&"data"===_.value.type&&function(){var C=_.value.index,E={dataItem:_.value.data,index:C};s.settings.columns.forEach(function(M){var N=s.settings.cellSelected(E,M,M.leafIndex).item,G=s.isCellSelected(_.value,M),ve=c<=C&&C<=h&&d<=M.leafIndex&&M.leafIndex<=f;!ve&&G&&u.push(N),ve&&!G&&l.push(N)})}(),_=g.next();return{deselectedCells:u,selectedCells:l}}},{key:"options",get:function(){var e={checkboxOnly:!1,enabled:!0,mode:"multiple"};return He(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}},{key:"ngOnDestroy",value:function(){this.removeSubscriptions()}},{key:"addSubscriptions",value:function(){var e=this;this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(function(n){e.options.enabled&&!e.options.checkboxOnly&&"contextmenu"!==n.type&&e.active&&e.handleClick({index:n.rowIndex,data:n.dataItem,column:n.column},n.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(function(n){e.mouseDownEventArgs=n,e.options.enabled&&(!e.options.mode||"multiple"===e.options.mode)&&!e.options.checkboxOnly&&n.originalEvent.shiftKey&&e.active&&(n.originalEvent.preventDefault(),e.navigationService.focusCellByElement(n.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(function(n){e.active&&He(n.action)&&"remove"===n.action&&e.deselect(n.item)}))}},{key:"getIterator",value:function(){var e=this.settings.view.accessor();if(e)return e[zu]()}},{key:"removeSubscriptions",value:function(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Mv),oe(ed),oe(Ua))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hhe={topLeft:{x:2,y:2},topRight:{x:-2,y:2},bottomLeft:{x:2,y:-2},bottomRight:{x:-2,y:-2}},fhe=function(){var i=function(){function r(t,e,n,a){p(this,r),this.draggable=t,this.selection=e,this.cellSelection=n,this.domEvents=a,this.selectionStarted=!1}return v(r,[{key:"webkitUserSelection",get:function(){return this.cellSelection.enableMarquee||this.selection.enableMarquee?"none":null}},{key:"userSelection",get:function(){return this.cellSelection.enableMarquee||this.selection.enableMarquee}},{key:"ngOnInit",value:function(){this.subscriptions=this.draggable.kendoPress.subscribe(this.start.bind(this)),this.subscriptions.add(this.draggable.kendoDrag.subscribe(this.moveMarquee.bind(this)))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe(),this.clean()}},{key:"start",value:function(e){e.originalEvent.target.classList.contains("k-checkbox")?this.pressArgs=null:(this.pressArgs=e,this.pressTarget=null)}},{key:"moveMarquee",value:function(e){this.pressTarget||(this.pressTarget=this.cellSelection.active?this.cellSelection.mouseDownEventArgs:this.selection.mouseDownEventArgs);var n=this.pressArgs;if(n){if(!this.selectionStarted){if(!(Math.sqrt(Math.pow(e.pageX-n.pageX,2)+Math.pow(e.pageY-n.pageY,2))>5))return;this.selectionStarted=!0,this.dragEndSubscription=xn(this.domEvents.cellMouseup.pipe(It(1)),this.draggable.kendoRelease.pipe(Dd(1),It(1))).subscribe(this.endSelection.bind(this))}this.initMarquee();var o=this.marqueeElement,s=this.getMarqueeQuadrant(e.pageX,e.pageY,n.pageX,n.pageY),l=Math.min(e.pageX,n.pageX),u=Math.min(e.pageY,n.pageY),c=Math.abs(e.pageX-n.pageX),d=Math.abs(e.pageY-n.pageY);s&&(l+=hhe[s].x,u+=hhe[s].y),o.style.left="".concat(l,"px"),o.style.top="".concat(u,"px"),o.style.width="".concat(c,"px"),o.style.height="".concat(d,"px")}}},{key:"endSelection",value:function(e){("mouseup"===e.type||"touchend"===e.type)&&(this.cellSelection.active?(this.cellSelection.dragging=!0,this.cellSelection.changes.emit(this.cellSelection.selectRange(this.pressTarget.rowIndex,this.pressTarget.column.leafIndex,e.rowIndex,e.column.leafIndex))):this.selection.active&&(this.selection.dragging=!0,this.selection.changes.emit(this.selection.selectRange(this.pressTarget.rowIndex,e.rowIndex)))),this.clean()}},{key:"clean",value:function(){this.marqueeElement&&(document.body.removeChild(this.marqueeElement),this.marqueeElement=null),this.dragEndSubscription&&this.dragEndSubscription.unsubscribe(),this.dragEndSubscription=null,this.pressTarget=null,this.pressArgs=null,this.selectionStarted=!1,this.cellSelection.active?this.cellSelection.dragging=!1:this.selection.dragging=!1}},{key:"initMarquee",value:function(){this.marqueeElement||(this.marqueeElement=function(){var r=document.createElement("div");r.className="k-marquee";var t=document.createElement("div");return t.className="k-marquee-color",r.appendChild(t),r}(),document.body.appendChild(this.marqueeElement))}},{key:"getMarqueeQuadrant",value:function(e,n,a,o){var s=ea,u=no;return s&&u?"topLeft":s&&c?"bottomLeft":l&&u?"topRight":l&&c?"bottomRight":null}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o),m(Lm),m($T),m(Mv))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectionMarquee",""]],hostVars:4,hostBindings:function(t,e){2&t&&(Qe("-webkit-user-select",e.webkitUserSelection),ue("user-select-none",e.userSelection))}}),i}(),kG=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return p(this,t),(n=r.call(this,a)).ngZone=e,n}return v(t,[{key:"subscribe",value:function(n,a,o){var l,s=this,u=function(h){return null},c=function(){return null};return n&&"object"==typeof n?(l=function(h){s.ngZone.run(function(){return n.next(h)})},n.error&&(u=function(h){s.ngZone.run(function(){return n.error(h)})}),n.complete&&(c=function(){s.ngZone.run(function(){return n.complete()})})):(l=function(h){s.ngZone.run(function(){return n(h)})},a&&(u=function(h){s.ngZone.run(function(){return a(h)})}),o&&(c=function(){s.ngZone.run(function(){return o()})})),$(q(t.prototype),"subscribe",this).call(this,l,u,c)}}]),t}(O),Pmt={name:"@progress/kendo-angular-grid",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652253736,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Nv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCellTemplate",""]]}),i}(),CG=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupHeaderTemplate",""]]}),i}(),bG=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupHeaderColumnTemplate",""]]}),i}(),qT=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditTemplate",""]]}),i}(),SG=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupFooterTemplate",""]]}),i}(),wG=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridHeaderTemplate",""]]}),i}(),DG=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridFooterTemplate",""]]}),i}(),XT=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuTemplate",""]]}),i}(),Bmt=0,Bl=function(){var i=function(){function r(){p(this,r),this.prefix="k-grid".concat(Bmt++)}return v(r,[{key:"gridId",value:function(){return this.prefix}},{key:"cellId",value:function(e,n){return"".concat(this.prefix,"-r").concat(e,"c").concat(n)}},{key:"selectionCheckboxId",value:function(e){return"".concat(this.prefix,"-checkbox").concat(e)}},{key:"selectAllCheckboxId",value:function(){return"".concat(this.prefix,"-select-all")}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),EG=function(r){return r.isSpanColumn},vhe=function(r){return r.isCheckboxColumn},Ir=function(){var i=function(){function r(t,e){if(p(this,r),this.parent=t,this.matchesMedia=!0,this.orderIndex=0,this.isColumnGroup=!1,this.isSpanColumn=!1,this.resizable=!0,this.reorderable=!0,this.minResizableWidth=10,this._locked=!1,this.sticky=!1,this.lockable=!0,this.stickable=!0,this.columnMenu=!0,this.includeInChooser=!0,this.headerTemplates=new Ei,this.columnMenuTemplates=new Ei,this.idService=e,t&&e&&t.idService.gridId()===e.gridId()&&!function(r){return r.isColumnGroup||EG(r)}(t))throw new Error("Columns can be nested only inside ColumnGroupComponent")}return v(r,[{key:"leafIndex",get:function(){return this._leafIndex},set:function(e){this._leafIndex=e}},{key:"width",get:function(){return this._width},set:function(e){if("string"==typeof e){var n=this._width=parseInt(e,10);xt()&&console.warn('Expected numeric value for column width, but got a string "'.concat(e,'". Treating as ').concat(n,"px."))}else this._width=e}},{key:"locked",get:function(){return this._locked},set:function(e){this._locked=e}},{key:"level",get:function(){return this.parent&&EG(this.parent)?this.parent.level:this.parent?this.parent.level+1:0}},{key:"isLocked",get:function(){return this.parent?this.parent.isLocked:this.locked}},{key:"colspan",get:function(){return 1}},{key:"rowspan",value:function(e){return this.level0}}]),e}(Ir);return i.\u0275fac=function(t){return new(t||i)(m(Ir,13),m(Bl,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-span-column"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,Nv,4),he(n,qT,4),he(n,Pm,4)),2&t&&(P(a=B())&&(e.template=a),P(a=B())&&(e.editTemplate=a),P(a=B())&&(e.childColumns=a))},inputs:{editable:"editable",locked:"locked"},features:[de([{provide:Ir,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Wu=function(r){return r.reduce(function(t,e){return t.concat(ZT(e)?e.childrenArray:[e])},[])},ghe=function(r){return r.reduce(function(t,e){return t.concat(ZT(e)?[e].concat(e.childrenArray):[e])},[])},nd=function(r){return Wu(r).filter(function(t){return t.isVisible})},mhe=function(r){return function(t){return(t||[]).reduce(function(e,n){return e+(n[r]||0)},0)}},Gmt=mhe("width"),YT=mhe("colspan"),Umt=new RegExp("^[$A-Z_a-z][$A-Z_a-z0-9\\.]*$"),QT=function i(r){return r.reduce(function(t,e){return e.isColumnGroup?t=t.concat(i(function(r){return r.children.filter(function(t){return t!==r})}(e))):e.isSpanColumn?t=t.concat(e.childrenArray):t.push(e),t},[]).filter(function(t){return t.isVisible})},xG=function(r){for(var t=arguments.length,e=new Array(t>1?t-1:0),n=1;n",document.body.appendChild(i);var r=i.scrollLeft;i.scrollLeft=-1,RG=i.scrollLeft<0?i.scrollLeft:r,document.body.removeChild(i)}return RG}()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(nt))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),IG=function(r){return void 0!==r.items&&void 0!==r.field},qmt=function i(r){return r.reduce(function(t,e){return IG(e)?t.concat(i(e.items)):t.concat([e])},[])},Xmt=function(r,t){var e=r[0];return He(e)&&IG(e)?qmt(r)[t]:r[t]},Che=function(r,t){var e=t.footers,n=t.level,a=t.dataIndex,o=t.parentGroupIndex,s=t.groupIndex,l=t.parentGroup,u=r[0];return He(u)&&IG(u)?(function(r){return void 0!==r.offset&&void 0!==r.skipHeader}(u)&&(s=He(u.offset)?u.offset:s),new Jmt(r,e,n,a,o,s,l)):new Ymt(r,a,o,l)},Zmt=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,i),this.arr=r,this.idx=t,this.arr=r||[]}return v(i,[{key:zu,value:function(){return this}},{key:"next",value:function(){return this.idx1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(a){return a};p(this,i),this.dataIndex=t,this.resultMap=e;var n=r[zu];this._innerIterator=n?r[zu]():new Zmt(r)}return v(i,[{key:zu,value:function(){return this}},{key:"next",value:function(){return this.resultMap(this._innerIterator.next(),this.dataIndex++)}}]),i}(),Ymt=function(i){b(t,i);var r=S(t);function t(e,n,a,o){return p(this,t),r.call(this,e,n,function(s,l){return{done:s.done,value:{data:s.value,groupIndex:a,index:l,type:"data",group:o}}})}return v(t,[{key:"index",get:function(){return this.dataIndex}}]),t}(bhe),Jmt=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0;p(this,i),this.arr=r,this.outputFooters=t,this.level=e,this.dataIndex=n,this.parentIndex=a,this.groupIndex=o,this.parentGroup=s,this.currentGroupIndex="",this.arr=r||[],this._iterator=new bhe(this.arr,this.dataIndex)}return v(i,[{key:zu,value:function(){return this}},{key:"nextGroupItem",value:function(){return this.current=this._iterator.next().value,this._innerIterator=null,this.current?(this.currentGroupIndex=function(r,t){return"".concat(r&&r+"_").concat(t)}(this.parentIndex,this.groupIndex++),{done:!1,value:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}):(this.current=null,{done:!0,value:void 0})}},{key:"footerItem",value:function(){if(this.current){var t=this.current;return this.current=null,{done:!1,value:{data:t,groupIndex:this.currentGroupIndex,level:this.level,type:"footer",group:{data:t,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}}}return this.current=null,{done:!0,value:void 0}}},{key:"innerIterator",value:function(t){return this._innerIterator||(this._innerIterator=Che(t.items,{dataIndex:this.dataIndex,footers:this.outputFooters,level:this.level+1,parentGroupIndex:this.currentGroupIndex,parentGroup:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}})),this._innerIterator}},{key:"nextDataItem",value:function(t){var n=this.innerIterator(t).next();return He(n.value)&&!n.done&&"data"===n.value.type&&(this.dataIndex=n.value.index+1),n.done?void 0:n}},{key:"next",value:function(){return He(this.current)?this.nextDataItem(this.current)||(this.outputFooters?this.footerItem():this.nextGroupItem()):this.nextGroupItem()}},{key:"index",get:function(){return this.dataIndex+1}}]),i}(),e_t=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,i),this.source=r,this.skip=t,this.groupFooters=e,this.source=this.source?this.source:[],this.isObject=this.isGridDataResult(this.source)}return v(i,[{key:"isGridDataResult",value:function(t){return void 0!==t.total&&void 0!==t.data}},{key:"total",get:function(){return this.isObject?this.source.total:this.source.length}},{key:"data",get:function(){return this.isObject?this.source.data:this.source}},{key:"map",value:function(t){return this.data.map(t)}},{key:"filter",value:function(t){return this.data.filter(t)}},{key:"reduce",value:function(t,e){return this.data.reduce(t,e)}},{key:"forEach",value:function(t){this.data.forEach(t)}},{key:"some",value:function(t){return this.data.some(t)}},{key:zu,value:function(){return Che(this.data,{dataIndex:this.skip,footers:this.groupFooters,groupIndex:this.skip})}},{key:"toString",value:function(){return this.data.toString()}}]),i}(),t_t=function(){function i(r){p(this,i),this.accessor=r}return v(i,[{key:"total",get:function(){return this.accessor().total}},{key:"length",get:function(){return this.accessor().data.length}},{key:"first",get:function(){return this.accessor().data[0]}},{key:"last",get:function(){return this.accessor().data[this.length-1]}},{key:"at",value:function(t){return Xmt(this.accessor().data,t)}},{key:"map",value:function(t){return this.accessor().map(t)}},{key:"filter",value:function(t){return this.accessor().filter(t)}},{key:"reduce",value:function(t,e){return this.accessor().reduce(t,e)}},{key:"forEach",value:function(t){this.accessor().forEach(t)}},{key:"some",value:function(t){return this.accessor().some(t)}},{key:zu,value:function(){return this.accessor()[zu]()}},{key:"toString",value:function(){return this.accessor().toString()}}]),i}(),She=function(){function i(r,t,e){var n=this;p(this,i),this.keysX=new Map,this.totalKeysCount=0,r&&t&&e&&r.forEach(function(a){return n.add(a[t],a[e])})}return v(i,[{key:"size",get:function(){return this.totalKeysCount}},{key:"add",value:function(t,e){this.keysX.has(t)||this.keysX.set(t,new Set),this.has(t,e)||(this.keysX.get(t).add(e),this.totalKeysCount+=1)}},{key:"delete",value:function(t,e){this.has(t,e)&&(this.keysX.get(t).delete(e),this.totalKeysCount-=1)}},{key:"has",value:function(t,e){return this.keysX.has(t)&&this.keysX.get(t).has(e)}},{key:"clear",value:function(){this.keysX.clear(),this.totalKeysCount=0}},{key:"toArray",value:function(t,e){return Array.from(this.keysX).reduce(function(n,a){var o=Bt(a,2),s=o[0];return Array.from(o[1]).forEach(function(u){var c;return n.push((De(c={},t,s),De(c,e,u),c))}),n},[])}}]),i}(),Vm=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),whe=function(){var i=function(){function r(t,e){p(this,r),this.ctx=t,this.cd=e,this.selectedKeys=[],this.selectedKeysChange=new O,this.rowSelectionState=new Set,this.cellSelectionState=new She,this.init()}return v(r,[{key:"isCellSelectionMode",get:function(){return He(this.ctx.grid.selectable)&&this.ctx.grid.selectable.cell}},{key:"ngOnChanges",value:function(e){He(e.selectedKeys)&&this.lastSelectionState!==this.selectedKeys&&this.setState(this.selectedKeys)}},{key:"init",value:function(){var e=this;He(this.ctx.grid.rowSelected)||(this.ctx.grid.rowSelected=function(n){return e.rowSelectionState.has(e.getItemKey(n))}),He(this.ctx.grid.cellSelected)||(this.ctx.grid.cellSelected=function(n,a,o){var s=e.getSelectionItem(n,a,o);return{selected:e.cellSelectionState.has(s.itemKey,s.columnKey),item:s}}),this.selectionChangeSubscription=this.ctx.grid.selectionChange.subscribe(this.onSelectionChange.bind(this))}},{key:"destroy",value:function(){this.selectionChangeSubscription.unsubscribe()}},{key:"reset",value:function(){this.rowSelectionState.clear(),this.cellSelectionState.clear()}},{key:"getItemKey",value:function(e){if(this.selectionKey){if("string"==typeof this.selectionKey)return e.dataItem[this.selectionKey];if("function"==typeof this.selectionKey)return this.selectionKey(e)}return e.index}},{key:"getSelectionItem",value:function(e,n,a){var o={};return o.itemKey=this.getItemKey(e),He(n)||He(a)?(this.columnKey&&("string"==typeof this.columnKey&&(o.columnKey=e.dataItem[this.columnKey]),"function"==typeof this.columnKey&&(o.columnKey=this.columnKey(n,a))),{itemKey:o.itemKey,columnKey:o.columnKey?o.columnKey:a}):o}},{key:"onSelectionChange",value:function(e){var n=this;e.selectedRows?(e.deselectedRows.forEach(function(a){var o=n.getItemKey(a);n.rowSelectionState.delete(o)}),"single"===this.ctx.grid.selectableSettings.mode&&this.rowSelectionState.size>0&&this.reset(),e.selectedRows.forEach(function(a){var o=n.getItemKey(a);n.rowSelectionState.add(o)})):(e.deselectedCells.forEach(function(a){n.cellSelectionState.delete(a.itemKey,a.columnKey)}),"single"===this.ctx.grid.selectableSettings.mode&&this.cellSelectionState.size>0&&this.reset(),e.selectedCells.forEach(function(a){n.cellSelectionState.add(a.itemKey,a.columnKey)})),this.cd.markForCheck(),this.notifyChange()}},{key:"notifyChange",value:function(){this.lastSelectionState=this.stateToArray(),this.selectedKeysChange.emit(this.lastSelectionState)}},{key:"setState",value:function(e){this.reset(),this.isCellSelectionMode?this.cellSelectionState=new She(e,"itemKey","columnKey"):this.rowSelectionState=new Set(e)}},{key:"stateToArray",value:function(){return this.isCellSelectionMode?this.cellSelectionState.toArray("itemKey","columnKey"):Array.from(this.rowSelectionState)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Vm),m(nt))},i.\u0275dir=X({type:i,selectors:[["kendo-grid-selection-base"]],inputs:{selectedKeys:"selectedKeys",selectionKey:["kendoGridSelectBy","selectionKey"],columnKey:"columnKey"},outputs:{selectedKeysChange:"selectedKeysChange"},features:[Ie]}),i}(),NG=function(){function i(r){p(this,i),this.columns=r,this.allColumns=new Ei,this.leafColumns=new Ei,this.lockedColumns=new Ei,this.nonLockedColumns=new Ei,this.lockedLeafColumns=new Ei,this.nonLockedLeafColumns=new Ei,this.totalLevels=0,this.changes=new O,this.leafColumnsToRender=[],this.lockedColumnsToRender=[],this.nonLockedColumnsToRender=[],this.hasGroupHeaderColumn=!1,this.hasGroupFooter=!1,this.hasFooter=!1,this.unlockedWidth=0}return v(i,[{key:"refresh",value:function(){var t=this,e=this.totalLevels,n=new Array,a=new Array,o=new Array,s=new Array,l=new Array,u=new Array,c=new Array,d=new Array,h=new Array,f=!1,g=!1,_=!1,C=0,w=0;this.totalLevels=0,this.columns().forEach(function(M){var R=!0===M.isLocked?a:o,N=!0===M.isLocked?s:l,G=!0===M.isLocked?d:h;Bm(M)||(R.push(M),n.push(M),c.push.apply(c,nd([M])),G.push.apply(G,nd([M])),f=f||xG(function(U){return Boolean(U.groupHeaderColumnTemplateRef)},M),g=g||xG(function(U){return Boolean(U.groupFooterTemplateRef)},M),_=_||xG(function(U){return Boolean(U.footerTemplateRef)},M),M.isLocked||(C+=M.width||0),M.isSpanColumn?M.childColumns.forEach(function(U){U.leafIndex=w++}):M.leafIndex=w++),N.push(M),u.push(M),t.totalLevels=M.level>t.totalLevels?M.level:t.totalLevels}),this.hasGroupHeaderColumn=f,this.hasGroupFooter=g,this.hasFooter=_,this.leafColumnsToRender=c,this.lockedColumnsToRender=d,this.nonLockedColumnsToRender=h,this.unlockedWidth=C;var E=function(){for(var r=!1,t=0;t component.")}else e.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),l_t=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.call(this)}return v(t)}(Ov),GG=function(){var i=v(function r(){p(this,r),this.scroll=!1});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),c_t=function(r){return window.matchMedia(r).matches},The=function(){var i=function(){function r(){p(this,r),this.matchMedia=c_t}return v(r,[{key:"matchesMedia",value:function(e){return!e||this.matchMedia(function(r){return{xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[r]||r}(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),iA=function(){var i=function(){function r(){p(this,r),this.saveToExcel=new O,this.exportClick=new O}return v(r,[{key:"save",value:function(e){if(0===this.saveToExcel.observers.length){if(xt())throw new Error("Saving excel requires including the ExcelModule and adding the component.")}else this.saveToExcel.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),UG=function(){var i=function(){function r(t){p(this,r),this.templateRef=t,this._position="top"}return v(r,[{key:"position",get:function(){return this._position},set:function(e){this._position=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridToolbarTemplate",""]],inputs:{position:"position"}}),i}(),rA=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.changes=new Ot,this.elements=[],this.subscriptions=new Je,this.headerSubscription=new Je,this.bodySubscription=new Je,this.subscriptions.add(this.changes.subscribe(function(n){return e.scrollLeft(n)}))}return v(r,[{key:"registerEmitter",value:function(e,n){var a=this;this.unregister(n),this.elements.push({element:e,sourceType:n}),("body"===n||"header"===n)&&this.ngZone.runOutsideAngular(function(){var o=li(e,"scroll").pipe(We(function(l){return{scrollLeft:l.target.scrollLeft,sourceType:n}})),s=o.pipe(function I7e(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zl;return i=null!=i?i:N7e,oi(function(t,e){var n,a=!0;t.subscribe(Wn(e,function(o){var s=r(o);(a||!i(n,s))&&(a=!1,n=s,e.next(o))}))})}(function(l,u){return l.scrollLeft===u.scrollLeft}),Ue(function(l){return!a.source||a.source===l.sourceType}),At(function(l){return a.source=l.sourceType})).subscribe(function(l){return a.changes.next(l)});s.add(o.pipe(Ue(function(l){return a.source&&a.source!==l.sourceType})).subscribe(function(){return a.source=void 0})),"body"===n?a.bodySubscription.add(s):a.headerSubscription.add(s)})}},{key:"destroy",value:function(){this.subscriptions.unsubscribe(),this.headerSubscription.unsubscribe(),this.bodySubscription.unsubscribe()}},{key:"scrollLeft",value:function(e){var n=this,a=e.scrollLeft,o=e.sourceType;this.ngZone.runOutsideAngular(function(){n.elements.filter(function(s){return o!==s.sourceType}).forEach(function(s){return s.element.scrollLeft=a})})}},{key:"unregister",value:function(e){var n=this.elements.findIndex(function(a){return a.sourceType===e});n>-1&&("header"===e?(this.headerSubscription.unsubscribe(),this.headerSubscription=new Je):"body"===e&&(this.bodySubscription.unsubscribe(),this.bodySubscription=new Je),this.elements.splice(n,1))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),zG=function(){var i=function(){function r(){p(this,r),this.resizeSubscription=new Je(function(){}),this.dispatcher=new Ot,this.changes=this.dispatcher.asObservable().pipe(GL(100))}return v(r,[{key:"connect",value:function(e){this.resizeSubscription.add(e.subscribe(this.dispatcher))}},{key:"destroy",value:function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Ahe=function i(r){return r.parent?i(r.parent):!!r.locked},xhe=function(r,t){return Object.assign({columns:QT([r]),locked:Ahe(r)},t)},Rb=function(){var i=function(){function r(){p(this,r),this.changes=new O,this.tables=[],this.batch=null}return v(r,[{key:"start",value:function(e){this.trackColumns(e);var n=(this.column.isColumnGroup?[e]:[]).concat(QT([e]));this.changes.emit({columns:n,locked:Ahe(this.column),type:"start"})}},{key:"resizeColumns",value:function(e){var n=xhe(this.column,{deltaPercent:e,type:"resizeColumn"});this.changes.emit(n)}},{key:"resizeTable",value:function(e,n){var a=xhe(e,{delta:n,type:"resizeTable"});this.changes.emit(a)}},{key:"resizedColumn",value:function(e){this.resizedColumns.push(e)}},{key:"end",value:function(){this.changes.emit({columns:[],resizedColumns:this.resizedColumns,type:"end"})}},{key:"registerTable",value:function(e){var n=this;return this.tables.push(e),function(){n.tables.splice(n.tables.indexOf(e),1)}}},{key:"measureColumns",value:function(e){var a,n=this;null!==this.batch?(a=this.batch).push.apply(a,Ae(e)):this.autoFitBatch(e,function(){return n.end()})}},{key:"autoFit",value:function(){for(var e=this,n=arguments.length,a=new Array(n),o=0;o0&&e[0].column.isLocked,s=this.tables.filter(function(l){return l.locked===o}).map(function(l){return l.autoFit(e)});O7e.apply(void 0,Ae(s)).pipe(It(1)).subscribe(function(l){a.changes.emit({columns:e.map(function(u){return u.column}),type:"autoFitComplete",widths:l,locked:o}),n&&n()}),this.batch=null}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),aA=function(r){return!0===r||"string"==typeof r&&r.indexOf("row")>-1},f_t=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).originalEvent=e,n}return v(t)}(Ov),v_t="k-grid-filter-popup",Ob=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.popupService=t,this.renderer=e,this.ngZone=n,this.localization=o,this.onClose=new Ot,this.scrollSubscription=a.changes.subscribe(function(){return s.destroy()})}return v(r,[{key:"open",value:function(e,n,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v_t,s=He(a)&&this.popupRef===a;if(this.destroy(),!s){var l=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:l},popupAlign:{vertical:"top",horizontal:l},anchor:e,popupClass:o,content:n,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.attachClose(e)}return this.popupRef}},{key:"destroy",value:function(){this.popupRef&&(this.detachClose(),this.popupRef.close(),this.popupRef=null)}},{key:"ngOnDestroy",value:function(){this.destroy(),this.scrollSubscription.unsubscribe()}},{key:"detachClose",value:function(){this.removeClick&&this.removeClick()}},{key:"attachClose",value:function(e){var n=this;this.detachClose(),this.ngZone.runOutsideAngular(function(){return n.removeClick=n.renderer.listen("document","click",function(a){if(!function(r,t){for(;r;){if(n.popupRef.popupElement===(s=r)||s===e)return!0;r=r.parentNode}var s;return!1}(a.target)){var o=new f_t(a);n.onClose.next(o),o.isDefaultPrevented()||n.destroy()}})})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Cr),oe(Ee),oe(be),oe(rA),oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Mhe=function(r){var t=!1;return function(){return t||(document.body.appendChild(r),t=!0),r}},Rhe=function(r){var t=function(r){return r.ownerDocument.documentElement}(r),e=t.clientTop,n=t.clientLeft,a=function(r){return r.ownerDocument.defaultView}(r),o=a.pageYOffset,s=a.pageXOffset,l=r.getBoundingClientRect();return{top:l.top+o-e,left:l.left+s-n}},Ohe=function(r,t){return 0!=(4&t.compareDocumentPosition(r))},m_t=function(r,t){return r===t||0!=(16&t.compareDocumentPosition(r))},Ihe=function(r,t){var e=Rhe(r);return{left:e.left+(t?0:r.offsetWidth),top:e.top,height:r.offsetHeight}},HG=function(){var i=function(){function r(){p(this,r),this.changes=new O,this.register=[],this.lastTarget=null}return v(r,[{key:"add",value:function(e){this.register.push(e)}},{key:"remove",value:function(e){this.register=this.register.filter(function(n){return n!==e})}},{key:"notifyDrag",value:function(e,n,a){var o=this.targetFor(n);this.lastTarget!==o&&(this.changes.next({draggable:e,mouseEvent:a,target:this.lastTarget,type:"leave"}),o&&this.changes.next({draggable:e,mouseEvent:a,target:o,type:"enter"}),this.lastTarget=o)}},{key:"notifyDrop",value:function(e,n){this.changes.next({draggable:e,mouseEvent:n,target:this.lastTarget,type:"drop"}),this.lastTarget=null}},{key:"targetFor",value:function(e){var n=m_t.bind(null,e);return this.register.find(function(a){return n(a.element.nativeElement)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Nhe=function(r,t){var e=r.querySelector(".k-icon");e.className=e.className.replace(/(plus|cancel)/,t?"plus":"cancel")},Fhe=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=r.querySelectorAll(".k-icon")[1],n=null===t?"":t?"k-i-lock":"k-i-unlock";e.className=e.className.replace(/(k-i-unlock|k-i-lock)/,"")+" ".concat(n)},oA=function(){var i=function(){function r(t){p(this,r),this.santizer=t}return v(r,[{key:"create",value:function(e){this.dom=document.createElement("div"),function(r){r.className="k-header k-drag-clue",r.style.position="absolute",r.style.zIndex="20000"}(this.dom);var n=this.santizer.sanitize(ki.HTML,e);this.dom.innerHTML='\n \n \n \n '.concat(n,"\n ")}},{key:"attach",value:function(){return Mhe(this.dom)}},{key:"remove",value:function(){var e;this.dom&&this.dom.parentNode&&(e=this.dom,setTimeout(function(){return document.body.removeChild(e)}),this.dom=null)}},{key:"show",value:function(){this.dom.style.display=""}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"enable",value:function(){Nhe(this.dom,!0)}},{key:"disable",value:function(){Nhe(this.dom,!1)}},{key:"removeLock",value:function(){Fhe(this.dom)}},{key:"toggleLock",value:function(e){Fhe(this.dom,e)}},{key:"move",value:function(e){this.dom.style.top=e.pageY+"px",this.dom.style.left=e.pageX+"px"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(vK))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),sA=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"create",value:function(){this.dom=document.createElement("div"),this.dom.className="k-grouping-dropclue",this.hide()}},{key:"attach",value:function(){return Mhe(this.dom)}},{key:"remove",value:function(){this.dom&&this.dom.parentElement&&(document.body.removeChild(this.dom),this.dom=null)}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"position",value:function(e){var n=e.left,a=e.top,o=e.height;this.dom.style.display="block",this.dom.style.height=o+"px",this.dom.style.top=a+"px",this.dom.style.left=n-this.dom.offsetWidth/2+"px"}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),KG=function(){var i=function(){function r(){p(this,r),this.changes=new O}return v(r,[{key:"reorder",value:function(e){this.changes.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),y_t=function(i){b(t,i);var r=S(t);function t(e){var n,a=e.column,o=e.newIndex,s=e.oldIndex;return p(this,t),(n=r.call(this)).column=a,n.newIndex=o,n.oldIndex=s,n}return v(t)}(Ov),k_t=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this.dataRows=r,this.headerRows=t,this.isVirtual=e,this.hasPager=n,this.hasDetailTemplate=a,this.gridElement=o,this.virtualColumns=s,this.columns=l}return v(i,[{key:"maxLogicalRowIndex",get:function(){return this.headerRows+(this.hasDetailTemplate?2*this.dataRows:this.dataRows)-1}}]),i}(),C_t={left:"0px",right:"0px"},fs=function(){var i=function(){function r(){p(this,r),this.visibilityChange=new O,this.lockedChange=new O,this.stickyChange=new O,this.columnRangeChange=new O,this.columnsContainer=new NG(function(){return[]})}return v(r,[{key:"lockedLeafColumns",get:function(){return this.columnsContainer.lockedLeafColumns}},{key:"nonLockedLeafColumns",get:function(){return this.columnsContainer.nonLockedLeafColumns}},{key:"isLocked",get:function(){return this.lockedLeafColumns.length>0}},{key:"totalLevels",get:function(){return this.columnsContainer.totalLevels}},{key:"hiddenColumns",get:function(){return this.list?this.list().filter(function(e){return!e.isVisible}):[]}},{key:"leafNamedColumns",get:function(){var e=Wu(this.list().filterSort(function(n){return!n.isColumnGroup})).filter(function(n){return n.matchesMedia&&n.displayTitle});return UE(e,[{field:"locked",dir:"desc"}])}},{key:"unlockedRootCount",get:function(){return this.list().rootColumns().filter(function(e){return!e.locked&&e.isVisible}).length}},{key:"stickyColumnsStyles",value:function(e){if(this.stickyColumns||(this.stickyColumns=this.list().rootColumns().filter(function(a){return a.sticky&&!a.locked&&a.isVisible})),0===this.stickyColumns.length)return C_t;var n=this.stickyColumns.reduce(function(a,o){return o.leafIndexe.leafIndex&&(a.right+=o.width),a},{left:0,right:0});return{left:"".concat(n.left,"px"),right:"".concat(n.right,"px")}}},{key:"init",value:function(e,n){this.columnsContainer=e,this.list=n,this.stickyColumns=null}},{key:"changeVisibility",value:function(e){this.stickyColumns=null,this.visibilityChange.emit(e)}},{key:"changeLocked",value:function(e){this.stickyColumns=null,this.lockedChange.emit(e)}},{key:"changeStuck",value:function(e){this.stickyColumns=null,this.stickyChange.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),lA=function(){function i(){p(this,i),this.changes=new Ot}return v(i,[{key:"sort",value:function(t){this.changes.next(t)}}]),i}(),b_t=v(function i(r){p(this,i),this.columns=r}),Lhe=v(function i(r){p(this,i),this.columns=r});function jG(i,r){return"data"===r.type&&r.isEditing?r.data:i}var w_t=v(function i(r){p(this,i),this.columns=r}),WG=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCellLoadingTemplate",""]]}),i}(),$G=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLoadingTemplate",""]]}),i}(),qG=function(){var i=function(){function r(t){p(this,r),this.ctx=t,this.context={}}return v(r,[{key:"position",set:function(e){this.context.position=e}},{key:"toolbarTemplateRef",get:function(){return this.ctx.grid.toolbarTemplate?this.ctx.grid.toolbarTemplate.templateRef:void 0}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Vm))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-toolbar"]],inputs:{position:"position"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&T(0,$ht,1,2,null,0),2&t&&y("ngIf",e.toolbarTemplateRef)},directives:[qe,En],encapsulation:2}),i}(),Bhe=function(r){return function(r){var t=r.buttonCount,n=r.info,o=r.type,l=r.pageSizes,u=void 0!==l&&l,c=r.previousNext,h=r.responsive,g=r.position;return{buttonCount:void 0===t?10:t,info:void 0===n||n,pageSizes:!0===u?[5,10,20]:u,previousNext:void 0===c||c,type:void 0===o?"numeric":o,responsive:void 0===h||h,position:void 0===g?"bottom":g}}(!0===r?{}:r)},Gm=function(){var i=function(){function r(t){p(this,r),this.root=t,this.active=!0,this.children=[],this.root.registerGroup(this)}return v(r,[{key:"focusableChildren",get:function(){return this.children.filter(function(e){return e.canFocus()})}},{key:"isActive",get:function(){return this.active}},{key:"ngOnDestroy",value:function(){this.root.unregisterGroup(this)}},{key:"registerElement",value:function(e){this.unregisterElement(e),this.children.push(e)}},{key:"unregisterElement",value:function(e){this.children=this.children.filter(function(n){return n!==e})}},{key:"isNavigable",value:function(){var e=this.focusableChildren;return 1===e.length&&e[0].isNavigable()}},{key:"canFocus",value:function(){return this.focusableChildren.length>0}},{key:"focus",value:function(){this.canFocus()&&!this.hasFocus()&&this.focusableChildren[0].focus()}},{key:"activate",value:function(){this.toggleState(!0)}},{key:"deactivate",value:function(){this.toggleState(!1)}},{key:"hasFocus",value:function(){return this.children.reduce(function(e,n){return e||n.hasFocus()},!1)}},{key:"toggleState",value:function(e){this.active!==e&&(this.active=e,this.children.forEach(function(n){return n.toggle(e)}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Eh))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Um=function(){var i=function(){function r(t,e,n){p(this,r),this.localization=t,this.pagerContext=e,this.cd=n,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize}return v(r,[{key:"currentPage",get:function(){return Math.floor((this.skip||0)/this.pageSize)+1}},{key:"totalPages",get:function(){return Math.ceil((this.total||0)/this.pageSize)}},{key:"textFor",value:function(e){return this.localization.get(e)}},{key:"changePage",value:function(e){return this.pagerContext.changePage(e),!1}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ju),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-element-base"]],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),XG=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a,o)).navigationService=s,l}return v(e,[{key:"disabled",get:function(){return 1===this.currentPage||!this.total}},{key:"onChanges",value:function(a){var s=a.skip,l=a.pageSize;this.total=a.total,this.skip=s,this.pageSize=l,this.cd.markForCheck()}}]),e}(Um);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ju),m(nt),m(Ua))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-prev-buttons"]],features:[j],decls:4,vars:16,consts:[["role","button",3,"kendoGridFocusable","title","ngClass","click","keydown.enter"],["role","note",3,"ngClass"]],template:function(t,e){1&t&&(A(0,"span",0),Q("click",function(){return 1!==e.currentPage&&e.changePage(0)})("keydown.enter",function(){return 1!==e.currentPage&&e.changePage(0)}),z(1,"span",1),x(),A(2,"span",0),Q("click",function(){return 1!==e.currentPage&&e.changePage(e.currentPage-2)})("keydown.enter",function(){return 1!==e.currentPage&&e.changePage(e.currentPage-2)}),z(3,"span",1),x()),2&t&&(y("kendoGridFocusable",!e.disabled)("title",e.textFor("pagerFirstPage"))("ngClass",ot(10,qht,e.disabled)),k(1),y("ngClass",wt(12,Xht)),ie("aria-label",e.textFor("pagerFirstPage")),k(1),y("kendoGridFocusable",!e.disabled)("title",e.textFor("pagerPreviousPage"))("ngClass",ot(13,Yde,e.disabled)),k(1),y("ngClass",wt(15,Zht)),ie("aria-label",e.textFor("pagerPreviousPage")))},directives:[co,Ft],encapsulation:2,changeDetection:0}),i}(),ZG=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,o,a)).pagerContext=o,s.numbersWrapClass=!0,s}return v(e,[{key:"buttons",get:function(){for(var a=[],o=this.start;o<=this.end;o++)a.push(o);return a}},{key:"end",get:function(){return Math.min(this.start+this.buttonCount-1,this.totalPages)}},{key:"start",get:function(){var a=this.currentPage,o=this.buttonCount;if(a>o){var s=a%o;return 0===s?a-o+1:a-s+1}return 1}},{key:"pageLabel",value:function(a){var o=this.textFor("pagerPage");return o?o+" "+a:a.toString()}},{key:"onSelectChange",value:function(a){var o=a.target,s=Number(o.value);Number.isNaN(s)?this.changePage("previousButtons"===o.value?this.start-2:this.end):this.changePage(s-1)}},{key:"onChanges",value:function(a){var s=a.skip,l=a.pageSize;this.total=a.total,this.skip=s,this.pageSize=l,this.cd.markForCheck()}}]),e}(Um);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(nt),m(ju))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-numeric-buttons"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-pager-numbers-wrap",e.numbersWrapClass)},inputs:{buttonCount:"buttonCount"},features:[j],decls:8,vars:8,consts:[["kendoGridFocusable","","tabindex","0",1,"k-dropdownlist","k-pager-nav",3,"change"],["class","k-link","value","previousButtons",3,"selected",4,"ngIf"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["value","nextButtons","class","k-link",3,"selected",4,"ngIf"],[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],["value","previousButtons",1,"k-link",3,"selected"],[3,"value","selected","ngClass"],["value","nextButtons",1,"k-link",3,"selected"],["kendoGridFocusable","","tabindex","0","role","button",1,"k-link","k-pager-nav",3,"click","keydown.enter"],["kendoGridFocusable","","tabindex","0","role","button",3,"ngClass","click","keydown.enter"]],template:function(t,e){1&t&&(A(0,"select",0),Q("change",function(a){return e.onSelectChange(a)}),T(1,Yht,2,2,"option",1),T(2,Jht,2,8,"option",2),T(3,eft,2,2,"option",3),x(),A(4,"ul",4),T(5,tft,3,1,"li",5),T(6,ift,3,5,"li",6),T(7,rft,3,1,"li",5),x()),2&t&&(k(1),y("ngIf",e.start>1),k(1),y("ngForOf",e.buttons),k(1),y("ngIf",e.end1),k(1),y("ngForOf",e.buttons),k(1),y("ngIf",e.end=600&&f<768?(d.renderer.addClass(h,"k-pager-md"),d.renderer.removeClass(h,"k-pager-sm")):d.clearResponsiveClasses()}}}return v(r,[{key:"options",set:function(e){this.settings=Bhe(e)}},{key:"isFocused",get:function(){return this._isFocused}},{key:"pagerAriaLabel",get:function(){return this.navigationService.enabled?this.pagerLabel:void 0}},{key:"pagerLabel",get:function(){var e=this.localizationService.get("pagerLabel")||"";return Ea(Ea(e,"currentPage",this.currentPage.toString()),"totalPages",this.totalPages.toString())}},{key:"focusTrapTabIndex",get:function(){return this.focusGroup.isActive?"0":"-1"}},{key:"onFocusIn",value:function(e){this.navigationService.enabled&&(e.target===this.element.nativeElement?(this._isFocused=!0,this.focusRoot.deactivate()):this.focusRoot.activate())}},{key:"onFocusOut",value:function(){this.navigationService.enabled&&(this._isFocused=!1)}},{key:"onEscape",value:function(){this.navigationService.enabled&&(this.focusRoot.deactivate(),this.element.nativeElement.focus())}},{key:"onEnter",value:function(e){this.navigationService.enabled&&e.target===this.element.nativeElement&&(this.focusRoot.activate(),this.focusFirstElement())}},{key:"navigateToPreviousPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage>1)&&this.pagerContext.prevPage()}},{key:"navigateToNextPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage1)&&this.pagerContext.changePage(0)}},{key:"navigateToLastPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage1&&void 0!==arguments[1])||arguments[1];return umt(r,function(e){return Eb(e,t)},!1)}(this.element.nativeElement,!0);e&&e.focus()}},{key:"updateCellContext",value:function(){this.cellContext&&(this.cellContext.focusGroup=this.focusGroup)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ju),m(Ua),m(_e),m(Ee),m(be),m(Y),m(td,8),m(Eh),m(Gm))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager"]],hostVars:7,hostBindings:function(t,e){1&t&&Q("focusin",function(a){return e.onFocusIn(a)})("focusout",function(){return e.onFocusOut()})("keydown.escape",function(){return e.onEscape()})("keydown.enter",function(a){return e.onEnter(a)})("keydown.arrowleft",function(a){return e.navigateToPreviousPage(a)})("keydown.pageup",function(a){return e.navigateToPreviousPage(a)})("keydown.arrowright",function(a){return e.navigateToNextPage(a)})("keydown.pagedown",function(a){return e.navigateToNextPage(a)})("keydown.home",function(a){return e.navigateToFirstPage(a)})("keydown.end",function(a){return e.navigateToLastPage(a)}),2&t&&(ie("aria-label",e.pagerAriaLabel),ue("k-pager-wrap",e.pagerWrapClass)("k-grid-pager",e.gridPagerClass)("k-state-focused",e.isFocused))},inputs:{total:"total",skip:"skip",pageSize:"pageSize",options:"options",template:"template"},outputs:{pageChange:"pageChange"},features:[de([{provide:_G,useValue:!0},{provide:Eh,deps:[_G],useClass:Eh},{provide:Gm,deps:[Eh],useClass:Gm}]),Ie],decls:5,vars:5,consts:[["class","k-sr-only",3,"tabindex","focusin",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"resize",4,"ngIf"],[1,"k-sr-only",3,"tabindex","focusin"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"buttonCount",4,"ngIf"],[3,"pageSizes",4,"ngIf"],[3,"buttonCount"],[3,"pageSizes"],["pageSizes",""],[3,"resize"]],template:function(t,e){1&t&&(T(0,dft,1,2,"div",0),T(1,hft,1,2,"ng-container",1),T(2,yft,7,6,"ng-container",2),T(3,kft,1,2,"div",0),T(4,Cft,1,0,"kendo-resize-sensor",3)),2&t&&(y("ngIf",e.navigationService.enabled),k(1),y("ngIf",null==e.template?null:e.template.templateRef),k(1),y("ngIf",!(null!=e.template&&e.template.templateRef)),k(1),y("ngIf",e.navigationService.enabled),k(1),y("ngIf",e.settings.responsive))},directives:[XG,ZG,QG,JG,eU,nU,Vr,qe,En],encapsulation:2}),i}(),Ib=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.service=e,this.context={},this.enter=new O,this.leave=new O,this.drop=new O,this.subscriptions=new Je}return v(r,[{key:"ngOnInit",value:function(){var e=this;this.service.add(this);var n=this.service.changes.pipe(Ue(function(a){return a.target===e}));this.subscriptions.add(n.pipe(Ue(function(a){return"leave"===a.type})).subscribe(function(a){e.leave.next(e.eventArgs(a))})),this.subscriptions.add(n.pipe(Ue(function(a){return"enter"===a.type})).subscribe(function(a){e.enter.next(e.eventArgs(a))})),this.subscriptions.add(n.pipe(Ue(function(a){return"drop"===a.type})).subscribe(function(a){e.drop.next(e.eventArgs(a))}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"eventArgs",value:function(e){return{target:this,mouseEvent:e.mouseEvent,draggable:e.draggable}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(HG))},i.\u0275dir=X({type:i,selectors:[["","kendoDropTarget",""]],inputs:{context:"context"},outputs:{enter:"enter",leave:"leave",drop:"drop"}}),i}(),Vhe=function(){var i=function(){function r(){p(this,r),this.directionChange=new O,this.remove=new O}return v(r,[{key:"groupIndicatorClass",get:function(){return!0}},{key:"dir",get:function(){return this.group.dir?this.group.dir:"asc"}},{key:"toggleDirection",value:function(){return this.directionChange.emit({dir:"asc"===this.dir?"desc":"asc",field:this.group.field}),!1}},{key:"removeDescriptor",value:function(){return this.remove.emit({dir:this.group.dir,field:this.group.field}),!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGroupIndicator",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-group-indicator",e.groupIndicatorClass)},inputs:{group:"group",groupTitle:"groupTitle"},outputs:{directionChange:"directionChange",remove:"remove"},attrs:bft,decls:5,vars:5,consts:[["href","#","tabindex","-1",1,"k-link",3,"click"],[1,"k-icon"],["tabindex","-1",1,"k-button","k-button-flat-base","k-button-flat","k-icon-button","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"click"],[1,"k-button-icon","k-icon","k-i-group-delete"]],template:function(t,e){1&t&&(A(0,"a",0),Q("click",function(){return e.toggleDirection()}),z(1,"span",1),te(2),x(),A(3,"a",2),Q("click",function(){return e.removeDescriptor()}),z(4,"span",3),x()),2&t&&(k(1),ue("k-i-sort-asc-sm","asc"===e.dir)("k-i-sort-desc-sm","desc"===e.dir),k(1),Nt(" ",e.groupTitle,""))},encapsulation:2,changeDetection:0}),i}(),cA=function(r){return function(t){return new RegExp("(^| )".concat(r,"( |$)")).test(t.className)}},T_t=KT(cA("k-i-group-delete"),cA("k-icon-button")),A_t=KT(cA("k-i-sort-asc-sm"),cA("k-i-sort-desc-sm")),x_t=fG(Db(T_t),Db(A_t),Db(Eb),Db(Ta("label"))),Ghe=function(r){return document.elementFromPoint(r.clientX,r.clientY)},rU=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.draggable=t,this.element=e,this.zone=n,this.service=a,this.hint=o,this.cue=s,this.nav=l,this.renderer=u,this.context={},this.drag=new O,this.subscriptions=new Je}return v(r,[{key:"enableDrag",set:function(e){this.enabled=e,this.updateTouchAction()}},{key:"hostClass",get:function(){return this.enabled}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.zone.runOutsideAngular(function(){return e.draggable.kendoPress.pipe(Ue(function(n){return e.enabled}),Ue(function(n){var a=n.originalEvent.target;return a===e.element.nativeElement||x_t(a)}),At(function(n){var a=n.originalEvent;n.isTouch||a.preventDefault(),e.nav.navigateTo(a.target)}),Nn(function(r){return function(t){return lt(t).pipe(Dd(150),Qr(r))}}(e.draggable.kendoRelease)),At(function(n){e.hint.create(e.context.hint),e.cue.create()}),Nn(function(n){return e.draggable.kendoDrag.pipe(At(function(a){a.isTouch&&a.originalEvent.preventDefault()}),At(e.hint.attach()),At(e.cue.attach()),Qr(e.draggable.kendoRelease),We(function(a){return{move:a,down:n}}))}),At(e.performDrag.bind(e)),xE(e.draggable.kendoRelease)).subscribe(e.drop.bind(e))}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"drop",value:function(e){this.hint.remove(),this.cue.remove(),this.service.notifyDrop(this,e)}},{key:"performDrag",value:function(e){var n=e.move;this.hint.move(n);var a=this.elementUnderCursor(n);a&&this.service.notifyDrag(this,a,n),this.drag.emit({draggable:this,mouseEvent:n})}},{key:"elementUnderCursor",value:function(e){this.hint.hide();var n=Ghe(e);return n&&/k-grouping-dropclue/.test(n.className)&&(n=function(r,t){r.style.display="none";var e=t();return r.style.display="block",e}(n,Ghe.bind(this,e))),this.hint.show(),n}},{key:"updateTouchAction",value:function(){!this.element||(this.enabled?this.renderer.addClass(this.element.nativeElement,"k-touch-action-none"):this.renderer.removeClass(this.element.nativeElement,"k-touch-action-none"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(_e),m(be),m(HG),m(oA),m(sA),m(Ua),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoDraggableColumn",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-draggable-header",e.hostClass)},inputs:{context:"context",enableDrag:"enableDrag"},outputs:{drag:"drag"}}),i}(),R_t=function(r){return Dr(r.field)},O_t=function(r){var e=r.field;return r.groups.some(function(n){return n.field===e})},B_t=KT(function(r){return r.target.field===r.field},fG(function(r){return r.target.lastTarget},function(r){var t=r.groups,e=r.field;return t.map(function(n){return n.field}).indexOf(e)===t.length-1})),Uhe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.hint=t,this.cue=e,this.groupInfoService=n,this.localization=a,this.cd=o,this.change=new O,this.groups=[],this.dropTargets=new Ei,this.groupTitles=[],this.subscription=new Je}return v(r,[{key:"groupHeaderClass",get:function(){return!0}},{key:"text",get:function(){return this.emptyText?this.emptyText:this.localization.get("groupPanelEmpty")},set:function(e){this.emptyText=e}},{key:"ngAfterViewInit",value:function(){this.subscription.add(HT(this.dropTargets).subscribe(this.attachTargets.bind(this)))}},{key:"ngOnInit",value:function(){var e=this;this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngDoCheck",value:function(){var e=this,n=this.groups.map(function(a){return e.groupInfoService.groupTitle(a)});(n.length!==this.groupTitles.length||n.some(function(a,o){return a!==e.groupTitles[o]}))&&(this.groupTitles=n,this.cd.markForCheck())}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.targetSubscription&&this.targetSubscription.unsubscribe()}},{key:"directionChange",value:function(e){var n=this.groups.findIndex(function(o){return o.field===e.field}),a=[].concat(Ae(this.groups.slice(0,n)),[e],Ae(this.groups.slice(n+1)));this.change.emit(a)}},{key:"insert",value:function(e,n){var a=this.groups.filter(function(o){return o.field!==e});(a.length||0===this.groups.length)&&this.change.emit([].concat(Ae(a.slice(0,n)),[{field:e}],Ae(a.slice(n))))}},{key:"remove",value:function(e){this.change.emit(this.groups.filter(function(n){return n.field!==e.field}))}},{key:"canDrop",value:function(e,n){var o="groupIndicator"===e.type?B_t:function(r){return KT(R_t,O_t,function(r){return function(t){return!r.isGroupable(t.field)}}(r))}(this.groupInfoService);return!o({field:e.field,groups:this.groups,target:n})}},{key:"attachTargets",value:function(){var e=this;this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Je;var n=this.dropTargets.reduce(function(s,l){return xn(s,l.enter)},wi([])),a=this.dropTargets.reduce(function(s,l){return xn(s,l.leave)},wi([])),o=this.dropTargets.reduce(function(s,l){return xn(s,l.drop)},wi([]));this.targetSubscription.add(n.pipe(At(function(s){return e.hint.removeLock()}),Ue(function(s){return e.canDrop(s.draggable.context,s.target.context)}),At(this.enter.bind(this)),xE(o.pipe(Qr(a.pipe(At(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}},{key:"enter",value:function(e){var n=e.draggable,a=e.target;this.hint.enable();var o=a.context.lastTarget||Ohe(n.element.nativeElement,a.element.nativeElement);this.localization.rtl&&(o=!o),this.cue.position(Ihe(a.element.nativeElement,o))}},{key:"leave",value:function(){this.hint.disable(),this.cue.hide()}},{key:"drop",value:function(e){var n=e.target,o=e.draggable.context.field,s=this.dropTargets.toArray().indexOf(n);this.insert(o,s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(oA),m(sA),m(tA),m(Y),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-group-panel"]],viewQuery:function(t,e){var n;1&t&&ge(Ib,5),2&t&&P(n=B())&&(e.dropTargets=n)},hostVars:4,hostBindings:function(t,e){2&t&&ue("k-grouping-header",e.groupHeaderClass)("k-grouping-header-flex",e.groupHeaderClass)},inputs:{text:"text",groups:"groups"},outputs:{change:"change"},decls:3,vars:3,consts:[[4,"ngIf"],["class","k-indicator-container","kendoDropTarget","",3,"context",4,"ngFor","ngForOf"],["class","k-indicator-container","kendoDropTarget","",3,"context",4,"ngIf"],["kendoDropTarget","",1,"k-indicator-container",3,"context"],["kendoDraggableColumn","","kendoGroupIndicator","","kendoDraggable","",3,"enableDrag","context","group","groupTitle","directionChange","remove"]],template:function(t,e){1&t&&(T(0,Sft,3,3,"ng-container",0),T(1,Eft,2,10,"div",1),T(2,Tft,2,2,"div",2)),2&t&&(y("ngIf",0===e.groups.length),k(1),y("ngForOf",e.groups),k(1),y("ngIf",0!==e.groups.length))},directives:[Vhe,qe,Ib,gn,rU,$o],encapsulation:2,changeDetection:0}),i}(),aU=function(){var i=function(){function r(){p(this,r),this.columns=[],this.groups=[]}return v(r,[{key:"columnsToRender",get:function(){return nd(this.columns)}},{key:"trackBy",value:function(e,n){return e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGridColGroup",""]],inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate"},attrs:Aft,decls:4,vars:4,consts:[[3,"k-group-col",4,"ngFor","ngForOf"],[3,"k-hierarchy-col",4,"ngIf"],[3,"width",4,"ngFor","ngForOf","ngForTrackBy"]],template:function(t,e){1&t&&(Ve(0),T(1,xft,1,2,"col",0),T(2,Mft,1,2,"col",1),T(3,Rft,1,2,"col",2),Ge()),2&t&&(k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsToRender)("ngForTrackBy",e.trackBy))},directives:[gn,qe],encapsulation:2}),i}(),V_t={allowUnsort:!0,mode:"single",showIndexes:!0,initialDirection:"asc",multiSortKey:"none"},dA=function(){for(var r=arguments.length,t=new Array(r),e=0;er?t.filters[r]:function(r,t,e){return(t=t||{filters:[],logic:"and"}).filters[r]=e,e}(r,t,{field:e,operator:n})},Hm=function(r){return[{text:r.get("filterAndLogic"),value:"and"},{text:r.get("filterOrLogic"),value:"or"}]},$he=function i(r){return He(r.filters)?r.filters.reduce(function(t,e){return t.concat(Hc(e)?i(e):[e])},[]):[]},j_t=function i(r,t){He(r)&&He(r.filters)&&(r.filters=r.filters.filter(function(e){return Hc(e)?(i(e,t),e.filters.length):e.field!==t}))},Nb=function(r,t){return $he(r||{}).filter(function(e){return e.field===t})},oU=function(r,t){return j_t(r,t),r},fA=function(r){return function(t){return Object.keys(r).map(function(e){return{text:t.get(e),value:r[e]}})}},Km=function(){var i=function(){function r(t){p(this,r),this.filterService=t,this.operatorList=new Ei}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"operators",get:function(){var e;return(null===(e=this._operators)||void 0===e?void 0:e.length)?this._operators:this.defaultOperators},set:function(e){this._operators=e}},{key:"ngAfterContentInit",value:function(){var e=this;this.operationListSubscription=HT(this.operatorList).pipe(We(function(n){return n.toArray()}),We(hA)).subscribe(function(n){e.operators=n})}},{key:"ngOnDestroy",value:function(){this.operationListSubscription&&this.operationListSubscription.unsubscribe()}},{key:"filterByField",value:function(e){return function(r,t){return Bt(Nb(r,t),1)[0]}(this.filter,e)}},{key:"filtersByField",value:function(e){return Nb(this.filter,e)}},{key:"removeFilter",value:function(e){return oU(this.filter,e)}},{key:"updateFilter",value:function(e){var n=this.filter||{filters:[],logic:"and"},s=Bt($he(n).filter(function(l){return l.field===e.field}),1)[0];return He(s)?Object.assign(s,e):n.filters.push(e),n}},{key:"applyFilter",value:function(e){this.filterService.filter(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-base-filter-cell"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Tn,4),2&t&&P(a=B())&&(e.operatorList=a)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filtercell",e.hostClasses)},inputs:{operators:"operators"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),$_t=function(r,t){return r.field!==t.field||r.operator!==t.operator||r.value!==t.value},sU=function i(r){if(r)return Hc(r)?{filters:i(r.filters),logic:r.logic}:Array.isArray(r)?r.map(i):function(r){return function(r){var t={};if(Object.assign(t,r),r.constructor!==Object){var e=r.constructor.prototype;Object.getOwnPropertyNames(e).forEach(function(n){"constructor"!==n&&e.hasOwnProperty(n)&&(t[n]=r[n])})}return t}(r)}(r)},qhe=function(r,t){return!!(He(r)&&!He(t)||!He(r)&&He(t))||He(r)&&He(t)&&function(r,t){if(r.length!==t.length)return!0;for(var e=0,n=r.length;e0?e.changeRequests.next(n):e.change.emit(n)}),this.subscribeChanges()}},{key:"ngOnChanges",value:function(e){yn("filterDelay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())}},{key:"ngOnDestroy",value:function(){this.unsubscribeChanges(),this.unsubscribeEvents()}},{key:"subscribeChanges",value:function(){var e=this;this.changeRequestsSubscription=this.changeRequests.pipe(function UL(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return oi(function(t,e){var n=null,a=null,o=null,s=function(){if(n){n.unsubscribe(),n=null;var c=a;a=null,e.next(c)}};function l(){var u=o+i,c=r.now();if(c2&&void 0!==arguments[2]?arguments[2]:"and",n=nyt((r||{}).filters||[],t);return He(n)?n.logic:e},lU=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.parentService=t,this.childService=e,this.localization=n,this.cd=a,this.close=new O,this.actionsClass="k-action-buttons k-button-group",this._templateContext={},this.menuTabbingService=o}return v(r,[{key:"filter",get:function(){return this._filter},set:function(e){this._filter=sU(e)}},{key:"childFilter",get:function(){return He(this._childFilter)||(this._childFilter={filters:Nb(this.filter,(this.column||{}).field),logic:iyt(this.filter,(this.column||{}).field)}),this._childFilter}},{key:"ngOnInit",value:function(){var e=this;this.subscription=this.childService.changes.subscribe(function(n){return e._childFilter=n}),this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngAfterViewChecked",value:function(){(!this.menuTabbingService.isColumnMenu||this.isLast&&this.isExpanded)&&(this.menuTabbingService.lastFocusable=this.disabled?this.resetButton.nativeElement:this.filterButton.nativeElement)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.menuTabbingService.lastFocusable=void 0}},{key:"disabled",get:function(){return!this.childFilter.filters.some(sfe)}},{key:"templateContext",get:function(){return this._templateContext.column=this.column,this._templateContext.filter=this.childFilter,this._templateContext.filterService=this.childService,this._templateContext.$implicit=this.childFilter,this._templateContext}},{key:"hasTemplate",get:function(){return He(this.column)&&He(this.column.filterMenuTemplateRef)}},{key:"submit",value:function(){var e=function(r){return r.filters=r.filters.filter(sfe),r}(this.childFilter);if(e.filters.length){var n=this.filter||{filters:[],logic:"and"};oU(n,this.column.field),n.filters.push(e),this.parentService.filter(n)}return this.close.emit(),!1}},{key:"reset",value:function(){var e=this.filter||{filters:[],logic:"and"};oU(e,this.column.field),this.parentService.filter(e),this.close.emit()}},{key:"onTab",value:function(e,n){this.menuTabbingService.firstFocusable&&(!this.menuTabbingService.isColumnMenu||this.isLast)&&(e.preventDefault(),"reset"===n?this.disabled?this.menuTabbingService.firstFocusable.focus():this.filterButton.nativeElement.focus():this.menuTabbingService.firstFocusable.focus())}},{key:"clearText",get:function(){return this.localization.get("filterClearButton")}},{key:"filterText",get:function(){return this.localization.get("filterFilterButton")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la,4),m(la),m(Y),m(nt),m(xb))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-menu-container"]],viewQuery:function(t,e){var n;1&t&&(ge(Vft,5),ge(Gft,5)),2&t&&(P(n=B())&&(e.resetButton=n.first),P(n=B())&&(e.filterButton=n.first))},inputs:{column:"column",isLast:"isLast",isExpanded:"isExpanded",menuTabbingService:"menuTabbingService",filter:"filter",actionsClass:"actionsClass"},outputs:{close:"close"},features:[de([la,xb])],decls:12,vars:7,consts:[[1,"k-filter-menu","k-group","k-reset","k-state-border-up",3,"submit","reset"],[1,"k-filter-menu-container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngClass"],["type","reset",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab"],["resetButton",""],["type","submit",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"disabled","keydown.tab"],["filterButton",""],["kendoFilterMenuHost","",3,"filterService","column","filter","menuTabbingService"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(A(0,"form",0),Q("submit",function(){return e.submit()})("reset",function(){return e.reset()}),A(1,"div",1),Ve(2,2),T(3,Uft,2,4,"ng-container",3),T(4,Kft,2,1,"ng-container",3),Ge(),A(5,"div",4)(6,"button",5,6),Q("keydown.tab",function(a){return e.onTab(a,"reset")}),te(8),x(),A(9,"button",7,8),Q("keydown.tab",function(a){return e.onTab(a,"filter")}),te(11),x()()()()),2&t&&(k(2),y("ngSwitch",e.hasTemplate),k(1),y("ngSwitchCase",!1),k(1),y("ngSwitchCase",!0),k(1),y("ngClass",e.actionsClass),k(3),at(e.clearText),k(1),y("disabled",e.disabled),k(2),at(e.filterText))},directives:[Zee,Fee,BE,kd,Vp,ofe,qe,En,Ft],encapsulation:2}),i}(),uU=function(){var i=function(){function r(t,e,n,a){p(this,r),this.filterService=t,this.popupService=e,this.localization=n,this.navigationService=a,this.tabIndex="-1"}return v(r,[{key:"hasFilters",get:function(){return Nb(this.filter,(this.column||{}).field).length>0}},{key:"filterLabel",get:function(){var e=this.localization.get("filterMenuTitle")||"";return Ea(e,"columnName",this.column.title||this.column.field)}},{key:"toggle",value:function(e,n){return this.popupRef=this.popupService.open(e,n,this.popupRef),this.popupRef||(this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()),!1}},{key:"close",value:function(){this.popupService.destroy(),this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la),m(Ob),m(Y),m(Ua))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-menu"]],viewQuery:function(t,e){var n;1&t&&(ge(Jde,7),ge(ehe,7,$e)),2&t&&(P(n=B())&&(e.anchor=n.first),P(n=B())&&(e.template=n.first))},inputs:{column:"column",filter:"filter",tabIndex:"tabIndex"},decls:5,vars:5,consts:[["href","#",3,"ngClass","tabindex","click","keydown.enter"],["anchor",""],[1,"k-icon","k-i-filter"],["template",""],[3,"column","filter","close","keydown.escape","keydown.enter"]],template:function(t,e){if(1&t){var n=Me();A(0,"a",0,1),Q("click",function(){re(n);var o=Yt(1),s=Yt(4);return e.toggle(o,s)})("keydown.enter",function(o){return o.stopImmediatePropagation()}),z(2,"span",2),x(),T(3,jft,1,2,"ng-template",null,3,$n)}2&t&&(y("ngClass",ot(3,Wft,e.hasFilters))("tabindex",e.tabIndex),ie("title",e.filterLabel))},directives:[lU,Ft],encapsulation:2}),i}(),cU=function(){var i=function(){function r(t){p(this,r),this.closeMenu=new O,this.menuTabbingService=t}return v(r,[{key:"close",value:function(){this.closeMenu.emit()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(xb))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Wm=function(){var i=function(){function r(){p(this,r),this.hostClass=!0}return v(r,[{key:"ngOnInit",value:function(){if(xt()&&!this.service)throw new Error("The service input of the predefined column menu components is mandatory.")}},{key:"close",value:function(){this.service.close()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-menu-item-base"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-columnmenu-item-wrapper",e.hostClass)},inputs:{service:"service"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),$m=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuItemContentTemplate",""]]}),i}(),Ah=function(){var i=function(){function r(){p(this,r),this.itemClick=new O,this.expand=new O,this.collapse=new O,this.contentState="collapsed"}return v(r,[{key:"iconClass",get:function(){return"k-i-".concat(this.icon)}},{key:"ngOnChanges",value:function(e){e.expanded&&this.updateContentState()}},{key:"onClick",value:function(e){this.itemClick.emit(e),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),this.expanded?this.expand.emit():this.collapse.emit())}},{key:"updateContentState",value:function(){this.contentState=this.expanded?"expanded":"collapsed"}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,$m,5),2&t&&P(a=B())&&(e.contentTemplate=a.first)},inputs:{icon:"icon",text:"text",selected:"selected",disabled:"disabled",expanded:"expanded"},outputs:{itemClick:"itemClick",expand:"expand",collapse:"collapse"},features:[Ie],decls:4,vars:8,consts:[["role","button",1,"k-columnmenu-item",3,"click","keydown.enter"],["class","k-icon",3,"ngClass",4,"ngIf"],["style","overflow:hidden;","class","k-columnmenu-item-content",4,"ngIf"],[1,"k-icon",3,"ngClass"],[1,"k-columnmenu-item-content",2,"overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(A(0,"div",0),Q("click",function(a){return e.onClick(a)})("keydown.enter",function(a){return e.onClick(a)}),T(1,$ft,1,1,"span",1),te(2),x(),T(3,qft,3,2,"div",2)),2&t&&(ue("k-state-selected",e.selected)("k-state-disabled",e.disabled),ie("aria-expanded",e.expanded),k(1),y("ngIf",e.icon),k(1),Nt(" ",e.text," "),k(1),y("ngIf",e.contentTemplate))},directives:[qe,Ft,En],encapsulation:2,data:{animation:[ef("state",[Cd("collapsed",Lt({display:"none"})),Cd("expanded",Lt({display:"block"})),iu("collapsed => expanded",[Lt({height:"0px",display:"block"}),Ai("100ms ease-in",Lt({height:"*"}))]),iu("expanded => collapsed",[Lt({height:"*"}),Ai("100ms ease-in",Lt({height:"0px"}))])])]}}),i}(),kA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.columnInfoService=a,s.changeDetector=o,s}return v(e,[{key:"text",get:function(){return this.localization.get(this.locked?"unlock":"lock")}},{key:"icon",get:function(){return this.locked?"unlock":"lock"}},{key:"disabled",get:function(){return!this.locked&&this.columnInfoService.unlockedRootCount<2}},{key:"toggleColumn",value:function(){this.toggleHierarchy(!this.locked),this.close(),this.changeDetector.markForCheck()}},{key:"toggleHierarchy",value:function(a){for(var o=this.service.column;o.parent;)o=o.parent;for(var s=[o],l=[];s.length;){var u=s.shift();u.locked=a,l.push(u),u.hasChildren&&s.push.apply(s,Ae(u.childrenArray))}this.columnInfoService.changeLocked(l)}},{key:"locked",get:function(){return this.service.column.locked}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-lock"]],features:[j],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleColumn()}),x()),2&t&&y("text",e.text)("icon",e.icon)("disabled",e.disabled)},directives:[Ah],encapsulation:2}),i}(),CA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.columnInfoService=a,s.changeDetector=o,s}return v(e,[{key:"text",get:function(){return this.localization.get(this.sticky?"unstick":"stick")}},{key:"icon",get:function(){return this.sticky?"unstick":"stick"}},{key:"disabled",get:function(){return!this.sticky&&this.columnInfoService.unlockedRootCount<2}},{key:"toggleColumn",value:function(){this.toggleHierarchy(!this.sticky),this.close(),this.changeDetector.markForCheck()}},{key:"toggleHierarchy",value:function(a){for(var o=this.service.column;o.parent;)o=o.parent;for(var s=[o],l=[];s.length;){var u=s.shift();u.sticky=a,l.push(u),u.hasChildren&&s.push.apply(s,Ae(u.childrenArray))}this.columnInfoService.changeStuck(l)}},{key:"sticky",get:function(){return this.service.column.sticky}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-stick"]],features:[j],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleColumn()}),x()),2&t&&y("text",e.text)("icon",e.icon)("disabled",e.disabled)},directives:[Ah],encapsulation:2}),i}(),bA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).localization=n,o.hostElement=a,o.expand=new O,o.collapse=new O,o.expanded=!1,o.actionsClass="k-columnmenu-actions",o._isLast=!1,o}return v(e,[{key:"isLast",get:function(){return this._isLast},set:function(a){this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem(),this._isLast=a}},{key:"onTab",value:function(a,o){this.isLast&&o&&(a.preventDefault(),a.stopImmediatePropagation(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}},{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.expand.emit()}},{key:"getLastFocusableItem",value:function(){var a=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item");return a[this.expanded?a.length-1:0]}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-position"]],inputs:{expanded:"expanded",showLock:"showLock",showStick:"showStick",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","set-column-position",3,"text","expanded","keydown.tab","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"service","keydown.tab",4,"ngIf"],[3,"service","keydown.tab"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("keydown.tab",function(a){return e.onTab(a,!e.expanded)})("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,Yft,2,2,"ng-template",1),x()),2&t&&y("text",e.localization.get("setColumnPosition"))("expanded",e.expanded)},directives:[Ah,kA,CA,$m,qe],encapsulation:2}),i}(),dU=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.ngZone=e,this.renderer=n,this.reset=new O,this.apply=new O,this.columnChange=new O,this.autoSync=!0,this.allowHideAll=!1,this.actionsClass="k-action-buttons",this.unlockedCount=0}return v(r,[{key:"className",get:function(){return!0}},{key:"columns",get:function(){return this._columns},set:function(e){this._columns=e.filter(function(n){return!1!==n.includeInChooser}),this.allColumns=e,this.updateColumnState()}},{key:"isDisabled",value:function(e){return!(this.allowHideAll||this.hasFiltered||e.hidden||this.columns.find(function(n){return n!==e&&!n.hidden}))||this.hasVisibleLocked&&!this.hasUnlockedFiltered&&1===this.unlockedCount&&!e.locked&&!e.hidden}},{key:"ngOnInit",value:function(){var e=this;!this.element||this.ngZone.runOutsideAngular(function(){e.domSubscriptions=e.renderer.listen(e.element.nativeElement,"click",function(n){if(Rv(n.target,"k-checkbox"))if(e.autoSync){var a=parseInt(n.target.getAttribute("data-index"),10),o=e.columns[a],s=!n.target.checked;Boolean(o.hidden)!==s&&e.ngZone.run(function(){o.hidden=s,e.columnChange.emit([o])})}else e.updateDisabled()})})}},{key:"ngOnChanges",value:function(e){!this.service||(e.isLast&&this.isLast&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement),e.isExpanded&&this.isExpanded&&this.isLast&&this.applyButton&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement))}},{key:"ngOnDestroy",value:function(){this.domSubscriptions&&this.domSubscriptions()}},{key:"cancelChanges",value:function(){var e=this;this.forEachCheckBox(function(n,a){n.checked=!e.columns[a].hidden}),this.updateDisabled(),this.reset.emit()}},{key:"applyChanges",value:function(){var e=this,n=[];this.forEachCheckBox(function(a,o){var s=e.columns[o],l=!a.checked;Boolean(s.hidden)!==l&&(s.hidden=l,n.push(s))}),this.updateDisabled(),this.apply.emit(n)}},{key:"onTab",value:function(e){this.isLast&&(e.preventDefault(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}},{key:"forEachCheckBox",value:function(e){for(var n=this.element.nativeElement.getElementsByClassName("k-checkbox"),a=n.length,o=0;o0,this.hasVisibleLocked=this.allColumns.filter(function(n){return n.locked&&!n.hidden}).length>0,this.unlockedCount=this.columns.filter(function(n){return!n.locked&&!n.hidden}).length;var e=this.allColumns.filter(function(n){return!1===n.includeInChooser&&!n.hidden});e.length?(this.hasFiltered=e.length>0,this.hasUnlockedFiltered=e.filter(function(n){return!n.locked}).length>0):(this.hasFiltered=!1,this.hasUnlockedFiltered=!1)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnlist"]],viewQuery:function(t,e){var n;1&t&&ge(Qft,5),2&t&&P(n=B())&&(e.applyButton=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-column-list-wrapper",e.className)},inputs:{columns:"columns",autoSync:"autoSync",allowHideAll:"allowHideAll",applyText:"applyText",resetText:"resetText",actionsClass:"actionsClass",isLast:"isLast",isExpanded:"isExpanded",service:"service"},outputs:{reset:"reset",apply:"apply",columnChange:"columnChange"},features:[Ie],decls:3,vars:2,consts:[[1,"k-column-list"],["class","k-column-list-item",4,"ngFor","ngForOf"],[3,"ngClass",4,"ngIf"],[1,"k-column-list-item"],["type","checkbox",1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"checked","disabled"],[1,"k-checkbox-label"],[3,"ngClass"],["type","button",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"click"],["type","button",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab","click"],["applyButton",""]],template:function(t,e){1&t&&(A(0,"div",0),T(1,Jft,4,4,"label",1),x(),T(2,evt,6,3,"div",2)),2&t&&(k(1),y("ngForOf",e.columns),k(1),y("ngIf",!e.autoSync))},directives:[gn,qe,Ft],encapsulation:2}),i}(),SA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this)).localization=n,l.columnInfoService=a,l.changeDetector=o,l.hostElement=s,l.expand=new O,l.collapse=new O,l.expanded=!1,l.isLast=!1,l.actionsClass="k-columnmenu-actions",l}return v(e,[{key:"columns",get:function(){return this.columnInfoService.leafNamedColumns}},{key:"onApply",value:function(a){this.close(),a.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(a))}},{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.expand.emit()}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-chooser"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","columns",3,"text","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"applyText","resetText","columns","autoSync","allowHideAll","actionsClass","isLast","isExpanded","service","apply"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,tvt,1,9,"ng-template",1),x()),2&t&&y("text",e.localization.get("columns"))("expanded",e.expanded)},directives:[Ah,dU,$m],encapsulation:2}),i}(),Lb=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).localization=n,o.hostElement=a,o.expand=new O,o.collapse=new O,o.expanded=!1,o.isLast=!1,o.actionsClass="k-columnmenu-actions",o}return v(e,[{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.expand.emit()}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-filter"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","filter",3,"text","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"column","menuTabbingService","filter","actionsClass","isLast","isExpanded","keydown.shift.tab","close"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,nvt,1,6,"ng-template",1),x()),2&t&&y("text",e.localization.get("filter"))("expanded",e.expanded)},directives:[Ah,lU,$m],encapsulation:2}),i}(),wA=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.hostElement=t,this.renderer=e,this.ngZone=n,this._isFirst=!1,this._isLast=!1,this.subs=new Je,this.onTab=function(o){o.keyCode===J.Tab&&(a.isFirst&&o.shiftKey&&o.target===a.columnMenuItems[0]&&(o.preventDefault(),a.menuItemComponent.service.menuTabbingService.lastFocusable.focus()),a.isLast&&!o.shiftKey)&&a.getLastColumnMenuItem()===o.target&&!a.menuItemComponent.expanded&&(o.preventDefault(),a.menuItemComponent.service.menuTabbingService.firstFocusable.focus())}}return v(r,[{key:"isFirst",get:function(){return this._isFirst},set:function(e){var n=this;if(e){var a=this.columnMenuItems[0];this.menuItemComponent.service.menuTabbingService.firstFocusable=a,this.ngZone.runOutsideAngular(function(){var o=n.renderer.listen(a,"keydown",n.onTab);n.subs.add(o)})}this._isFirst=e}},{key:"isLast",get:function(){return this._isLast},set:function(e){var n=this;if(this.columnMenuItems){if(e){var a=this.getLastColumnMenuItem();this.menuItemComponent.service.menuTabbingService.lastFocusable=a,this.ngZone.runOutsideAngular(function(){var o=n.renderer.listen(a,"keydown",n.onTab);n.subs.add(o)}),this.isExpandableItem()&&(this.menuItemComponent.isLast=!0)}this._isLast=e}}},{key:"ngAfterViewInit",value:function(){var e=this;this.columnMenuItems=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),[].slice.apply(this.columnMenuItems).forEach(function(n){return e.renderer.setAttribute(n,"tabindex","0")}),this.menuItemComponent instanceof Lb&&(this.menuItemComponent.service.menuTabbingService.isColumnMenu=!0)}},{key:"ngOnDestroy",value:function(){this.subs&&this.subs.unsubscribe()}},{key:"getLastColumnMenuItem",value:function(){return 1===this.columnMenuItems.length?this.columnMenuItems[0]:this.columnMenuItems[1]}},{key:"isExpandableItem",value:function(){return this.menuItemComponent instanceof Lb||this.menuItemComponent instanceof SA||this.menuItemComponent instanceof bA}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuItem",""]],inputs:{menuItemComponent:["kendoGridColumnMenuItem","menuItemComponent"]}}),i}(),hU=function(){var i=function(){function r(t,e){p(this,r),this.service=t,this.ngZone=e}return v(r,[{key:"ngAfterContentInit",value:function(){var e=this;!this.columnMenuItems.length||(this.columnMenuItems.first.isFirst=!0,this.columnMenuItems.last.isLast=!0,this.ngZone.onStable.pipe(It(1)).subscribe(function(){return e.service.menuTabbingService.firstFocusable.focus()}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(cU),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-container"]],contentQueries:function(t,e,n){var a;1&t&&he(n,wA,5),2&t&&P(a=B())&&(e.columnMenuItems=a)},ngContentSelectors:uG,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),fU=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.sortService=a,s.renderer=o,s}return v(e,[{key:"sortedAsc",get:function(){var a=this.descriptor;return a&&(!a.dir||"asc"===a.dir)}},{key:"sortedDesc",get:function(){var a=this.descriptor;return a&&"desc"===a.dir}},{key:"toggleSort",value:function(a){var o=this.service.column.field,s=dA(this.service.sortable),u=s.allowUnsort,c=this.descriptor,d="multiple"===s.mode?this.service.sort.filter(function(h){return h.field!==o}):[];if(c&&c.dir===a){if(!u)return}else d.push({field:o,dir:a});this.sortService.sort(d),this.close()}},{key:"descriptor",get:function(){var a=this;return[].concat(this.service.sort||[]).find(function(o){return o.field===a.service.column.field})}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(lA),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-sort"]],features:[j],decls:2,vars:4,consts:[["icon","sort-asc-sm",3,"text","selected","itemClick"],["icon","sort-desc-sm",3,"text","selected","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleSort("asc")}),x(),A(1,"kendo-grid-columnmenu-item",1),Q("itemClick",function(){return e.toggleSort("desc")}),x()),2&t&&(y("text",e.localization.get("sortAscending"))("selected",e.sortedAsc),k(1),y("text",e.localization.get("sortDescending"))("selected",e.sortedDesc))},directives:[Ah],encapsulation:2}),i}(),DA=function(){var i=function(){function r(t,e,n,a){p(this,r),this.popupService=t,this.localization=e,this.service=n,this.navigationService=a,this.standalone=!0,this.settings={},this.sortable=!0,this.tabIndex="-1",this.expandedFilter=!1,this.expandedColumns=!1,this.expandedPosition=!1,this.closeSubscription=n.closeMenu.subscribe(this.close.bind(this))}return v(r,[{key:"isActive",get:function(){var e=this;return this.hasFilter&&Nb(this.filter,this.column.field).length>0||!this.sortable&&this.hasSort&&this.sort.find(function(n){return n.field===e.column.field})}},{key:"hasFilter",get:function(){return zhe(this.settings,this.column)}},{key:"hasSort",get:function(){return Hhe(this.settings,this.column)}},{key:"hasColumnChooser",get:function(){return jhe(this.settings)}},{key:"hasLock",get:function(){return Khe(this.settings,this.column)}},{key:"hasStick",get:function(){return function(r,t){return r.stick&&t.stickable&&!(t.parent&&!t.parent.isSpanColumn)}(this.settings,this.column)}},{key:"hasPosition",get:function(){return function(r,t){return r.setColumnPosition&&(t.stickable||t.lockable)&&!(t.parent&&!t.parent.isSpanColumn)}(this.settings,this.column)}},{key:"ngOnChanges",value:function(){this.service.column=this.column,this.service.sort=this.sort,this.service.filter=this.filter,this.service.sortable=this.sortable}},{key:"ngOnDestroy",value:function(){this.close(),this.closeSubscription.unsubscribe()}},{key:"toggle",value:function(e,n,a){e&&(e.preventDefault(),e.stopImmediatePropagation()),this.expandedFilter=this.getExpandedState(this.settings.filter),this.expandedColumns=this.getExpandedState(this.settings.columnChooser),this.expandedPosition=this.getExpandedState(this.settings.setColumnPosition),this.popupRef=this.popupService.open(n,a,this.popupRef,"k-grid-columnmenu-popup"),this.popupRef||(this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus())}},{key:"close",value:function(){this.popupService.destroy(),this.popupRef=null,this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}},{key:"columnMenuTitle",get:function(){var e=this.localization.get("columnMenu")||"";return Ea(e,"columnName",this.column.title||this.column.field)}},{key:"getExpandedState",value:function(e){return"object"==typeof e&&e.expanded}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ob),m(Y),m(cU),m(Ua))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-menu"]],viewQuery:function(t,e){var n;1&t&&(ge(Jde,7),ge(ehe,7,$e)),2&t&&(P(n=B())&&(e.anchor=n.first),P(n=B())&&(e.template=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-column-menu-standalone",e.standalone)},inputs:{standalone:"standalone",column:"column",settings:"settings",sort:"sort",filter:"filter",sortable:"sortable",columnMenuTemplate:"columnMenuTemplate",tabIndex:"tabIndex"},features:[de([cU,xb]),Ie],decls:7,vars:5,consts:[["href","#",1,"k-grid-column-menu","k-grid-filter",3,"ngClass","tabindex","click","keydown.enter"],["anchor",""],[1,"k-icon","k-i-more-vertical"],["template",""],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"keydown.escape","keydown.enter"],[3,"kendoGridColumnMenuItem","service",4,"ngIf"],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"kendoGridColumnMenuItem","service"],["sortItem",""],["lockItem",""],["stickItem",""],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded"],["positionItem",""],[3,"kendoGridColumnMenuItem","service","expanded"],["chooserItem",""],["filterItem",""]],template:function(t,e){if(1&t){var n=Me();A(0,"a",0,1),Q("click",function(o){re(n);var s=Yt(1),l=Yt(4);return e.toggle(o,s,l)})("keydown.enter",function(o){return o.stopImmediatePropagation()}),z(2,"span",2),x(),T(3,rvt,1,5,"ng-template",null,3,$n),T(5,dvt,7,6,"ng-template",null,4,$n)}2&t&&(y("ngClass",ot(3,hvt,e.isActive))("tabindex",e.tabIndex),ie("title",e.columnMenuTitle))},directives:[hU,fU,kA,CA,bA,SA,Lb,Ft,En,qe,wA],encapsulation:2}),i}(),vU=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.clearText="Clear",this.operators=[],this.showOperators=!0,this.valueChange=new O,this.clear=new O}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"onChange",value:function(e){this.valueChange.emit(e)}},{key:"clearClick",value:function(){return this.clear.emit(),!1}},{key:"clearKeydown",value:function(e){(e.keyCode===J.Enter||e.keyCode===J.Space)&&this.clear.emit()}},{key:"dropdownKeydown",value:function(e){e.defaultPrevented||e.keyCode===J.Enter&&!this.dropdown.isOpen&&(this.dropdown.toggle(!0),e.preventDefault())}},{key:"ngOnInit",value:function(){var e=this;this.localization.changes.subscribe(function(){return e.clearText=e.localization.get("filterClearButton")})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-cell-operators"]],viewQuery:function(t,e){var n;1&t&&ge(fvt,5),2&t&&P(n=B())&&(e.dropdown=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filtercell-operator",e.hostClasses)},inputs:{operators:"operators",showButton:"showButton",showOperators:"showOperators",value:"value"},outputs:{valueChange:"valueChange",clear:"clear"},decls:2,vars:2,consts:[["kendoGridFocusable","","class","k-dropdown-operator","iconClass","k-i-filter","textField","text","valueField","value",3,"data","value","valuePrimitive","popupSettings","valueChange","keydown",4,"ngIf"],["type","button","kendoGridFocusable","","class","k-button k-button-solid-base k-button-solid k-button-md k-rounded-md k-button-rectangle k-icon-button",3,"title","click","keydown",4,"ngIf"],["kendoGridFocusable","","iconClass","k-i-filter","textField","text","valueField","value",1,"k-dropdown-operator",3,"data","value","valuePrimitive","popupSettings","valueChange","keydown"],["dropdown",""],["type","button","kendoGridFocusable","",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"title","click","keydown"],[1,"k-icon","k-button-icon","k-i-filter-clear"]],template:function(t,e){1&t&&(T(0,vvt,2,5,"kendo-dropdownlist",0),T(1,pvt,2,1,"button",1)),2&t&&(y("ngIf",e.showOperators),k(1),y("ngIf",e.showButton))},directives:[js,qe,co],encapsulation:2}),i}(),ayt=["isnull","isnotnull","isempty","isnotempty"],qm=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,n)).showOperators=!0,a}return v(e,[{key:"hostClasses",get:function(){return!0}},{key:"overrideBaseClasses",get:function(){return!1}},{key:"showButton",get:function(){var a=this.currentFilter;return He(a)&&(!Dr(a.value)||ayt.indexOf(String(a.operator))>=0)}},{key:"filterChange",value:function(a){this.applyFilter(a)}}]),e}(Yhe);return i.\u0275fac=function(t){return new(t||i)(m(la))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-wrapper-cell"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-filtercell-wrapper",e.hostClasses)("k-filtercell",e.overrideBaseClasses)},inputs:{showOperators:"showOperators"},features:[j],ngContentSelectors:uG,decls:2,vars:4,consts:[[3,"showOperators","operators","showButton","value","clear","valueChange"]],template:function(t,e){1&t&&(kn(),dn(0),A(1,"kendo-grid-filter-cell-operators",0),Q("clear",function(){return e.onClear()})("valueChange",function(a){return e.currentOperator=a}),x()),2&t&&(k(1),y("showOperators",e.showOperators)("operators",e.operators)("showButton",e.showButton)("value",e.currentOperator))},directives:[vU],encapsulation:2}),i}(),Pb=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).filterDelay=500,o.showOperators=!0,o}return v(e,[{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(Zhe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-string-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[j],decls:2,vars:8,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoTextBox","","kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","ngModel"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"input",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("filterDelay",e.filterDelay)("ngModel",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,TP,zc,co,$u,jf,Wf],encapsulation:2}),i}(),EA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).localization=a,o.filterDelay=500,o.showOperators=!0,o}return v(e,[{key:"messageFor",value:function(a){return this.localization.get(a)}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(efe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-numeric-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[j],decls:3,vars:17,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","step"],[3,"increment","decrement"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-numerictextbox",1),z(2,"kendo-numerictextbox-messages",2),x()()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("filterDelay",e.filterDelay)("autoCorrect",!0)("value",null==e.currentFilter?null:e.currentFilter.value)("format",e.format)("decimals",e.decimals)("spinners",e.spinners)("min",e.min)("max",e.max)("step",e.step),k(1),y("increment",e.messageFor("filterNumericIncrement"))("decrement",e.messageFor("filterNumericDecrement")))},directives:[qm,Jf,hie,co,$u],encapsulation:2}),i}(),TA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a)).cd=o,s}return v(e,[{key:"localizationChange",value:function(){$(q(e.prototype),"localizationChange",this).call(this),this.cd.markForCheck()}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(afe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-boolean-filter-cell"]],features:[j],decls:2,vars:11,consts:[[3,"column","filter","showOperators","defaultOperator"],["kendoFilterInput","","kendoGridFocusable","","textField","text","valueField","value",3,"columnLabel","defaultItem","data","popupSettings","valuePrimitive","value"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"kendo-dropdownlist",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("showOperators",!1)("defaultOperator",e.operator),k(1),y("columnLabel",e.columnLabel)("defaultItem",e.defaultItem)("data",e.items)("popupSettings",wt(10,the))("valuePrimitive",!0)("value",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,js,$u,co],encapsulation:2}),i}(),AA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).localization=a,o.showOperators=!0,o}return v(e,[{key:"messageFor",value:function(a){return this.localization.get(a)}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(ife);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-date-filter-cell"]],inputs:{showOperators:"showOperators"},features:[j],decls:3,vars:18,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoFilterInput","","kendoGridFocusable","",3,"columnLabel","value","format","formatPlaceholder","placeholder","activeView","bottomView","topView","min","max","weekNumber"],[3,"toggle","today"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-datepicker",1),z(2,"kendo-datepicker-messages",2),x()()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("value",null==e.currentFilter?null:e.currentFilter.value)("format",e.format)("formatPlaceholder",e.formatPlaceholder)("placeholder",e.placeholder)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("min",e.min)("max",e.max)("weekNumber",e.weekNumber),k(1),y("toggle",e.messageFor("filterDateToggle"))("today",e.messageFor("filterDateToday")))},directives:[qm,GB,Bse,$u,co],encapsulation:2}),i}(),lfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){return p(this,e),t.call(this,n,a)}return v(e,[{key:"componentType",value:function(){return Dr(this.column.filter)?Pb:function(r){return{boolean:TA,date:AA,numeric:EA,text:Pb}[r]}(this.column.filter)}}]),e}(Xhe);return i.\u0275fac=function(t){return new(t||i)(m(ei),m(Ts))},i.\u0275dir=X({type:i,selectors:[["","kendoFilterCellHost",""]],features:[j]}),i}(),pU=function(){var i=function(){function r(){p(this,r),this._templateContext={}}return v(r,[{key:"filter",get:function(){return this._filter},set:function(e){this._filter=sU(e)}},{key:"templateContext",get:function(){return this._templateContext.column=this.column,this._templateContext.filter=this.filter,this._templateContext.$implicit=this.filter,this._templateContext}},{key:"hasTemplate",get:function(){return He(this.column.filterCellTemplateRef)}},{key:"isFilterable",get:function(){return He(this.column)&&!Dr(this.column.field)&&this.column.filterable}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFilterCell",""]],inputs:{column:"column",filter:"filter"},attrs:gvt,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["kendoFilterCellHost","",3,"column","filter"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&T(0,Cvt,4,3,"ng-container",0),2&t&&y("ngIf",e.isFilterable)},directives:[qe,kd,Vp,lfe,En],encapsulation:2}),i}(),syt=0,Xm=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.focusGroup=t,this.element=e,this.columnInfoService=n,this.idService=a,this.navigationService=o,this.renderer=s,this.zone=l,this.cellContext=u,this.logicalSlaveCell=!1,this.colSpan=1,this.rowSpan=1,this.dataRowIndex=-1,this.detailExpandCell=!1,this.uid=function lyt(){return syt++}()}return v(r,[{key:"id",get:function(){if(!this.logicalSlaveCell&&this.columnInfoService.isLocked)return this.idService.cellId(this.logicalRowIndex,this.logicalColIndex)}},{key:"ariaColIndex",get:function(){if(!this.logicalSlaveCell&&-1!==this.logicalColIndex)return this.logicalColIndex+1}},{key:"ngOnInit",value:function(){var e=this;!this.navigationService.enabled||(this.navigationChange=this.navigationService.changes.subscribe(function(n){return e.onNavigationChange(n)}))}},{key:"ngDoCheck",value:function(){!this.navigationService.enabled||-1===this.logicalColIndex||(this.cellContext&&(this.cellContext.focusGroup=this.focusGroup),this.registerNoChanges())}},{key:"ngOnChanges",value:function(e){if(this.navigationService.enabled){var n=Object.keys(e);if((1!==n.length||"groupItem"!==n[0])&&-1!==this.logicalColIndex){var a=e.logicalColIndex,o=e.logicalRowIndex,s=a&&!a.isFirstChange()?a.previousValue:this.logicalColIndex,l=o&&!o.isFirstChange()?o.previousValue:this.logicalRowIndex;this.navigationService.unregisterCell(s,l,this),this.registerChanges(),this.updateElement()}}}},{key:"ngOnDestroy",value:function(){this.navigationChange&&this.navigationChange.unsubscribe(),this.navigationService.unregisterCell(this.logicalColIndex,this.logicalRowIndex,this)}},{key:"onNavigationChange",value:function(e){(this.logicalColIndex===e.colIndex&&this.logicalRowIndex===e.rowIndex||this.logicalColIndex===e.prevColIndex&&this.logicalRowIndex===e.prevRowIndex)&&this.updateElement()}},{key:"updateElement",value:function(){var e=this,n=this.element.nativeElement;this.renderer.setAttribute(n,"tabIndex",this.isFocusable()&&!this.logicalSlaveCell?"0":"-1"),this.isFocused()?(this.focusGroup.isNavigable()?this.focusGroup.focus():(!this.logicalSlaveCell&&this.navigationService.autoFocusCell(this.logicalColIndex,this.logicalColIndex+this.colSpan-1)&&this.microtask(function(){return e.isFocused()&&n.focus()}),this.renderer.addClass(n,"k-state-focused")),this.headerLabelText&&n.setAttribute("aria-label","")):(this.renderer.removeClass(n,"k-state-focused"),this.headerLabelText&&n.setAttribute("aria-label",this.headerLabelText))}},{key:"microtask",value:function(e){this.zone.runOutsideAngular(function(){return Promise.resolve(null).then(e)})}},{key:"registerChanges",value:function(){this.logicalSlaveCell||this.navigationService.registerCell(this)}},{key:"registerNoChanges",value:function(){this.logicalSlaveCell||this.navigationService.registerCellOnCurrentRow(this)}},{key:"isFocusable",value:function(){return this.navigationService.isCellFocusable(this)}},{key:"isFocused",value:function(){return this.navigationService.isCellFocused(this)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gm),m(_e),m(fs),m(Bl),m(Ua),m(Ee),m(be),m(td,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLogicalCell",""]],hostVars:2,hostBindings:function(t,e){2&t&&ie("id",e.id)("aria-colindex",e.ariaColIndex)},inputs:{logicalColIndex:"logicalColIndex",logicalRowIndex:"logicalRowIndex",logicalSlaveCell:"logicalSlaveCell",colIndex:"colIndex",colSpan:"colSpan",rowSpan:"rowSpan",groupItem:"groupItem",dataRowIndex:"dataRowIndex",dataItem:"dataItem",detailExpandCell:"detailExpandCell",headerLabelText:"headerLabelText"},features:[de([{provide:Gm,deps:[Eh],useClass:Gm}]),Ie]}),i}(),gU=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.columnInfoService=e,this.columns=[],this.groups=[],this.filterRowClass=!0}return v(r,[{key:"addStickyStyles",value:function(e){var n=e.sticky?this.columnInfoService.stickyColumnsStyles(e):null;return Object.assign(Object.assign({},n),e.filterStyle)}},{key:"filterLabel",value:function(e){var n=this.localization.get("filterInputLabel")||"";return Ea(n,"columnName",e.title||e.field)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFilterRow",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filter-row",e.filterRowClass)},inputs:{columns:"columns",filter:"filter",groups:"groups",detailTemplate:"detailTemplate",logicalRowIndex:"logicalRowIndex",lockedColumnsCount:"lockedColumnsCount"},attrs:bvt,decls:3,vars:3,consts:[["role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["kendoGridFilterCell","","kendoGridLogicalCell","",3,"k-grid-header-sticky","ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf"],["role","presentation"],["kendoGridFilterCell","","kendoGridLogicalCell","",3,"ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex"]],template:function(t,e){1&t&&(T(0,Svt,1,2,"td",0),T(1,wvt,1,2,"td",1),T(2,Dvt,1,9,"td",2)),2&t&&(y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columns))},directives:[pU,gn,qe,Xm,Gi,Ft],encapsulation:2}),i}(),uyt=0,xA=function(){var i=function(){function r(t,e){p(this,r),this.idService=t,this.navigation=e,this.logicalSlaveRow=!1,this.logicalSlaveCellsCount=0,this.dataRowIndex=-1,this.uid=function cyt(){return uyt++}()}return v(r,[{key:"hostRole",get:function(){return this.logicalSlaveRow?"presentation":"row"}},{key:"ariaRowIndex",get:function(){return this.logicalRowIndex+1}},{key:"ariaOwns",get:function(){if(this.navigation.enabled&&!this.logicalSlaveRow&&0!==this.logicalSlaveCellsCount){for(var e=[],n=this.logicalCellsCount+this.logicalSlaveCellsCount,a=this.logicalCellsCount;a0||e>0}}()&&void 0===this.selectionService.selectAllState,a=!!n||this.el.nativeElement.checked,o=this.selectionService.options,s=o.enabled&&"multiple"===o.mode,l=ut(this.selectAllChange);(s||l)&&this.ngZone.run(function(){s&&e.selectionService.updateAll(a),l&&e.selectAllChange.emit(a?"checked":"unchecked")})}},{key:"setState",value:function(){var e=this.stateSet?this.stateToBool():this.selectionService.selectAllState,n=this.el.nativeElement;this.renderer.setProperty(n,"indeterminate",!He(e)),this.renderer.setProperty(n,"checked",!!He(e)&&e)}},{key:"stateToBool",value:function(){switch(this.state){case"checked":return!0;case"unchecked":return!1;default:return}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Lm),m(_e),m(Ee),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectAllCheckbox",""]],hostVars:1,hostBindings:function(t,e){2&t&&ie("type",e.type)},inputs:{state:"state"},outputs:{selectAllChange:"selectAllChange"},features:[Ie]}),i}(),_U=function(r){return r.nativeElement.parentElement.offsetWidth},ufe=function(r){return Wu(r).filter(function(t){return!t.isColumnGroup})},fyt=function(r){var t=r.originalEvent;t.stopPropagation(),t.preventDefault()},cfe=function(r){return!(!r.parent||!r.parent.isSpanColumn)},dfe=function(){var i=function(){function r(t,e,n,a,o,s,l){p(this,r),this.draggable=t,this.element=e,this.service=n,this.zone=a,this.cdr=o,this.localization=s,this.columnInfoService=l,this.columns=[],this.subscriptions=new Je,this.rtl=!1}return v(r,[{key:"visible",get:function(){return this.column.resizable?"block":"none"}},{key:"leftStyle",get:function(){return hs(this.rtl)?0:null}},{key:"rightStyle",get:function(){return hs(this.rtl)?null:0}},{key:"autoFit",value:function(){var e=this,n=ufe(this.columns),a=QT([this.column]).filter(function(s){return hs(s.resizable)}),o=a.map(function(s){var l=cfe(s),u=!!l&&s.parent.childColumns.last===s,c=function(r,t){for(var e=0,n=0,a=0;ethis.column.minResizableWidth?a:this.column.minResizableWidth-this.column.resizeStartWidth;this.updateWidth(this.column,o),this.service.resizeTable(this.column,s)}},{key:"sizeToFit",value:function(e){var a=e.widths,o=e.columns.indexOf(this.column),s=Math.max.apply(Math,Ae(a.map(function(u){return u[o]})))+1,l=s-this.column.resizeStartWidth;this.updateWidth(this.column,s),this.service.resizeTable(this.column,l)}},{key:"updateWidth",value:function(e,n){e.width=n,this.columnInfoService.hiddenColumns.forEach(function(a){Sb(a.width)&&He(a.implicitWidth)&&(a.width=a.implicitWidth)}),this.cdr.markForCheck()}},{key:"columnsForLevel",value:function(e){return nd(this.columns?this.columns.filter(function(n){return n.level===e}):[])}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(_e),m(Rb),m(be),m(nt),m(Y),m(fs))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnHandle",""]],hostVars:6,hostBindings:function(t,e){1&t&&Q("dblclick",function(){return e.autoFit()}),2&t&&Qe("display",e.visible)("left",e.leftStyle)("right",e.rightStyle)},inputs:{columns:"columns",column:"column"}}),i}(),MA=function(){for(var r=arguments.length,t=new Array(r),e=0;e=0},function(r){return r.draggable.context.column.reorderable},function(r){return!_he(r.draggable.context.column)},function(r){return r.draggable.element.nativeElement!==r.target.element.nativeElement},function(r){return Cyt(r.draggable.context.column,r.target.context.column)},Db(function(r){var t=r.draggable;return!hs(t.context.column.locked)&&function(r){return!hs(r.parent)}(t.context.column)&&t.context.lastColumn}),function(r){var t=r.draggable;return!1!==t.context.column.lockable||t.context.column.isLocked===r.target.context.column.isLocked}),Ayt=["alt","ctrl","shift","meta"],hfe=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c){p(this,r),this.popupService=t,this.hint=e,this.cue=n,this.reorderService=a,this.idService=o,this.sortService=s,this.localization=l,this.columnInfoService=u,this.cd=c,this.columns=[],this.groups=[],this.sort=new Array,this.sortable=!1,this.groupable=!1,this.lockedColumnsCount=0,this.resizable=!1,this.reorderable=!1,this.columnMenu=!1,this.totalColumnsCount=0,this.sortedFields={},this.dropTargets=new Ei,this.subscription=new Je}return v(r,[{key:"headerClass",get:function(){return!this.scrollable}},{key:"sortableLabel",get:function(){return this.localization.get("sortable")}},{key:"columnMenuSettings",get:function(){return this.columnMenu}},{key:"unlockedColumnsCount",get:function(){return this.totalColumnsCount-this.lockedColumnsCount-this.columns.length}},{key:"sortColumn",value:function(e){this.sortService.sort(e)}},{key:"getColumnComponent",value:function(e){return e}},{key:"onSortClick",value:function(e,n,a){var o=n.target;if(!e.headerTemplateRef||o===a||!Boolean(pG(o,she,a))){var l=this.matchModifier(n),u=this.toggleSort(e,l);this.sortColumn(u)}}},{key:"onHeaderKeydown",value:function(e,n){if(n.keyCode===J.ArrowDown&&n.altKey&&this.showFilterMenu){n.preventDefault(),n.stopImmediatePropagation();var a=this.filterMenus.find(function(l){return l.column===e});a.toggle(a.anchor.nativeElement,a.template)}if(n.keyCode===J.ArrowDown&&n.altKey&&this.showColumnMenu(e)){n.preventDefault(),n.stopImmediatePropagation();var o=this.columnMenus.find(function(l){return l.column===e});o.toggle(null,o.anchor.nativeElement,o.template)}if(this.sortable&&!n.defaultPrevented&&!1!==e.sortable&&n.keyCode===J.Enter&&He(e.field)){var s=this.matchModifier(n);this.sortService.sort(this.toggleSort(e,s))}}},{key:"showSortNumbering",value:function(e){return dA(this.sortable).showIndexes&&this.sort&&this.sort.filter(function(o){return He(o.dir)}).length>1&&this.sortOrder(e.field)>0}},{key:"sortOrder",value:function(e){return this.sort.filter(function(n){return He(n.dir)}).findIndex(function(n){return n.field===e})+1}},{key:"sortIcon",value:function(e){var n=this.sortDescriptor(e);return{"k-icon":He(n.dir),"k-i-sort-desc-sm":"desc"===n.dir,"k-i-sort-asc-sm":"asc"===n.dir}}},{key:"sortState",value:function(e){if(this.isSortable(e)){var n=this.sortDescriptor(e.field);if("asc"===n.dir)return"ascending";if("desc"===n.dir)return"descending"}}},{key:"sortStatus",value:function(e){if(this.sortedFields[e.field]&&this.isSortable(e)){var n="sortedDefault",a=this.sortDescriptor(e.field);return"asc"===a.dir?n="sortedAscending":"desc"===a.dir&&(n="sortedDescending"),this.localization.get(n)}}},{key:"toggleSort",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=dA(this.sortable,e.sortable),o=a.allowUnsort,s=a.mode,l=a.initialDirection,u=this.toggleDirection(e.field,o,l);return"single"!==s&&n?[].concat(Ae(this.sort.filter(function(c){return c.field!==e.field})),[u]):[u]}},{key:"matchModifier",value:function(e){var a=dA(this.sortable).multiSortKey;return"none"===a?Ayt.every(function(o){return!e["".concat(o,"Key")]}):"ctrl"===a?e.ctrlKey||e.metaKey:e["".concat(a,"Key")]}},{key:"ngAfterViewInit",value:function(){this.subscription.add(HT(this.dropTargets).subscribe(this.attachTargets.bind(this)))}},{key:"ngDoCheck",value:function(){this._leafColumns=nd(this.columns||[]).filter(function(e){return!Bm(e)})}},{key:"ngOnChanges",value:function(e){var n=this,a=e.sort;a&&!a.isFirstChange()&&a.currentValue.forEach(function(o){n.sortedFields[o.field]=!0})}},{key:"ngOnInit",value:function(){var e=this;this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngOnDestroy",value:function(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.popupService&&this.popupService.destroy(),this.subscription.unsubscribe()}},{key:"selectAllCheckboxId",value:function(){return this.idService.selectAllCheckboxId()}},{key:"selectAllCheckboxLabel",get:function(){return this.localization.get("selectAllCheckboxLabel")}},{key:"isFirstOnRow",value:function(e,n){var a=this;return 0===n&&!this.groups.length&&!this.detailTemplate&&function s(l){return l&&(a.columnsForLevel(l.level).indexOf(l)>0||s(l.parent))}(e.parent)}},{key:"logicalColumnIndex",value:function(e){var n=e.leafIndex;return He(n)?n+(He(this.detailTemplate)?1:0):-1}},{key:"showFilterMenu",get:function(){return!this.columnMenu&&function(r){return"string"==typeof r&&r.indexOf("menu")>-1}(this.filterable)}},{key:"showFilterRow",get:function(){return aA(this.filterable)}},{key:"showColumnMenu",value:function(e){return this.columnMenu&&e.columnMenu&&(this.columnMenuTemplate||e.columnMenuTemplates.length||function(r,t){return jhe(r)||Khe(r,t)||Hhe(r,t)||zhe(r,t)}(this.columnMenu,e))}},{key:"isFilterable",value:function(e){return!Dr(e.field)&&!0===e.filterable}},{key:"canDrop",value:function(e,n){return this.reorderable&&Tyt({draggable:e,target:n})}},{key:"shouldActivate",value:function(e){var n=this.reorderable&&e.reorderable;return!(!n&&!Ab(e))&&(this.groupable&&Ab(e)&&!1!==e.groupable||n)}},{key:"isSortable",value:function(e){return!Dr(e.field)&&hs(this.sortable)&&hs(e.sortable)}},{key:"isCheckboxColumn",value:function(e){return vhe(e)&&!e.templateRef}},{key:"trackByIndex",value:function(e,n){return e}},{key:"addStickyStyles",value:function(e){var n=this.columnInfoService.stickyColumnsStyles(e);return Object.assign(Object.assign({},e.style),n)}},{key:"toggleDirection",value:function(e,n,a){var o=this.sortDescriptor(e),s=function(r){return"asc"===r?["asc","desc"]:["desc","asc"]}(a),l=Bt(s,2),u=l[0],c=l[1],d=u;return o.dir===u?d=c:o.dir===c&&n&&(d=void 0),{dir:d,field:e}}},{key:"columnsForLevel",value:function(e){var n=this.columns?this.columns.filter(function(a){return a.level===e}):[];return Fv(nd(n))}},{key:"isColumnGroupComponent",value:function(e){return Bm(e)}},{key:"columnLevels",get:function(){return new Array((this.totalColumnLevels||0)+1)}},{key:"sortDescriptor",value:function(e){return this.sort.find(function(n){return n.field===e})||{field:e}}},{key:"leafColumns",get:function(){return this._leafColumns}},{key:"attachTargets",value:function(){var e=this;this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Je;var n=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.enter}))),a=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.leave}))),o=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.drop})));this.targetSubscription.add(n.pipe(At(function(s){var u=s.draggable;if("groupIndicator"!==u.context.type){var c=hs(s.target.context.column.isLocked),d=hs(u.context.column.isLocked);(e.lockedColumnsCount>0||c||d)&&e.hint.toggleLock(c)}}),Ue(function(s){return e.canDrop(s.draggable,s.target)}),Nn(this.trackMove.bind(this,a,o)),We(function(s){return MA(s,{before:e.calculateBefore(s),changeContainer:s.changeContainer})}),We(this.normalizeTarget.bind(this)),At(this.enter.bind(this)),Nn(function(s){return o.pipe(We(function(){return s}),Qr(a.pipe(At(e.leave.bind(e)))))})).subscribe(this.drop.bind(this)))}},{key:"normalizeTarget",value:function(e){var n=e.target,a=n.context.column.parent;if(a&&a.isSpanColumn){var o=this.dropTargets.toArray(),s=o.find(function(c){return c.context.column.parent===a}),l=o.indexOf(s);n=o[l+(e.before?0:a.childColumns.length-1)]}return MA(e,{target:n})}},{key:"trackMove",value:function(e,n,a){var o=a.target.context.column,s=this.columnsForLevel(o.level),l=s.indexOf(o),c=a.draggable.context.column.isLocked!==o.isLocked;return c&&(o.locked?l===s.length-1:0===l)?a.draggable.drag.pipe(Qr(e),Qr(n),We(function(d){return MA({changeContainer:!0},a,{mouseEvent:d.mouseEvent})})):lt(MA({changeContainer:c},a))}},{key:"calculateBefore",value:function(e){var n=e.draggable,o=e.mouseEvent,s=e.changeContainer,u=e.target.element.nativeElement,c=!1;return void 0!==s&&s?(c=Rhe(u).left+u.offsetWidth/2>o.pageX,this.localization.rtl&&(c=!c)):c=Ohe(n.element.nativeElement,u),c}},{key:"enter",value:function(e){var n=e.target,a=e.before;this.hint.enable(),this.localization.rtl&&(a=!a),this.cue.position(Ihe(n.element.nativeElement,a))}},{key:"leave",value:function(){this.hint.disable(),this.cue.hide()}},{key:"drop",value:function(e){this.reorderService.reorder({before:e.before,changeContainer:e.changeContainer,source:e.draggable.context.column,target:e.target.context.column})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ob),m(oA),m(sA),m(KG),m(Bl),m(lA),m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridHeader",""]],viewQuery:function(t,e){var n;1&t&&(ge(Ib,5),ge(uU,5),ge(DA,5)),2&t&&(P(n=B())&&(e.dropTargets=n),P(n=B())&&(e.filterMenus=n),P(n=B())&&(e.columnMenus=n))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-header",e.headerClass)},inputs:{totalColumnLevels:"totalColumnLevels",columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",filterable:"filterable",sort:"sort",filter:"filter",sortable:"sortable",groupable:"groupable",lockedColumnsCount:"lockedColumnsCount",resizable:"resizable",reorderable:"reorderable",columnMenu:"columnMenu",columnMenuTemplate:"columnMenuTemplate",totalColumnsCount:"totalColumnsCount",tabIndex:"tabIndex"},features:[Ie],attrs:Evt,decls:3,vars:2,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngFor","ngForOf"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["class","k-group-cell k-header","role","presentation",4,"ngFor","ngForOf"],["class","k-hierarchy-cell k-header","role","presentation","kendoGridLogicalCell","","aria-selected","false",3,"logicalRowIndex","logicalColIndex",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","presentation",1,"k-group-cell","k-header"],["role","presentation","kendoGridLogicalCell","","aria-selected","false",1,"k-hierarchy-cell","k-header",3,"logicalRowIndex","logicalColIndex"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","enableDrag","context","k-filterable","k-first","k-grid-header-sticky","ngClass","ngStyle","keydown",4,"ngIf"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","k-first","k-filterable","k-grid-content-sticky","ngClass","ngStyle",4,"ngIf"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","enableDrag","context","ngClass","ngStyle","keydown"],[4,"ngIf"],["kendoGridColumnHandle","","kendoDraggable","","class","k-column-resizer",3,"column","columns",4,"ngIf"],[3,"column","filter","tabIndex",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex",4,"ngIf"],[3,"templateContext"],[3,"column","filter","tabIndex"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex"],[1,"k-cell-inner"],[1,"k-link",3,"click"],["link",""],["role","note",3,"ngClass"],["class","k-sort-order",4,"ngIf"],["role","status",1,"k-sort-status",2,"position","absolute","left","-10000px",3,"innerHtml"],[1,"k-column-title"],[1,"k-sort-order"],["kendoGridSelectAllCheckbox","","kendoGridFocusable","",1,"k-checkbox","k-checkbox-md","k-rounded-md"],["kendoGridColumnHandle","","kendoDraggable","",1,"k-column-resizer",3,"column","columns"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","ngClass","ngStyle"],[3,"standalone","settings","column","columnMenuTemplate",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"]],template:function(t,e){1&t&&(Ve(0),T(1,Yvt,4,8,"tr",0),T(2,Qvt,1,9,"tr",1),Ge()),2&t&&(k(1),y("ngForOf",e.columnLevels),k(1),y("ngIf",e.showFilterRow))},directives:[uU,DA,gU,gn,xA,qe,Xm,Ib,$o,rU,Ft,Gi,Bb,mU,co,dfe],styles:[".k-column-resizer[_ngcontent-%COMP%] {\n cursor: col-resize;\n display: block;\n height: 1000%;\n position: absolute;\n top: 0;\n width: .5em;\n }"]}),i}(),Myt=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0;p(this,i),this.total=r,this.rowHeight=t,this.detailRowHeight=e,this.offsets=[],this.heights=[];for(var n=0,a=0;athis.rowHeight&&this.updateRowHeight(t,-1*this.detailRowHeight)}},{key:"isExpanded",value:function(t){return this.height(t)>this.rowHeight}},{key:"index",value:function(t){if(!(t<0)){var e=this.offsets.reduce(function(n,a,o){return void 0!==n?n:a===t?o:a>t?o-1:void 0},void 0);return void 0===e?this.total-1:e}}},{key:"offset",value:function(t){return this.offsets[t]}},{key:"totalHeight",value:function(){return this.heights.reduce(function(t,e){return t+e},0)}},{key:"updateRowHeight",value:function(t,e){this.total>0&&(this.heights[t]+=e,this.offsets=function(r,t,e){return[].concat(Ae(r.slice(0,t+1)),Ae(r.slice(t+1).map(function(n){return n+e})))}(this.offsets,t,e))}}]),i}(),RA=v(function i(r){p(this,i),this.offset=r}),yU=v(function i(r,t){p(this,i),this.skip=r,this.take=t}),ffe=v(function i(){p(this,i)}),Oyt=function(){function i(r){p(this,i),this.scrollObservable=r,this.firstLoaded=0}return v(i,[{key:"create",value:function(t,e,n,a){var o=this;this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+n,this.take=n,this.total=a,this.lastScrollTop=0;var s=new xi(new RA(this.rowHeightService.offset(e)));return this.subscription=An.create(function(l){o.unsubscribe(),o.scrollSubscription=o.scrollObservable.subscribe(function(u){return o.onScroll(u,l)})}).subscribe(function(l){return s.next(l)}),s}},{key:"destroy",value:function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}},{key:"onScroll",value:function(t,e){var n=t.scrollTop,a=t.offsetHeight,o=t.scrollHeight,s=t.clientHeight;if(this.lastScrollTop!==n){var l=this.lastScrollTop>=n;this.lastScrollTop=n;var u=this.rowHeightService.index(n),c=this.rowHeightService.offset(u),d=this.rowHeightService.index(n+a);if(!l)if(d>=this.lastLoaded&&this.lastLoaded0&&(c=this.rowHeightService.offset(u-=h)),this.firstLoaded=u,e.next(new RA(c));var f=this.firstLoaded+this.take;this.lastLoaded=Math.min(f,this.total),f=f>this.total?this.total-this.firstLoaded:this.take,e.next(new yU(this.firstLoaded,this.take))}else o-s-n<2&&e.next(new ffe);if(l&&u1&&void 0!==arguments[1]?arguments[1]:"td";return function(e){return e.querySelectorAll("".concat(t,":not(.k-group-cell):not(.k-hierarchy-cell)"))[r]}},OA=function(r){return r.offsetWidth},DU=function(){for(var r=arguments.length,t=new Array(r),e=0;e1&&void 0!==arguments[1]?arguments[1]:null;return r=null!=r?r:i,oi(function(t,e){var n=[],a=0;t.subscribe(Wn(e,function(o){var s=null;a++%r==0&&n.push([]);var u,l=In(n);try{for(l.s();!(u=l.n()).done;){var c=u.value;c.push(o),i<=c.length&&(s=null!=s?s:[]).push(c)}}catch(g){l.e(g)}finally{l.f()}if(s){var h,d=In(s);try{for(d.s();!(h=d.n()).done;){var f=h.value;Nh(n,f),e.next(f)}}catch(g){d.e(g)}finally{d.f()}}},function(){var s,o=In(n);try{for(o.s();!(s=o.n()).done;)e.next(s.value)}catch(u){o.e(u)}finally{o.f()}e.complete()},void 0,function(){n=null}))})}(a))})).subscribe(this.resize.bind(this)),this.autoFitSubscription=this.service.registerTable({autoFit:this.autoFitObservable.bind(this),locked:this.locked})}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.autoFitSubscription&&(this.autoFitSubscription(),this.autoFitSubscription=null)}},{key:"initState",value:function(){this.firstResize=!0,(!this.virtualColumns||this.locked)&&(this.originalWidth=OA(this.element.nativeElement))}},{key:"resize",value:function(e){if(!this.virtualColumns||this.locked){var n=e.reduce(function(o,s){return o+s},0);this.renderer.setStyle(this.element.nativeElement,"width",this.originalWidth+n+"px")}this.cdr.detectChanges()}},{key:"autoFitObservable",value:function(e){var n=this;return An.create(function(a){n.zone.runOutsideAngular(function(){n.renderer.addClass(n.element.nativeElement,"k-autofitting"),n.cdr.detectChanges();var o=e.map(n.measureColumn.bind(n));n.renderer.removeClass(n.element.nativeElement,"k-autofitting"),a.next(o)})})}},{key:"measureColumn",value:function(e){var n=this.element.nativeElement,a=DU(function(r){return function(t){return t.querySelectorAll("thead>tr")[r]}}(e.level),wU(e.headerIndex,"th"),OA)(n),o=0;(!e.isParentSpan||e.isParentSpan&&e.isLastInSpan)&&(o=DU(mfe("tbody>tr:not(.k-grouping-row):not(.k-grid-norecords)"),wU(e.index),OA)(n));var s=DU(mfe("tfoot>tr"),wU(e.index),OA)(n);return Math.max(a,o,s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Rb),m(be),m(nt))},i.\u0275dir=X({type:i,selectors:[["table"]],hostVars:2,hostBindings:function(t,e){2&t&&Qe("min-width",e.minWidth)},inputs:{locked:"locked",virtualColumns:"virtualColumns"}}),i}(),TU=function(){var i=function(){function r(t,e,n,a){p(this,r),this.el=t,this.renderer=e,this.resizeService=n,this.ctx=a,this.enabled=!1}return v(r,[{key:"lockedWidth",set:function(e){this._lockedWidth=e,this.enabled&&(this.attachResize(),this.resize())}},{key:"kendoGridResizableContainer",set:function(e){var n=e!==this.enabled;this.enabled=e,n&&(this.attachResize(),this.resize())}},{key:"ngOnDestroy",value:function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}},{key:"attachResize",value:function(){this.resizeSubscription&&!this.enabled&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=null),!this.resizeSubscription&&this.enabled&&(this.resizeSubscription=this.resizeService.changes.subscribe(this.resize.bind(this)))}},{key:"resize",value:function(){if(this.ctx.grid&&this.ctx.grid.wrapper){var n=Math.max(this.ctx.grid.wrapper.nativeElement.clientWidth-this._lockedWidth,0);this.renderer.setStyle(this.el.nativeElement,"width",this.enabled&&n>0?n+"px":"")}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(zG),m(Vm))},i.\u0275dir=X({type:i,selectors:[["","kendoGridResizableContainer",""]],inputs:{lockedWidth:"lockedWidth",kendoGridResizableContainer:"kendoGridResizableContainer"}}),i}(),_fe=function(r,t,e){for(var n=0,a=0;n0}},{key:"ngOnInit",value:function(){var e=this;this.init(),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowSync.bind(this))),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowNavigationLocked.bind(this))),this.subscriptions.add(xn(this.columns.changes,this.resizeService.changes).subscribe(function(){e.virtualColumns&&e.ngZone.run(function(){e.updateViewportColumns(),e.changeDetector.markForCheck()})})),this.subscriptions.add(this.localization.changes.subscribe(function(n){return e.rtl=n.rtl}))}},{key:"ngOnChanges",value:function(e){e.skip&&e.skip.firstChange&&e.skip.currentValue>0&&this.handleInitialScrollToSkip(),yn("skip",e)&&!this.rebind&&(this.skipScroll=!0,this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),Ki(["total","take"],e)&&this.init(),this.rebind=!1}},{key:"ngDoCheck",value:function(){this.virtualColumns&&(!this.viewportColumns||this.viewportWidthChange())&&this.updateViewportColumns()}},{key:"ngAfterViewInit",value:function(){this.skip&&this.isVirtual&&(this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),this.resetNavigationViewport(),this.attachContainerScroll(),this.initResizeService()}},{key:"ngAfterViewChecked",value:function(){var e=this.isLocked;e&&!this.hasLockedContainer&&this.syncRowsHeight(),this.hasLockedContainer=e}},{key:"syncRowsHeight",value:function(){this.lockedContainer&&Ehe(this.lockedTable.nativeElement,this.table.nativeElement)}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.resizeService&&this.resizeService.destroy(),this.cleanupScroller()}},{key:"init",value:function(){this.suspendService.scroll||(this.rowHeightService=new Myt(this.total,this.rowHeight,this.detailRowHeight),this.totalHeight=this.rowHeightService.totalHeight(),wb()||this.ngZone.runOutsideAngular(this.createScroller.bind(this)))}},{key:"lockedScroll",value:function(){if(!this.suspendService.scroll){var e=this.lockedContainer.nativeElement.scrollTop;e!==this.containerScrollTop&&(this.container.nativeElement.scrollTop=this.containerScrollTop=e)}}},{key:"lockedMousewheel",value:function(e){if(!e.ctrlKey){!function(r,t){var e=bfe(r),n=t.scrollTop;0===n&&00&&e.total>0})).subscribe(function(o){e.scrollTo({row:e.skip}),a.unsubscribe()})}},{key:"handleRowSync",value:function(){var e=this,n=function(){return He(e.lockedContainer)};return xn(this.changeNotification.changes,this.groupsService.changes.pipe(Ue(n),xE(e.ngZone.onStable.asObservable().pipe(It(1)))),this.editService.changed,this.resizeService.changes,this.columnResizingService.changes.pipe(Ue(function(o){return"end"===o.type})),this.supportService.changes).pipe(At(function(){return e.resetNavigationViewport()}),Ue(n)).subscribe(function(){var o=e.container.nativeElement.scrollTop,s=e.container.nativeElement.scrollLeft;e.syncRowsHeight(),e.syncContainerHeight(),e.lockedContainer.nativeElement.scrollTop=e.container.nativeElement.scrollTop=o,e.container.nativeElement.scrollLeft=s,e.resizeSensors.forEach(function(l){return l.acceptSize()})})}},{key:"handleRowNavigationLocked",value:function(){var e=this;return this.navigationService.changes.pipe(Ue(function(){return He(e.lockedContainer)}),Dd(10)).subscribe(function(n){if(e.lockedLeafColumns.length<=n.prevColIndex&&n.colIndex0?32:0)))}else if(0===a&&this.detailTemplate)this.container.nativeElement.scrollLeft=this.normalizeScrollLeft(0);else{var d=yfe(0,this.table.nativeElement.rows);if(d){var h=function(r,t){return _fe(r,t,function(e){return Rv(e,vfe)?0:parseInt(e.getAttribute("colSpan"),10)||1})}(a,d.cells);h&&(this.container.nativeElement.scrollLeft=this.elementScrollLeft(h))}}}},{key:"resetNavigationViewport",value:function(){if(this.container&&this.navigationService.enabled&&this.navigationService.needsViewport()&&0!==this.data.length){var e=this.container.nativeElement,n=e.scrollTop,o=n+e.offsetHeight,s=this.rowHeightService.index(n),l=this.rowHeightService.index(o),u=this.rowHeightService.offset(l);l>0&&u+this.rowHeight>o&&l--;var d=s,h=l;if(He(this.detailTemplate)){d*=2,h*=2,this.rowHeightService.offset(s)+this.rowHeighto)&&h++}this.navigationService.setViewport(d,h)}}},{key:"cleanupScroller",value:function(){this.scrollerSubscription&&this.scrollerSubscription.unsubscribe(),this.scroller&&this.scroller.destroy()}},{key:"initResizeService",value:function(){this.resizeService.connect(xn.apply(void 0,Ae(this.resizeSensors.map(function(e){return e.resize}))))}},{key:"syncContainerHeight",value:function(){var e=this;[AU(this.lockedContainer)].filter(He).map(function(n){n.style.height="";var a=e.container.nativeElement.offsetHeight;return function(r,t){return r.nativeElement.offsetWidth>t.nativeElement.clientWidth}(e.table,e.container)&&(a-=e.supportService.scrollbarWidth),{el:n,height:a}}).forEach(function(r){return function(t){return r.setStyle(t.el,"height","".concat(t.height,"px"))}}(this.renderer))}},{key:"updateViewportColumns",value:function(e){var n=this.columns.nonLockedLeafColumns.toArray(),a=e||this.calculateViewportColumns(),o=a.startIdx,s=a.endIdx,l=a.offset,u=Math.max(0,o-1),c=Math.min(s+1,n.length-1);if(u=u;d--)l-=n[d].width;var h=n.slice(u,c+1);if(this.viewportColumnsWidth=h.reduce(function(g,_){return g+_.width},0),u>0){var f=new Ir;f.width=l,h.unshift(f)}this.viewportColumns=new Ei,this.viewportColumns.reset(h),this.columnsStartIdx=u,this.columnsEndIdx=c,this.columnInfo.columnRangeChange.emit({start:u,end:c,offset:l}),e||this.updateColumnViewport(o,s)}},{key:"handleColumnScroll",value:function(){var e=this,a=this.container.nativeElement.scrollLeft;if(this.scrollLeft!==a){this.scrollLeft=a;var o=this.calculateViewportColumns();this.updateColumnViewport(o.startIdx,o.endIdx),(o.startIdx0?1:0),l=a+n+(this.detailTemplate?1:0),u=0;us&&(u=f,h=d-(g.width||0)),d>=l){c=f;break}}return!c&&f>0&&(c=o.length-1),{startIdx:u,endIdx:c,offset:h}}},{key:"viewportWidthChange",value:function(){return this.viewportColumns.toArray().reduce(function(n,a){return n+a.width},0)!==this.viewportColumnsWidth}},{key:"normalizeScrollLeft",value:function(e){return this.rtl?function hmt(i,r,t){var e=i;return t<0?e=-i:t>0&&(e=r.scrollWidth-r.offsetWidth-i),e}(e,this.container.nativeElement,this.supportService.rtlScrollLeft):e}},{key:"elementScrollLeft",value:function(e){return this.rtl?this.normalizeScrollLeft(this.container.nativeElement.scrollWidth-e.offsetLeft-e.offsetWidth):e.offsetLeft}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Cfe),m(Tb),m(nA),m(GG),m(Fm),m(be),m(Ee),m(rA),m(zG),m(Pl),m(OG),m(Ua),m(WT),m(Y),m(Rb),m(nt),m(Mb),m(fs))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-list"]],viewQuery:function(t,e){var n;1&t&&(ge(hgt,7),ge(fgt,5),ge(vgt,5),ge(pgt,7),ge(Vr,5)),2&t&&(P(n=B())&&(e.container=n.first),P(n=B())&&(e.lockedContainer=n.first),P(n=B())&&(e.lockedTable=n.first),P(n=B())&&(e.table=n.first),P(n=B())&&(e.resizeSensors=n))},hostVars:3,hostBindings:function(t,e){2&t&&(ie("role",e.hostRole),ue("k-grid-container",e.hostClass))},inputs:{data:"data",groups:"groups",total:"total",rowHeight:"rowHeight",stickyRowHeight:"stickyRowHeight",detailRowHeight:"detailRowHeight",take:"take",skip:"skip",columns:"columns",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",selectable:"selectable",groupable:"groupable",filterable:"filterable",rowClass:"rowClass",rowSticky:"rowSticky",loading:"loading",trackBy:"trackBy",virtualColumns:"virtualColumns",isVirtual:"isVirtual",cellLoadingTemplate:"cellLoadingTemplate",loadingTemplate:"loadingTemplate"},outputs:{contentScroll:"contentScroll",pageChange:"pageChange",scrollBottom:"scrollBottom"},features:[de([{provide:Cfe,useValue:Uyt}]),Ie],decls:13,vars:35,consts:[["class","k-grid-content-locked","role","presentation","tabindex","-1",3,"width","kendoEventsOutsideAngular","scope",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content","k-virtual-content",3,"kendoGridResizableContainer","lockedWidth"],["container",""],["role","presentation",1,"k-grid-table-wrap"],["role","presentation",1,"k-grid-table",3,"virtualColumns"],["table",""],["kendoGridColGroup","","role","presentation",3,"groups","columns","detailTemplate"],["kendoGridTableBody","","role","presentation",3,"skipGroupDecoration","data","groups","showGroupFooters","columns","allColumns","detailTemplate","noRecordsTemplate","lockedColumnsCount","totalColumnsCount","skip","selectable","trackBy","filterable","rowClass","rowSticky","virtualColumns","isLoading","isVirtual","cellLoadingTemplate"],[4,"ngIf"],["role","presentation",1,"k-height-container"],["class","k-width-container","role","presentation",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content-locked",3,"kendoEventsOutsideAngular","scope"],["lockedContainer",""],["role","presentation",1,"k-grid-table",3,"locked"],["lockedTable",""],["kendoGridTableBody","","role","presentation",3,"groups","isLocked","data","noRecordsText","columns","totalColumnsCount","detailTemplate","showGroupFooters","skip","selectable","trackBy","filterable","rowClass","isLoading","isVirtual","cellLoadingTemplate"],["role","presentation",1,"k-width-container"]],template:function(t,e){1&t&&(T(0,mgt,10,33,"div",0),A(1,"div",1,2)(3,"div",3)(4,"table",4,5),z(6,"colgroup",6)(7,"tbody",7),x(),T(8,_gt,1,0,"kendo-resize-sensor",8),x(),T(9,ygt,1,0,"kendo-resize-sensor",8),A(10,"div",9),z(11,"div"),x(),T(12,kgt,2,2,"div",10),x()),2&t&&(y("ngIf",e.isLocked),k(1),y("kendoGridResizableContainer",e.lockedLeafColumns.length>0)("lockedWidth",e.lockedWidth+1),k(3),Qe("width",e.nonLockedWidth,"px"),y("virtualColumns",e.virtualColumns),k(2),y("groups",e.isLocked?wt(34,bb):e.groups)("columns",e.nonLockedColumnsToRender)("detailTemplate",e.detailTemplate),k(1),y("skipGroupDecoration",e.isLocked)("data",e.data)("groups",e.groups)("showGroupFooters",e.showFooter)("columns",e.nonLockedColumnsToRender)("allColumns",e.nonLockedLeafColumns)("detailTemplate",e.detailTemplate)("noRecordsTemplate",e.noRecordsTemplate)("lockedColumnsCount",e.lockedLeafColumns.length)("totalColumnsCount",e.leafColumns.length)("skip",e.skip)("selectable",e.selectable)("trackBy",e.trackBy)("filterable",e.filterable)("rowClass",e.rowClass)("rowSticky",e.rowSticky)("virtualColumns",e.virtualColumns)("isLoading",e.loading)("isVirtual",e.isVirtual)("cellLoadingTemplate",e.cellLoadingTemplate),k(1),y("ngIf",e.isLocked),k(1),y("ngIf",e.isLocked||e.virtualColumns),k(2),Qe("height",e.totalHeight,"px"),k(1),y("ngIf",e.virtualColumns))},directives:[aU,SU,Vr,qe,qi,EU,TU],encapsulation:2}),i}(),Dfe=function(){var i=function(){function r(t){p(this,r),this.columnInfoService=t,this.columns=[],this.groups=[],this.lockedColumnsCount=0,this.logicalRowIndex=0}return v(r,[{key:"footerClass",get:function(){return!this.scrollable}},{key:"columnsToRender",get:function(){return nd(this.columns||[])}},{key:"logicalColumnIndex",value:function(e){var n=e.leafIndex;return He(n)?n+(He(this.detailTemplate)?1:0):-1}},{key:"addStickyStyles",value:function(e){var n=this.columnInfoService.stickyColumnsStyles(e);return Object.assign(Object.assign({},e.style),n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(fs))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFooter",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-footer",e.footerClass)},inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",lockedColumnsCount:"lockedColumnsCount",logicalRowIndex:"logicalRowIndex"},attrs:Cgt,decls:5,vars:9,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["kendoGridLogicalCell","","role","columnfooter","aria-selected","false",3,"logicalRowIndex","logicalColIndex","k-grid-footer-sticky","ngClass","ngStyle",4,"ngFor","ngForOf"],["role","presentation"],["kendoGridLogicalCell","","role","columnfooter","aria-selected","false",3,"logicalRowIndex","logicalColIndex","ngClass","ngStyle"],[3,"templateContext"]],template:function(t,e){1&t&&(Ve(0),A(1,"tr",0),T(2,bgt,1,2,"td",1),T(3,Sgt,1,2,"td",2),T(4,Dgt,2,12,"td",3),x(),Ge()),2&t&&(k(1),ue("k-footer-template",!0),y("logicalRowIndex",e.logicalRowIndex)("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.columns.length-e.lockedColumnsCount),k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsToRender))},directives:[xA,gn,qe,Xm,Ft,Gi,Bb],encapsulation:2}),i}(),Efe=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.hostClass=!0}return v(r,[{key:"loadingText",get:function(){return this.localization.get("loading")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridLoading",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-loading-mask",e.hostClass)},inputs:{loadingTemplate:"loadingTemplate"},attrs:Egt,decls:2,vars:2,consts:[[4,"ngIf"],[1,"k-loading-text"],[1,"k-loading-image"],[1,"k-loading-color"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(T(0,Tgt,5,1,"ng-container",0),T(1,xgt,1,1,null,0)),2&t&&(y("ngIf",!e.loadingTemplate),k(1),y("ngIf",e.loadingTemplate))},directives:[qe,En],encapsulation:2}),i}(),IA=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-grid-messages-base"]],inputs:{groupPanelEmpty:"groupPanelEmpty",noRecords:"noRecords",pagerLabel:"pagerLabel",pagerFirstPage:"pagerFirstPage",pagerLastPage:"pagerLastPage",pagerPreviousPage:"pagerPreviousPage",pagerNextPage:"pagerNextPage",pagerPage:"pagerPage",pagerItemsPerPage:"pagerItemsPerPage",pagerOf:"pagerOf",pagerItems:"pagerItems",pagerPageNumberInputTitle:"pagerPageNumberInputTitle",filter:"filter",filterInputLabel:"filterInputLabel",filterMenuTitle:"filterMenuTitle",filterMenuOperatorsDropDownLabel:"filterMenuOperatorsDropDownLabel",filterMenuLogicDropDownLabel:"filterMenuLogicDropDownLabel",filterEqOperator:"filterEqOperator",filterNotEqOperator:"filterNotEqOperator",filterIsNullOperator:"filterIsNullOperator",filterIsNotNullOperator:"filterIsNotNullOperator",filterIsEmptyOperator:"filterIsEmptyOperator",filterIsNotEmptyOperator:"filterIsNotEmptyOperator",filterStartsWithOperator:"filterStartsWithOperator",filterContainsOperator:"filterContainsOperator",filterNotContainsOperator:"filterNotContainsOperator",filterEndsWithOperator:"filterEndsWithOperator",filterGteOperator:"filterGteOperator",filterGtOperator:"filterGtOperator",filterLteOperator:"filterLteOperator",filterLtOperator:"filterLtOperator",filterIsTrue:"filterIsTrue",filterIsFalse:"filterIsFalse",filterBooleanAll:"filterBooleanAll",filterAfterOrEqualOperator:"filterAfterOrEqualOperator",filterAfterOperator:"filterAfterOperator",filterBeforeOperator:"filterBeforeOperator",filterBeforeOrEqualOperator:"filterBeforeOrEqualOperator",filterFilterButton:"filterFilterButton",filterClearButton:"filterClearButton",filterAndLogic:"filterAndLogic",filterOrLogic:"filterOrLogic",loading:"loading",gridLabel:"gridLabel",columnMenu:"columnMenu",setColumnPosition:"setColumnPosition",columns:"columns",lock:"lock",unlock:"unlock",stick:"stick",unstick:"unstick",sortable:"sortable",sortAscending:"sortAscending",sortDescending:"sortDescending",sortedAscending:"sortedAscending",sortedDescending:"sortedDescending",sortedDefault:"sortedDefault",columnsApply:"columnsApply",columnsReset:"columnsReset",detailExpand:"detailExpand",detailCollapse:"detailCollapse",filterDateToday:"filterDateToday",filterDateToggle:"filterDateToggle",filterNumericDecrement:"filterNumericDecrement",filterNumericIncrement:"filterNumericIncrement",selectionCheckboxLabel:"selectionCheckboxLabel",selectAllCheckboxLabel:"selectAllCheckboxLabel",groupCollapse:"groupCollapse",groupExpand:"groupExpand"},features:[j]}),i}(),Tfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(IA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLocalizedMessages",""]],features:[de([{provide:IA,useExisting:ke(function(){return i})}]),j]}),i}(),Afe=function(r,t){return Ga(r,Hu("k-grid-edit-cell"))&&Ga(r,Ta("kendo-grid"))===t},Vl=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h,f,g,_,C,w,E,M,R,N,G,U,ee,ve,V,I){var K=this;p(this,r),this.supportService=t,this.selectionService=e,this.cellSelectionService=n,this.wrapper=a,this.groupInfoService=o,this.groupsService=s,this.changeNotification=l,this.detailsService=u,this.editService=c,this.filterService=d,this.pdfService=h,this.responsiveService=f,this.renderer=g,this.excelService=_,this.ngZone=C,this.scrollSyncService=w,this.domEvents=E,this.columnResizingService=M,this.changeDetectorRef=R,this.columnReorderService=N,this.columnInfoService=G,this.navigationService=U,this.sortService=ee,this.scrollRequestService=ve,this.localization=V,this.ctx=I,this.data=[],this.scrollable="scrollable",this.selectable=!1,this.trackBy=jG,this.virtualColumns=!1,this.filterable=!1,this.sortable=!1,this.pageable=!1,this.groupable=!1,this.navigable=!1,this.autoSize=!1,this.resizable=!1,this.reorderable=!1,this.loading=!1,this.columnMenu=!1,this.hideHeader=!1,this.filterChange=new O,this.pageChange=new O,this.groupChange=new kG(this.ngZone),this.sortChange=new O,this.selectionChange=new O,this.dataStateChange=new O,this.groupExpand=new O,this.groupCollapse=new O,this.detailExpand=new O,this.detailCollapse=new O,this.edit=new O,this.cancel=new O,this.save=new O,this.remove=new O,this.add=new O,this.cellClose=new O,this.cellClick=new kG(this.ngZone),this.pdfExport=new O,this.excelExport=new O,this.columnResize=new kG(this.ngZone),this.columnReorder=new O,this.columnVisibilityChange=new O,this.columnLockedChange=new O,this.columnStickyChange=new O,this.scrollBottom=new O,this.contentScroll=new O,this.columns=new Ei,this.footer=new Ei,this.selectionDirective=!1,this.columnsContainer=new NG(function(){return K.columnList.filterHierarchy(function(H){return H.matchesMedia=K.matchesMedia(H),H.isVisible})}),this.view=new t_t(function(){return new e_t(K.data,K.skip,K.hasGroupFooters)}),this.shouldGenerateColumns=!0,this._sort=new Array,this._group=new Array,this._skip=0,this.cachedWindowWidth=0,this._rowSelected=null,this._cellSelected=null,this.rtl=!1,this._rowClass=function(){return null},jt(Pmt),this.ctx.grid=this,this.localizationSubscription=this.localization.changes.subscribe(function(H){K.rtl=H.rtl,K.direction=K.rtl?"rtl":"ltr"}),this.groupInfoService.registerColumnsContainer(function(){return K.columnList}),this.columnInfoService.init(this.columnsContainer,function(){return K.columnList}),this.columnVisibilityChangeSubscription=this.columnInfoService.visibilityChange.subscribe(function(H){K.columnVisibilityChange.emit(new b_t(H))}),this.columnLockedChangeSubscription=this.columnInfoService.lockedChange.subscribe(function(H){K.columnLockedChange.emit(new Lhe(H))}),this.columnStickyChangeSubscription=this.columnInfoService.stickyChange.subscribe(function(H){K.columnStickyChange.emit(new w_t(H))}),this.groupExpandCollapseSubscription=function(r,t,e,n){return r.changes.pipe(Ue(function(a){return He(a.group)})).subscribe(function(a){return a.expand?t.emit(n(a)):e.emit(n(a))})}(s,this.groupExpand,this.groupCollapse,function(H){return{group:H.group,groupIndex:H.groupIndex,parentGroup:H.parentGroup}}),this.detailsServiceSubscription=function(r,t,e,n){return r.changes.pipe(Ue(function(a){return He(a.dataItem)})).subscribe(function(a){return a.expand?t.emit(a):e.emit(a)})}(u,this.detailExpand,this.detailCollapse),this.filterSubscription=this.filterService.changes.subscribe(function(H){K.filterChange.emit(H)}),this.sortSubscription=this.sortService.changes.subscribe(function(H){K.sortChange.emit(H)}),this.attachStateChangesEmitter(),this.attachEditHandlers(),this.attachDomEventHandlers(),this.pdfSubscription=this.pdfService.exportClick.subscribe(this.emitPDFExportEvent.bind(this)),this.excelSubscription=this.excelService.exportClick.subscribe(this.saveAsExcel.bind(this)),this.columnsContainerChange(),this.handleColumnResize(),this.columnList=new PG(this.columns),this.columnReorderSubscription=this.columnReorderService.changes.subscribe(this.reorder.bind(this)),this.columnRangeChangeSubscription=this.columnInfoService.columnRangeChange.subscribe(this.onColumnRangeChange.bind(this))}return v(r,[{key:"skip",get:function(){return this._skip},set:function(e){"number"==typeof e&&e>=0&&(this._skip=e)}},{key:"sort",get:function(){return this._sort},set:function(e){cG(e)&&(this._sort=e)}},{key:"group",get:function(){return this._group},set:function(e){cG(e)&&(this._group=e)}},{key:"showTopToolbar",get:function(){return this.toolbarTemplate&&["top","both"].indexOf(this.toolbarTemplate.position)>-1}},{key:"showBottomToolbar",get:function(){return this.toolbarTemplate&&["bottom","both"].indexOf(this.toolbarTemplate.position)>-1}},{key:"isLocked",get:function(){return this.lockedLeafColumns.length>0}},{key:"showTopPager",get:function(){return!this.isVirtual&&!1!==this.pageable&&["top","both"].indexOf(this.pageable.position)>-1}},{key:"showBottomPager",get:function(){return!this.isVirtual&&!1!==this.pageable&&"top"!==this.pageable.position}},{key:"hasPager",get:function(){return this.showTopPager||this.showBottomPager}},{key:"showGroupPanel",get:function(){return this.groupable&&!1!==this.groupable.enabled}},{key:"groupableEmptyText",get:function(){return this.groupable.emptyText}},{key:"marqueeSelection",get:function(){return this.selectionService.enableMarquee||this.cellSelectionService.enableMarquee}},{key:"navigatable",get:function(){return this.navigable},set:function(e){this.navigable=e}},{key:"rowClass",get:function(){return this._rowClass},set:function(e){if(xt&&"function"!=typeof e)throw new Error("rowClass must be a function, but received ".concat(JSON.stringify(e),"."));this._rowClass=e}},{key:"rowSticky",get:function(){return this._rowSticky},set:function(e){if(xt&&He(e)&&"function"!=typeof e)throw new Error("rowSticky must be a function, but received ".concat(JSON.stringify(e),"."));He(e)&&(this._rowSticky=e)}},{key:"rowSelected",get:function(){return this._rowSelected},set:function(e){if(xt&&"function"!=typeof e)throw new Error("rowSelected must be a function, but received ".concat(JSON.stringify(e),"."));this._rowSelected=e}},{key:"cellSelected",get:function(){return this._cellSelected},set:function(e){if(xt&&"function"!=typeof e)throw new Error("cellSelected must be a function, but received ".concat(JSON.stringify(e),"."));this._cellSelected=e}},{key:"activeCell",get:function(){return this.navigationService.activeCell}},{key:"activeRow",get:function(){return this.navigationService.activeRow}},{key:"dir",get:function(){return this.direction}},{key:"hostClasses",get:function(){return!0}},{key:"lockedClasses",get:function(){return this.lockedLeafColumns.length>0}},{key:"virtualClasses",get:function(){return this.isVirtual}},{key:"noScrollbarClass",get:function(){return 0===this.scrollbarWidth}},{key:"detailTemplate",get:function(){return this._customDetailTemplate?this._customDetailTemplate:this.detailTemplateChildren?this.detailTemplateChildren.first:void 0},set:function(e){this._customDetailTemplate=e}},{key:"cellLoadingTemplate",get:function(){return this._cellLoadingTemplate?this._customDetailTemplate:this.cellLoadingTemplateChildren?this.cellLoadingTemplateChildren.first:void 0},set:function(e){this._cellLoadingTemplate=e}},{key:"loadingTemplate",get:function(){return this._loadingTemplate?this._loadingTemplate:this.loadingTemplateChildren?this.loadingTemplateChildren.first:void 0},set:function(e){this._loadingTemplate=e}},{key:"noRecordsTemplate",get:function(){return this._customNoRecordsTemplate?this._customNoRecordsTemplate:this.noRecordsTemplateChildren?this.noRecordsTemplateChildren.first:void 0},set:function(e){this._customNoRecordsTemplate=e}},{key:"pagerTemplate",get:function(){return this._customPagerTemplate?this._customPagerTemplate:this.pagerTemplateChildren?this.pagerTemplateChildren.first:void 0},set:function(e){this._customPagerTemplate=e}},{key:"toolbarTemplate",get:function(){return this._customToolbarTemplate?this._customToolbarTemplate:this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0},set:function(e){this._customToolbarTemplate=e}},{key:"scrollbarWidth",get:function(){return this.supportService.scrollbarWidth}},{key:"headerPadding",get:function(){if(wb())return"";var e=Math.max(0,this.scrollbarWidth)+"px",a=this.rtl?e:0;return"0 ".concat(this.rtl?0:e," 0 ").concat(a)}},{key:"hasGroupFooters",get:function(){return this.columnsContainer.hasGroupFooter}},{key:"showFooter",get:function(){return this.columnsContainer.hasFooter}},{key:"showGroupFooters",get:function(){return this.groupable&&this.groupable.showFooter}},{key:"ariaRowCount",get:function(){return this.totalColumnLevels+1+this.view.total}},{key:"ariaColCount",get:function(){return this.columnsContainer.leafColumnsToRender.length}},{key:"isVirtual",get:function(){return"virtual"===this.scrollable}},{key:"isScrollable",get:function(){return"none"!==this.scrollable}},{key:"visibleColumns",get:function(){return this.columnsContainer.allColumns}},{key:"lockedColumns",get:function(){return this.columnsContainer.lockedColumns}},{key:"nonLockedColumns",get:function(){return this.columnsContainer.nonLockedColumns}},{key:"lockedLeafColumns",get:function(){return this.columnsContainer.lockedLeafColumns}},{key:"stickyColumns",get:function(){return this.columns.filter(function(e){return e.sticky})}},{key:"nonLockedLeafColumns",get:function(){return this.columnsContainer.nonLockedLeafColumns}},{key:"leafColumns",get:function(){return this.columnsContainer.leafColumns}},{key:"totalColumnLevels",get:function(){return this.columnsContainer.totalLevels}},{key:"headerColumns",get:function(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedColumns}},{key:"headerLeafColumns",get:function(){return this.virtualColumns&&!this.pdfService.exporting?this.leafViewportColumns:this.nonLockedLeafColumns}},{key:"lockedWidth",get:function(){var e=32*this.group.length;return Wu(this.lockedLeafColumns.toArray()).reduce(function(n,a){return n+(a.width||0)},e)}},{key:"nonLockedWidth",get:function(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return this.virtualColumns?this.leafViewportColumns.reduce(function(e,n){return e+(n.width||0)},0):this.columnsContainer.unlockedWidth}},{key:"selectableSettings",get:function(){if(this.selectionService)return this.selectionService.options}},{key:"columnMenuTemplate",get:function(){var e=this.columnMenuTemplates.first;return e?e.templateRef:null}},{key:"totalCount",get:function(){return this.isVirtual||!He(this.pageSize)?this.view.total:this.pageSize}},{key:"expandRow",value:function(e){this.toggleDetailRowLegacy(e,!0)}},{key:"collapseRow",value:function(e){this.toggleDetailRowLegacy(e,!1)}},{key:"expandGroup",value:function(e){this.toggleGroupRowLegacy(e,!0)}},{key:"collapseGroup",value:function(e){this.toggleGroupRowLegacy(e,!1)}},{key:"resetGroupsState",value:function(){this.groupsService.reset()}},{key:"expandGroupChildren",value:function(e){this.groupsService.expandChildren(e)}},{key:"onDataChange",value:function(){this.autoGenerateColumns(),this.changeNotification.notify(),this.pdfService.dataChanged.emit(),He(this.defaultSelection)&&this.defaultSelection.reset(),this.initSelectionService(),this.updateNavigationMetadata()}},{key:"ngOnChanges",value:function(e){var n=this;yn("data",e)&&this.onDataChange(),this.lockedLeafColumns.length&&Ki(["pageSize","skip","sort","group"],e)&&this.changeNotification.notify(),Ki(["pageSize","scrollable","virtualColumns"],e)&&this.updateNavigationMetadata(),yn("virtualColumns",e)&&(this.viewportColumns=this.leafViewportColumns=null),yn("height",e,!1)&&this.renderer.setStyle(this.wrapper.nativeElement,"height","".concat(this.height,"px")),yn("filterable",e)&&this.lockedColumns.length&&this.syncHeaderHeight(this.ngZone.onStable.asObservable().pipe(It(1))),Ki(["columnMenu","sortable","filterable"],e,!1)&&(this.columnMenuOptions=this.columnMenu&&Object.assign({filter:Boolean(this.filterable),sort:Boolean(this.sortable)},this.columnMenu)),yn("scrollable",e)&&this.isScrollable&&this.ngZone.onStable.pipe(It(1)).subscribe(function(){return n.attachScrollSync()}),yn("selectable",e)&&this.shouldResetSelection(e.selectable)&&(this.defaultSelection?this.defaultSelection.reset():this.selectionDirective&&this.selectionDirective.reset()),yn("groupable",e,!0)&&(this.groupable=e.groupable.currentValue)}},{key:"ngAfterViewInit",value:function(){this.attachScrollSync(),this.attachElementEventHandlers(),this.updateNavigationMetadata(),this.applyAutoSize()}},{key:"ngAfterContentChecked",value:function(){this.columnsContainer.refresh(),this.verifySettings(),this.initSelectionService()}},{key:"ngAfterContentInit",value:function(){var e=this;this.shouldGenerateColumns=!this.columns.length,this.autoGenerateColumns(),this.columnList=new PG(this.columns),this.columnsChangeSubscription=this.columns.changes.subscribe(function(){return e.verifySettings()})}},{key:"ngOnInit",value:function(){this.navigable&&this.navigationService.init(this.navigationMetadata())}},{key:"ngOnDestroy",value:function(){this.selectionSubscription&&this.selectionSubscription.unsubscribe(),this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.groupExpandCollapseSubscription&&this.groupExpandCollapseSubscription.unsubscribe(),this.detailsServiceSubscription&&this.detailsServiceSubscription.unsubscribe(),this.editServiceSubscription&&this.editServiceSubscription.unsubscribe(),this.pdfSubscription&&this.pdfSubscription.unsubscribe(),this.filterSubscription&&this.filterSubscription.unsubscribe(),this.sortSubscription&&this.sortSubscription.unsubscribe(),this.columnsChangeSubscription&&this.columnsChangeSubscription.unsubscribe(),this.excelSubscription&&this.excelSubscription.unsubscribe(),this.columnsContainerChangeSubscription&&this.columnsContainerChangeSubscription.unsubscribe(),this.scrollSyncService&&this.scrollSyncService.destroy(),this.detachElementEventHandlers&&this.detachElementEventHandlers(),this.defaultSelection&&this.defaultSelection.destroy(),this.cellClickSubscription&&this.cellClickSubscription.unsubscribe(),this.footerChangeSubscription&&this.footerChangeSubscription.unsubscribe(),this.ngZone=null,this.columnResizingSubscription&&this.columnResizingSubscription.unsubscribe(),this.columnReorderSubscription&&this.columnReorderSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe(),this.columnVisibilityChangeSubscription&&this.columnVisibilityChangeSubscription.unsubscribe(),this.columnLockedChangeSubscription&&this.columnLockedChangeSubscription.unsubscribe(),this.columnStickyChangeSubscription&&this.columnStickyChangeSubscription.unsubscribe(),this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.columnRangeChangeSubscription.unsubscribe()}},{key:"attachScrollSync",value:function(){var e=this;wb()||(this.header&&this.scrollSyncService.registerEmitter(this.header.nativeElement,"header"),this.footer&&(this.footerChangeSubscription=HT(this.footer).subscribe(function(n){return n.map(function(a){return a.nativeElement}).filter(He).forEach(function(a){return e.scrollSyncService.registerEmitter(a,"footer")})})))}},{key:"ariaLabel",get:function(){return this.localization.get("gridLabel")}},{key:"editRow",value:function(e,n,a){if(this.editService.editRow(e,n),!He(a)||!a.skipFocus){var o='tr[data-kendo-grid-item-index="'.concat(e,'"]'),s=a&&a.columnIndex,l=isNaN(s)?o:"".concat(o,' td[data-kendo-grid-column-index="').concat(s,'"]');this.focusEditElement(l)}}},{key:"closeRow",value:function(e){this.editService.close(e)}},{key:"addRow",value:function(e){if(!(e instanceof uC)){var a=Object.keys(e).reduce(function(r){return function(t,e){return t[e]=new rP(r[e]),t}}(e),{});e=new uC(a)}this.editService.addRow(e),this.focusEditElement(".k-grid-add-row")}},{key:"editCell",value:function(e,n,a){var o=this.columnInstance(n);this.editService.editCell(e,o,a),this.focusEditElement(".k-grid-edit-cell")}},{key:"closeCell",value:function(){return!this.editService.closeCell()}},{key:"cancelCell",value:function(){this.editService.cancelCell()}},{key:"isEditing",value:function(){return this.editService.isEditing()}},{key:"isEditingCell",value:function(){return this.editService.isEditingCell()}},{key:"saveAsPDF",value:function(){this.pdfService.save(this)}},{key:"drawPDF",value:function(){var e=function(){var r,t,e=new Promise(function(n,a){r=function(s){return n(s),e},t=function(s){return a(s),e}});return e.resolve=r,e.reject=t,e}();return this.pdfService.draw(this,e),e}},{key:"saveAsExcel",value:function(){this.excelService.save(this)}},{key:"autoFitColumn",value:function(e){this.columnResizingService.autoFit(e)}},{key:"autoFitColumns",value:function(){var e,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.columns;a=n instanceof Ei?n.toArray():n,(e=this.columnResizingService).autoFit.apply(e,Ae(a))}},{key:"notifyPageChange",value:function(e,n){"list"===e&&!this.isVirtual||this.pageChange.emit(n)}},{key:"notifyScrollBottom",value:function(){var e=this;"none"!==this.scrollable&&ut(this.scrollBottom)&&this.ngZone.run(function(){return e.scrollBottom.emit({sender:e})})}},{key:"focusEditElement",value:function(e){var n=this;this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.ngZone.runOutsideAngular(function(){n.focusElementSubscription=n.ngZone.onStable.asObservable().pipe(It(1)).subscribe(function(){var a=n.wrapper.nativeElement;!n.setEditFocus(a.querySelector(e))&&n.isLocked&&n.setEditFocus(a.querySelector(".k-grid-content ".concat(e))),n.focusElementSubscription=null})})}},{key:"focus",value:function(){return this.assertNavigable(),this.navigationService.focusCell()}},{key:"focusCell",value:function(e,n){return this.assertNavigable(),this.navigationService.focusCell(e,n)}},{key:"focusNextCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertNavigable(),this.navigationService.focusNextCell(e)}},{key:"focusPrevCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertNavigable(),this.navigationService.focusPrevCell(e)}},{key:"scrollTo",value:function(e){this.scrollRequestService.scrollTo(e)}},{key:"reorderColumn",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{before:!1},o=Fv(this.allColumnsForLevel(e.level)),s=o[n];if(s){var l=s.isLocked&&!e.isLocked&&1===this.columnsContainer.nonLockedColumns.length;l||(ZT(s)&&!a.before&&(s=s.childColumns.last),this.reorder({before:a.before,source:e,target:s}))}}},{key:"isDetailExpanded",get:function(){return this.detailsService.userCallback},set:function(e){this.detailsService.userCallback=e}},{key:"isGroupExpanded",get:function(){return this.groupsService.userCallback},set:function(e){this.groupsService.userCallback=e,this.groupable=He(e)}},{key:"reorder",value:function(e){var n=this,a=e.target,o=e.source,s=e.before,l=e.changeContainer;this.ngZone.run(function(){var u=Fv(n.allColumnsForLevel(o.level)),c=u.indexOf(a);a.parent&&a.parent.isSpanColumn&&(c=u.indexOf(a.parent),s&&(a=a.parent));var d=u.indexOf(o);l&&(s&&0c&&c++);var h=new y_t({column:o,oldIndex:d,newIndex:c});n.columnReorder.emit(h),!h.isDefaultPrevented()&&(l&&n.columnLockedChange.emit(new Lhe([o])),n.updateColumnIndices({columnsForLevel:u,source:o,target:a,before:s}),o.locked!==a.locked&&(o.locked=a.locked),n.columnsContainer.refresh(),n.changeDetectorRef.markForCheck())})}},{key:"updateColumnIndices",value:function(e){var a=e.source,o=e.target,s=e.before,l=ghe(e.columnsForLevel),u=l.indexOf(a),c=0,d=0,h=1;a.isSpanColumn&&(h+=a.childColumns.length);for(var f=0;f0}),Nn(function(){return e.ngZone.onStable.asObservable().pipe(It(1))})))}},{key:"handleColumnResize",value:function(){var e=this,n=this.columnResizingService.changes;this.columnResizingSubscription=n.pipe(At(function(a){"start"===a.type?e.renderer.addClass(e.wrapper.nativeElement,"k-grid-column-resizing"):"end"===a.type&&e.renderer.removeClass(e.wrapper.nativeElement,"k-grid-column-resizing")}),Ue(function(a){return"start"===a.type}),Nn(function(){return n.pipe(Qr(n.pipe(Ue(function(a){return"triggerAutoFit"===a.type}))),Ue(function(a){return"end"===a.type}))})).subscribe(this.notifyResize.bind(this))}},{key:"notifyResize",value:function(e){var n=e.resizedColumns.filter(function(a){return hs(a.column.resizable)&&!a.column.isColumnGroup}).map(function(a){return{column:a.column,newWidth:a.column.width,oldWidth:a.oldWidth}});this.columnResize.emit(n)}},{key:"assertNavigable",value:function(){if(xt()&&!this.navigable)throw new Error('The Grid should be configured as [navigable]="true" to control focus')}},{key:"navigationMetadata",value:function(){var e=this.isVirtual,a=e?this.view.total:this.pageSize,o=this.editService.hasNewItem?1:0,s=aA(this.filterable)?1:0;return new k_t(a,this.totalColumnLevels+1+s+o,e,this.hasPager,He(this.detailTemplate),this.wrapper,this.virtualColumns,this.columnsContainer)}},{key:"updateNavigationMetadata",value:function(){this.navigationService.metadata=this.navigationMetadata()}},{key:"applyAutoSize",value:function(){var e=this,n=this.columns.filter(function(a){return e.autoSize?!1!==a.autoSize:a.autoSize});n.length>0&&this.ngZone.onStable.pipe(It(1)).subscribe(function(a){return e.autoFitColumns(n)})}},{key:"onColumnRangeChange",value:function(e){for(var n=this.viewportColumns=[],a=this.columnsContainer.nonLockedLeafColumns.toArray().slice(e.start,e.end+1),o=0;o0){for(var c=a[0],d=e.offset,h=n[0],f=0;h!==c;)d-=h.isColumnGroup?0:h.width,h=n[++f];if(d>0)for(var _,g=this.columnsContainer.totalLevels,C=0;C<=g;C++){var w=C0){var e=i.data[t];l5(i,r,Array.isArray(e)?e:e.update,sc()-ey-1,J_)}J_=0,ey=0}(Bn(),Oe(),i+20)}(1),k(2),y("ngIf",e.showTopToolbar),k(1),y("ngIf",e.showTopPager),k(1),y("ngIf",e.showGroupPanel),k(1),ie("aria-label",e.ariaLabel)("aria-rowcount",e.ariaRowCount)("aria-colcount",e.ariaColCount),k(2),y("ngIf",e.isScrollable),k(1),y("ngIf",!e.isScrollable),k(1),y("ngIf",e.loading),k(1),y("ngIf",e.showBottomPager),k(1),y("ngIf",e.showBottomToolbar))},directives:[qG,iU,Uhe,aU,hfe,wfe,Dfe,SU,Efe,Tfe,qe,EU,TU,$o,fhe],styles:[" .k-grid .k-grid-aria-root {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n overflow: hidden;\n }\n\n .k-grid .k-filter-row td {\n white-space: nowrap;\n }"],encapsulation:2}),i}(),xU=function(){var i=function(){function r(t,e,n){p(this,r),this.grid=t,this.changeDetector=e,this.localDataChangesService=n,this.state={skip:0},this.originalData=[],n&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(this.rebind.bind(this)))}return v(r,[{key:"skip",set:function(e){He(e)||(e=0),this.grid.skip=this.state.skip=e}},{key:"sort",set:function(e){this.grid.sort=this.state.sort=e}},{key:"filter",set:function(e){this.grid.filter=this.state.filter=e}},{key:"pageSize",set:function(e){this.grid.pageSize=this.state.take=e}},{key:"group",set:function(e){this.grid.group=this.state.group=e}},{key:"data",set:function(e){this.originalData=e||[],this.localDataChangesService&&(this.localDataChangesService.data=e),this.dataChanged=!0}},{key:"ngOnInit",value:function(){this.applyState(this.state),this.stateChangeSubscription=this.grid.dataStateChange.subscribe(this.onStateChange.bind(this))}},{key:"ngOnDestroy",value:function(){this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){Ki(["pageSize","skip","sort","group","filter"],e)&&this.rebind()}},{key:"ngDoCheck",value:function(){this.dataChanged&&this.updateGridData()}},{key:"onStateChange",value:function(e){this.applyState(e),this.rebind()}},{key:"rebind",value:function(){this.data=this.originalData,this.updateGridData(),this.notifyDataChange()}},{key:"notifyDataChange",value:function(){this.grid.onDataChange(),this.changeDetector&&this.changeDetector.markForCheck()}},{key:"process",value:function(e){return jte(this.originalData,e)}},{key:"applyState",value:function(e){var a=e.take,o=e.sort,s=e.group,l=e.filter;this.skip=e.skip,this.pageSize=a,this.sort=o,this.group=s,this.filter=l}},{key:"updateGridData",value:function(){this.grid.data=this.process(this.state),this.dataChanged=!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Vl),m(nt),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridBinding",""]],inputs:{skip:"skip",sort:"sort",filter:"filter",pageSize:"pageSize",group:"group",data:["kendoGridBinding","data"]},features:[Ie]}),i}(),xfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).ctx=n,o}return v(e,[{key:"ngOnInit",value:function(){!1===this.ctx.grid.selectable&&(this.ctx.grid.selectable=!0),this.ctx.grid.selectionDirective=this}},{key:"ngOnDestroy",value:function(){$(q(e.prototype),"destroy",this).call(this)}}]),e}(whe);return i.\u0275fac=function(t){return new(t||i)(m(Vm),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectBy",""]],features:[j]}),i}(),Mfe=function(){var i=function(){function r(t){p(this,r),this.grid=t,this.expandedDetailKeysChange=new O,this.expandedDetailKeys=[],this.initiallyExpanded=!1,this.expandedState=new Set,this.subscriptions=new Je,this.grid.isDetailExpanded=this.isExpanded.bind(this),this.subscriptions.add(xn(this.grid.detailExpand.pipe(We(function(e){return Object.assign({expand:!0},e)})),this.grid.detailCollapse.pipe(We(function(e){return Object.assign({expand:!1},e)}))).subscribe(this.toggleState.bind(this)))}return v(r,[{key:"expandDetailsKey",get:function(){return this._expandBy},set:function(e){this._expandBy=dG(e)?kr(e):e}},{key:"expandDetailBy",get:function(){return this.expandDetailsKey},set:function(e){this.expandDetailsKey=e}},{key:"ngOnChanges",value:function(e){He(e.expandedDetailKeys)&&this.lastExpandedState!==this.expandedDetailKeys&&(this.expandedState=new Set(this.expandedDetailKeys))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"keyGetter",get:function(){return this._expandBy||kr(void 0)}},{key:"isExpanded",value:function(e){var n=this.keyGetter(e.dataItem),a=this.expandedState.has(n);return this.initiallyExpanded?!a:a}},{key:"toggleState",value:function(e){var n=this.keyGetter(e.dataItem);Boolean(this.initiallyExpanded)!==e.expand?this.expandedState.add(n):this.expandedState.delete(n),this.notifyChange()}},{key:"notifyChange",value:function(){this.lastExpandedState=Array.from(this.expandedState),this.expandedDetailKeysChange.emit(this.lastExpandedState)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Vl))},i.\u0275dir=X({type:i,selectors:[["","kendoGridExpandDetailsBy",""]],inputs:{expandDetailsKey:["kendoGridExpandDetailsBy","expandDetailsKey"],expandDetailBy:"expandDetailBy",expandedDetailKeys:"expandedDetailKeys",initiallyExpanded:"initiallyExpanded"},outputs:{expandedDetailKeysChange:"expandedDetailKeysChange"},exportAs:["kendoGridExpandDetailsBy"],features:[Ie]}),i}(),Zyt=function(r){for(var t=[];r;)t.push({field:r.group.field,value:r.group.value}),r=r.parentGroup;return t},Yyt=function(r){return{field:r.group.field,value:r.group.value,parentGroupKeys:Zyt(r.parentGroup)}},Rfe=function(){var i=function(){function r(t){p(this,r),this.grid=t,this.expandedGroupKeysChange=new O,this.groupsInitiallyExpanded=!1,this.subscriptions=new Je,this.grid.isGroupExpanded=this.isExpanded.bind(this),this.subscriptions.add(xn(this.grid.groupExpand.pipe(We(function(e){return Object.assign({expand:!0},e)})),this.grid.groupCollapse.pipe(We(function(e){return Object.assign({expand:!1},e)}))).subscribe(this.toggleState.bind(this)))}return v(r,[{key:"expandGroupBy",get:function(){return this._expandGroupBy},set:function(e){"function"==typeof e&&(this._expandGroupBy=e)}},{key:"expandedGroupKeys",get:function(){return this._expandedGroupKeys},set:function(e){this._expandedGroupKeys=(e||[]).slice()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"keyGetter",get:function(){return this.expandGroupBy||Yyt}},{key:"isExpanded",value:function(e){return this.getItemIndex(e)>-1?!this.groupsInitiallyExpanded:this.groupsInitiallyExpanded}},{key:"getItemIndex",value:function(e){return this.expandGroupBy?this.expandedGroupKeys.indexOf(this.keyGetter(e)):this.expandedGroupKeys.findIndex(function(n){for(var a=0,o=e.parentGroup;He(o);){if(!He(n.parentGroupKeys)||!He(n.parentGroupKeys[a])||o.group.value!==n.parentGroupKeys[a].value||o.group.field!==n.parentGroupKeys[a].field)return!1;o=o.parentGroup,a++}return n.value===e.group.value&&n.field===e.group.field})}},{key:"toggleState",value:function(e){var n=this.keyGetter(e);if(Boolean(this.groupsInitiallyExpanded)!==e.expand)this.expandedGroupKeys.push(n);else{var a=this.expandedGroupKeys.indexOf(n);this.expandedGroupKeys.splice(a,1)}this.expandedGroupKeysChange.emit(this.expandedGroupKeys.slice())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Vl))},i.\u0275dir=X({type:i,selectors:[["","kendoGridExpandGroupBy",""]],inputs:{expandGroupBy:["kendoGridExpandGroupBy","expandGroupBy"],expandedGroupKeys:"expandedGroupKeys",groupsInitiallyExpanded:"groupsInitiallyExpanded"},outputs:{expandedGroupKeysChange:"expandedGroupKeysChange"},exportAs:["kendoGridExpandGroupBy"]}),i}(),Ofe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(IA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-messages"]],features:[de([{provide:IA,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Qyt=fA({filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterEqOperator:"eq",filterNotEqOperator:"neq",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"}),Ife=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n)).localization=o,s.showOperators=!0,s.defaultOperators=Qyt(s.localization),s.column=a,s}return v(e,[{key:"valueField",get:function(){return this._valueField?this._valueField:this.column.field},set:function(a){this._valueField=a}},{key:"currentFilter",get:function(){return this.filterByField(this.column.field)}},{key:"currentOperator",get:function(){return this.currentFilter?this.currentFilter.operator:"contains"}}]),e}(Km);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Pm),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-autocomplete-filter-cell"]],inputs:{showOperators:"showOperators",column:"column",filter:"filter",data:"data",valueField:"valueField"},features:[j],decls:2,vars:7,consts:[[3,"column","filter","operators","showOperators"],["kendoFilterInput","",3,"data","valueField","value"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"kendo-autocomplete",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("showOperators",e.showOperators),k(1),y("data",e.data)("valueField",e.valueField)("value",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,eB,$u],encapsulation:2}),i}(),id=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Pm,phe,MG,DG,JT,co]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],Ly,cr]}),i}(),Jyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"contains",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-contains-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ekt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"doesnotcontain",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-not-contains-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),tkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"endswith",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-endswith-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),nkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"eq",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-eq-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ikt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isempty",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isempty-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),rkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnotempty",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnotempty-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),akt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnotnull",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnotnull-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),okt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnull",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnull-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),skt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"neq",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-neq-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),lkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"startswith",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-startswith-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ukt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"gt",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-gt-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ckt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"gte",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-gte-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),dkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"lt",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-lt-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),hkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"lte",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-lte-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),fkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"after",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"gt"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-after-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),vkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"after-eq",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"gte"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-after-eq-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),pkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"before-eq",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"lte"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-before-eq-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),gkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"before",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"lt"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-before-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),mkt=[vU,Jyt,ekt,tkt,nkt,ikt,rkt,akt,okt,skt,lkt,ukt,ckt,dkt,hkt,fkt,vkt,pkt,gkt],_kt=[bt,fP,dC,dB,cB,kC,lT,Fa,id],Zm=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[].concat(mkt)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(_kt),bt,fP,dC,dB,cB,kC,lT,Fa,id]}),i}(),MU=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[gU,pU,TG,vU,Pb,EA,Ife,TA,AA,Zm.exports()]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Zm],Zm]}),i}(),ykt=[bt,kC,wae,Hnt,yo,id],Nfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[iU,XG,JG,ZG,QG,eU,nU,VG,tU,YG]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(ykt)]}),i}(),Ffe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),NA=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[CG,bG,SG]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,id,Ffe]]}),i}(),FA=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Fb,AG,gA,mA,yA,jm,_A,Zm.exports()]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Zm],Zm]}),i}(),Lfe=function(){var i=function(){function r(t,e,n,a,o,s){p(this,r),this.localization=t,this.columnInfoService=e,this.popupService=n,this.ngZone=a,this.renderer=o,this.changeDetector=s,this.autoSync=!1,this.allowHideAll=!0}return v(r,[{key:"columns",get:function(){return this.columnInfoService.leafNamedColumns}},{key:"ngOnDestroy",value:function(){this.close()}},{key:"toggle",value:function(e,n){var a=this;if(this.popupRef)this.close();else{var o=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:e,content:n,positionMode:"absolute",anchorAlign:{vertical:"bottom",horizontal:o},popupAlign:{vertical:"top",horizontal:o}}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.ngZone.runOutsideAngular(function(){return a.closeClick=a.renderer.listen("document","click",function(s){Ga(s.target,function(u){return u===a.popupRef.popupElement||u===e})||a.close()})})}}},{key:"onApply",value:function(e){this.close(),e.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e))}},{key:"onChange",value:function(e){this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e)}},{key:"close",value:function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.detachClose()}},{key:"detachClose",value:function(){this.closeClick&&(this.closeClick(),this.closeClick=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(Cr),m(be),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-chooser"]],inputs:{autoSync:"autoSync",allowHideAll:"allowHideAll"},decls:5,vars:1,consts:[["type","button",1,"k-button","k-button-flat-base","k-button-flat","k-icon-button","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"click"],["anchor",""],[1,"k-button-icon","k-icon","k-i-columns"],["template",""],[1,"k-column-chooser-title"],[3,"columns","applyText","resetText","autoSync","allowHideAll","apply","columnChange"]],template:function(t,e){if(1&t){var n=Me();A(0,"button",0,1),Q("click",function(){re(n);var o=Yt(1),s=Yt(4);return e.toggle(o,s)}),z(2,"span",2),x(),T(3,Xgt,3,6,"ng-template",null,3,$n)}2&t&&ie("title",e.localization.get("columns"))},directives:[dU],encapsulation:2}),i}(),RU=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Lfe,Lb,Ah,$m,fU,kA,CA,bA,SA,XT,hU,wA,DA]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,FA]]}),i}(),kkt=[bt,NA,MU,FA,id,Ffe,RU],Pfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[wG,mU]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(kkt)]}),i}(),Bfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).parent=n,o.isCheckboxColumn=!0,o}return v(e,[{key:"templateRef",get:function(){return this.template?this.template.templateRef:void 0}}]),e}(Ir);return i.\u0275fac=function(t){return new(t||i)(m(Ir,13),m(Bl,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-checkbox-column"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Nv,5),2&t&&P(a=B())&&(e.template=a.first)},inputs:{showSelectAll:"showSelectAll"},features:[de([{provide:Ir,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Vfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"none":""}},{key:"onClick",value:function(a){a.preventDefault(),this.editService.beginEdit(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(La);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(_e),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-edit-command",e.commandClass))},features:[j]}),i}(),Gfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"":"none"}},{key:"onClick",value:function(a){a.preventDefault(),this.isEdited&&this.editService.endEdit(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(La);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(_e),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCancelCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-cancel-command",e.commandClass))},features:[j]}),i}(),Ufe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"":"none"}},{key:"onClick",value:function(a){a.preventDefault(),this.isEdited&&this.editService.save(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(La);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(_e),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSaveCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-save-command",e.commandClass))},features:[j]}),i}(),zfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"none":""}},{key:"onClick",value:function(a){a.preventDefault(),this.editService.remove(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(La);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(_e),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridRemoveCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-remove-command",e.commandClass))},features:[j]}),i}(),Hfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l){var u;return p(this,e),(u=t.call(this,a,o,null,s,l)).editService=n,u}return v(e,[{key:"onClick",value:function(a){a.preventDefault(),this.editService.beginAdd()}},{key:"commandClass",get:function(){return!0}}]),e}(La);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(_e),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridAddCommand",""]],hostVars:2,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&ue("k-grid-add-command",e.commandClass)},features:[j]}),i}(),Ckt=[bt,fP,dC,id,NA,AP,lT,yo],Kfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[kU,Bfe,CU,Nv,BG,qT,Vfe,Gfe,Ufe,zfe,Hfe,WG,$G]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(Ckt)]}),i}(),bkt=[bt,id],jfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(bkt)]}),i}(),Wfe=function(){function i(r,t){p(this,i),this.grid=r,this.localDataChangesService=t}return v(i,[{key:"create",value:function(t){this.hasLocalData&&this.grid.skip?this.localDataChangesService.data.splice(this.grid.skip,0,t):this.data.unshift(t),this.dataChanged()}},{key:"update",value:function(t){}},{key:"remove",value:function(t){for(var e=this.data,n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.hasLocalData&&this.localDataChangesService.changes.emit(t)}},{key:"hasLocalData",get:function(){return Array.isArray(this.localDataChangesService.data)}},{key:"data",get:function(){if(this.hasLocalData)return this.localDataChangesService.data;var t=this.grid.data;if(Array.isArray(t))return t;if(xt())throw new Error("The default edit service of the editing directives works only when binding to plain array.Please provide an editService.");return[]}}]),i}(),$fe=function(){var i=function(){function r(t,e){p(this,r),this.grid=t,this.localDataChangesService=e,this.defaultEditService=this.createDefaultService()}return v(r,[{key:"editService",get:function(){return this.userEditService||this.defaultEditService},set:function(e){this.userEditService=e}},{key:"ngOnInit",value:function(){this.subscriptions=this.grid.add.subscribe(this.addHandler.bind(this)),this.subscriptions.add(this.grid.remove.subscribe(this.removeHandler.bind(this))),this.subscriptions.add(this.grid.cancel.subscribe(this.cancelHandler.bind(this))),this.subscriptions.add(this.grid.save.subscribe(this.saveHandler.bind(this))),this.subscriptions.add(this.grid.dataStateChange.subscribe(this.onStateChange.bind(this)))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"createDefaultService",value:function(){return new Wfe(this.grid,this.localDataChangesService)}},{key:"addHandler",value:function(){this.grid.addRow(this.createModel({isNew:!0}))}},{key:"saveHandler",value:function(e){var n=this.saveModel(e);n&&(e.isNew?this.editService.create(n):this.editService.update(n)),this.grid.closeRow(e.rowIndex)}},{key:"cancelHandler",value:function(e){this.closeEditor(e.rowIndex)}},{key:"removeHandler",value:function(e){var n=this,a=e.dataItem,o=function(u){u&&n.editService.remove(a)};if(this.removeConfirmation){var s=this.removeConfirmation(a);s instanceof Promise?s.then(o):s instanceof An?s.pipe(It(1)).subscribe(o):o(s)}else o(!0)}},{key:"onStateChange",value:function(){this.closeEditor()}},{key:"closeEditor",value:function(e){this.grid.closeRow(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Vl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditingDirectiveBase",""]],inputs:{editService:"editService",removeConfirmation:"removeConfirmation"}}),i}(),Skt=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"update",value:function(n){this.dataChanged()}}]),t}(Wfe),qfe=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e,[{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.subscriptions.add(this.grid.edit.subscribe(this.editHandler.bind(this)))}},{key:"createDefaultService",value:function(){return new Skt(this.grid,this.localDataChangesService)}},{key:"addHandler",value:function(){this.closeEditor(),$(q(e.prototype),"addHandler",this).call(this)}},{key:"editHandler",value:function(a){this.closeEditor(),this.rowIndex=a.rowIndex,this.grid.editRow(a.rowIndex,this.createModel(a))}},{key:"saveHandler",value:function(a){$(q(e.prototype),"saveHandler",this).call(this,a),this.clean()}},{key:"closeEditor",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rowIndex;$(q(e.prototype),"closeEditor",this).call(this,a),this.clean()}},{key:"clean",value:function(){delete this.rowIndex}}]),e}($fe);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["","kendoGridRowEditingDirectiveBase",""]],features:[j]}),i}(),Xfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).grid=n,o.localDataChangesService=a,o}return v(e,[{key:"editHandler",value:function(a){$(q(e.prototype),"editHandler",this).call(this,a),this.dataItem=a.dataItem,this.originalValues={},this.editService.assignValues(this.originalValues,this.dataItem)}},{key:"closeEditor",value:function(a){this.dataItem&&this.editService.assignValues(this.dataItem,this.originalValues),$(q(e.prototype),"closeEditor",this).call(this,a)}},{key:"createModel",value:function(a){if(a.isNew)return this.createNewItem()}},{key:"saveModel",value:function(a){return a.dataItem}},{key:"clean",value:function(){$(q(e.prototype),"clean",this).call(this),delete this.dataItem}}]),e}(qfe);return i.\u0275fac=function(t){return new(t||i)(m(Vl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridTemplateEditing",""]],inputs:{createNewItem:["kendoGridTemplateEditing","createNewItem"]},features:[j]}),i}(),Zfe=function i(r){if(r.markAsTouched(),r.hasOwnProperty("controls")){var t=r.controls;for(var e in t)t.hasOwnProperty(e)&&i(t[e])}},Yfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).grid=n,o.localDataChangesService=a,o}return v(e,[{key:"createModel",value:function(a){return this.createFormGroup(a)}},{key:"saveModel",value:function(a){var o=a.dataItem,s=a.formGroup;if(s.dirty||a.isNew){if(s.valid)return this.editService.assignValues(o,s.value),o;Zfe(s)}}}]),e}(qfe);return i.\u0275fac=function(t){return new(t||i)(m(Vl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridReactiveEditing",""]],inputs:{createFormGroup:["kendoGridReactiveEditing","createFormGroup"]},features:[j]}),i}(),Qfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a)).grid=n,s.localDataChangesService=a,s.cdr=o,s}return v(e,[{key:"createModel",value:function(a){return this.createFormGroup(a)}},{key:"saveModel",value:function(a){var o=a.dataItem,s=a.formGroup;if(s.dirty||a.isNew){if(s.valid)return this.editService.assignValues(o,s.value),o;Zfe(s)}}},{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.subscriptions.add(this.grid.cellClick.subscribe(this.cellClickHandler.bind(this))),this.subscriptions.add(this.grid.cellClose.subscribe(this.cellCloseHandler.bind(this)))}},{key:"removeHandler",value:function(a){$(q(e.prototype),"removeHandler",this).call(this,a),this.grid.cancelCell()}},{key:"cellClickHandler",value:function(a){!a.isEdited&&"contextmenu"!==a.type&&(this.grid.editCell(a.rowIndex,a.columnIndex,this.createFormGroup(a)),this.cdr.markForCheck())}},{key:"cellCloseHandler",value:function(a){var o=a.formGroup,s=a.dataItem;if(o.valid){if(o.dirty){if(a.originalEvent&&a.originalEvent.keyCode===J.Escape)return;this.editService.assignValues(s,o.value),this.editService.update(s)}}else a.preventDefault()}}]),e}($fe);return i.\u0275fac=function(t){return new(t||i)(m(Vl),m(ed),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoGridInCellEditing",""]],inputs:{createFormGroup:["kendoGridInCellEditing","createFormGroup"]},features:[j]}),i}(),wkt=function(r){return r&&r.length&&r[0].field&&r[0].items},Jfe=function(r){return He(r)&&r.length>0},eve=function(r,t){return jte(r,t).data},tve=function(r,t){var e=[];return{group:r.split("_").reduce(function(n,a){var o=parseInt(a,10);return n.items?(e.push(n),n.items[o]):cG(n)?n[o]:n},t),parents:e}},OU=function i(r){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce(function(e,n){if(n.skipHeader||e++,n.items){var a=i(n.items,t);t&&a&&!n.hideFooter&&e++,e+=a}return e},0)},Tkt=function i(r,t,e){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!He(e))return r;for(var a=[],o=0,s=r.length;o0;if(t&&(t--,c&&t>=c))t-=c;else if(!d||c){var h=[],f=!0;if(d||e--,e){if(wkt(u)){var g=i(u,t,e,n);h.push.apply(h,Ae(g)),e-=OU(g,n)}else h.push.apply(h,Ae(u.slice(t,Math.min(t+e,u.length)))),e-=h.length;e&&n&&(f=!1,e--),t=0}a.push({aggregates:l.aggregates,field:l.field,hideFooter:f,items:h,offset:o,skipHeader:d,value:l.value})}}return a},nve=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){return p(this,e),t.call(this,n,a,o)}return v(e,[{key:"kendoGridGroupBinding",set:function(a){this.groups=null,this.grid.resetGroupsState(),this.data=a}},{key:"data",set:function(a){this.originalData=a||[],this.dataChanged=!0}},{key:"sort",set:function(a){var o=this.state.sort!==a;this.grid.sort=this.state.sort=a,o&&(this.groups=null,this.grid.resetGroupsState())}},{key:"filter",set:function(a){qhe(this.state.filter,a)&&(this.state.filter=a,this.grid.filter=sU(a),this.groups=null,this.grid.resetGroupsState())}},{key:"group",set:function(a){var o=Jfe(this.state.group)||Jfe(a),s=this.state.group!==a&&o;this.grid.group=this.state.group=a,s&&(this.groups=null,this.grid.resetGroupsState(),this.skip=0)}},{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.grid.groupExpand.subscribe(this.groupExpand.bind(this)),this.grid.groupCollapse.subscribe(this.groupCollapse.bind(this))}},{key:"ngAfterContentInit",value:function(){if(xt()&&this.grid.isGroupExpanded)throw new Error("Using the `kendoGridGroupBinding` directive in combination with the `kendoGridExpandGroupBy` directive or the `isGroupExpanded` callback is not supported. To use grouping with the `kendoGridGroupBinding` directive, set the Grid `groupable` property to `true`.")}},{key:"groupExpand",value:function(a){var o=a.groupIndex;this.grid.expandGroupChildren(o);var s=tve(o,this.groups),l=s.group,u=s.parents;if(!l.items.length){var c=this.state.group.filter(function(r,t){return function(e){return e.field!==t.field&&!r.some(function(n){return n.field===e.field})}}(u,l)),d=function(r,t){var e=t.map(function(n){return{field:n.field,operator:"eq",value:n.value}});return Ute(r,{filters:e,logic:"and"})}(this.originalData,u.concat(l));l.items=eve(d,{filter:this.state.filter,group:c,sort:this.state.sort})}this.grid.data=this.dataResult(this.state.skip,this.state.take)}},{key:"groupCollapse",value:function(a){var l=tve(a.groupIndex,this.groups).group;l&&(l.items=[]),this.grid.data=this.dataResult(this.state.skip,this.state.take)}},{key:"process",value:function(a){if(a.group&&a.group.length){var o=this.processGroups(a);return this.grid.skip-=function(r){for(var t=0;r;)r.skipHeader&&t++,r=r.items&&r.items[0]||null;return t}(o.data[0]),o}return this.groups=null,$(q(e.prototype),"process",this).call(this,a)}},{key:"processGroups",value:function(a){return(!this.groups||!this.groups.length)&&(this.groups=eve(this.originalData,{filter:a.filter,group:a.group,sort:a.sort})),this.dataResult(a.skip,a.take)}},{key:"dataResult",value:function(a,o){var s=this.grid.showGroupFooters;return{data:Tkt(this.groups,a,o,s),total:OU(this.groups,s)}}},{key:"applyState",value:function(a){var s=a.take,l=a.sort,u=a.group,c=a.filter;this.skip=a.skip,this.state.take=s,this.sort=l,this.group=u,this.filter=c}}]),e}(xU);return i.\u0275fac=function(t){return new(t||i)(m(Vl),m(nt),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupBinding",""]],inputs:{kendoGridGroupBinding:"kendoGridGroupBinding",sort:"sort",filter:"filter",group:"group"},features:[j]}),i}(),xkt=([Vl,UG,qG,rhe,xU,xfe,Ofe,nve,Xfe,Yfe,Qfe,Mfe,Rfe].concat(Ae(NA.exports()),Ae(id.exports()),Ae(Kfe.exports()),Ae(Pfe.exports()),Ae(jfe.exports()),Ae(Nfe.exports()),Ae(MU.exports()),Ae(FA.exports()),Ae(RU.exports())),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,NA,id,Kfe,Pfe,jfe,Nfe,MU,FA,yo,RU]]}),i}()),jkt=(Ta("KENDO-GRID-LIST"),Ta("TABLE"),function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.renderer=e,this.colors={"SEV: LOW":"#ff9800","SEV: MEDIUM":"#ff5d2a","SEV: HIGH":"#d50000",ENHANCEMENT:"#00c853",FEATURE:"#2e7d32",OTHER:"#1ca8dd","PASSED QA":"#57b45b",BUG:"#cf3257","NEEDS QA":"#bc007c",DOCUMENTATION:"#455a64",DEMO:"#673ab7",DELETED:"#f44336","IN PROGRESS":"#ffd600"}}return v(r,[{key:"labelClass",set:function(e){var n=this.matchColor(e);this.renderer.setStyle(this.element.nativeElement,"backgroundColor",n)}},{key:"matchColor",value:function(e){return this.colors[e.toUpperCase()]||this.colors.OTHER}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","appLabelClass",""]],inputs:{labelClass:"labelClass"}}),i}());var Ym={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},$kt=/[&<>"']/,qkt=/[&<>"']/g,Xkt=/[<>"']|&(?!#?\w+;)/,Zkt=/[<>"']|&(?!#?\w+;)/g,Ykt={"&":"&","<":"<",">":">",'"':""","'":"'"},dve=function(r){return Ykt[r]};function ua(i,r){if(r){if($kt.test(i))return i.replace(qkt,dve)}else if(Xkt.test(i))return i.replace(Zkt,dve);return i}var Qkt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function hve(i){return i.replace(Qkt,function(r,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var Jkt=/(^|[^\[])\^/g;function bi(i,r){i="string"==typeof i?i:i.source,r=r||"";var t={replace:function(n,a){return a=(a=a.source||a).replace(Jkt,"$1"),i=i.replace(n,a),t},getRegex:function(){return new RegExp(i,r)}};return t}var eCt=/[^\w:]/g,tCt=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function fve(i,r,t){if(i){var e;try{e=decodeURIComponent(hve(t)).replace(eCt,"").toLowerCase()}catch(n){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}r&&!tCt.test(t)&&(t=function aCt(i,r){LA[" "+i]||(LA[" "+i]=nCt.test(i)?i+"/":BA(i,"/",!0));var t=-1===(i=LA[" "+i]).indexOf(":");return"//"===r.substring(0,2)?t?r:i.replace(iCt,"$1")+r:"/"===r.charAt(0)?t?r:i.replace(rCt,"$1")+r:i+r}(r,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch(n){return null}return t}var LA={},nCt=/^[^:]+:\/*[^/]*$/,iCt=/^([^:]+:)[\s\S]*$/,rCt=/^([^:]+:\/*[^/]*)[\s\S]*$/,PA={exec:function(){}};function Gl(i){for(var t,e,r=1;r=0&&"\\"===s[u];)l=!l;return l?"|":" |"}).split(/ \|/),n=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>r)e.splice(r);else for(;e.length1;)1&r&&(t+=i),r>>=1,i+=i;return t+i}function mve(i,r,t,e){var n=r.href,a=r.title?ua(r.title):null,o=i[1].replace(/\\([\[\]])/g,"$1");if("!"!==i[0].charAt(0)){e.state.inLink=!0;var s={type:"link",raw:t,href:n,title:a,text:o,tokens:e.inlineTokens(o,[])};return e.state.inLink=!1,s}return{type:"image",raw:t,href:n,title:a,text:ua(o)}}var UU=function(){function i(r){p(this,i),this.options=r||Ym}return v(i,[{key:"space",value:function(t){var e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}},{key:"code",value:function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:BA(n,"\n")}}}},{key:"fences",value:function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],a=function sCt(i,r){var t=i.match(/^(\s+)(?:```)/);if(null===t)return r;var e=t[1];return r.split("\n").map(function(n){var a=n.match(/^\s+/);return null===a?n:Bt(a,1)[0].length>=e.length?n.slice(e.length):n}).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:a}}}},{key:"heading",value:function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var a=BA(n,"#");(this.options.pedantic||!a||/ $/.test(a))&&(n=a.trim())}var o={type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}},{key:"hr",value:function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}},{key:"blockquote",value:function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}},{key:"list",value:function(t){var e=this.rules.block.list.exec(t);if(e){var n,a,o,s,l,u,c,d,h,f,g,_,C=e[1].trim(),w=C.length>1,E={type:"list",raw:"",ordered:w,start:w?+C.slice(0,-1):"",loose:!1,items:[]};C=w?"\\d{1,9}\\".concat(C.slice(-1)):"\\".concat(C),this.options.pedantic&&(C=w?C:"[*+-]");for(var M=new RegExp("^( {0,3}".concat(C,")((?:[\t ][^\\n]*)?(?:\\n|$))"));t&&(_=!1,(e=M.exec(t))&&!this.rules.block.hr.test(t));){if(t=t.substring((n=e[0]).length),d=e[2].split("\n",1)[0],h=t.split("\n",1)[0],this.options.pedantic?(s=2,g=d.trimLeft()):(s=e[2].search(/[^ ]/),g=d.slice(s=s>4?1:s),s+=e[1].length),u=!1,!d&&/^ *$/.test(h)&&(n+=h+"\n",t=t.substring(h.length+1),_=!0),!_)for(var R=new RegExp("^ {0,".concat(Math.min(3,s-1),"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))")),N=new RegExp("^ {0,".concat(Math.min(3,s-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"));t&&(d=f=t.split("\n",1)[0],this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!R.test(d)&&!N.test(t));){if(d.search(/[^ ]/)>=s||!d.trim())g+="\n"+d.slice(s);else{if(u)break;g+="\n"+d}!u&&!d.trim()&&(u=!0),n+=f+"\n",t=t.substring(f.length+1)}E.loose||(c?E.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(a=/^\[[ xX]\] /.exec(g))&&(o="[ ] "!==a[0],g=g.replace(/^\[[ xX]\] +/,"")),E.items.push({type:"list_item",raw:n,task:!!a,checked:o,loose:!1,text:g}),E.raw+=n}E.items[E.items.length-1].raw=n.trimRight(),E.items[E.items.length-1].text=g.trimRight(),E.raw=E.raw.trimRight();var G=E.items.length;for(l=0;l1)return!0}catch(me){K.e(me)}finally{K.f()}return!1});!E.loose&&U.length&&ee&&(E.loose=!0,E.items[l].loose=!0)}return E}}},{key:"html",value:function(t){var e=this.rules.block.html.exec(t);if(e){var n={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(e[0]):ua(e[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}}},{key:"def",value:function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}}},{key:"table",value:function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:vve(e[1]).map(function(c){return{text:c}}),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var o,s,l,u,a=n.align.length;for(o=0;o/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):ua(e[0]):e[0]}}},{key:"link",value:function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var a=BA(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{var o=function oCt(i,r){if(-1===i.indexOf(r[1]))return-1;for(var t=i.length,e=0,n=0;n-1){var l=(0===e[0].indexOf("!")?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,l).trim(),e[3]=""}}var u=e[2],c="";if(this.options.pedantic){var d=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(u);d&&(u=d[1],c=d[3])}else c=e[3]?e[3].slice(1,-1):"";return u=u.trim(),/^$/.test(n)?u.slice(1):u.slice(1,-1)),mve(e,{href:u&&u.replace(this.rules.inline._escapes,"$1"),title:c&&c.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}},{key:"reflink",value:function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var a=(n[2]||n[1]).replace(/\s+/g," ");if(!(a=e[a.toLowerCase()])||!a.href){var o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return mve(n,a,n[0],this.lexer)}}},{key:"emStrong",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=this.rules.inline.emStrong.lDelim.exec(t);if(a&&(!a[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=a[1]||a[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){var l,u,s=a[0].length-1,c=s,d=0,h="*"===a[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,e=e.slice(-1*t.length+s);null!=(a=h.exec(e));)if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6]){if(u=l.length,a[3]||a[4]){c+=u;continue}if((a[5]||a[6])&&s%3&&!((s+u)%3)){d+=u;continue}if(!((c-=u)>0)){if(u=Math.min(u,u+c+d),Math.min(s,u)%2){var f=t.slice(1,s+a.index+u);return{type:"em",raw:t.slice(0,s+a.index+u+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}var g=t.slice(2,s+a.index+u-1);return{type:"strong",raw:t.slice(0,s+a.index+u+1),text:g,tokens:this.lexer.inlineTokens(g,[])}}}}}}},{key:"codespan",value:function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),a=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return a&&o&&(n=n.substring(1,n.length-1)),n=ua(n,!0),{type:"codespan",raw:e[0],text:n}}}},{key:"br",value:function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}},{key:"del",value:function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}}},{key:"autolink",value:function(t,e){var a,o,n=this.rules.inline.autolink.exec(t);if(n)return o="@"===n[2]?"mailto:"+(a=ua(this.options.mangle?e(n[1]):n[1])):a=ua(n[1]),{type:"link",raw:n[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}},{key:"url",value:function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var a,o;if("@"===n[2])o="mailto:"+(a=ua(this.options.mangle?e(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);a=ua(n[0]),o="www."===n[1]?"http://"+a:a}return{type:"link",raw:n[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}}},{key:"inlineText",value:function(t,e){var a,n=this.rules.inline.text.exec(t);if(n)return a=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):ua(n[0]):n[0]:ua(this.options.smartypants?e(n[0]):n[0]),{type:"text",raw:n[0],text:a}}}]),i}(),Ht={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:PA,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Ht.def=bi(Ht.def).replace("label",Ht._label).replace("title",Ht._title).getRegex(),Ht.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ht.listItemStart=bi(/^( *)(bull) */).replace("bull",Ht.bullet).getRegex(),Ht.list=bi(Ht.list).replace(/bull/g,Ht.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ht.def.source+")").getRegex(),Ht._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ht._comment=/|$)/,Ht.html=bi(Ht.html,"i").replace("comment",Ht._comment).replace("tag",Ht._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ht.paragraph=bi(Ht._paragraph).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.blockquote=bi(Ht.blockquote).replace("paragraph",Ht.paragraph).getRegex(),Ht.normal=Gl({},Ht),Ht.gfm=Gl({},Ht.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ht.gfm.table=bi(Ht.gfm.table).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.gfm.paragraph=bi(Ht._paragraph).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ht.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.pedantic=Gl({},Ht.normal,{html:bi("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ht._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:PA,paragraph:bi(Ht.normal._paragraph).replace("hr",Ht.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ht.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var _t={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:PA,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:PA,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(e="x"+e.toString(16)),r+="&#"+e+";";return r}_t._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",_t.punctuation=bi(_t.punctuation).replace(/punctuation/g,_t._punctuation).getRegex(),_t.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,_t.escapedEmSt=/\\\*|\\_/g,_t._comment=bi(Ht._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),_t.emStrong.lDelim=bi(_t.emStrong.lDelim).replace(/punct/g,_t._punctuation).getRegex(),_t.emStrong.rDelimAst=bi(_t.emStrong.rDelimAst,"g").replace(/punct/g,_t._punctuation).getRegex(),_t.emStrong.rDelimUnd=bi(_t.emStrong.rDelimUnd,"g").replace(/punct/g,_t._punctuation).getRegex(),_t._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,_t._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,_t._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,_t.autolink=bi(_t.autolink).replace("scheme",_t._scheme).replace("email",_t._email).getRegex(),_t._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,_t.tag=bi(_t.tag).replace("comment",_t._comment).replace("attribute",_t._attribute).getRegex(),_t._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,_t._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,_t._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,_t.link=bi(_t.link).replace("label",_t._label).replace("href",_t._href).replace("title",_t._title).getRegex(),_t.reflink=bi(_t.reflink).replace("label",_t._label).replace("ref",Ht._label).getRegex(),_t.nolink=bi(_t.nolink).replace("ref",Ht._label).getRegex(),_t.reflinkSearch=bi(_t.reflinkSearch,"g").replace("reflink",_t.reflink).replace("nolink",_t.nolink).getRegex(),_t.normal=Gl({},_t),_t.pedantic=Gl({},_t.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:bi(/^!?\[(label)\]\((.*?)\)/).replace("label",_t._label).getRegex(),reflink:bi(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_t._label).getRegex()}),_t.gfm=Gl({},_t.normal,{escape:bi(_t.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[];for(t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,function(c,d,h){return d+" ".repeat(h.length)});t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(c){return!!(a=c.call({lexer:e},t,n))&&(t=t.substring(a.raw.length),n.push(a),!0)}))){if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length),1===a.raw.length&&n.length>0?n[n.length-1].raw+="\n":n.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length),!(o=n[n.length-1])||"paragraph"!==o.type&&"text"!==o.type?n.push(a):(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length),!(o=n[n.length-1])||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title}):(o.raw+="\n"+a.raw,o.text+="\n"+a.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock&&function(){var c=1/0,d=t.slice(1),h=void 0;e.options.extensions.startBlock.forEach(function(f){"number"==typeof(h=f.call({lexer:this},d))&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}(),this.state.top&&(a=this.tokenizer.paragraph(s))){o=n[n.length-1],l&&"paragraph"===o.type?(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(a),l=s.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===o.type?(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(a);continue}if(t){var u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}return this.state.top=!0,n}},{key:"inline",value:function(t,e){this.inlineQueue.push({src:t,tokens:e})}},{key:"inlineTokens",value:function(t){var a,o,s,u,c,d,e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=t;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(h.length>0)for(;null!=(u=this.tokenizer.rules.inline.reflinkSearch.exec(l));)h.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,u.index)+"["+gve("a",u[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(u=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,u.index)+"["+gve("a",u[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(u=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,u.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(c||(d=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(g){return!!(a=g.call({lexer:e},t,n))&&(t=t.substring(a.raw.length),n.push(a),!0)}))){if(a=this.tokenizer.escape(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(t)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===a.type&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(a=this.tokenizer.link(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===a.type&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(t,l,d)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(t,_ve)){t=t.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(t,_ve))){t=t.substring(a.raw.length),n.push(a);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline&&function(){var g=1/0,_=t.slice(1),C=void 0;e.options.extensions.startInline.forEach(function(w){"number"==typeof(C=w.call({lexer:this},_))&&C>=0&&(g=Math.min(g,C))}),g<1/0&&g>=0&&(s=t.substring(0,g+1))}(),a=this.tokenizer.inlineText(s,lCt)){t=t.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(d=a.raw.slice(-1)),c=!0,(o=n[n.length-1])&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(t){var f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}return n}}],[{key:"rules",get:function(){return{block:Ht,inline:_t}}},{key:"lex",value:function(t,e){return new i(e).lex(t)}},{key:"lexInline",value:function(t,e){return new i(e).inlineTokens(t)}}]),i}(),zU=function(){function i(r){p(this,i),this.options=r||Ym}return v(i,[{key:"code",value:function(t,e,n){var a=(e||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(t,a);null!=o&&o!==t&&(n=!0,t=o)}return t=t.replace(/\n$/,"")+"\n",a?'
'+(n?t:ua(t,!0))+"
\n":"
"+(n?t:ua(t,!0))+"
\n"}},{key:"blockquote",value:function(t){return"
\n".concat(t,"
\n")}},{key:"html",value:function(t){return t}},{key:"heading",value:function(t,e,n,a){if(this.options.headerIds){var o=this.options.headerPrefix+a.slug(n);return"').concat(t,"\n")}return"").concat(t,"\n")}},{key:"hr",value:function(){return this.options.xhtml?"
\n":"
\n"}},{key:"list",value:function(t,e,n){var a=e?"ol":"ul";return"<"+a+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"\n"}},{key:"listitem",value:function(t){return"
  • ".concat(t,"
  • \n")}},{key:"checkbox",value:function(t){return" "}},{key:"paragraph",value:function(t){return"

    ".concat(t,"

    \n")}},{key:"table",value:function(t,e){return e&&(e="".concat(e,"")),"\n\n"+t+"\n"+e+"
    \n"}},{key:"tablerow",value:function(t){return"\n".concat(t,"\n")}},{key:"tablecell",value:function(t,e){var n=e.header?"th":"td";return(e.align?"<".concat(n,' align="').concat(e.align,'">'):"<".concat(n,">"))+t+"\n")}},{key:"strong",value:function(t){return"".concat(t,"")}},{key:"em",value:function(t){return"".concat(t,"")}},{key:"codespan",value:function(t){return"".concat(t,"")}},{key:"br",value:function(){return this.options.xhtml?"
    ":"
    "}},{key:"del",value:function(t){return"".concat(t,"")}},{key:"link",value:function(t,e,n){if(null===(t=fve(this.options.sanitize,this.options.baseUrl,t)))return n;var a='"+n+""}},{key:"image",value:function(t,e,n){if(null===(t=fve(this.options.sanitize,this.options.baseUrl,t)))return n;var a='').concat(n,'":">")}},{key:"text",value:function(t){return t}}]),i}(),yve=function(){function i(){p(this,i)}return v(i,[{key:"strong",value:function(t){return t}},{key:"em",value:function(t){return t}},{key:"codespan",value:function(t){return t}},{key:"del",value:function(t){return t}},{key:"html",value:function(t){return t}},{key:"text",value:function(t){return t}},{key:"link",value:function(t,e,n){return""+n}},{key:"image",value:function(t,e,n){return""+n}},{key:"br",value:function(){return""}}]),i}(),kve=function(){function i(){p(this,i),this.seen={}}return v(i,[{key:"serialize",value:function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(t,e){var n=t,a=0;if(this.seen.hasOwnProperty(n)){a=this.seen[t];do{n=t+"-"+ ++a}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=a,this.seen[n]=0),n}},{key:"slug",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}]),i}(),Jm=function(){function i(r){p(this,i),this.options=r||Ym,this.options.renderer=this.options.renderer||new zU,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new yve,this.slugger=new kve}return v(i,[{key:"parse",value:function(t){var a,o,s,l,u,c,d,h,f,g,_,C,w,E,M,R,N,G,U,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="",ee=t.length;for(a=0;a0&&"paragraph"===M.tokens[0].type?(M.tokens[0].text=G+" "+M.tokens[0].text,M.tokens[0].tokens&&M.tokens[0].tokens.length>0&&"text"===M.tokens[0].tokens[0].type&&(M.tokens[0].tokens[0].text=G+" "+M.tokens[0].tokens[0].text)):M.tokens.unshift({type:"text",text:G}):E+=G),E+=this.parse(M.tokens,w),f+=this.renderer.listitem(E,N,R);n+=this.renderer.list(f,_,C);continue;case"html":n+=this.renderer.html(g.text);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(g.tokens));continue;case"text":for(f=g.tokens?this.parseInline(g.tokens):g.text;a+1An error occurred:

    "+ua(l.message+"",!0)+"
    ";throw l}}en.options=en.setOptions=function(i){return Gl(en.defaults,i),function Wkt(i){Ym=i}(en.defaults),en},en.getDefaults=function cve(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},en.defaults=Ym,en.use=function(){for(var i=arguments.length,r=new Array(i),t=0;tAn error occurred:

    "+ua(e.message+"",!0)+"
    ";throw e}},en.Parser=Jm,en.parser=Jm.parse,en.Renderer=zU,en.TextRenderer=yve,en.Lexer=Qm,en.lexer=Qm.lex,en.Tokenizer=UU,en.Slugger=kve,en.parse=en;var uCt=en.setOptions,cCt=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"ngOnChanges",value:function(){var e=uCt({});this.convertedData=e.parse(this.data)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-markdown"]],inputs:{data:"data"},features:[Ie],decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(t,e){1&t&&z(0,"div",0),2&t&&y("innerHTML",e.convertedData,BS)},encapsulation:2}),i}();function dCt(i,r){1&i&&z(0,"app-loading-spinner")}function hCt(i,r){1&i&&(A(0,"div"),z(1,"img",8),x())}function fCt(i,r){if(1&i&&(A(0,"a",17),te(1),x()),2&i){var t=r.$implicit;k(1),Nt("#",t.number,"")}}var vCt=function(r,t){return{"issue-status":!0,"issue-open":r,"issue-closed":t}};function pCt(i,r){if(1&i&&(z(0,"span",18),te(1)),2&i){var t=r.$implicit;y("ngClass",ln(2,vCt,"open"===t.state,"open"!==t.state)),k(1),Nt(" ",t.title," ")}}function gCt(i,r){if(1&i&&(A(0,"span",20),te(1),x()),2&i){var t=r.$implicit;y("appLabelClass",t.name),k(1),Nt(" ",t.name," ")}}function mCt(i,r){1&i&&T(0,gCt,2,2,"span",19),2&i&&y("ngForOf",r.$implicit.labels)}function _Ct(i,r){if(1&i&&te(0),2&i){var t=r.$implicit;Nt(" ",t.milestone?t.milestone.title:""," ")}}var Cve=function(){return{width:"30px",height:"30px"}};function yCt(i,r){if(1&i&&z(0,"img",22),2&i){var t=D().$implicit;y("src",t.assignee?t.assignee.avatar_url:void 0,uc)("ngStyle",wt(2,Cve))}}function kCt(i,r){if(1&i&&(T(0,yCt,1,3,"img",21),te(1)),2&i){var t=r.$implicit;y("ngIf",t.assignee),k(1),Nt(" ",t.assignee?t.assignee.login:""," ")}}function CCt(i,r){if(1&i&&(A(0,"div",28)(1,"span",29),te(2,"Closed on"),x(),te(3),Wa(4,"date"),x()),2&i){var t=D().$implicit;k(3),Nt(" ",fc(4,1,t.closed_at)," ")}}function bCt(i,r){if(1&i&&(A(0,"div",28)(1,"span",29),te(2,"Assignee"),x(),z(3,"img",22),te(4),x()),2&i){var t=D().$implicit;k(3),y("src",t.assignee?t.assignee.avatar_url:void 0,uc)("ngStyle",wt(3,Cve)),k(1),Nt(" ",t.assignee?t.assignee.login:""," ")}}function SCt(i,r){if(1&i&&(A(0,"span",20),te(1),x()),2&i){var t=r.$implicit;y("appLabelClass",t.name),k(1),Nt(" ",t.name," ")}}var wCt=function(r,t){return{"badge-success":r,"badge-danger":t}};function DCt(i,r){if(1&i&&(A(0,"div",23)(1,"div",24)(2,"span",25),te(3),x(),A(4,"h3",26),te(5),A(6,"span",27),te(7),x()()()(),A(8,"div",23)(9,"div",28)(10,"span",29),te(11,"Created on"),x(),te(12),Wa(13,"date"),x(),T(14,CCt,5,3,"div",30),A(15,"div",28)(16,"span",29),te(17,"Milestone"),x(),te(18),x(),A(19,"div",28)(20,"span",29),te(21,"Author"),x(),te(22),x(),T(23,bCt,5,4,"div",30),x(),A(24,"div",23)(25,"div",28)(26,"h4",31),te(27,"Labels"),x(),T(28,SCt,2,2,"span",19),x(),A(29,"div",32)(30,"h4",31),te(31,"Description"),x(),z(32,"app-markdown",33),x()()),2&i){var t=r.$implicit;k(2),y("ngClass",ln(13,wCt,"open"===t.state,"closed"===t.state)),k(1),at(t.state),k(2),Nt(" ",t.title," "),k(2),Nt("#",t.number,""),k(5),Nt(" ",fc(13,11,t.created_at)," "),k(2),y("ngIf",t.closed_at),k(4),Nt(" ",t.milestone?t.milestone.title:""," "),k(4),Nt(" ",t.user.login," "),k(1),y("ngIf",t.assignee),k(5),y("ngForOf",t.labels),k(4),y("data",t.body)}}function ECt(i,r){if(1&i){var t=Me();A(0,"kendo-grid",9),Q("pageChange",function(a){return re(t),D().onPageChange(a)}),A(1,"kendo-grid-column",10),T(2,fCt,2,1,"ng-template",11),x(),A(3,"kendo-grid-column",12),T(4,pCt,2,5,"ng-template",11),x(),A(5,"kendo-grid-column",13),T(6,mCt,1,1,"ng-template",11),x(),A(7,"kendo-grid-column",14),T(8,_Ct,1,1,"ng-template",11),x(),A(9,"kendo-grid-column",15),T(10,kCt,2,2,"ng-template",11),x(),T(11,DCt,33,16,"ng-template",16),x()}if(2&i){var e=D();y("data",e.view)("pageSize",e.pageSize)("pageable",!0)("skip",e.skip)("scrollable","none")}}var bve,Sve,TCt=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.http=t,this.githubService=e,this.issuesProcessor=n,this.isLoading=!0,this.selectedPeriod=3,this.total=5,this.pageSize=10,this.skip=0,this.today=new Date,this.months=3,this.range=this.dateRange(),e.getGithubIssues({pages:5}).subscribe(function(o){o=o.reduce(function(s,l){return[].concat(Ae(s),Ae(l))},[]).filter(function(s){return!s.pull_request}),a.allIssues=o,a.applyPaging(a.issuesProcessor.filterByMonth(a.allIssues,a.months)),a.isLoading=!1},function(){return a.isLoading=!1})}return v(r,[{key:"get_id",get:function(){return"issues"}},{key:"get_class",get:function(){return"container-fluid"}},{key:"onFilterClick",value:function(e){this.selectedPeriod=e,this.skip=0,this.months=e,this.range=this.dateRange(),this.applyPaging(this.issuesProcessor.filterByMonth(this.allIssues,e))}},{key:"onPageChange",value:function(e){this.skip=e.skip,this.view=this.getView(e.skip,e.take)}},{key:"applyPaging",value:function(e){this.issues=e,this.view=this.getView(this.skip,this.pageSize)}},{key:"getView",value:function(e,n){return{data:this.issues.slice(e,e+n),total:this.issues.length}}},{key:"dateRange",value:function(){return{to:new Date,from:this.issuesProcessor.getMonthsRange(this.months)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(rO),m(Jp),m(hD))},i.\u0275cmp=L({type:i,selectors:[["app-issues"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.get_id),_r(e.get_class))},features:[de([Jp,hD])],decls:19,vars:17,consts:[["id","header",1,"row"],[1,"col-sm"],[1,"h2"],[1,"col-sm","text-sm-right","p-0","p-sm-3"],[3,"disabled","selection"],["kendoRippleContainer","","kendoButton","",3,"disabled","selected","click"],[4,"ngIf"],[3,"data","pageSize","pageable","skip","scrollable","pageChange",4,"ngIf"],["src","../../assets/noConnection.png"],[3,"data","pageSize","pageable","skip","scrollable","pageChange"],["field","number","title","ID","width","80"],["kendoGridCellTemplate",""],["field","title","title","Title"],["field","labels","title","Labels","media","sm"],["field","milestone","title","Milestone","width","200","media","xl"],["field","assignee","title","Assignee","width","200","media","xl"],["kendoGridDetailTemplate",""],["href","dataItem.html_url"],[3,"ngClass"],["class","badge",3,"appLabelClass",4,"ngFor","ngForOf"],[1,"badge",3,"appLabelClass"],["class","img-circle",3,"src","ngStyle",4,"ngIf"],[1,"img-circle",3,"src","ngStyle"],[1,"row","my-4"],[1,"col-sm-12"],[1,"badge",3,"ngClass"],[1,"h1"],[1,"text-muted"],[1,"col-sm-2"],[1,"small","d-block","text-muted"],["class","col-sm-2",4,"ngIf"],[1,"small","text-muted"],[1,"col-sm-8"],[3,"data"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"h4"),te(3,"Issues"),x(),A(4,"p",2),te(5),Wa(6,"date"),Wa(7,"date"),x()(),A(8,"div",3)(9,"kendo-buttongroup",4)(10,"button",5),Q("click",function(){return e.onFilterClick(3)}),te(11,"3 Months"),x(),A(12,"button",5),Q("click",function(){return e.onFilterClick(6)}),te(13,"6 Months"),x(),A(14,"button",5),Q("click",function(){return e.onFilterClick(12)}),te(15,"1 Year"),x()()()(),T(16,dCt,1,0,"app-loading-spinner",6),T(17,hCt,2,0,"div",6),T(18,ECt,12,5,"kendo-grid",7)),2&t&&(k(5),Jl("",fc(6,13,e.range.from)," - ",fc(7,15,e.range.to),""),k(4),y("disabled",e.isLoading)("selection","single"),k(1),y("disabled",e.isLoading)("selected",3===e.selectedPeriod),k(2),y("disabled",e.isLoading)("selected",6===e.selectedPeriod),k(2),y("disabled",e.isLoading)("selected",12===e.selectedPeriod),k(2),y("ngIf",e.isLoading),k(1),y("ngIf",!e.isLoading&&!e.view),k(1),y("ngIf",e.view))},directives:[HW,La,$y,qe,aN,Vl,Pm,Nv,Ft,gn,jkt,Gi,JT,cCt],pipes:[Cw],encapsulation:2}),i}();function ACt(i,r){1&i&&dn(0,0,["*ngIf","!actions"])}function xCt(i,r){if(1&i){var t=Me();A(0,"button",5),Q("click",function(o){var l=re(t).$implicit;return D(2).onButtonClick(l,o)}),te(1),x()}if(2&i){var e=r.$implicit;y("ngClass",D(2).buttonClass(e)),ie("aria-label",e.text),k(1),Nt(" ",e.text," ")}}function MCt(i,r){if(1&i&&(Ve(0),T(1,xCt,2,3,"button",4),Ge()),2&i){var t=D();k(1),y("ngForOf",t.actionsArray)}}function RCt(i,r){}var HU=["*"];function OCt(i,r){if(1&i&&(A(0,"kendo-dialog-titlebar",7),te(1),x()),2&i){var t=D();y("closeTitle",t.closeTitle)("id",t.titleId),k(1),at(t.title)}}function ICt(i,r){1&i&&dn(0,0,["*ngIf","!title"])}function NCt(i,r){1&i&&dn(0,1,["*ngIf","!contentTemplate"])}function FCt(i,r){}function LCt(i,r){1&i&&T(0,FCt,0,0,"ng-template",8),2&i&&y("ngTemplateOutlet",D().contentTemplate)}function PCt(i,r){1&i&&dn(0,2,["*ngIf","!actions"])}function BCt(i,r){if(1&i&&z(0,"kendo-dialog-actions",9),2&i){var t=D();y("actions",t.actions)("layout",t.actionsLayout)}}var VCt=[[["kendo-dialog-titlebar"]],"*",[["kendo-dialog-actions"]]],GCt=["kendo-dialog-titlebar","*","kendo-dialog-actions"],Si=function(r){return null!=r},Ave=function(r){return String(r).trim().split(" ")},nbt=/^(?:a|input|select|textarea|button|object)$/i,ri=function(){return function(i){i[i.esc=27]="esc",i[i.tab=9]="tab",i[i.enter=13]="enter",i[i.space=32]="space",i[i.ctrl=17]="ctrl",i[i.shift=16]="shift",i[i.left=37]="left",i[i.up=38]="up",i[i.right=39]="right",i[i.down=40]="down"}(ri||(ri={})),ri}(),xve="k-dialog-wrapper k-dialog-buttongroup k-dialog-action",e_=function(r,t){var e=Ave(t);return Boolean(Ave(r.className).find(function(n){return e.indexOf(n)>=0}))},abt=function(r){var t=r.getBoundingClientRect();return!(!t.width||!t.height)&&"hidden"!==window.getComputedStyle(r).visibility},Vb=function(r){return dbt(r)?obt(r):KU(r)?sbt(r):Array.isArray(r)?lbt(r):void 0},obt=function(r){var t=[];return Object.keys(r).forEach(function(e){var n=jU(e);r[e]&&n[0]&&t.push.apply(t,Ae(n))}),t},sbt=function(r){var t=[];return jU(r).forEach(function(n){t.push(n)}),t},lbt=function(r){var t=[];return r.forEach(function(e){var n=jU(e);n[0]&&t.push.apply(t,Ae(n))}),t},ubt=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),KU=function(r){return r instanceof String||"string"==typeof r},dbt=function(r){return Si(r)&&!Array.isArray(r)&&"object"==typeof r},t_=function(r){return r+(function(r){return"number"==typeof r&&isFinite(r)}(r)?"px":"")},jU=function(r){return r.trim().replace(/\s+/g," ").split(" ")},Ub=function(){var i=function(){function r(t){p(this,r),this.el=t,this.layout="stretched",this.action=new O,this.buttonGroupClassName=!0}return v(r,[{key:"actions",set:function(e){if(e instanceof $e)this.actionsTemplate=e;else{if(!Array.isArray(e))throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');this.actionsArray=e}}},{key:"className",get:function(){return"stretched"===this.layout}},{key:"onButtonClick",value:function(e,n){this.action.emit(e)}},{key:"buttonClass",value:function(e){var n=["k-button k-button-md k-rounded-md"],a=e.fillMode?e.fillMode:"solid",o=e.themeColor?e.themeColor:"base",s=e.cssClass?Vb(e.cssClass):[];return n.push("k-button-".concat(a," k-button-").concat(a,"-").concat(o)),s.length>0&&(n=n.concat(s)),n.join(" ")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-actions"]],hostVars:6,hostBindings:function(t,e){2&t&&ue("k-dialog-buttongroup",e.buttonGroupClassName)("k-actions",e.buttonGroupClassName)("k-actions-stretched",e.className)},inputs:{actions:"actions",layout:"layout"},outputs:{action:"action"},ngContentSelectors:HU,decls:4,vars:4,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"],["actionTemplate",""],["type","button",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",3,"ngClass","click"]],template:function(t,e){if(1&t&&(kn(),T(0,ACt,1,0,"ng-content",0),T(1,MCt,2,1,"ng-container",1),T(2,RCt,0,0,"ng-template",2,3,$n)),2&t){var n=Yt(3);y("ngIf",!e.actions),k(1),y("ngIf",e.actionsArray)("ngIfElse",n),k(1),y("ngTemplateOutlet",e.actionsTemplate)}},directives:[qe,gn,Ft,En],encapsulation:2}),i}(),WU=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),Ive=new Dt("Dialog LocalizationService"),Nve=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a,o)).dialogLocalization=s,l}return v(e,[{key:"get",value:function(a){return this.dialogLocalization?this.dialogLocalization.get(a):$(q(e.prototype),"get",this).call(this,a)}}]),e}(Y);return i.\u0275fac=function(t){return new(t||i)(oe(Et),oe(rg,8),oe(Td,8),oe(Ive,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),VA=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-dialog-messages-base"]],inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},features:[j]}),i}(),GA=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(VA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDialogLocalizedMessages",""],["","kendoWindowLocalizedMessages",""],["","kendoDialogTitleBarLocalizedMessages",""]],features:[de([{provide:VA,useExisting:ke(function(){return i})}]),j]}),i}(),zb=function(){var i=function(){function r(t,e,n){p(this,r),this.zone=t,this.hostElement=e,this.localizationService=n,this.close=new O}return v(r,[{key:"className",get:function(){return!0}},{key:"closeButtonTitle",get:function(){return this.closeTitle||this.localizationService.get("closeTitle")}},{key:"ngAfterViewInit",value:function(){var e=this;this.zone.onStable.pipe(It(1)).subscribe(function(){e.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",e.id)})}},{key:"onCloseClick",value:function(e){e.preventDefault();var n=new WU;this.close.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(be),m(_e),m(Y,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-titlebar"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-window-titlebar",e.className)("k-dialog-titlebar",e.className)},inputs:{id:"id",closeTitle:"closeTitle"},outputs:{close:"close"},features:[de([Nve,{provide:Y,useExisting:Nve},{provide:Et,useValue:"kendo.dialog"}])],ngContentSelectors:HU,decls:6,vars:2,consts:function(){return[["kendoDialogTitleBarLocalizedMessages","","closeTitle",$localize(bve||(bve=le([":kendo.dialog.closeTitle|The title of the close button:Close"])))],[1,"k-window-title","k-dialog-title"],[1,"k-window-actions","k-dialog-actions"],["role","button",1,"k-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base","k-icon-button","k-window-action","k-dialog-action","k-dialog-close",3,"click"],[1,"k-button-icon","k-icon","k-i-x"]]},template:function(t,e){1&t&&(kn(),Ve(0,0),A(1,"div",1),dn(2),x(),A(3,"div",2)(4,"button",3),Q("click",function(a){return e.onCloseClick(a)}),z(5,"span",4),x()(),Ge()),2&t&&(k(4),ie("title",e.closeButtonTitle)("aria-label",e.closeButtonTitle))},directives:[GA],encapsulation:2}),i}(),Fve={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440923,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},UA=v(function i(){p(this,i)}),$U=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.wrapper=t,this.renderer=e,this.cdr=a,this.ngZone=o,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new O,this.close=new O,this.tabIndex=0,this.subscriptions=[],this.domSubs=new Je,jt(Fve),this.direction=n.rtl?"rtl":"ltr",this.subscriptions.push(n.changes.subscribe(function(l){return s.direction=l.rtl?"rtl":"ltr"})),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}return v(r,[{key:"htmlAttributes",get:function(){return this._htmlAttributes},set:function(e){!function(r,t,e){for(var n in r)n&&t.setAttribute(e,n,r[n])}(e,this.renderer,this.wrapper.nativeElement);var n=this.wrapper.nativeElement,a=n.getAttribute("dir"),o=n.getAttribute("tabindex");this.direction!==a&&a&&(this.direction=a),this.tabIndex!==o&&o&&(this.tabIndex=o),this._htmlAttributes=e}},{key:"cssClass",get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e}},{key:"dir",get:function(){return this.direction}},{key:"ngAfterContentInit",value:function(){var e=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(function(){Si(e.titlebarContent.first)&&(e.titlebarContent.first.id=e.titleId,e.ngZone.onStable.pipe(It(1)).subscribe(function(){e.bubble("close",e.titlebarContent.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))}))}},{key:"ngAfterViewInit",value:function(){var e=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(function(){Si(e.titlebarView.first)&&(e.titlebarView.first.id=e.titleId,e.ngZone.onStable.pipe(It(1)).subscribe(function(){e.bubble("close",e.titlebarView.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))})),this.initDomEvents()}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()}},{key:"focus",value:function(){var e=this.wrapper.nativeElement;Si(e)&&e.focus()}},{key:"initDomEvents",value:function(){var e=this;!this.wrapper||this.ngZone.runOutsideAngular(function(){e.domSubs.add(e.renderer.listen(e.wrapper.nativeElement,"keydown",function(n){e.onKeyDown(n)}))})}},{key:"onKeyDown",value:function(e){var n=this,a=e.target,o=a.parentElement;(e_(a,xve)||e_(o,xve))&&e.keyCode===ri.esc&&this.ngZone.run(function(){n.close.emit(new UA)}),e_(a,"k-button")&&e_(o,"k-dialog-buttongroup")&&(e.keyCode===ri.left||e.keyCode===ri.right)&&this.ngZone.run(function(){n.handleActionButtonFocus(o,e.keyCode)}),e.keyCode===ri.tab&&this.ngZone.run(function(){n.keepFocusWithinComponent(a,e)})}},{key:"setServiceClasses",value:function(e,n){var a=this,o=this.wrapper.nativeElement;e&&Vb(e).forEach(function(s){a.renderer.removeClass(o,s)}),n&&Vb(n).forEach(function(s){a.renderer.addClass(o,s)})}},{key:"handleInitialFocus",value:function(){var e=this.wrapper.nativeElement,n=this.findPrimary(e);if(this.autoFocusedElement){var a=e.querySelector(this.autoFocusedElement);a&&a.focus()}else this.shouldFocusPrimary(n)?n.focus():e.focus()}},{key:"findPrimary",value:function(e){return function(r){for(var t=r.length-1;t>=0;t--)for(var e=r[t].classList,n=0;n0){a[o-1].focus();break}if(n===ri.right&&o1&&void 0!==arguments[1])||arguments[1];if(r.tagName){var e=r.tagName.toLowerCase(),n=r.getAttribute("tabIndex"),a=null!==n&&!isNaN(n)&&n>-1;return(nbt.test(e)?!r.disabled:a)&&(!t||abt(r))}return!1}(e)}},{key:"getAllFocusableChildren",value:function(e){return e.querySelectorAll(ubt)}},{key:"getFirstAndLastFocusable",value:function(e){var n=this.getAllFocusableChildren(e);return[n.length>0?n[0]:e,n.length>0?n[n.length-1]:e]}},{key:"generateTitleId",value:function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()}},{key:"generateContentId",value:function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()}},{key:"wrapperClass",get:function(){return!0}},{key:"styles",get:function(){var e={};return this.width&&(e.width=t_(this.width)),this.height&&(e.height=t_(this.height)),this.minWidth&&(e.minWidth=t_(this.minWidth)),this.maxWidth&&(e.maxWidth=t_(this.maxWidth)),this.minHeight&&(e.minHeight=t_(this.minHeight)),this.maxHeight&&(e.maxHeight=t_(this.maxHeight)),e}},{key:"bubble",value:function(e,n){var a=this;if(n){var s=n[e].subscribe(function(u){return a[e].emit(u)});this.subscriptions.push(s)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Y),m(nt),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog"]],contentQueries:function(t,e,n){var a;1&t&&he(n,zb,4),2&t&&P(a=B())&&(e.titlebarContent=a)},viewQuery:function(t,e){var n;1&t&&(ge(Ub,5),ge(zb,5)),2&t&&(P(n=B())&&(e.actionsView=n.first),P(n=B())&&(e.titlebarView=n))},hostVars:4,hostBindings:function(t,e){2&t&&(ie("dir",e.dir)("tabIndex",e.tabIndex),ue("k-dialog-wrapper",e.wrapperClass))},inputs:{actions:"actions",actionsLayout:"actionsLayout",autoFocusedElement:"autoFocusedElement",title:"title",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",height:"height",minHeight:"minHeight",maxHeight:"maxHeight"},outputs:{action:"action",close:"close"},exportAs:["kendoDialog"],features:[de([Y,{provide:Ive,useExisting:Y},{provide:Et,useValue:"kendo.dialog"}])],ngContentSelectors:GCt,decls:10,vars:10,consts:function(){return[["kendoDialogLocalizedMessages","","closeTitle",$localize(Sve||(Sve=le([":kendo.dialog.closeTitle|The title of the close button:Close"])))],[1,"k-overlay"],["role","dialog","aria-modal","true",1,"k-window","k-dialog",3,"ngStyle"],[3,"closeTitle","id",4,"ngIf"],[4,"ngIf"],[1,"k-content","k-window-content","k-dialog-content",3,"id"],[3,"actions","layout",4,"ngIf"],[3,"closeTitle","id"],[3,"ngTemplateOutlet"],[3,"actions","layout"]]},template:function(t,e){1&t&&(kn(VCt),Ve(0,0),z(1,"div",1),A(2,"div",2),T(3,OCt,2,3,"kendo-dialog-titlebar",3),T(4,ICt,1,0,"ng-content",4),A(5,"div",5),T(6,NCt,1,0,"ng-content",4),T(7,LCt,1,1,null,4),x(),T(8,PCt,1,0,"ng-content",4),T(9,BCt,1,2,"kendo-dialog-actions",6),x(),Ge()),2&t&&(k(1),y("@overlayAppear",void 0),k(1),y("ngStyle",e.styles)("@dialogSlideInAppear",void 0),k(1),y("ngIf",e.title),k(1),y("ngIf",!e.title),k(1),y("id",e.contentId),k(1),y("ngIf",!e.contentTemplate),k(1),y("ngIf",e.contentTemplate),k(1),y("ngIf",!e.actions),k(1),y("ngIf",e.actions))},directives:[zb,Ub,GA,Gi,qe,En],encapsulation:2,data:{animation:[ef("overlayAppear",[Cd("in",Lt({opacity:1})),iu("void => *",[Lt({opacity:.1}),Ai(".3s cubic-bezier(.2, .6, .4, 1)")])]),ef("dialogSlideInAppear",[Cd("in",Lt({transform:"translate(0, 0)"})),iu("void => *",[Lt({transform:"translate(0, -10%)"}),Ai(".3s cubic-bezier(.2, 1, .2, 1)")])])]}}),i}(),Lve=v(function i(){p(this,i)}),vbt=function(){var i=function(){function r(t){p(this,r),this.dialog=t}return v(r,[{key:"ngAfterViewInit",value:function(){var e=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(Ue(function(n){return!n.isDefaultPrevented()})).subscribe(function(){e.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(function(n){return e.dialog.dialog.instance.action.emit(n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Lve))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-content-base"]],viewQuery:function(t,e){var n;1&t&&(ge(zb,5),ge(Ub,5)),2&t&&(P(n=B())&&(e.dialogTitleBar=n.first),P(n=B())&&(e.dialogActions=n.first))},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Pve=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"container",get:function(){return r.container},set:function(e){r.container=e}}]),r}();return i.container=null,i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),gbt=function(){function i(r,t){p(this,i),this.getDialogRef=r,this.parentInjector=t}return v(i,[{key:"get",value:function(t,e){return t===Lve?this.getDialogRef():this.parentInjector.get(t,e)}}]),i}(),mbt=function(){var i=function(){function r(t,e){p(this,r),this.resolver=t,this.containerService=e}return v(r,[{key:"open",value:function(e){var n=this.resolver.resolveComponentFactory($U),a=e.appendTo||this.containerService.container;if(!a)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n ");return this.initializeDialog(e.content,n,a,{close:function(){},content:null,dialog:null,result:null},e)}},{key:"initializeDialog",value:function(e,n,a,o,s){var l=this.contentFrom(e,a,o),u=a.createComponent(n,void 0,void 0,l.nodes);o.dialog=u,u.changeDetectorRef.markForCheck(),this.applyOptions(u.instance,s);var c=new Ot,d=function(E){E instanceof WU&&(E=new UA),c.next(E||new UA),l.componentRef&&l.componentRef.destroy(),u.destroy()},h=xn(c,xn(u.instance.close,u.instance.action).pipe(We(function(w){return w instanceof WU?new UA:w}),Ue(function(w){if(s.preventAction){var E=function(r){return KU(r)||r instanceof $e}(e)?void 0:o;return!s.preventAction(w,E)}return!0}))).pipe(It(1),ax());if(h.subscribe(d),o.close=d,o.result=h,e&&xt()){var f=l.nodes[0]&&l.nodes[0].length>0,g=l.nodes[2]&&l.nodes[2].length>0;e.prototype instanceof vbt?(s.title&&f||s.actions&&g)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(f||g)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")}return o}},{key:"applyOptions",value:function(e,n){e.title=n.title,e.actions=n.actions,e.actionsLayout=n.actionsLayout||"stretched",e.width=n.width,e.minWidth=n.minWidth,e.maxWidth=n.maxWidth,e.height=n.height,e.minHeight=n.minHeight,e.maxHeight=n.maxHeight,e.autoFocusedElement=n.autoFocusedElement,e.closeTitle=n.closeTitle,e.cssClass=n.cssClass,e.htmlAttributes=n.htmlAttributes,n.content instanceof $e&&(e.contentTemplate=n.content)}},{key:"contentFrom",value:function(e,n,a){var o=n.injector.get(Ee),s=[],l=[],u=[],c=null;if("string"==typeof e)s=[o.createText(e)];else if(e&&!(e instanceof $e)){var d=new gbt(function(){return a},n.injector),h=this.resolver.resolveComponentFactory(e);c=n.createComponent(h,void 0,d),l=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),s=[c.location.nativeElement],u=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-actions")),a.content=c}return{componentRef:c,nodes:[l,s,u]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Ts),oe(Pve))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),kbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],bt]}),i}(),Cbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[Pve,mbt],imports:[[kbt]]}),i}();function bbt(i,r){1&i&&z(0,"app-loading-spinner")}function Sbt(i,r){1&i&&(A(0,"div"),z(1,"img",1),x())}function wbt(i,r){if(1&i){var t=Me();A(0,"kendo-dialog",44),Q("close",function(){return re(t),D(2).onProfileDialogClose()}),A(1,"p"),te(2,"Your profile has been successfully updated"),x(),A(3,"kendo-dialog-actions")(4,"button",6),Q("click",function(){return re(t),D(2).onProfileDialogClose()}),te(5,"OK"),x()()()}}function Dbt(i,r){if(1&i){var t=Me();A(0,"kendo-dialog",45),Q("close",function(){return re(t),D(2).onDeleteDialogClose()}),A(1,"p"),te(2,"Account deletetion cannot be undone!"),x(),A(3,"kendo-dialog-actions")(4,"button",46),Q("click",function(){return re(t),D(2).onDeleteDialogClose()}),te(5,"Cancel"),x(),A(6,"button",47),Q("click",function(){return re(t),D(2).onDeleteDialogClose()}),te(7,"Delete Account"),x()()()}}var Ebt=function(){return{"max-width":"100%"}};function Tbt(i,r){if(1&i){var t=Me();A(0,"div")(1,"div",2)(2,"div",3)(3,"h4"),te(4,"Account"),x(),A(5,"p",4),te(6),x()(),A(7,"div",5)(8,"button",6),Q("click",function(){return re(t),D().onSignOutClick()}),te(9,"Sign out"),x()()(),A(10,"div",2)(11,"div",7)(12,"div",8)(13,"h3",9),te(14,"Public Profile"),x(),A(15,"div",10)(16,"div",2)(17,"div",11),z(18,"img",12),x(),A(19,"div",13)(20,"div",14)(21,"kendo-textbox-container",15),z(22,"input",16),x()(),A(23,"div",14)(24,"kendo-textbox-container",17),z(25,"input",18),x()(),A(26,"div",14)(27,"kendo-textbox-container",19),z(28,"input",20),x()(),A(29,"div",21),z(30,"input",22),A(31,"label",23),te(32,"Keep my email address private"),x()(),A(33,"div",14)(34,"kendo-textbox-container",24),z(35,"input",25),x()(),A(36,"div",14)(37,"kendo-textbox-container",26),z(38,"input",27),x()(),A(39,"div",14)(40,"button",28),Q("click",function(){return re(t),D().onUpdateClick()}),te(41,"Update profile"),x()()()()()(),A(42,"div",29)(43,"h3",9),te(44,"Delete Account"),x(),A(45,"div",10)(46,"p"),te(47,"You will immediately lose access to your repositories and all other information associated with your account. "),A(48,"strong"),te(49,"This cannot be undone!"),x()(),A(50,"button",30),Q("click",function(){return re(t),D().onDeleteClick()}),te(51,"Delete Account"),x()()()(),A(52,"div",31)(53,"div",32)(54,"h3",9),te(55,"Notifications"),x(),A(56,"div",10)(57,"h4",33),te(58,"Automatically watch repositories?"),x(),A(59,"p",34),te(60,"When you are given push access to a repository, automatically receive notifications for it."),x(),A(61,"p"),z(62,"kendo-switch"),x(),A(63,"h4",33),te(64,"Receive updates to any conversations via email?"),x(),A(65,"p"),z(66,"kendo-switch",35),x(),A(67,"h4",33),te(68,"Receive updates to any repositories via email?"),x(),A(69,"p"),z(70,"kendo-switch",35),x()()(),A(71,"div",36)(72,"h3",9),te(73,"Update password"),x(),A(74,"div",10)(75,"div",14)(76,"kendo-textbox-container",37),z(77,"input",38),x()(),A(78,"div",14)(79,"kendo-textbox-container",39),z(80,"input",38),x()(),A(81,"div",14)(82,"kendo-textbox-container",40),z(83,"input",38),x()(),A(84,"div",14)(85,"button",41),te(86,"Change password"),x()()()()()(),T(87,wbt,6,0,"kendo-dialog",42),T(88,Dbt,8,0,"kendo-dialog",43),x()}if(2&i){var e=D();k(6),Jl("",e.user.login," - ",e.user.name,""),k(12),y("src",e.user.avatar_url,uc)("ngStyle",wt(13,Ebt)),k(4),y("value",e.user.login),k(3),y("value",e.user.name),k(3),y("value",e.user.email),k(7),y("value",e.user.company),k(3),y("value",e.user.location),k(28),y("checked",!0),k(4),y("checked",!0),k(17),y("ngIf",e.profileDialogVisible),k(1),y("ngIf",e.deleteDialogVisible)}}var Abt=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.githubService=t,this.router=e,this.isLoading=!0,this.user={},this.profileDialogVisible=!1,this.deleteDialogVisible=!1,t.getGithubUser("mbechev").subscribe(function(a){n.user=a,n.isLoading=!1},function(a){n.isLoading=!1})}return v(r,[{key:"get_id",get:function(){return"profile"}},{key:"get_class",get:function(){return"container-fluid"}},{key:"onProfileDialogClose",value:function(){this.profileDialogVisible=!1}},{key:"onSignOutClick",value:function(){this.router.navigate(["/signin"])}},{key:"onUpdateClick",value:function(){this.profileDialogVisible=!0}},{key:"onDeleteClick",value:function(){this.deleteDialogVisible=!0}},{key:"onDeleteDialogClose",value:function(){this.deleteDialogVisible=!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Jp),m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-profile"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.get_id),_r(e.get_class))},features:[de([Jp])],decls:3,vars:3,consts:[[4,"ngIf"],["src","../../assets/noConnection.png",1,"center"],[1,"row"],[1,"col-sm"],[1,"h2"],[1,"col-sm","text-sm-right"],["kendoButton","","kendoRippleContainer","",3,"click"],[1,"col-md-7"],["id","profile",1,"k-card"],[1,"k-card-header"],[1,"k-card-body"],[1,"col-md-3","text-xs-center"],[1,"img-circle","mx-auto","mb-3",3,"src","ngStyle"],[1,"col-md-9"],[1,"form-group"],["floatingLabel","Username",1,"custom-width"],["kendoTextBox","","type","text","id","username",3,"value"],["floatingLabel","Name",1,"custom-width"],["kendoTextBox","","type","text","id","name",3,"value"],["floatingLabel","Email",1,"custom-width"],["kendoTextBox","","type","email","id","email",3,"value"],["kendoRippleContainer","",1,"form-group"],["type","checkbox","id","chkboxonly","checked","",1,"k-checkbox"],["for","chkboxonly",1,"k-checkbox-label"],["floatingLabel","Company",1,"custom-width"],["kendoTextBox","","type","text","id","company",3,"value"],["floatingLabel","Location",1,"custom-width"],["kendoTextBox","","type","text","id","location",3,"value"],["kendoButton","","themeColor","primary","kendoRippleContainer","",3,"click"],["id","delete-account",1,"k-card"],["kendoButton","","themeColor","primary","kendoRippleContainer","",2,"background-color","red",3,"click"],[1,"col-md-5"],["id","notifications",1,"k-card"],[1,"h6"],[1,"text-muted"],[3,"checked"],["id","password",1,"k-card"],["floatingLabel","Old password",1,"custom-width"],["kendoTextBox","","type","password"],["floatingLabel","New password",1,"custom-width"],["floatingLabel","Confirm password",1,"custom-width"],["kendoButton","","themeColor","primary","kendoRippleContainer",""],["title","Thank you",3,"close",4,"ngIf"],["title","Are you sure you want to do this?",3,"close",4,"ngIf"],["title","Thank you",3,"close"],["title","Are you sure you want to do this?",3,"close"],["kendoRippleContainer","","kendoButton","",3,"click"],["kendoRippleContainer","","kendoButton","","themeColor","primary",3,"click"]],template:function(t,e){1&t&&(T(0,bbt,1,0,"app-loading-spinner",0),T(1,Sbt,2,0,"div",0),T(2,Tbt,89,14,"div",0)),2&t&&(y("ngIf",e.isLoading),k(1),y("ngIf",!e.isLoading&&!e.user.id),k(1),y("ngIf",e.user.id&&!e.isLoading))},directives:[qe,aN,La,$y,Gi,TP,b1,vZe,$U,Ub],encapsulation:2}),i}(),xbt=function(){var i=function(){function r(t){p(this,r),this.router=t}return v(r,[{key:"id",get:function(){return"login"}},{key:"appClass",get:function(){return"justify-content-center"}},{key:"onLoginClick",value:function(){this.router.navigate(["/dashboard"])}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-signin"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.id),_r(e.appClass))},decls:21,vars:0,consts:[[1,"signin-form","col-xl-3"],[1,"k-card"],[1,"k-card-block"],[1,"k-form"],["id","app-title",1,"mb-0"],["id","app-subtitle",1,"h4","mb-4"],[1,"k-hr"],[1,"form-group","mt-4"],["text","Email or Username"],[1,"form-group"],["text","Password"],[1,"text-xs-right","small"],["href","#"],[1,"form-group","mb-0","text-right"],["kendoButton","","themeColor","primary","kendoRippleContainer","",3,"click"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),te(5,"Issues"),x(),A(6,"p",5),te(7,"Sample Dashboard"),x(),z(8,"hr",6),A(9,"div",7)(10,"kendo-floatinglabel",8),z(11,"kendo-textbox"),x()(),A(12,"div",9)(13,"kendo-floatinglabel",10),z(14,"kendo-textbox"),x(),A(15,"p",11)(16,"a",12),te(17,"Forgot it?"),x()()(),A(18,"div",13)(19,"button",14),Q("click",function(){return e.onLoginClick()}),te(20,"Log in"),x()()()()()())},directives:[bae,_ie,La,$y],encapsulation:2}),i}(),Mbt=[{path:"",pathMatch:"full",redirectTo:"/dashboard"},{path:"dashboard",component:x7e},{path:"issues",component:TCt},{path:"profile",component:Abt},{path:"signin",component:xbt}],Rbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[$j.forRoot(Mbt,{useHash:!0,relativeLinkResolution:"legacy"})],$j]}),i}();function Obt(i){return new T1e(i,"./assets/i18n/",".json")}Sy.PLATFORM_TARGET=Sy.PLATFORMS.WEB;var Ibt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i,bootstrap:[UAe]}),i.\u0275inj=Fe({providers:[],imports:[[Rbt,k1e.register("ngsw-worker.js",{enabled:true}),dK,e7e,xkt,Cbt,kC,wae,wRe,l2e,ZEe,xK,E1e.forRoot({loader:{provide:by,useFactory:Obt,deps:[xK]}}),ORe]]}),i}();(function SSe(){if(S4)throw new Error("Cannot enable prod mode after platform setup.");b4=!1})(),MDe().bootstrapModule(Ibt).catch(function(i){return console.error(i)})},386:function(Pv,i_,od){var Yu;!function($r,q,jA,$){"use strict";var ho,r_=["","webkit","Moz","MS","ms","o"],v=q.createElement("div"),ps=Math.round,b=Math.abs,Bv=Date.now;function Rh(Z,F,W){return setTimeout(a_(Z,W),F)}function Xe(Z,F,W){return!!Array.isArray(Z)&&(gs(Z,W[F],W),!0)}function gs(Z,F,W){var ce;if(Z)if(Z.forEach)Z.forEach(F,W);else if(Z.length!==$)for(ce=0;ce\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Zt=$r.console&&($r.console.warn||$r.console.log);return Zt&&Zt.call($r.console,ce,Ye),Z.apply(this,arguments)}}ho="function"!=typeof Object.assign?function(F){if(F===$||null===F)throw new TypeError("Cannot convert undefined or null to object");for(var W=Object(F),ce=1;ce-1}function Gv(Z){return Z.trim().split(/\s+/g)}function Ae(Z,F,W){if(Z.indexOf&&!W)return Z.indexOf(F);for(var ce=0;ceda[F]}):ce.sort()),ce}function Tr(Z,F){for(var W,ce,xe=F[0].toUpperCase()+F.slice(1),Ye=0;Ye1&&!W.firstMultiple?W.firstMultiple=An(F):1===xe&&(W.firstMultiple=!1);var Ye=W.firstInput,Zt=W.firstMultiple,Vi=Zt?Zt.center:Ye.center,or=F.center=u_(ce);F.timeStamp=Bv(),F.deltaTime=F.timeStamp-Ye.timeStamp,F.angle=Ot(Vi,or),F.distance=Hv(Vi,or),function ez(Z,F){var W=F.center,ce=Z.offsetDelta||{},xe=Z.prevDelta||{},Ye=Z.prevInput||{};(1===F.eventType||4===Ye.eventType)&&(xe=Z.prevDelta={x:Ye.deltaX||0,y:Ye.deltaY||0},ce=Z.offsetDelta={x:W.x,y:W.y}),F.deltaX=xe.x+(W.x-ce.x),F.deltaY=xe.y+(W.y-ce.y)}(W,F),F.offsetDirection=Yb(F.deltaX,F.deltaY);var da=Zb(F.deltaTime,F.deltaX,F.deltaY);F.overallVelocityX=da.x,F.overallVelocityY=da.y,F.overallVelocity=b(da.x)>b(da.y)?da.x:da.y,F.scale=Zt?function Jb(Z,F){return Hv(F[0],F[1],zv)/Hv(Z[0],Z[1],zv)}(Zt.pointers,ce):1,F.rotation=Zt?function Qb(Z,F){return Ot(F[1],F[0],zv)+Ot(Z[1],Z[0],zv)}(Zt.pointers,ce):0,F.maxPointers=W.prevInput?F.pointers.length>W.prevInput.maxPointers?F.pointers.length:W.prevInput.maxPointers:F.pointers.length,function Xb(Z,F){var xe,Ye,Zt,Vi,W=Z.lastInterval||F,ce=F.timeStamp-W.timeStamp;if(8!=F.eventType&&(ce>25||W.velocity===$)){var or=F.deltaX-W.deltaX,da=F.deltaY-W.deltaY,go=Zb(ce,or,da);Ye=go.x,Zt=go.y,xe=b(go.x)>b(go.y)?go.x:go.y,Vi=Yb(or,da),Z.lastInterval=F}else xe=W.velocity,Ye=W.velocityX,Zt=W.velocityY,Vi=W.direction;F.velocity=xe,F.velocityX=Ye,F.velocityY=Zt,F.direction=Vi}(W,F);var go=Z.element;o_(F.srcEvent.target,go)&&(go=F.srcEvent.target),F.target=go}(Z,W),Z.emit("hammer.input",W),Z.recognize(W),Z.session.prevInput=W}function An(Z){for(var F=[],W=0;W=b(F)?Z<0?2:4:F<0?8:16}function Hv(Z,F,W){W||(W=Vh);var ce=F[W[0]]-Z[W[0]],xe=F[W[1]]-Z[W[1]];return Math.sqrt(ce*ce+xe*xe)}function Ot(Z,F,W){return W||(W=Vh),180*Math.atan2(F[W[1]]-Z[W[1]],F[W[0]]-Z[W[0]])/Math.PI}xa.prototype={handler:function(){},init:function(){this.evEl&&De(this.element,this.evEl,this.domHandler),this.evTarget&&De(this.target,this.evTarget,this.domHandler),this.evWin&&De(Uv(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Ih(this.element,this.evEl,this.domHandler),this.evTarget&&Ih(this.target,this.evTarget,this.domHandler),this.evWin&&Ih(Uv(this.element),this.evWin,this.domHandler)}};var oi={mousedown:1,mousemove:2,mouseup:4},Wn="mousedown",$A="mousemove mouseup";function We(){this.evEl=Wn,this.evWin=$A,this.pressed=!1,xa.apply(this,arguments)}Aa(We,xa,{handler:function(F){var W=oi[F.type];1&W&&0===F.button&&(this.pressed=!0),2&W&&1!==F.which&&(W=4),this.pressed&&(4&W&&(this.pressed=!1),this.callback(this.manager,W,{pointers:[F],changedPointers:[F],pointerType:ld,srcEvent:F}))}});var c_={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},tz={2:sd,3:"pen",4:ld,5:"kinect"},d_="pointerdown",qA="pointermove pointerup pointercancel";function eS(){this.evEl=d_,this.evWin=qA,xa.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}$r.MSPointerEvent&&!$r.PointerEvent&&(d_="MSPointerDown",qA="MSPointerMove MSPointerUp MSPointerCancel"),Aa(eS,xa,{handler:function(F){var W=this.store,ce=!1,xe=F.type.toLowerCase().replace("ms",""),Ye=c_[xe],Zt=tz[F.pointerType]||F.pointerType,Vi=Zt==sd,or=Ae(W,F.pointerId,"pointerId");1&Ye&&(0===F.button||Vi)?or<0&&(W.push(F),or=W.length-1):12&Ye&&(ce=!0),!(or<0)&&(W[or]=F,this.callback(this.manager,Ye,{pointers:W,changedPointers:[F],pointerType:Zt,srcEvent:F}),ce&&W.splice(or,1))}});var nz={touchstart:1,touchmove:2,touchend:4,touchcancel:8},iz="touchstart",XA="touchstart touchmove touchend touchcancel";function ZA(){this.evTarget=iz,this.evWin=XA,this.started=!1,xa.apply(this,arguments)}function tS(Z,F){var W=qr(Z.touches),ce=qr(Z.changedTouches);return 12&F&&(W=jb(W.concat(ce),"identifier",!0)),[W,ce]}Aa(ZA,xa,{handler:function(F){var W=nz[F.type];if(1===W&&(this.started=!0),this.started){var ce=tS.call(this,F,W);12&W&&ce[0].length-ce[1].length==0&&(this.started=!1),this.callback(this.manager,W,{pointers:ce[0],changedPointers:ce[1],pointerType:sd,srcEvent:F})}}});var rz={touchstart:1,touchmove:2,touchend:4,touchcancel:8},nS="touchstart touchmove touchend touchcancel";function Kv(){this.evTarget=nS,this.targetIds={},xa.apply(this,arguments)}function az(Z,F){var W=qr(Z.touches),ce=this.targetIds;if(3&F&&1===W.length)return ce[W[0].identifier]=!0,[W,W];var xe,Ye,Zt=qr(Z.changedTouches),Vi=[],or=this.target;if(Ye=W.filter(function(da){return o_(da.target,or)}),1===F)for(xe=0;xe-1&&ce.splice(Zt,1)},2500)}}function ex(Z){for(var F=Z.srcEvent.clientX,W=Z.srcEvent.clientY,ce=0;ce-1&&this.requireFail.splice(W,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(F){return!!this.simultaneous[F.id]},emit:function(F){var W=this,ce=this.state;function xe(Ye){W.manager.emit(Ye,F)}ce<8&&xe(W.options.event+sS(ce)),xe(W.options.event),F.additionalEvent&&xe(F.additionalEvent),ce>=8&&xe(W.options.event+sS(ce))},tryEmit:function(F){if(this.canEmit())return this.emit(F);this.state=32},canEmit:function(){for(var F=0;FW.threshold&&Ye&W.direction},attrTest:function(F){return Io.prototype.attrTest.call(this,F)&&(2&this.state||!(2&this.state)&&this.directionTest(F))},emit:function(F){this.pX=F.deltaX,this.pY=F.deltaY;var W=lS(F.direction);W&&(F.additionalEvent=this.options.event+W),this._super.emit.call(this,F)}}),Aa(h_,Io,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ud]},attrTest:function(F){return this._super.attrTest.call(this,F)&&(Math.abs(F.scale-1)>this.options.threshold||2&this.state)},emit:function(F){1!==F.scale&&(F.additionalEvent=this.options.event+(F.scale<1?"in":"out")),this._super.emit.call(this,F)}}),Aa(f_,Pi,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(F){var W=this.options,ce=F.pointers.length===W.pointers,xe=F.distanceW.time;if(this._input=F,!xe||!ce||12&F.eventType&&!Ye)this.reset();else if(1&F.eventType)this.reset(),this._timer=Rh(function(){this.state=8,this.tryEmit()},W.time,this);else if(4&F.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(F){8===this.state&&(F&&4&F.eventType?this.manager.emit(this.options.event+"up",F):(this._input.timeStamp=Bv(),this.manager.emit(this.options.event,this._input)))}}),Aa(No,Io,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ud]},attrTest:function(F){return this._super.attrTest.call(this,F)&&(Math.abs(F.rotation)>this.options.threshold||2&this.state)}}),Aa(v_,Io,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Uh.prototype.getTouchAction.call(this)},attrTest:function(F){var ce,W=this.options.direction;return 30&W?ce=F.overallVelocity:6&W?ce=F.overallVelocityX:24&W&&(ce=F.overallVelocityY),this._super.attrTest.call(this,F)&&W&F.offsetDirection&&F.distance>this.options.threshold&&F.maxPointers==this.options.pointers&&b(ce)>this.options.velocity&&4&F.eventType},emit:function(F){var W=lS(F.offsetDirection);W&&this.manager.emit(this.options.event+W,F),this.manager.emit(this.options.event,F)}}),Aa(Bi,Pi,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[rS]},process:function(F){var W=this.options,ce=F.pointers.length===W.pointers,xe=F.distancei.length)&&(r=i.length);for(var t=0,e=new Array(r);t=i.length?{done:!0}:{done:!1,value:i[e++]}},e:function(u){throw u},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){t=t.call(i)},n:function(){var u=t.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&null!=t.return&&t.return()}finally{if(o)throw s}}}}function Aa(i){if(Array.isArray(i))return i}function Gv(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Bt(i,r){return Aa(i)||function a_(i,r){var t=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null!=t){var o,s,e=[],n=!0,a=!1;try{for(t=t.call(i);!(n=(o=t.next()).done)&&(e.push(o.value),!r||e.length!==r);n=!0);}catch(l){a=!0,s=l}finally{try{!n&&null!=t.return&&t.return()}finally{if(a)throw s}}return e}}(i,r)||Oh(i,r)||Gv()}function De(i,r,t){return r in i?Object.defineProperty(i,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[r]=t,i}function Ih(i){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)}function Ae(i){return function Qu(i){if(Array.isArray(i))return ho(i)}(i)||Ih(i)||Oh(i)||function Vv(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qr(i,r,t){return(qr=Bv()?Reflect.construct:function(n,a,o){var s=[null];s.push.apply(s,a);var u=new(Function.bind.apply(n,s));return o&&ps(u,o.prototype),u}).apply(null,arguments)}function Tr(i){var r="function"==typeof Map?new Map:void 0;return Tr=function(e){if(null===e||!function jb(i){return-1!==Function.toString.call(i).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return qr(e,arguments,q(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ps(n,e)},Tr(i)}function wn(i){return"function"==typeof i}function s_(i){var t=i(function(n){Error.call(n),n.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}od.r($r),od.d($r,{easeOutElastic:function(){return oPe},linear:function(){return aPe},swing:function(){return rPe}});var Uv=s_(function(i){return function(t){i(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(e,n){return"".concat(n+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t}});function Nh(i,r){if(i){var t=i.indexOf(r);0<=t&&i.splice(t,1)}}var i,Je=function(){function i(r){p(this,i),this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return v(i,[{key:"unsubscribe",value:function(){var t;if(!this.closed){this.closed=!0;var e=this._parentage;if(e)if(this._parentage=null,Array.isArray(e)){var a,n=In(e);try{for(n.s();!(a=n.n()).done;)a.value.remove(this)}catch(h){n.e(h)}finally{n.f()}}else e.remove(this);var s=this.initialTeardown;if(wn(s))try{s()}catch(h){t=h instanceof Uv?h.errors:[h]}var l=this._finalizers;if(l){this._finalizers=null;var c,u=In(l);try{for(u.s();!(c=u.n()).done;){var d=c.value;try{sd(d)}catch(h){t=null!=t?t:[],h instanceof Uv?t=[].concat(Ae(t),Ae(h.errors)):t.push(h)}}}catch(h){u.e(h)}finally{u.f()}}if(t)throw new Uv(t)}}},{key:"add",value:function(t){var e;if(t&&t!==this)if(this.closed)sd(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}},{key:"_hasParent",value:function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)}},{key:"_addParent",value:function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}},{key:"_removeParent",value:function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Nh(e,t)}},{key:"remove",value:function(t){var e=this._finalizers;e&&Nh(e,t),t instanceof i&&t._removeParent(this)}}]),i}();Je.EMPTY=((i=new Je).closed=!0,i);var Wb=Je.EMPTY;function $b(i){return i instanceof Je||i&&"closed"in i&&wn(i.remove)&&wn(i.add)&&wn(i.unsubscribe)}function sd(i){wn(i)?i():i.unsubscribe()}var ld={setTimeout:function(i){function r(t,e){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(i,r){for(var t=ld.delegate,e=arguments.length,n=new Array(e>2?e-2:0),a=2;a0}},{key:"_trySubscribe",value:function(a){return this._throwIfClosed(),$(q(e.prototype),"_trySubscribe",this).call(this,a)}},{key:"_subscribe",value:function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)}},{key:"_innerSubscribe",value:function(a){var o=this,u=this.observers;return this.hasError||this.isStopped?Wb:(this.currentObservers=null,u.push(a),new Je(function(){o.currentObservers=null,Nh(u,a)}))}},{key:"_checkFinalizedStatuses",value:function(a){var l=this.isStopped;this.hasError?a.error(this.thrownError):l&&a.complete()}},{key:"asObservable",value:function(){var a=new An;return a.source=this,a}}]),e}(An);return i.create=function(r,t){return new Qb(r,t)},i}(),Qb=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).destination=e,a.source=n,a}return v(t,[{key:"next",value:function(n){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.next)||void 0===o||o.call(a,n)}},{key:"error",value:function(n){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.error)||void 0===o||o.call(a,n)}},{key:"complete",value:function(){var n,a;null===(a=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===a||a.call(n)}},{key:"_subscribe",value:function(n){var a,o;return null!==(o=null===(a=this.source)||void 0===a?void 0:a.subscribe(n))&&void 0!==o?o:Wb}}]),t}(Ot);function Jb(i){return wn(null==i?void 0:i.lift)}function oi(i){return function(r){if(Jb(r))return r.lift(function(t){try{return i(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}function Wn(i,r,t,e,n){return new $A(i,r,t,e,n)}var $A=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u,c,d,h;return p(this,t),(h=r.call(this,e)).onFinalize=s,h.shouldUnsubscribe=l,h._next=n?function(f){try{n(f)}catch(g){e.error(g)}}:$((u=Xe(h),q(t.prototype)),"_next",u),h._error=o?function(f){try{o(f)}catch(g){e.error(g)}finally{this.unsubscribe()}}:$((c=Xe(h),q(t.prototype)),"_error",c),h._complete=a?function(){try{a()}catch(f){e.error(f)}finally{this.unsubscribe()}}:$((d=Xe(h),q(t.prototype)),"_complete",d),h}return v(t,[{key:"unsubscribe",value:function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var a=this.closed;$(q(t.prototype),"unsubscribe",this).call(this),!a&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}]),t}(tc);function We(i,r){return oi(function(t,e){var n=0;t.subscribe(Wn(e,function(a){e.next(i.call(r,a,n++))}))})}function Zs(i){return this instanceof Zs?(this.v=i,this):new Zs(i)}function QA(i,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t.apply(i,r||[]),a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(h){e[h]&&(n[h]=function(f){return new Promise(function(g,_){a.push([h,f,g,_])>1||s(h,f)})})}function s(h,f){try{!function l(h){h.value instanceof Zs?Promise.resolve(h.value.v).then(u,c):d(a[0][2],h)}(e[h](f))}catch(g){d(a[0][3],g)}}function u(h){s("next",h)}function c(h){s("throw",h)}function d(h,f){h(f),a.shift(),a.length&&s(a[0][0],a[0][1])}}function ex(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=i[Symbol.asyncIterator];return r?r.call(i):(i=function nS(i){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&i[r],e=0;if(t)return t.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&e>=i.length&&(i=void 0),{value:i&&i[e++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),t={},e("next"),e("throw"),e("return"),t[Symbol.asyncIterator]=function(){return this},t);function e(a){t[a]=i[a]&&function(o){return new Promise(function(s,l){!function n(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}(s,l,(o=i[a](o)).done,o.value)})}}}var ic=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r};function Vh(i){return wn(null==i?void 0:i.then)}function Wv(i){return wn(i[l_])}function aS(i){return Symbol.asyncIterator&&wn(null==i?void 0:i[Symbol.asyncIterator])}function oS(i){return new TypeError("You provided ".concat(null!==i&&"object"==typeof i?"an invalid object":"'".concat(i,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var za=function $v(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function rc(i){return wn(null==i?void 0:i[za])}function _s(){_s=function(){return i};var i={},r=Object.prototype,t=r.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",a=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function s(G,I,K){return Object.defineProperty(G,I,{value:K,enumerable:!0,configurable:!0,writable:!0}),G[I]}try{s({},"")}catch(G){s=function(K,H,se){return K[H]=se}}function l(G,I,K,H){var Ne,Ce,ye,Be,me=Object.create((I&&I.prototype instanceof d?I:d).prototype),ae=new U(H||[]);return me._invoke=(Ne=G,Ce=K,ye=ae,Be="suspendedStart",function(je,kt){if("executing"===Be)throw new Error("Generator is already running");if("completed"===Be){if("throw"===je)throw kt;return{value:void 0,done:!0}}for(ye.method=je,ye.arg=kt;;){var Xt=ye.delegate;if(Xt){var zn=R(Xt,ye);if(zn){if(zn===c)continue;return zn}}if("next"===ye.method)ye.sent=ye._sent=ye.arg;else if("throw"===ye.method){if("suspendedStart"===Be)throw Be="completed",ye.arg;ye.dispatchException(ye.arg)}else"return"===ye.method&&ye.abrupt("return",ye.arg);Be="executing";var On=u(Ne,Ce,ye);if("normal"===On.type){if(Be=ye.done?"completed":"suspendedYield",On.arg===c)continue;return{value:On.arg,done:ye.done}}"throw"===On.type&&(Be="completed",ye.method="throw",ye.arg=On.arg)}}),me}function u(G,I,K){try{return{type:"normal",arg:G.call(I,K)}}catch(H){return{type:"throw",arg:H}}}i.wrap=l;var c={};function d(){}function h(){}function f(){}var g={};s(g,n,function(){return this});var _=Object.getPrototypeOf,C=_&&_(_(ee([])));C&&C!==r&&t.call(C,n)&&(g=C);var w=f.prototype=d.prototype=Object.create(g);function E(G){["next","throw","return"].forEach(function(I){s(G,I,function(K){return this._invoke(I,K)})})}function M(G,I){function K(se,me,ae,Ne){var Ce=u(G[se],G,me);if("throw"!==Ce.type){var ye=Ce.arg,Be=ye.value;return Be&&"object"==typeof Be&&t.call(Be,"__await")?I.resolve(Be.__await).then(function(je){K("next",je,ae,Ne)},function(je){K("throw",je,ae,Ne)}):I.resolve(Be).then(function(je){ye.value=je,ae(ye)},function(je){return K("throw",je,ae,Ne)})}Ne(Ce.arg)}var H;this._invoke=function(se,me){function ae(){return new I(function(Ne,Ce){K(se,me,Ne,Ce)})}return H=H?H.then(ae,ae):ae()}}function R(G,I){var K=G.iterator[I.method];if(void 0===K){if(I.delegate=null,"throw"===I.method){if(G.iterator.return&&(I.method="return",I.arg=void 0,R(G,I),"throw"===I.method))return c;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var H=u(K,G.iterator,I.arg);if("throw"===H.type)return I.method="throw",I.arg=H.arg,I.delegate=null,c;var se=H.arg;return se?se.done?(I[G.resultName]=se.value,I.next=G.nextLoc,"return"!==I.method&&(I.method="next",I.arg=void 0),I.delegate=null,c):se:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,c)}function N(G){var I={tryLoc:G[0]};1 in G&&(I.catchLoc=G[1]),2 in G&&(I.finallyLoc=G[2],I.afterLoc=G[3]),this.tryEntries.push(I)}function V(G){var I=G.completion||{};I.type="normal",delete I.arg,G.completion=I}function U(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(N,this),this.reset(!0)}function ee(G){if(G){var I=G[n];if(I)return I.call(G);if("function"==typeof G.next)return G;if(!isNaN(G.length)){var K=-1,H=function se(){for(;++K=0;--se){var me=this.tryEntries[se],ae=me.completion;if("root"===me.tryLoc)return H("end");if(me.tryLoc<=this.prev){var Ne=t.call(me,"catchLoc"),Ce=t.call(me,"finallyLoc");if(Ne&&Ce){if(this.prev=0;--H){var se=this.tryEntries[H];if(se.tryLoc<=this.prev&&t.call(se,"finallyLoc")&&this.prev=0;--K){var H=this.tryEntries[K];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),V(H),c}},catch:function(I){for(var K=this.tryEntries.length-1;K>=0;--K){var H=this.tryEntries[K];if(H.tryLoc===I){var se=H.completion;if("throw"===se.type){var me=se.arg;V(H)}return me}}throw new Error("illegal catch attempt")},delegateYield:function(I,K,H){return this.delegate={iterator:ee(I),resultName:K,nextLoc:H},"next"===this.method&&(this.arg=void 0),c}},i}function ys(i){return QA(this,arguments,_s().mark(function r(){var t,e,n;return _s().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=i.getReader(),s.prev=1;case 2:return s.next=5,Zs(t.read());case 5:if(n=(e=s.sent).value,!e.done){s.next=12;break}return s.next=11,Zs(void 0);case 11:return s.abrupt("return",s.sent);case 12:return s.next=14,Zs(n);case 14:return s.next=16,s.sent;case 16:s.next=2;break;case 18:return s.prev=18,t.releaseLock(),s.finish(18);case 21:case"end":return s.stop()}},r,null,[[1,,18,21]])}))}function cd(i){return wn(null==i?void 0:i.getReader)}function vo(){vo=function(){return i};var i={},r=Object.prototype,t=r.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",a=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function s(G,I,K){return Object.defineProperty(G,I,{value:K,enumerable:!0,configurable:!0,writable:!0}),G[I]}try{s({},"")}catch(G){s=function(K,H,se){return K[H]=se}}function l(G,I,K,H){var Ne,Ce,ye,Be,me=Object.create((I&&I.prototype instanceof d?I:d).prototype),ae=new U(H||[]);return me._invoke=(Ne=G,Ce=K,ye=ae,Be="suspendedStart",function(je,kt){if("executing"===Be)throw new Error("Generator is already running");if("completed"===Be){if("throw"===je)throw kt;return{value:void 0,done:!0}}for(ye.method=je,ye.arg=kt;;){var Xt=ye.delegate;if(Xt){var zn=R(Xt,ye);if(zn){if(zn===c)continue;return zn}}if("next"===ye.method)ye.sent=ye._sent=ye.arg;else if("throw"===ye.method){if("suspendedStart"===Be)throw Be="completed",ye.arg;ye.dispatchException(ye.arg)}else"return"===ye.method&&ye.abrupt("return",ye.arg);Be="executing";var On=u(Ne,Ce,ye);if("normal"===On.type){if(Be=ye.done?"completed":"suspendedYield",On.arg===c)continue;return{value:On.arg,done:ye.done}}"throw"===On.type&&(Be="completed",ye.method="throw",ye.arg=On.arg)}}),me}function u(G,I,K){try{return{type:"normal",arg:G.call(I,K)}}catch(H){return{type:"throw",arg:H}}}i.wrap=l;var c={};function d(){}function h(){}function f(){}var g={};s(g,n,function(){return this});var _=Object.getPrototypeOf,C=_&&_(_(ee([])));C&&C!==r&&t.call(C,n)&&(g=C);var w=f.prototype=d.prototype=Object.create(g);function E(G){["next","throw","return"].forEach(function(I){s(G,I,function(K){return this._invoke(I,K)})})}function M(G,I){function K(se,me,ae,Ne){var Ce=u(G[se],G,me);if("throw"!==Ce.type){var ye=Ce.arg,Be=ye.value;return Be&&"object"==typeof Be&&t.call(Be,"__await")?I.resolve(Be.__await).then(function(je){K("next",je,ae,Ne)},function(je){K("throw",je,ae,Ne)}):I.resolve(Be).then(function(je){ye.value=je,ae(ye)},function(je){return K("throw",je,ae,Ne)})}Ne(Ce.arg)}var H;this._invoke=function(se,me){function ae(){return new I(function(Ne,Ce){K(se,me,Ne,Ce)})}return H=H?H.then(ae,ae):ae()}}function R(G,I){var K=G.iterator[I.method];if(void 0===K){if(I.delegate=null,"throw"===I.method){if(G.iterator.return&&(I.method="return",I.arg=void 0,R(G,I),"throw"===I.method))return c;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var H=u(K,G.iterator,I.arg);if("throw"===H.type)return I.method="throw",I.arg=H.arg,I.delegate=null,c;var se=H.arg;return se?se.done?(I[G.resultName]=se.value,I.next=G.nextLoc,"return"!==I.method&&(I.method="next",I.arg=void 0),I.delegate=null,c):se:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,c)}function N(G){var I={tryLoc:G[0]};1 in G&&(I.catchLoc=G[1]),2 in G&&(I.finallyLoc=G[2],I.afterLoc=G[3]),this.tryEntries.push(I)}function V(G){var I=G.completion||{};I.type="normal",delete I.arg,G.completion=I}function U(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(N,this),this.reset(!0)}function ee(G){if(G){var I=G[n];if(I)return I.call(G);if("function"==typeof G.next)return G;if(!isNaN(G.length)){var K=-1,H=function se(){for(;++K=0;--se){var me=this.tryEntries[se],ae=me.completion;if("root"===me.tryLoc)return H("end");if(me.tryLoc<=this.prev){var Ne=t.call(me,"catchLoc"),Ce=t.call(me,"finallyLoc");if(Ne&&Ce){if(this.prev=0;--H){var se=this.tryEntries[H];if(se.tryLoc<=this.prev&&t.call(se,"finallyLoc")&&this.prev=0;--K){var H=this.tryEntries[K];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),V(H),c}},catch:function(I){for(var K=this.tryEntries.length-1;K>=0;--K){var H=this.tryEntries[K];if(H.tryLoc===I){var se=H.completion;if("throw"===se.type){var me=se.arg;V(H)}return me}}throw new Error("illegal catch attempt")},delegateYield:function(I,K,H){return this.delegate={iterator:ee(I),resultName:K,nextLoc:H},"next"===this.method&&(this.arg=void 0),c}},i}function Pi(i){if(i instanceof An)return i;if(null!=i){if(Wv(i))return function sS(i){return new An(function(r){var t=i[l_]();if(wn(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(ic(i))return function lS(i){return new An(function(r){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=r.schedule(function(){t(),n?i.add(this.schedule(null,e)):this.unsubscribe()},e);if(i.add(a),!n)return a}function v_(i,r,t,e,n,a,o,s){var l=[],u=0,c=0,d=!1,h=function(){d&&!l.length&&!u&&r.complete()},f=function(C){return u2&&void 0!==arguments[2]?arguments[2]:1/0;return wn(r)?Bi(function(e,n){return We(function(a,o){return r(e,a,n,o)})(Pi(i(e,n)))},t):("number"==typeof r&&(t=r),oi(function(e,n){return v_(e,n,i,t)}))}function Fo(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return Bi(zl,i)}var po=new An(function(i){return i.complete()});function g_(i){return i&&wn(i.schedule)}function m_(i){return i[i.length-1]}function __(i){return wn(m_(i))?i.pop():void 0}function Z(i){return g_(m_(i))?i.pop():void 0}function F(i,r){return"number"==typeof m_(i)?i.pop():r}function W(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return oi(function(t,e){t.subscribe(Wn(e,function(n){return No(e,i,function(){return e.next(n)},r)},function(){return No(e,i,function(){return e.complete()},r)},function(n){return No(e,i,function(){return e.error(n)},r)}))})}function ce(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return oi(function(t,e){e.add(i.schedule(function(){return t.subscribe(e)},r))})}function or(i,r){if(!i)throw new Error("Iterable cannot be null");return new An(function(t){No(t,r,function(){var e=i[Symbol.asyncIterator]();No(t,r,function(){e.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function wi(i,r){return r?function go(i,r){if(null!=i){if(Wv(i))return function xe(i,r){return Pi(i).pipe(ce(r),W(r))}(i,r);if(ic(i))return function Zt(i,r){return new An(function(t){var e=0;return r.schedule(function(){e===i.length?t.complete():(t.next(i[e++]),t.closed||this.schedule())})})}(i,r);if(Vh(i))return function Ye(i,r){return Pi(i).pipe(ce(r),W(r))}(i,r);if(aS(i))return or(i,r);if(rc(i))return function Gi(i,r){return new An(function(t){var e;return No(t,r,function(){e=i[za](),No(t,r,function(){var n,a;try{var o=e.next();n=o.value,a=o.done}catch(s){return void t.error(s)}a?t.complete():t.next(n)},0,!0)}),function(){return wn(null==e?void 0:e.return)&&e.return()}})}(i,r);if(cd(i))return function da(i,r){return or(ys(i),r)}(i,r)}throw oS(i)}(i,r):Pi(i)}function xn(){for(var i=arguments.length,r=new Array(i),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},r=i.connector,t=void 0===r?function(){return new Ot}:r,e=i.resetOnError,n=void 0===e||e,a=i.resetOnComplete,o=void 0===a||a,s=i.resetOnRefCountZero,l=void 0===s||s;return function(u){var c=null,d=null,h=null,f=0,g=!1,_=!1,C=function(){null==d||d.unsubscribe(),d=null},w=function(){C(),c=h=null,g=_=!1},E=function(){var R=c;w(),null==R||R.unsubscribe()};return oi(function(M,R){f++,!_&&!g&&C();var N=h=null!=h?h:t();R.add(function(){0==--f&&!_&&!g&&(d=ox(E,l))}),N.subscribe(R),c||(c=new Bh({next:function(U){return N.next(U)},error:function(U){_=!0,C(),d=ox(w,n,U),N.error(U)},complete:function(){g=!0,C(),d=ox(w,o),N.complete()}}),wi(M).subscribe(c))})(u)}}function ox(i,r){if(!0===r)return i(),null;if(!1===r)return null;for(var t=arguments.length,e=new Array(t>2?t-2:0),n=2;n ".concat(t," ").concat(e," ").concat(r," <=Actual]")))}(r,i,null,"!=")}function pe(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function Fe(i){return{providers:i.providers||[],imports:i.imports||[]}}function cx(i){return lz(i,cS)||lz(i,cz)}function lz(i,r){return i.hasOwnProperty(r)?i[r]:null}function uz(i){return i&&(i.hasOwnProperty(dx)||i.hasOwnProperty(Ope))?i[dx]:null}var hx,cS=mi({"\u0275prov":mi}),dx=mi({"\u0275inj":mi}),cz=mi({ngInjectableDef:mi}),Ope=mi({ngInjectorDef:mi}),tn=function(){return(tn=tn||{})[tn.Default=0]="Default",tn[tn.Host=1]="Host",tn[tn.Self=2]="Self",tn[tn.SkipSelf=4]="SkipSelf",tn[tn.Optional=8]="Optional",tn}();function Ipe(){return hx}function dd(i){var r=hx;return hx=i,r}function dz(i,r,t){var e=cx(i);return e&&"root"==e.providedIn?void 0===e.value?e.value=e.factory():e.value:t&tn.Optional?null:void 0!==r?r:void uS(si(i),"Injector")}function hd(i){return{toString:i}.toString()}var Ys=function(){return(Ys=Ys||{})[Ys.OnPush=0]="OnPush",Ys[Ys.Default=1]="Default",Ys}(),Qs=function(){return function(i){i[i.Emulated=0]="Emulated",i[i.None=2]="None",i[i.ShadowDom=3]="ShadowDom"}(Qs||(Qs={})),Qs}(),Npe="undefined"!=typeof globalThis&&globalThis,Fpe="undefined"!=typeof window&&window,Lpe="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ppe="undefined"!=typeof global&&global,hi=Npe||Ppe||Fpe||Lpe,Xv={},yi=[],dS=mi({"\u0275cmp":mi}),fx=mi({"\u0275dir":mi}),vx=mi({"\u0275pipe":mi}),hz=mi({"\u0275mod":mi}),oc=mi({"\u0275fac":mi}),y_=mi({__NG_ELEMENT_ID__:mi}),Bpe=0;function L(i){return hd(function(){var t={},e={type:i.type,providersResolver:null,decls:i.decls,vars:i.vars,factory:null,template:i.template||null,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:i.exportAs||null,onPush:i.changeDetection===Ys.OnPush,directiveDefs:null,pipeDefs:null,selectors:i.selectors||yi,viewQuery:i.viewQuery||null,features:i.features||null,data:i.data||{},encapsulation:i.encapsulation||Qs.Emulated,id:"c",styles:i.styles||yi,_:null,setInput:null,schemas:i.schemas||null,tView:null},n=i.directives,a=i.features,o=i.pipes;return e.id+=Bpe++,e.inputs=gz(i.inputs,t),e.outputs=gz(i.outputs),a&&a.forEach(function(s){return s(e)}),e.directiveDefs=n?function(){return("function"==typeof n?n():n).map(fz)}:null,e.pipeDefs=o?function(){return("function"==typeof o?o():o).map(vz)}:null,e})}function fz(i){return Ma(i)||function fd(i){return i[fx]||null}(i)}function vz(i){return function zh(i){return i[vx]||null}(i)}var pz={};function Le(i){return hd(function(){var r={type:i.type,bootstrap:i.bootstrap||yi,declarations:i.declarations||yi,imports:i.imports||yi,exports:i.exports||yi,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null};return null!=i.id&&(pz[i.id]=i.type),r})}function gz(i,r){if(null==i)return Xv;var t={};for(var e in i)if(i.hasOwnProperty(e)){var n=i[e],a=n;Array.isArray(n)&&(a=n[1],n=n[0]),t[n]=e,r&&(r[n]=a)}return t}var X=L;function fa(i){return{type:i.type,name:i.name,factory:null,pure:!1!==i.pure,onDestroy:i.type.prototype.ngOnDestroy||null}}function Ma(i){return i[dS]||null}function ks(i,r){var t=i[hz]||null;if(!t&&!0===r)throw new Error("Type ".concat(si(i)," does not have '\u0275mod' property."));return t}function Hl(i){return Array.isArray(i)&&"object"==typeof i[1]}function el(i){return Array.isArray(i)&&!0===i[1]}function mx(i){return 0!=(8&i.flags)}function pS(i){return 2==(2&i.flags)}function gS(i){return 1==(1&i.flags)}function tl(i){return null!==i.template}function Kpe(i){return 0!=(512&i[2])}function Wh(i,r){return i.hasOwnProperty(oc)?i[oc]:null}var _z=function(){function i(r,t,e){p(this,i),this.previousValue=r,this.currentValue=t,this.firstChange=e}return v(i,[{key:"isFirstChange",value:function(){return this.firstChange}}]),i}();function Ie(){return yz}function yz(i){return i.type.prototype.ngOnChanges&&(i.setInput=qpe),$pe}function $pe(){var i=Cz(this),r=null==i?void 0:i.current;if(r){var t=i.previous;if(t===Xv)i.previous=r;else for(var e in r)t[e]=r[e];i.current=null,this.ngOnChanges(r)}}function qpe(i,r,t,e){var n=Cz(i)||function Xpe(i,r){return i[kz]=r}(i,{previous:Xv,current:null}),a=n.current||(n.current={}),o=n.previous,s=this.declaredInputs[t],l=o[s];a[s]=new _z(l&&l.currentValue,r,o===Xv),i[e]=r}Ie.ngInherit=!0;var kz="__ngSimpleChanges__";function Cz(i){return i[kz]||null}var bx=void 0;function Sx(){return void 0!==bx?bx:"undefined"!=typeof document?document:void 0}function sr(i){return!!i.listen}var bz={createRenderer:function(r,t){return Sx()}};function Ar(i){for(;Array.isArray(i);)i=i[0];return i}function mS(i,r){return Ar(r[i])}function Ss(i,r){return Ar(r[i.index])}function wx(i,r){return i.data[r]}function ep(i,r){return i[r]}function Go(i,r){var t=r[i];return Hl(t)?t:t[0]}function Sz(i){return 4==(4&i[2])}function Dx(i){return 128==(128&i[2])}function vd(i,r){return null==r?null:i[r]}function wz(i){i[18]=0}function Ex(i,r){i[5]+=r;for(var t=i,e=i[3];null!==e&&(1===r&&1===t[5]||-1===r&&0===t[5]);)e[5]+=r,t=e,e=e[3]}var an={lFrame:Iz(null),bindingsEnabled:!0};function Ez(){return an.bindingsEnabled}function Oe(){return an.lFrame.lView}function Bn(){return an.lFrame.tView}function re(i){return an.lFrame.contextLView=i,i[8]}function Fr(){for(var i=Tz();null!==i&&64===i.type;)i=i.parent;return i}function Tz(){return an.lFrame.currentTNode}function Kl(i,r){var t=an.lFrame;t.currentTNode=i,t.isParent=r}function Tx(){return an.lFrame.isParent}function Ax(){an.lFrame.isParent=!1}function Ha(){var i=an.lFrame,r=i.bindingRootIndex;return-1===r&&(r=i.bindingRootIndex=i.tView.bindingStartIndex),r}function sc(){return an.lFrame.bindingIndex}function tp(){return an.lFrame.bindingIndex++}function lc(i){var r=an.lFrame,t=r.bindingIndex;return r.bindingIndex=r.bindingIndex+i,t}function hge(i,r){var t=an.lFrame;t.bindingIndex=t.bindingRootIndex=i,xx(r)}function xx(i){an.lFrame.currentDirectiveIndex=i}function Mx(i){var r=an.lFrame.currentDirectiveIndex;return-1===r?null:i[r]}function Mz(){return an.lFrame.currentQueryIndex}function Rx(i){an.lFrame.currentQueryIndex=i}function vge(i){var r=i[1];return 2===r.type?r.declTNode:1===r.type?i[6]:null}function Rz(i,r,t){if(t&tn.SkipSelf){for(var e=r,n=i;!(null!==(e=e.parent)||t&tn.Host||null===(e=vge(n))||(n=n[15],10&e.type)););if(null===e)return!1;r=e,i=n}var a=an.lFrame=Oz();return a.currentTNode=r,a.lView=i,!0}function yS(i){var r=Oz(),t=i[1];an.lFrame=r,r.currentTNode=t.firstChild,r.lView=i,r.tView=t,r.contextLView=i,r.bindingIndex=t.bindingStartIndex,r.inI18n=!1}function Oz(){var i=an.lFrame,r=null===i?null:i.child;return null===r?Iz(i):r}function Iz(i){var r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:i,child:null,inI18n:!1};return null!==i&&(i.child=r),r}function Nz(){var i=an.lFrame;return an.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}var Fz=Nz;function kS(){var i=Nz();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function pge(i){var r=an.lFrame.contextLView=function gge(i,r){for(;i>0;)r=r[15],i--;return r}(i,an.lFrame.contextLView);return r[8]}function Ka(){return an.lFrame.selectedIndex}function pd(i){an.lFrame.selectedIndex=i}function lr(){var i=an.lFrame;return wx(i.tView,i.selectedIndex)}function CS(i,r){for(var t=r.directiveStart,e=r.directiveEnd;t=e)break}else r[l]<0&&(i[18]+=65536),(s>11>16&&(3&i[2])===r){i[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}var w_=v(function i(r,t,e){p(this,i),this.factory=r,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=e});function wS(i,r,t){for(var e=sr(i),n=0;nr){o=a-1;break}}}for(;a>16}(i),e=r;t>0;)e=e[15],t--;return e}var Lx=!0;function ES(i){var r=Lx;return Lx=i,r}var xge=0;function E_(i,r){var t=Bx(i,r);if(-1!==t)return t;var e=r[1];e.firstCreatePass&&(i.injectorIndex=r.length,Px(e.data,i),Px(r,null),Px(e.blueprint,null));var n=TS(i,r),a=i.injectorIndex;if(Gz(n))for(var o=np(n),s=ip(n,r),l=s[1].data,u=0;u<8;u++)r[a+u]=s[o+u]|l[o+u];return r[a+8]=n,a}function Px(i,r){i.push(0,0,0,0,0,0,0,0,r)}function Bx(i,r){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===r[i.injectorIndex+8]?-1:i.injectorIndex}function TS(i,r){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;for(var t=0,e=null,n=r;null!==n;){var a=n[1],o=a.type;if(null===(e=2===o?a.declTNode:1===o?n[6]:null))return-1;if(t++,n=n[15],-1!==e.injectorIndex)return e.injectorIndex|t<<16}return-1}function AS(i,r,t){!function Mge(i,r,t){var e;"string"==typeof t?e=t.charCodeAt(0)||0:t.hasOwnProperty(y_)&&(e=t[y_]),null==e&&(e=t[y_]=xge++);var n=255&e;r.data[i+(n>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:tn.Default,n=arguments.length>4?arguments[4]:void 0;if(null!==i){var a=Nge(t);if("function"==typeof a){if(!Rz(r,i,e))return e&tn.Host?zz(n,t,e):Hz(r,t,e,n);try{var o=a(e);if(null!=o||e&tn.Optional)return o;uS(t)}finally{Fz()}}else if("number"==typeof a){var s=null,l=Bx(i,r),u=-1,c=e&tn.Host?r[16][6]:null;for((-1===l||e&tn.SkipSelf)&&(-1!==(u=-1===l?TS(i,r):r[l+8])&&$z(e,!1)?(s=r[1],l=np(u),r=ip(u,r)):l=-1);-1!==l;){var d=r[1];if(Wz(a,l,d.data)){var h=Ige(l,r,t,s,e,c);if(h!==jz)return h}-1!==(u=r[l+8])&&$z(e,r[1].data[l+8]===c)&&Wz(a,l,r)?(s=d,l=np(u),r=ip(u,r)):l=-1}}}return Hz(r,t,e,n)}var jz={};function Oge(){return new rp(Fr(),Oe())}function Ige(i,r,t,e,n,a){var o=r[1],s=o.data[i+8],c=xS(s,o,t,null==e?pS(s)&&Lx:e!=o&&0!=(3&s.type),n&tn.Host&&a===s);return null!==c?T_(r,o,c,s):jz}function xS(i,r,t,e,n){for(var a=i.providerIndexes,o=r.data,s=1048575&a,l=i.directiveStart,c=a>>20,h=n?s+c:i.directiveEnd,f=e?s:s+c;f=l&&g.type===t)return f}if(n){var _=o[l];if(_&&tl(_)&&_.type===t)return l}return null}function T_(i,r,t,e){var n=i[t],a=r.data;if(function Sge(i){return i instanceof w_}(n)){var o=n;o.resolving&&function Epe(i,r){var t=r?". Dependency path: ".concat(r.join(" > ")," > ").concat(i):"";throw new gt(-200,"Circular dependency in DI detected for ".concat(i).concat(t))}(ha(a[t]));var s=ES(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?dd(o.injectImpl):null;Rz(i,e,tn.Default);try{n=i[t]=o.factory(void 0,a,i,e),r.firstCreatePass&&t>=e.directiveStart&&function Cge(i,r,t){var e=r.type.prototype,a=e.ngOnInit,o=e.ngDoCheck;if(e.ngOnChanges){var s=yz(r);(t.preOrderHooks||(t.preOrderHooks=[])).push(i,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i,s)}a&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-i,a),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(i,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i,o))}(t,a[t],r)}finally{null!==l&&dd(l),ES(s),o.resolving=!1,Fz()}}return n}function Nge(i){if("string"==typeof i)return i.charCodeAt(0)||0;var r=i.hasOwnProperty(y_)?i[y_]:void 0;return"number"==typeof r?r>=0?255&r:Oge:r}function Wz(i,r,t){return!!(t[r+(i>>5)]&1<=i.length?i.push(t):i.splice(r,0,t)}function MS(i,r){return r>=i.length-1?i.pop():i.splice(r,1)[0]}function R_(i,r){for(var t=[],e=0;e=0?i[1|e]=t:function Gge(i,r,t,e){var n=i.length;if(n==r)i.push(t,e);else if(1===n)i.push(e,i[0]),i[0]=t;else{for(n--,i.push(i[n-1],i[n]);n>r;)i[n]=i[n-2],n--;i[r]=t,i[r+1]=e}}(i,e=~e,r,t),e}function zx(i,r){var t=up(i,r);if(t>=0)return i[1|t]}function up(i,r){return function Qz(i,r,t){for(var e=0,n=i.length>>t;n!==e;){var a=e+(n-e>>1),o=i[a<r?n=a:e=a+1}return~(n<1&&void 0!==arguments[1]?arguments[1]:tn.Default;if(void 0===I_){var t="";throw new gt(203,t)}return null===I_?dz(i,void 0,r):I_.get(i,r&tn.Optional?null:void 0,r)}function oe(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn.Default;return(Ipe()||Zge)(fn(i),r)}var Yge=oe;function jx(i){for(var r=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.substr(2):i;var n=si(r);if(Array.isArray(r))n=r.map(si).join(" -> ");else if("object"==typeof r){var a=[];for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):si(s)))}n="{".concat(a.join(", "),"}")}return"".concat(t).concat(e?"("+e+")":"","[").concat(n,"]: ").concat(i.replace($ge,"\n "))}("\n"+i.message,n,t,e),i.ngTokenPath=n,i[OS]=null,i}var FS,LS,IS=N_(lp("Inject",function(i){return{token:i}}),-1),md=N_(lp("Optional"),8),F_=N_(lp("SkipSelf"),4);function dp(i){var r;return(null===(r=function $x(){if(void 0===FS&&(FS=null,hi.trustedTypes))try{FS=hi.trustedTypes.createPolicy("angular",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(i){}return FS}())||void 0===r?void 0:r.createHTML(i))||i}function l3(i){var r;return(null===(r=function qx(){if(void 0===LS&&(LS=null,hi.trustedTypes))try{LS=hi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(i){}return LS}())||void 0===r?void 0:r.createHTML(i))||i}var $h=function(){function i(r){p(this,i),this.changingThisBreaksApplicationSecurity=r}return v(i,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),i}(),dme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}($h),hme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}($h),fme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}($h),vme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}($h),pme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}($h);function Uo(i){return i instanceof $h?i.changingThisBreaksApplicationSecurity:i}function Wl(i,r){var t=d3(i);if(null!=t&&t!==r){if("ResourceURL"===t&&"URL"===r)return!0;throw new Error("Required a safe ".concat(r,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===r}function d3(i){return i instanceof $h&&i.getTypeName()||null}var Cme=function(){function i(r){p(this,i),this.inertDocumentHelper=r}return v(i,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var e=(new window.DOMParser).parseFromString(dp(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(n){return null}}}]),i}(),bme=function(){function i(r){if(p(this,i),this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var e=this.inertDocument.createElement("body");t.appendChild(e)}}return v(i,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=dp(t),e;var n=this.inertDocument.createElement("body");return n.innerHTML=dp(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();Xx.hasOwnProperty(e)&&!v3.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(_3(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return e}}]),i}(),Ime=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Nme=/([^\#-~ |!])/g;function _3(i){return i.replace(/&/g,"&").replace(Ime,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(Nme,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}function y3(i,r){var t=null;try{PS=PS||function h3(i){var r=new bme(i);return function Sme(){try{return!!(new window.DOMParser).parseFromString(dp(""),"text/html")}catch(i){return!1}}()?new Cme(r):r}(i);var e=r?String(r):"";t=PS.getInertBodyElement(e);var n=5,a=e;do{if(0===n)throw new Error("Failed to sanitize html because the input is unstable");n--,e=a,a=t.innerHTML,t=PS.getInertBodyElement(e)}while(e!==a);return dp((new Ome).sanitizeChildren(Qx(t)||t))}finally{if(t)for(var l=Qx(t)||t;l.firstChild;)l.removeChild(l.firstChild)}}function Qx(i){return"content"in i&&function Fme(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var ki=function(){return(ki=ki||{})[ki.NONE=0]="NONE",ki[ki.HTML=1]="HTML",ki[ki.STYLE=2]="STYLE",ki[ki.SCRIPT=3]="SCRIPT",ki[ki.URL=4]="URL",ki[ki.RESOURCE_URL=5]="RESOURCE_URL",ki}();function BS(i){var r=G_();return r?l3(r.sanitize(ki.HTML,i)||""):Wl(i,"HTML")?l3(Uo(i)):y3(Sx(),rn(i))}function uc(i){var r=G_();return r?r.sanitize(ki.URL,i)||"":Wl(i,"URL")?Uo(i):P_(rn(i))}function G_(){var i=Oe();return i&&i[12]}var b3="__ngContext__";function Oa(i,r){i[b3]=r}function eM(i){var r=function V_(i){return i[b3]||null}(i);return r?Array.isArray(r)?r:r.lView:null}function nM(i){return i.ngOriginalError}function Yme(i){for(var r=arguments.length,t=new Array(r>1?r-1:0),e=1;e|^->||--!>|)/;var s_e=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(hi)}();function T3(i){return i.ownerDocument.defaultView}function ql(i){return i instanceof Function?i():i}var zo=function(){return(zo=zo||{})[zo.Important=1]="Important",zo[zo.DashCase=2]="DashCase",zo}();function rM(i,r){return undefined(i,r)}function z_(i){var r=i[3];return el(r)?r[3]:r}function aM(i){return O3(i[13])}function oM(i){return O3(i[4])}function O3(i){for(;null!==i&&!el(i);)i=i[4];return i}function fp(i,r,t,e,n){if(null!=e){var a,o=!1;el(e)?a=e:Hl(e)&&(o=!0,e=e[0]);var s=Ar(e);0===i&&null!==t?null==n?B3(r,t,s):qh(r,t,s,n||null,!0):1===i&&null!==t?qh(r,t,s,n||null,!0):2===i?j3(r,s,o):3===i&&r.destroyNode(s),null!=a&&function S_e(i,r,t,e,n){var a=t[7];a!==Ar(t)&&fp(r,i,e,a,n);for(var s=10;s0&&(i[t-1][4]=e[4]);var a=MS(i,10+r);!function h_e(i,r){H_(i,r,r[11],2,null,null),r[0]=null,r[6]=null}(e[1],e);var o=a[19];null!==o&&o.detachView(a[1]),e[3]=null,e[4]=null,e[2]&=-129}return e}}function F3(i,r){if(!(256&r[2])){var t=r[11];sr(t)&&t.destroyNode&&H_(i,r,t,3,null,null),function p_e(i){var r=i[13];if(!r)return cM(i[1],i);for(;r;){var t=null;if(Hl(r))t=r[13];else{var e=r[10];e&&(t=e)}if(!t){for(;r&&!r[4]&&r!==i;)Hl(r)&&cM(r[1],r),r=r[3];null===r&&(r=i),Hl(r)&&cM(r[1],r),t=r&&r[4]}r=t}}(r)}}function cM(i,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function y_e(i,r){var t;if(null!=i&&null!=(t=i.destroyHooks))for(var e=0;e=0?e[n=u]():e[n=-u].unsubscribe(),a+=2}else{var c=e[n=t[a+1]];t[a].call(c)}if(null!==e){for(var d=n+1;da?"":n[d+1].toLowerCase();var f=8&e?h:null;if(f&&-1!==q3(f,u,0)||2&e&&u!==h){if(nl(e))return!1;o=!0}}}}else{if(!o&&!nl(e)&&!nl(l))return!1;if(o&&nl(l))continue;o=!1,e=l|1&e}}return nl(e)||o}function nl(i){return 0==(1&i)}function A_e(i,r,t,e){if(null===r)return-1;var n=0;if(e||!t){for(var a=!1;n-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],e=0;e0?'="'+s+'"':"")+"]"}else 8&e?n+="."+o:4&e&&(n+=" "+o);else""!==n&&!nl(o)&&(r+=Q3(a,n),n=""),e=o,a=a||!nl(e);t++}return""!==n&&(r+=Q3(a,n)),r}var on={};function k(i){J3(Bn(),Oe(),Ka()+i,!1)}function J3(i,r,t,e){if(!e)if(3==(3&r[2])){var a=i.preOrderCheckHooks;null!==a&&bS(r,a,t)}else{var o=i.preOrderHooks;null!==o&&SS(r,o,0,t)}pd(t)}function zS(i,r){return i<<17|r<<2}function il(i){return i>>17&32767}function pM(i){return 2|i}function cc(i){return(131068&i)>>2}function gM(i,r){return-131069&i|r<<2}function mM(i){return 1|i}function cH(i,r){var t=i.contentQueries;if(null!==t)for(var e=0;e20&&J3(i,r,20,!1),t(e,n)}finally{pd(a)}}function hH(i,r,t){if(mx(r))for(var n=r.directiveEnd,a=r.directiveStart;a2&&void 0!==arguments[2]?arguments[2]:Ss,e=r.localNames;if(null!==e)for(var n=r.index+1,a=0;a0;){var t=i[--r];if("number"==typeof t&&t<0)return t}return 0})(s)!=l&&s.push(l),s.push(e,n,o)}}function kH(i,r){null!==i.hostBindings&&i.hostBindings(1,r)}function CH(i,r){r.flags|=2,(i.components||(i.components=[])).push(r.index)}function lye(i,r,t){if(t){if(r.exportAs)for(var e=0;e0&&RM(t)}}function RM(i){for(var r=aM(i);null!==r;r=oM(r))for(var t=10;t0&&RM(e)}var o=i[1].components;if(null!==o)for(var s=0;s0&&RM(l)}}function pye(i,r){var t=Go(r,i),e=t[1];(function gye(i,r){for(var t=r.length;t1&&void 0!==arguments[1]?arguments[1]:O_;if(e===O_){var n=new Error("NullInjectorError: No provider for ".concat(si(t),"!"));throw n.name="NullInjectorError",n}return e}}]),i}(),PM=new Dt("Set Injector scope."),W_={},Cye={},BM=void 0;function OH(){return void 0===BM&&(BM=new RH),BM}function IH(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e=arguments.length>3?arguments[3]:void 0,n=NH(i,r,t,e);return n._resolveInjectorDefTypes(),n}function NH(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e=arguments.length>3?arguments[3]:void 0;return new bye(i,t,r||OH(),e)}var bye=function(){function i(r,t,e){var n=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p(this,i),this.parent=e,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];t&&jl(t,function(l){return n.processProvider(l,r,t)}),jl([r],function(l){return n.processInjectorType(l,[],o)}),this.records.set(LM,mp(void 0,this));var s=this.records.get(PM);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof r?null:si(r))}return v(i,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O_,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn.Default;this.assertNotDestroyed();var a=t3(this),o=dd(void 0);try{if(!(n&tn.SkipSelf)){var s=this.records.get(t);if(void 0===s){var l=Mye(t)&&cx(t);s=l&&this.injectableDefInScope(l)?mp(GM(t),W_):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}var u=n&tn.Self?OH():this.parent;return u.get(t,e=n&tn.Optional&&e===O_?null:e)}catch(d){if("NullInjectorError"===d.name){var c=d[OS]=d[OS]||[];if(c.unshift(si(t)),a)throw d;return Jge(d,t,"R3InjectorError",this.source)}throw d}finally{dd(o),t3(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(n,a){return t.push(si(a))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new gt(205,!1)}},{key:"processInjectorType",value:function(t,e,n){var a=this;if(!(t=fn(t)))return!1;var o=uz(t),s=null==o&&t.ngModule||void 0,l=void 0===s?t:s,d=-1!==n.indexOf(l);if(void 0!==s&&(o=uz(s)),null==o)return!1;if(null!=o.imports&&!d){var h;n.push(l);try{jl(o.imports,function(E){a.processInjectorType(E,e,n)&&(void 0===h&&(h=[]),h.push(E))})}finally{}if(void 0!==h)for(var f=function(M){var R=h[M],N=R.ngModule,V=R.providers;jl(V,function(U){return a.processProvider(U,N,V||yi)})},g=0;g0)throw R_(r,"?"),new gt(204,!1);var e=function Mpe(i){var r=i&&(i[cS]||i[cz]);if(r){var t=function Rpe(i){if(i.hasOwnProperty("name"))return i.name;var r=(""+i).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(i);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),r}return null}(i);return null!==e?function(){return e.factory(i)}:function(){return new i}}(i);throw new gt(204,!1)}function FH(i,r,t){var e=void 0;if(_p(i)){var n=fn(i);return Wh(n)||GM(n)}if(LH(i))e=function(){return fn(i.useValue)};else if(function Eye(i){return!(!i||!i.useFactory)}(i))e=function(){return i.useFactory.apply(i,Ae(jx(i.deps||[])))};else if(function Dye(i){return!(!i||!i.useExisting)}(i))e=function(){return oe(fn(i.useExisting))};else{var a=fn(i&&(i.useClass||i.provide));if(!function Aye(i){return!!i.deps}(i))return Wh(a)||GM(a);e=function(){return qr(a,Ae(jx(i.deps)))}}return e}function mp(i,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:i,value:r,multi:t?[]:void 0}}function LH(i){return null!==i&&"object"==typeof i&&Xge in i}function _p(i){return"function"==typeof i}function Mye(i){return"function"==typeof i||"object"==typeof i&&i instanceof Dt}var Jn=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"create",value:function(e,n){var a;if(Array.isArray(e))return IH({name:""},n,e,"");var o=null!==(a=e.name)&&void 0!==a?a:"";return IH({name:o},e.parent,e.providers,o)}}]),r}();return i.THROW_IF_NOT_FOUND=O_,i.NULL=new RH,i.\u0275prov=pe({token:i,providedIn:"any",factory:function(){return oe(LM)}}),i.__NG_ELEMENT_ID__=-1,i}();function Uye(i,r){CS(eM(i)[1],Fr())}function j(i){for(var r=function KH(i){return Object.getPrototypeOf(i.prototype).constructor}(i.type),t=!0,e=[i];r;){var n=void 0;if(tl(i))n=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new gt(903,"");n=r.\u0275dir}if(n){if(t){e.push(n);var o=i;o.inputs=UM(i.inputs),o.declaredInputs=UM(i.declaredInputs),o.outputs=UM(i.outputs);var s=n.hostBindings;s&&jye(i,s);var l=n.viewQuery,u=n.contentQueries;if(l&&Hye(i,l),u&&Kye(i,u),sx(i.inputs,n.inputs),sx(i.declaredInputs,n.declaredInputs),sx(i.outputs,n.outputs),tl(n)&&n.data.animation){var c=i.data;c.animation=(c.animation||[]).concat(n.data.animation)}}var d=n.features;if(d)for(var h=0;h=0;e--){var n=i[e];n.hostVars=r+=n.hostVars,n.hostAttrs=DS(n.hostAttrs,t=DS(t,n.hostAttrs))}}(e)}function UM(i){return i===Xv?{}:i===yi?[]:i}function Hye(i,r){var t=i.viewQuery;i.viewQuery=t?function(e,n){r(e,n),t(e,n)}:r}function Kye(i,r){var t=i.contentQueries;i.contentQueries=t?function(e,n,a){r(e,n,a),t(e,n,a)}:r}function jye(i,r){var t=i.hostBindings;i.hostBindings=t?function(e,n){r(e,n),t(e,n)}:r}var qS=null;function yp(){if(!qS){var i=hi.Symbol;if(i&&i.iterator)qS=i.iterator;else for(var r=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:tn.Default,t=Oe();if(null===t)return oe(i,r);var e=Fr();return Kz(e,t,fn(i),r)}function Mp(){throw new Error("invalid")}function y(i,r,t){var e=Oe();return Ia(e,tp(),r)&&Ho(Bn(),lr(),e,i,r,e[11],t,!1),y}function WM(i,r,t,e,n){var o=n?"class":"style";MH(i,t,r.inputs[o],o,e)}function A(i,r,t,e){var n=Oe(),a=Bn(),o=20+i,s=n[11],l=n[o]=lM(s,r,function kge(){return an.lFrame.currentNamespace}()),u=a.firstCreatePass?function mke(i,r,t,e,n,a,o){var s=r.consts,u=vp(r,i,2,n,vd(s,a));return xM(r,t,u,vd(s,o)),null!==u.attrs&&$S(u,u.attrs,!1),null!==u.mergedAttrs&&$S(u,u.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,u),u}(o,a,n,0,r,t,e):a.data[o];Kl(u,!0);var c=u.mergedAttrs;null!==c&&wS(s,l,c);var d=u.classes;null!==d&&vM(s,l,d);var h=u.styles;return null!==h&&$3(s,l,h),64!=(64&u.flags)&&VS(a,n,l,u),0===function age(){return an.lFrame.elementDepthCount}()&&Oa(l,n),function oge(){an.lFrame.elementDepthCount++}(),gS(u)&&(TM(a,n,u),hH(a,u,n)),null!==e&&AM(n,u),A}function x(){var i=Fr();Tx()?Ax():Kl(i=i.parent,!1);var r=i;!function sge(){an.lFrame.elementDepthCount--}();var t=Bn();return t.firstCreatePass&&(CS(t,i),mx(i)&&t.queries.elementEnd(i)),null!=r.classesWithoutHost&&function Dge(i){return 0!=(16&i.flags)}(r)&&WM(t,r,Oe(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function Ege(i){return 0!=(32&i.flags)}(r)&&WM(t,r,Oe(),r.stylesWithoutHost,!1),x}function z(i,r,t,e){return A(i,r,t,e),x(),z}function Ge(i,r,t){var e=Oe(),n=Bn(),a=i+20,o=n.firstCreatePass?function _ke(i,r,t,e,n){var a=r.consts,o=vd(a,e),s=vp(r,i,8,"ng-container",o);return null!==o&&$S(s,o,!0),xM(r,t,s,vd(a,n)),null!==r.queries&&r.queries.elementStart(r,s),s}(a,n,e,r,t):n.data[a];Kl(o,!0);var s=e[a]=e[11].createComment("");return VS(n,e,s,o),Oa(s,e),gS(o)&&(TM(n,e,o),hH(n,o,e)),null!=t&&AM(e,o),Ge}function Ve(){var i=Fr(),r=Bn();return Tx()?Ax():Kl(i=i.parent,!1),r.firstCreatePass&&(CS(r,i),mx(i)&&r.queries.elementEnd(i)),Ve}function Wt(i,r,t){return Ge(i,r,t),Ve(),Wt}function Me(){return Oe()}function X_(i){return!!i&&"function"==typeof i.then}var $M=function d8(i){return!!i&&"function"==typeof i.subscribe};function Q(i,r,t,e){var n=Oe(),a=Bn(),o=Fr();return function f8(i,r,t,e,n,a,o,s){var l=gS(e),c=i.firstCreatePass&&TH(i),d=r[8],h=EH(r),f=!0;if(3&e.type||s){var g=Ss(e,r),_=s?s(g):g,C=h.length,w=s?function(me){return s(Ar(me[e.index]))}:e.index;if(sr(t)){var E=null;if(!s&&l&&(E=function yke(i,r,t,e){var n=i.cleanup;if(null!=n)for(var a=0;al?s[l]:null}"string"==typeof o&&(a+=2)}return null}(i,r,n,e.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=a,E.__ngLastListenerFn__=a,f=!1;else{a=qM(e,r,d,a,!1);var R=t.listen(_,n,a);h.push(a,R),c&&c.push(n,w,C,C+1)}}else a=qM(e,r,d,a,!0),_.addEventListener(n,a,o),h.push(a),c&&c.push(n,w,C,o)}else a=qM(e,r,d,a,!1);var V,N=e.outputs;if(f&&null!==N&&(V=N[n])){var U=V.length;if(U)for(var ee=0;ee0&&void 0!==arguments[0]?arguments[0]:1;return pge(i)}function kke(i,r){for(var t=null,e=function x_e(i){var r=i.attrs;if(null!=r){var t=r.indexOf(5);if(0==(1&t))return r[t+1]}return null}(i),n=0;n1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,e=Oe(),n=Bn(),a=vp(n,20+i,16,null,t||null);null===a.projection&&(a.projection=r),Ax(),64!=(64&a.flags)&&b_e(n,e,a)}function ZS(i,r,t){return XM(i,"",r,"",t),ZS}function XM(i,r,t,e,n){var a=Oe(),o=Cp(a,r,t,e);return o!==on&&Ho(Bn(),lr(),a,i,o,a[11],n,!1),XM}function S8(i,r,t,e,n){for(var a=i[t+1],o=null===r,s=e?il(a):cc(a),l=!1;0!==s&&(!1===l||o);){var c=i[s+1];Ske(i[s],r)&&(l=!0,i[s+1]=e?mM(c):pM(c)),s=e?il(c):cc(c)}l&&(i[t+1]=e?pM(a):mM(a))}function Ske(i,r){return null===i||null==r||(Array.isArray(i)?i[1]:i)===r||!(!Array.isArray(i)||"string"!=typeof r)&&up(i,r)>=0}var Pr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function w8(i){return i.substring(Pr.key,Pr.keyEnd)}function D8(i,r){var t=Pr.textEnd;return t===r?-1:(r=Pr.keyEnd=function Tke(i,r,t){for(;r32;)r++;return r}(i,Pr.key=r,t),Rp(i,r,t))}function Rp(i,r,t){for(;r=0;t=D8(r,t))Vo(i,w8(r),!0)}function al(i,r,t,e){var n=Oe(),a=Bn(),o=lc(2);a.firstUpdatePass&&R8(a,i,o,e),r!==on&&Ia(n,o,r)&&I8(a,a.data[Ka()],n,n[11],i,n[o+1]=function Pke(i,r){return null==i||("string"==typeof r?i+=r:"object"==typeof i&&(i=si(Uo(i)))),i}(r,t),e,o)}function ol(i,r,t,e){var n=Bn(),a=lc(2);n.firstUpdatePass&&R8(n,null,a,e);var o=Oe();if(t!==on&&Ia(o,a,t)){var s=n.data[Ka()];if(F8(s,e)&&!M8(n,a)){var u=e?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(t=lx(u,t||"")),WM(n,s,o,t,e)}else!function Lke(i,r,t,e,n,a,o,s){n===on&&(n=yi);for(var l=0,u=0,c=0=i.expandoStartIndex}function R8(i,r,t,e){var n=i.data;if(null===n[t+1]){var a=n[Ka()],o=M8(i,t);F8(a,e)&&null===r&&!o&&(r=!1),r=function Rke(i,r,t,e){var n=Mx(i),a=e?r.residualClasses:r.residualStyles;if(null===n)0===(e?r.classBindings:r.styleBindings)&&(t=Z_(t=ZM(null,i,r,t,e),r.attrs,e),a=null);else{var s=r.directiveStylingLast;if(-1===s||i[s]!==n)if(t=ZM(n,i,r,t,e),null===a){var u=function Oke(i,r,t){var e=t?r.classBindings:r.styleBindings;if(0!==cc(e))return i[il(e)]}(i,r,e);void 0!==u&&Array.isArray(u)&&function Ike(i,r,t,e){i[il(t?r.classBindings:r.styleBindings)]=e}(i,r,e,u=Z_(u=ZM(null,i,r,u[1],e),r.attrs,e))}else a=function Nke(i,r,t){for(var e=void 0,n=r.directiveEnd,a=1+r.directiveStylingLast;a0)&&(u=!0):c=t,n)if(0!==l){var f=il(i[s+1]);i[e+1]=zS(f,s),0!==f&&(i[f+1]=gM(i[f+1],e)),i[s+1]=function L_e(i,r){return 131071&i|r<<17}(i[s+1],e)}else i[e+1]=zS(s,0),0!==s&&(i[s+1]=gM(i[s+1],e)),s=e;else i[e+1]=zS(l,0),0===s?s=e:i[l+1]=gM(i[l+1],e),l=e;u&&(i[e+1]=pM(i[e+1])),S8(i,c,e,!0),S8(i,c,e,!1),function bke(i,r,t,e,n){var a=n?i.residualClasses:i.residualStyles;null!=a&&"string"==typeof r&&up(a,r)>=0&&(t[e+1]=mM(t[e+1]))}(r,c,i,e,a),o=zS(s,l),a?r.classBindings=o:r.styleBindings=o}(n,a,r,t,o,e)}}function ZM(i,r,t,e,n){var a=null,o=t.directiveEnd,s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){var l=i[n],u=Array.isArray(l),c=u?l[1]:l,d=null===c,h=t[n+1];h===on&&(h=d?yi:void 0);var f=d?zx(h,e):c===e?h:void 0;if(u&&!YS(f)&&(f=zx(l,e)),YS(f)&&(s=f,o))return s;var g=i[n+1];n=o?il(g):cc(g)}if(null!==r){var _=a?r.residualClasses:r.residualStyles;null!=_&&(s=zx(_,e))}return s}function YS(i){return void 0!==i}function F8(i,r){return 0!=(i.flags&(r?16:32))}function te(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Oe(),e=Bn(),n=i+20,a=e.firstCreatePass?vp(e,n,1,r,null):e.data[n],o=t[n]=sM(t[11],r);VS(e,t,o,a),Kl(a,!1)}function at(i){return Nt("",i,""),at}function Nt(i,r,t){var e=Oe(),n=Cp(e,i,r,t);return n!==on&&dc(e,Ka(),n),Nt}function Jl(i,r,t,e,n){var a=Oe(),o=function bp(i,r,t,e,n,a){var s=Xh(i,sc(),t,n);return lc(2),s?r+rn(t)+e+rn(n)+a:on}(a,i,r,t,e,n);return o!==on&&dc(a,Ka(),o),Jl}function YM(i,r,t,e,n,a,o,s,l,u,c){var d=Oe(),h=function Dp(i,r,t,e,n,a,o,s,l,u,c,d){var h=sc(),f=Es(i,h,t,n,o,l);return f=Ia(i,h+4,c)||f,lc(5),f?r+rn(t)+e+rn(n)+a+rn(o)+s+rn(l)+u+rn(c)+d:on}(d,i,r,t,e,n,a,o,s,l,u,c);return h!==on&&dc(d,Ka(),h),YM}function QM(i,r,t){var e=Oe();return Ia(e,tp(),r)&&Ho(Bn(),lr(),e,i,r,e[11],t,!0),QM}function JM(i,r,t){var e=Oe();if(Ia(e,tp(),r)){var a=Bn(),o=lr();Ho(a,o,e,i,r,function AH(i,r,t){return(null===i||tl(i))&&(t=function nge(i){for(;Array.isArray(i);){if("object"==typeof i[1])return i;i=i[0]}return null}(t[r.index])),t[11]}(Mx(a.data),o,e),t,!0)}return JM}var Zh=void 0,nCe=["en",[["a","p"],["AM","PM"],Zh],[["AM","PM"],Zh,Zh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Zh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Zh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Zh,"{1} 'at' {0}",Zh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function tCe(i){var t=Math.floor(Math.abs(i)),e=i.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===e?1:5}],Op={};function ja(i){var r=function iCe(i){return i.toLowerCase().replace(/_/g,"-")}(i),t=Q8(r);if(t)return t;var e=r.split("-")[0];if(t=Q8(e))return t;if("en"===e)return nCe;throw new Error('Missing locale data for the locale "'.concat(i,'".'))}function Q8(i){return i in Op||(Op[i]=hi.ng&&hi.ng.common&&hi.ng.common.locales&&hi.ng.common.locales[i]),Op[i]}var st=function(){return(st=st||{})[st.LocaleId=0]="LocaleId",st[st.DayPeriodsFormat=1]="DayPeriodsFormat",st[st.DayPeriodsStandalone=2]="DayPeriodsStandalone",st[st.DaysFormat=3]="DaysFormat",st[st.DaysStandalone=4]="DaysStandalone",st[st.MonthsFormat=5]="MonthsFormat",st[st.MonthsStandalone=6]="MonthsStandalone",st[st.Eras=7]="Eras",st[st.FirstDayOfWeek=8]="FirstDayOfWeek",st[st.WeekendRange=9]="WeekendRange",st[st.DateFormat=10]="DateFormat",st[st.TimeFormat=11]="TimeFormat",st[st.DateTimeFormat=12]="DateTimeFormat",st[st.NumberSymbols=13]="NumberSymbols",st[st.NumberFormats=14]="NumberFormats",st[st.CurrencyCode=15]="CurrencyCode",st[st.CurrencySymbol=16]="CurrencySymbol",st[st.CurrencyName=17]="CurrencyName",st[st.Currencies=18]="Currencies",st[st.Directionality=19]="Directionality",st[st.PluralCase=20]="PluralCase",st[st.ExtraData=21]="ExtraData",st}(),rCe=["zero","one","two","few","many"],QS="en-US",JS={marker:"element"},ew={marker:"ICU"},J8=QS;function Q_(i,r){var t=i.data[r];return null===t||"string"==typeof t?null:t.hasOwnProperty("currentCaseLViewIndex")?t:t.value}function tw(i,r){var t=r[i.currentCaseLViewIndex];return null===t?t:t<0?~t:t}function r5(i){return i>>>17}function a5(i){return(131070&i)>>>1}var J_=0,ey=0;function s5(i,r,t,e){for(var o,n=t[11],a=null,s=0;s>>1,t),null,null,E,M,null)}else switch(l){case ew:var R=r[++s],N=r[++s];null===t[N]&&Oa(t[N]=d_e(n,R),t);break;case JS:var U=r[++s],ee=r[++s];null===t[ee]&&Oa(t[ee]=lM(n,U,null),t)}}}function l5(i,r,t,e,n){for(var a=0;a>>2;switch(3&c){case 1:var h=t[++u],f=t[++u],g=i.data[d];"string"==typeof g?MM(r[11],r[d],null,g,h,l,f):Ho(i,g,r,h,l,r[11],f,!1);break;case 0:var _=r[d];null!==_&&I3(r[11],_,l);break;case 2:yCe(i,Q_(i,d),r,l);break;case 3:u5(i,Q_(i,d),e,r)}}}else{var C=t[a+1];if(C>0&&3==(3&C)){var E=Q_(i,C>>>2);r[E.currentCaseLViewIndex]<0&&u5(i,E,e,r)}}a+=s}}function u5(i,r,t,e){var n=e[r.currentCaseLViewIndex];if(null!==n){var a=J_;n<0&&(n=e[r.currentCaseLViewIndex]=~n,a=-1),l5(i,e,r.update[n],t,a)}}function yCe(i,r,t,e){var n=function kCe(i,r){var t=i.cases.indexOf(r);if(-1===t)switch(i.type){case 1:var e=function aCe(i,r){var t=function Y8(i){return ja(i)[st.PluralCase]}(r)(parseInt(i,10)),e=rCe[t];return void 0!==e?e:"other"}(r,function lCe(){return J8}());-1===(t=i.cases.indexOf(e))&&"other"!==e&&(t=i.cases.indexOf("other"));break;case 0:t=i.cases.indexOf("other")}return-1===t?null:t}(r,e);if(tw(r,t)!==n&&(c5(i,r,t),t[r.currentCaseLViewIndex]=null===n?null:~n,null!==n)){var o=t[r.anchorIdx];o&&s5(i,r.create[n],t,o)}}function c5(i,r,t){var e=tw(r,t);if(null!==e)for(var n=r.remove[e],a=0;a0){var s=mS(o,t);null!==s&&j3(t[11],s)}else c5(i,Q_(i,~o),t)}}var nw=/\ufffd(\d+):?\d*\ufffd/gi,bCe=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function Ip(i,r,t,e,n,a){var o=i.length,s=o+1;i.push(null,null);for(var l=o+2,u=r.split(nw),c=0,d=0;d>20;if(_p(i)||!i.multi){var g=new w_(u,n,m),_=aR(l,r,n?d:d+f,h);-1===_?(AS(E_(c,s),o,l),rR(o,i,r.length),r.push(l),c.directiveStart++,c.directiveEnd++,n&&(c.providerIndexes+=1048576),t.push(g),s.push(g)):(t[_]=g,s[_]=g)}else{var C=aR(l,r,d+f,h),w=aR(l,r,d,d+f),M=w>=0&&t[w];if(n&&!M||!n&&!(C>=0&&t[C])){AS(E_(c,s),o,l);var R=function JCe(i,r,t,e,n){var a=new w_(i,t,m);return a.multi=[],a.index=r,a.componentProviders=0,w5(a,n,e&&!t),a}(n?QCe:YCe,t.length,n,e,u);!n&&M&&(t[w].providerFactory=R),rR(o,i,r.length,0),r.push(l),c.directiveStart++,c.directiveEnd++,n&&(c.providerIndexes+=1048576),t.push(R),s.push(R)}else rR(o,i,C>-1?C:w,w5(t[n?w:C],u,!n&&e));!n&&e&&M&&t[w].componentProviders++}}}function rR(i,r,t,e){var n=_p(r),a=function Tye(i){return!!i.useClass}(r);if(n||a){var l=(a?fn(r.useClass):r).prototype.ngOnDestroy;if(l){var u=i.destroyHooks||(i.destroyHooks=[]);if(!n&&r.multi){var c=u.indexOf(t);-1===c?u.push(t,[e,l]):u[c+1].push(e,l)}else u.push(t,l)}}}function w5(i,r,t){return t&&i.componentProviders++,i.multi.push(r)-1}function aR(i,r,t,e){for(var n=t;n1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(e,n){return ZCe(e,n?n(i):i,r)}}}var ebe=v(function i(){p(this,i)}),D5=v(function i(){p(this,i)}),nbe=function(){function i(){p(this,i)}return v(i,[{key:"resolveComponentFactory",value:function(t){throw function tbe(i){var r=Error("No component factory found for ".concat(si(i),". Did you add it to @NgModule.entryComponents?"));return r.ngComponent=i,r}(t)}}]),i}(),Ts=function(){var i=v(function r(){p(this,r)});return i.NULL=new nbe,i}();function ibe(){return Np(Fr(),Oe())}function Np(i,r){return new _e(Ss(i,r))}var _e=function(){var i=v(function r(t){p(this,r),this.nativeElement=t});return i.__NG_ELEMENT_ID__=ibe,i}();function rbe(i){return i instanceof _e?i.nativeElement:i}var ny=v(function i(){p(this,i)}),Ee=function(){var i=v(function r(){p(this,r)});return i.__NG_ELEMENT_ID__=function(){return function obe(){var i=Oe(),t=Go(Fr().index,i);return function abe(i){return i[11]}(Hl(t)?t:i)}()},i}(),sbe=function(){var i=v(function r(){p(this,r)});return i.\u0275prov=pe({token:i,providedIn:"root",factory:function(){return null}}),i}(),iy=v(function i(r){p(this,i),this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}),lbe=new iy("13.3.10"),sR={};function iw(i,r,t,e){for(var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var a=r[t.index];if(null!==a&&e.push(Ar(a)),el(a))for(var o=10;o-1&&(uM(t,n),MS(e,n))}this._attachedToViewContainer=!1}F3(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){gH(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){OM(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){!function NM(i,r,t){var e=r[10];e.begin&&e.begin();try{gp(i,r,i.template,t)}catch(n){throw xH(r,n),n}finally{e.end&&e.end()}}(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new gt(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function v_e(i,r){H_(i,r,r[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new gt(902,"");this._appRef=t}}]),i}(),ube=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e))._view=e,n}return v(t,[{key:"detectChanges",value:function(){DH(this._view)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),t}(ry),T5=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).ngModule=e,n}return v(t,[{key:"resolveComponentFactory",value:function(n){var a=Ma(n);return new lR(a,this.ngModule)}}]),t}(Ts);function A5(i){var r=[];for(var t in i)i.hasOwnProperty(t)&&r.push({propName:i[t],templateName:t});return r}var lR=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).componentDef=e,a.ngModule=n,a.componentType=e.type,a.selector=function N_e(i){return i.map(I_e).join(",")}(e.selectors),a.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],a.isBoundToModule=!!n,a}return v(t,[{key:"inputs",get:function(){return A5(this.componentDef.inputs)}},{key:"outputs",get:function(){return A5(this.componentDef.outputs)}},{key:"create",value:function(n,a,o,s){var E,M,l=(s=s||this.ngModule)?function dbe(i,r){return{get:function(e,n,a){var o=i.get(e,sR,a);return o!==sR||n===sR?o:r.get(e,n,a)}}}(n,s.injector):n,u=l.get(ny,bz),c=l.get(sbe,null),d=u.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",f=o?function pH(i,r,t){if(sr(i))return i.selectRootElement(r,t===Qs.ShadowDom);var n="string"==typeof r?i.querySelector(r):r;return n.textContent="",n}(d,o,this.componentDef.encapsulation):lM(u.createRenderer(null,this.componentDef),h,function cbe(i){var r=i.toLowerCase();return"svg"===r?"svg":"math"===r?"math":null}(h)),g=this.componentDef.onPush?576:528,_=function HH(i,r){return{components:[],scheduler:i||s_e,clean:_ye,playerHandler:r||null,flags:0}}(),C=jS(0,null,null,1,0,null,null,null,null,null),w=K_(null,C,_,g,null,null,u,d,c,l);yS(w);try{var R=function UH(i,r,t,e,n,a){var o=t[1];t[20]=i;var l=vp(o,20,2,"#host",null),u=l.mergedAttrs=r.hostAttrs;null!==u&&($S(l,u,!0),null!==i&&(wS(n,i,u),null!==l.classes&&vM(n,i,l.classes),null!==l.styles&&$3(n,i,l.styles)));var c=e.createRenderer(i,r),d=K_(t,fH(r),null,r.onPush?64:16,t[20],l,e,c,a||null,null);return o.firstCreatePass&&(AS(E_(l,t),o,r.type),CH(o,l),bH(l,t.length,1)),WS(t,d),t[20]=d}(f,this.componentDef,w,u,d);if(f)if(o)wS(d,f,["ng-version",lbe.full]);else{var N=function F_e(i){for(var r=[],t=[],e=1,n=2;e0&&vM(d,f,U.join(" "))}if(M=wx(C,20),void 0!==a)for(var ee=M.projection=[],ve=0;ve1&&void 0!==arguments[1]?arguments[1]:Jn.THROW_IF_NOT_FOUND,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn.Default;return n===Jn||n===hc||n===LM?this:this._r3Injector.get(n,a,o)}},{key:"destroy",value:function(){var n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(function(a){return a()}),this.destroyCbs=null}},{key:"onDestroy",value:function(n){this.destroyCbs.push(n)}}]),t}(hc),uR=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).moduleType=e,null!==ks(e)&&function pbe(i){var r=new Set;!function t(e){var n=ks(e,!0),a=n.id;null!==a&&(function M5(i,r,t){if(r&&r!==t)throw new Error("Duplicate module registered for ".concat(i," - ").concat(si(r)," vs ").concat(si(r.name)))}(a,Fp.get(a),e),Fp.set(a,e));var u,l=In(ql(n.imports));try{for(l.s();!(u=l.n()).done;){var c=u.value;r.has(c)||(r.add(c),t(c))}}catch(d){l.e(d)}finally{l.f()}}(i)}(e),n}return v(t,[{key:"create",value:function(n){return new O5(this.moduleType,n)}}]),t}(x5);function wt(i,r,t){var e=Ha()+i,n=Oe();return n[e]===on?Zl(n,e,t?r.call(t):r()):q_(n,e)}function ot(i,r,t,e){return N5(Oe(),Ha(),i,r,t,e)}function ln(i,r,t,e,n){return F5(Oe(),Ha(),i,r,t,e,n)}function va(i,r,t,e,n,a){return L5(Oe(),Ha(),i,r,t,e,n,a)}function eu(i,r,t,e,n,a,o){return function P5(i,r,t,e,n,a,o,s,l){var u=r+t;return Es(i,u,n,a,o,s)?Zl(i,u+4,l?e.call(l,n,a,o,s):e(n,a,o,s)):oy(i,u+4)}(Oe(),Ha(),i,r,t,e,n,a,o)}function ay(i,r,t,e,n,a,o,s,l){var u=Ha()+i,c=Oe(),d=Es(c,u,t,e,n,a);return Xh(c,u+4,o,s)||d?Zl(c,u+6,l?r.call(l,t,e,n,a,o,s):r(t,e,n,a,o,s)):q_(c,u+6)}function cR(i,r,t,e,n,a,o,s,l,u){var c=Ha()+i,d=Oe(),h=Es(d,c,t,e,n,a);return XS(d,c+4,o,s,l)||h?Zl(d,c+7,u?r.call(u,t,e,n,a,o,s,l):r(t,e,n,a,o,s,l)):q_(d,c+7)}function dR(i,r,t,e){return function B5(i,r,t,e,n,a){for(var o=r+t,s=!1,l=0;l=0;t--){var e=r[t];if(i===e.name)return e}}(r,t.pipeRegistry),t.data[n]=e,e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)):e=t.data[n];var a=e.factory||(e.factory=Wh(e.type)),o=dd(m);try{var s=ES(!1),l=a();return ES(s),function Jye(i,r,t,e){t>=i.data.length&&(i.data[t]=null,i.blueprint[t]=null),r[t]=e}(t,Oe(),n,l),l}finally{dd(o)}}function fc(i,r,t){var e=i+20,n=Oe(),a=ep(n,e);return sy(n,e)?N5(n,Ha(),r,a.transform,t,a):a.transform(t)}function rw(i,r,t,e){var n=i+20,a=Oe(),o=ep(a,n);return sy(a,n)?F5(a,Ha(),r,o.transform,t,e,o):o.transform(t,e)}function aw(i,r,t,e,n){var a=i+20,o=Oe(),s=ep(o,a);return sy(o,a)?L5(o,Ha(),r,s.transform,t,e,n,s):s.transform(t,e,n)}function sy(i,r){return i[1].data[r].pure}var kbe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p(this,t),(e=r.call(this)).__isAsync=n,e}return v(t,[{key:"emit",value:function(n){$(q(t.prototype),"next",this).call(this,n)}},{key:"subscribe",value:function(n,a,o){var s,l,u,c=n,d=a||function(){return null},h=o;if(n&&"object"==typeof n){var f=n;c=null===(s=f.next)||void 0===s?void 0:s.bind(f),d=null===(l=f.error)||void 0===l?void 0:l.bind(f),h=null===(u=f.complete)||void 0===u?void 0:u.bind(f)}this.__isAsync&&(d=hR(d),c&&(c=hR(c)),h&&(h=hR(h)));var g=$(q(t.prototype),"subscribe",this).call(this,{next:c,error:d,complete:h});return n instanceof Je&&n.add(g),g}}]),t}(Ot);function hR(i){return function(r){setTimeout(i,void 0,r)}}var O=kbe;function Cbe(){return this._results[yp()]()}var Ei=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,i),this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=yp(),e=i.prototype;e[t]||(e[t]=Cbe)}return v(i,[{key:"changes",get:function(){return this._changes||(this._changes=new O)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){var n=this;n.dirty=!1;var a=ws(t);(this._changesDetected=!function Pge(i,r,t){if(i.length!==r.length)return!1;for(var e=0;e0;)this.remove(this.length-1)}},{key:"get",value:function(n){var a=V5(this._lContainer);return null!==a&&a[n]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(n,a,o){var s=n.createEmbeddedView(a||{});return this.insert(s,o),s}},{key:"createComponent",value:function(n,a,o,s,l){var c,u=n&&!function M_(i){return"function"==typeof i}(n);if(u)c=a;else{var d=a||{};c=d.index,o=d.injector,s=d.projectableNodes,l=d.ngModuleRef}var h=u?n:new lR(Ma(n)),f=o||this.parentInjector;if(!l&&null==h.ngModule){var _=(u?f:this.parentInjector).get(hc,null);_&&(l=_)}var C=h.create(f,s,void 0,l);return this.insert(C.hostView,c),C}},{key:"insert",value:function(n,a){var o=n._lView,s=o[1];if(function rge(i){return el(i[3])}(o)){var l=this.indexOf(n);if(-1!==l)this.detach(l);else{var u=o[3],c=new G5(u,u[6],u[3]);c.detach(c.indexOf(n))}}var d=this._adjustIndex(a),h=this._lContainer;!function g_e(i,r,t,e){var n=10+e,a=t.length;e>0&&(t[n-1][4]=r),e1&&void 0!==arguments[1]?arguments[1]:0;return null==n?this.length+a:n}}]),t}(ei);function V5(i){return i[8]}function fR(i){return i[8]||(i[8]=[])}function U5(i,r){var t,e=r[i.index];if(el(e))t=e;else{var n;if(8&i.type)n=Ar(e);else{var a=r[11];n=a.createComment("");var o=Ss(i,r);qh(a,GS(a,o),n,function C_e(i,r){return sr(i)?i.nextSibling(r):r.nextSibling}(a,o),!1)}r[i.index]=t=wH(e,r,n,i),WS(r,t)}return new G5(t,i,r)}var xbe=function(){function i(r){p(this,i),this.queryList=r,this.matches=null}return v(i,[{key:"clone",value:function(){return new i(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),i}(),Mbe=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,i),this.queries=r}return v(i,[{key:"createEmbeddedView",value:function(t){var e=t.queries;if(null!==e){for(var n=null!==t.contentQueries?t.contentQueries[0]:e.length,a=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;p(this,i),this.predicate=r,this.flags=t,this.read=e}),Rbe=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,i),this.queries=r}return v(i,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;p(this,i),this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return v(i,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new i(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var a=0;a0)e.push(o[s/2]);else{for(var u=a[s+1],c=r[-l],d=10;d0&&(s=setTimeout(function(){o._callbacks=o._callbacks.filter(function(l){return l.timeoutId!==s}),e(o._didWork,o.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:a})}},{key:"whenStable",value:function(e,n,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,a),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,n,a){return[]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hSe=function(){var i=function(){function r(){p(this,r),this._applications=new Map,ER.addToWindow(this)}return v(r,[{key:"registerApplication",value:function(e,n){this._applications.set(e,n)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ER.findTestabilityInTree(this,e,n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}(),fSe=function(){function i(){p(this,i)}return v(i,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),i}(),ER=new fSe,Yh=null,p4=new Dt("AllowMultipleToken"),g4=new Dt("PlatformOnDestroy");function pSe(i,r,t){var e=new uR(t);return Promise.resolve(e)}var m4=v(function i(r,t){p(this,i),this.name=r,this.token=t});function mSe(i){if(Yh&&!Yh.get(p4,!1))throw new gt(400,"");Yh=i;var t=i.get(y4),e=i.get(c4,null);return e&&e.forEach(function(n){return n()}),t}function _4(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],e="Platform: ".concat(r),n=new Dt(e);return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=TR();if(!o||o.injector.get(p4,!1)){var s=[].concat(Ae(t),Ae(a),[{provide:n,useValue:!0}]);i?i(s):mSe(ySe(s,e))}return _Se()}}function _Se(i){var r=TR();if(!r)throw new gt(401,"");return r}function ySe(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return Jn.create({name:r,providers:[{provide:PM,useValue:"platform"},{provide:g4,useValue:function(){return Yh=null}}].concat(Ae(i))})}function TR(){var i;return null!==(i=null==Yh?void 0:Yh.get(y4))&&void 0!==i?i:null}var y4=function(){var i=function(){function r(t){p(this,r),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return v(r,[{key:"bootstrapModuleFactory",value:function(e,n){var a=this,u=function kSe(i,r){return"noop"===i?new dSe:("zone.js"===i?void 0:i)||new be({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})}(n?n.ngZone:void 0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),c=[{provide:be,useValue:u}];return u.run(function(){var d=Jn.create({providers:c,parent:a.injector,name:e.moduleType.name}),h=e.create(d),f=h.injector.get(U_,null);if(!f)throw new gt(402,"");return u.runOutsideAngular(function(){var _=u.onError.subscribe({next:function(w){f.handleError(w)}});h.onDestroy(function(){AR(a._modules,h),_.unsubscribe()})}),function CSe(i,r,t){try{var e=t();return X_(e)?e.catch(function(n){throw r.runOutsideAngular(function(){return i.handleError(n)}),n}):e}catch(n){throw r.runOutsideAngular(function(){return i.handleError(n)}),n}}(f,u,function(){var _=h.injector.get(kR);return _.runInitializers(),_.donePromise.then(function(){return function sCe(i){Po(i,"Expected localeId to be defined"),"string"==typeof i&&(J8=i.toLowerCase().replace(/_/g,"-"))}(h.injector.get(Ko,QS)||QS),a._moduleDoBootstrap(h),h})})})}},{key:"bootstrapModule",value:function(e){var n=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=k4({},a);return pSe(0,0,e).then(function(s){return n.bootstrapModuleFactory(s,o)})}},{key:"_moduleDoBootstrap",value:function(e){var n=e.injector.get(dy);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(o){return n.bootstrap(o)});else{if(!e.instance.ngDoBootstrap)throw new gt(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new gt(404,"");this._modules.slice().forEach(function(a){return a.destroy()}),this._destroyListeners.forEach(function(a){return a()});var n=this._injector.get(g4,null);null==n||n(),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}();function k4(i,r){return Array.isArray(r)?r.reduce(k4,i):Object.assign(Object.assign({},i),r)}var dy=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this._zone=t,this._injector=e,this._exceptionHandler=n,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){o._zone.run(function(){o.tick()})}});var s=new An(function(u){o._stable=o._zone.isStable&&!o._zone.hasPendingMacrotasks&&!o._zone.hasPendingMicrotasks,o._zone.runOutsideAngular(function(){u.next(o._stable),u.complete()})}),l=new An(function(u){var c;o._zone.runOutsideAngular(function(){c=o._zone.onStable.subscribe(function(){be.assertNotInAngularZone(),bR(function(){!o._stable&&!o._zone.hasPendingMacrotasks&&!o._zone.hasPendingMicrotasks&&(o._stable=!0,u.next(!0))})})});var d=o._zone.onUnstable.subscribe(function(){be.assertInAngularZone(),o._stable&&(o._stable=!1,o._zone.runOutsideAngular(function(){u.next(!1)}))});return function(){c.unsubscribe(),d.unsubscribe()}});this.isStable=xn(s,l.pipe(ax()))}return v(r,[{key:"bootstrap",value:function(e,n){var s,a=this;if(!this._initStatus.done)throw new gt(405,"");s=e instanceof D5?e:this._injector.get(Ts).resolveComponentFactory(e),this.componentTypes.push(s.componentType);var u=function gSe(i){return i.isBoundToModule}(s)?void 0:this._injector.get(hc),d=s.create(Jn.NULL,[],n||s.selector,u),h=d.location.nativeElement,f=d.injector.get(DR,null),g=f&&d.injector.get(hSe);return f&&g&&g.registerApplication(h,f),d.onDestroy(function(){a.detachView(d.hostView),AR(a.components,d),g&&g.unregisterApplication(h)}),this._loadComponent(d),d}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new gt(101,"");try{this._runningTick=!0;var o,a=In(this._views);try{for(a.s();!(o=a.n()).done;)o.value.detectChanges()}catch(d){a.e(d)}finally{a.f()}}catch(d){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(d)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var n=e;this._views.push(n),n.attachToAppRef(this)}},{key:"detachView",value:function(e){var n=e;AR(this._views,n),n.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(d4,[]).concat(this._bootstrapListeners).forEach(function(a){return a(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Jn),oe(U_),oe(kR))},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function AR(i,r){var t=i.indexOf(r);t>-1&&i.splice(t,1)}var b4=!0,S4=!1;function xt(){return S4=!0,b4}var nt=function(){var i=v(function r(){p(this,r)});return i.__NG_ELEMENT_ID__=wSe,i}();function wSe(i){return function DSe(i,r,t){if(pS(i)&&!t){var e=Go(i.index,r);return new ry(e,e)}return 47&i.type?new ry(r[16],r):null}(Fr(),Oe(),16==(16&i))}var T4=function(){function i(){p(this,i)}return v(i,[{key:"supports",value:function(t){return $_(t)}},{key:"create",value:function(t){return new xSe(t)}}]),i}(),ASe=function(r,t){return t},xSe=function(){function i(r){p(this,i),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||ASe}return v(i,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,a=0,o=null;e||n;){var s=!n||e&&e.currentIndex0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(a)}},{key:"getState",value:function(){return this._history.state}}]),e}(Jh);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:function(){return function HSe(){return new I4(oe(pa))}()},providedIn:"platform"}),i}();function N4(){return!!window.history.pushState}function NR(i,r){if(0==i.length)return r;if(0==r.length)return i;var t=0;return i.endsWith("/")&&t++,r.startsWith("/")&&t++,2==t?i+r.substring(1):1==t?i+r:i+"/"+r}function F4(i){var r=i.match(/#|\?|$/),t=r&&r.index||i.length;return i.slice(0,t-("/"===i[t-1]?1:0))+i.slice(t)}function vc(i){return i&&"?"!==i[0]?"?"+i:i}var Bp=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:function(){return function KSe(i){var r=oe(pa).location;return new L4(oe(Jh),r&&r.origin||"")}()},providedIn:"root"}),i}(),FR=new Dt("appBaseHref"),L4=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;if(p(this,e),(o=t.call(this))._platformLocation=n,o._removeListenerFns=[],null==a&&(a=o._platformLocation.getBaseHrefFromDOM()),null==a)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return o._baseHref=a,o}return v(e,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(a){return NR(this._baseHref,a)}},{key:"path",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this._platformLocation.pathname+vc(this._platformLocation.search),s=this._platformLocation.hash;return s&&a?"".concat(o).concat(s):o}},{key:"pushState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));this._platformLocation.pushState(a,o,u)}},{key:"replaceState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));this._platformLocation.replaceState(a,o,u)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),e}(Bp);return i.\u0275fac=function(t){return new(t||i)(oe(Jh),oe(FR,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),jSe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this))._platformLocation=n,o._baseHref="",o._removeListenerFns=[],null!=a&&(o._baseHref=a),o}return v(e,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}},{key:"prepareExternalUrl",value:function(a){var o=NR(this._baseHref,a);return o.length>0?"#"+o:o}},{key:"pushState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.pushState(a,o,u)}},{key:"replaceState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.replaceState(a,o,u)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),e}(Bp);return i.\u0275fac=function(t){return new(t||i)(oe(Jh),oe(FR,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),LR=function(){var i=function(){function r(t,e){var n=this;p(this,r),this._subject=new O,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=F4(P4(a)),this._platformStrategy.onPopState(function(o){n._subject.emit({url:n.path(!0),pop:!0,state:o.state,type:o.type})})}return v(r,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+vc(n))}},{key:"normalize",value:function(e){return r.stripTrailingSlash(function $Se(i,r){return i&&r.startsWith(i)?r.substring(i.length):r}(this._baseHref,P4(e)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(a,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vc(n)),a)}},{key:"replaceState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(a,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vc(n)),a)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var n,a,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(a=(n=this._platformStrategy).historyGo)||void 0===a||a.call(n,e)}},{key:"onUrlChange",value:function(e){var n=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(a){n._notifyUrlChangeListeners(a.url,a.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(a){return a(e,n)})}},{key:"subscribe",value:function(e,n,a){return this._subject.subscribe({next:e,error:n,complete:a})}}]),r}();return i.normalizeQueryParams=vc,i.joinWithSlash=NR,i.stripTrailingSlash=F4,i.\u0275fac=function(t){return new(t||i)(oe(Bp),oe(Jh))},i.\u0275prov=pe({token:i,factory:function(){return function WSe(){return new LR(oe(Bp),oe(Jh))}()},providedIn:"root"}),i}();function P4(i){return i.replace(/\/index.html$/,"")}var _o=function(){return(_o=_o||{})[_o.Decimal=0]="Decimal",_o[_o.Percent=1]="Percent",_o[_o.Currency=2]="Currency",_o[_o.Scientific=3]="Scientific",_o}(),yr=function(){return(yr=yr||{})[yr.Format=0]="Format",yr[yr.Standalone=1]="Standalone",yr}(),Dn=function(){return(Dn=Dn||{})[Dn.Narrow=0]="Narrow",Dn[Dn.Abbreviated=1]="Abbreviated",Dn[Dn.Wide=2]="Wide",Dn[Dn.Short=3]="Short",Dn}(),$i=function(){return($i=$i||{})[$i.Short=0]="Short",$i[$i.Medium=1]="Medium",$i[$i.Long=2]="Long",$i[$i.Full=3]="Full",$i}(),Kt=function(){return(Kt=Kt||{})[Kt.Decimal=0]="Decimal",Kt[Kt.Group=1]="Group",Kt[Kt.List=2]="List",Kt[Kt.PercentSign=3]="PercentSign",Kt[Kt.PlusSign=4]="PlusSign",Kt[Kt.MinusSign=5]="MinusSign",Kt[Kt.Exponential=6]="Exponential",Kt[Kt.SuperscriptingExponent=7]="SuperscriptingExponent",Kt[Kt.PerMille=8]="PerMille",Kt[Kt.Infinity=9]="Infinity",Kt[Kt.NaN=10]="NaN",Kt[Kt.TimeSeparator=11]="TimeSeparator",Kt[Kt.CurrencyDecimal=12]="CurrencyDecimal",Kt[Kt.CurrencyGroup=13]="CurrencyGroup",Kt}();function hw(i,r){return xs(ja(i)[st.DateFormat],r)}function fw(i,r){return xs(ja(i)[st.TimeFormat],r)}function vw(i,r){return xs(ja(i)[st.DateTimeFormat],r)}function As(i,r){var t=ja(i),e=t[st.NumberSymbols][r];if(void 0===e){if(r===Kt.CurrencyDecimal)return t[st.NumberSymbols][Kt.Decimal];if(r===Kt.CurrencyGroup)return t[st.NumberSymbols][Kt.Group]}return e}function G4(i){if(!i[st.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(i[st.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function xs(i,r){for(var t=r;t>-1;t--)if(void 0!==i[t])return i[t];throw new Error("Locale data API: locale data undefined")}function BR(i){var t=Bt(i.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var owe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,fy={},swe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Br=function(){return(Br=Br||{})[Br.Short=0]="Short",Br[Br.ShortGMT=1]="ShortGMT",Br[Br.Long=2]="Long",Br[Br.Extended=3]="Extended",Br}(),$t=function(){return($t=$t||{})[$t.FullYear=0]="FullYear",$t[$t.Month=1]="Month",$t[$t.Date=2]="Date",$t[$t.Hours=3]="Hours",$t[$t.Minutes=4]="Minutes",$t[$t.Seconds=5]="Seconds",$t[$t.FractionalSeconds=6]="FractionalSeconds",$t[$t.Day=7]="Day",$t}(),pn=function(){return(pn=pn||{})[pn.DayPeriods=0]="DayPeriods",pn[pn.Days=1]="Days",pn[pn.Months=2]="Months",pn[pn.Eras=3]="Eras",pn}();function lwe(i,r,t,e){var n=function mwe(i){if(z4(i))return i;if("number"==typeof i&&!isNaN(i))return new Date(i);if("string"==typeof i){if(i=i.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(i)){var t=Bt(i.split("-").map(function(d){return+d}),3),n=t[1],o=t[2];return pw(t[0],(void 0===n?1:n)-1,void 0===o?1:o)}var u,l=parseFloat(i);if(!isNaN(i-l))return new Date(l);if(u=i.match(owe))return function _we(i){var r=new Date(0),t=0,e=0,n=i[8]?r.setUTCFullYear:r.setFullYear,a=i[8]?r.setUTCHours:r.setHours;i[9]&&(t=Number(i[9]+i[10]),e=Number(i[9]+i[11])),n.call(r,Number(i[1]),Number(i[2])-1,Number(i[3]));var o=Number(i[4]||0)-t,s=Number(i[5]||0)-e,l=Number(i[6]||0),u=Math.floor(1e3*parseFloat("0."+(i[7]||0)));return a.call(r,o,s,l,u),r}(u)}var c=new Date(i);if(!z4(c))throw new Error('Unable to convert "'.concat(i,'" into a date'));return c}(i);r=pc(t,r)||r;for(var s,o=[];r;){if(!(s=swe.exec(r))){o.push(r);break}var l=(o=o.concat(s.slice(1))).pop();if(!l)break;r=l}var u=n.getTimezoneOffset();e&&(u=U4(e,u),n=function gwe(i,r,t){var e=t?-1:1,n=i.getTimezoneOffset();return function pwe(i,r){return(i=new Date(i.getTime())).setMinutes(i.getMinutes()+r),i}(i,e*(U4(r,n)-n))}(n,e,!0));var c="";return o.forEach(function(d){var h=function vwe(i){if(VR[i])return VR[i];var r;switch(i){case"G":case"GG":case"GGG":r=Ti(pn.Eras,Dn.Abbreviated);break;case"GGGG":r=Ti(pn.Eras,Dn.Wide);break;case"GGGGG":r=Ti(pn.Eras,Dn.Narrow);break;case"y":r=Mr($t.FullYear,1,0,!1,!0);break;case"yy":r=Mr($t.FullYear,2,0,!0,!0);break;case"yyy":r=Mr($t.FullYear,3,0,!1,!0);break;case"yyyy":r=Mr($t.FullYear,4,0,!1,!0);break;case"Y":r=yw(1);break;case"YY":r=yw(2,!0);break;case"YYY":r=yw(3);break;case"YYYY":r=yw(4);break;case"M":case"L":r=Mr($t.Month,1,1);break;case"MM":case"LL":r=Mr($t.Month,2,1);break;case"MMM":r=Ti(pn.Months,Dn.Abbreviated);break;case"MMMM":r=Ti(pn.Months,Dn.Wide);break;case"MMMMM":r=Ti(pn.Months,Dn.Narrow);break;case"LLL":r=Ti(pn.Months,Dn.Abbreviated,yr.Standalone);break;case"LLLL":r=Ti(pn.Months,Dn.Wide,yr.Standalone);break;case"LLLLL":r=Ti(pn.Months,Dn.Narrow,yr.Standalone);break;case"w":r=GR(1);break;case"ww":r=GR(2);break;case"W":r=GR(1,!0);break;case"d":r=Mr($t.Date,1);break;case"dd":r=Mr($t.Date,2);break;case"c":case"cc":r=Mr($t.Day,1);break;case"ccc":r=Ti(pn.Days,Dn.Abbreviated,yr.Standalone);break;case"cccc":r=Ti(pn.Days,Dn.Wide,yr.Standalone);break;case"ccccc":r=Ti(pn.Days,Dn.Narrow,yr.Standalone);break;case"cccccc":r=Ti(pn.Days,Dn.Short,yr.Standalone);break;case"E":case"EE":case"EEE":r=Ti(pn.Days,Dn.Abbreviated);break;case"EEEE":r=Ti(pn.Days,Dn.Wide);break;case"EEEEE":r=Ti(pn.Days,Dn.Narrow);break;case"EEEEEE":r=Ti(pn.Days,Dn.Short);break;case"a":case"aa":case"aaa":r=Ti(pn.DayPeriods,Dn.Abbreviated);break;case"aaaa":r=Ti(pn.DayPeriods,Dn.Wide);break;case"aaaaa":r=Ti(pn.DayPeriods,Dn.Narrow);break;case"b":case"bb":case"bbb":r=Ti(pn.DayPeriods,Dn.Abbreviated,yr.Standalone,!0);break;case"bbbb":r=Ti(pn.DayPeriods,Dn.Wide,yr.Standalone,!0);break;case"bbbbb":r=Ti(pn.DayPeriods,Dn.Narrow,yr.Standalone,!0);break;case"B":case"BB":case"BBB":r=Ti(pn.DayPeriods,Dn.Abbreviated,yr.Format,!0);break;case"BBBB":r=Ti(pn.DayPeriods,Dn.Wide,yr.Format,!0);break;case"BBBBB":r=Ti(pn.DayPeriods,Dn.Narrow,yr.Format,!0);break;case"h":r=Mr($t.Hours,1,-12);break;case"hh":r=Mr($t.Hours,2,-12);break;case"H":r=Mr($t.Hours,1);break;case"HH":r=Mr($t.Hours,2);break;case"m":r=Mr($t.Minutes,1);break;case"mm":r=Mr($t.Minutes,2);break;case"s":r=Mr($t.Seconds,1);break;case"ss":r=Mr($t.Seconds,2);break;case"S":r=Mr($t.FractionalSeconds,1);break;case"SS":r=Mr($t.FractionalSeconds,2);break;case"SSS":r=Mr($t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":r=mw(Br.Short);break;case"ZZZZZ":r=mw(Br.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=mw(Br.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":r=mw(Br.Long);break;default:return null}return VR[i]=r,r}(d);c+=h?h(n,t,u):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function pw(i,r,t){var e=new Date(0);return e.setFullYear(i,r,t),e.setHours(0,0,0),e}function pc(i,r){var t=function qSe(i){return ja(i)[st.LocaleId]}(i);if(fy[t]=fy[t]||{},fy[t][r])return fy[t][r];var e="";switch(r){case"shortDate":e=hw(i,$i.Short);break;case"mediumDate":e=hw(i,$i.Medium);break;case"longDate":e=hw(i,$i.Long);break;case"fullDate":e=hw(i,$i.Full);break;case"shortTime":e=fw(i,$i.Short);break;case"mediumTime":e=fw(i,$i.Medium);break;case"longTime":e=fw(i,$i.Long);break;case"fullTime":e=fw(i,$i.Full);break;case"short":var n=pc(i,"shortTime"),a=pc(i,"shortDate");e=gw(vw(i,$i.Short),[n,a]);break;case"medium":var o=pc(i,"mediumTime"),s=pc(i,"mediumDate");e=gw(vw(i,$i.Medium),[o,s]);break;case"long":var l=pc(i,"longTime"),u=pc(i,"longDate");e=gw(vw(i,$i.Long),[l,u]);break;case"full":var c=pc(i,"fullTime"),d=pc(i,"fullDate");e=gw(vw(i,$i.Full),[c,d])}return e&&(fy[t][r]=e),e}function gw(i,r){return r&&(i=i.replace(/\{([^}]+)}/g,function(t,e){return null!=r&&e in r?r[e]:t})),i}function sl(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",e=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,a="";(i<0||n&&i<=0)&&(n?i=1-i:(i=-i,a=t));for(var o=String(i);o.length2&&void 0!==arguments[2]?arguments[2]:0,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s=cwe(i,a);if((t>0||s>-t)&&(s+=t),i===$t.Hours)0===s&&-12===t&&(s=12);else if(i===$t.FractionalSeconds)return uwe(s,r);var l=As(o,Kt.MinusSign);return sl(s,r,l,e,n)}}function cwe(i,r){switch(i){case $t.FullYear:return r.getFullYear();case $t.Month:return r.getMonth();case $t.Date:return r.getDate();case $t.Hours:return r.getHours();case $t.Minutes:return r.getMinutes();case $t.Seconds:return r.getSeconds();case $t.FractionalSeconds:return r.getMilliseconds();case $t.Day:return r.getDay();default:throw new Error('Unknown DateType value "'.concat(i,'".'))}}function Ti(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yr.Format,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(n,a){return dwe(n,a,i,r,t,e)}}function dwe(i,r,t,e,n,a){switch(t){case pn.Months:return function YSe(i,r,t){var e=ja(i),a=xs([e[st.MonthsFormat],e[st.MonthsStandalone]],r);return xs(a,t)}(r,n,e)[i.getMonth()];case pn.Days:return function ZSe(i,r,t){var e=ja(i),a=xs([e[st.DaysFormat],e[st.DaysStandalone]],r);return xs(a,t)}(r,n,e)[i.getDay()];case pn.DayPeriods:var o=i.getHours(),s=i.getMinutes();if(a){var l=function twe(i){var r=ja(i);return G4(r),(r[st.ExtraData][2]||[]).map(function(e){return"string"==typeof e?BR(e):[BR(e[0]),BR(e[1])]})}(r),u=function nwe(i,r,t){var e=ja(i);G4(e);var a=xs([e[st.ExtraData][0],e[st.ExtraData][1]],r)||[];return xs(a,t)||[]}(r,n,e),c=l.findIndex(function(h){if(Array.isArray(h)){var f=Bt(h,2),g=f[0],_=f[1],C=o>=g.hours&&s>=g.minutes,w=o<_.hours||o===_.hours&&s<_.minutes;if(g.hours<_.hours){if(C&&w)return!0}else if(C||w)return!0}else if(h.hours===o&&h.minutes===s)return!0;return!1});if(-1!==c)return u[c]}return function XSe(i,r,t){var e=ja(i),a=xs([e[st.DayPeriodsFormat],e[st.DayPeriodsStandalone]],r);return xs(a,t)}(r,n,e)[o<12?0:1];case pn.Eras:return function QSe(i,r){return xs(ja(i)[st.Eras],r)}(r,e)[i.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(t))}}function mw(i){return function(r,t,e){var n=-1*e,a=As(t,Kt.MinusSign),o=n>0?Math.floor(n/60):Math.ceil(n/60);switch(i){case Br.Short:return(n>=0?"+":"")+sl(o,2,a)+sl(Math.abs(n%60),2,a);case Br.ShortGMT:return"GMT"+(n>=0?"+":"")+sl(o,1,a);case Br.Long:return"GMT"+(n>=0?"+":"")+sl(o,2,a)+":"+sl(Math.abs(n%60),2,a);case Br.Extended:return 0===e?"Z":(n>=0?"+":"")+sl(o,2,a)+":"+sl(Math.abs(n%60),2,a);default:throw new Error('Unknown zone width "'.concat(i,'"'))}}}function fwe(i){var r=pw(i,0,1).getDay();return pw(i,0,1+(r<=4?4:11)-r)}function V4(i){return pw(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))}function GR(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t,e){var n;if(r){var a=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();n=1+Math.floor((o+a)/7)}else{var s=V4(t),l=fwe(s.getFullYear()),u=s.getTime()-l.getTime();n=1+Math.round(u/6048e5)}return sl(n,i,As(e,Kt.MinusSign))}}function yw(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t,e){return sl(V4(t).getFullYear(),i,As(e,Kt.MinusSign),r)}}var VR={};function U4(i,r){i=i.replace(/:/g,"");var t=Date.parse("Jan 01, 1970 00:00:00 "+i)/6e4;return isNaN(t)?r:t}function z4(i){return i instanceof Date&&!isNaN(i.valueOf())}var ywe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,vy="0";function Ewe(i){if(0===i.digits[0])return i;var r=i.digits.length-i.integerLen;return i.exponent?i.exponent+=2:(0===r?i.digits.push(0,0):1===r&&i.digits.push(0),i.integerLen+=2),i}function Twe(i){var e,n,a,o,s,r=Math.abs(i)+"",t=0;for((n=r.indexOf("."))>-1&&(r=r.replace(".","")),(a=r.search(/e/i))>0?(n<0&&(n=a),n+=+r.slice(a+1),r=r.substring(0,a)):n<0&&(n=r.length),a=0;r.charAt(a)===vy;a++);if(a===(s=r.length))e=[0],n=1;else{for(s--;r.charAt(s)===vy;)s--;for(n-=a,e=[],o=0;a<=s;a++,o++)e[o]=Number(r.charAt(a))}return n>22&&(e=e.splice(0,21),t=n-1,n=1),{digits:e,exponent:t,integerLen:n}}function Awe(i,r,t){if(r>t)throw new Error("The minimum number of digits after fraction (".concat(r,") is higher than the maximum (").concat(t,")."));var e=i.digits,n=e.length-i.integerLen,a=Math.min(Math.max(r,n),t),o=a+i.integerLen,s=e[o];if(o>0){e.splice(Math.max(i.integerLen,o));for(var l=o;l=5)if(o-1<0){for(var c=0;c>o;c--)e.unshift(0),i.integerLen++;e.unshift(1),i.integerLen++}else e[o-1]++;for(;n=h?w.pop():d=!1),_>=10?1:0},0);f&&(e.unshift(f),i.integerLen++)}function KR(i){var r=parseInt(i);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+i);return r}function W4(i,r){r=encodeURIComponent(r);var e,t=In(i.split(";"));try{for(t.s();!(e=t.n()).done;){var n=e.value,a=n.indexOf("="),s=Bt(-1==a?[n,""]:[n.slice(0,a),n.slice(a+1)],2),u=s[1];if(s[0].trim()===r)return decodeURIComponent(u)}}catch(c){t.e(c)}finally{t.f()}return null}var Ft=function(){var i=function(){function r(t,e,n,a){p(this,r),this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return v(r,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&($_(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var n=this._keyValueDiffer.diff(this._rawClass);n&&this._applyKeyValueChanges(n)}}},{key:"_applyKeyValueChanges",value:function(e){var n=this;e.forEachAddedItem(function(a){return n._toggleClass(a.key,a.currentValue)}),e.forEachChangedItem(function(a){return n._toggleClass(a.key,a.currentValue)}),e.forEachRemovedItem(function(a){a.previousValue&&n._toggleClass(a.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var n=this;e.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(si(a.item)));n._toggleClass(a.item,!0)}),e.forEachRemovedItem(function(a){return n._toggleClass(a.item,!1)})}},{key:"_applyClasses",value:function(e){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(a){return n._toggleClass(a,!0)}):Object.keys(e).forEach(function(a){return n._toggleClass(a,!!e[a])}))}},{key:"_removeClasses",value:function(e){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(a){return n._toggleClass(a,!1)}):Object.keys(e).forEach(function(a){return n._toggleClass(a,!1)}))}},{key:"_toggleClass",value:function(e,n){var a=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(o){n?a._renderer.addClass(a._ngEl.nativeElement,o):a._renderer.removeClass(a._ngEl.nativeElement,o)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(hy),m(Pp),m(_e),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),i}(),Rwe=function(){function i(r,t,e,n){p(this,i),this.$implicit=r,this.ngForOf=t,this.index=e,this.count=n}return v(i,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),i}(),gn=function(){var i=function(){function r(t,e,n){p(this,r),this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return v(r,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var n=this,a=this._viewContainer;e.forEachOperation(function(c,d,h){if(null==c.previousIndex)a.createEmbeddedView(n._template,new Rwe(c.item,n._ngForOf,-1,-1),null===h?void 0:h);else if(null==h)a.remove(null===d?void 0:d);else if(null!==d){var f=a.get(d);a.move(f,h),$4(f,c)}});for(var o=0,s=a.length;o1&&void 0!==arguments[1]?arguments[1]:"mediumDate",a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return lwe(e,n,o||this.locale,null!==(s=null!=a?a:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(l){throw ll()}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ko,16),m(Hwe,24))},i.\u0275pipe=fa({name:"date",type:i,pure:!0}),i}(),Y4=function(){var i=function(){function r(t){p(this,r),this._locale=t}return v(r,[{key:"transform",value:function(e,n,a){if(!function qR(i){return!(null==i||""===i||i!=i)}(e))return null;a=a||this._locale;try{return function wwe(i,r,t){return function zR(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",l=!1;if(isFinite(i)){var u=Twe(i);o&&(u=Ewe(u));var c=r.minInt,d=r.minFrac,h=r.maxFrac;if(a){var f=a.match(ywe);if(null===f)throw new Error("".concat(a," is not a valid digit info"));var g=f[1],_=f[3],C=f[5];null!=g&&(c=KR(g)),null!=_&&(d=KR(_)),null!=C?h=KR(C):null!=_&&d>h&&(h=d)}Awe(u,d,h);var w=u.digits,E=u.integerLen,M=u.exponent,R=[];for(l=w.every(function(V){return!V});E0?R=w.splice(E,w.length):(R=w,w=[0]);var N=[];for(w.length>=r.lgSize&&N.unshift(w.splice(-r.lgSize,w.length).join(""));w.length>r.gSize;)N.unshift(w.splice(-r.gSize,w.length).join(""));w.length&&N.unshift(w.join("")),s=N.join(As(t,e)),R.length&&(s+=As(t,n)+R.join("")),M&&(s+=As(t,Kt.Exponential)+"+"+M)}else s=As(t,Kt.Infinity);return i<0&&!l?r.negPre+s+r.negSuf:r.posPre+s+r.posSuf}(i,function HR(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},e=i.split(";"),n=e[0],a=e[1],o=-1!==n.indexOf(".")?n.split("."):[n.substring(0,n.lastIndexOf(vy)+1),n.substring(n.lastIndexOf(vy)+1)],s=o[0],l=o[1]||"";t.posPre=s.substr(0,s.indexOf("#"));for(var u=0;u1&&void 0!==arguments[1])||arguments[1],o=t.findTestabilityInTree(n,a);if(null==o)throw new Error("Could not find testability for element.");return o},hi.getAllAngularTestabilities=function(){return t.getAllTestabilities()},hi.getAllAngularRootElements=function(){return t.getAllRootElements()},hi.frameworkStabilizers||(hi.frameworkStabilizers=[]),hi.frameworkStabilizers.push(function(a){var o=hi.getAllAngularTestabilities(),s=o.length,l=!1,u=function(d){l=l||d,0==--s&&a(l)};o.forEach(function(c){c.whenStable(u)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var a=t.getTestability(e);return null!=a?a:n?tu().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){!function vSe(i){ER=i}(new i)}}]),i}(),hDe=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"build",value:function(){return new XMLHttpRequest}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Sw=new Dt("EventManagerPlugins"),ww=function(){var i=function(){function r(t,e){var n=this;p(this,r),this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(a){return a.manager=n}),this._plugins=t.slice().reverse()}return v(r,[{key:"addEventListener",value:function(e,n,a){return this._findPluginFor(n).addEventListener(e,n,a)}},{key:"addGlobalEventListener",value:function(e,n,a){return this._findPluginFor(n).addGlobalEventListener(e,n,a)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var n=this._eventNameToPlugin.get(e);if(n)return n;for(var a=this._plugins,o=0;o-1&&(o.splice(h,1),u+=d+".")}),u+=l,0!=o.length||0===l.length)return null;var c={};return c.domEventName=s,c.fullKey=u,c}},{key:"getEventFullKey",value:function(a){var o="",s=function DDe(i){var r=i.key;if(null==r){if(null==(r=i.keyIdentifier))return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===i.location&&cK.hasOwnProperty(r)&&(r=cK[r]))}return bDe[r]||r}(a);return" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),uK.forEach(function(l){l!=s&&(0,SDe[l])(a)&&(o+=l+".")}),o+=s}},{key:"eventCallback",value:function(a,o,s){return function(l){e.getEventFullKey(l)===a&&s.runGuarded(function(){return o(l)})}}},{key:"_normalizeKey",value:function(a){return"esc"===a?"escape":a}}]),e}(nK);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),xDe=[{provide:cy,useValue:Q4},{provide:c4,useValue:function EDe(){oDe.makeCurrent(),dDe.init()},multi:!0},{provide:pa,useFactory:function ADe(){return function ege(i){bx=i}(document),document},deps:[]}],MDe=_4(LSe,"browser",xDe),RDe=[{provide:PM,useValue:"root"},{provide:U_,useFactory:function TDe(){return new U_},deps:[]},{provide:Sw,useClass:kDe,multi:!0,deps:[pa,be,cy]},{provide:Sw,useClass:wDe,multi:!0,deps:[pa]},{provide:Ew,useClass:Ew,deps:[ww,gy,uy]},{provide:ny,useExisting:Ew},{provide:iK,useExisting:gy},{provide:gy,useClass:gy,deps:[pa]},{provide:DR,useClass:DR,deps:[be]},{provide:ww,useClass:ww,deps:[Sw,be]},{provide:ZR,useClass:hDe,deps:[]}],dK=function(){var i=function(){function r(t){if(p(this,r),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return v(r,null,[{key:"withServerTransition",value:function(e){return{ngModule:r,providers:[{provide:uy,useValue:e.appId},{provide:tK,useExisting:uy},cDe]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(i,12))},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:RDe,imports:[bt,PSe]}),i}();"undefined"!=typeof window&&window;var vK=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:function(t){return t?new(t||i):oe(pK)},providedIn:"root"}),i}(),pK=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this))._doc=n,a}return v(e,[{key:"sanitize",value:function(a,o){if(null==o)return null;switch(a){case ki.NONE:return o;case ki.HTML:return Wl(o,"HTML")?Uo(o):y3(this._doc,String(o)).toString();case ki.STYLE:return Wl(o,"Style")?Uo(o):o;case ki.SCRIPT:if(Wl(o,"Script"))return Uo(o);throw new Error("unsafe value used in a script context");case ki.URL:return d3(o),Wl(o,"URL")?Uo(o):P_(String(o));case ki.RESOURCE_URL:if(Wl(o,"ResourceURL"))return Uo(o);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(a," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(a){return function gme(i){return new dme(i)}(a)}},{key:"bypassSecurityTrustStyle",value:function(a){return function mme(i){return new hme(i)}(a)}},{key:"bypassSecurityTrustScript",value:function(a){return function _me(i){return new fme(i)}(a)}},{key:"bypassSecurityTrustUrl",value:function(a){return function yme(i){return new vme(i)}(a)}},{key:"bypassSecurityTrustResourceUrl",value:function(a){return function kme(i){return new pme(i)}(a)}}]),e}(vK);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:function(t){var e;return e=t?new t:function GDe(i){return new pK(i.get(pa))}(oe(Jn)),e},providedIn:"root"}),i}();function lt(){for(var i=arguments.length,r=new Array(i),t=0;t0){var a=e.slice(0,n),o=a.toLowerCase(),s=e.slice(n+1).trim();t.maybeSetNormalizedName(a,o),t.headers.has(o)?t.headers.get(o).push(s):t.headers.set(o,[s])}})}:function(){t.headers=new Map,Object.keys(r).forEach(function(e){var n=r[e],a=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(t.headers.set(a,n),t.maybeSetNormalizedName(e,a))})}:this.headers=new Map}return v(i,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(t){var e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var a=("a"===t.op?this.headers.get(e):void 0)||[];a.push.apply(a,Ae(n)),this.headers.set(e,a);break;case"d":var o=t.value;if(o){var s=this.headers.get(e);if(!s)return;0===(s=s.filter(function(l){return-1===o.indexOf(l)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),i}(),VDe=function(){function i(){p(this,i)}return v(i,[{key:"encodeKey",value:function(t){return _K(t)}},{key:"encodeValue",value:function(t){return _K(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),i}();function UDe(i,r){var t=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(function(n){var a=n.indexOf("="),s=Bt(-1==a?[r.decodeKey(n),""]:[r.decodeKey(n.slice(0,a)),r.decodeValue(n.slice(a+1))],2),l=s[0],u=s[1],c=t.get(l)||[];c.push(u),t.set(l,c)}),t}var zDe=/%(\d[a-f0-9])/gi,HDe={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function _K(i){return encodeURIComponent(i).replace(zDe,function(r,t){var e;return null!==(e=HDe[t])&&void 0!==e?e:r})}function yK(i){return"".concat(i)}var Up=function(){function i(){var r=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(p(this,i),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new VDe,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=UDe(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];r.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return v(i,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var a=t[n];Array.isArray(a)?a.forEach(function(o){e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:a,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(a){return n+"="+t.encoder.encodeValue(a)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(yK(e.value)),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var a=t.map.get(e.param)||[],o=a.indexOf(yK(e.value));-1!==o&&a.splice(o,1),a.length>0?t.map.set(e.param,a):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),i}(),KDe=function(){function i(){p(this,i),this.map=new Map}return v(i,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"has",value:function(t){return this.map.has(t)}},{key:"keys",value:function(){return this.map.keys()}}]),i}();function kK(i){return"undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer}function CK(i){return"undefined"!=typeof Blob&&i instanceof Blob}function bK(i){return"undefined"!=typeof FormData&&i instanceof FormData}var tO=function(){function i(r,t,e,n){var a;if(p(this,i),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function jDe(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==e?e:null,a=n):a=e,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new Vp),this.context||(this.context=new KDe),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,a=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,l=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,u=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,d=t.params||this.params,h=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce(function(f,g){return f.set(g,t.setHeaders[g])},c)),t.setParams&&(d=Object.keys(t.setParams).reduce(function(f,g){return f.set(g,t.setParams[g])},d)),new i(n,a,s,{params:d,headers:c,context:h,reportProgress:u,responseType:o,withCredentials:l})}}]),i}(),Rr=function(){return(Rr=Rr||{})[Rr.Sent=0]="Sent",Rr[Rr.UploadProgress=1]="UploadProgress",Rr[Rr.ResponseHeader=2]="ResponseHeader",Rr[Rr.DownloadProgress=3]="DownloadProgress",Rr[Rr.Response=4]="Response",Rr[Rr.User=5]="User",Rr}(),nO=v(function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";p(this,i),this.headers=r.headers||new Vp,this.status=void 0!==r.status?r.status:t,this.statusText=r.statusText||e,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}),$De=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).type=Rr.ResponseHeader,e}return v(t,[{key:"clone",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}]),t}(nO),SK=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).type=Rr.Response,e.body=void 0!==n.body?n.body:null,e}return v(t,[{key:"clone",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}]),t}(nO),wK=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),n.error=e.error||null,n}return v(t)}(nO);function iO(i,r){return{body:r,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}var rO=function(){var i=function(){function r(t){p(this,r),this.handler=t}return v(r,[{key:"request",value:function(e,n){var s,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof tO)s=e;else{var l=void 0;l=o.headers instanceof Vp?o.headers:new Vp(o.headers);var u=void 0;o.params&&(u=o.params instanceof Up?o.params:new Up({fromObject:o.params})),s=new tO(e,n,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var c=lt(s).pipe(nu(function(h){return a.handler.handle(h)}));if(e instanceof tO||"events"===o.observe)return c;var d=c.pipe(Ue(function(h){return h instanceof SK}));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return d.pipe(We(function(h){if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return h.body}));case"blob":return d.pipe(We(function(h){if(null!==h.body&&!(h.body instanceof Blob))throw new Error("Response is not a Blob.");return h.body}));case"text":return d.pipe(We(function(h){if(null!==h.body&&"string"!=typeof h.body)throw new Error("Response is not a string.");return h.body}));default:return d.pipe(We(function(h){return h.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,n)}},{key:"get",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,n)}},{key:"head",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,n)}},{key:"jsonp",value:function(e,n){return this.request("JSONP",e,{params:(new Up).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,n)}},{key:"patch",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,iO(a,n))}},{key:"post",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,iO(a,n))}},{key:"put",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,iO(a,n))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(gK))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),DK=function(){function i(r,t){p(this,i),this.next=r,this.interceptor=t}return v(i,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),i}(),EK=new Dt("HTTP_INTERCEPTORS"),qDe=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"intercept",value:function(e,n){return n.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),XDe=/^\)\]\}',?\n/,TK=function(){var i=function(){function r(t){p(this,r),this.xhrFactory=t}return v(r,[{key:"handle",value:function(e){var n=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new An(function(a){var o=n.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach(function(w,E){return o.setRequestHeader(w,E.join(","))}),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var s=e.detectContentTypeHeader();null!==s&&o.setRequestHeader("Content-Type",s)}if(e.responseType){var l=e.responseType.toLowerCase();o.responseType="json"!==l?l:"text"}var u=e.serializeBody(),c=null,d=function(){if(null!==c)return c;var E=o.statusText||"OK",M=new Vp(o.getAllResponseHeaders()),R=function ZDe(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(o)||e.url;return c=new $De({headers:M,status:o.status,statusText:E,url:R})},h=function(){var E=d(),M=E.headers,R=E.status,N=E.statusText,V=E.url,U=null;204!==R&&(U=void 0===o.response?o.responseText:o.response),0===R&&(R=U?200:0);var ee=R>=200&&R<300;if("json"===e.responseType&&"string"==typeof U){var ve=U;U=U.replace(XDe,"");try{U=""!==U?JSON.parse(U):null}catch(G){U=ve,ee&&(ee=!1,U={error:G,text:U})}}ee?(a.next(new SK({body:U,headers:M,status:R,statusText:N,url:V||void 0})),a.complete()):a.error(new wK({error:U,headers:M,status:R,statusText:N,url:V||void 0}))},f=function(E){var M=d(),N=new wK({error:E,status:o.status||0,statusText:o.statusText||"Unknown Error",url:M.url||void 0});a.error(N)},g=!1,_=function(E){g||(a.next(d()),g=!0);var M={type:Rr.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),"text"===e.responseType&&!!o.responseText&&(M.partialText=o.responseText),a.next(M)},C=function(E){var M={type:Rr.UploadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),a.next(M)};return o.addEventListener("load",h),o.addEventListener("error",f),o.addEventListener("timeout",f),o.addEventListener("abort",f),e.reportProgress&&(o.addEventListener("progress",_),null!==u&&o.upload&&o.upload.addEventListener("progress",C)),o.send(u),a.next({type:Rr.Sent}),function(){o.removeEventListener("error",f),o.removeEventListener("abort",f),o.removeEventListener("load",h),o.removeEventListener("timeout",f),e.reportProgress&&(o.removeEventListener("progress",_),null!==u&&o.upload&&o.upload.removeEventListener("progress",C)),o.readyState!==o.DONE&&o.abort()}})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(ZR))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),aO=new Dt("XSRF_COOKIE_NAME"),oO=new Dt("XSRF_HEADER_NAME"),AK=v(function i(){p(this,i)}),YDe=function(){var i=function(){function r(t,e,n){p(this,r),this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return v(r,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=W4(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(pa),oe(cy),oe(aO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),sO=function(){var i=function(){function r(t,e){p(this,r),this.tokenService=t,this.headerName=e}return v(r,[{key:"intercept",value:function(e,n){var a=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||a.startsWith("http://")||a.startsWith("https://"))return n.handle(e);var o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),n.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(AK),oe(oO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),QDe=function(){var i=function(){function r(t,e){p(this,r),this.backend=t,this.injector=e,this.chain=null}return v(r,[{key:"handle",value:function(e){if(null===this.chain){var n=this.injector.get(EK,[]);this.chain=n.reduceRight(function(a,o){return new DK(a,o)},this.backend)}return this.chain.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(mK),oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),JDe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"disable",value:function(){return{ngModule:r,providers:[{provide:sO,useClass:qDe}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.cookieName?{provide:aO,useValue:e.cookieName}:[],e.headerName?{provide:oO,useValue:e.headerName}:[]]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[sO,{provide:EK,useExisting:sO,multi:!0},{provide:AK,useClass:YDe},{provide:aO,useValue:"XSRF-TOKEN"},{provide:oO,useValue:"X-XSRF-TOKEN"}]}),i}(),xK=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[rO,{provide:gK,useClass:QDe},TK,{provide:mK,useExisting:TK}],imports:[[JDe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),i}(),zp=v(function i(){p(this,i)}),e0e=v(function i(){p(this,i)}),ul="*";function ef(i,r){return{type:7,name:i,definitions:r,options:{}}}function Ai(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:r,timings:i}}function Tw(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:i,options:r}}function Lt(i){return{type:6,styles:i,offset:null}}function Cd(i,r,t){return{type:0,name:i,styles:r,options:t}}function iu(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:i,animation:r,options:t}}function MK(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:i,animation:r,options:t}}function RK(i,r){return{type:12,timings:i,animation:r}}function OK(i){Promise.resolve(null).then(i)}var my=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,i),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+t}return v(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;OK(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(n){return n()}),e.length=0}}]),i}(),IK=function(){function i(r){var t=this;p(this,i),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;var e=0,n=0,a=0,o=this.players.length;0==o?OK(function(){return t._onFinish()}):this.players.forEach(function(s){s.onDone(function(){++e==o&&t._onFinish()}),s.onDestroy(function(){++n==o&&t._onDestroy()}),s.onStart(function(){++a==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(s,l){return Math.max(s,l.totalTime)},0)}return v(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(n){var a=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(a)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(e,n){return null===e||n.totalTime>e.totalTime?n:e},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(n){return n()}),e.length=0}}]),i}(),Mn=!1;function NK(i){return new gt(3e3,Mn)}function C0e(i){return new gt(3502,Mn)}function S0e(){return new gt(3300,Mn)}function w0e(i){return new gt(3504,Mn)}function O0e(){return"undefined"!=typeof window&&void 0!==window.document}function uO(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function bd(i){switch(i.length){case 0:return new my;case 1:return i[0];default:return new IK(i)}}function FK(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,u=null;if(e.forEach(function(c){var d=c.offset,h=d==l,f=h&&u||{};Object.keys(c).forEach(function(g){var _=g,C=c[g];if("offset"!==g)switch(_=r.normalizePropertyName(_,o),C){case"!":C=n[g];break;case ul:C=a[g];break;default:C=r.normalizeStyleValue(g,_,C,o)}f[_]=C}),h||s.push(f),u=f,l=d}),o.length)throw C0e();return s}function cO(i,r,t,e){switch(r){case"start":i.onStart(function(){return e(t&&dO(t,"start",i))});break;case"done":i.onDone(function(){return e(t&&dO(t,"done",i))});break;case"destroy":i.onDestroy(function(){return e(t&&dO(t,"destroy",i))})}}function dO(i,r,t){var e=t.totalTime,a=hO(i.element,i.triggerName,i.fromState,i.toState,r||i.phaseName,null==e?i.totalTime:e,!!t.disabled),o=i._data;return null!=o&&(a._data=o),a}function hO(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:i,triggerName:r,fromState:t,toState:e,phaseName:n,totalTime:a,disabled:!!o}}function jo(i,r,t){var e;return i instanceof Map?(e=i.get(r))||i.set(r,e=t):(e=i[r])||(e=i[r]=t),e}function LK(i){var r=i.indexOf(":");return[i.substring(1,r),i.substr(r+1)]}var fO=function(r,t){return!1},PK=function(r,t,e){return[]},BK=null;function vO(i){var r=i.parentNode||i.host;return r===BK?null:r}(uO()||"undefined"!=typeof Element)&&(O0e()?(BK=function(){return document.documentElement}(),fO=function(r,t){for(;t;){if(t===r)return!0;t=vO(t)}return!1}):fO=function(r,t){return r.contains(t)},PK=function(r,t,e){if(e)return Array.from(r.querySelectorAll(t));var n=r.querySelector(t);return n?[n]:[]});var tf=null,GK=!1;function VK(i){tf||(tf=function F0e(){return"undefined"!=typeof document?document.body:null}()||{},GK=!!tf.style&&"WebkitAppearance"in tf.style);var r=!0;return tf.style&&!function N0e(i){return"ebkit"==i.substring(1,6)}(i)&&!(r=i in tf.style)&&GK&&(r="Webkit"+i.charAt(0).toUpperCase()+i.substr(1)in tf.style),r}var UK=fO,zK=PK,HK=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"validateStyleProperty",value:function(e){return VK(e)}},{key:"matchesElement",value:function(e,n){return!1}},{key:"containsElement",value:function(e,n){return UK(e,n)}},{key:"getParentElement",value:function(e){return vO(e)}},{key:"query",value:function(e,n,a){return zK(e,n,a)}},{key:"computeStyle",value:function(e,n,a){return a||""}},{key:"animate",value:function(e,n,a,o,s){return new my(a,o)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),pO=function(){var i=v(function r(){p(this,r)});return i.NOOP=new HK,i}(),jK="ng-enter",gO="ng-leave",xw="ng-trigger",Mw=".ng-trigger",WK="ng-animating",mO=".ng-animating";function nf(i){if("number"==typeof i)return i;var r=i.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:_O(parseFloat(r[1]),r[2])}function _O(i,r){return"s"===r?1e3*i:i}function Rw(i,r,t){return i.hasOwnProperty("duration")?i:function B0e(i,r,t){var n,a=0,o="";if("string"==typeof i){var s=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return r.push(NK()),{duration:0,delay:0,easing:""};n=_O(parseFloat(s[1]),s[2]);var l=s[3];null!=l&&(a=_O(parseFloat(l),s[4]));var u=s[5];u&&(o=u)}else n=i;if(!t){var c=!1,d=r.length;n<0&&(r.push(function t0e(){return new gt(3100,Mn)}()),c=!0),a<0&&(r.push(function n0e(){return new gt(3101,Mn)}()),c=!0),c&&r.splice(d,0,NK())}return{duration:n,delay:a,easing:o}}(i,r,t)}function Hp(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(i).forEach(function(t){r[t]=i[t]}),r}function Sd(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r)for(var e in i)t[e]=i[e];else Hp(i,t);return t}function $K(i,r,t){return t?r+":"+t+";":""}function qK(i){for(var r="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(i,t);if("function"==typeof e)return void r.push(e);i=e}var n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return t.push(function _0e(i){return new gt(3015,Mn)}()),r;var a=n[1],o=n[2],s=n[3];r.push(YK(a,s)),"<"==o[0]&&!("*"==a&&"*"==s)&&r.push(YK(s,a))}(e,t,r)}):t.push(i),t}var Pw=new Set(["true","1"]),Bw=new Set(["false","0"]);function YK(i,r){var t=Pw.has(i)||Bw.has(i),e=Pw.has(r)||Bw.has(r);return function(n,a){var o="*"==i||i==n,s="*"==r||r==a;return!o&&t&&"boolean"==typeof n&&(o=n?Pw.has(i):Bw.has(i)),!s&&e&&"boolean"==typeof a&&(s=a?Pw.has(r):Bw.has(r)),o&&s}}var X0e=new RegExp("s*".concat(":self","s*,?"),"g");function JK(i,r,t,e){return new Z0e(i).build(r,t,e)}var Z0e=function(){function i(r){p(this,i),this._driver=r}return v(i,[{key:"build",value:function(t,e,n){var a=new J0e(e);this._resetContextStyleTimingState(a);var o=Wo(this,_y(t),a);return a.unsupportedCSSPropertiesFound.size&&Ae(a.unsupportedCSSPropertiesFound.keys()),o}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,e){var n=this,a=e.queryCount=0,o=e.depCount=0,s=[],l=[];return"@"==t.name.charAt(0)&&e.errors.push(function s0e(){return new gt(3006,Mn)}()),t.definitions.forEach(function(u){if(n._resetContextStyleTimingState(e),0==u.type){var c=u,d=c.name;d.toString().split(/\s*,\s*/).forEach(function(f){c.name=f,s.push(n.visitState(c,e))}),c.name=d}else if(1==u.type){var h=n.visitTransition(u,e);a+=h.queryCount,o+=h.depCount,l.push(h)}else e.errors.push(function l0e(){return new gt(3007,Mn)}())}),{type:7,name:t.name,states:s,transitions:l,queryCount:a,depCount:o,options:null}}},{key:"visitState",value:function(t,e){var n=this.visitStyle(t.styles,e),a=t.options&&t.options.params||null;if(n.containsDynamicStyles){var o=new Set,s=a||{};n.styles.forEach(function(u){if(Gw(u)){var c=u;Object.keys(c).forEach(function(d){XK(c[d]).forEach(function(h){s.hasOwnProperty(h)||o.add(h)})})}}),o.size&&(Iw(o.values()),e.errors.push(function u0e(i,r){return new gt(3008,Mn)}()))}return{type:0,name:t.name,style:n,options:a?{params:a}:null}}},{key:"visitTransition",value:function(t,e){e.queryCount=0,e.depCount=0;var n=Wo(this,_y(t.animation),e);return{type:1,matchers:W0e(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:af(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(a){return Wo(n,a,e)}),options:af(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,a=e.currentTime,o=0,s=t.steps.map(function(l){e.currentTime=a;var u=Wo(n,l,e);return o=Math.max(o,e.currentTime),u});return e.currentTime=o,{type:3,steps:s,options:af(t.options)}}},{key:"visitAnimate",value:function(t,e){var n=function tEe(i,r){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return CO(Rw(i,r).duration,0,"");var e=i,n=e.split(/\s+/).some(function(s){return"{"==s.charAt(0)&&"{"==s.charAt(1)});if(n){var a=CO(0,0,"");return a.dynamic=!0,a.strValue=e,a}var o=Rw(e,r);return CO(o.duration,o.delay,o.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var a,o=t.styles?t.styles:Lt({});if(5==o.type)a=this.visitKeyframes(o,e);else{var s=t.styles,l=!1;if(!s){l=!0;var u={};n.easing&&(u.easing=n.easing),s=Lt(u)}e.currentTime+=n.duration+n.delay;var c=this.visitStyle(s,e);c.isEmptyStep=l,a=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:a,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(s){"string"==typeof s?s==ul?n.push(s):e.errors.push(function c0e(i){return new gt(3002,Mn)}()):n.push(s)}):n.push(t.styles);var a=!1,o=null;return n.forEach(function(s){if(Gw(s)){var l=s,u=l.easing;if(u&&(o=u,delete l.easing),!a)for(var c in l)if(l[c].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:a,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,a=e.currentAnimateTimings,o=e.currentTime,s=e.currentTime;a&&s>0&&(s-=a.duration+a.delay),t.styles.forEach(function(l){"string"!=typeof l&&Object.keys(l).forEach(function(u){if(!n._driver.validateStyleProperty(u))return delete l[u],void e.unsupportedCSSPropertiesFound.add(u);var c=e.collectedStyles[e.currentQuerySelector],d=c[u],h=!0;d&&(s!=o&&s>=d.startTime&&o<=d.endTime&&(e.errors.push(function d0e(i,r,t,e,n){return new gt(3010,Mn)}()),h=!1),s=d.startTime),h&&(c[u]={startTime:s,endTime:o}),e.options&&function G0e(i,r,t){var e=r.params||{},n=XK(i);n.length&&n.forEach(function(a){e.hasOwnProperty(a)||t.push(function i0e(i){return new gt(3001,Mn)}())})}(l[u],e.options,e.errors)})})}},{key:"visitKeyframes",value:function(t,e){var n=this,a={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function h0e(){return new gt(3011,Mn)}()),a;var s=0,l=[],u=!1,c=!1,d=0,h=t.steps.map(function(M){var R=n._makeStyleAst(M,e),N=null!=R.offset?R.offset:function eEe(i){if("string"==typeof i)return null;var r=null;if(Array.isArray(i))i.forEach(function(e){if(Gw(e)&&e.hasOwnProperty("offset")){var n=e;r=parseFloat(n.offset),delete n.offset}});else if(Gw(i)&&i.hasOwnProperty("offset")){var t=i;r=parseFloat(t.offset),delete t.offset}return r}(R.styles),V=0;return null!=N&&(s++,V=R.offset=N),c=c||V<0||V>1,u=u||V0&&s0?R==_?1:g*R:l[R],V=N*E;e.currentTime=C+w.delay+V,w.duration=V,n._validateStyleAst(M,e),M.offset=N,a.styles.push(M)}),a}},{key:"visitReference",value:function(t,e){return{type:8,animation:Wo(this,_y(t.animation),e),options:af(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:af(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:af(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,a=t.options||{};e.queryCount++,e.currentQuery=t;var o=function Y0e(i){var r=!!i.split(/\s*,\s*/).find(function(t){return":self"==t});return r&&(i=i.replace(X0e,"")),i=i.replace(/@\*/g,Mw).replace(/@\w+/g,function(t){return Mw+"-"+t.substr(1)}).replace(/:animating/g,mO),[i,r]}(t.selector),s=Bt(o,2),l=s[0],u=s[1];e.currentQuerySelector=n.length?n+" "+l:l,jo(e.collectedStyles,e.currentQuerySelector,{});var c=Wo(this,_y(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:u,animation:c,originalSelector:t.selector,options:af(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push(function g0e(){return new gt(3013,Mn)}());var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Rw(t.timings,e.errors,!0);return{type:12,animation:Wo(this,_y(t.animation),e),timings:n,options:null}}}]),i}(),J0e=v(function i(r){p(this,i),this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set});function Gw(i){return!Array.isArray(i)&&"object"==typeof i}function af(i){return i?(i=Hp(i)).params&&(i.params=function Q0e(i){return i?Hp(i):null}(i.params)):i={},i}function CO(i,r,t){return{duration:i,delay:r,easing:t}}function bO(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:i,keyframes:r,preStyleProps:t,postStyleProps:e,duration:n,delay:a,totalTime:n+a,easing:o,subTimeline:s}}var SO=function(){function i(){p(this,i),this._map=new Map}return v(i,[{key:"get",value:function(t){return this._map.get(t)||[]}},{key:"append",value:function(t,e){var n,a=this._map.get(t);a||this._map.set(t,a=[]),(n=a).push.apply(n,Ae(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),i}(),rEe=new RegExp(":enter","g"),oEe=new RegExp(":leave","g");function t6(i,r,t,e,n){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new sEe).buildKeyframes(i,r,t,e,n,a,o,s,l,u)}var sEe=function(){function i(){p(this,i)}return v(i,[{key:"buildKeyframes",value:function(t,e,n,a,o,s,l,u,c){var d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new SO;var h=new lEe(t,e,c,a,o,d,[]);h.options=u,h.currentTimeline.setStyles([s],null,h.errors,u),Wo(this,n,h);var f=h.timelines.filter(function(w){return w.containsAnimation()});if(Object.keys(l).length){for(var g,_=f.length-1;_>=0;_--){var C=f[_];if(C.element===e){g=C;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([l],null,h.errors,u)}return f.length?f.map(function(w){return w.buildKeyframes()}):[bO(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.get(e.element);if(n){var a=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,a,a.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var o=e.currentTimeline.currentTime,s=null!=n.duration?nf(n.duration):null,l=null!=n.delay?nf(n.delay):null;return 0!==s&&t.forEach(function(u){var c=e.appendInstructionToTimeline(u,s,l);o=Math.max(o,c.duration+c.delay)}),o}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Wo(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,a=e.subContextCount,o=e,s=t.options;if(s&&(s.params||s.delay)&&((o=e.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Vw);var l=nf(s.delay);o.delayNextStep(l)}t.steps.length&&(t.steps.forEach(function(u){return Wo(n,u,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,a=[],o=e.currentTimeline.currentTime,s=t.options&&t.options.delay?nf(t.options.delay):0;t.steps.forEach(function(l){var u=e.createSubContext(t.options);s&&u.delayNextStep(s),Wo(n,l,u),o=Math.max(o,u.currentTimeline.currentTime),a.push(u.currentTimeline)}),a.forEach(function(l){return e.currentTimeline.mergeTimelineCollectedStyles(l)}),e.transformIntoNewTimeline(o),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return Rw(e.params?Ow(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),a=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),a.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,a=e.currentAnimateTimings;!a&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=a&&a.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,a=e.currentTimeline.duration,o=n.duration,l=e.createSubContext().currentTimeline;l.easing=n.easing,t.styles.forEach(function(u){l.forwardTime((u.offset||0)*o),l.setStyles(u.styles,u.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(a+o),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,a=e.currentTimeline.currentTime,o=t.options||{},s=o.delay?nf(o.delay):0;s&&(6===e.previousNode.type||0==a&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Vw);var l=a,u=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=u.length;var c=null;u.forEach(function(d,h){e.currentQueryIndex=h;var f=e.createSubContext(t.options,d);s&&f.delayNextStep(s),d===e.element&&(c=f.currentTimeline),Wo(n,t.animation,f),f.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,f.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(l),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,a=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),l=s*(e.currentQueryTotal-1),u=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=l-u;break;case"full":u=n.currentStaggerTime}var d=e.currentTimeline;u&&d.delayNextStep(u);var h=d.currentTime;Wo(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=a.currentTime-h+(a.startTime-n.currentTimeline.startTime)}}]),i}(),Vw={},lEe=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this._driver=r,this.element=t,this.subInstructions=e,this._enterClassName=n,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new n6(this._driver,t,0),s.push(this.currentTimeline)}return v(i,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var n=this;if(t){var a=t,o=this.options;null!=a.duration&&(o.duration=nf(a.duration)),null!=a.delay&&(o.delay=nf(a.delay));var s=a.params;if(s){var l=o.params;l||(l=this.options.params={}),Object.keys(s).forEach(function(u){(!e||!l.hasOwnProperty(u))&&(l[u]=Ow(s[u],l,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(a){n[a]=e[a]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=e||this.element,o=new i(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Vw,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var a={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new uEe(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,a,t.stretchStartingKeyframe);return this.timelines.push(o),a}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,a,o,s){var l=[];if(a&&l.push(this.element),t.length>0){t=(t=t.replace(rEe,"."+this._enterClassName)).replace(oEe,"."+this._leaveClassName);var c=this._driver.query(this.element,t,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),l.push.apply(l,Ae(c))}return!o&&0==l.length&&s.push(function m0e(i){return new gt(3014,Mn)}()),l}}]),i}(),n6=function(){function i(r,t,e,n){p(this,i),this._driver=r,this.element=t,this.startTime=e,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return v(i,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,e){return this.applyStylesToKeyframe(),new i(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(n){e._backFill[n]=e._globalTimelineStyles[n]||ul,e._currentKeyframe[n]=ul}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,a){var o=this;e&&(this._previousKeyframe.easing=e);var s=a&&a.params||{},l=function cEe(i,r){var e,t={};return i.forEach(function(n){"*"===n?(e=e||Object.keys(r)).forEach(function(a){t[a]=ul}):Sd(n,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(l).forEach(function(u){var c=Ow(l[u],s,n);o._pendingStyles[u]=c,o._localTimelineStyles.hasOwnProperty(u)||(o._backFill[u]=o._globalTimelineStyles.hasOwnProperty(u)?o._globalTimelineStyles[u]:ul),o._updateStyle(u,c)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(a){t._currentKeyframe[a]=e[a]}),Object.keys(this._localTimelineStyles).forEach(function(a){t._currentKeyframe.hasOwnProperty(a)||(t._currentKeyframe[a]=t._localTimelineStyles[a])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var a=e._styleSummary[n],o=t._styleSummary[n];(!a||o.time>a.time)&&e._updateStyle(n,o.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,a=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(d,h){var f=Sd(d,!0);Object.keys(f).forEach(function(g){var _=f[g];"!"==_?e.add(g):_==ul&&n.add(g)}),a||(f.offset=h/t.duration),o.push(f)});var s=e.size?Iw(e.values()):[],l=n.size?Iw(n.values()):[];if(a){var u=o[0],c=Hp(u);u.offset=0,c.offset=1,o=[u,c]}return bO(this.element,o,s,l,this.duration,this.startTime,this.easing,!1)}}]),i}(),uEe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return p(this,t),(u=r.call(this,e,n,l.delay)).keyframes=a,u.preStyleProps=o,u.postStyleProps=s,u._stretchStartingKeyframe=c,u.timings={duration:l.duration,delay:l.delay,easing:l.easing},u}return v(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var n=this.keyframes,a=this.timings,o=a.delay,s=a.duration,l=a.easing;if(this._stretchStartingKeyframe&&o){var u=[],c=s+o,d=o/c,h=Sd(n[0],!1);h.offset=0,u.push(h);var f=Sd(n[0],!1);f.offset=i6(d),u.push(f);for(var g=n.length-1,_=1;_<=g;_++){var C=Sd(n[_],!1);C.offset=i6((o+C.offset*s)/c),u.push(C)}s=c,o=0,l="",n=u}return bO(this.element,n,this.preStyleProps,this.postStyleProps,s,o,l,!0)}}]),t}(n6);function i6(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,r-1);return Math.round(i*t)/t}var wO=v(function i(){p(this,i)}),dEe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"normalizePropertyName",value:function(n,a){return kO(n)}},{key:"normalizeStyleValue",value:function(n,a,o,s){var l="",u=o.toString().trim();if(hEe[a]&&0!==o&&"0"!==o)if("number"==typeof o)l="px";else{var c=o.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&s.push(function o0e(i,r){return new gt(3005,Mn)}())}return u+l}}]),t}(wO),hEe=function(){return function fEe(i){var r={};return i.forEach(function(t){return r[t]=!0}),r}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","))}();function r6(i,r,t,e,n,a,o,s,l,u,c,d,h){return{type:0,element:i,triggerName:r,isRemovalTransition:n,fromState:t,fromStyles:a,toState:e,toStyles:o,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var DO={},a6=function(){function i(r,t,e){p(this,i),this._triggerName=r,this.ast=t,this._stateStyles=e}return v(i,[{key:"match",value:function(t,e,n,a){return function vEe(i,r,t,e,n){return i.some(function(a){return a(r,t,e,n)})}(this.ast.matchers,t,e,n,a)}},{key:"buildStyles",value:function(t,e,n){var a=this._stateStyles["*"],o=this._stateStyles[t],s=a?a.buildStyles(e,n):{};return o?o.buildStyles(e,n):s}},{key:"build",value:function(t,e,n,a,o,s,l,u,c,d){var h=[],f=this.ast.options&&this.ast.options.params||DO,_=this.buildStyles(n,l&&l.params||DO,h),C=u&&u.params||DO,w=this.buildStyles(a,C,h),E=new Set,M=new Map,R=new Map,N="void"===a,V={params:Object.assign(Object.assign({},f),C)},U=d?[]:t6(t,e,this.ast.animation,o,s,_,w,V,c,h),ee=0;if(U.forEach(function(G){ee=Math.max(G.duration+G.delay,ee)}),h.length)return r6(e,this._triggerName,n,a,N,_,w,[],[],M,R,ee,h);U.forEach(function(G){var I=G.element,K=jo(M,I,{});G.preStyleProps.forEach(function(se){return K[se]=!0});var H=jo(R,I,{});G.postStyleProps.forEach(function(se){return H[se]=!0}),I!==e&&E.add(I)});var ve=Iw(E.values());return r6(e,this._triggerName,n,a,N,_,w,U,ve,M,R,ee)}}]),i}(),pEe=function(){function i(r,t,e){p(this,i),this.styles=r,this.defaultParams=t,this.normalizer=e}return v(i,[{key:"buildStyles",value:function(t,e){var n=this,a={},o=Hp(this.defaultParams);return Object.keys(t).forEach(function(s){var l=t[s];null!=l&&(o[s]=l)}),this.styles.styles.forEach(function(s){if("string"!=typeof s){var l=s;Object.keys(l).forEach(function(u){var c=l[u];c.length>1&&(c=Ow(c,o,e));var d=n.normalizer.normalizePropertyName(u,e);c=n.normalizer.normalizeStyleValue(u,d,c,e),a[d]=c})}}),a}}]),i}(),mEe=function(){function i(r,t,e){var n=this;p(this,i),this.name=r,this.ast=t,this._normalizer=e,this.transitionFactories=[],this.states={},t.states.forEach(function(a){n.states[a.name]=new pEe(a.style,a.options&&a.options.params||{},e)}),o6(this.states,"true","1"),o6(this.states,"false","0"),t.transitions.forEach(function(a){n.transitionFactories.push(new a6(r,a,n.states))}),this.fallbackTransition=function _Ee(i,r,t){return new a6(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(o,s){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states)}return v(i,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,n,a){return this.transitionFactories.find(function(s){return s.match(t,e,n,a)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}]),i}();function o6(i,r,t){i.hasOwnProperty(r)?i.hasOwnProperty(t)||(i[t]=i[r]):i.hasOwnProperty(t)&&(i[r]=i[t])}var yEe=new SO,kEe=function(){function i(r,t,e){p(this,i),this.bodyNode=r,this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return v(i,[{key:"register",value:function(t,e){var n=[],o=JK(this._driver,e,n,[]);if(n.length)throw function b0e(i){return new gt(3503,Mn)}();this._animations[t]=o}},{key:"_buildPlayer",value:function(t,e,n){var a=t.element,o=FK(this._driver,this._normalizer,a,t.keyframes,e,n);return this._driver.animate(a,o,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var l,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[t],u=new Map;if(s?(l=t6(this._driver,e,s,jK,gO,{},{},a,yEe,o)).forEach(function(h){var f=jo(u,h.element,{});h.postStyleProps.forEach(function(g){return f[g]=null})}):(o.push(S0e()),l=[]),o.length)throw w0e();u.forEach(function(h,f){Object.keys(h).forEach(function(g){h[g]=n._driver.computeStyle(f,g,ul)})});var c=l.map(function(h){var f=u.get(h.element);return n._buildPlayer(h,{},f)}),d=bd(c);return this._playersById[t]=d,d.onDestroy(function(){return n.destroy(t)}),this.players.push(d),d}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw function D0e(i){return new gt(3301,Mn)}();return e}},{key:"listen",value:function(t,e,n,a){var o=hO(e,"","","");return cO(this._getPlayer(t),n,o,a),function(){}}},{key:"command",value:function(t,e,n,a){if("register"!=n)if("create"!=n){var s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,a[0]||{});else this.register(t,a[0])}}]),i}(),s6="ng-animate-queued",EO="ng-animate-disabled",SEe="ng-star-inserted",DEe=[],l6={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},EEe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ms="__ng_removed",TO=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";p(this,i),this.namespaceId=t;var e=r&&r.hasOwnProperty("value"),n=e?r.value:r;if(this.value=MEe(n),e){var a=Hp(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return v(i,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(a){null==n[a]&&(n[a]=e[a])})}}}]),i}(),yy="void",AO=new TO(yy),TEe=function(){function i(r,t,e){p(this,i),this.id=r,this.hostElement=t,this._engine=e,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Rs(t,this._hostClassName)}return v(i,[{key:"listen",value:function(t,e,n,a){var o=this;if(!this._triggers.hasOwnProperty(e))throw function E0e(i,r){return new gt(3302,Mn)}();if(null==n||0==n.length)throw function T0e(i){return new gt(3303,Mn)}();if(!function REe(i){return"start"==i||"done"==i}(n))throw function A0e(i,r){return new gt(3400,Mn)}();var s=jo(this._elementListeners,t,[]),l={name:e,phase:n,callback:a};s.push(l);var u=jo(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Rs(t,xw),Rs(t,xw+"-"+e),u[e]=AO),function(){o._engine.afterFlush(function(){var c=s.indexOf(l);c>=0&&s.splice(c,1),o._triggers[e]||delete u[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw function x0e(i){return new gt(3401,Mn)}();return e}},{key:"trigger",value:function(t,e,n){var a=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(e),l=new xO(this.id,e,t),u=this._engine.statesByElement.get(t);u||(Rs(t,xw),Rs(t,xw+"-"+e),this._engine.statesByElement.set(t,u={}));var c=u[e],d=new TO(n,this.id),h=n&&n.hasOwnProperty("value");!h&&c&&d.absorbOptions(c.options),u[e]=d,c||(c=AO);var f=d.value===yy;if(f||c.value!==d.value){var w=jo(this._engine.playersByElement,t,[]);w.forEach(function(R){R.namespaceId==a.id&&R.triggerName==e&&R.queued&&R.destroy()});var E=s.matchTransition(c.value,d.value,t,d.params),M=!1;if(!E){if(!o)return;E=s.fallbackTransition,M=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:E,fromState:c,toState:d,player:l,isFallbackTransition:M}),M||(Rs(t,s6),l.onStart(function(){Kp(t,s6)})),l.onDone(function(){var R=a.players.indexOf(l);R>=0&&a.players.splice(R,1);var N=a._engine.playersByElement.get(t);if(N){var V=N.indexOf(l);V>=0&&N.splice(V,1)}}),this.players.push(l),w.push(l),l}if(!NEe(c.params,d.params)){var g=[],_=s.matchStyles(c.value,c.params,g),C=s.matchStyles(d.value,d.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(function(){rf(t,_),ru(t,C)})}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(n,a){delete n[t]}),this._elementListeners.forEach(function(n,a){e._elementListeners.set(a,n.filter(function(o){return o.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(n){return n.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,a=this._engine.driver.query(t,Mw,!0);a.forEach(function(o){if(!o[Ms]){var s=n._engine.fetchNamespacesByElement(o);s.size?s.forEach(function(l){return l.triggerLeaveAnimation(o,e,!1,!0)}):n.clearElementCache(o)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(o){return n.clearElementCache(o)})})}},{key:"triggerLeaveAnimation",value:function(t,e,n,a){var o=this,s=this._engine.statesByElement.get(t),l=new Map;if(s){var u=[];if(Object.keys(s).forEach(function(c){if(l.set(c,s[c].value),o._triggers[c]){var d=o.trigger(t,c,yy,a);d&&u.push(d)}}),u.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,l),n&&bd(u).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t),a=this._engine.statesByElement.get(t);if(n&&a){var o=new Set;n.forEach(function(s){var l=s.name;if(!o.has(l)){o.add(l);var c=e._triggers[l].fallbackTransition,d=a[l]||AO,h=new TO(yy),f=new xO(e.id,l,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:l,transition:c,fromState:d,toState:h,player:f,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,e){var n=this,a=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var o=!1;if(a.totalAnimations){var s=a.players.length?a.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else for(var l=t;l=l.parentNode;)if(a.statesByElement.get(l)){o=!0;break}}if(this.prepareLeaveAnimationListeners(t),o)a.markElementAsRemoved(this.id,t,!1,e);else{var c=t[Ms];(!c||c===l6)&&(a.afterFlush(function(){return n.clearElementCache(t)}),a.destroyInnerAnimations(t),a._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){Rs(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach(function(a){var o=a.player;if(!o.destroyed){var s=a.element,l=e._elementListeners.get(s);l&&l.forEach(function(u){if(u.name==a.triggerName){var c=hO(s,a.triggerName,a.fromState.value,a.toState.value);c._data=t,cO(a.player,u.phase,c,u.callback)}}),o.markedForDestroy?e._engine.afterFlush(function(){o.destroy()}):n.push(a)}}),this._queue=[],n.sort(function(a,o){var s=a.transition.ast.depCount,l=o.transition.ast.depCount;return 0==s||0==l?s-l:e._engine.driver.containsElement(a.element,o.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(n){return n.element===t})||e}}]),i}(),AEe=function(){function i(r,t,e){p(this,i),this.bodyNode=r,this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(n,a){}}return v(i,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(n){n.queued&&t.push(n)})}),t}},{key:"createNamespace",value:function(t,e){var n=new TEe(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList,a=this.namespacesByHostElement,o=n.length-1;if(o>=0){var s=!1;if(void 0!==this.driver.getParentElement)for(var l=this.driver.getParentElement(e);l;){var u=a.get(l);if(u){var c=n.indexOf(u);n.splice(c+1,0,t),s=!0;break}l=this.driver.getParentElement(l)}else for(var d=o;d>=0;d--)if(this.driver.containsElement(n[d].hostElement,e)){n.splice(d+1,0,t),s=!0;break}s||n.unshift(t)}else n.push(t);return a.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var a=this._namespaceLookup[t];a&&a.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var a=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(a.hostElement),delete n._namespaceLookup[t];var o=n._namespaceList.indexOf(a);o>=0&&n._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var a=Object.keys(n),o=0;o=0&&this.collectedLeaveElements.splice(s,1)}if(t){var l=this._fetchNamespace(t);l&&l.insertNode(e,n)}a&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rs(t,EO)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kp(t,EO))}},{key:"removeNode",value:function(t,e,n,a){if(Uw(e)){var o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,a):this.markElementAsRemoved(t,e,!1,a),n){var s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,a)}}else this._onRemovalComplete(e,a)}},{key:"markElementAsRemoved",value:function(t,e,n,a,o){this.collectedLeaveElements.push(e),e[Ms]={namespaceId:t,setForRemoval:a,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}},{key:"listen",value:function(t,e,n,a,o){return Uw(e)?this._fetchNamespace(t).listen(e,n,a,o):function(){}}},{key:"_buildInstruction",value:function(t,e,n,a,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,a,t.fromState.options,t.toState.options,e,o)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,Mw,!0);n.forEach(function(a){return e.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,mO,!0)).forEach(function(a){return e.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(n){n.queued?n.markedForDestroy=!0:n.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(n){return n.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return bd(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var n,e=this,a=t[Ms];if(a&&a.setForRemoval){if(t[Ms]=l6,a.namespaceId){this.destroyInnerAnimations(t);var o=this._fetchNamespace(a.namespaceId);o&&o.clearElementCache(t)}this._onRemovalComplete(t,a.setForRemoval)}(null===(n=t.classList)||void 0===n?void 0:n.contains(EO))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(s){e.markElementAsDisabled(s,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(h,f){return t._balanceNamespaceList(h,f)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;K--)this._namespaceList[K].drainQueuedTransitions(e).forEach(function(it){var ct=it.player,Tt=it.element;if(G.push(ct),n.collectedEnterElements.length){var gi=Tt[Ms];if(gi&&gi.setForMove){if(gi.previousTriggersValues&&gi.previousTriggersValues.has(it.triggerName)){var qu=gi.previousTriggersValues.get(it.triggerName),Oo=n.statesByElement.get(it.element);Oo&&Oo[it.triggerName]&&(Oo[it.triggerName].value=qu)}return void ct.destroy()}}var xh=!f||!n.driver.containsElement(f,Tt),Lv=ee.get(Tt),zA=C.get(Tt),Er=n._buildInstruction(it,a,zA,Lv,xh);if(Er.errors&&Er.errors.length)I.push(Er);else{if(xh)return ct.onStart(function(){return rf(Tt,Er.fromStyles)}),ct.onDestroy(function(){return ru(Tt,Er.toStyles)}),void o.push(ct);if(it.isFallbackTransition)return ct.onStart(function(){return rf(Tt,Er.fromStyles)}),ct.onDestroy(function(){return ru(Tt,Er.toStyles)}),void o.push(ct);var Hb=[];Er.timelines.forEach(function(Xu){Xu.stretchStartingKeyframe=!0,n.disabledNodes.has(Xu.element)||Hb.push(Xu)}),Er.timelines=Hb,a.append(Tt,Er.timelines),l.push({instruction:Er,player:ct,element:Tt}),Er.queriedElements.forEach(function(Xu){return jo(u,Xu,[]).push(ct)}),Er.preStyleProps.forEach(function(Xu,Mh){var Kb=Object.keys(Xu);if(Kb.length){var Zu=c.get(Mh);Zu||c.set(Mh,Zu=new Set),Kb.forEach(function(KA){return Zu.add(KA)})}}),Er.postStyleProps.forEach(function(Xu,Mh){var Kb=Object.keys(Xu),Zu=d.get(Mh);Zu||d.set(Mh,Zu=new Set),Kb.forEach(function(KA){return Zu.add(KA)})})}});if(I.length){var se=[];I.forEach(function(it){se.push(function R0e(i,r){return new gt(3505,Mn)}())}),G.forEach(function(it){return it.destroy()}),this.reportError(se)}var me=new Map,ae=new Map;l.forEach(function(it){var ct=it.element;a.has(ct)&&(ae.set(ct,ct),n._beforeAnimationBuild(it.player.namespaceId,it.instruction,me))}),o.forEach(function(it){var ct=it.element;n._getPreviousPlayers(ct,!1,it.namespaceId,it.triggerName,null).forEach(function(gi){jo(me,ct,[]).push(gi),gi.destroy()})});var Ne=E.filter(function(it){return f6(it,c,d)}),Ce=new Map;c6(Ce,this.driver,R,d,ul).forEach(function(it){f6(it,c,d)&&Ne.push(it)});var Be=new Map;_.forEach(function(it,ct){c6(Be,n.driver,new Set(it),c,"!")}),Ne.forEach(function(it){var ct=Ce.get(it),Tt=Be.get(it);Ce.set(it,Object.assign(Object.assign({},ct),Tt))});var je=[],kt=[],Xt={};l.forEach(function(it){var ct=it.element,Tt=it.player,gi=it.instruction;if(a.has(ct)){if(h.has(ct))return Tt.onDestroy(function(){return ru(ct,gi.toStyles)}),Tt.disabled=!0,Tt.overrideTotalTime(gi.totalTime),void o.push(Tt);var qu=Xt;if(ae.size>1){for(var Oo=ct,xh=[];Oo=Oo.parentNode;){var Lv=ae.get(Oo);if(Lv){qu=Lv;break}xh.push(Oo)}xh.forEach(function(Hb){return ae.set(Hb,qu)})}var zA=n._buildAnimation(Tt.namespaceId,gi,me,s,Be,Ce);if(Tt.setRealPlayer(zA),qu===Xt)je.push(Tt);else{var Er=n.playersByElement.get(qu);Er&&Er.length&&(Tt.parentPlayer=bd(Er)),o.push(Tt)}}else rf(ct,gi.fromStyles),Tt.onDestroy(function(){return ru(ct,gi.toStyles)}),kt.push(Tt),h.has(ct)&&o.push(Tt)}),kt.forEach(function(it){var ct=s.get(it.element);if(ct&&ct.length){var Tt=bd(ct);it.setRealPlayer(Tt)}}),o.forEach(function(it){it.parentPlayer?it.syncPlayerEvents(it.parentPlayer):it.destroy()});for(var zn=0;zn0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new my(t.duration,t.delay)}}]),i}(),xO=function(){function i(r,t,e){p(this,i),this.namespaceId=r,this.triggerName=t,this.element=e,this._player=new my,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return v(i,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(a){return cO(t,n,void 0,a)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){jo(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),i}();function MEe(i){return null!=i?i:null}function Uw(i){return i&&1===i.nodeType}function u6(i,r){var t=i.style.display;return i.style.display=null!=r?r:"none",t}function c6(i,r,t,e,n){var a=[];t.forEach(function(l){return a.push(u6(l))});var o=[];e.forEach(function(l,u){var c={};l.forEach(function(d){var h=c[d]=r.computeStyle(u,d,n);(!h||0==h.length)&&(u[Ms]=EEe,o.push(u))}),i.set(u,c)});var s=0;return t.forEach(function(l){return u6(l,a[s++])}),o}function d6(i,r){var t=new Map;if(i.forEach(function(s){return t.set(s,[])}),0==r.length)return t;var n=new Set(r),a=new Map;function o(s){if(!s)return 1;var l=a.get(s);if(l)return l;var u=s.parentNode;return l=t.has(u)?u:n.has(u)?1:o(u),a.set(s,l),l}return r.forEach(function(s){var l=o(s);1!==l&&t.get(l).push(s)}),t}function Rs(i,r){var t;null===(t=i.classList)||void 0===t||t.add(r)}function Kp(i,r){var t;null===(t=i.classList)||void 0===t||t.remove(r)}function OEe(i,r,t){bd(t).onDone(function(){return i.processLeaveNode(r)})}function h6(i,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),i}();function FEe(i,r){var t=null,e=null;return Array.isArray(r)&&r.length?(t=MO(r[0]),r.length>1&&(e=MO(r[r.length-1]))):r&&(t=MO(r)),t||e?new LEe(i,t,e):null}var LEe=function(){var i=function(){function r(t,e,n){p(this,r),this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;var a=r.initialStylesByElement.get(t);a||r.initialStylesByElement.set(t,a={}),this._initialStyles=a}return v(r,[{key:"start",value:function(){this._state<1&&(this._startStyles&&ru(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(ru(this._element,this._initialStyles),this._endStyles&&(ru(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(rf(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rf(this._element,this._endStyles),this._endStyles=null),ru(this._element,this._initialStyles),this._state=3)}}]),r}();return i.initialStylesByElement=new WeakMap,i}();function MO(i){for(var r=null,t=Object.keys(i),e=0;e5&&void 0!==arguments[5]?arguments[5]:[],l=0==a?"both":"forwards",u={duration:n,delay:a,fill:l};o&&(u.easing=o);var c={},d=s.filter(function(f){return f instanceof v6});z0e(n,a)&&d.forEach(function(f){var g=f.currentSnapshot;Object.keys(g).forEach(function(_){return c[_]=g[_]})});var h=FEe(t,e=H0e(t,e=e.map(function(f){return Sd(f,!1)}),c));return new v6(t,e,u,h)}}]),i}(),GEe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this))._nextAnimationId=0,o._renderer=n.createRenderer(a.body,{id:"0",encapsulation:Qs.None,styles:[],data:{animation:[]}}),o}return v(e,[{key:"build",value:function(a){var o=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(a)?Tw(a):a;return p6(this._renderer,null,o,"register",[s]),new VEe(o,this._renderer)}}]),e}(zp);return i.\u0275fac=function(t){return new(t||i)(oe(ny),oe(pa))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),VEe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this))._id=e,a._renderer=n,a}return v(t,[{key:"create",value:function(n,a){return new UEe(this._id,n,a||{},this._renderer)}}]),t}(e0e),UEe=function(){function i(r,t,e,n){p(this,i),this.id=r,this.element=t,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",e)}return v(i,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,a)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,a){this.delegate.setAttribute(t,e,n,a)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,a){this.delegate.setStyle(t,e,n,a)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)&&e==g6?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),i}(),HEe=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,n,a,o)).factory=e,s.namespaceId=n,s}return v(t,[{key:"setProperty",value:function(n,a,o){"@"==a.charAt(0)?"."==a.charAt(1)&&a==g6?this.disableAnimations(n,o=void 0===o||!!o):this.engine.process(this.namespaceId,n,a.substr(1),o):this.delegate.setProperty(n,a,o)}},{key:"listen",value:function(n,a,o){var s=this;if("@"==a.charAt(0)){var l=function KEe(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(n),u=a.substr(1),c="";if("@"!=u.charAt(0)){var d=function jEe(i){var r=i.indexOf(".");return[i.substring(0,r),i.substr(r+1)]}(u),h=Bt(d,2);u=h[0],c=h[1]}return this.engine.listen(this.namespaceId,l,u,c,function(f){s.factory.scheduleListenerCallback(f._data||-1,o,f)})}return this.delegate.listen(n,a,o)}}]),t}(m6),WEe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){return p(this,e),t.call(this,n.body,a,o)}return v(e,[{key:"ngOnDestroy",value:function(){this.flush()}}]),e}(zw);return i.\u0275fac=function(t){return new(t||i)(oe(pa),oe(pO),oe(wO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),_6=new Dt("AnimationModuleType"),y6=[{provide:zp,useClass:GEe},{provide:wO,useFactory:function $Ee(){return new dEe}},{provide:zw,useClass:WEe},{provide:ny,useFactory:function qEe(i,r,t){return new zEe(i,r,t)},deps:[Ew,zw,be]}],k6=[{provide:pO,useFactory:function(){return new BEe}},{provide:_6,useValue:"BrowserAnimations"}].concat(y6),XEe=[{provide:pO,useClass:HK},{provide:_6,useValue:"NoopAnimations"}].concat(y6),ZEe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"withConfig",value:function(e){return{ngModule:r,providers:e.disableAnimations?XEe:k6}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:k6,imports:[dK]}),i}();function jp(i){return new An(function(r){Pi(i()).subscribe(r)})}function ky(i,r){var t=wn(i)?i:function(){return i},e=function(a){return a.error(t())};return new An(r?function(n){return r.schedule(e,0,n)}:e)}var YEe=Array.isArray;function RO(i){return We(function(r){return function QEe(i,r){return YEe(r)?i.apply(void 0,Ae(r)):i(r)}(i,r)})}var JEe=["addListener","removeListener"],e1e=["addEventListener","removeEventListener"],t1e=["on","off"];function li(i,r,t,e){if(wn(t)&&(e=t,t=void 0),e)return li(i,r,t).pipe(RO(e));var a=Bt(function r1e(i){return wn(i.addEventListener)&&wn(i.removeEventListener)}(i)?e1e.map(function(l){return function(u){return i[l](r,u,t)}}):function n1e(i){return wn(i.addListener)&&wn(i.removeListener)}(i)?JEe.map(C6(i,r)):function i1e(i){return wn(i.on)&&wn(i.off)}(i)?t1e.map(C6(i,r)):[],2),o=a[0],s=a[1];if(!o&&ic(i))return Bi(function(l){return li(l,r,t)})(Pi(i));if(!o)throw new TypeError("Invalid event target");return new An(function(l){var u=function(){for(var d=arguments.length,h=new Array(d),f=0;f1&&void 0!==arguments[1]?arguments[1]:s1e,t=r.connector;return oi(function(e,n){var a=t();wi(i(o1e(a))).subscribe(n),n.add(e.subscribe(a))})}function At(i,r,t){var e=wn(i)||r||t?{next:i,error:r,complete:t}:i;return e?oi(function(n,a){var o;null===(o=e.subscribe)||void 0===o||o.call(e);var s=!0;n.subscribe(Wn(a,function(l){var u;null===(u=e.next)||void 0===u||u.call(e,l),a.next(l)},function(){var l;s=!1,null===(l=e.complete)||void 0===l||l.call(e),a.complete()},function(l){var u;s=!1,null===(u=e.error)||void 0===u||u.call(e,l),a.error(l)},function(){var l,u;s&&(null===(l=e.unsubscribe)||void 0===l||l.call(e)),null===(u=e.finalize)||void 0===u||u.call(e)}))}):zl}var c1e=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),r.call(this)}return v(t,[{key:"schedule",value:function(n){return this}}]),t}(Je),Kw={setInterval:function(i){function r(t,e){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(i,r){for(var t=Kw.delegate,e=arguments.length,n=new Array(e>2?e-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=n;var o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,a)),this.pending=!0,this.delay=a,this.id=this.id||this.requestAsyncId(s,this.id,a),this}},{key:"requestAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Kw.setInterval(n.flush.bind(n,this),o)}},{key:"recycleAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&this.delay===o&&!1===this.pending)return a;Kw.clearInterval(a)}},{key:"execute",value:function(n,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(n,a);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(n,a){var s,o=!1;try{this.work(n)}catch(l){o=!0,s=l||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s}},{key:"unsubscribe",value:function(){if(!this.closed){var n=this.id,a=this.scheduler,o=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Nh(o,this),null!=n&&(this.id=this.recycleAsyncId(a,n,null)),this.delay=null,$(q(t.prototype),"unsubscribe",this).call(this)}}}]),t}(c1e),OO={now:function(){return(OO.delegate||Date).now()},delegate:void 0},IO=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;p(this,i),this.schedulerActionCtor=r,this.now=t}return v(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.schedulerActionCtor(this,t).schedule(n,e)}}]),i}();IO.now=OO.now;var E6=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:IO.now;return p(this,t),(n=r.call(this,e,a)).actions=[],n._active=!1,n._scheduled=void 0,n}return v(t,[{key:"flush",value:function(n){var a=this.actions;if(this._active)a.push(n);else{var o;this._active=!0;do{if(o=n.execute(n.state,n.delay))break}while(n=a.shift());if(this._active=!1,o){for(;n=a.shift();)n.unsubscribe();throw o}}}}]),t}(IO),Wp=new E6(D6),d1e=Wp;function T6(i,r){return r?function(t){return sf(r.pipe(It(1),function h1e(){return oi(function(i,r){i.subscribe(Wn(r,Fh))})}()),t.pipe(T6(i)))}:Bi(function(t,e){return i(t,e).pipe(It(1),function f1e(i){return We(function(){return i})}(t))})}function v1e(i){return i instanceof Date&&!isNaN(i)}function jw(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d1e,e=-1;return null!=r&&(g_(r)?t=r:e=r),new An(function(n){var a=v1e(i)?+i-t.now():i;a<0&&(a=0);var o=0;return t.schedule(function(){n.closed||(n.next(o++),0<=e?this.schedule(void 0,e):n.complete())},a)})}function Dd(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp,t=jw(i,r);return T6(function(){return t})}var Cy="Service workers are disabled or not supported by this browser",Ww=function(){function i(r){if(p(this,i),this.serviceWorker=r,r){var e=li(r,"controllerchange").pipe(We(function(){return r.controller})),a=sf(jp(function(){return lt(r.controller)}),e);this.worker=a.pipe(Ue(function(c){return!!c})),this.registration=this.worker.pipe(Nn(function(){return r.getRegistration()}));var u=li(r,"message").pipe(We(function(c){return c.data})).pipe(Ue(function(c){return c&&c.type})).pipe(function u1e(i){return i?function(r){return w6(i)(r)}:function(r){return function l1e(i,r){var t=wn(i)?i:function(){return i};return wn(r)?w6(r,{connector:t}):function(e){return new S6(e,t)}}(new Ot)(r)}}());u.connect(),this.events=u}else this.worker=this.events=this.registration=function p1e(i){return jp(function(){return ky(new Error(i))})}(Cy)}return v(i,[{key:"postMessage",value:function(t,e){return this.worker.pipe(It(1),At(function(n){n.postMessage(Object.assign({action:t},e))})).toPromise().then(function(){})}},{key:"postMessageWithOperation",value:function(t,e,n){var a=this.waitForOperationCompleted(n),o=this.postMessage(t,e);return Promise.all([o,a]).then(function(s){return Bt(s,2)[1]})}},{key:"generateNonce",value:function(){return Math.round(1e7*Math.random())}},{key:"eventsOfType",value:function(t){return this.events.pipe(Ue("string"==typeof t?function(a){return a.type===t}:function(a){return t.includes(a.type)}))}},{key:"nextEventOfType",value:function(t){return this.eventsOfType(t).pipe(It(1))}},{key:"waitForOperationCompleted",value:function(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(Ue(function(e){return e.nonce===t}),It(1),We(function(e){if(void 0!==e.result)return e.result;throw new Error(e.error)})).toPromise()}},{key:"isEnabled",get:function(){return!!this.serviceWorker}}]),i}(),g1e=function(){var i=function(){function r(t){if(p(this,r),this.sw=t,this.subscriptionChanges=new Ot,!t.isEnabled)return this.messages=wd,this.notificationClicks=wd,void(this.subscription=wd);this.messages=this.sw.eventsOfType("PUSH").pipe(We(function(n){return n.data})),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(We(function(n){return n.data})),this.pushManager=this.sw.registration.pipe(We(function(n){return n.pushManager}));var e=this.pushManager.pipe(Nn(function(n){return n.getSubscription()}));this.subscription=xn(e,this.subscriptionChanges)}return v(r,[{key:"isEnabled",get:function(){return this.sw.isEnabled}},{key:"requestSubscription",value:function(e){var n=this;if(!this.sw.isEnabled)return Promise.reject(new Error(Cy));for(var a={userVisibleOnly:!0},o=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(o.length)),l=0;l1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:r,providers:[{provide:A6,useValue:e},{provide:NO,useValue:n},{provide:Ww,useFactory:y1e,deps:[NO,cy]},{provide:cw,useFactory:_1e,deps:[Jn,A6,NO,cy],multi:!0}]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[g1e,m1e]}),i}();function $p(i){return!!i&&(i instanceof An||wn(i.lift)&&wn(i.subscribe))}var C1e=Array.isArray,b1e=Object.getPrototypeOf,S1e=Object.prototype,w1e=Object.keys;function R6(i){if(1===i.length){var r=i[0];if(C1e(r))return{args:r,keys:null};if(function D1e(i){return i&&"object"==typeof i&&b1e(i)===S1e}(r)){var t=w1e(r);return{args:t.map(function(e){return r[e]}),keys:t}}}return{args:i,keys:null}}function O6(i,r){return i.reduce(function(t,e,n){return t[e]=r[n],t},{})}function FO(){for(var i=arguments.length,r=new Array(i),t=0;t0&&void 0!==arguments[0]?arguments[0]:1/0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:OO;return p(this,t),(e=r.call(this))._bufferSize=n,e._windowTime=a,e._timestampProvider=o,e._buffer=[],e._infiniteTimeWindow=!0,e._infiniteTimeWindow=a===1/0,e._bufferSize=Math.max(1,n),e._windowTime=Math.max(1,a),e}return v(t,[{key:"next",value:function(n){var o=this._buffer,s=this._infiniteTimeWindow,l=this._timestampProvider,u=this._windowTime;this.isStopped||(o.push(n),!s&&o.push(l.now()+u)),this._trimBuffer(),$(q(t.prototype),"next",this).call(this,n)}},{key:"_subscribe",value:function(n){this._throwIfClosed(),this._trimBuffer();for(var a=this._innerSubscribe(n),o=this._infiniteTimeWindow,l=this._buffer.slice(),u=0;u5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=arguments.length>8?arguments[8]:void 0;p(this,r),this.store=t,this.currentLoader=e,this.compiler=n,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=l,this.extend=u,this.pending=!1,this._onTranslationChange=new O,this._onLangChange=new O,this._onDefaultLangChange=new O,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}return v(r,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var n=this;if(e!==this.defaultLang){var a=this.retrieveTranslations(e);void 0!==a?(null==this.defaultLang&&(this.defaultLang=e),a.pipe(It(1)).subscribe(function(o){n.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var n=this;if(e===this.currentLang)return lt(this.translations[e]);var a=this.retrieveTranslations(e);return void 0!==a?(this.currentLang||(this.currentLang=e),a.pipe(It(1)).subscribe(function(o){n.changeLang(e)}),a):(this.changeLang(e),lt(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var n;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}},{key:"getTranslation",value:function(e){var n=this;this.pending=!0;var a=this.currentLoader.getTranslation(e).pipe(N6(1),It(1));return this.loadingTranslations=a.pipe(We(function(o){return n.compiler.compileTranslations(o,e)}),N6(1),It(1)),this.loadingTranslations.subscribe({next:function(s){n.translations[e]=n.extend&&n.translations[e]?Object.assign(Object.assign({},s),n.translations[e]):s,n.updateLangs(),n.pending=!1},error:function(s){n.pending=!1}}),a}},{key:"setTranslation",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n=this.compiler.compileTranslations(n,e),this.translations[e]=(a||this.extend)&&this.translations[e]?B6(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var n=this;e.forEach(function(a){-1===n.langs.indexOf(a)&&n.langs.push(a)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,n,a){var o;if(n instanceof Array){var c,s={},l=!1,u=In(n);try{for(u.s();!(c=u.n()).done;){var d=c.value;s[d]=this.getParsedResult(e,d,a),$p(s[d])&&(l=!0)}}catch(g){u.e(g)}finally{u.f()}return l?FO(n.map(function(g){return $p(s[g])?s[g]:lt(s[g])})).pipe(We(function(g){var _={};return g.forEach(function(C,w){_[n[w]]=C}),_})):s}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,n),a)),void 0===o&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),a)),void 0===o){var f={key:n,translateService:this};void 0!==a&&(f.interpolateParams=a),o=this.missingTranslationHandler.handle(f)}return void 0!==o?o:n}},{key:"get",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(nu(function(s){return $p(s=a.getParsedResult(s,e,n))?s:lt(s)}));var o=this.getParsedResult(this.translations[this.currentLang],e,n);return $p(o)?o:lt(o)}},{key:"getStreamOnTranslationChange",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');return sf(jp(function(){return a.get(e,n)}),this.onTranslationChange.pipe(Nn(function(o){var s=a.getParsedResult(o.translations,e,n);return"function"==typeof s.subscribe?s:lt(s)})))}},{key:"stream",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');return sf(jp(function(){return a.get(e,n)}),this.onLangChange.pipe(Nn(function(o){var s=a.getParsedResult(o.translations,e,n);return $p(s)?s:lt(s)})))}},{key:"instant",value:function(e,n){if(!lf(e)||!e.length)throw new Error('Parameter "key" required');var a=this.getParsedResult(this.translations[this.currentLang],e,n);if($p(a)){if(e instanceof Array){var o={};return e.forEach(function(s,l){o[e[l]]=e[l]}),o}return e}return a}},{key:"set",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[a][e]=this.compiler.compile(n,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;if(void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage))return-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(U6),oe(by),oe(qw),oe($w),oe(LO),oe(GO),oe(BO),oe(UO),oe(VO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),E1e=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.loader||{provide:by,useClass:F6},e.compiler||{provide:qw,useClass:V6},e.parser||{provide:$w,useClass:G6},e.missingTranslationHandler||{provide:LO,useClass:L6},U6,{provide:BO,useValue:e.isolate},{provide:GO,useValue:e.useDefaultLang},{provide:UO,useValue:e.extend},{provide:VO,useValue:e.defaultLanguage},z6]}}},{key:"forChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.loader||{provide:by,useClass:F6},e.compiler||{provide:qw,useClass:V6},e.parser||{provide:$w,useClass:G6},e.missingTranslationHandler||{provide:LO,useClass:L6},{provide:BO,useValue:e.isolate},{provide:GO,useValue:e.useDefaultLang},{provide:UO,useValue:e.extend},{provide:VO,useValue:e.defaultLanguage},z6]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),T1e=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";p(this,i),this.http=r,this.prefix=t,this.suffix=e}return v(i,[{key:"getTranslation",value:function(t){return this.http.get("".concat(this.prefix).concat(t).concat(this.suffix))}}]),i}(),Sy=function(){function i(){p(this,i)}return v(i,null,[{key:"IS_WEB",get:function(){return i.PLATFORM_TARGET===i.PLATFORMS.WEB}},{key:"IS_MOBILE_NATIVE",get:function(){return i.PLATFORM_TARGET===i.PLATFORMS.MOBILE_NATIVE}}]),i}();Sy.PLATFORMS={WEB:"web",MOBILE_NATIVE:"mobile_native"},Sy.PLATFORM_TARGET=Sy.PLATFORMS.WEB;var xi=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._value=e,n}return v(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(n){var a=$(q(t.prototype),"_subscribe",this).call(this,n);return!a.closed&&n.next(this._value),a}},{key:"getValue",value:function(){var o=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),o}},{key:"next",value:function(n){$(q(t.prototype),"next",this).call(this,this._value=n)}}]),t}(Ot);function zO(){for(var i=arguments.length,r=new Array(i),t=0;t2&&void 0!==arguments[2]?arguments[2]:zl;return function(e){H6(r,function(){for(var n=i.length,a=new Array(n),o=n,s=n,l=function(d){H6(r,function(){var h=wi(i[d],r),f=!1;h.subscribe(Wn(e,function(g){a[d]=g,f||(f=!0,s--),s||e.next(t(a.slice()))},function(){--o||e.complete()}))},e)},u=0;u=2,!0))}function cl(i){return oi(function(r,t){var a,e=null,n=!1;e=r.subscribe(Wn(t,void 0,void 0,function(o){a=Pi(i(o,cl(i)(r))),e?(e.unsubscribe(),e=null,a.subscribe(t)):n=!0})),n&&(e.unsubscribe(),e=null,a.subscribe(t))})}function KO(i){return i<=0?function(){return po}:oi(function(r,t){var e=[];r.subscribe(Wn(t,function(n){e.push(n),i0&&void 0!==arguments[0]?arguments[0]:M1e;return oi(function(r,t){var e=!1;r.subscribe(Wn(t,function(n){e=!0,t.next(n)},function(){return e?t.complete():t.error(i())}))})}function M1e(){return new Xw}function W6(i){return oi(function(r,t){var e=!1;r.subscribe(Wn(t,function(n){e=!0,t.next(n)},function(){e||t.next(i),t.complete()}))})}function qp(i,r){var t=arguments.length>=2;return function(e){return e.pipe(i?Ue(function(n,a){return i(n,a,e)}):zl,It(1),t?W6(r):j6(function(){return new Xw}))}}function $6(i){return oi(function(r,t){try{r.subscribe(t)}finally{t.add(i)}})}var gc=v(function i(r,t){p(this,i),this.id=r,this.url=t}),jO=function(i){b(t,i);var r=S(t);function t(e,n){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return p(this,t),(a=r.call(this,e,n)).navigationTrigger=o,a.restoredState=s,a}return v(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(gc),wy=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).urlAfterRedirects=a,o}return v(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(gc),q6=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).reason=a,o}return v(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(gc),O1e=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).error=a,o}return v(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(gc),I1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),N1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),F1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s){var l;return p(this,t),(l=r.call(this,e,n)).urlAfterRedirects=a,l.state=o,l.shouldActivate=s,l}return v(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(gc),L1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),P1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),X6=function(){function i(r){p(this,i),this.route=r}return v(i,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),i}(),Z6=function(){function i(r){p(this,i),this.route=r}return v(i,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),i}(),B1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),G1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),V1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),U1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),Y6=function(){function i(r,t,e){p(this,i),this.routerEvent=r,this.position=t,this.anchor=e}return v(i,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),i}(),bn="primary",z1e=function(){function i(r){p(this,i),this.params=r||{}}return v(i,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),i}();function Xp(i){return new z1e(i)}var Q6="ngNavigationCancelingError";function WO(i){var r=Error("NavigationCancelingError: "+i);return r[Q6]=!0,r}function K1e(i,r,t){var e=t.path.split("/");if(e.length>i.length||"full"===t.pathMatch&&(r.hasChildren()||e.length0?i[i.length-1]:null}function ga(i,r){for(var t in i)i.hasOwnProperty(t)&&r(i[t],t)}function ou(i){return $M(i)?i:X_(i)?wi(Promise.resolve(i)):lt(i)}var $1e={exact:function rj(i,r,t){if(!cf(i.segments,r.segments)||!Zw(i.segments,r.segments,t)||i.numberOfChildren!==r.numberOfChildren)return!1;for(var e in r.children)if(!i.children[e]||!rj(i.children[e],r.children[e],t))return!1;return!0},subset:aj},nj={exact:function q1e(i,r){return au(i,r)},subset:function X1e(i,r){return Object.keys(r).length<=Object.keys(i).length&&Object.keys(r).every(function(t){return J6(i[t],r[t])})},ignored:function(){return!0}};function ij(i,r,t){return $1e[t.paths](i.root,r.root,t.matrixParams)&&nj[t.queryParams](i.queryParams,r.queryParams)&&!("exact"===t.fragment&&i.fragment!==r.fragment)}function aj(i,r,t){return oj(i,r,r.segments,t)}function oj(i,r,t,e){if(i.segments.length>t.length){var n=i.segments.slice(0,t.length);return!(!cf(n,t)||r.hasChildren()||!Zw(n,t,e))}if(i.segments.length===t.length){if(!cf(i.segments,t)||!Zw(i.segments,t,e))return!1;for(var a in r.children)if(!i.children[a]||!aj(i.children[a],r.children[a],e))return!1;return!0}var o=t.slice(0,i.segments.length),s=t.slice(i.segments.length);return!!(cf(i.segments,o)&&Zw(i.segments,o,e)&&i.children[bn])&&oj(i.children[bn],r,s,e)}function Zw(i,r,t){return r.every(function(e,n){return nj[t](i[n].parameters,e.parameters)})}var uf=function(){function i(r,t,e){p(this,i),this.root=r,this.queryParams=t,this.fragment=e}return v(i,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Xp(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Q1e.serialize(this)}}]),i}(),Rn=function(){function i(r,t){var e=this;p(this,i),this.segments=r,this.children=t,this.parent=null,ga(t,function(n,a){return n.parent=e})}return v(i,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Yw(this)}}]),i}(),Dy=function(){function i(r,t){p(this,i),this.path=r,this.parameters=t}return v(i,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Xp(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return dj(this)}}]),i}();function cf(i,r){return i.length===r.length&&i.every(function(t,e){return t.path===r[e].path})}var sj=v(function i(){p(this,i)}),lj=function(){function i(){p(this,i)}return v(i,[{key:"parse",value:function(t){var e=new sTe(t);return new uf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e="/".concat(Ey(t.root,!0)),n=function tTe(i){var r=Object.keys(i).map(function(t){var e=i[t];return Array.isArray(e)?e.map(function(n){return"".concat(Qw(t),"=").concat(Qw(n))}).join("&"):"".concat(Qw(t),"=").concat(Qw(e))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function J1e(i){return encodeURI(i)}(t.fragment)):"";return"".concat(e).concat(n).concat(a)}}]),i}(),Q1e=new lj;function Yw(i){return i.segments.map(function(r){return dj(r)}).join("/")}function Ey(i,r){if(!i.hasChildren())return Yw(i);if(r){var t=i.children[bn]?Ey(i.children[bn],!1):"",e=[];return ga(i.children,function(a,o){o!==bn&&e.push("".concat(o,":").concat(Ey(a,!1)))}),e.length>0?"".concat(t,"(").concat(e.join("//"),")"):t}var n=function Y1e(i,r){var t=[];return ga(i.children,function(e,n){n===bn&&(t=t.concat(r(e,n)))}),ga(i.children,function(e,n){n!==bn&&(t=t.concat(r(e,n)))}),t}(i,function(a,o){return o===bn?[Ey(i.children[bn],!1)]:["".concat(o,":").concat(Ey(a,!1))]});return 1===Object.keys(i.children).length&&null!=i.children[bn]?"".concat(Yw(i),"/").concat(n[0]):"".concat(Yw(i),"/(").concat(n.join("//"),")")}function uj(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qw(i){return uj(i).replace(/%3B/gi,";")}function $O(i){return uj(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jw(i){return decodeURIComponent(i)}function cj(i){return Jw(i.replace(/\+/g,"%20"))}function dj(i){return"".concat($O(i.path)).concat(function eTe(i){return Object.keys(i).map(function(r){return";".concat($O(r),"=").concat($O(i[r]))}).join("")}(i.parameters))}var nTe=/^[^\/()?;=#]+/;function eD(i){var r=i.match(nTe);return r?r[0]:""}var iTe=/^[^=?&#]+/,aTe=/^[^&#]+/,sTe=function(){function i(r){p(this,i),this.url=r,this.remaining=r}return v(i,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rn([],{}):new Rn([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[bn]=new Rn(t,e)),n}},{key:"parseSegment",value:function(){var t=eD(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Dy(Jw(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=eD(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var a=eD(this.remaining);a&&this.capture(n=a)}t[Jw(e)]=Jw(n)}}},{key:"parseQueryParam",value:function(t){var e=function rTe(i){var r=i.match(iTe);return r?r[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var a=function oTe(i){var r=i.match(aTe);return r?r[0]:""}(this.remaining);a&&this.capture(n=a)}var o=cj(e),s=cj(n);if(t.hasOwnProperty(o)){var l=t[o];Array.isArray(l)||(t[o]=l=[l]),l.push(s)}else t[o]=s}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=eD(this.remaining),a=this.remaining[n.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=bn);var s=this.parseChildren();e[o]=1===Object.keys(s).length?s[bn]:new Rn([],s),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),i}(),hj=function(){function i(r){p(this,i),this._root=r}return v(i,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=qO(t,this._root);return e?e.children.map(function(n){return n.value}):[]}},{key:"firstChild",value:function(t){var e=qO(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=XO(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return XO(t,this._root).map(function(e){return e.value})}}]),i}();function qO(i,r){if(i===r.value)return r;var e,t=In(r.children);try{for(t.s();!(e=t.n()).done;){var a=qO(i,e.value);if(a)return a}}catch(o){t.e(o)}finally{t.f()}return null}function XO(i,r){if(i===r.value)return[r];var e,t=In(r.children);try{for(t.s();!(e=t.n()).done;){var a=XO(i,e.value);if(a.length)return a.unshift(r),a}}catch(o){t.e(o)}finally{t.f()}return[]}var mc=function(){function i(r,t){p(this,i),this.value=r,this.children=t}return v(i,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),i}();function Zp(i){var r={};return i&&i.children.forEach(function(t){return r[t.value.outlet]=t}),r}var fj=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e)).snapshot=n,ZO(Xe(a),e),a}return v(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(hj);function vj(i,r){var t=function lTe(i,r){var o=new tD([],{},{},"",{},bn,r,null,i.root,-1,{});return new gj("",new mc(o,[]))}(i,r),e=new xi([new Dy("",{})]),n=new xi({}),a=new xi({}),o=new xi({}),s=new xi(""),l=new Yp(e,n,o,s,a,bn,r,t.root);return l.snapshot=t.root,new fj(new mc(l,[]),t)}var Yp=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this.url=r,this.params=t,this.queryParams=e,this.fragment=n,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=l}return v(i,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(We(function(t){return Xp(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(We(function(t){return Xp(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),i}();function pj(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=i.pathFromRoot,e=0;if("always"!==r)for(e=t.length-1;e>=1;){var n=t[e],a=t[e-1];if(n.routeConfig&&""===n.routeConfig.path)e--;else{if(a.component)break;e--}}return uTe(t.slice(e))}function uTe(i){return i.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var tD=function(){function i(r,t,e,n,a,o,s,l,u,c,d){p(this,i),this.url=r,this.params=t,this.queryParams=e,this.fragment=n,this.data=a,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}return v(i,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Xp(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Xp(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(n){return n.toString()}).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}}]),i}(),gj=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).url=e,ZO(Xe(a),n),a}return v(t,[{key:"toString",value:function(){return mj(this._root)}}]),t}(hj);function ZO(i,r){r.value._routerState=i,r.children.forEach(function(t){return ZO(i,t)})}function mj(i){var r=i.children.length>0?" { ".concat(i.children.map(mj).join(", ")," } "):"";return"".concat(i.value).concat(r)}function YO(i){if(i.snapshot){var r=i.snapshot,t=i._futureSnapshot;i.snapshot=t,au(r.queryParams,t.queryParams)||i.queryParams.next(t.queryParams),r.fragment!==t.fragment&&i.fragment.next(t.fragment),au(r.params,t.params)||i.params.next(t.params),function j1e(i,r){if(i.length!==r.length)return!1;for(var t=0;tn;){if(a-=n,!(e=e.parent))throw new Error("Invalid number of '../'");n=e.segments.length}return new eI(e,!1,n-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,i.numberOfDoubleDots)}(a,r,i),s=o.processChildren?iD(o.segmentGroup,o.index,a.commands):kj(o.segmentGroup,o.index,a.commands);return JO(r.root,o.segmentGroup,s,e,n)}function nD(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function Ay(i){return"object"==typeof i&&null!=i&&i.outlets}function JO(i,r,t,e,n){var a={};if(e&&ga(e,function(s,l){a[l]=Array.isArray(s)?s.map(function(u){return"".concat(u)}):"".concat(s)}),i===r)return new uf(t,a,n);var o=_j(i,r,t);return new uf(o,a,n)}function _j(i,r,t){var e={};return ga(i.children,function(n,a){e[a]=n===r?t:_j(n,r,t)}),new Rn(i.segments,e)}var yj=function(){function i(r,t,e){if(p(this,i),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=e,r&&e.length>0&&nD(e[0]))throw new Error("Root segment cannot have matrix parameters");var n=e.find(Ay);if(n&&n!==tj(e))throw new Error("{outlets:{}} has to be the last command")}return v(i,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),i}(),eI=v(function i(r,t,e){p(this,i),this.segmentGroup=r,this.processChildren=t,this.index=e});function kj(i,r,t){if(i||(i=new Rn([],{})),0===i.segments.length&&i.hasChildren())return iD(i,r,t);var e=function _Te(i,r,t){for(var e=0,n=r,a={match:!1,pathIndex:0,commandIndex:0};n=t.length)return a;var o=i.segments[n],s=t[e];if(Ay(s))break;var l="".concat(s),u=e0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!bj(l,u,o))return a;e+=2}else{if(!bj(l,{},o))return a;e++}n++}return{match:!0,pathIndex:n,commandIndex:e}}(i,r,t),n=t.slice(e.commandIndex);if(e.match&&e.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},Ej):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};var a=(r.matcher||K1e)(t,i,r);if(!a)return Object.assign({},Ej);var o={};ga(a.posParams,function(l,u){o[u]=l.path});var s=a.consumed.length>0?Object.assign(Object.assign({},o),a.consumed[a.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:s,positionalParamSegments:null!==(e=a.posParams)&&void 0!==e?e:{}}}function aD(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&NTe(i,t,e)){var a=new Rn(r,ITe(i,r,e,new Rn(t,i.children)));return a._sourceSegment=i,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&FTe(i,t,e)){var o=new Rn(i.segments,OTe(i,r,t,e,i.children,n));return o._sourceSegment=i,o._segmentIndexShift=r.length,{segmentGroup:o,slicedSegments:t}}var s=new Rn(i.segments,i.children);return s._sourceSegment=i,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}function OTe(i,r,t,e,n,a){var l,o={},s=In(e);try{for(s.s();!(l=s.n()).done;){var u=l.value;if(oD(i,t,u)&&!n[Os(u)]){var c=new Rn([],{});c._sourceSegment=i,c._segmentIndexShift="legacy"===a?i.segments.length:r.length,o[Os(u)]=c}}}catch(d){s.e(d)}finally{s.f()}return Object.assign(Object.assign({},n),o)}function ITe(i,r,t,e){var n={};n[bn]=e,e._sourceSegment=i,e._segmentIndexShift=r.length;var o,a=In(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Os(s)!==bn){var l=new Rn([],{});l._sourceSegment=i,l._segmentIndexShift=r.length,n[Os(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return n}function NTe(i,r,t){return t.some(function(e){return oD(i,r,e)&&Os(e)!==bn})}function FTe(i,r,t){return t.some(function(e){return oD(i,r,e)})}function oD(i,r,t){return(!(i.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function Tj(i,r,t,e){return!!(Os(i)===e||e!==bn&&oD(r,t,i))&&("**"===i.path||rD(r,i,t).matched)}function Aj(i,r,t){return 0===r.length&&!i.children[t]}var sD=v(function i(r){p(this,i),this.segmentGroup=r||null}),xj=v(function i(r){p(this,i),this.urlTree=r});function Oy(i){return ky(new sD(i))}function Mj(i){return ky(new xj(i))}function LTe(i){return ky(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(i,"'")))}var GTe=function(){function i(r,t,e,n,a){p(this,i),this.configLoader=t,this.urlSerializer=e,this.urlTree=n,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(hc)}return v(i,[{key:"apply",value:function(){var t=this,e=aD(this.urlTree.root,[],[],this.config).segmentGroup,n=new Rn(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,bn).pipe(We(function(s){return t.createUrlTree(aI(s),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(cl(function(s){if(s instanceof xj)return t.allowRedirects=!1,t.match(s.urlTree);throw s instanceof sD?t.noMatchError(s):s}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,bn).pipe(We(function(o){return e.createUrlTree(aI(o),t.queryParams,t.fragment)})).pipe(cl(function(o){throw o instanceof sD?e.noMatchError(o):o}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var a=t.segments.length>0?new Rn([],De({},bn,t)):t;return new uf(a,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,a){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(We(function(o){return new Rn([],o)})):this.expandSegment(t,n,e,n.segments,a,!0)}},{key:"expandChildren",value:function(t,e,n){for(var a=this,o=[],s=0,l=Object.keys(n.children);s=2;return function(e){return e.pipe(i?Ue(function(n,a){return i(n,a,e)}):zl,KO(1),t?W6(r):j6(function(){return new Xw}))}}())}},{key:"expandSegment",value:function(t,e,n,a,o,s){var l=this;return wi(n).pipe(nu(function(u){return l.expandSegmentAgainstRoute(t,e,n,u,a,o,s).pipe(cl(function(d){if(d instanceof sD)return lt(null);throw d}))}),qp(function(u){return!!u}),cl(function(u,c){if(u instanceof Xw||"EmptyError"===u.name)return Aj(e,a,o)?lt(new Rn([],{})):Oy(e);throw u}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,a,o,s,l){return Tj(a,e,o,s)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(t,e,a,o,s):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,a,o,s):Oy(e):Oy(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,a,o,s){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,a,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,a,o,s)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,a){var o=this,s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Mj(s):this.lineralizeSegments(n,s).pipe(Bi(function(l){var u=new Rn(l,{});return o.expandSegment(t,u,e,l,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,a,o,s){var l=this,u=rD(e,a,o),d=u.consumedSegments,h=u.remainingSegments,f=u.positionalParamSegments;if(!u.matched)return Oy(e);var g=this.applyRedirectCommands(d,a.redirectTo,f);return a.redirectTo.startsWith("/")?Mj(g):this.lineralizeSegments(a,g).pipe(Bi(function(_){return l.expandSegment(t,e,n,_.concat(h),s,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,a,o){var s=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?lt(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(We(function(g){return n._loadedConfig=g,new Rn(a,{})})):lt(new Rn(a,{}));var u=rD(e,n,a),d=u.consumedSegments,h=u.remainingSegments;return u.matched?this.getChildConfig(t,n,a).pipe(Bi(function(g){var _=g.module,C=g.routes,w=aD(e,d,h,C),E=w.segmentGroup,M=w.slicedSegments,R=new Rn(E.segments,E.children);if(0===M.length&&R.hasChildren())return s.expandChildren(_,C,R).pipe(We(function(ee){return new Rn(d,ee)}));if(0===C.length&&0===M.length)return lt(new Rn(d,{}));var V=Os(n)===o;return s.expandSegment(_,R,C,M,V?bn:o,!0).pipe(We(function(ee){return new Rn(d.concat(ee.segments),ee.children)}))})):Oy(e)}},{key:"getChildConfig",value:function(t,e,n){var a=this;return e.children?lt(new nI(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?lt(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Bi(function(o){return o?a.configLoader.load(t.injector,e).pipe(We(function(s){return e._loadedConfig=s,s})):function PTe(i){return ky(WO("Cannot load children because the guard of the route \"path: '".concat(i.path,"'\" returned false")))}(e)})):lt(new nI([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var a=this,o=e.canLoad;if(!o||0===o.length)return lt(!0);var s=o.map(function(l){var c,u=t.get(l);if(function wTe(i){return i&&Ed(i.canLoad)}(u))c=u.canLoad(e,n);else{if(!Ed(u))throw new Error("Invalid CanLoad guard");c=u(e,n)}return ou(c)});return lt(s).pipe(My(),At(function(l){if(df(l)){var u=WO('Redirecting to "'.concat(a.urlSerializer.serialize(l),'"'));throw u.url=l,u}}),We(function(l){return!0===l}))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],a=e.root;;){if(n=n.concat(a.segments),0===a.numberOfChildren)return lt(n);if(a.numberOfChildren>1||!a.children[bn])return LTe(t.redirectTo);a=a.children[bn]}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,a){var o=this.createSegmentGroup(t,e.root,n,a);return new uf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return ga(t,function(a,o){if("string"==typeof a&&a.startsWith(":")){var l=a.substring(1);n[o]=e[l]}else n[o]=a}),n}},{key:"createSegmentGroup",value:function(t,e,n,a){var o=this,s=this.createSegments(t,e.segments,n,a),l={};return ga(e.children,function(u,c){l[c]=o.createSegmentGroup(t,u,n,a)}),new Rn(s,l)}},{key:"createSegments",value:function(t,e,n,a){var o=this;return e.map(function(s){return s.path.startsWith(":")?o.findPosParam(t,s,a):o.findOrReturn(s,n)})}},{key:"findPosParam",value:function(t,e,n){var a=n[e.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return a}},{key:"findOrReturn",value:function(t,e){var o,n=0,a=In(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s.path===t.path)return e.splice(n),s;n++}}catch(l){a.e(l)}finally{a.f()}return t}}]),i}();function aI(i){for(var r={},t=0,e=Object.keys(i.children);t0||o.hasChildren())&&(r[n]=o)}return function VTe(i){if(1===i.numberOfChildren&&i.children[bn]){var r=i.children[bn];return new Rn(i.segments.concat(r.segments),r.children)}return i}(new Rn(i.segments,r))}var Rj=v(function i(r){p(this,i),this.path=r,this.route=this.path[this.path.length-1]}),lD=v(function i(r,t){p(this,i),this.component=r,this.route=t});function zTe(i,r,t){var e=i._root;return Iy(e,r?r._root:null,t,[e.value])}function uD(i,r,t){var e=function KTe(i){if(!i)return null;for(var r=i.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(e?e.module.injector:t).get(i)}function Iy(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Zp(r);return i.children.forEach(function(o){jTe(o,a[o.value.outlet],t,e.concat([o.value]),n),delete a[o.value.outlet]}),ga(a,function(o,s){return Ny(o,t.getContext(s),n)}),n}function jTe(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=i.value,o=r?r.value:null,s=t?t.getContext(i.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var l=WTe(o,a,a.routeConfig.runGuardsAndResolvers);l?n.canActivateChecks.push(new Rj(e)):(a.data=o.data,a._resolvedData=o._resolvedData),Iy(i,r,a.component?s?s.children:null:t,e,n),l&&s&&s.outlet&&s.outlet.isActivated&&n.canDeactivateChecks.push(new lD(s.outlet.component,o))}else o&&Ny(r,s,n),n.canActivateChecks.push(new Rj(e)),Iy(i,null,a.component?s?s.children:null:t,e,n);return n}function WTe(i,r,t){if("function"==typeof t)return t(i,r);switch(t){case"pathParamsChange":return!cf(i.url,r.url);case"pathParamsOrQueryParamsChange":return!cf(i.url,r.url)||!au(i.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!QO(i,r)||!au(i.queryParams,r.queryParams);default:return!QO(i,r)}}function Ny(i,r,t){var e=Zp(i),n=i.value;ga(e,function(a,o){Ny(a,n.component?r?r.children.getContext(o):null:r,t)}),t.canDeactivateChecks.push(new lD(n.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,n))}var tAe=v(function i(){p(this,i)});function Oj(i){return new An(function(r){return r.error(i)})}var iAe=function(){function i(r,t,e,n,a,o){p(this,i),this.rootComponentType=r,this.config=t,this.urlTree=e,this.url=n,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return v(i,[{key:"recognize",value:function(){var t=aD(this.urlTree.root,[],[],this.config.filter(function(s){return void 0===s.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,bn);if(null===e)return null;var n=new tD([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},bn,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new mc(n,e),o=new gj(this.url,a);return this.inheritParamsAndData(o._root),o}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,a=pj(n,this.paramsInheritanceStrategy);n.params=Object.freeze(a.params),n.data=Object.freeze(a.data),t.children.forEach(function(o){return e.inheritParamsAndData(o)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],a=0,o=Object.keys(e.children);a0?tj(n).parameters:{};o=new tD(n,u,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Lj(t),Os(t),t.component,t,Nj(e),Fj(e)+n.length,Pj(t))}else{var c=rD(e,t,n);if(!c.matched)return null;l=c.remainingSegments,o=new tD(s=c.consumedSegments,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Lj(t),Os(t),t.component,t,Nj(e),Fj(e)+s.length,Pj(t))}var d=function aAe(i){return i.children?i.children:i.loadChildren?i._loadedConfig.routes:[]}(t),h=aD(e,s,l,d.filter(function(E){return void 0===E.redirectTo}),this.relativeLinkResolution),f=h.segmentGroup,g=h.slicedSegments;if(0===g.length&&f.hasChildren()){var _=this.processChildren(d,f);return null===_?null:[new mc(o,_)]}if(0===d.length&&0===g.length)return[new mc(o,[])];var C=Os(t)===a,w=this.processSegment(d,f,g,C?bn:a);return null===w?null:[new mc(o,w)]}}]),i}();function Ij(i){var n,r=[],t=new Set,e=In(i);try{var a=function(){var h=n.value;if(!function oAe(i){var r=i.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(h))return r.push(h),"continue";var g,f=r.find(function(_){return h.value.routeConfig===_.value.routeConfig});void 0!==f?((g=f.children).push.apply(g,Ae(h.children)),t.add(f)):r.push(h)};for(e.s();!(n=e.n()).done;)a()}catch(d){e.e(d)}finally{e.f()}var l,s=In(t);try{for(s.s();!(l=s.n()).done;){var u=l.value,c=Ij(u.children);r.push(new mc(u.value,c))}}catch(d){s.e(d)}finally{s.f()}return r.filter(function(d){return!t.has(d)})}function Nj(i){for(var r=i;r._sourceSegment;)r=r._sourceSegment;return r}function Fj(i){for(var r=i,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function Lj(i){return i.data||{}}function Pj(i){return i.resolve||{}}function Bj(i){return[].concat(Ae(Object.keys(i)),Ae(Object.getOwnPropertySymbols(i)))}function oI(i){return Nn(function(r){var t=i(r);return t?wi(t).pipe(We(function(){return r})):lt(r)})}var hAe=v(function i(){p(this,i)}),fAe=function(){function i(){p(this,i)}return v(i,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),i}(),vAe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(fAe),sI=new Dt("ROUTES"),Gj=function(){function i(r,t,e,n){p(this,i),this.injector=r,this.compiler=t,this.onLoadStartListener=e,this.onLoadEndListener=n}return v(i,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var o=this.loadModuleFactory(e.loadChildren).pipe(We(function(s){n.onLoadEndListener&&n.onLoadEndListener(e);var l=s.create(t);return new nI(ej(l.injector.get(sI,void 0,tn.Self|tn.Optional)).map(rI),l)}),cl(function(s){throw e._loader$=void 0,s}));return e._loader$=new S6(o,function(){return new Ot}).pipe(b6()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return ou(t()).pipe(Bi(function(n){return n instanceof x5?lt(n):wi(e.compiler.compileModuleAsync(n))}))}}]),i}(),pAe=v(function i(){p(this,i)}),gAe=function(){function i(){p(this,i)}return v(i,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),i}();function mAe(i){throw i}function _Ae(i,r,t){return r.parse("/")}function Vj(i,r){return lt(null)}var yAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},kAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Na=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=a,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ot,this.errorHandler=mAe,this.malformedUriErrorHandler=_Ae,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Vj,afterPreactivation:Vj},this.urlHandlingStrategy=new gAe,this.routeReuseStrategy=new vAe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(hc),this.console=o.get(tSe);var h=o.get(be);this.isNgZoneEnabled=h instanceof be&&be.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function W1e(){return new uf(new Rn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Gj(o,s,function(g){return u.triggerEvent(new X6(g))},function(g){return u.triggerEvent(new Z6(g))}),this.routerState=vj(this.currentUrlTree,this.rootComponentType),this.transitions=new xi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return v(r,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var n=this,a=this.events;return e.pipe(Ue(function(o){return 0!==o.id}),We(function(o){return Object.assign(Object.assign({},o),{extractedUrl:n.urlHandlingStrategy.extract(o.rawUrl)})}),Nn(function(o){var s=!1,l=!1;return lt(o).pipe(At(function(u){n.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:n.lastSuccessfulNavigation?Object.assign(Object.assign({},n.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Nn(function(u){var c=n.browserUrlTree.toString(),d=!n.navigated||u.extractedUrl.toString()!==c||c!==n.currentUrlTree.toString();if(("reload"===n.onSameUrlNavigation||d)&&n.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Uj(u.source)&&(n.browserUrlTree=u.extractedUrl),lt(u).pipe(Nn(function(N){var V=n.transitions.getValue();return a.next(new jO(N.id,n.serializeUrl(N.extractedUrl),N.source,N.restoredState)),V!==n.transitions.getValue()?po:Promise.resolve(N)}),function UTe(i,r,t,e){return Nn(function(n){return function BTe(i,r,t,e,n){return new GTe(i,r,t,e,n).apply()}(i,r,t,n.extractedUrl,e).pipe(We(function(a){return Object.assign(Object.assign({},n),{urlAfterRedirects:a})}))})}(n.ngModule.injector,n.configLoader,n.urlSerializer,n.config),At(function(N){n.currentNavigation=Object.assign(Object.assign({},n.currentNavigation),{finalUrl:N.urlAfterRedirects})}),function sAe(i,r,t,e,n){return Bi(function(a){return function nAe(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new iAe(i,r,t,e,n,a).recognize();return null===o?Oj(new tAe):lt(o)}catch(s){return Oj(s)}}(i,r,a.urlAfterRedirects,t(a.urlAfterRedirects),e,n).pipe(We(function(o){return Object.assign(Object.assign({},a),{targetSnapshot:o})}))})}(n.rootComponentType,n.config,function(N){return n.serializeUrl(N)},n.paramsInheritanceStrategy,n.relativeLinkResolution),At(function(N){if("eager"===n.urlUpdateStrategy){if(!N.extras.skipLocationChange){var V=n.urlHandlingStrategy.merge(N.urlAfterRedirects,N.rawUrl);n.setBrowserUrl(V,N)}n.browserUrlTree=N.urlAfterRedirects}var U=new I1e(N.id,n.serializeUrl(N.extractedUrl),n.serializeUrl(N.urlAfterRedirects),N.targetSnapshot);a.next(U)}));if(d&&n.rawUrlTree&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){var _=u.extractedUrl,C=u.source,w=u.restoredState,E=u.extras,M=new jO(u.id,n.serializeUrl(_),C,w);a.next(M);var R=vj(_,n.rootComponentType).snapshot;return lt(Object.assign(Object.assign({},u),{targetSnapshot:R,urlAfterRedirects:_,extras:Object.assign(Object.assign({},E),{skipLocationChange:!1,replaceUrl:!1})}))}return n.rawUrlTree=u.rawUrl,u.resolve(null),po}),oI(function(u){var g=u.extras;return n.hooks.beforePreactivation(u.targetSnapshot,{navigationId:u.id,appliedUrlTree:u.extractedUrl,rawUrlTree:u.rawUrl,skipLocationChange:!!g.skipLocationChange,replaceUrl:!!g.replaceUrl})}),At(function(u){var c=new N1e(u.id,n.serializeUrl(u.extractedUrl),n.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);n.triggerEvent(c)}),We(function(u){return Object.assign(Object.assign({},u),{guards:zTe(u.targetSnapshot,u.currentSnapshot,n.rootContexts)})}),function $Te(i,r){return Bi(function(t){var e=t.targetSnapshot,n=t.currentSnapshot,a=t.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?lt(Object.assign(Object.assign({},t),{guardsResult:!0})):function qTe(i,r,t,e){return wi(i).pipe(Bi(function(n){return function eAe(i,r,t,e,n){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return lt(!0);var o=a.map(function(s){var u,l=uD(s,r,n);if(function TTe(i){return i&&Ed(i.canDeactivate)}(l))u=ou(l.canDeactivate(i,r,t,e));else{if(!Ed(l))throw new Error("Invalid CanDeactivate guard");u=ou(l(i,r,t,e))}return u.pipe(qp())});return lt(o).pipe(My())}(n.component,n.route,t,r,e)}),qp(function(n){return!0!==n},!0))}(s,e,n,i).pipe(Bi(function(l){return l&&function STe(i){return"boolean"==typeof i}(l)?function XTe(i,r,t,e){return wi(r).pipe(nu(function(n){return sf(function YTe(i,r){return null!==i&&r&&r(new B1e(i)),lt(!0)}(n.route.parent,e),function ZTe(i,r){return null!==i&&r&&r(new V1e(i)),lt(!0)}(n.route,e),function JTe(i,r,t){var e=r[r.length-1],n=r.slice(0,r.length-1).reverse().map(function(o){return function HTe(i){var r=i.routeConfig?i.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:i,guards:r}:null}(o)}).filter(function(o){return null!==o}),a=n.map(function(o){return jp(function(){var s=o.guards.map(function(l){var c,u=uD(l,o.node,t);if(function ETe(i){return i&&Ed(i.canActivateChild)}(u))c=ou(u.canActivateChild(e,i));else{if(!Ed(u))throw new Error("Invalid CanActivateChild guard");c=ou(u(e,i))}return c.pipe(qp())});return lt(s).pipe(My())})});return lt(a).pipe(My())}(i,n.path,t),function QTe(i,r,t){var e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||0===e.length)return lt(!0);var n=e.map(function(a){return jp(function(){var s,o=uD(a,r,t);if(function DTe(i){return i&&Ed(i.canActivate)}(o))s=ou(o.canActivate(r,i));else{if(!Ed(o))throw new Error("Invalid CanActivate guard");s=ou(o(r,i))}return s.pipe(qp())})});return lt(n).pipe(My())}(i,n.route,t))}),qp(function(n){return!0!==n},!0))}(e,o,i,r):lt(l)}),We(function(l){return Object.assign(Object.assign({},t),{guardsResult:l})}))})}(n.ngModule.injector,function(u){return n.triggerEvent(u)}),At(function(u){if(df(u.guardsResult)){var c=WO('Redirecting to "'.concat(n.serializeUrl(u.guardsResult),'"'));throw c.url=u.guardsResult,c}var d=new F1e(u.id,n.serializeUrl(u.extractedUrl),n.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);n.triggerEvent(d)}),Ue(function(u){return!!u.guardsResult||(n.restoreHistory(u),n.cancelNavigationTransition(u,""),!1)}),oI(function(u){if(u.guards.canActivateChecks.length)return lt(u).pipe(At(function(c){var d=new L1e(c.id,n.serializeUrl(c.extractedUrl),n.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);n.triggerEvent(d)}),Nn(function(c){var d=!1;return lt(c).pipe(function lAe(i,r){return Bi(function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return lt(t);var a=0;return wi(n).pipe(nu(function(o){return function uAe(i,r,t,e){return function cAe(i,r,t,e){var n=Bj(i);if(0===n.length)return lt({});var a={};return wi(n).pipe(Bi(function(o){return function dAe(i,r,t,e){var n=uD(i,r,e);return ou(n.resolve?n.resolve(r,t):n(r,t))}(i[o],r,t,e).pipe(At(function(s){a[o]=s}))}),KO(1),Bi(function(){return Bj(a).length===n.length?lt(a):po}))}(i._resolve,i,r,e).pipe(We(function(a){return i._resolvedData=a,i.data=Object.assign(Object.assign({},i.data),pj(i,t).resolve),null}))}(o.route,e,i,r)}),At(function(){return a++}),KO(1),Bi(function(o){return a===n.length?lt(t):po}))})}(n.paramsInheritanceStrategy,n.ngModule.injector),At({next:function(){return d=!0},complete:function(){d||(n.restoreHistory(c),n.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),At(function(c){var d=new P1e(c.id,n.serializeUrl(c.extractedUrl),n.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);n.triggerEvent(d)}))}),oI(function(u){var g=u.extras;return n.hooks.afterPreactivation(u.targetSnapshot,{navigationId:u.id,appliedUrlTree:u.extractedUrl,rawUrlTree:u.rawUrl,skipLocationChange:!!g.skipLocationChange,replaceUrl:!!g.replaceUrl})}),We(function(u){var c=function cTe(i,r,t){var e=Ty(i,r._root,t?t._root:void 0);return new fj(e,r)}(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return Object.assign(Object.assign({},u),{targetRouterState:c})}),At(function(u){n.currentUrlTree=u.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),n.routerState=u.targetRouterState,"deferred"===n.urlUpdateStrategy&&(u.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,u),n.browserUrlTree=u.urlAfterRedirects)}),function(r,t,e){return We(function(n){return new CTe(t,n.targetRouterState,n.currentRouterState,e).activate(r),n})}(n.rootContexts,n.routeReuseStrategy,function(u){return n.triggerEvent(u)}),At({next:function(){s=!0},complete:function(){s=!0}}),$6(function(){var u;if(!s&&!l){var c="Navigation ID ".concat(o.id," is not equal to the current navigation id ").concat(n.navigationId);n.cancelNavigationTransition(o,c)}(null===(u=n.currentNavigation)||void 0===u?void 0:u.id)===o.id&&(n.currentNavigation=null)}),cl(function(u){if(l=!0,function H1e(i){return i&&i[Q6]}(u)){var c=df(u.url);c||(n.navigated=!0,n.restoreHistory(o,!0));var d=new q6(o.id,n.serializeUrl(o.extractedUrl),u.message);a.next(d),c?setTimeout(function(){var f=n.urlHandlingStrategy.merge(u.url,n.rawUrlTree),g={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||Uj(o.source)};n.scheduleNavigation(f,"imperative",null,g,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{n.restoreHistory(o,!0);var h=new O1e(o.id,n.serializeUrl(o.extractedUrl),u);a.next(h);try{o.resolve(n.errorHandler(u))}catch(f){o.reject(f)}}return po}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(n){var a="popstate"===n.type?"popstate":"hashchange";"popstate"===a&&setTimeout(function(){var o,s={replaceUrl:!0},l=(null===(o=n.state)||void 0===o?void 0:o.navigationId)?n.state:null;if(l){var u=Object.assign({},l);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(s.state=u)}var c=e.parseUrl(n.url);e.scheduleNavigation(c,a,l,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){wj(e),this.config=e.map(rI),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.relativeTo,o=n.queryParams,s=n.fragment,l=n.queryParamsHandling,u=n.preserveFragment,c=a||this.routerState.root,d=u?this.currentUrlTree.fragment:s,h=null;switch(l){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}return null!==h&&(h=this.removeEmptyProps(h)),fTe(c,this.currentUrlTree,e,h,null!=d?d:null)}},{key:"navigateByUrl",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=df(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,n)}},{key:"navigate",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return CAe(e),this.navigateByUrl(this.createUrlTree(e,n),n)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var n;try{n=this.urlSerializer.parse(e)}catch(a){n=this.malformedUriErrorHandler(a,this.urlSerializer,e)}return n}},{key:"isActive",value:function(e,n){var a;if(a=!0===n?Object.assign({},yAe):!1===n?Object.assign({},kAe):n,df(e))return ij(this.currentUrlTree,e,a);var o=this.parseUrl(e);return ij(this.currentUrlTree,o,a)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(n,a){var o=e[a];return null!=o&&(n[a]=o),n},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(n){e.navigated=!0,e.lastSuccessfulId=n.id,e.currentPageId=n.targetPageId,e.events.next(new wy(n.id,e.serializeUrl(n.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,n.resolve(!0)},function(n){e.console.warn("Unhandled Navigation Error: ".concat(n))})}},{key:"scheduleNavigation",value:function(e,n,a,o,s){var l,u,c,d,h;if(this.disposed)return Promise.resolve(!1);s?(c=s.resolve,d=s.reject,h=s.promise):h=new Promise(function(C,w){c=C,d=w});var g,f=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),g=a&&a.\u0275routerPageId?a.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):g=0,this.setTransition({id:f,targetPageId:g,source:n,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:c,reject:d,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(function(C){return Promise.reject(C)})}},{key:"setBrowserUrl",value:function(e,n){var a=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(a)||n.extras.replaceUrl?this.location.replaceState(a,"",o):this.location.go(a,"",o)}},{key:"restoreHistory",value:function(e){var a,o,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-e.targetPageId,l="popstate"===e.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);l&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,n){var a=new q6(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(a),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":n}:{navigationId:e}}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function CAe(i){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};p(this,r),this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return v(r,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(n){n instanceof jO?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=n.navigationTrigger,e.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof wy&&(e.lastId=n.id,e.scheduleScrollEvent(n,e.router.parseUrl(n.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(n){n instanceof Y6&&(n.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,n){this.router.triggerEvent(new Y6(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hf=new Dt("ROUTER_CONFIGURATION"),Wj=new Dt("ROUTER_FORROOT_GUARD"),wAe=[LR,{provide:sj,useClass:lj},{provide:Na,useFactory:function xAe(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=new Na(null,i,r,t,e,n,ej(a));return s&&(u.urlHandlingStrategy=s),l&&(u.routeReuseStrategy=l),MAe(o,u),o.enableTracing&&u.events.subscribe(function(c){var d,h;null===(d=console.group)||void 0===d||d.call(console,"Router Event: ".concat(c.constructor.name)),console.log(c.toString()),console.log(c),null===(h=console.groupEnd)||void 0===h||h.call(console)}),u},deps:[sj,Ry,LR,Jn,h4,sI,hf,[pAe,new md],[hAe,new md]]},Ry,{provide:Yp,useFactory:function RAe(i){return i.routerState.root},deps:[Na]},jj,Kj,SAe,{provide:hf,useValue:{enableTracing:!1}}];function DAe(){return new m4("Router",Na)}var $j=function(){var i=function(){function r(t,e){p(this,r)}return v(r,null,[{key:"forRoot",value:function(e,n){return{ngModule:r,providers:[wAe,qj(e),{provide:Wj,useFactory:AAe,deps:[[Na,new md,new F_]]},{provide:hf,useValue:n||{}},{provide:Bp,useFactory:TAe,deps:[Jh,[new IS(FR),new md],hf]},{provide:uI,useFactory:EAe,deps:[Na,nDe,hf]},{provide:Hj,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Kj},{provide:m4,multi:!0,useFactory:DAe},[cI,{provide:cw,multi:!0,useFactory:OAe,deps:[cI]},{provide:Xj,useFactory:IAe,deps:[cI]},{provide:d4,multi:!0,useExisting:Xj}]]}}},{key:"forChild",value:function(e){return{ngModule:r,providers:[qj(e)]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Wj,8),oe(Na,8))},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}();function EAe(i,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new uI(i,r,t)}function TAe(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new jSe(i,r):new L4(i,r)}function AAe(i){return"guarded"}function qj(i){return[{provide:Lge,multi:!0,useValue:i},{provide:sI,multi:!0,useValue:i}]}function MAe(i,r){i.errorHandler&&(r.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(r.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(r.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(r.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(r.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(r.canceledNavigationResolution=i.canceledNavigationResolution)}var cI=function(){var i=function(){function r(t){p(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ot}return v(r,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(zSe,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var a=null,o=new Promise(function(u){return a=u}),s=e.injector.get(Na),l=e.injector.get(hf);return"disabled"===l.initialNavigation?(s.setUpLocationChangeListener(),a(!0)):"enabled"===l.initialNavigation||"enabledBlocking"===l.initialNavigation?(s.hooks.afterPreactivation=function(){return e.initNavigation?lt(null):(e.initNavigation=!0,a(!0),e.resultOfPreactivationDone)},s.initialNavigation()):a(!0),o})}},{key:"bootstrapListener",value:function(e){var n=this.injector.get(hf),a=this.injector.get(jj),o=this.injector.get(uI),s=this.injector.get(Na),l=this.injector.get(dy);e===l.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void 0===n.initialNavigation)&&s.initialNavigation(),a.setUpPreloading(),o.init(),s.resetRootComponentType(l.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function OAe(i){return i.appInitializer.bind(i)}function IAe(i){return i.bootstrapListener.bind(i)}var Xj=new Dt("Router Initializer"),FAe=function(){return["./dashboard"]},LAe=function(){return["./issues"]},PAe=function(){return["./profile"]},BAe=function(){return["./signin"]};function GAe(i,r){if(1&i&&(A(0,"div",6)(1,"div",7)(2,"h1",8),te(3,"Issues"),x(),A(4,"p",9),te(5,"Sample Dashboard"),x(),z(6,"hr",10),A(7,"p",11),te(8,"Project"),x(),A(9,"ul",12)(10,"li",13)(11,"a",14),te(12,"Dashboard"),x()(),A(13,"li",15)(14,"a",14),te(15,"Issues"),x()()(),A(16,"p",11),te(17,"Account"),x(),A(18,"ul",12)(19,"li",16)(20,"a",14),te(21,"My Profile"),x()(),A(22,"li",17)(23,"a",14),te(24,"Sign Out"),x()()(),A(25,"p",18),te(26,"Resources"),x(),A(27,"ul",12)(28,"li",19)(29,"a",20),te(30,"Download on Github"),x()(),A(31,"li",21)(32,"a",22),te(33,"Documentation"),x()()()(),A(34,"div",23),z(35,"hr",24),A(36,"div",25)(37,"p"),te(38),z(39,"br"),A(40,"a",26),te(41,"Progress Software Corporation"),x(),te(42," and/or its subsidiaries or affiliates."),x(),A(43,"p"),te(44,"All Rights Reserved."),x()()()()),2&i){var t=D();y("@toggleNav",t.navState),k(11),y("routerLink",wt(6,FAe)),k(3),y("routerLink",wt(7,LAe)),k(6),y("routerLink",wt(8,PAe)),k(3),y("routerLink",wt(9,BAe)),k(15),Nt("Copyright \xa9 ",t.year,",")}}var VAe=function(){var i=function(){function r(t){p(this,r),this.router=t,this.year=(new Date).getFullYear(),this.navState=window.innerWidth<1200?"collapsed":"expanded"}return v(r,[{key:"id",get:function(){return"app"}},{key:"appClass",get:function(){return"app container-fluid"}},{key:"onResize",value:function(e){this.navState=e.target.innerWidth<1200?"collapsed":"expanded"}},{key:"showNav",value:function(){return"/signin"!==this.router.url}},{key:"toggleNav",value:function(){this.navState="expanded"===this.navState?"collapsed":"expanded"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-main-menu"]],hostVars:3,hostBindings:function(t,e){1&t&&Q("resize",function(a){return e.onResize(a)},!1,T3),2&t&&(ie("id",e.id),_r(e.appClass))},decls:7,vars:1,consts:[[1,"row"],["id","top-bar",1,"top-bar","sticky-top","bg-white","d-xl-none","k-shadow"],["id","nav-toggle",1,"nav-toggle","d-xl-none",3,"click"],[1,"k-icon","k-i-hamburger"],["id","nav","class","sticky-top py-3 py-sm-5 k-vbox shadow col-xl-2 d-xl-flex hide",4,"ngIf"],[1,"content-wrapper","col"],["id","nav",1,"sticky-top","py-3","py-sm-5","k-vbox","shadow","col-xl-2","d-xl-flex","hide"],[1,"container"],["id","app-title",1,"mb-0"],["id","app-subtitle",1,"h4","mb-4"],[1,"k-hr"],[1,"h4","mt-3","mt-sm-5"],[1,"nav","nav-pills","flex-column"],["id","dashbaord",1,"nav-item"],["routerLinkActive","active",1,"nav-link",3,"routerLink"],["id","issues",1,"nav-item"],["id","profile",1,"nav-item"],["id","signout",1,"nav-item"],[1,"h4","mt-5"],["id","source",1,"nav-item"],["href","https://github.com/telerik/kendo-angular/tree/master/examples/projects/integration-pwa-material","target","_blank","role","button",1,"nav-link"],["id","documentation",1,"nav-item"],["href","https://www.telerik.com/kendo-angular-ui/components","target","_blank","role","button",1,"nav-link"],[1,"container","mt-sm-auto"],[1,"k-flex","k-hr","k-hr-bottom"],["id","copy"],["href","http://www.progress.com"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"span",2),Q("click",function(){return e.toggleNav()}),z(3,"span",3),x()(),T(4,GAe,45,10,"div",4),A(5,"main",5),z(6,"router-outlet"),x()()),2&t&&(k(4),y("ngIf",e.showNav()))},directives:[qe,cD,zj,iI],encapsulation:2,data:{animation:[ef("toggleNav",[Cd("collapsed, void",Lt({transform:"translateX(-100%)"})),Cd("expanded",Lt({transform:"translateX(0)"})),iu("collapsed <=> expanded",[Ai(200),Ai(200)])])]}}),i}(),UAe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-maestro-app"]],decls:1,vars:0,template:function(t,e){1&t&&z(0,"app-main-menu")},directives:[VAe],encapsulation:2}),i}(),dD="https://api.github.com/repos/telerik/kendo-ui-core/issues",HAe=["6170ac11463601b547","224777b801f2e889077ca9"].join(""),Fy=new Vp({Authorization:"token ".concat(HAe)}),Jp=function(){var i=function(){function r(t){p(this,r),this.http=t}return v(r,[{key:"getGithubIssues",value:function(e){return FO(this.getIssuesUrls(e))}},{key:"getTotalIssuesCount",value:function(){return this.http.get("".concat(dD,"?since='").concat("2018-01-01T00:00:00","'"),{headers:Fy})}},{key:"getIssuesUrls",value:function(e){for(var n=e.pages,a=[],o=1;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{open:[],closed:[]},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{Enhancement:[],Others:[],"SEV: Low":[],"SEV: Medium":[],"SEV: High":[],Feature:[]},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{lowest:{close_rate:0,created_at:(new Date).toISOString()},highest:{close_rate:0,created_at:(new Date).toISOString()},average:0};p(this,i),this.active=r,this.open=t,this.closed=e,this.groupedIssues=n,this.issueTypes=a,this.typesDistribution=o,this.closeRate=s}),dI={"SEV: LOW":"#ff9800","SEV: MEDIUM":"#ff5d2a","SEV: HIGH":"#d50000",ENHANCEMENT:"#00c853",FEATURE:"#2e7d32",OTHER:"#1ca8dd","PASSED QA":"#57b45b",BUG:"#cf3257","NEEDS QA":"#bc007c",DOCUMENTATION:"#455a64",DEMO:"#673ab7",DELETED:"#f44336","IN PROGRESS":"#ffd600"},hD=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"process",value:function(e,n){var a=this.filterByMonth(r.mapIssues(e),n),o=this.groupIssues(a);return new Zj(a,o.open.length,o.closed.length,o,this.groupLabels(a),this.distribution(a),this.closeRate(o))}},{key:"flatten",value:function(e){return e.reduce(function(n,a){return n.concat(a)})}},{key:"aggregate",value:function(e,n){return e.reduce(function(a,o){return a[o[n]]=(a[o[n]]||0)+1,a},{})}},{key:"closeRate",value:function(e){var n=this.aggregate(e.closed.map(function(s){return{created_at:new Date(s.created_at).setHours(0,0,0,0)}}),"created_at"),a=this.aggregate(e.open.map(function(s){return{created_at:new Date(s.created_at).setHours(0,0,0,0)}}),"created_at"),o=Object.keys(n).map(function(s){var l=n[s]||0;return{created_at:s,close_rate:l/(l+(a[s]||0))}});return{lowest:o.reduce(function(s,l){return s.close_ratel.close_rate?s:l}),average:e.closed.length/(e.open.length+e.closed.length)}}},{key:"groupIssues",value:function(e){return e.reduce(function(n,a){return n[a.state].push(a),n},{open:[],closed:[]})}},{key:"groupLabels",value:function(e){var n=this.aggregate(this.flatten(e.map(function(d){return d.labels})),"name"),a=n["SEV: Low"]/e.length,o=n["SEV: Medium"]/e.length,s=n["SEV: High"]/e.length,l=n.Enhancement/e.length,u=n.Feature/e.length,c=1-a-o-s-l-u;return[{type:"SEV: LOW",value:parseFloat(a.toFixed(2))},{type:"SEV: MEDIUM",value:parseFloat(o.toFixed(2))},{type:"SEV: HIGH",value:parseFloat(s.toFixed(2))},{type:"ENHANCEMENT",value:parseFloat(l.toFixed(2))},{type:"FEATURE",value:parseFloat(u.toFixed(2))},{type:"OTHER",value:parseFloat(c.toFixed(2))}]}},{key:"distribution",value:function(e){var n=this;return e.map(function(a){return{created_at:new Date(a.created_at).setHours(0,0,0,0),label:n.cleanupLabels(a.labels)}}).reduce(function(a,o){return a[o.label].push({date:new Date(o.created_at),value:1}),a},{Others:[],Enhancement:[],"SEV: Low":[],"SEV: Medium":[],"SEV: High":[],Feature:[]})}},{key:"cleanupLabels",value:function(e){var n=e.filter(function(a){return"SEV: Low"===a.name||"SEV: High"===a.name||"Feature"===a.name||"Enhancement"===a.name||"SEV: Medium"===a.name}).map(function(a){return a.name});return 0===n.length?"Others":n[0]}},{key:"filterByMonth",value:function(e,n){var a=this;return e.filter(function(o){return new Date(o.created_at).getTime()>a.getMonthsRange(n).getTime()})}},{key:"filterByUsername",value:function(e,n){return this.process(e,12).active.filter(function(a){return a.assignee===n})}},{key:"getMonthsRange",value:function(e){var n=new Date;return n.setMonth(n.getMonth()-e),n}}],[{key:"mapIssues",value:function(e){return e.reduce(function(n,a){return[].concat(Ae(n),Ae(a))},[]).filter(function(n){return!n.pull_request}).map(r.mapIssue)}},{key:"mapIssue",value:function(e){return{id:e.number,title:e.title,body:e.body,author:r.mapUser(e.user),assignees:e.assignees?e.assignees.map(r.mapUser):[],state:e.state,date:new Date(e.created_at),dateClosed:e.closed_at?new Date(e.closed_at):void 0,count:1,labels:e.labels.map(r.mapLabels),milestone:e.milestone,created_at:e.created_at,assignee:e.assignee?e.assignee.login:"none"}}},{key:"mapLabels",value:function(e){var n=e.name.toUpperCase();return e.color=n in dI?dI[n]:dI.OTHER,e}},{key:"mapUser",value:function(e){return{id:e.id,name:e.login,avatarUrl:e.avatar_url,avatarUrlThumb:e.avatar_url+"&size=60"}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),eg=(od(386),function(r,t){return function(e){return t(r(e))}}),dl=function(r,t,e){return r.addEventListener&&r.addEventListener(t,e)},qa=function(r,t,e){return r&&r.removeEventListener&&r.removeEventListener(t,e)},tg=function(){},hI=function(r){return r.preventDefault()},KAe=/touch/;function ng(i){return i.type.match(KAe)?{pageX:i.changedTouches[0].pageX,pageY:i.changedTouches[0].pageY,clientX:i.changedTouches[0].clientX,clientY:i.changedTouches[0].clientY,type:i.type,originalEvent:i,isTouch:!0}:{pageX:i.pageX,pageY:i.pageY,clientX:i.clientX,clientY:i.clientY,offsetX:i.offsetX,offsetY:i.offsetY,type:i.type,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,altKey:i.altKey,originalEvent:i}}var WAe=function(){var i=function(){function r(t){var e=this,n=t.press,a=void 0===n?tg:n,o=t.drag,s=void 0===o?tg:o,l=t.release,u=void 0===l?tg:l,c=t.mouseOnly,d=void 0!==c&&c;p(this,r),this._pressHandler=eg(ng,a),this._dragHandler=eg(ng,s),this._releaseHandler=eg(ng,u),this._ignoreMouse=!1,this._mouseOnly=d,this._touchstart=function(h){1===h.touches.length&&e._pressHandler(h)},this._touchmove=function(h){1===h.touches.length&&e._dragHandler(h)},this._touchend=function(h){0===h.touches.length&&1===h.changedTouches.length&&(e._releaseHandler(h),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(h){var f=h.which;f&&f>1||e._ignoreMouse||(dl(e.document,"mousemove",e._mousemove),dl(e.document,"mouseup",e._mouseup),e._pressHandler(h))},this._mousemove=function(h){e._dragHandler(h)},this._mouseup=function(h){qa(e.document,"mousemove",e._mousemove),qa(e.document,"mouseup",e._mouseup),e._releaseHandler(h)},this._pointerdown=function(h){h.isPrimary&&0===h.button&&(dl(e.document,"pointermove",e._pointermove),dl(e.document,"pointerup",e._pointerup),dl(e.document,"pointercancel",e._pointerup),dl(e.document,"contextmenu",hI),e._pressHandler(h))},this._pointermove=function(h){h.isPrimary&&e._dragHandler(h)},this._pointerup=function(h){h.isPrimary&&(qa(e.document,"pointermove",e._pointermove),qa(e.document,"pointerup",e._pointerup),qa(e.document,"pointercancel",e._pointerup),qa(e.document,"contextmenu",hI),e._releaseHandler(h))}}return v(r,[{key:"document",get:function(){return this._element?this._element.ownerDocument:document}},{key:"bindTo",value:function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())}},{key:"_bindToCurrent",value:function(){var e=this._element;this._usePointers()?dl(e,"pointerdown",this._pointerdown):(dl(e,"mousedown",this._mousedown),this._mouseOnly||(dl(e,"touchstart",this._touchstart),dl(e,"touchmove",this._touchmove),dl(e,"touchend",this._touchend)))}},{key:"_unbindFromCurrent",value:function(){var e=this._element;if(this._usePointers())return qa(e,"pointerdown",this._pointerdown),qa(this.document,"pointermove",this._pointermove),qa(this.document,"pointerup",this._pointerup),qa(this.document,"contextmenu",hI),void qa(this.document,"pointercancel",this._pointerup);qa(e,"mousedown",this._mousedown),this._mouseOnly||(qa(e,"touchstart",this._touchstart),qa(e,"touchmove",this._touchmove),qa(e,"touchend",this._touchend))}},{key:"_usePointers",value:function(){return!this._mouseOnly&&r.supportPointerEvent()}},{key:"update",value:function(e){var n=e.press,o=e.drag,s=void 0===o?tg:o,l=e.release,u=void 0===l?tg:l,c=e.mouseOnly,d=void 0!==c&&c;this._pressHandler=eg(ng,void 0===n?tg:n),this._dragHandler=eg(ng,s),this._releaseHandler=eg(ng,u),this._mouseOnly=d}},{key:"destroy",value:function(){this._unbindFromCurrent(),this._element=null}}],[{key:"supportPointerEvent",value:function(){return"undefined"!=typeof window&&window.PointerEvent}}]),r}();return i.default=i,i}(),fI=WAe;function $Ae(i){return oi(function(r,t){var e=!1,n=null,a=null,o=!1,s=function(){if(null==a||a.unsubscribe(),a=null,e){e=!1;var c=n;n=null,t.next(c)}o&&t.complete()},l=function(){a=null,o&&t.complete()};r.subscribe(Wn(t,function(u){e=!0,n=u,a||Pi(i(u)).subscribe(a=Wn(t,s,l))},function(){o=!0,(!e||!a||a.closed)&&t.complete()}))})}function ff(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return $Ae(function(){return jw(i,r)})}var Ze=function(){return"undefined"!=typeof document},yn=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return!(void 0===t[r]||t[r].isFirstChange()&&e||t[r].previousValue===t[r].currentValue)},Ki=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.some(function(n){return yn(n,t,e)})},ut=function(r){return r&&r.observers.length>0},qn=function(){for(var r="",t=0;t<32;t++){var e=16*Math.random()|0;(8===t||12===t||16===t||20===t)&&(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16)}return r},$o=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.ngZone=e,this.enableDrag=!0,this.kendoPress=new O,this.kendoDrag=new O,this.kendoRelease=new O}return v(r,[{key:"ngOnInit",value:function(){this.toggleDraggable()}},{key:"ngOnChanges",value:function(e){yn("enableDrag",e)&&this.toggleDraggable()}},{key:"ngOnDestroy",value:function(){this.destroyDraggable()}},{key:"toggleDraggable",value:function(){var e=this;Ze()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new fI({drag:function(a){return e.kendoDrag.next(a)},press:function(a){return e.kendoPress.next(a)},release:function(a){return e.kendoRelease.next(a)}}),this.ngZone.runOutsideAngular(function(){return e.draggable.bindTo(e.element.nativeElement)})))}},{key:"destroyDraggable",value:function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoDraggable",""]],inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},features:[Ie]}),i}(),Ly=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),qi=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.ngZone=e,this.renderer=n,this.events={}}return v(r,[{key:"ngOnInit",value:function(){var e=this;if(this.element&&this.element.nativeElement){var n=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var a in n)n.hasOwnProperty(a)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,a,e.scope?n[a].bind(e.scope):n[a]))})}}},{key:"ngOnDestroy",value:function(){if(this.subscriptions){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:this.measure();this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0}},{key:"checkChanges",value:function(){!Ze()||0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))}},{key:"destroy",value:function(){this.resizeBatchService.cancel(this)}},{key:"checkSize",value:function(){if(this.parentElement){var t=this.measure(),e=t.width,n=t.height;if(e!==this.lastWidth||n!==this.lastHeight)return this.lastWidth=e,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}}},{key:"initSize",value:function(){var t=this.measure();this.lastWidth=t.width,this.lastHeight=t.height}},{key:"measure",value:function(){var t=0,e=0;return this.parentElement&&(e=this.parentElement.offsetHeight,t=this.parentElement.offsetWidth),{height:e,width:t}}}]),i}(),fD=function(r){var t=document.createElement("div");return t.style.cssText=r,t},pI="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",exe=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e)).element=n,o.ngZone=a,o}return v(t,[{key:"checkChanges",value:function(){2!==this.state?$(q(t.prototype),"checkChanges",this).call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)}},{key:"destroy",value:function(){if($(q(t.prototype),"destroy",this).call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var n=this.element.nativeElement;n.removeChild(this.expand),n.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}}},{key:"checkSize",value:function(){if($(q(t.prototype),"checkSize",this).call(this))return this.reset(),!0}},{key:"init",value:function(){var n=this.parentElement=this.element.nativeElement.parentElement;"static"===function(r,t){return getComputedStyle(r,null).getPropertyValue("position")}(n)&&(n.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()}},{key:"render",value:function(){var n=this.element.nativeElement;n.style.cssText=pI,n.setAttribute("dir","ltr"),this.expand=fD(pI),this.expandChild=fD("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),n.appendChild(this.expand),this.shrink=fD(pI);var a=fD("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(a),n.appendChild(this.shrink)}},{key:"reset",value:function(){var n=this.expandChild;n.style.width="100000px",n.style.height="100000px";var a=this.expand;a.scrollLeft=1e5,a.scrollTop=1e5;var o=this.shrink;o.scrollLeft=1e5,o.scrollTop=1e5}},{key:"subscribe",value:function(){var n=this;this.ngZone.runOutsideAngular(function(){n.subscription=xn(li(n.shrink,"scroll"),li(n.expand,"scroll")).subscribe(function(){n.checkSize()})})}}]),t}(eW),txe="undefined"!=typeof ResizeObserver,nW=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e)).element=n,o.ngZone=a,o}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null}},{key:"init",value:function(){var n=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(function(){n.resizeObserver=new ResizeObserver(function(){n.checkSize()}),n.resizeObserver.observe(n.parentElement)})}}],[{key:"supported",value:function(){return txe}}]),t}(eW),iW=function(){var i=function(){function r(t){p(this,r),this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return v(r,[{key:"schedule",value:function(e,n){var a=this;this.scheduled.push({instance:e,method:n}),this.subscription||this.ngZone.runOutsideAngular(function(){a.subscription=wi(a.resolvedPromise).subscribe(a.flush)})}},{key:"isScheduled",value:function(e){return Boolean(this.scheduled.find(function(n){return n.instance===e}))}},{key:"cancel",value:function(e){for(var n=this.scheduled,a=n.length,o=0;o2&&void 0!==arguments[2]&&arguments[2],o=this.key(e),s=n;if(!a){if(this.dictionary.hasOwnProperty(o))return;s=this.defaultValue(o,n)}this.dictionary[o]=s}},{key:"notifyChanges",value:function(){this.changes.next({rtl:this.rtl})}},{key:"key",value:function(e){return this.prefix+"."+e}},{key:"defaultValue",value:function(e,n){if(!this.messageService)return n;var a=this.messageService.get(e);return void 0===a?n:a}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Et),oe(rg,8),oe(Td,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),oW=["AgfZ","turOExC=","zNvUy3rPB24=","z3jVDxa=","ChvIBgLZAerHDgu=","zgf0yq==","DgLTzxn0yw1W","vM5SC2O=","rejpz2u=","DfvPvvq=","D01gsvi=","u0Xdu2y=","C2nYAxb0s2v5","Dg9mB2nHBgvtDhjPBMC=","r3bNtu8=","C2v0","ChjVzhvJDe5HBwu=","BgLJzw5ZAw5Nrg9JC1vYBa==","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","DMvYC2LVBG==","C1DHyu0=","ChjVzhvJDhm=","CNfLrgK=","uKP0uwG=","CgfYC2u=","y3DYvhq=","zxHWAxj5rgf0zq==","uMLXufK=","tM8GBgLJzw5ZzsbMB3vUzc4k","tNz1Awe=","z3jVDxbfBMq=","sK1Vvey=","zMLUza==","D2fYBG==","tfDRtxq=","CgfJA2fNzu5HBwu=","Dw5KzwzPBMvK","C3niBfO=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","ChjVzhvJDenVzgvZ","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","uhjVz3jLC3mG","tfLwDLa=","BgvUz3rO","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","uvPnu2m=","BMfTzq==","B2jQzwn0","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","zvn3tLG=","u2vLia==","s0PPBvO=","zxbwz0u=","zg9JC1vYBa==","z2v0","DhLWzq==","y29Kzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G"];!function(i,r){!function(n){for(;--n;)i.push(i.shift())}(++r)}(oW,391);var Se=function i(r,t){var e=oW[r-=0];void 0===i.IhMVZF&&(i.uAzrZg=function(o){for(var s=function(s){for(var h,f,u=String(s).replace(/=+$/,""),c="",d=0,g=0;f=u.charAt(g++);~f&&(h=d%4?64*h+f:f,d++%4)?c+=String.fromCharCode(255&h>>(-2*d&6)):0)f="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(f);return c}(o),l=[],u=0,c=s.length;u0&&(e.width-=function pxe(){if(!SI&&"undefined"!=typeof document){var i=document.createElement("div");i.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",i.innerHTML=" ",document.body.appendChild(i),SI=i.offsetWidth-i.scrollWidth,document.body.removeChild(i)}return SI}()),e}var hl=function(r){var t=r.getBoundingClientRect(),n=t.left,a=t.top;return!t.height&&!t.width&&(t=function(r){var t=r.style,e=t.display,n=t.left,a=t.position;r.style.display="",r.style.left="-10000px",r.style.position="absolute";var o=r.getBoundingClientRect();return r.style.display=e,r.style.left=n,r.style.position=a,o}(r)),{top:a,left:n,height:t.height,width:t.width}},wI=function(i,r){for(var t=[],e=i.parentNode;e&&(t.push(e),e!==r);)e=e.parentNode;return t};function mD(i){var r=pD(i),t=bI(i);return{x:t.pageXOffset||r.scrollLeft||0,y:t.pageYOffset||r.scrollTop||0}}var mW=function(i){return i===(i.ownerDocument||{}).body?mD(i):{x:i.scrollLeft,y:i.scrollTop}},DI=function(r){for(var t=r.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||pD(r)},Cxe=function(i,r){return i?mW(i):function kxe(i){var r=DI(i);return r?mW(r):{x:0,y:0}}(r)},Sxe=function(r,t){var e=bI(r),n=e.getComputedStyle(r),a=hl(r),o=t||DI(r),s=r.ownerDocument,u={top:0,left:0};if("fixed"!==n.position&&o!==s.body&&o!==s.documentElement){var c=e.getComputedStyle(o);(u=hl(o)).top+=parseInt(c.borderTopWidth,10),u.left+=parseInt(c.borderLeftWidth,10)}return{top:a.top-u.top,left:a.left-u.left,height:a.height,width:a.width}},EI=function(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,e=r?DI(r):null,n=Sxe(i,e),a=n.top,o=n.left,s=n.height,l=n.width,u=Cxe(e,i),c=u.x,d=u.y,h=i.ownerDocument,f=e===h.body||e===h.documentElement?1:t;return{top:a+d*f,left:o+c*f,height:s,width:l}};var yW=function(r,t,e){var n=0;return r+t>e&&(n=e-(r+t)),r<0&&(n=-r),n},kW=function(r){var t=r.offset,e=r.size,n=r.anchorSize,a=r.viewPortSize,o=r.anchorAlignPoint,s=r.elementAlignPoint,u=0,h=2*r.margin;if(s!==o&&"center"!==s&&"middle"!==s&&"center"!==o&&"middle"!==o){var f="top"===o||"left"===o;t<0&&f?t+(u=e+n+h)+e>a&&(u=0):t>=0&&!f&&(t+e>a&&(u+=-(n+e+h)),t+u<0&&(u=0))}return u},Dxe=function(i){for(var r=[],t=i.parentNode.firstElementChild;t;)t!==i&&r.push(t),t=t.nextElementSibling;return r};!function xxe(i){var r,t=!1}(function(i){if(!SW())return!1;var r=i?i.ownerDocument:document;if(!r||!r.body)return!1;var e=r.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='
    child
    '),r.body.appendChild(e);var n=10!==e.children[0].getBoundingClientRect().top;return r.body.removeChild(e),n});var SW=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},Jxe=["container"];function eMe(i,r){}var tMe=["*"],TI=function(r,t){return r||{height:0,left:t.left,top:t.top,width:0}},yD=function(){return"undefined"!=typeof window},rMe=/auto|scroll/,sMe=function(r){return function(r){return"".concat(r.style.overflow).concat(r.style.overflowX).concat(r.style.overflowY)}(r)||function(r){var t=window.getComputedStyle(r);return"".concat(t.overflow).concat(t.overflowX).concat(t.overflowY)}(r)},EW=1e3/60,cMe=function uMe(i){var r,t=!1;return function(){return t||(r=i.apply(void 0,arguments),t=!0),r}}(function(){if(!Ze()&&null!==document.body)return!1;var r=document.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='
    child
    '),document.body.appendChild(r);var t=10!==r.children[0].getBoundingClientRect().top;return document.body.removeChild(r),t}),zy=function(r,t){return r&&1!==t?{height:r.height/t,left:r.left/t,top:r.top/t,width:r.width/t}:r},TW=new Dt("Popup Document Scale"),hMe=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],og=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"addOffset",value:function(e,n){return{left:e.left+n.left,top:e.top+n.top}}},{key:"addScroll",value:function(e,n){return function vW(i,r){return{top:i.top+r.y,left:i.left+r.x,height:i.height,width:i.width}}(e,n)}},{key:"align",value:function(e){return function(r){var t=r.anchorRect,e=r.anchorAlign,n=r.elementRect,a=r.elementAlign,o=r.margin,s=void 0===o?{}:o,l=e.horizontal,u=e.vertical,c=a.horizontal,d=a.vertical,h=s.horizontal||0,f=s.vertical||0,g=t.top,_=t.left;return"bottom"===u&&(g+=t.height),("center"===u||"middle"===u)&&(g+=Math.round(t.height/2)),"bottom"===d&&(g-=n.height,f*=-1),("center"===d||"middle"===d)&&(g-=Math.round(n.height/2),f*=-1),"right"===l&&(_+=t.width),("center"===l||"middle"===l)&&(_+=Math.round(t.width/2)),"right"===c&&(_-=n.width,h*=-1),("center"===c||"middle"===c)&&(_-=Math.round(n.width/2),h*=-1),{top:g+f,left:_+h}}(e)}},{key:"boundingOffset",value:function(e){return function(r){if(!r.getBoundingClientRect){var t=gD(r);return{bottom:t.height,left:0,right:t.width,top:0}}var e=r.getBoundingClientRect();return{bottom:e.bottom,left:e.left,right:e.right,top:e.top}}(e)}},{key:"getFontStyles",value:function(e){var n=this.getWindow();if(!n||!e)return[];var a=n.getComputedStyle(e);return hMe.map(function(o){return{key:o,value:a[o]}})}},{key:"getWindow",value:function(){return yD()?window:null}},{key:"hasOffsetParent",value:function(e){return!!e&&!!this.nativeElement(e).offsetParent}},{key:"offset",value:function(e){return e?hl(e):null}},{key:"offsetAtPoint",value:function(e,n){if(!e)return null;var a=this.nativeElement(e),o=a.style,s=o.left,l=o.top,u=o.transition;a.style.transition="none",a.style.left="".concat(n.left,"px"),a.style.top="".concat(n.top,"px");var c=hl(a);return a.style.left=s,a.style.top=l,a.style.transition=u,c}},{key:"nativeElement",value:function(e){return e?e.nativeElement||e:null}},{key:"position",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e&&n?EI(e,this.nativeElement(n),a):null}},{key:"removeScroll",value:function(e,n){return function _W(i,r){return{top:i.top-r.y,left:i.left-r.x,height:i.height,width:i.width}}(e,n)}},{key:"restrictToView",value:function(e){return function(r){var t=r.anchorRect,e=r.anchorAlign,n=r.elementRect,a=r.elementAlign,o=r.collisions,s=r.viewPort,l=r.margin,u=void 0===l?{}:l,c=n.top,d=n.left,h=n.height,f=n.width,g=s.height,_=s.width,C=u.horizontal||0,w=u.vertical||0,E=0,M=0,R="fit"===o.vertical,N="fit"===o.horizontal,V="flip"===o.vertical,U="flip"===o.horizontal;R&&(M+=yW(c,h,g)),N&&(E+=yW(d,f,_)),V&&(M+=kW({margin:w,offset:c,size:h,anchorSize:t.height,viewPortSize:g,anchorAlignPoint:e.vertical,elementAlignPoint:a.vertical})),U&&(E+=kW({margin:C,offset:d,size:f,anchorSize:t.width,viewPortSize:_,anchorAlignPoint:e.horizontal,elementAlignPoint:a.horizontal}));var ee=V&&0!==M,ve=U&&0!==E,G=R&&0!==M,I=N&&0!==E;return{flipped:ve||ee,fitted:G||I,flip:{horizontal:ve,vertical:ee},fit:{horizontal:I,vertical:G},offset:{left:E,top:M}}}(e)}},{key:"scrollPosition",value:function(e){return mD(this.nativeElement(e))}},{key:"scrollableParents",value:function(e){return function(r){var t=[];if(!Ze()||!yD())return t;for(var e=r.parentElement;e;)(rMe.test(sMe(e))||e.hasAttribute("data-scrollable"))&&t.push(e),e=e.parentElement;return t.push(window),t}(e)}},{key:"stackingElementOffset",value:function(e){var n=this.getRelativeContextElement(e);return n?hl(n):null}},{key:"stackingElementScroll",value:function(e){var n=this.getRelativeContextElement(e);return n?{x:n.scrollLeft,y:n.scrollTop}:{x:0,y:0}}},{key:"getRelativeContextElement",value:function(e){if(!e||!cMe())return null;for(var n=this.nativeElement(e).parentElement;n;){if("none"!==window.getComputedStyle(n).transform)return n;n=n.parentElement}return null}},{key:"useRelativePosition",value:function(e){return!!this.getRelativeContextElement(e)}},{key:"windowViewPort",value:function(e){return gD(this.nativeElement(e))}},{key:"zIndex",value:function(e,n){return function(r,t){if(!r||!Ze()||!yD())return null;var e=function(i,r){for(var n,a,t=wI(i),e=r;e&&(n=Dxe(e),!(a=t.reduce(function(o,s){return o.concat(n.filter(function(l){return l===s}))},[])[0]));)e=e.parentElement;return a}(r,t);if(!e)return null;var n=[r].concat(wI(r,e)).reduce(function(a,o){var s=o.style.zIndex||window.getComputedStyle(o).zIndex,l=parseInt(s,10);return l>a?l:a},0);return n?n+1:null}(e,this.nativeElement(n))}},{key:"zoomLevel",value:function(){return Ze()&&yD()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}},{key:"isZoomed",value:function(){return this.zoomLevel()>1}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),AW=function(){var i=function(){function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;p(this,r),this._dom=t,this.scale=e}return v(r,[{key:"alignElement",value:function(e){var n=e.anchor,a=e.element,o=e.anchorAlign,s=e.elementAlign,l=e.margin,u=e.offset,d=this.scale||1,f="fixed"!==e.positionMode&&this._dom.hasOffsetParent(a)?this.relativeRect(n,a,u,d):this.absoluteRect(n,a,u,d),g=zy(this._dom.offset(a.nativeElement),d);return this._dom.align({anchorAlign:o,anchorRect:f,elementAlign:s,elementRect:g,margin:l})}},{key:"absoluteRect",value:function(e,n,a,o){var s=this.elementScrollPosition(e,n),l=TI(this._dom.offset(e),a),u=2*o,c=this._dom.stackingElementScroll(n);1!==o&&c&&(c.x/=u,c.y/=u);var d=this._dom.stackingElementOffset(n);return 1!==o&&d&&(d.left/=u,d.top/=u),this._dom.removeScroll(this._dom.addScroll(function(r,t){return t?{height:r.height,left:r.left-t.left,top:r.top-t.top,width:r.width}:r}(zy(l,o),d),c),s)}},{key:"elementScrollPosition",value:function(e,n){return e?{x:0,y:0}:this._dom.scrollPosition(n)}},{key:"relativeRect",value:function(e,n,a,o){var s=TI(this._dom.position(e,n,o),a);return zy(s,o)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(TW,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),xW=function(){var i=function(){function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;p(this,r),this._dom=t,this.scale=e}return v(r,[{key:"positionElement",value:function(e){var n=e.anchor,a=e.currentLocation,o=e.element,s=e.anchorAlign,l=e.elementAlign,u=e.collisions,c=e.margin,d=this._dom,h=this.scale||1,f=d.offsetAtPoint(o,a),g=zy(f,h),_=zy(d.offset(n),h),C=TI(_,a),w=e.viewPort||d.windowViewPort(o);w.width=w.width/h,w.height=w.height/h;var E=d.restrictToView({anchorAlign:s,anchorRect:C,collisions:u,elementAlign:l,elementRect:g,margin:c,viewPort:w}),M=d.addOffset(a,E.offset);return{flip:E.flip,flipped:E.flipped,offset:M}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(TW,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),MW=function(){var i=function(){function r(t,e){p(this,r),this._dom=t,this._zone=e}return v(r,[{key:"subscribe",value:function(e){var n=this;!Ze()||this._zone.runOutsideAngular(function(){n.subscription=li(n._dom.getWindow(),"resize").pipe(ff(EW)).subscribe(function(){return e()})})}},{key:"unsubscribe",value:function(){!this.subscription||this.subscription.unsubscribe()}},{key:"isUnsubscribed",value:function(){return this.subscription&&this.subscription.closed}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),RW=function(){var i=function(){function r(t,e){p(this,r),this._dom=t,this._zone=e}return v(r,[{key:"forElement",value:function(e){return this.unsubscribe(),this.element=e,this}},{key:"subscribe",value:function(e){var n=this;if(e&&Ze()&&this.element){var a=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(function(){var o=a.map(function(l){return li(l,"scroll").pipe(ff(EW))});n.subscription=xn.apply(void 0,Ae(o)).subscribe(function(u){var c=u.target,d=a.filter(function(g){return g===c}).length>0,h=c===document,f=c===window;(d||h||f)&&e(n.isVisible(n.element,c))})})}}},{key:"unsubscribe",value:function(){!this.subscription||this.subscription.unsubscribe()}},{key:"isVisible",value:function(e,n){var a=this._dom.boundingOffset(e),o=this._dom.boundingOffset(this._dom.nativeElement(n));return!(1=1||Math.abs(n-o)>=1}(this.currentOffset,o))&&(this.currentOffset=o,ut(this.positionChange)&&this._zone.run(function(){return e.positionChange.emit({offset:o,flip:a})})),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,a),this.resizeSensor.acceptSize()}}},{key:"position",value:function(){var e=this._alignService.alignElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})}},{key:"onScroll",value:function(e){var n=this,a=ut(this.anchorViewportLeave);e||!a?this.reposition():a&&this._zone.run(function(){n.anchorViewportLeave.emit()})}},{key:"copyFontStyles",value:function(){var e=this;!this.anchor||!this.copyAnchorStyles||this.domService.getFontStyles(this.domService.nativeElement(this.anchor)).forEach(function(n){return e.setContainerStyle(n.key,n.value)})}},{key:"updateFixedClass",value:function(){this._renderer["fixed"===this.positionMode?"addClass":"removeClass"](this.container.nativeElement,"k-animation-container-fixed")}},{key:"setContainerStyle",value:function(e,n){this._renderer.setStyle(this.container.nativeElement,e,n)}},{key:"unsubscribeReposition",value:function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(AW),m(og),m(xW),m(MW),m(RW),m(OW),m(Ee),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-popup"]],viewQuery:function(t,e){var n;1&t&&(ge(Jxe,7),ge(Gr,7)),2&t&&(P(n=B())&&(e.contentContainer=n.first),P(n=B())&&(e.resizeSensor=n.first))},inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",popupClass:"popupClass",positionMode:"positionMode",offset:"offset",margin:"margin"},outputs:{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},exportAs:["kendo-popup"],features:[de([AW,OW,og,xW,MW,RW]),Ie],ngContentSelectors:tMe,decls:5,vars:4,consts:[[1,"k-popup",3,"ngClass"],["container",""],[3,"ngTemplateOutlet","ngIf"],[3,"rateLimit","resize"]],template:function(t,e){1&t&&(kn(),A(0,"div",0,1),dn(2),T(3,eMe,0,0,"ng-template",2),A(4,"kendo-resize-sensor",3),Q("resize",function(){return e.onResize()}),x()()),2&t&&(y("ngClass",e.popupClass),k(3),y("ngTemplateOutlet",e.content)("ngIf",e.content),k(1),y("rateLimit",100))},directives:[Gr,Ft,En,qe],encapsulation:2}),i}(),_Me=function(r){r&&r.parentNode&&r.parentNode.removeChild(r)},xI=new Dt("Popup Container"),Cr=function(){var i=function(){function r(t,e,n,a){p(this,r),this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n,this.container=a}return v(r,[{key:"rootViewContainer",get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")}},{key:"rootViewContainerNode",get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.contentFrom(e.content),a=n.component,o=n.nodes,s=this.appendPopup(o,e.appendTo),l=s.instance;this.projectComponentInputs(s,e),s.changeDetectorRef.detectChanges(),a&&a.changeDetectorRef.detectChanges();var u=this.getComponentRootNode(s);return{close:function(){a&&a.destroy(),s.destroy(),_Me(u)},content:a,popup:s,popupAnchorViewportLeave:l.anchorViewportLeave,popupClose:l.close,popupElement:u,popupOpen:l.open,popupPositionChange:l.positionChange}}},{key:"appendPopup",value:function(e,n){var a=this.createComponent(NW,e,n);return n||this.rootViewContainerNode.appendChild(this.getComponentRootNode(a)),a}},{key:"getComponentRootNode",value:function(e){return e.location.nativeElement}},{key:"getComponentFactory",value:function(e){return this.componentFactoryResolver.resolveComponentFactory(e)}},{key:"createComponent",value:function(e,n,a){var o=this.getComponentFactory(e);if(a)return a.createComponent(o,void 0,this.injector,n);var s=o.create(this.injector,n);return this.applicationRef.attachView(s.hostView),s}},{key:"projectComponentInputs",value:function(e,n){return Object.getOwnPropertyNames(n).filter(function(a){return"content"!==a||n.content instanceof $e}).map(function(a){e.instance[a]=n[a]}),e}},{key:"contentFrom",value:function(e){if(!e||e instanceof $e)return{component:null,nodes:[[]]};var n=this.createComponent(e);return{component:n,nodes:[n?[n.location.nativeElement]:[]]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(dy),oe(Ts),oe(Jn),oe(xI,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Fa=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[Cr],imports:[[bt,yo]]}),i}(),yMe=[[["","kendoButton",""]]],kMe=["[kendoButton]"],xMe=["button"],MMe=["popupTemplate"],FW=["*"];function RMe(i,r){1&i&&z(0,"span",8),2&i&&y("ngClass",D().kendoIconClass)}function OMe(i,r){1&i&&z(0,"span",9),2&i&&y("ngClass",D().customIconClass)}function IMe(i,r){if(1&i&&(A(0,"span",10),z(1,"span",11),x()),2&i){var t=D();k(1),y("ngClass",t.chipAvatarClass)}}function NMe(i,r){if(1&i&&(A(0,"span",12),te(1),x()),2&i){var t=D();k(1),Nt(" ",t.label," ")}}function FMe(i,r){1&i&&dn(0,0,["*ngIf","!label"])}function LMe(i,r){if(1&i){var t=Me();A(0,"span",13),Q("click",function(a){return re(t),D().onRemoveClick(a)}),z(1,"span",14),x()}if(2&i){var e=D();k(1),y("ngClass",e.removeIconClass)}}var PMe=["kendoDialItem",""];function BMe(i,r){}var GMe=function(r,t,e){return{$implicit:r,index:t,isFocused:e}};function VMe(i,r){if(1&i&&T(0,BMe,0,0,"ng-template",1),2&i){var t=D();y("ngTemplateOutlet",t.dialItemTemplate)("ngTemplateOutletContext",va(2,GMe,t.item,t.index,t.isFocused))}}function UMe(i,r){if(1&i&&(A(0,"span",4),te(1),x()),2&i){var t=D(2);k(1),at(t.item.label)}}function zMe(i,r){1&i&&z(0,"span",5),2&i&&y("ngClass",D(2).iconClasses)}function HMe(i,r){if(1&i&&(Ge(0),T(1,UMe,2,1,"span",2),T(2,zMe,1,1,"span",3),Ve()),2&i){var t=D();k(1),y("ngIf",t.item.label),k(1),y("ngIf",t.item.icon||t.item.iconClass)}}var KMe=["kendoDialList",""];function jMe(i,r){if(1&i&&(Ge(0),z(1,"li",1),Ve()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),y("item",n.dialItems[e])("index",e)("dialItemTemplate",n.dialItemTemplate)("isFocused",n.isFocused(e))("ngClass",t.cssClass)("ngStyle",t.cssStyle)("align",n.align)}}function WMe(i,r){}function $Me(i,r){if(1&i&&T(0,WMe,0,0,"ng-template",4),2&i){var t=D();y("ngTemplateOutlet",null==t.fabTemplate?null:t.fabTemplate.templateRef)}}function qMe(i,r){1&i&&z(0,"span",7),2&i&&y("ngClass",D(2).iconClasses)}function XMe(i,r){if(1&i&&(A(0,"span",8),te(1),x()),2&i){var t=D(2);k(1),at(t.text)}}function ZMe(i,r){if(1&i&&(Ge(0),T(1,qMe,1,1,"span",5),T(2,XMe,2,1,"span",6),Ve()),2&i){var t=D();k(1),y("ngIf",t.icon||t.iconClass),k(1),y("ngIf",t.text)}}function YMe(i,r){if(1&i){var t=Me();A(0,"ul",9),Q("click",function(a){return re(t),D().onItemClick(a)}),x()}if(2&i){var e=D();y("ngClass",e.dialClass)("dialItems",e.dialItems)("dialItemTemplate",null==e.dialItemTemplate?null:e.dialItemTemplate.templateRef)("align",e.align),ie("aria-labelledby",e.id)}}var QMe=function(r,t){return{keydown:r,click:t}},ug={name:"@progress/kendo-angular-buttons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440722,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Xa=(Promise.resolve(null),function(r){return null!=r});function eRe(i){return 9===i.nodeType}function CD(i,r){if(i.closest)return i.closest(r);for(var t=Element.prototype.matches?function(n,a){return n.matches(a)}:function(n,a){return n.msMatchesSelector(a)},e=i;e&&!eRe(e);){if(t(e,r))return e;e=e.parentNode}}var MI={small:"sm",medium:"md",large:"lg"},LW={small:"sm",medium:"md",large:"lg",full:"full"},RI=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(MI[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(MI[n]):""};case"rounded":return{toRemove:"k-rounded-".concat(LW[e]),toAdd:"none"!==n?"k-rounded-".concat(LW[n]):""};case"fillMode":return{toRemove:"k-".concat(r,"-").concat(e),toAdd:"none"!==n?"k-".concat(r,"-").concat(n):""}}},PW=function(r,t,e,n,a){return{toRemove:"k-".concat(r,"-").concat(t,"-").concat(n),toAdd:"none"!==a?"k-".concat(r,"-").concat(e,"-").concat(a):""}},OI=function(){var i=function(){function r(){p(this,r),this.buttonClicked=new Ot,this.buttonClicked$=this.buttonClicked.asObservable()}return v(r,[{key:"click",value:function(e){this.buttonClicked.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),La=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.service=n,this.ngZone=o,this.toggleable=!1,this.role="button",this.selectedChange=new O,this.click=new O,this.isDisabled=!1,this.isIcon=!1,this.isIconClass=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this._focused=!1,this.subs=new Je,jt(ug),this.direction=a.rtl?"rtl":"ltr",this.subs.add(a.changes.subscribe(function(l){return s.direction=l.rtl?"rtl":"ltr"})),this.element=t.nativeElement,this.renderer=e}return v(r,[{key:"togglable",get:function(){return this.toggleable},set:function(e){this.toggleable=e}},{key:"selected",get:function(){return this._selected||!1},set:function(e){this._selected=e}},{key:"tabIndex",get:function(){return this.element.tabIndex},set:function(e){this.element.tabIndex=e}},{key:"icon",set:function(e){var n=this;e?this.iconSetter(e,function(){n.isIcon=!0,n.addIcon("k-button-icon k-icon k-i-"+e)}):(this.isIcon=!1,this.updateIconNode())}},{key:"iconClass",set:function(e){var n=this;e?this.iconSetter(e,function(){n.isIconClass=!0,n.addIcon("k-button-icon "+e)}):(this.isIconClass=!1,this.updateIconNode())}},{key:"imageUrl",set:function(e){e?this.iconSetter(e,this.addImgIcon.bind(this)):this.removeImageNode()}},{key:"disabled",get:function(){return this.isDisabled},set:function(e){e&&Ze()&&function(r){var t=kI(r),e=yI(r);return t&&t.mozilla||e&&"firefox"===e.browser}(navigator.userAgent)&&this.blur(),this.isDisabled=e,this.renderer.setProperty(this.element,"disabled",e)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){var n=e||"base";this.handleThemeColor(n),this._themeColor=n}},{key:"isFocused",get:function(){return this._focused},set:function(e){this.toggleClass("k-focus",e),this._focused=e}},{key:"classButton",get:function(){return!0}},{key:"isToggleable",get:function(){return this.toggleable}},{key:"roleSetter",get:function(){return this.role}},{key:"classDisabled",get:function(){return this.isDisabled}},{key:"classActive",get:function(){return this.selected}},{key:"getDirection",get:function(){return this.direction}},{key:"onFocus",value:function(){this.isFocused=!0}},{key:"onBlur",value:function(){this.isFocused=!1}},{key:"primary",set:function(e){this.themeColor=e?"primary":"base"}},{key:"look",set:function(e){this.fillMode="default"===e?"solid":e}},{key:"ngOnInit",value:function(){var e=this,n="SPAN"===this.element.tagName;this.addTextSpan(),!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaPressed(this.toggleable),this.role&&this.setAttribute("role",this.role),this.ngZone.runOutsideAngular(function(){e.subs.add(e.renderer.listen(e.element,"click",e._onButtonClick.bind(e))),e.subs.add(e.renderer.listen(e.element,"keydown",function(a){n&&(a.keyCode===J.Space||a.keyCode===J.Enter)&&(e.click.emit(a),e._onButtonClick())}))})}},{key:"ngOnChanges",value:function(e){(yn("togglable",e)||yn("toggleable",e))&&this.toggleAriaPressed(this.toggleable)}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","fillMode"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngAfterViewChecked",value:function(){this.setIconTextClasses()}},{key:"ngOnDestroy",value:function(){this.imageNode=null,this.iconNode=null,this.iconSpanNode=null,this.renderer=null,this.subs.unsubscribe(),clearTimeout(this.deferTimeout)}},{key:"focus",value:function(){Ze()&&(this.element.focus(),this.isFocused=!0)}},{key:"blur",value:function(){Ze()&&(this.element.blur(),this.isFocused=!1)}},{key:"setAttribute",value:function(e,n){this.renderer.setAttribute(this.element,e,n)}},{key:"removeAttribute",value:function(e){this.renderer.removeAttribute(this.element,e)}},{key:"setSelected",value:function(e){var n=this,a=this.selected!==e;this.selected=e,this.setAttribute("aria-pressed",this.selected.toString()),this.toggleClass("k-selected",this.selected),a&&ut(this.selectedChange)&&this.ngZone.run(function(){n.selectedChange.emit(e)})}},{key:"toggleAriaPressed",value:function(e){!Ze()||(e?this.setAttribute("aria-pressed",this.selected.toString()):this.removeAttribute("aria-pressed"))}},{key:"hasText",value:function(){return Ze()&&this.element.textContent.trim().length>0}},{key:"addImgIcon",value:function(e){var n=this.renderer;this.iconSpanNode||(this.iconSpanNode=n.createElement("span"),n.setProperty(this.iconSpanNode,"className","k-button-icon k-icon")),this.imageNode?n.setProperty(this.imageNode,"src",e):Ze()&&(this.imageNode=n.createElement("img"),n.setProperty(this.imageNode,"src",e),n.setProperty(this.imageNode,"className","k-image"),n.setAttribute(this.imageNode,"role","presentation")),this.iconSpanNode.appendChild(this.imageNode),this.prependChild(this.iconSpanNode)}},{key:"addIcon",value:function(e){var n=this.renderer;this.iconNode?n.setProperty(this.iconNode,"className",e):Ze()&&(this.iconNode=n.createElement("span"),n.setProperty(this.iconNode,"className",e),n.setAttribute(this.iconNode,"role","presentation"),this.prependChild(this.iconNode))}},{key:"addTextSpan",value:function(){var e=this;if(Ze()&&this.hasText()){var n=this.renderer.createElement("span");this.renderer.addClass(n,"k-button-text"),Array.from(this.element.childNodes).forEach(function(o){return e.renderer.appendChild(n,o)}),this.renderer.appendChild(this.element,n)}}},{key:"prependChild",value:function(e){var n=this;this.defer(function(){n.renderer&&e!==n.element.firstChild&&n.renderer.insertBefore(n.element,e,n.element.firstChild)})}},{key:"defer",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.deferTimeout=setTimeout(e,0)})}},{key:"iconSetter",value:function(e,n){e&&n(e),this.setIconTextClasses()}},{key:"removeImageNode",value:function(){this.imageNode&&this.renderer.parentNode(this.imageNode)&&(this.renderer.removeChild(this.element,this.imageNode),this.renderer.removeChild(this.element,this.iconSpanNode),this.imageNode=null,this.iconSpanNode=null)}},{key:"removeIconNode",value:function(){this.iconNode&&this.renderer.parentNode(this.iconNode)&&(this.renderer.removeChild(this.element,this.iconNode),this.iconNode=null),this.iconSpanNode&&(this.renderer.removeChild(this.element,this.iconSpanNode),this.iconSpanNode=null)}},{key:"updateIconNode",value:function(){!this.isIcon&&!this.isIconClass&&this.removeIconNode()}},{key:"setIconTextClasses",value:function(){this.toggleClass("k-icon-button",(this.isIcon||this.isIconClass||this.imageNode)&&!this.hasText())}},{key:"toggleClass",value:function(e,n){n?this.renderer.addClass(this.element,e):this.renderer.removeClass(this.element,e)}},{key:"_onButtonClick",value:function(){var e=this;!this.disabled&&this.service&&this.ngZone.run(function(){e.service.click(e)}),this.togglable&&!this.service&&this.setSelected(!this.selected)}},{key:"handleClasses",value:function(e,n){var a=this.element,o=RI("button",n,this[n],e);"fillMode"===n&&this.handleThemeColor(this.themeColor,this[n],e),o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleThemeColor",value:function(e,n,a){var o=this.element,l=a||this.fillMode,u=PW("button",n||this.fillMode,l,this.themeColor,e);this.renderer.removeClass(o,u.toRemove),"none"!==l&&"none"!==a&&u.toAdd&&this.renderer.addClass(o,u.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(OI,8),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["button","kendoButton",""],["span","kendoButton",""]],hostVars:11,hostBindings:function(t,e){1&t&&Q("focus",function(){return e.onFocus()})("blur",function(){return e.onBlur()}),2&t&&(ie("role",e.roleSetter)("aria-disabled",e.classDisabled)("dir",e.getDirection),ue("k-button",e.classButton)("k-toggle-button",e.isToggleable)("k-disabled",e.classDisabled)("k-selected",e.classActive))},inputs:{toggleable:"toggleable",togglable:"togglable",selected:"selected",tabIndex:"tabIndex",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor",role:"role",primary:"primary",look:"look"},outputs:{selectedChange:"selectedChange",click:"click"},exportAs:["kendoButton"],features:[de([Y,{provide:Et,useValue:"kendo.button"}]),Ie]}),i}(),zW=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),vf="tabindex",HW=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.service=t,this.element=n,this.selection="multiple",this.navigate=new O,this._tabIndex=0,this.currentTabIndex=0,this.subs=new Je,jt(ug),this.subs.add(e.changes.subscribe(function(o){return a.direction=o.rtl?"rtl":"ltr"}))}return v(r,[{key:"tabIndex",get:function(){return this._tabIndex},set:function(e){this._tabIndex=e,this.currentTabIndex=e}},{key:"wrapperClass",get:function(){return!0}},{key:"disabledClass",get:function(){return this.disabled}},{key:"stretchedClass",get:function(){return!!this.width}},{key:"getRole",get:function(){return this.isSelectionSingle()?"radiogroup":"group"}},{key:"dir",get:function(){return this.direction}},{key:"ariaDisabled",get:function(){return this.disabled}},{key:"wrapperWidth",get:function(){return this.width}},{key:"wrapperTabIndex",get:function(){return this.disabled?void 0:this.currentTabIndex}},{key:"keydown",value:function(e){this.disabled||this.navigateFocus(e)}},{key:"onFocus",value:function(){this.currentTabIndex=-1;var e=this.buttons.toArray().findIndex(function(a){return-1!==a.element.tabIndex}),n=-1===e?0:e;this.focus(this.buttons.filter(function(a,o){return o===n}))}},{key:"focusout",value:function(e){e.relatedTarget&&e.relatedTarget.parentNode!==this.element.nativeElement&&(this.defocus(this.buttons.toArray()),this.currentTabIndex=this.tabIndex)}},{key:"ngOnInit",value:function(){var e=this;this.subs.add(this.service.buttonClicked$.subscribe(function(n){var a;e.isSelectionSingle()?(a=!0,e.deactivate(e.buttons.filter(function(o){return o!==n}))):(e.defocus(e.buttons.toArray()),a=!n.selected),n.togglable&&n.setSelected(a),n.setAttribute(vf,"0")}))}},{key:"ngOnChanges",value:function(e){var n=this;yn("disabled",e)&&this.buttons.forEach(function(a){Xa(n.disabled)&&(a.disabled=n.disabled)})}},{key:"ngAfterContentInit",value:function(){this.buttons.forEach(function(e){e.setAttribute(vf,e.selected?"0":"-1")})}},{key:"ngAfterViewChecked",value:function(){this.buttons.length&&(this.buttons.first.renderer.addClass(this.buttons.first.element,"k-group-start"),this.buttons.last.renderer.addClass(this.buttons.last.element,"k-group-end"))}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"navigateFocus",value:function(e){var n=this.buttons.toArray().findIndex(function(l){return-1!==l.element.tabIndex}),o=this.buttons.length-1,s=new zW;e.keyCode===J.ArrowRight&&n0&&(this.navigate.emit(s),s.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter(function(l,u){return u===n-1}))))}},{key:"deactivate",value:function(e){e.forEach(function(n){n.setSelected(!1),n.setAttribute(vf,"-1")})}},{key:"activate",value:function(e){e.forEach(function(n){n.setSelected(!0),n.setAttribute(vf,"0"),n.focus()})}},{key:"defocus",value:function(e){e.forEach(function(n){n.setAttribute(vf,"-1")})}},{key:"focus",value:function(e){e.forEach(function(n){n.setAttribute(vf,"0"),n.focus()})}},{key:"verifySettings",value:function(){if(xt()&&this.isSelectionSingle()&&this.buttons.filter(function(e){return e.selected}).length>1)throw new Error("Having multiple selected buttons with single selection mode is not supported")}},{key:"isSelectionSingle",value:function(){return"single"===this.selection}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(OI),m(Y),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-buttongroup"]],contentQueries:function(t,e,n){var a;1&t&&he(n,La,4),2&t&&P(a=B())&&(e.buttons=a)},hostVars:12,hostBindings:function(t,e){1&t&&Q("keydown",function(a){return e.keydown(a)})("focus",function(){return e.onFocus()})("focusout",function(a){return e.focusout(a)}),2&t&&(ie("role",e.getRole)("dir",e.dir)("aria-disabled",e.ariaDisabled)("tabindex",e.wrapperTabIndex),Qe("width",e.wrapperWidth),ue("k-button-group",e.wrapperClass)("k-disabled",e.disabledClass)("k-button-group-stretched",e.stretchedClass))},inputs:{disabled:"disabled",selection:"selection",width:"width",tabIndex:"tabIndex"},outputs:{navigate:"navigate"},exportAs:["kendoButtonGroup"],features:[de([OI,Y,{provide:Et,useValue:"kendo.buttongroup"}]),Ie],ngContentSelectors:kMe,decls:1,vars:0,template:function(t,e){1&t&&(kn(yMe),dn(0))},encapsulation:2}),i}(),bD=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),iRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,bD]]}),i}(),SD=function(){var i=function(){function r(){p(this,r),this.onFocus=new O}return v(r,[{key:"isFocused",value:function(e){return e===this.focused}},{key:"focus",value:function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))}},{key:"resetFocus",value:function(){this.focused=-1}},{key:"focused",get:function(){return this.focusedIndex},set:function(e){this.focusedIndex=e,this.onFocus.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),II=function(){var i=function(){function r(t,e,n){p(this,r),this.focusService=t,this.renderer=n,this.subs=new Je,this.element=e.nativeElement,this.subscribeEvents()}return v(r,[{key:"ngOnInit",value:function(){this.index===this.focusService.focused?this.renderer.addClass(this.element,"k-focus"):this.renderer.removeClass(this.element,"k-focus")}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"subscribeEvents",value:function(){var e=this;!Ze()||this.subs.add(this.focusService.onFocus.subscribe(function(n){e.index===n?(e.renderer.addClass(e.element,"k-focus"),e.element.focus()):e.renderer.removeClass(e.element,"k-focus")}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(SD),m(_e),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoButtonFocusable",""]],inputs:{index:"index"}}),i}(),jy=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),Wy=function(){return function(i){i[i.keydown=0]="keydown",i[i.keypress=1]="keypress",i[i.keyup=2]="keyup"}(Wy||(Wy={})),Wy}(),Vr=function(){return function(i){i[i.Undefined=0]="Undefined",i[i.Open=1]="Open",i[i.Close=2]="Close",i[i.Enter=3]="Enter",i[i.EnterPress=4]="EnterPress",i[i.EnterUp=5]="EnterUp",i[i.Tab=6]="Tab",i[i.Esc=7]="Esc",i[i.Navigate=8]="Navigate"}(Vr||(Vr={})),Vr}(),wD=new Dt("navigation.config"),jW=function(){var i=function(){function r(t){p(this,r),this.navigate=new O,this.open=new O,this.close=new O,this.enter=new O,this.enterpress=new O,this.enterup=new O,this.tab=new O,this.esc=new O,this.useLeftRightArrows=t.useLeftRightArrows}return v(r,[{key:"process",value:function(e){var o,n=e.keyCode,a=e.keyEvent,s=Vr.Undefined;return a===Wy.keypress?this.isEnter(n)&&(s=Vr.EnterPress):a===Wy.keyup?this.isEnter(n)&&(s=Vr.EnterUp):e.altKey&&n===J.ArrowDown?s=Vr.Open:e.altKey&&n===J.ArrowUp?s=Vr.Close:this.isEnter(n)?s=Vr.Enter:n===J.Escape?s=Vr.Esc:n===J.Tab?s=Vr.Tab:n===J.ArrowUp||this.useLeftRightArrows&&n===J.ArrowLeft?(o=this.next({current:e.current,start:e.flipNavigation?e.min:e.max,end:e.flipNavigation?e.max:e.min,step:e.flipNavigation?1:-1}),s=Vr.Navigate):n===J.ArrowDown||this.useLeftRightArrows&&n===J.ArrowRight?(o=this.next({current:e.current,start:e.flipNavigation?e.max:e.min,end:e.flipNavigation?e.min:e.max,step:e.flipNavigation?-1:1}),s=Vr.Navigate):n===J.Home?(o=e.min,s=Vr.Navigate):n===J.End&&(o=e.max,s=Vr.Navigate),s!==Vr.Undefined&&this[Vr[s].toLowerCase()].emit(o),s}},{key:"isEnter",value:function(e){return e===J.Enter||e===J.Space}},{key:"next",value:function(e){return Xa(e.current)?e.current!==e.end?e.current+e.step:e.end:e.start}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(wD))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),sRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,bD,jy],jy]}),i}(),uRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,jy,bD],jy]}),i}(),WW=function(){var i=function(){function r(t,e,n,a){p(this,r),this.element=t,this.renderer=e,this.ngZone=n,this.localizationService=a,this.selected=!1,this.removable=!1,this.disabled=!1,this.remove=new O,this.contentClick=new O,this.tabIndex=0,this.hostClass=!0,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this.focused=!1,this.subs=new Je,jt(ug),this.direction=a.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){Xa(e)&&(this._size=e),this.handleClasses(this._size,"size")}},{key:"rounded",get:function(){return this._rounded},set:function(e){Xa(e)&&(this._rounded=e),this.handleClasses(this._rounded,"rounded")}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){Xa(e)&&(this._fillMode=e),this.handleClasses(this._fillMode,"fillMode")}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){Xa(e)&&(this._themeColor=e),this.handleThemeColor(this._themeColor)}},{key:"ariaChecked",get:function(){return this.selected}},{key:"hasIconClass",get:function(){return!!(this.icon||this.iconClass||this.avatarClass)}},{key:"disabledClass",get:function(){return this.disabled}},{key:"selectedClass",get:function(){return this.selected}},{key:"focusedClass",get:function(){return this.focused}},{key:"ngOnInit",value:function(){var e=this;this.subs.add(this.localizationService.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"ngAfterViewInit",value:function(){var e=this,n=this.element.nativeElement;["size","rounded","fillMode"].forEach(function(o){e.handleClasses(e[o],o)}),this.attachElementEventHandlers(n)}},{key:"kendoIconClass",get:function(){return this.verifyIconSettings([this.iconClass,this.avatarClass]),"k-i-".concat(this.icon)}},{key:"customIconClass",get:function(){return this.verifyIconSettings([this.icon,this.avatarClass]),"".concat(this.iconClass)}},{key:"chipAvatarClass",get:function(){return this.verifyIconSettings([this.icon,this.iconClass]),"".concat(this.avatarClass)}},{key:"removeIconClass",get:function(){return this.removeIcon?"".concat(this.removeIcon):"k-i-close-circle"}},{key:"focus",value:function(){Ze()&&this.element.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.element.nativeElement.blur()}},{key:"onRemoveClick",value:function(e){this.removable&&this.remove.emit({sender:this,originalEvent:e})}},{key:"attachElementEventHandlers",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.subs.add(n.renderer.listen(e,"focus",function(){n.renderer.addClass(e,"k-focus")})),n.subs.add(n.renderer.listen(e,"blur",function(){n.renderer.removeClass(e,"k-focus")})),n.subs.add(n.renderer.listen(e,"click",function(a){CD(a.target,".k-chip-remove-action")||n.ngZone.run(function(){n.contentClick.emit({sender:n,originalEvent:a})})}))})}},{key:"verifyIconSettings",value:function(e){if(xt()&&e.filter(function(n){return null!=n}).length>0)throw this.renderer.removeClass(this.element.nativeElement,"k-chip-has-icon"),new Error("Invalid configuration: Having multiple icons is not supported. Only a single icon on a chip can be displayed.")}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=RI("chip",n,this[n],e);"fillMode"===n&&this.handleThemeColor(this.themeColor,this[n],e),o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleThemeColor",value:function(e,n,a){var o=this.element.nativeElement,l=a||this.fillMode,u=PW("chip",n||this.fillMode,l,this.themeColor,e);this.renderer.removeClass(o,u.toRemove),"none"!==l&&"none"!==a&&u.toAdd&&this.renderer.addClass(o,u.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(be),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-chip"]],hostVars:14,hostBindings:function(t,e){2&t&&(ie("tabindex",e.tabIndex)("aria-checked",e.ariaChecked)("aria-disabled",e.disabledClass)("dir",e.direction),ue("k-chip",e.hostClass)("k-chip-has-icon",e.hasIconClass)("k-disabled",e.disabledClass)("k-selected",e.selectedClass)("k-focus",e.focusedClass))},inputs:{label:"label",icon:"icon",iconClass:"iconClass",avatarClass:"avatarClass",selected:"selected",removable:"removable",removeIcon:"removeIcon",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor"},outputs:{remove:"remove",contentClick:"contentClick"},features:[de([Y,{provide:Et,useValue:"kendo.chip"}])],ngContentSelectors:FW,decls:8,vars:6,consts:[["class","k-chip-icon k-icon",3,"ngClass",4,"ngIf"],["class","k-chip-icon",3,"ngClass",4,"ngIf"],["class","k-chip-avatar k-avatar k-rounded-full",4,"ngIf"],[1,"k-chip-content"],["class","k-chip-label",4,"ngIf"],[4,"ngIf"],[1,"k-chip-actions"],["class","k-chip-action k-chip-remove-action",3,"click",4,"ngIf"],[1,"k-chip-icon","k-icon",3,"ngClass"],[1,"k-chip-icon",3,"ngClass"],[1,"k-chip-avatar","k-avatar","k-rounded-full"],[1,"k-avatar-image",3,"ngClass"],[1,"k-chip-label"],[1,"k-chip-action","k-chip-remove-action",3,"click"],[1,"k-icon",3,"ngClass"]],template:function(t,e){1&t&&(kn(),T(0,RMe,1,1,"span",0),T(1,OMe,1,1,"span",1),T(2,IMe,2,1,"span",2),A(3,"span",3),T(4,NMe,2,1,"span",4),T(5,FMe,1,0,"ng-content",5),x(),A(6,"span",6),T(7,LMe,2,1,"span",7),x()),2&t&&(y("ngIf",e.icon),k(1),y("ngIf",e.iconClass),k(1),y("ngIf",e.avatarClass),k(2),y("ngIf",e.label),k(1),y("ngIf",!e.label),k(2),y("ngIf",e.removable))},directives:[qe,Ft],encapsulation:2}),i}(),cRe=function(){var i=function(){function r(t,e,n){p(this,r),this.localizationService=t,this.renderer=e,this.element=n,this.hostClass=!0,this.selection="none",this.selectedChange=new O,this.remove=new O,this.role="listbox",this._size="medium",jt(ug),this.direction=t.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"single",get:function(){return"single"===this.selection}},{key:"multiple",get:function(){return"multiple"===this.selection}},{key:"onClick",value:function(e){var n=e.target,a=CD(n,".k-chip-remove-action"),o=CD(n,".k-chip"),s=this.chips.find(function(u){return o===u.element.nativeElement});a&&o&&this.remove.emit({sender:this,originalEvent:e,removedChip:s}),"none"!==this.selection&&o&&!a&&this.setSelection(s)}},{key:"ngOnInit",value:function(){var e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){var e=this;["size"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngAfterContentInit",value:function(){var e=this;this.chips.forEach(function(n){e.renderer.setAttribute(n.element.nativeElement,"role","option")})}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"selectedChips",value:function(){return this.chips.reduce(function(e,n,a){return n.selected?e.concat(a):e},[])}},{key:"setSelection",value:function(e){"single"===this.selection&&this.clearSelection(e),e.selected=!e.selected,this.selectedChange.emit(this.selectedChips())}},{key:"clearSelection",value:function(e){this.chips.forEach(function(n){e!==n&&(n.selected=!1)})}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=RI("chip-list",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-chiplist"],["kendo-chip-list"]],contentQueries:function(t,e,n){var a;1&t&&he(n,WW,4),2&t&&P(a=B())&&(e.chips=a)},hostVars:8,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(ie("dir",e.direction)("role",e.role),ue("k-chip-list",e.hostClass)("k-selection-single",e.single)("k-selection-multiple",e.multiple))},inputs:{selection:"selection",size:"size"},outputs:{selectedChange:"selectedChange",remove:"remove"},features:[de([Y,{provide:Et,useValue:"kendo.chiplist"}])],ngContentSelectors:FW,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),hRe=([].concat([WW,cRe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}());function fRe(i,r){var t={horizontal:r?"right":"left",vertical:"bottom"};return"end"===i.horizontal&&(t.horizontal=r?"left":"right"),"bottom"===i.vertical&&(t.vertical="top"),"bottom"===i.vertical&&"end"===i.horizontal&&(t.horizontal=r?"left":"right",t.vertical="top"),t}function vRe(i,r){var t={horizontal:r?"right":"left",vertical:"top"};return"end"===i.horizontal&&(t.horizontal=r?"left":"right"),"bottom"===i.vertical&&(t.vertical="bottom"),"bottom"===i.vertical&&"end"===i.horizontal&&(t.horizontal=r?"left":"right",t.vertical="bottom"),t}var $W=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDialItemTemplate",""]]}),i}(),qW=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoFloatingActionButtonTemplate",""]]}),i}(),XW=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.localisationService=n,this.hostClass=!0,this.role="menuitem"}return v(r,[{key:"disabledClass",get:function(){return this.item.disabled}},{key:"title",get:function(){return this.item.label||this.itemTitle}},{key:"indexAttr",get:function(){return this.index}},{key:"iconClasses",get:function(){var e=[];return this.item.iconClass&&e.push("".concat(this.item.iconClass)),this.item.icon&&e.push("k-fab-item-icon k-icon k-i-".concat(this.item.icon)),e}},{key:"itemTitle",get:function(){var e=this.item.icon,n=this.item.itemTitle;return e&&n?n:e}},{key:"ngAfterViewInit",value:function(){this.renderer.addClass(this.element.nativeElement,this.getTextDirectionClass(this.localisationService.rtl,this.align.horizontal))}},{key:"getTextDirectionClass",value:function(e,n){return{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[e?"rtl":"ltr"]["end"===n?"end":"start"]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoDialItem",""]],hostVars:9,hostBindings:function(t,e){2&t&&(ie("role",e.role)("aria-disabled",e.disabledClass)("title",e.title)("aria-label",e.title)("data-fab-item-index",e.indexAttr),ue("k-fab-item",e.hostClass)("k-disabled",e.disabledClass))},inputs:{cssClass:"cssClass",cssStyle:"cssStyle",isFocused:"isFocused",index:"index",item:"item",dialItemTemplate:"dialItemTemplate",align:"align"},attrs:PMe,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","k-fab-item-text",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"k-fab-item-text"],[3,"ngClass"]],template:function(t,e){1&t&&(T(0,VMe,1,6,null,0),T(1,HMe,3,2,"ng-container",0)),2&t&&(y("ngIf",e.dialItemTemplate),k(1),y("ngIf",!e.dialItemTemplate))},directives:[qe,En,Ft],encapsulation:2}),i}(),ZW=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.focusService=t,this.cdr=e,this.hostClass=!0,this.subscriptions=new Je,this.subscriptions.add(this.focusService.onFocus.subscribe(function(){return n.cdr.detectChanges()}))}return v(r,[{key:"bottomClass",get:function(){return"top"===this.align.vertical||"middle"===this.align.vertical}},{key:"topClass",get:function(){return"bottom"===this.align.vertical}},{key:"isFocused",value:function(e){return this.focusService.isFocused(e)}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(SD),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoDialList",""]],hostVars:6,hostBindings:function(t,e){2&t&&ue("k-fab-items",e.hostClass)("k-fab-items-bottom",e.bottomClass)("k-fab-items-top",e.topClass)},inputs:{dialItems:"dialItems",dialItemTemplate:"dialItemTemplate",align:"align"},attrs:KMe,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoButtonFocusable","","kendoDialItem","",3,"item","index","dialItemTemplate","isFocused","ngClass","ngStyle","align"]],template:function(t,e){1&t&&T(0,jMe,2,7,"ng-container",0),2&t&&y("ngForOf",e.dialItems)},directives:[XW,gn,II,Ft,Vi],encapsulation:2}),i}(),_Re={provide:wD,useValue:{useLeftRightArrows:!1}},YW={small:"k-fab-sm",medium:"k-fab-md",large:"k-fab-lg"},QW={small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"},JW="k-fab-solid",DD="16px",n7="primary",CRe=function(){var i=function(){function r(t,e,n,a,o,s,l,u){var c=this;p(this,r),this.renderer=t,this.element=e,this.focusService=n,this.navigationService=a,this.ngZone=o,this.popupService=s,this.builder=l,this.localizationService=u,this.positionMode="fixed",this.dialItemAnimation=!0,this.tabIndex=0,this.dialItems=[],this.onBlur=new O,this.onFocus=new O,this.dialItemClick=new O,this.open=new O,this.close=new O,this.id="k-".concat(qn()),this._themeColor=n7,this._size="medium",this._rounded="full",this._disabled=!1,this._align={horizontal:"end",vertical:"bottom"},this._offset={x:DD,y:DD},this.subscriptions=new Je,this.rtl=!1,this.animationEnd=new O,this.initialSetup=!0,jt(ug),this.subscribeNavigationEvents(),this.subscriptions.add(this.localizationService.changes.subscribe(function(d){c.rtl=d.rtl,c.direction=c.rtl?"rtl":"ltr"}))}return v(r,[{key:"fixedClass",get:function(){return"fixed"===this.positionMode}},{key:"absoluteClass",get:function(){return"absolute"===this.positionMode}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){var n=e||n7;this.handleClasses(n,"themeColor"),this._themeColor=n}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"full";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign(this._align,e)}},{key:"offset",get:function(){return this._offset},set:function(e){this._offset=Object.assign(this._offset,e),this.offsetStyles()}},{key:"componentTabIndex",get:function(){return this.disabled?-1:this.tabIndex}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","themeColor"].forEach(function(n){return e.handleClasses(e[n],n)}),this.renderer.addClass(this.element.nativeElement,this.alignClass()),this.offsetStyles(),this.initialSetup=!1}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"isOpen",get:function(){return Xa(this.popupRef)}},{key:"focus",value:function(){Ze()&&this.button.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.button.nativeElement.blur()}},{key:"toggleDial",value:function(e){var n=this;if(!this.disabled&&this.hasDialItems){var a=Xa(e)?e:!this.isOpen;this.disabled||a===this.isOpen||(a?setTimeout(function(){return n.openDial()}):this.closeDial())}}},{key:"role",get:function(){return this.dialItems&&this.dialItems.length?"menubutton":"button"}},{key:"ariaExpanded",get:function(){return Xa(this.isOpen)}},{key:"ariaHasPopup",get:function(){return Xa(this.isOpen)}},{key:"iconClasses",get:function(){var e=[];return this.iconClass&&e.push("".concat(this.iconClass)),this.icon&&e.push("k-fab-icon k-icon k-i-".concat(this.icon)),e}},{key:"clickHandler",value:function(){var e=this;this.disabled||!this.hasDialItems||this.ngZone.run(function(){e.toggleDialWithEvents(!e.isOpen)})}},{key:"keyDownHandler",value:function(e){this.keyHandler(e)}},{key:"keyHandler",value:function(e,n){if(!this.disabled){var s=this.navigationService.process({altKey:e.altKey,current:this.focusService.focused||0,keyCode:e.keyCode,keyEvent:n,max:this.dialItems?this.dialItems.length-1:0,min:0,flipNavigation:"bottom"===this.align.vertical});s!==Vr.Undefined&&s!==Vr.Tab&&e.preventDefault()}}},{key:"onItemClick",value:function(e){var n=CD(e.target,".k-fab-item");if(n){var a=n.getAttribute("data-fab-item-index");this.emitItemClick(a)}}},{key:"focusHandler",value:function(){this.disabled||this.onFocus.emit()}},{key:"blurHandler",value:function(){this.onBlur.emit(),this.toggleDialWithEvents(!1)}},{key:"handleClasses",value:function(e,n){if(Xa(this.button)&&(this[n]!==e||this.initialSetup)){var a=this.button.nativeElement,o={themeColor:"".concat(JW,"-").concat(this.themeColor),size:YW[this.size],rounded:QW[this.rounded]},s={themeColor:"none"!==e?"".concat(JW,"-").concat(e):"",size:YW[e],rounded:QW[e]};this.renderer.removeClass(a,o[n]),s[n]&&this.renderer.addClass(a,s[n])}}},{key:"onEnterPressed",value:function(){this.emitItemClick(this.focusService.focused)}},{key:"emitItemClick",value:function(e){var n=this.dialItems[e];n&&!n.disabled&&(this.dialItemClick.emit({item:n,index:e}),this.toggleDialWithEvents(!1))}},{key:"subscribeNavigationEvents",value:function(){this.subscriptions.add(this.navigationService.navigate.subscribe(this.onArrowKeyNavigate.bind(this))),this.subscriptions.add(this.navigationService.enter.subscribe(this.onNavigationEnterPress.bind(this))),this.subscriptions.add(xn(this.navigationService.close,this.navigationService.esc).subscribe(this.onNavigationClose.bind(this)))}},{key:"onArrowKeyNavigate",value:function(e){this.focusService.focus(e)}},{key:"onNavigationEnterPress",value:function(){var e=this;this.ngZone.run(function(){if(e.isOpen){var n=e.focusService.focused,a=e.dialItems[n];if(a&&a.disabled)return;if(Xa(n)&&-1!==n)return void e.onEnterPressed()}!e.isOpen&&Ze()&&(e.toggleDialWithEvents(!0),e.button.nativeElement.focus())})}},{key:"onNavigationClose",value:function(){var e=this;this.isOpen&&this.ngZone.run(function(){e.toggleDialWithEvents(!1),Ze()&&e.button.nativeElement.focus()})}},{key:"alignClass",value:function(){return"k-pos-".concat(this.align.vertical,"-").concat(this.align.horizontal)}},{key:"toggleDialWithEvents",value:function(e){if(e!==this.isOpen){var n=new zW;e?this.open.emit(n):this.close.emit(n),!n.isDefaultPrevented()&&(e?this.openDial():this.closeDial())}}},{key:"openPopup",value:function(){var e=this;if(!this.isOpen){var n=this.icon&&!this.text,a=this.rtl,o=this.align;this.popupRef=this.popupService.open({anchor:this.element.nativeElement,animate:!1,content:this.popupTemplate,anchorAlign:fRe(o,a),popupAlign:vRe(o,a),popupClass:"k-fab-popup k-popup-transparent"});var s=this.popupRef.popupElement;this.renderer.setStyle(s,"box-shadow","none"),n&&this.subscriptions.add(this.popupRef.popupOpen.subscribe(function(){return e.positionPopup()})),this.ngZone.runOutsideAngular(function(){e.popupMouseDownListener=e.renderer.listen(s,"mousedown",function(l){l.preventDefault()})}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.toggleDialWithEvents(!1)})}}},{key:"closePopup",value:function(){this.isOpen&&(this.popupMouseDownListener&&this.popupMouseDownListener(),this.popupRef.close(),this.popupRef=null)}},{key:"openDial",value:function(){this.openPopup(),this.focusService.focus(0),this.dialItemAnimation&&this.isValidAnimation()&&this.playAnimation(!0)}},{key:"closeDial",value:function(){var e=this;this.dialItemAnimation&&this.isValidAnimation()?(this.playAnimation(!1),this.animationEnd.pipe(It(1)).subscribe(function(){return e.closePopup()})):this.closePopup()}},{key:"isValidAnimation",value:function(){var e=this.dialItemAnimation;return"boolean"==typeof e||0!==e.duration}},{key:"positionPopup",value:function(){if(!this.dialItemTemplate){var n=this.element.nativeElement.getBoundingClientRect().width,a=this.popupRef.popupElement,o=a.querySelector(".k-fab-item-icon");if(o){var l=n/2-o.getBoundingClientRect().width/2,u=a.getBoundingClientRect().left,c="end"===this.align.horizontal;a.style.left="".concat(this.rtl?c?l+u:u-l:c?u-l:l+u,"px")}}}},{key:"offsetStyles",value:function(){var e=this.element.nativeElement;this.renderer.setStyle(e,this.horizontalPosition,this.horizontalOffset),this.renderer.setStyle(e,this.verticalPosition,this.verticalOffset)}},{key:"hasDialItems",get:function(){return Xa(this.dialItems)&&0!==this.dialItems.length}},{key:"verticalPosition",get:function(){return{top:"top",middle:"top",bottom:"bottom"}[this.align.vertical]}},{key:"verticalOffset",get:function(){return"middle"===this.align.vertical?this.offset.y===DD?"50%":"calc(50% + ".concat(this.offset.y,")"):this.offset.y}},{key:"horizontalPosition",get:function(){return{end:this.rtl?"left":"right",center:"left",start:this.rtl?"right":"left"}[this.align.horizontal]}},{key:"horizontalOffset",get:function(){return"center"===this.align.horizontal?this.offset.x===DD?"50%":"calc(50% + ".concat(this.offset.x,")"):this.offset.x}},{key:"playerFor",value:function(e,n){return this.builder.build(n).create(e)}},{key:"playAnimation",value:function(e){var n=this,a=this.durationSettings(),o={duration:a.duration,gap:a.gap,align:this.align},s=e?function pRe(i){var t=i.duration,e=i.gap;return Tw([MK(".k-fab-item",[Lt({opacity:0,transform:"translateY(".concat("bottom"===i.align.vertical?"8px":"-8px",")")}),RK(e,[Ai("".concat(t,"ms ease-in"),Lt({opacity:"*",transform:"translateY(0)"}))])],{optional:!0})])}(o):function gRe(i){var r="bottom"===i.align.vertical,t=i.duration,e=i.gap;return Tw([MK(".k-fab-item",[Lt({opacity:"*",transform:"translateY(0)"}),RK(-e,[Ai("".concat(t,"ms ease-in"),Lt({opacity:0,transform:"translateY(".concat(r?"8px":"-8px",")")}))])],{optional:!0})])}(o),l=this.playerFor(this.popupRef.popupElement,s);l.play(),l.onDone(function(){l&&(n.animationEnd.emit(),l.destroy(),l=null)})}},{key:"durationSettings",value:function(){return{duration:this.animationDuration(),gap:this.animationGap()}}},{key:"animationGap",value:function(){var e=this.dialItemAnimation;return"boolean"!=typeof e&&Xa(e.gap)?e.gap:90}},{key:"animationDuration",value:function(){var e=this.dialItemAnimation;return"boolean"!=typeof e&&Xa(e.duration)?e.duration:180}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(SD),m(jW),m(be),m(Cr),m(zp),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-floatingactionbutton"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,$W,5),he(n,qW,5)),2&t&&(P(a=B())&&(e.dialItemTemplate=a.first),P(a=B())&&(e.fabTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(xMe,7),ge(MMe,7)),2&t&&(P(n=B())&&(e.button=n.first),P(n=B())&&(e.popupTemplate=n.first))},hostVars:5,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-pos-fixed",e.fixedClass)("k-pos-absolute",e.absoluteClass))},inputs:{themeColor:"themeColor",size:"size",rounded:"rounded",disabled:"disabled",align:"align",offset:"offset",positionMode:"positionMode",icon:"icon",iconClass:"iconClass",buttonClass:"buttonClass",dialClass:"dialClass",text:"text",dialItemAnimation:"dialItemAnimation",tabIndex:"tabIndex",dialItems:"dialItems"},outputs:{onBlur:"blur",onFocus:"focus",dialItemClick:"dialItemClick",open:"open",close:"close"},features:[de([SD,jW,_Re,Y,{provide:Et,useValue:"kendo.floatingactionbutton"}])],decls:6,vars:17,consts:[["type","button",1,"k-fab","k-fab-solid",3,"tabIndex","ngClass","disabled","kendoEventsOutsideAngular","scope","focus","blur"],["button",""],[4,"ngIf"],["popupTemplate",""],[3,"ngTemplateOutlet"],[3,"ngClass",4,"ngIf"],["class","k-fab-text",4,"ngIf"],[3,"ngClass"],[1,"k-fab-text"],["kendoDialList","",3,"ngClass","dialItems","dialItemTemplate","align","click"]],template:function(t,e){1&t&&(A(0,"button",0,1),Q("focus",function(){return e.focusHandler()})("blur",function(){return e.blurHandler()}),T(2,$Me,1,1,null,2),T(3,ZMe,3,2,"ng-container",2),x(),T(4,YMe,1,5,"ng-template",null,3,$n)),2&t&&(ue("k-disabled",e.disabled),y("tabIndex",e.componentTabIndex)("ngClass",e.buttonClass)("disabled",e.disabled)("kendoEventsOutsideAngular",ln(14,QMe,e.keyDownHandler,e.clickHandler))("scope",e),ie("id",e.id)("role",e.role)("aria-disabled",e.disabled)("aria-expanded",e.ariaExpanded)("aria-haspopup",e.ariaHasPopup),k(2),y("ngIf",e.fabTemplate),k(1),y("ngIf",!e.fabTemplate))},directives:[ZW,Ft,qi,qe,En],encapsulation:2}),i}(),SRe=([].concat([CRe,$W,qW],[ZW,XW]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,jy,cr]]}),i}()),wRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[iRe,bD,sRe,uRe,hRe,SRe]}),i}(),NI=function(r,t,e){var n=function o(){e(),r.removeEventListener(t,o,!1)},a=function(){return r.addEventListener(t,n,!1)};return a(),{remove:a}},ARe=function(r){r.animated=!0,i7(r)},xRe=function(r){r.released=!0,i7(r)},i7=function(r){if(r.released&&r.animated){var t=r.blob,e=r.ripple,n=r.container;n&&NI(n,"blur",function(){return n.classList.remove("k-ripple-target")}),t&&(NI(t,"transitionend",function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),t.style.transition="opacity 200ms linear",t.style.opacity="0")}},RRe={name:"@progress/kendo-angular-ripple",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650441054,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},$y=function(){var i=function(){function r(t,e,n){p(this,r),this.renderer=t,this.element=e,this.ngZone=n,this.isDisabled=!1,this.removeListeners=function(){},jt(RRe)}return v(r,[{key:"disabled",set:function(e){this.isDisabled=e,this.isDisabled?this.removeListeners():this.registerListeners(),this.renderer.setProperty(this.element.nativeElement,"disabled",e)}},{key:"containerClass",get:function(){return!0}},{key:"ngOnDestroy",value:function(){this.removeListeners()}},{key:"ngAfterViewInit",value:function(){var e=this;this.isDisabled||this.ngZone.runOutsideAngular(function(){e.registerListeners()})}},{key:"registerListeners",value:function(){if(Ze()){this.removeListeners();var e=function(r,t){var o,n=(o=[{selector:".k-button:not(li)"},{selector:".k-list>.k-item",options:{global:!0}},{selector:".k-checkbox,.k-radio",options:{events:["focusin","animationend","click"]}}].map(function(a){var o={events:["mousedown","touchdown"],global:!1},l=a.options,u=void 0===l?o:l,c=function(r,t){return function(e){var o,n=e.target,a=n.document||n.ownerDocument;if(o=t.container?t.container(n):function(r,t){if(r.closest)return r.closest(t);for(var e=Element.prototype.matches?function(a,o){return a.matches(o)}:function(a,o){return a.msMatchesSelector(o)},n=r;n;){if(e(n,t))return n;n=n.parentElement}}(n,r),o&&(!/focus/i.test(e.type)||!o.classList.contains("k-ripple-target")))if(n.classList.contains("k-checkbox")||n.classList.contains("k-radio"))e.target.classList.remove("k-ripple-focus"),"animationend"!==e.type&&e.target.classList.add("k-ripple-focus");else{o.classList.add("k-ripple-target");var l=function(r){var t=r.createElement("div");t.className="k-ripple";var e=r.createElement("div");return e.className="k-ripple-blob",t.appendChild(e),[t,e]}(a),u=Bt(l,2),c=u[0],d=u[1],h={animated:!1,released:!1,blob:d,container:o,ripple:c};NI(e.currentTarget,{focusin:"focusout",keydown:"keyup",mousedown:"mouseup",pointerdown:"pointerup",touchdown:"touchup",animationstart:"animationend"}[e.type],function(){return xRe(h)}),o.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity");var g=o.getBoundingClientRect(),_=0,C=0;/mouse|pointer|touch/.test(e.type)?(_=e.clientX-g.left,C=e.clientY-g.top):(_=g.width/2,C=g.height/2);var M=_-(_t)throw new Error("The max value should be greater than the min.")}(n,a),e.value){(null==o||Number.isNaN(o))&&(this.value=n);var s=this.displayValue;this.displayValue=r7(this.min,this.max,o),this.previousValue=s}this.min=n,this.max=a,this.displayValue=r7(this.min,this.max,o)}}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["ng-component"]],hostVars:19,hostBindings:function(t,e){2&t&&(ie("dir",e.dirAttribute)("role",e.roleAttribute)("aria-valuemin",e.ariaMinAttribute)("aria-valuemax",e.ariaMaxAttribute)("aria-valuenow",e.ariaValueAttribute),ue("k-widget",e.widgetClasses)("k-progressbar",e.widgetClasses)("k-progressbar-horizontal",e.isHorizontal)("k-progressbar-vertical",e.isVertical)("k-state-disabled",e.disabledClass)("k-progressbar-reverse",e.reverseClass)("k-progressbar-indeterminate",e.indeterminateClass))},inputs:{max:"max",min:"min",value:"value",orientation:"orientation",disabled:"disabled",reverse:"reverse",indeterminate:"indeterminate"},features:[Ie],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),o7=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n)).localization=n,s.zone=a,s.renderer=o,s.label=!0,s.animation=!1,s.animationEnd=new O,s}return v(e,[{key:"showLabel",get:function(){return"boolean"==typeof this.label?this.label:(this.label&&!this.label.hasOwnProperty("visible")&&(this.label.visible=!0),this.label.visible)}},{key:"labelPosition",get:function(){return"boolean"==typeof this.label?"end":(this.label&&!this.label.hasOwnProperty("position")&&(this.label.position="end"),this.label.position)}},{key:"isPositionStart",get:function(){return"start"===this.labelPosition}},{key:"isPositionCenter",get:function(){return"center"===this.labelPosition}},{key:"isPositionEnd",get:function(){return"end"===this.labelPosition}},{key:"formattedLabelValue",get:function(){return function(r,t,e,n){var a=function(r){var t=r.toString().split(".");return 1===t.length?"".concat(t[0]):"".concat(t[0],".").concat(t[1].substr(0,3))}(r);if("boolean"!=typeof n){if("string"!=typeof n.format)return"function"==typeof n.format?n.format(r):a;switch(n.format){case"value":default:return a;case"percent":return"".concat(Math.floor(function(r,t,e){var n=Math.abs((e-t)/100);return Math.abs((r-t)/n)}(r,t,e)),"%")}}return a}(this.displayValue,this.min,this.max,this.label)}},{key:"ngOnChanges",value:function(a){$(q(e.prototype),"ngOnChanges",this).call(this,a),this.isAnimationInProgress&&function(r){var t=Boolean(r.animation);return t&&!(t&&r.animation.currentValue)}(a)&&(this.cancelCurrentAnimation=!0),function(r,t,e,n){return t&&"undefined"!=typeof requestAnimationFrame&&r.value&&e!==n}(a,this.animation,this.previousValue,this.displayValue)&&!a.value.firstChange&&this.startAnimation(this.previousValue)}},{key:"ngOnDestroy",value:function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame)}},{key:"startAnimation",value:function(a){var o=this;this.isAnimationInProgress=!0;var s=this.progressStatusElement.nativeElement,l=this.progressStatusWrapperElement.nativeElement,u=this.getAnimationOptions(a);this.zone.runOutsideAngular(function(){o.animationFrame&&cancelAnimationFrame(o.animationFrame),function d(){var h=(new Date).getTime()-u.startTime,f=Math.min(h/u.duration,1),g=u.startSize+u.deltaSize*f;if(o.renderValueChange(s,l,u.property,g,100/g*100),f<1){if(o.cancelCurrentAnimation)return void o.resetProgress(s,l,u.property);o.animationFrame=requestAnimationFrame(d)}else o.stopAnimation(a)}()})}},{key:"animationDuration",get:function(){return"boolean"==typeof this.animation?400:(this.animation&&!this.animation.hasOwnProperty("duration")&&(this.animation.duration=400),this.animation.duration)}},{key:"stopAnimation",value:function(a){var o=this;ut(this.animationEnd)&&this.zone.run(function(){o.animationEnd.emit({from:a,to:o.displayValue})}),this.zone.run(function(){o.isAnimationInProgress=!1})}},{key:"getAnimationOptions",value:function(a){var o="horizontal"===this.orientation,s=FI(this.min,this.max,a),l=o?100*s:100,u=o?100:100*s,c=o?"width":"height",d=(new Date).getTime(),f=o?this.statusWidth-l:this.statusHeight-u;return{property:c,startTime:d,startSize:o?l:u,deltaSize:f,duration:this.animationDuration*Math.abs(f/100)}}},{key:"renderValueChange",value:function(a,o,s,l,u){this.renderer.setStyle(a,s,l+"%"),this.renderer.setStyle(o,s,u+"%")}},{key:"resetProgress",value:function(a,o,s){var l=this,u=FI(this.min,this.max,this.value);this.renderValueChange(a,o,s,100*u,100/u),this.zone.run(function(){l.cancelCurrentAnimation=!1,l.isAnimationInProgress=!1})}}]),e}(a7);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-progressbar"]],viewQuery:function(t,e){var n;1&t&&(ge(IRe,5),ge(NRe,5)),2&t&&(P(n=B())&&(e.progressStatusElement=n.first),P(n=B())&&(e.progressStatusWrapperElement=n.first))},inputs:{label:"label",progressCssStyle:"progressCssStyle",progressCssClass:"progressCssClass",emptyCssStyle:"emptyCssStyle",emptyCssClass:"emptyCssClass",animation:"animation"},outputs:{animationEnd:"animationEnd"},exportAs:["kendoProgressBar"],features:[de([Y,{provide:Et,useValue:"kendo.progressbar"}]),j,Ie],decls:7,vars:28,consts:[[1,"k-progress-status-wrap",3,"ngStyle","ngClass"],["class","k-progress-status",4,"ngIf"],[1,"k-state-selected",3,"ngStyle","ngClass"],["progressStatus",""],[1,"k-progress-status-wrap"],["progressStatusWrap",""],[1,"k-progress-status"]],template:function(t,e){1&t&&(A(0,"span",0),T(1,FRe,2,1,"span",1),x(),A(2,"div",2,3)(4,"span",4,5),T(6,LRe,2,1,"span",1),x()()),2&t&&(ue("k-progress-start",e.isPositionStart)("k-progress-center",e.isPositionCenter)("k-progress-end",e.isPositionEnd),y("ngStyle",e.emptyCssStyle)("ngClass",e.emptyCssClass),k(1),y("ngIf",e.showLabel),k(1),Qe("width",e.statusWidth,"%")("height",e.statusHeight,"%"),ue("k-complete",e.isCompleted),y("ngStyle",e.progressCssStyle)("ngClass",e.progressCssClass),k(2),Qe("width",e.statusWrapperWidth,"%")("height",e.statusWrapperHeight,"%"),ue("k-progress-start",e.isPositionStart)("k-progress-center",e.isPositionCenter)("k-progress-end",e.isPositionEnd),k(2),y("ngIf",e.showLabel))},directives:[Vi,Ft,qe],encapsulation:2}),i}(),ZRe=[bt],YRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[ZRe]}),i}(),QRe=["header"],JRe=["contentWrapper"];function eOe(i,r){1&i&&z(0,"span",6),2&i&&y("ngClass",D().iconClasses)}function tOe(i,r){1&i&&z(0,"img",7),2&i&&y("src",D().imageUrl,uc)}function nOe(i,r){if(1&i&&(Ge(0),A(1,"span",8),te(2),x(),Ve()),2&i){var t=D();k(2),at(t.title)}}function iOe(i,r){}var rOe=function(r,t,e,n,a,o,s,l,u,c){return{title:r,id:t,icon:e,iconClass:n,imageUrl:a,selected:o,expanded:s,disabled:l,focused:u,content:c}},aOe=function(r){return{item:r}};function oOe(i,r){if(1&i&&T(0,iOe,0,0,"ng-template",9),2&i){var t=D();y("ngTemplateOutlet",t.titleTemplate)("ngTemplateOutletContext",ot(13,aOe,dR(2,rOe,[t.title,t.id,t.icon,t.iconClass,t.imageUrl,t.selected,t.expanded,t.disabled,t.focused,t.content])))}}var sOe=function(r,t){return{"k-i-arrow-chevron-up k-panelbar-collapse":r,"k-i-arrow-chevron-down k-panelbar-expand":t}};function lOe(i,r){if(1&i&&z(0,"span",10),2&i){var t=D();y("ngClass",ln(1,sOe,t.expanded,!t.expanded))}}function uOe(i,r){if(1&i&&(A(0,"div",14),dn(1),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight)}}function cOe(i,r){}var u7=function(r,t,e,n,a,o){return{title:r,id:t,icon:e,imageUrl:n,disabled:a,content:o}},PI=function(r){return{$implicit:r}};function dOe(i,r){if(1&i&&(A(0,"div",15),T(1,cOe,0,0,"ng-template",9),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngTemplateOutlet",t.contentTemplate.first.templateRef)("ngTemplateOutletContext",ot(13,PI,ay(6,u7,t.title,t.id,t.icon,t.imageUrl,t.disabled,t.content)))}}function hOe(i,r){if(1&i&&z(0,"kendo-panelbar-item",18),2&i){var t=D().$implicit,e=D(3);y("title",t.title)("id",t.id)("icon",t.icon)("iconClass",t.iconClass)("imageUrl",t.imageUrl)("selected",!!t.selected)("expanded",!!t.expanded)("disabled",!!t.disabled)("template",e.template)("items",t.children)("content",t.content)}}function fOe(i,r){if(1&i&&(Ge(0),T(1,hOe,1,11,"kendo-panelbar-item",17),Ve()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.hidden)}}function vOe(i,r){if(1&i&&(A(0,"div",14),T(1,fOe,2,1,"ng-container",16),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngForOf",t.items)}}function pOe(i,r){}function gOe(i,r){1&i&&te(0),2&i&&at(D(3).content)}function mOe(i,r){if(1&i&&(A(0,"div",15),T(1,pOe,0,0,"ng-template",9),T(2,gOe,1,1,"ng-template",19),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ot(14,PI,ay(7,u7,t.title,t.id,t.icon,t.imageUrl,t.disabled,t.content))),k(1),y("ngIf",!t.template)}}function _Oe(i,r){if(1&i&&(A(0,"div",null,11),T(2,uOe,2,4,"div",12),T(3,dOe,2,15,"div",13),T(4,vOe,2,5,"div",12),T(5,mOe,3,16,"div",13),x()),2&i){var t=D();y("@toggle",t.state),ie("role","group")("aria-hidden",!t.disabled&&!t.expanded),k(2),y("ngIf",t.hasChildItems&&!(null!=t.items&&t.items.length)),k(1),y("ngIf",t.hasContent&&!t.content),k(1),y("ngIf",t.hasItems),k(1),y("ngIf",t.content)}}var c7=[[["kendo-panelbar-item"]]],d7=["kendo-panelbar-item"];function yOe(i,r){1&i&&dn(0,0,["*ngIf","contentChildItems && !items"])}function kOe(i,r){if(1&i&&z(0,"kendo-panelbar-item",4),2&i){var t=D().$implicit,e=D(2);y("title",t.title)("id",t.id)("icon",t.icon)("iconClass",t.iconClass)("imageUrl",t.imageUrl)("selected",!!t.selected)("expanded",!!t.expanded)("disabled",!!t.disabled)("template",e.templateRef)("items",t.children)("content",t.content)}}function COe(i,r){if(1&i&&(Ge(0),T(1,kOe,1,11,"kendo-panelbar-item",3),Ve()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.hidden)}}function bOe(i,r){1&i&&T(0,COe,2,1,"ng-container",2),2&i&&y("ngForOf",D().items)}function SOe(i,r){1&i&&(Ge(0),dn(1),Ve())}function wOe(i,r){1&i&&z(0,"div",2)}var _a=["*"];function DOe(i,r){if(1&i&&z(0,"kendo-splitter-bar",2),2&i){var t=D().index,e=D();y("index",t)("orientation",e.orientation)}}function EOe(i,r){if(1&i&&(Ge(0),T(1,DOe,1,2,"kendo-splitter-bar",1),Ve()),2&i){var t=r.last;k(1),y("ngIf",!t)}}var TOe=[[["kendo-splitter-pane"]]],AOe=["kendo-splitter-pane"],xOe=["kendoTabStripScrollableButton",""],MOe=["kendoTabStripTab",""];function ROe(i,r){if(1&i&&(A(0,"span",2),te(1),x()),2&i){var t=D();k(1),at(t.tab.title)}}function OOe(i,r){}function IOe(i,r){if(1&i&&(A(0,"span",2),T(1,OOe,0,0,"ng-template",3),x()),2&i){var t=D();k(1),y("ngTemplateOutlet",null==t.tab.tabTitle?null:t.tab.tabTitle.templateRef)}}function NOe(i,r){if(1&i){var t=Me();A(0,"span",4),Q("click",function(){re(t);var a=D();return a.closeTab(a.index)}),z(1,"span",5),x()}if(2&i){var e=D();y("title",e.closeButtonTitle),ie("aria-label",e.closeButtonTitle),k(1),y("ngClass",e.closeButtonClasses)}}var FOe=["tablist"],LOe=["prevScrollButton"],POe=["nextScrollButton"],BOe=["tabHeaderContainer"];function GOe(i,r){1&i&&Wt(0)}function VOe(i,r){1&i&&Wt(0)}function UOe(i,r){if(1&i&&(Ge(0),T(1,GOe,1,0,"ng-container",5),T(2,VOe,1,0,"ng-container",5),Ve()),2&i){D();var t=Yt(4),e=Yt(6);k(1),y("ngTemplateOutlet",t),k(1),y("ngTemplateOutlet",e)}}function zOe(i,r){1&i&&Wt(0)}function HOe(i,r){1&i&&Wt(0)}function KOe(i,r){if(1&i&&(Ge(0),T(1,zOe,1,0,"ng-container",5),T(2,HOe,1,0,"ng-container",5),Ve()),2&i){D();var t=Yt(6),e=Yt(4);k(1),y("ngTemplateOutlet",t),k(1),y("ngTemplateOutlet",e)}}function jOe(i,r){if(1&i){var t=Me();A(0,"span",11,12),Q("tabScroll",function(a){return re(t),D(2).tabScroll.emit(a)})("onClick",function(a){return re(t),D(2).onScrollButtonClick(a)}),x()}if(2&i){var e=D(2);y("scrollable",e.scrollable)("tabPosition",e.tabPosition)("prev",!0)}}function WOe(i,r){if(1&i){var t=Me();Ge(0),A(1,"li",13,14),Q("tabClose",function(s){return re(t),D(2).tabClose.emit(s)})("click",function(s){var u=re(t).index;return D(2).onTabClick(s,u)}),x(),Ve()}if(2&i){var e=r.$implicit,n=r.index,a=D(2);k(1),y("ngClass",e.cssClass)("ngStyle",e.cssStyle)("tab",e)("index",n)("tabStripClosable",a.closable)("tabStripCloseIcon",a.closeIcon)("id","k-tabstrip-tab-"+n),ie("aria-controls","k-tabstrip-tabpanel-"+n)}}function $Oe(i,r){if(1&i){var t=Me();A(0,"span",11,15),Q("tabScroll",function(a){return re(t),D(2).tabScroll.emit(a)})("onClick",function(a){return re(t),D(2).onScrollButtonClick(a)}),x()}if(2&i){var e=D(2);y("scrollable",e.scrollable)("tabPosition",e.tabPosition)("prev",!1)}}function qOe(i,r){if(1&i&&(A(0,"div",6),T(1,jOe,2,3,"span",7),A(2,"ul",8,9),T(4,WOe,3,8,"ng-container",10),x(),T(5,$Oe,2,3,"span",7),x()),2&i){var t=D();y("ngClass",t.itemsWrapperClass),k(1),y("ngIf",t.hasScrollButtons),k(1),Qe("justify-content",t.tabsAlignmentStyles)("width",t.tabListWidth)("height",t.tabListHeight),k(2),y("ngForOf",t.tabs),k(1),y("ngIf",t.hasScrollButtons)}}function XOe(i,r){}function ZOe(i,r){if(1&i&&(A(0,"div",18),T(1,XOe,0,0,"ng-template",19),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D(2);y("@state",e.selected&&a.animate?"active":"inactive")("ngClass",!a.keepTabContent||e.selected?"k-content k-state-active":"k-content")("tabIndex",0)("id","k-tabstrip-tabpanel-"+n),ie("aria-hidden",!e.selected)("aria-expanded",e.selected)("aria-labelledby","k-tabstrip-tab-"+n)("aria-disabled",e.disabled),k(1),y("ngTemplateOutlet",null==e.tabContent?null:e.tabContent.templateRef)}}function YOe(i,r){if(1&i&&T(0,ZOe,2,9,"div",17),2&i){var t=r.$implicit,e=D(2);y("ngIf",t.selected||e.keepTabContent)}}function QOe(i,r){1&i&&T(0,YOe,1,1,"ng-template",16),2&i&&y("ngForOf",D().tabs)}function JOe(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().onResize()}),x()}}var eIe=["kendoDrawerItem",""];function tIe(i,r){}function nIe(i,r){if(1&i&&T(0,tIe,0,0,"ng-template",2),2&i){var t=D();y("ngTemplateOutlet",t.itemTemplate)("ngTemplateOutletContext",ot(2,PI,t.item))}}function iIe(i,r){if(1&i&&(Ge(0),z(1,"span",4),A(2,"span",5),te(3),x(),Ve()),2&i){var t=D(2);k(1),y("ngClass",t.iconClasses),k(2),at(t.item.text)}}function rIe(i,r){if(1&i&&(Ge(0),z(1,"span",4),Ve()),2&i){var t=D(2);k(1),y("ngClass",t.iconClasses)}}function aIe(i,r){if(1&i&&(T(0,iIe,4,2,"ng-container",3),T(1,rIe,2,1,"ng-container",3)),2&i){var t=D();y("ngIf",t.expanded),k(1),y("ngIf",t.mini&&!t.expanded)}}var oIe=["kendoDrawerList",""];function sIe(i,r){if(1&i&&z(0,"li",3),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("item",e)("index",n)("mini",a.mini)("expanded",a.expanded)("itemTemplate",a.itemTemplate)("ngClass",e.cssClass)("ngStyle",e.cssStyle),ie("data-kendo-drawer-index",n)}}function lIe(i,r){if(1&i&&(A(0,"li",4),te(1," \xa0 "),x()),2&i){var t=D().$implicit;y("ngClass",t.cssClass)("ngStyle",t.cssStyle)}}function uIe(i,r){if(1&i&&(Ge(0),T(1,sIe,1,8,"li",1),T(2,lIe,2,2,"li",2),Ve()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.separator),k(1),y("ngIf",t.separator)}}function cIe(i,r){}function dIe(i,r){if(1&i&&T(0,cIe,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",null==t.headerTemplate?null:t.headerTemplate.templateRef)}}function hIe(i,r){}function fIe(i,r){if(1&i&&T(0,hIe,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",null==t.footerTemplate?null:t.footerTemplate.templateRef)}}function vIe(i,r){if(1&i){var t=Me();Ge(0),T(1,dIe,1,1,null,2),A(2,"ul",3),Q("select",function(a){return re(t),D(2).onSelect(a)}),x(),T(3,fIe,1,1,null,2),Ve()}if(2&i){var e=D(2);k(1),y("ngIf",e.headerTemplate),k(1),y("items",e.items)("mini",e.mini)("expanded",e.expanded)("itemTemplate",null==e.itemTemplate?null:e.itemTemplate.templateRef),k(1),y("ngIf",e.footerTemplate)}}function pIe(i,r){}function gIe(i,r){if(1&i&&T(0,pIe,0,0,"ng-template",4),2&i){var t=D(2);y("ngTemplateOutlet",null==t.drawerTemplate?null:t.drawerTemplate.templateRef)}}function mIe(i,r){if(1&i&&(A(0,"div",1),T(1,vIe,4,6,"ng-container",2),T(2,gIe,1,1,null,2),x()),2&i){var t=D();Qe("width",t.drawerWidth,"px"),k(1),y("ngIf",!t.drawerTemplate),k(1),y("ngIf",t.drawerTemplate)}}function _Ie(i,r){if(1&i){var t=Me();A(0,"div",1),Q("click",function(){return re(t),D().closeDrawer()}),x()}}var yIe=["stepLink"],kIe=["kendoStepperStep",""];function CIe(i,r){}var BI=function(r,t){return{$implicit:r,index:t}};function bIe(i,r){if(1&i&&T(0,CIe,0,0,"ng-template",3),2&i){var t=D();y("ngTemplateOutlet",t.stepTemplate)("ngTemplateOutletContext",ln(2,BI,t.step,t.index))}}function SIe(i,r){}function wIe(i,r){if(1&i&&T(0,SIe,0,0,"ng-template",3),2&i){var t=D(3);y("ngTemplateOutlet",t.indicatorTemplate)("ngTemplateOutletContext",ln(2,BI,t.step,t.index))}}function DIe(i,r){1&i&&z(0,"span",9),2&i&&y("ngClass",D(4).indicatorIconClasses)}function EIe(i,r){if(1&i&&(A(0,"span",10),te(1),x()),2&i){var t=D(4);k(1),at(t.indicatorText)}}function TIe(i,r){if(1&i&&(Ge(0),T(1,DIe,1,1,"span",7),T(2,EIe,2,1,"span",8),Ve()),2&i){var t=D(3);k(1),y("ngIf",t.showIndicatorIcon),k(1),y("ngIf",!t.showIndicatorIcon)}}function AIe(i,r){if(1&i&&(A(0,"span",6),T(1,wIe,1,5,null,2),T(2,TIe,3,2,"ng-container",2),x()),2&i){var t=D(2);Qe("transition-duration",t.transitionDuration,"ms"),k(1),y("ngIf",t.indicatorTemplate),k(1),y("ngIf",!t.indicatorTemplate)}}function xIe(i,r){}function MIe(i,r){if(1&i&&T(0,xIe,0,0,"ng-template",3),2&i){var t=D(3);y("ngTemplateOutlet",t.labelTemplate)("ngTemplateOutletContext",ln(2,BI,t.step,t.index))}}function RIe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D(4);k(1),at(t.step.label)}}function OIe(i,r){1&i&&z(0,"span",16),2&i&&y("ngClass",D(4).validationIconClasses)}function IIe(i,r){if(1&i&&(A(0,"span",17),te(1),x()),2&i){var t=D(4);k(1),Nt("(",t.optionalText,")")}}function NIe(i,r){if(1&i&&(Ge(0),T(1,RIe,2,1,"span",12),T(2,OIe,1,1,"span",13),T(3,IIe,2,1,"span",14),Ve()),2&i){var t=D(3);k(1),y("ngIf",t.showLabelText),k(1),y("ngIf",t.showLabelIcon),k(1),y("ngIf",t.step.optional)}}function FIe(i,r){if(1&i&&(A(0,"span",11),T(1,MIe,1,5,null,2),T(2,NIe,4,3,"ng-container",2),x()),2&i){var t=D(2);k(1),y("ngIf",t.labelTemplate),k(1),y("ngIf",!t.labelTemplate)}}function LIe(i,r){if(1&i&&(Ge(0),T(1,AIe,3,4,"span",4),T(2,FIe,3,2,"span",5),Ve()),2&i){var t=D();k(1),y("ngIf",t.showIndicator),k(1),y("ngIf",t.showLabel)}}var PIe=["kendoStepperList",""];function BIe(i,r){if(1&i&&(Ge(0),z(1,"li",1),Ve()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),Qe("max-width",n.maxStepWidth,"%")("max-height",n.maxStepHeight,"%"),ue("k-step-first",0===e)("k-step-last",e===n.steps.length-1)("k-step-done",e0?this.titleTemplates.toArray()[0].templateRef:void 0}},{key:"headerHeight",value:function(){return this.element.nativeElement.offsetHeight-(this.contentWrapper?this.contentWrapper.nativeElement.offsetHeight:0)}},{key:"ngOnInit",value:function(){this.addLevelClass()}},{key:"ngAfterContentChecked",value:function(){var e=this;this.hasItems=this.items&&this.items.filter(function(n){return!n.hidden}).length>0,this.hasChildItems=this.contentItems.filter(function(n){return n!==e}).length>0||this.hasItems,this.hasContent=void 0!==this.contentTemplate&&this.contentTemplate.length>0||void 0!==this.content,this.validateConfiguration()}},{key:"ngAfterViewChecked",value:function(){var e=this;this.childrenItems=this.items?this.viewChildItems.toArray():this.contentItems.filter(function(n){return n!==e})}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"onItemAction",value:function(){this.disabled||this.eventService.onSelect(this)}},{key:"onItemClick",value:function(e){ED(e.target)||this.onItemAction()}},{key:"iconClasses",get:function(){return De({},(this.icon?"k-i-"+this.icon:null)||this.iconClass,!0)}},{key:"serialize",value:function(){return{content:this.content,disabled:this.disabled,expanded:this.expanded,focused:this.focused,icon:this.icon,iconClass:this.iconClass,id:this.id,imageUrl:this.imageUrl,selected:this.selected,title:this.title}}},{key:"subTreeViewItems",value:function(){var e=[];return this.viewChildItems.forEach(function(n){(e=e.concat(n.subTreeViewItems())).push(n)}),e}},{key:"validateConfiguration",value:function(){if(xt()&&this.content&&void 0!==this.contentTemplate&&this.contentTemplate.length>0)throw new Error("Invalid configuration: mixed template components and component property.")}},{key:"toggleAnimationState",value:function(e){!this.animate||(this.state=e&&this.eventService.expandMode!==vl.Single?"active":"activeWithoutAnimation")}},{key:"toggleExpandedChildAnimations",value:function(e){this.childrenItems&&this.childrenItems.forEach(function(n){n.expanded&&(n.toggleAnimationState(e),n.toggleExpandedChildAnimations(e))})}},{key:"addLevelClass",value:function(){this.level>=0&&this.renderer.addClass(this.element.nativeElement,"k-level-".concat(this.level))}},{key:"onWrapperFocusChange",value:function(e){this.wrapperFocused=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(i,13),m(VI),m(_e),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-panelbar-item"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,i,4),he(n,h7,4),he(n,f7,4)),2&t&&(P(a=B())&&(e.contentItems=a),P(a=B())&&(e.contentTemplate=a),P(a=B())&&(e.titleTemplates=a))},viewQuery:function(t,e){var n;1&t&&(ge(QRe,5),ge(JRe,5),ge(i,5)),2&t&&(P(n=B())&&(e.header=n.first),P(n=B())&&(e.contentWrapper=n.first),P(n=B())&&(e.viewChildItems=n))},hostVars:18,hostBindings:function(t,e){2&t&&(QM("id",e.itemId),ie("role",e.role)("title",e.titleAttribute)("aria-expanded",e.ariaExpanded)("aria-selected",e.ariaSelected)("aria-disabled",e.ariaDisabled),ue("k-item",e.kItemClass)("k-state-default",e.kStateDefaultClass)("k-state-disabled",e.kStateDisabledClass)("k-state-expanded",e.kStateExpandedClass)("k-panelbar-header",e.headerClass)("k-panelbar-item",e.childClass))},inputs:{title:"title",id:"id",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled",expanded:"expanded",selected:"selected",content:"content",items:"items",template:"template"},exportAs:["kendoPanelbarItem"],ngContentSelectors:d7,decls:8,vars:12,consts:[[3,"click"],["header",""],["class","k-icon k-panelbar-item-icon",3,"ngClass",4,"ngIf"],["class","k-image k-panelbar-item-icon","alt","",3,"src",4,"ngIf"],[4,"ngIf"],["class","k-icon k-panelbar-toggle",3,"ngClass",4,"ngIf"],[1,"k-icon","k-panelbar-item-icon",3,"ngClass"],["alt","",1,"k-image","k-panelbar-item-icon",3,"src"],[1,"k-panelbar-item-text"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-icon","k-panelbar-toggle",3,"ngClass"],["contentWrapper",""],["class","k-panel k-group k-panelbar-group",3,"overflow","height",4,"ngIf"],["class","k-content k-panelbar-content",3,"overflow","height",4,"ngIf"],[1,"k-panel","k-group","k-panelbar-group"],[1,"k-content","k-panelbar-content"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content"],[3,"ngIf"]],template:function(t,e){1&t&&(kn(c7),A(0,"span",0,1),Q("click",function(a){return e.onItemClick(a)}),T(2,eOe,1,1,"span",2),T(3,tOe,1,1,"img",3),T(4,nOe,3,1,"ng-container",4),T(5,oOe,1,15,null,4),T(6,lOe,1,4,"span",5),x(),T(7,_Oe,6,7,"div",4)),2&t&&(ue("k-link",!0)("k-state-selected",!e.disabled&&e.selected)("k-state-focused",e.focused&&e.wrapperFocused),k(2),y("ngIf",e.icon||e.iconClass),k(1),y("ngIf",e.imageUrl),k(1),y("ngIf",!e.titleTemplate),k(1),y("ngIf",e.titleTemplate),k(1),y("ngIf",e.hasChildItems||e.hasContent),k(1),y("ngIf",e.keepContent||!e.disabled&&e.expanded&&(e.hasChildItems||e.hasContent)))},directives:[i,qe,Ft,En,gn],encapsulation:2,data:{animation:[ef("toggle",[Cd("inactive",Lt({display:"none"})),iu("* => active",[Lt({overflow:"hidden",display:"block",height:0}),Ai(200,Lt({height:ul}))]),iu("active => *",[Lt({overflow:"hidden",height:ul}),Ai(200,Lt({height:0,display:"none"}))])])]}}),i}(),C7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoPanelBarItemTemplate",""]]}),i}(),UI=function(){function i(r){p(this,i),this.prevented=!1,Object.assign(this,r)}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),mNe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(UI),_Ne=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(UI),yNe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(UI),b7=v(function i(){p(this,i)}),kNe=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.localization=n,this.expandMode=vl.Default,this.selectable=!0,this.animate=!0,this.height="400px",this.stateChange=new O,this.select=new O,this.expand=new O,this.collapse=new O,this.tabIndex=0,this.role="tree",this.hostClass=!0,this.activeDescendant="",this.isViewInit=!0,this.focused=!1,this._keepItemContent=!1,this.updateChildrenHeight=function(){var o=0,s=a.elementRef.nativeElement.offsetHeight,l=a.expandMode===vl.Full?"auto":"visible";a.childrenItems.forEach(function(u){o+=u.headerHeight()}),a.childrenItems.forEach(function(u){u.contentHeight=vl.Full===a.expandMode?s-o+"px":"auto",u.contentOverflow=l})},jt(fl),this.keyBindings=this.computedKeys,this.elementRef=t,this.eventService=e,this.eventService.children$.subscribe(function(o){return a.onItemAction(o)})}return v(r,[{key:"keepItemContent",get:function(){return this._keepItemContent},set:function(e){this._keepItemContent=e,this.eventService.onKeepContent(e)}},{key:"items",get:function(){return this._items},set:function(e){e&&(this._items=sNe(e))}},{key:"hostHeight",get:function(){return this.expandMode===vl.Full?this.height:"auto"}},{key:"overflow",get:function(){return this.expandMode===vl.Full?"hidden":"visible"}},{key:"dir",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"invertKeys",value:function(e,n){return this.localization.rtl?n:e}},{key:"computedKeys",get:function(){var n,e=this;return De(n={},J.Space,function(){return e.selectFocusedItem()}),De(n,J.Enter,function(){return e.selectFocusedItem()}),De(n,J.ArrowUp,function(){return e.focusPreviousItem()}),De(n,this.invertKeys(J.ArrowLeft,J.ArrowRight),function(){return e.collapseItem()}),De(n,J.ArrowDown,function(){return e.focusNextItem()}),De(n,this.invertKeys(J.ArrowRight,J.ArrowLeft),function(){return e.expandItem()}),De(n,J.End,function(){return e.focusLastItem()}),De(n,J.Home,function(){return e.focusFirstItem()}),n}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"ngOnInit",value:function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.keyBindings=e.computedKeys}),this.eventService.animate=this.animate,this.eventService.expandMode=this.expandMode}},{key:"ngAfterViewChecked",value:function(){var e=this;this.items?(this.childrenItems=this.viewChildItems.toArray(),this.allItems=this.viewItems):(this.childrenItems=this.contentChildItems.toArray(),this.allItems=this.contentItems.toArray()),this.isViewInit&&this.childrenItems.length&&(this.isViewInit=!1,setTimeout(function(){return e.updateChildrenHeight()})),this.validateConfiguration()}},{key:"ngOnChanges",value:function(e){(e.height||e.expandMode||e.items)&&this.childrenItems&&setTimeout(this.updateChildrenHeight),e.animate&&(this.eventService.animate=this.animate),e.expandMode&&(this.eventService.expandMode=this.expandMode)}},{key:"templateRef",get:function(){return this.template?this.template.templateRef:void 0}},{key:"onComponentClick",value:function(e){var n=this.visibleItems().some(function(a){return a.header.nativeElement.contains(e.target)});!ED(e.target)&&!this.focused&&n&&this.elementRef.nativeElement.focus()}},{key:"onComponentFocus",value:function(){if(this.eventService.onFocus(),this.focused=!0,this.allItems.length>0){var e=this.visibleItems();!e.filter(function(a){return a.focused}).length&&e.length>0&&(e[0].focused=!0,this.activeDescendant=e[0].itemId)}}},{key:"onComponentBlur",value:function(){this.eventService.onBlur(),this.focused=!1,this.activeDescendant=""}},{key:"onComponentKeyDown",value:function(e){if(e.target===this.elementRef.nativeElement){(e.keyCode===J.Space||e.keyCode===J.ArrowUp||e.keyCode===J.ArrowDown||e.keyCode===J.ArrowLeft||e.keyCode===J.ArrowRight||e.keyCode===J.Home||e.keyCode===J.End||e.keyCode===J.PageUp||e.keyCode===J.PageDown)&&e.preventDefault();var n=this.keyBindings[e.keyCode];n&&n()}}},{key:"emitEvent",value:function(e,n){var a;switch(e){case"select":a=new yNe;break;case"collapse":a=new mNe;break;default:a=new _Ne}return a.item=n.serialize(),this[e].emit(a),a}},{key:"viewItems",get:function(){var e=[];return this.viewChildItems.toArray().forEach(function(n){e.push(n),e=e.concat(n.subTreeViewItems())}),e}},{key:"validateConfiguration",value:function(){if(xt()&&this.items&&this.contentItems&&this.contentItems.length>0)throw new Error("Invalid configuration: mixed template components and items property.")}},{key:"onItemAction",value:function(e){var n=this;if(e){var a=new Array,o=[];if(this.allItems.forEach(function(h){var f=h===e,g=f;h.selected===(f=n.selectable?f:h.selected)&&h.focused===g||(f&&n.emitEvent("select",h).isDefaultPrevented()?o.push(h):(h.selected=f,h.focused=g,n.activeDescendant=g?h.itemId:"",a.push(h)))}),this.expandMode===vl.Multiple)!e.hasChildItems&&!e.hasContent||o.includes(e)||(e.expanded?this.emitEvent("collapse",e).isDefaultPrevented():this.emitEvent("expand",e).isDefaultPrevented())||(e.expanded=!e.expanded,a.indexOf(e)<0&&a.push(e));else{var u,l=e.parent?e.parent.childrenItems:this.childrenItems,c=[];(e.hasChildItems||e.hasContent)&&!o.includes(e)&&(l.forEach(function(h){var f=h===e;if(h.expanded!==f){var g=h.expanded?n.emitEvent("collapse",h).isDefaultPrevented():n.emitEvent("expand",h).isDefaultPrevented();g?g&&h.expanded&&(u=h):(h.expanded=f,h.expanded&&c.push(h),a.indexOf(h)<0&&a.push(h))}else h.expanded===f&&f&&(n.emitEvent("collapse",h).isDefaultPrevented()||(h.expanded=!h.expanded,a.indexOf(h)<0&&a.push(h)))}),c.forEach(function(h){if(u&&h.id!==u.id&&(h.expanded=!1,xt())){var f=vl[n.expandMode].toLowerCase();console.warn("\n The ".concat(f," expandMode allows the expansion of only one item at a time.\n See https://www.telerik.com/kendo-angular-ui-develop/components/layout/panelbar/expand-modes/"))}}))}if(a.length>0){var d=new b7;d.items=a.map(function(h){return h.serialize()}),this.stateChange.emit(d)}}}},{key:"isVisible",value:function(e){return this.visibleItems().some(function(a){return a===e})}},{key:"getVisibleParent",value:function(e){var n=this.visibleItems();return e.parent?n.some(function(a){return a===e.parent})?e.parent:this.getVisibleParent(e.parent):e}},{key:"focusItem",value:function(e){var s,n=this.visibleItems(),a=n.findIndex(function(u){return u.focused}),o=n[a];if(-1===a){var l=this.allItems.find(function(u){return u.focused});l.focused=!1,o=this.getVisibleParent(l),a=n.findIndex(function(u){return u===o})}switch(e){case"lastItem":s=n[n.length-1];break;case"firstItem":s=n[0];break;case"nextItem":s=n[a0?a-1:n.length-1]}o&&s&&o!==s&&this.moveFocus(o,s)}},{key:"moveFocus",value:function(e,n){e.focused=!1,n.focused=!0,this.activeDescendant=n.itemId;var a=new Array(e.serialize(),n.serialize()),o=new b7;o.items=a,this.stateChange.emit(o)}},{key:"focusLastItem",value:function(){this.focusItem("lastItem")}},{key:"focusFirstItem",value:function(){this.focusItem("firstItem")}},{key:"focusNextItem",value:function(){this.focusItem("nextItem")}},{key:"focusPreviousItem",value:function(){this.focusItem("previousItem")}},{key:"expandItem",value:function(){var e=this.allItems.filter(function(a){return a.focused})[0];if(this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e.hasChildItems||e.hasContent)if(e.expanded){if(e.hasChildItems){var n=e.childrenItems.findIndex(function(a){return!a.disabled});n>-1&&this.moveFocus(e,e.childrenItems[n])}}else this.onItemAction(e)}},{key:"collapseItem",value:function(){var e=this.allItems.filter(function(n){return n.focused})[0];e.expanded?this.onItemAction(e):e.parent&&this.moveFocus(e,e.parent)}},{key:"selectFocusedItem",value:function(){var e=this.allItems.filter(function(n){return n.focused})[0];this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e&&e.onItemAction()}},{key:"visibleItems",value:function(){return this.flatVisibleItems(this.childrenItems)}},{key:"flatVisibleItems",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Array,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Array;return n.forEach(function(o){a.push(o),o.expanded&&o.hasChildItems&&e.flatVisibleItems(o.childrenItems,a)}),a}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(VI),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-panelbar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,C7,5),he(n,qy,5),he(n,qy,4)),2&t&&(P(a=B())&&(e.template=a.first),P(a=B())&&(e.contentItems=a),P(a=B())&&(e.contentChildItems=a))},viewQuery:function(t,e){var n;1&t&&ge(qy,5),2&t&&P(n=B())&&(e.viewChildItems=n)},hostVars:10,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onComponentClick(a)})("focus",function(){return e.onComponentFocus()})("blur",function(){return e.onComponentBlur()})("keydown",function(a){return e.onComponentKeyDown(a)}),2&t&&(ie("tabIndex",e.tabIndex)("role",e.role)("aria-activedescendant",e.activeDescendant)("dir",e.dir),Qe("height",e.hostHeight)("overflow",e.overflow),ue("k-panelbar",e.hostClass))},inputs:{expandMode:"expandMode",selectable:"selectable",animate:"animate",height:"height",keepItemContent:"keepItemContent",items:"items"},outputs:{stateChange:"stateChange",select:"select",expand:"expand",collapse:"collapse"},exportAs:["kendoPanelbar"],features:[de([VI,Y,{provide:Et,useValue:"kendo.panelbar"}]),Ie],ngContentSelectors:d7,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngIf"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content"]],template:function(t,e){1&t&&(kn(c7),T(0,yOe,1,0,"ng-content",0),T(1,bOe,1,1,"ng-template",1)),2&t&&(y("ngIf",e.contentChildItems&&!e.items),k(1),y("ngIf",null==e.items?null:e.items.length))},directives:[qy,qe,gn],encapsulation:2}),i}(),zI=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.cdr=n,this.resizable=!0,this.collapsible=!1,this.scrollable=!0,this.collapsed=!1,this.orientation="horizontal",this.overlayContent=!1,this.sizeChange=new O,this.collapsedChange=new O,this.ariaRole="group",this.hostClass=!0,this.forceExpand=!1,this.isResized=!1}return v(r,[{key:"order",get:function(){return this._order},set:function(e){this._order=e,this.setOrderStyles()}},{key:"size",get:function(){return this._size},set:function(e){this._size=e;var n=this.element.nativeElement;this.renderer.setStyle(n,"-ms-flex-preferred-size",e),this.renderer.setStyle(n,"flex-basis",e),this.staticPaneClass?this.renderer.addClass(n,"k-pane-static"):this.renderer.removeClass(n,"k-pane-static")}},{key:"containsSplitter",set:function(e){var n=this.element.nativeElement;e?this.renderer.addClass(n,"k-pane-flex"):this.renderer.removeClass(n,"k-pane-flex")}},{key:"isHidden",get:function(){return this.collapsed}},{key:"staticPaneClass",get:function(){return!this.forceExpand&&(!this.resizable&&!this.collapsible||this.fixedSize)}},{key:"scrollablePaneClass",get:function(){return this.scrollable}},{key:"fixedSize",get:function(){return this.size&&this.size.length>0}},{key:"ngAfterViewChecked",value:function(){var e=this.element.nativeElement;this.isHidden?(this.renderer.addClass(e,"k-state-hidden"),this.renderer.addClass(e,"hidden")):(this.renderer.removeClass(e,"k-state-hidden"),this.renderer.removeClass(e,"hidden"))}},{key:"computedSize",get:function(){return"vertical"===this.orientation?this.element.nativeElement.offsetHeight:this.element.nativeElement.offsetWidth}},{key:"toggleOverlay",value:function(e){this.overlayContent=e,this.cdr.detectChanges()}},{key:"detectChanges",value:function(){this.cdr.detectChanges()}},{key:"setOrderStyles",value:function(){var e=this.element.nativeElement;this.renderer.setStyle(e,"-ms-flex-order",this.order),this.renderer.setStyle(e,"order",this.order)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter-pane"]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("role",e.ariaRole),ue("k-pane",e.hostClass)("k-pane-static",e.staticPaneClass)("k-scrollable",e.scrollablePaneClass))},inputs:{order:"order",size:"size",min:"min",max:"max",resizable:"resizable",collapsible:"collapsible",scrollable:"scrollable",collapsed:"collapsed",orientation:"orientation",containsSplitter:"containsSplitter",overlayContent:"overlayContent"},outputs:{sizeChange:"sizeChange",collapsedChange:"collapsedChange"},exportAs:["kendoSplitterPane"],ngContentSelectors:_a,decls:2,vars:2,consts:[[4,"ngIf"],["class","k-splitter-overlay k-overlay",4,"ngIf"],[1,"k-splitter-overlay","k-overlay"]],template:function(t,e){1&t&&(kn(),T(0,SOe,2,0,"ng-container",0),T(1,wOe,1,0,"div",1)),2&t&&(y("ngIf",!e.collapsed),k(1),y("ngIf",e.overlayContent))},directives:[qe],encapsulation:2}),i}(),HI=function(){var i=function(){function r(t){p(this,r),this.zone=t,this.layoutChange=new O,this.containerSize=function(){}}return v(r,[{key:"tryToggle",value:function(e){var n=this.pane(e);n.collapsible&&(n.collapsed=!n.collapsed,n.collapsedChange.emit(n.collapsed),this.emit(this.layoutChange,{}),n.collapsed&&n.detectChanges());var a=this.panes.filter(function(s){return!s.collapsed}),o=a.every(function(s){return s.fixedSize});return a[a.length-1].forceExpand=!!o,n.collapsible}},{key:"toggleContentOverlay",value:function(e,n){this.pane(e).toggleOverlay(n),this.pane(e+1).toggleOverlay(n)}},{key:"dragState",value:function(e){var n=this,a=this.pane(e),o=this.pane(e+1),s=a.computedSize+o.computedSize,l=function(c){return n.toPixels(c)};return{prev:{index:e,initialSize:a.computedSize,min:l(a.min)||s-l(o.max)||0,max:l(a.max)||s-l(o.min)||s},next:{index:e+1,initialSize:o.computedSize,min:l(o.min)||s-l(a.max)||0,max:l(o.max)||s-l(a.min)||s}}}},{key:"setSize",value:function(e,n){var a=this,s=function(d,h){var C,f=a.pane(d.index),g=a.containerSize(),_=function(d,h,f){return Math.min(h,Math.max(d,f))}(d.min,d.max,d.initialSize+h);C=a.isPercent(f.size)?100*_/g+"%":_+"px",f.size=C,f.isResized=!0,a.emit(f.sizeChange,C)},l=this.pane(e.prev.index),u=this.pane(e.next.index);l.fixedSize&&u.fixedSize?(s(e.prev,n),s(e.next,-n)):u.collapsible||u.fixedSize?s(e.next,-n):s(e.prev,n),this.emit(this.layoutChange,{})}},{key:"isDraggable",value:function(e){var n=this.pane(e),a=this.pane(e+1);return n.resizable&&a.resizable&&!(n.collapsed||a.collapsed)}},{key:"isStatic",value:function(e){var n=this.pane(e),a=this.pane(e+1);return!(n.resizable&&a.resizable||n.collapsible||a.collapsible)}},{key:"pane",value:function(e){if(!this.panes)throw new Error("Panes not initialized");if(e<0||e>=this.panes.length)throw new Error("Index out of range");return this.panes[e]}},{key:"configure",value:function(e){var n=e.panes,a=e.orientation,o=e.containerSize;if(this.panes=n,this.panes.forEach(function(u,c){u.order=2*c,u.orientation=a}),xt()){var s=n.length&&!n.some(function(u){return!u.fixedSize}),l=n.length&&n.some(function(u){return u.isResized});if(s&&!l)throw new Error("\n The Splitter should have at least one pane without a set size.\n See ".concat("https://www.telerik.com/kendo-angular-ui/components/layout/splitter/panes/#toc-size"," for more information.\n "))}this.containerSize=o}},{key:"isPercent",value:function(e){return/%$/.test(e)}},{key:"toPixels",value:function(e){var n=parseFloat(e);return this.isPercent(e)&&(n=this.containerSize()*n/100),n}},{key:"emit",value:function(e,n){e.observers.length&&this.zone.run(function(){return e.emit(n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),bNe=function(r){var t=r.originalEvent;t.stopPropagation(),t.preventDefault()},KI=function(r){return Object.keys(r).filter(function(t){return r[t]}).join(" ")},jI=function(){var i=function(){function r(t,e,n,a){p(this,r),this.draggable=t,this.element=e,this.splitter=n,this.localization=a,this.orientation="horizontal",this.index=0,this.ariaRole="separator",this.focused=!1,this.subscriptions=new Je}return v(r,[{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"tabIndex",get:function(){return this.splitter.isStatic(this.index)?-1:0}},{key:"hostClasses",get:function(){var e="horizontal"===this.orientation,n=this.splitter.isDraggable(this.index),a=this.splitter.isStatic(this.index);return KI({"k-state-focused":this.focused,"k-splitbar":!0,"k-splitbar-horizontal":e,"k-splitbar-vertical":!e,"k-splitbar-draggable-horizontal":e&&n,"k-splitbar-draggable-vertical":!e&&n,"k-splitbar-static-horizontal":e&&a,"k-splitbar-static-vertical":!e&&a,"k-touch-action-none":n})}},{key:"order",get:function(){return 2*this.index+1}},{key:"collapseAny",value:function(){this.expandLast?this.toggleNext():this.tryToggleNearest()}},{key:"onFocusIn",value:function(){this.focused=!0}},{key:"onFocusOut",value:function(){this.focused=!1}},{key:"onKeyDown",value:function(e){var n=this,a=e&&e.keyCode,o="horizontal"===this.orientation,s=function(u){e.preventDefault();var c=n.splitter.dragState(n.index);n.splitter.setSize(c,u)};a===J.Enter?(e.preventDefault(),this.collapseAny()):o&&a===J.ArrowLeft?s(-10):o&&a===J.ArrowRight?s(10):o||a!==J.ArrowUp?!o&&a===J.ArrowDown&&s(10):s(-10)}},{key:"expandLast",get:function(){var e=this.splitter.panes;return 2===e.length&&e[1].collapsed}},{key:"ngOnInit",value:function(){var n,e=this,a=this.draggable.kendoPress.pipe(At(bNe),Ue(function(){return e.splitter.isDraggable(e.index)}),At(function(){return n=e.splitter.dragState(e.index)}),At(function(){return e.splitter.toggleContentOverlay(e.index,!0)}),Nn(function(r){return function(t){return lt(t).pipe(Dd(150),Qr(r))}}(this.draggable.kendoRelease)),Nn(function(r){return function(t){return r.kendoDrag.pipe(Qr(r.kendoRelease),We(function(e){return{originalX:t.pageX,originalY:t.pageY,pageX:e.pageX,pageY:e.pageY}}))}}(this.draggable))).subscribe(function(o){var s=o.pageX,u=o.originalX;e.splitter.setSize(n,"vertical"===e.orientation?o.pageY-o.originalY:"rtl"===e.direction?u-s:s-u)});this.subscriptions.add(a),this.subscriptions.add(this.draggable.kendoRelease.subscribe(function(){return e.splitter.toggleContentOverlay(e.index,!1)}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"togglePrevious",value:function(){this.splitter.tryToggle(this.index)}},{key:"toggleNext",value:function(){this.splitter.tryToggle(this.index+1)}},{key:"previousArrowClass",value:function(){var e=this.splitter.pane(this.index),n=this.splitter.pane(this.index+1),a=e.collapsible,o=e.collapsed,s="horizontal"===this.orientation;return KI({"k-icon":!0,"k-hidden":!a||n.isHidden,"k-collapse-prev":a,"k-i-arrow-60-left":a&&s&&!o,"k-i-arrow-60-right":a&&s&&o,"k-i-arrow-60-up":a&&!s&&!o,"k-i-arrow-60-down":a&&!s&&o})}},{key:"nextArrowClass",value:function(){var e=this.splitter.pane(this.index+1),n=this.splitter.pane(this.index),a=e.collapsible,o=e.collapsed,s="horizontal"===this.orientation;return KI({"k-icon":!0,"k-hidden":!a||n.isHidden,"k-collapse-next":a,"k-i-arrow-60-right":a&&s&&!o,"k-i-arrow-60-left":a&&s&&o,"k-i-arrow-60-down":a&&!s&&!o,"k-i-arrow-60-up":a&&!s&&o})}},{key:"tryToggleNearest",value:function(){var n=this.index+1;this.splitter.tryToggle(this.index)||this.splitter.tryToggle(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(_e),m(HI),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter-bar"]],hostVars:11,hostBindings:function(t,e){1&t&&Q("dblclick",function(){return e.collapseAny()})("focusin",function(){return e.onFocusIn()})("focusout",function(){return e.onFocusOut()})("keydown",function(a){return e.onKeyDown(a)}),2&t&&(ie("aria-orientation",e.orientation)("role",e.ariaRole)("tabindex",e.tabIndex),_r(e.hostClasses),Qe("-ms-flex-order",e.order)("order",e.order),ue("k-state-focused",e.focused))},inputs:{orientation:"orientation",index:"index"},decls:3,vars:4,consts:[[3,"click"],[1,"k-resize-handle"]],template:function(t,e){1&t&&(A(0,"div",0),Q("click",function(){return e.togglePrevious()}),x(),z(1,"div",1),A(2,"div",0),Q("click",function(){return e.toggleNext()}),x()),2&t&&(_r(e.previousArrowClass()),k(2),_r(e.nextArrowClass()))},encapsulation:2}),i}(),DNe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.element=t,this.splitterService=e,this.localization=n,this.renderer=a,this.enclosingPane=o,this.orientation="horizontal",jt(fl),o&&(o.containsSplitter=!0),this.layoutChange=this.splitterService.layoutChange,this.configure=this.configure.bind(this)}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"horizontalHostClasses",get:function(){return"horizontal"===this.orientation}},{key:"verticalHostClasses",get:function(){return"vertical"===this.orientation}},{key:"dir",get:function(){return this.direction}},{key:"splitbars",set:function(e){var n=this;Mi(e)&&Mi(this.panes)&&[].concat(Ae(this.panes.toArray()),Ae(e.toArray())).sort(function(s,l){return s.order-l.order}).map(function(s){return s.element.nativeElement}).forEach(function(s){return n.renderer.appendChild(n.element.nativeElement,s)})}},{key:"ngAfterContentInit",value:function(){this.reconfigure()}},{key:"ngOnChanges",value:function(e){e.orientation&&!e.orientation.isFirstChange()&&this.reconfigure()}},{key:"ngOnDestroy",value:function(){this.enclosingPane&&(this.enclosingPane.containsSplitter=!1),this.unsubscribeChanges()}},{key:"reconfigure",value:function(){this.unsubscribeChanges(),this.configure(),this.paneChangesSubscription=this.panes.changes.subscribe(this.configure)}},{key:"unsubscribeChanges",value:function(){this.paneChangesSubscription&&(this.paneChangesSubscription.unsubscribe(),this.paneChangesSubscription=null)}},{key:"configure",value:function(){var e=this;this.splitterService.configure({panes:this.panes.toArray(),orientation:this.orientation,containerSize:function(){return"vertical"===e.orientation?e.element.nativeElement.clientHeight:e.element.nativeElement.clientWidth}})}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(HI),m(Y),m(Ee),m(zI,9))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter"]],contentQueries:function(t,e,n){var a;1&t&&he(n,zI,4),2&t&&P(a=B())&&(e.panes=a)},viewQuery:function(t,e){var n;1&t&&ge(jI,5),2&t&&P(n=B())&&(e.splitbars=n)},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-splitter",e.hostClasses)("k-splitter-flex",e.hostClasses)("k-splitter-horizontal",e.horizontalHostClasses)("k-splitter-vertical",e.verticalHostClasses))},inputs:{orientation:"orientation"},outputs:{layoutChange:"layoutChange"},exportAs:["kendoSplitter"],features:[de([HI,Y,{provide:Et,useValue:"kendo.spliter"}]),Ie],ngContentSelectors:AOe,decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoDraggable","",3,"index","orientation",4,"ngIf"],["kendoDraggable","",3,"index","orientation"]],template:function(t,e){1&t&&(kn(TOe),dn(0),T(1,EOe,2,1,"ng-container",0)),2&t&&(k(1),y("ngForOf",e.panes))},directives:[jI,gn,qe,$o],encapsulation:2}),i}(),WI=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoTabContent",""]]}),i}(),S7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoTabTitle",""]]}),i}(),$I=function(){var i=function(){function r(){p(this,r),this.disabled=!1,this._tabContent=new Ei,this.focused=!1}return v(r,[{key:"tabContent",get:function(){return this._tabContent.first}},{key:"tabTitle",get:function(){return this._tabTitleDirective.first}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip-tab"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,WI,4),he(n,S7,4)),2&t&&(P(a=B())&&(e._tabContent=a),P(a=B())&&(e._tabTitleDirective=a))},inputs:{title:"title",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle",selected:"selected",closable:"closable",closeIcon:"closeIcon"},exportAs:["kendoTabStripTab"],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ENe=v(function i(r,t){p(this,i),this.index=r,this.tab=t}),TNe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).index=e,a.title=n,a}return v(t)}(Is),w7=function(r){return r.enabled&&r.mouseScroll},qI=function(r){var t,e,n=-1,a=-1;return r.forEach(function(o,s){o.selected?(e=o,a=s):o.focused&&(t=o,n=s)}),n>=0?{tab:t,index:n}:{tab:e,index:a}},XI=function(r,t){var e=r.filter(function(n,a){return a===t});return e.length>0?e[0]:null},ko=function(r){return"top"===r||"bottom"===r},D7=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.ngZone=e}return v(r,[{key:"onKeyDown",value:function(e){if(function(r){var t=r.getAttribute("id");return!!(Mi(t)||t.indexOf("k-tabstrip-tab-")>=0)}(e.target)){var n=e.keyCode;if(!this.shouldHandleKey(n))return;e.preventDefault(),_7(n)||function(r){return g7(r)||m7(r)}(n)?this.onNavigate(n):n===J.Delete&&this.onDelete()}}},{key:"onTabSelect",value:function(e,n){var a=new TNe(n,e.title);if(this.owner.tabSelect.emit(a),!a.isDefaultPrevented()){if(e.selected)return void this.focusTabHeader(n);this.selectTab(e,n)}}},{key:"selectTab",value:function(e,n){(function(r){r.forEach(function(t){t.selected=!1})})(this.owner.tabs),this.focusTabHeader(n),e.selected=!0,this.owner.isScrollable&&this.owner.scrollToSelectedTab()}},{key:"onNavigate",value:function(e){var n=this,a=qI(this.owner.tabs),o=a.tab,s=a.index;be.isInAngularZone()||this.ngZone.run(function(){if(s<0)n.owner.selectTab(n.firstNavigatableIndex());else{o.focused=!1;var l=n.computeNextIndex(s,e);n.activateTab(l)}})}},{key:"onDelete",value:function(){var e=this,n=qI(this.owner.tabs),a=n.tab,o=n.index;(function(r,t){return void 0!==r.closable?r.closable:t})(a,this.owner.closable)&&!a.disabled&&this.ngZone.run(function(){e.owner.tabClose.emit({tab:a,index:o})})}},{key:"activateTab",value:function(e){var n=XI(this.owner.tabs,e);n.disabled?(this.focusTabHeader(e),n.focused=!0):this.onTabSelect(n,e)}},{key:"focusTabHeader",value:function(e){var n=function(r,t){var e=r.filter(function(n,a){return a===t});return e.length>0?e[0]:null}(this.owner.tabHeaderContainers,e);n.nativeElement.focus()}},{key:"shouldHandleKey",value:function(e){return!!(_7(e)||ko(this.owner.tabPosition)&&g7(e)||!ko(this.owner.tabPosition)&&m7(e)||e===J.Delete)}},{key:"computeNextIndex",value:function(e,n){switch(n){case this.invertKeys(J.ArrowLeft,J.ArrowRight):case this.invertKeys(J.ArrowUp,J.ArrowDown):return this.prevNavigatableIndex(e);case this.invertKeys(J.ArrowRight,J.ArrowLeft):case this.invertKeys(J.ArrowDown,J.ArrowUp):return this.nextNavigatableIndex(e);case J.Home:return this.firstNavigatableIndex();case J.End:return this.lastNavigatableIndex();default:return}}},{key:"invertKeys",value:function(e,n){return this.localization.rtl?n:e}},{key:"firstNavigatableIndex",value:function(){return 0}},{key:"lastNavigatableIndex",value:function(){return this.owner.tabs.length-1}},{key:"prevNavigatableIndex",value:function(e){return e-1<0?this.lastNavigatableIndex():e-1}},{key:"nextNavigatableIndex",value:function(e){return e+1>=this.owner.tabs.length?this.firstNavigatableIndex():e+1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),T7=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.position=0,this.scrollButtonActiveStateChange=new Ot,this.isDisabled=function(n){return e.owner["".concat(n,"ScrollButton")].host.nativeElement.classList.contains("k-disabled")}}return v(r,[{key:"tablistElement",get:function(){return this.owner.tablist.nativeElement}},{key:"tabstripSize",get:function(){var e=this.owner.wrapper.nativeElement,n=parseFloat(getComputedStyle(e).width),a=parseFloat(getComputedStyle(e).height);return ko(this.owner.tabPosition)?n:a}},{key:"tablistOverflowSize",get:function(){if(!Ze())return 0;var e=ko(this.owner.tabPosition),n=Math.floor(this.tablistElement[e?"scrollWidth":"scrollHeight"]-this.tablistElement.getBoundingClientRect()[e?"width":"height"]);return n<0?0:n}},{key:"tabsOverflow",get:function(){return this.tablistOverflowSize>0}},{key:"scrollButtonsSize",get:function(){if(!this.owner.hasScrollButtons)return 0;var e=this.owner.prevScrollButton.hostBoundingClientRect,n=ko(this.owner.tabPosition)?e.width:e.height,a=this.owner.nextScrollButton.hostBoundingClientRect;return n+(ko(this.owner.tabPosition)?a.width:a.height)}},{key:"toggleScrollButtonsState",value:function(){var e=this;if(this.owner.hasScrollButtons){var a=!this.isDisabled("prev"),o=!this.isDisabled("next"),s=this.position>0&&this.tablistOverflowSize>0,l=this.position0;s!==a&&this.ngZone.run(function(){return e.toggleButtonActiveState("prev",s)}),l!==o&&this.ngZone.run(function(){return e.toggleButtonActiveState("next",l)})}}},{key:"scrollToSelectedTab",value:function(){var e=this;if(this.tabsOverflow){var a=qI(this.owner.tabs).index;if(-1!==a&&(this.position+=this.getScrollOffset(a),ko(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState(),this.owner.hasScrollButtons)){var l=a===this.owner.tabs.length-1;0===a&&!this.isDisabled("prev")&&this.ngZone.run(function(){return e.toggleButtonActiveState("prev",!1)}),l&&!this.isDisabled("next")&&this.ngZone.run(function(){return e.toggleButtonActiveState("next",!1)})}}}},{key:"getScrollOffset",value:function(e){if(!Ze())return 0;var n=ko(this.owner.tabPosition);this.tablistElement["scroll".concat(n?"Left":"Top")]=this.position;var a=this.tablistElement.children[e].getBoundingClientRect(),o=this.tablistElement.getBoundingClientRect(),s=n?"right":"bottom",l=n?"left":"top",u=a[l],c=a[s],d=o[l],h=o[s],f=c<=h,g=u>=d;return f&&g?0:f?g?void 0:u-d:c-h}},{key:"onMouseScroll",value:function(e){e.preventDefault(),w7(this.owner.scrollable)&&(this.calculateListPosition(e.deltaY<0?"prev":"next",this.owner.scrollable.mouseScrollSpeed),ko(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState())}},{key:"scrollTabs",value:function(e){this.calculateListPosition(e,this.owner.scrollable.buttonScrollSpeed),ko(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position,behavior:"smooth"}):this.tablistElement.scrollTo({top:this.position,behavior:"smooth"}),this.toggleScrollButtonsState()}},{key:"calculateListPosition",value:function(e,n){var a=this.tablistOverflowSize+this.scrollButtonsSize;if("prev"===e&&this.position>0)this.position=this.position-n<=0?0:this.position-n;else if("next"===e&&this.positiona)return void(this.position=a);this.position+=n}}},{key:"restoreScrollPosition",value:function(){ko(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position}):this.tablistElement.scrollTo({top:this.position}),this.toggleScrollButtonsState()}},{key:"toggleButtonActiveState",value:function(e,n){this.scrollButtonActiveStateChange.next({buttonType:e,active:n})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),A7=function(r){return function(r){var t=r.enabled,n=r.scrollButtons,o=r.mouseScroll,l=r.buttonScrollSpeed,c=r.mouseScrollSpeed;return{enabled:void 0===t||t,scrollButtons:void 0===n?"auto":n,mouseScroll:void 0===o||o,buttonScrollSpeed:void 0===l?100:l,mouseScrollSpeed:void 0===c?10:c,prevButtonIcon:r.prevButtonIcon,nextButtonIcon:r.nextButtonIcon}}(!1===r?{enabled:!1}:r)},x7=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),M7=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.host=t,this.renderer=e,this.ngZone=n,this.btnClasses=!0,this.prev=!1,this.tabScroll=new O,this.onClick=new O,this.subs=new Je,this.clickHandler=function(o){a.emitScrollEvent(o).isDefaultPrevented()||a.onClick.emit(a.prev?"prev":"next")}}return v(r,[{key:"prevClass",get:function(){return this.prev}},{key:"nextClass",get:function(){return!this.prev}},{key:"hostBoundingClientRect",get:function(){return this.host.nativeElement.getBoundingClientRect()}},{key:"iconClass",get:function(){return this.scrollButtonIconClass[this.prev?"prevScrollButton":"nextScrollButton"]}},{key:"ngAfterViewInit",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.subs.add(e.renderer.listen(e.host.nativeElement,"click",e.clickHandler))})}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"toggle",value:function(e){this.renderer[e?"removeClass":"addClass"](this.host.nativeElement,"k-hidden")}},{key:"scrollButtonIconClass",get:function(){var e=ko(this.tabPosition)?"k-i-arrow-60-left":"k-i-arrow-60-up",n=ko(this.tabPosition)?"k-i-arrow-60-right":"k-i-arrow-60-down";return"object"==typeof this.scrollable?{prevScrollButton:void 0===this.scrollable.prevButtonIcon?e:this.scrollable.prevButtonIcon,nextScrollButton:void 0===this.scrollable.nextButtonIcon?n:this.scrollable.nextButtonIcon}:{prevScrollButton:e,nextScrollButton:n}}},{key:"emitScrollEvent",value:function(e){var n=new x7({originalEvent:e});return this.tabScroll.emit(n),n}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(be))},i.\u0275cmp=L({type:i,selectors:[["","kendoTabStripScrollableButton",""]],hostVars:16,hostBindings:function(t,e){2&t&&ue("k-button",e.btnClasses)("k-button-md",e.btnClasses)("k-icon-button",e.btnClasses)("k-rounded-md",e.btnClasses)("k-button-flat",e.btnClasses)("k-button-flat-base",e.btnClasses)("k-tabstrip-prev",e.prevClass)("k-tabstrip-next",e.nextClass)},inputs:{prev:"prev",tabPosition:"tabPosition",scrollable:"scrollable"},outputs:{tabScroll:"tabScroll",onClick:"onClick"},attrs:xOe,decls:1,vars:1,consts:[[1,"k-icon","k-button-icon",3,"ngClass"]],template:function(t,e){1&t&&z(0,"span",0),2&t&&y("ngClass",e.iconClass)},directives:[Ft],encapsulation:2}),i}(),R7=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.tabClose=new O,this.hostClasses=!0}return v(r,[{key:"activeClass",get:function(){return this.tab.selected}},{key:"disabledClass",get:function(){return this.tab.disabled}},{key:"focusedClass",get:function(){return this.tab.focused}},{key:"tabIndex",get:function(){return this.tab.selected||this.tab.focused?0:-1}},{key:"tabClosable",get:function(){return void 0!==this.tab.closable?this.tab.closable:this.tabStripClosable}},{key:"closeButtonClasses",get:function(){return Mi(this.tab.closeIcon)?this.tab.closeIcon:this.tabStripCloseIcon}},{key:"closeButtonTitle",get:function(){return this.localization.get("closeTitle")}},{key:"closeTab",value:function(e){var n=new ENe(e,this.tab);this.tabClose.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoTabStripTab",""]],hostVars:13,hostBindings:function(t,e){2&t&&(ie("aria-selected",e.activeClass)("aria-disabled",e.disabledClass)("tabindex",e.tabIndex),ue("k-item",e.hostClasses)("k-state-default",e.hostClasses)("k-state-active",e.activeClass)("k-state-disabled",e.disabledClass)("k-state-focused",e.focusedClass))},inputs:{tab:"tab",index:"index",tabStripClosable:"tabStripClosable",tabStripCloseIcon:"tabStripCloseIcon"},outputs:{tabClose:"tabClose"},attrs:MOe,decls:3,vars:3,consts:[["class","k-link",4,"ngIf"],["class","k-remove-tab k-button k-icon-button k-flat","role","button",3,"title","click",4,"ngIf"],[1,"k-link"],[3,"ngTemplateOutlet"],["role","button",1,"k-remove-tab","k-button","k-icon-button","k-flat",3,"title","click"],[3,"ngClass"]],template:function(t,e){1&t&&(T(0,ROe,2,1,"span",0),T(1,IOe,2,1,"span",0),T(2,NOe,2,3,"span",1)),2&t&&(y("ngIf",!e.tab.tabTitle),k(1),y("ngIf",e.tab.tabTitle),k(1),y("ngIf",e.tabClosable))},directives:[qe,En,Ft],encapsulation:2}),i}(),xD=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-tabstrip-messages-base"]],inputs:{closeTitle:"closeTitle"},features:[j]}),i}(),O7=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(xD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoTabStripLocalizedMessages",""]],features:[de([{provide:xD,useExisting:ke(function(){return i})}]),j]}),i}(),I7=function(){var i=function(){function r(t,e,n,a,o,s){var l=this;p(this,r),this.localization=t,this.renderer=e,this.wrapper=n,this.tabstripService=a,this.scrollService=o,this.ngZone=s,this.animate=!0,this.tabPosition="top",this.keepTabContent=!1,this.closable=!1,this.closeIcon="k-icon k-i-x",this.tabSelect=new O,this.tabClose=new O,this.tabScroll=new O,this.hostClasses=!0,this.tabs=new Ei,this._scrollableSettings=A7(!1),this.subscriptions=new Je,this.subscriptionsArePresent=!1,jt(fl),this.tabstripService.owner=this,this.scrollService.owner=this,this.subscriptions.add(this.scrollService.scrollButtonActiveStateChange.subscribe(function(u){l.hasScrollButtons&&l.renderer["".concat(u.active?"remove":"add","Class")](l["".concat(u.buttonType,"ScrollButton")].host.nativeElement,"k-disabled")}))}return v(r,[{key:"height",get:function(){return this._height},set:function(e){this._height=e,this.renderer.setStyle(this.wrapper.nativeElement,"height",e)}},{key:"scrollable",get:function(){return this._scrollableSettings},set:function(e){this._scrollableSettings=A7(e),this.tablist&&(this.toggleScrollButtons(this.scrollService.tabsOverflow),this.attachWheelHandler(this.tablist.nativeElement))}},{key:"tabsAtTop",get:function(){return"top"===this.tabPosition}},{key:"tabsAtRight",get:function(){return"right"===this.tabPosition}},{key:"tabsAtBottom",get:function(){return"bottom"===this.tabPosition}},{key:"tabsAtLeft",get:function(){return"left"===this.tabPosition}},{key:"dir",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"tabStripScrollable",get:function(){return this._scrollableSettings.enabled}},{key:"ngAfterViewInit",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.toggleScrollButtons(!!e.scrollService.tabsOverflow),setTimeout(function(){e.scrollToSelectedTab()})}),this.initDomEvents()}},{key:"ngOnChanges",value:function(e){var n=this,a=e.tabPosition;if(a){var o="bottom"===a.previousValue||"bottom"===a.currentValue;this.ngZone.onStable.pipe(It(1)).subscribe(function(){o&&(n.subscriptionsArePresent&&(n.subscriptions.unsubscribe(),n.subscriptions=new Je,n.subscriptionsArePresent=!1),n.initDomEvents()),n.scrollService.restoreScrollPosition()})}}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"tabsAlignmentStyles",get:function(){return{start:"flex-start",end:"flex-end",center:"center",justify:"space-between"}[this.tabAlignment]}},{key:"tabListWidth",get:function(){return"top"===this.tabPosition||"bottom"===this.tabPosition?"100%":null}},{key:"tabListHeight",get:function(){return"left"===this.tabPosition||"right"===this.tabPosition?"100%":null}},{key:"isScrollable",get:function(){return this._scrollableSettings.enabled}},{key:"hasScrollButtons",get:function(){return function(r){return r.enabled&&"hidden"!==r.scrollButtons}(this._scrollableSettings)}},{key:"mouseScrollEnabled",get:function(){return w7(this._scrollableSettings)}},{key:"itemsWrapperClass",get:function(){return ko(this.tabPosition)?"k-hstack":"k-vstack"}},{key:"selectTab",value:function(e){var n=XI(this.tabs,e);!n||n.disabled||(this.tabstripService.selectTab(n,e),this.scrollToSelectedTab())}},{key:"onTabClick",value:function(e,n){if(!ED(e.target)){var a=e.target;if(!TD(a,"k-remove-tab")&&!TD(a.parentElement,"k-remove-tab")){var s=XI(this.tabs,n);this.tabstripService.onTabSelect(s,n),this.scrollToSelectedTab()}}}},{key:"onResize",value:function(){var e=this;this.toggleScrollButtons(!!this.scrollService.tabsOverflow),this.ngZone.runOutsideAngular(function(){e.scrollService.toggleScrollButtonsState()})}},{key:"scrollToSelectedTab",value:function(){this._scrollableSettings.enabled&&this.scrollService.scrollToSelectedTab()}},{key:"onScrollButtonClick",value:function(e){this.scrollService.scrollTabs(e)}},{key:"initDomEvents",value:function(){var e=this;if(this.wrapper&&!this.subscriptionsArePresent){var n=this.tablist.nativeElement;this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(n,"keydown",function(a){e.tabstripService.onKeyDown(a)}))}),this.subscriptions.add(this.renderer.listen(n,"focusout",function(){!function(r){r.forEach(function(t){t.focused=!1})}(e.tabs)})),this.isScrollable&&this.mouseScrollEnabled&&this.attachWheelHandler(n),this.subscriptionsArePresent=!0}}},{key:"toggleScrollButtons",value:function(e){var n=this;this.ngZone.onStable.pipe(It(1)).subscribe(function(){var a=n._scrollableSettings.scrollButtons,o=n.prevScrollButton&&n.nextScrollButton,s=o&&e,u="visible"===a;o&&!e&&"visible"!==a?(n.prevScrollButton.toggle(!1),n.nextScrollButton.toggle(!1)):(s||u)&&(n.prevScrollButton.toggle(!0),n.nextScrollButton.toggle(!0)),o&&u&&n.ngZone.runOutsideAngular(function(){n.scrollService.toggleScrollButtonsState()})})}},{key:"attachWheelHandler",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.subscriptions.add(n.renderer.listen(e,"wheel",function(a){var o=new x7({originalEvent:a});n.tabScroll.emit(o),o.isDefaultPrevented()||!n.scrollService.tabsOverflow||n.scrollService.onMouseScroll(a)}))})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee),m(_e),m(D7),m(T7),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip"]],contentQueries:function(t,e,n){var a;1&t&&he(n,$I,4),2&t&&P(a=B())&&(e.tabs=a)},viewQuery:function(t,e){var n;1&t&&(ge(FOe,5),ge(LOe,5),ge(POe,5),ge(BOe,5,_e)),2&t&&(P(n=B())&&(e.tablist=n.first),P(n=B())&&(e.prevScrollButton=n.first),P(n=B())&&(e.nextScrollButton=n.first),P(n=B())&&(e.tabHeaderContainers=n))},hostVars:15,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-tabstrip",e.hostClasses)("k-floatwrap",e.hostClasses)("k-tabstrip-top",e.tabsAtTop)("k-tabstrip-right",e.tabsAtRight)("k-tabstrip-bottom",e.tabsAtBottom)("k-tabstrip-left",e.tabsAtLeft)("k-tabstrip-scrollable",e.tabStripScrollable))},inputs:{height:"height",animate:"animate",tabAlignment:"tabAlignment",tabPosition:"tabPosition",keepTabContent:"keepTabContent",closable:"closable",scrollable:"scrollable",closeIcon:"closeIcon"},outputs:{tabSelect:"tabSelect",tabClose:"tabClose",tabScroll:"tabScroll"},exportAs:["kendoTabStrip"],features:[de([D7,T7,Y,{provide:Et,useValue:"kendo.tabstrip"}]),Ie],decls:8,vars:3,consts:function(){return[["kendoTabStripLocalizedMessages","","closeTitle",$localize(s7||(s7=le([":kendo.tabstrip.closeTitle|The title for the **Close** button in the TabStrip tab.:Close"])))],[4,"ngIf"],["heading",""],["content",""],[3,"resize",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"k-tabstrip-items-wrapper",3,"ngClass"],["kendoTabStripScrollableButton","",3,"scrollable","tabPosition","prev","tabScroll","onClick",4,"ngIf"],["role","tablist",1,"k-reset","k-tabstrip-items"],["tablist",""],[4,"ngFor","ngForOf"],["kendoTabStripScrollableButton","",3,"scrollable","tabPosition","prev","tabScroll","onClick"],["prevScrollButton",""],["kendoTabStripTab","","role","tab",3,"ngClass","ngStyle","tab","index","tabStripClosable","tabStripCloseIcon","id","tabClose","click"],["tabHeaderContainer",""],["nextScrollButton",""],["ngFor","",3,"ngForOf"],["role","tabpanel",3,"ngClass","tabIndex","id",4,"ngIf"],["role","tabpanel",3,"ngClass","tabIndex","id"],[3,"ngTemplateOutlet"],[3,"resize"]]},template:function(t,e){1&t&&(Wt(0,0),T(1,UOe,3,2,"ng-container",1),T(2,KOe,3,2,"ng-container",1),T(3,qOe,6,10,"ng-template",null,2,$n),T(5,QOe,1,1,"ng-template",null,3,$n),T(7,JOe,1,0,"kendo-resize-sensor",4)),2&t&&(k(1),y("ngIf",!e.tabsAtBottom),k(1),y("ngIf",e.tabsAtBottom),k(5),y("ngIf",e.isScrollable))},directives:[M7,R7,Gr,O7,qe,En,Ft,gn,Vi],encapsulation:2,data:{animation:[ef("state",[Cd("active",Lt({opacity:1})),iu("* => active",[Lt({opacity:0}),Ai("400ms ease-in")])])]}}),i}(),BNe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(xD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip-messages"]],features:[de([{provide:xD,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),N7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerTemplate",""]]}),i}(),F7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerItemTemplate",""]]}),i}(),L7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerHeaderTemplate",""]]}),i}(),P7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerFooterTemplate",""]]}),i}(),MD=function(){var i=function(){function r(){p(this,r),this.selectedIndices=[]}return v(r,[{key:"onSelect",value:function(e){this.selectedIndices=[e];var n=this.owner;n.autoCollapse&&!n.minimized&&n.toggle(!1)}},{key:"initSelection",value:function(){var e=this.owner.items;this.selectedIndices=[];for(var n=0;n=0}},{key:"label",get:function(){return this.item.text?this.item.text:null}},{key:"ngAfterViewInit",value:function(){var e=G7(this.element.nativeElement,".k-drawer-link");e&&this.renderer.removeAttribute(e,"tabindex")}},{key:"iconClasses",get:function(){var e=[];return this.item.icon&&e.push("k-icon ".concat(this.item.icon)),this.item.iconClass&&e.push("".concat(this.item.iconClass)),e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(MD),m(_e),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["","kendoDrawerItem",""]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("aria-disabled",e.disabledClass)("aria-selected",e.selectedClass)("aria-label",e.label),ue("k-state-disabled",e.disabledClass)("k-state-selected",e.selectedClass))},inputs:{item:"item",index:"index",itemTemplate:"itemTemplate",mini:"mini",expanded:"expanded",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle"},attrs:eIe,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"ngClass"],[1,"k-item-text"]],template:function(t,e){if(1&t&&(T(0,nIe,1,4,null,0),T(1,aIe,2,2,"ng-template",null,1,$n)),2&t){var n=Yt(2);y("ngIf",e.itemTemplate)("ngIfElse",n)}},directives:[qe,En,Ft],encapsulation:2}),i}(),U7=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.drawerService=t,this.renderer=e,this.ngZone=n,this.changeDetector=a,this.element=o,this.select=new O,this.subscriptions=new Je}return v(r,[{key:"ngOnInit",value:function(){this.initialSelection(),this.initDomEvents()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"initialSelection",value:function(){0===this.drawerService.selectedIndices.length&&this.drawerService.initSelection()}},{key:"initDomEvents",value:function(){var e=this;!this.element||this.ngZone.runOutsideAngular(function(){var n=e.element.nativeElement;e.subscriptions.add(e.renderer.listen(n,"click",e.clickHandler.bind(e))),e.subscriptions.add(e.renderer.listen(n,"keydown",e.keyDownHandler.bind(e)))})}},{key:"clickHandler",value:function(e){var n=this,a=this.getDrawerItemIndex(e.target),o=this.items[a];if(o){if(o.disabled)return void e.preventDefault();var s={index:a,item:o,originalEvent:e};this.ngZone.run(function(){var l=new JNe(s);n.select.emit(l),l.isDefaultPrevented()||(n.drawerService.onSelect(a),n.changeDetector.detectChanges())})}}},{key:"keyDownHandler",value:function(e){if(e.keyCode===J.Enter||e.keyCode===J.Space){this.clickHandler(e);var a=G7(this.element.nativeElement,":focus:not(.k-state-disabled) .k-drawer-link");return a&&a.click(),!1}}},{key:"getDrawerItemIndex",value:function(e){var n=k7(e,B7,this.element.nativeElement);if(n)return y7(n,B7)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(MD),m(Ee),m(be),m(nt),m(_e))},i.\u0275cmp=L({type:i,selectors:[["","kendoDrawerList",""]],inputs:{items:"items",itemTemplate:"itemTemplate",mini:"mini",expanded:"expanded"},outputs:{select:"select"},attrs:oIe,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoDrawerItem","","class","k-drawer-item","tabindex","0",3,"item","index","mini","expanded","itemTemplate","ngClass","ngStyle",4,"ngIf"],["class","k-drawer-item k-drawer-separator",3,"ngClass","ngStyle",4,"ngIf"],["kendoDrawerItem","","tabindex","0",1,"k-drawer-item",3,"item","index","mini","expanded","itemTemplate","ngClass","ngStyle"],[1,"k-drawer-item","k-drawer-separator",3,"ngClass","ngStyle"]],template:function(t,e){1&t&&T(0,uIe,3,2,"ng-container",0),2&t&&y("ngForOf",e.items)},directives:[V7,gn,qe,Ft,Vi],encapsulation:2}),i}(),z7={type:"slide",duration:200},H7=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.element=t,this.builder=e,this.localizationService=n,this.drawerService=a,this.hostClasses=!0,this.mode="overlay",this.position="start",this.mini=!1,this.expanded=!1,this.width=240,this.miniWidth=50,this.autoCollapse=!0,this.animation=z7,this.expand=new O,this.collapse=new O,this.select=new O,this.expandedChange=new O,this.animationEnd=new O,this.rtl=!1,this._items=[],jt(fl),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(s){o.rtl=s.rtl,o.direction=o.rtl?"rtl":"ltr"}),this.drawerService.owner=this}return v(r,[{key:"startPositionClass",get:function(){return"start"===this.position}},{key:"endPositionClass",get:function(){return"end"===this.position}},{key:"overlayTransofrmStyles",get:function(){if("push"!==this.mode)return this.expanded||this.minimized?"translateX(0px)":"translateX(-100%)"}},{key:"flexStyles",get:function(){if("overlay"!==this.mode)return this.expanded||this.minimized?this.drawerWidth:0}},{key:"items",get:function(){return this._items},set:function(e){Mi(e)&&(this._items=e,this.drawerService.initSelection())}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"minimized",get:function(){return this.mini&&!this.expanded}},{key:"drawerWidth",get:function(){return this.minimized?this.miniWidth:this.width}},{key:"toggle",value:function(e){var n=this,a=this.expanded,o=Mi(e)?e:!a;o!==a&&(!0===o?this.setExpanded(!0):!1===o&&!this.animation&&this.setExpanded(!1),this.animation?(this.animationEnd.pipe(It(1)).subscribe(function(){n.onAnimationEnd(o)}),this.animate(o)):this[o?"expand":"collapse"].emit())}},{key:"onSelect",value:function(e){this.select.emit(Object.assign(e,{sender:this}))}},{key:"onAnimationEnd",value:function(e){e?this.expand.emit():(this.setExpanded(!1),this.collapse.emit())}},{key:"setExpanded",value:function(e){this.expanded=e,this.expandedChange.emit(e)}},{key:"animate",value:function(e){var n={mode:this.mode,mini:this.mini,miniWidth:this.miniWidth,width:this.width,rtl:this.rtl,position:this.position,animation:"boolean"!=typeof this.animation?this.animation:z7},a=e?function XNe(i){var r=i.animation.duration,t=i.width,e=i.miniWidth,n=i.mode,a=i.mini,o=i.rtl,s=i.position;return a&&"push"===n?function GNe(i,r,t){return[Lt({overflow:"hidden",flexBasis:"".concat(t,"px")}),Ai("".concat(i,"ms ease-in"),Lt({flexBasis:"".concat(r,"px")}))]}(r,t,e):a||"push"!==n?a||"overlay"!==n?a&&"overlay"===n?function UNe(i,r,t){return[Lt({width:"".concat(t,"px")}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",width:"".concat(r,"px")}))]}(r,t,e):void 0:o?function KNe(i){return[Lt({transform:"translateX(100%)"}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",transform:"translateX(0)"}))]}(r):function jNe(i,r){return[Lt({transform:"translateX(".concat("end"!==r?"-100%":"100%",")")}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",transform:"translateX(0)"}))]}(r,s):function zNe(i,r){return[Lt({overflow:"hidden",flexBasis:"0px"}),Ai("".concat(i,"ms ease-in"),Lt({flexBasis:"".concat(r,"px")}))]}(r,t)}(n):function ZNe(i){var r=i.animation.duration,t=i.width,e=i.miniWidth,n=i.mode,a=i.mini,o=i.rtl,s=i.position;return a&&"push"===n?function VNe(i,r,t){return[Lt({overflow:"hidden",flexBasis:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Lt({flexBasis:"".concat(t,"px")}))]}(r,t,e):a||"push"!==n?a||"overlay"!==n?a&&"overlay"===n?function WNe(i,r,t){return[Lt({width:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",width:"".concat(t,"px")}))]}(r,t,e):void 0:o?function qNe(i){return[Lt({transform:"translateX(0)"}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",transform:"translateX(100%)"}))]}(r):function $Ne(i,r){var t="end"!==r?"-100%":"100%";return[Lt({transform:"translateX(0)"}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",transform:"translateX(".concat(t,")")}))]}(r,s):function HNe(i,r){return[Lt({flexBasis:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",flexBasis:"0px"}))]}(r,t)}(n);this.createPlayer(a,this.element.nativeElement).play()}},{key:"createPlayer",value:function(e,n){var a=this,s=this.builder.build(e).create(n);return s.onDone(function(){s&&(a.animationEnd.emit(),s.destroy(),s=null)}),s}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(zp),m(Y),m(MD))},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,N7,5),he(n,P7,5),he(n,L7,5),he(n,F7,5)),2&t&&(P(a=B())&&(e.drawerTemplate=a.first),P(a=B())&&(e.footerTemplate=a.first),P(a=B())&&(e.headerTemplate=a.first),P(a=B())&&(e.itemTemplate=a.first))},hostVars:13,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("transform",e.overlayTransofrmStyles)("flex-basis",e.flexStyles,"px"),ue("k-widget",e.hostClasses)("k-drawer",e.hostClasses)("k-drawer-start",e.startPositionClass)("k-drawer-end",e.endPositionClass))},inputs:{mode:"mode",position:"position",mini:"mini",expanded:"expanded",width:"width",miniWidth:"miniWidth",autoCollapse:"autoCollapse",items:"items",animation:"animation"},outputs:{expand:"expand",collapse:"collapse",select:"select",expandedChange:"expandedChange"},exportAs:["kendoDrawer"],features:[de([Y,MD,{provide:Et,useValue:"kendo.drawer"}])],decls:1,vars:1,consts:[["class","k-drawer-wrapper",3,"width",4,"ngIf"],[1,"k-drawer-wrapper"],[4,"ngIf"],["kendoDrawerList","",1,"k-drawer-items",3,"items","mini","expanded","itemTemplate","select"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&T(0,mIe,3,4,"div",0),2&t&&y("ngIf",e.expanded||e.mini)},directives:[U7,qe,En],encapsulation:2}),i}(),eFe=function(){var i=function(){function r(t){var e=this;p(this,r),this.localizationService=t,this.rtl=!1,this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){e.rtl=n.rtl,e.direction=e.rtl?"rtl":"ltr"})}return v(r,[{key:"hostClass",get:function(){return!0}},{key:"overlayClass",get:function(){return"overlay"===this.drawer.mode}},{key:"miniClass",get:function(){return this.drawer.mini}},{key:"pushClass",get:function(){return"push"===this.drawer.mode}},{key:"isExpandedClass",get:function(){return this.drawer.expanded}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"overlay",get:function(){return Mi(this.drawer)&&this.drawer.expanded&&"overlay"===this.drawer.mode}},{key:"closeDrawer",value:function(){this.overlay&&this.drawer.autoCollapse&&this.drawer.toggle(!1)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer-container"]],contentQueries:function(t,e,n){var a;1&t&&he(n,H7,5),2&t&&P(a=B())&&(e.drawer=a.first)},hostVars:11,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-drawer-container",e.hostClass)("k-drawer-overlay",e.overlayClass)("k-drawer-mini",e.miniClass)("k-drawer-push",e.pushClass)("k-drawer-expanded",e.isExpandedClass))},features:[de([Y,{provide:Et,useValue:"kendo.drawer.container"}])],ngContentSelectors:_a,decls:2,vars:1,consts:[["class","k-overlay",3,"click",4,"ngIf"],[1,"k-overlay",3,"click"]],template:function(t,e){1&t&&(kn(),T(0,_Ie,1,0,"div",0),dn(1)),2&t&&y("ngIf",e.overlay)},directives:[qe],encapsulation:2}),i}(),tFe=function(){var i=v(function r(){p(this,r),this.hostClasses=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer-content"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-drawer-content",e.hostClasses)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),K7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperStepTemplate",""]]}),i}(),j7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperLabelTemplate",""]]}),i}(),W7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperIndicatorTemplate",""]]}),i}(),su={};su[J.ArrowLeft]="left",su[J.ArrowRight]="right",su[J.ArrowUp]="up",su[J.ArrowDown]="down",su[J.Home]="home",su[J.End]="end",su[J.Enter]="enter",su[J.Space]="enter";var ZI=Object.assign({},su);ZI[J.ArrowLeft]="right",ZI[J.ArrowRight]="left";var iFe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),YI=function(){var i=function(){function r(t,e,n){p(this,r),this.localization=t,this.ngZone=e,this.changeDetector=n,this.currentStep=0,this.triggerValidation=new O,this.focusedStepChange=new O}return v(r,[{key:"handlers",get:function(){return this.localization.rtl?ZI:su}},{key:"emit",value:function(e,n){var a=this.owner;return ut(a[e])&&a[e].emit(n),n.isDefaultPrevented()}},{key:"onActivate",value:function(e,n){var a=this,o=new iFe({index:e,step:this.owner.steps[e],originalEvent:n,sender:this.owner});this.ngZone.run(function(){a.emit("activate",o)||(a.currentStep=e,a.owner.currentStepChange.emit(e),a.changeDetector.detectChanges())})}},{key:"validateSteps",value:function(){this.triggerValidation.emit()}},{key:"keydown",value:function(e){var a=this.handlers[e.keyCode];!Mi(this.focusedStep||this.currentStep)||a&&(e.preventDefault(),this[a](e))}},{key:"left",value:function(){!this.isHorizontal||this.focusPrevStep()}},{key:"right",value:function(){!this.isHorizontal||this.focusNextStep()}},{key:"up",value:function(){this.isHorizontal||this.focusPrevStep()}},{key:"down",value:function(){this.isHorizontal||this.focusNextStep()}},{key:"home",value:function(){this.focusedStep=0,this.focusedStepChange.emit()}},{key:"end",value:function(){this.focusedStep=this.owner.steps.length-1,this.focusedStepChange.emit()}},{key:"enter",value:function(e){this.focusedStep!==this.currentStep&&(this.isStepDisabled(this.focusedStep)||this.owner.linear&&!1===this.isPrevOrNextStep(this.focusedStep)||this.onActivate(this.focusedStep,e))}},{key:"focus",value:function(e){this.focusedStep=e}},{key:"focusNextStep",value:function(){this.focusedStep0&&(this.focusedStep-=1,this.focusedStepChange.emit())}},{key:"isStepDisabled",value:function(e){return this.owner.steps[e].disabled}},{key:"isPrevOrNextStep",value:function(e){return e===this.currentStep+1||e===this.currentStep-1}},{key:"isHorizontal",get:function(){return"horizontal"===this.owner.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y),oe(be),oe(nt))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),$7="data-kendo-stepper-index",q7=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.service=t,this.localization=e,this.ngZone=n,this.isStepValid=void 0,this.shouldCheckValidity=void 0,jt(fl),this.subs=this.service.focusedStepChange.subscribe(function(){a.onFocusedStepChange()}),this.subs.add(this.service.triggerValidation.subscribe(function(){a.handleValidityChecks()}))}return v(r,[{key:"errorStepClass",get:function(){return!!Mi(this.isStepValid)&&!this.isStepValid}},{key:"successStepClass",get:function(){return!!Mi(this.isStepValid)&&this.isStepValid}},{key:"ngOnInit",value:function(){this.handleValidityChecks()}},{key:"ngOnChanges",value:function(e){e.current&&!e.current.firstChange&&this.handleValidityChecks()}},{key:"ngOnDestroy",value:function(){this.subs&&this.subs.unsubscribe()}},{key:"onFocusedStepChange",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.index===e.service.focusedStep&&e.stepLink.nativeElement.focus()})}},{key:"onFocus",value:function(){this.service.focus(this.index)}},{key:"tabIndexAttr",get:function(){return this.index===(this.service.focusedStep||this.service.currentStep)?0:-1}},{key:"indicatorIconClasses",get:function(){return this.step.icon?"k-icon k-i-".concat(this.step.icon):this.step.iconClass?"".concat(this.step.iconClass):this.shouldCheckValidity?this.validationIconClasses:void 0}},{key:"showIndicatorIcon",get:function(){return!!(this.shouldCheckValidity||this.step.icon||this.step.iconClass)}},{key:"showLabelIcon",get:function(){return!(!this.shouldCheckValidity||"label"!==this.type&&!this.step.icon&&!this.step.iconClass)}},{key:"showLabelText",get:function(){return"label"===this.type||"full"===this.type}},{key:"validationIconClasses",get:function(){return this.isStepValid?this.successIcon?"".concat(this.successIcon):"k-icon k-i-check":this.errorIcon?"".concat(this.errorIcon):"k-icon k-i-warning"}},{key:"indicatorText",get:function(){return this.step.text||this.index+1}},{key:"updateStepValidity",value:function(){return"boolean"==typeof this.step.isValid?this.step.isValid:"function"==typeof this.step.isValid?this.step.isValid(this.index):void 0}},{key:"showIndicator",get:function(){return"indicator"===this.type||"full"===this.type}},{key:"showLabel",get:function(){return"label"===this.type||"full"===this.type||this.step.optional}},{key:"optionalText",get:function(){return this.localization.get("optional")}},{key:"transitionDuration",get:function(){return this.service.owner.animationDuration}},{key:"_shouldCheckValidity",value:function(){if(Mi(this.step.validate)){if("boolean"==typeof this.step.validate)return this.step.validate;if("function"==typeof this.step.validate)return this.step.validate(this.index)}return Mi(this.step.isValid)&&this.index0&&(this._steps=e)}},{key:"ngOnInit",value:function(){this.applyHostStyling()}},{key:"ngOnChanges",value:function(e){e.steps&&!e.steps.firstChange&&this.applyHostStyling(),e.orientation&&(this.resetHostStyling(),this.applyHostStyling())}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"validateSteps",value:function(){this.stepperService.validateSteps()}},{key:"applyHostStyling",value:function(){var e="horizontal"===this.orientation?"grid-template-columns":"grid-template-rows",n="repeat(".concat(2*this.steps.length,", 1fr)");this.renderer.setStyle(this.elem.nativeElement,e,n)}},{key:"resetHostStyling",value:function(){this.renderer.removeStyle(this.elem.nativeElement,"grid-template-columns"),this.renderer.removeStyle(this.elem.nativeElement,"grid-template-rows")}},{key:"progressAnimation",get:function(){return{duration:this.animationDuration}}},{key:"animationDuration",get:function(){return"number"==typeof this.animation?this.animation:"boolean"==typeof this.animation&&this.animation?400:0}},{key:"stepsListStyling",get:function(){return"horizontal"===this.orientation?{"grid-column-start":1,"grid-column-end":-1}:{"grid-row-start":1,"grid-row-end":-1}}},{key:"progressBarStyling",get:function(){return"horizontal"===this.orientation?{"grid-column-start":2,"grid-column-end":2*this.steps.length}:{"grid-row-start":2,"grid-row-end":2*this.steps.length}}},{key:"onListKeydown",value:function(e){this.stepperService.keydown(e)}},{key:"onListClick",value:function(e){e.stepIdx!==e.currentStep?e.linear&&!1===this.stepperService.isPrevOrNextStep(e.stepIdx)||this.stepperService.onActivate(e.stepIdx,e.originalEvent):this.stepperService.focus(e.stepIdx)}},{key:"isHorizontal",get:function(){return"horizontal"===this.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(Y),m(YI))},i.\u0275cmp=L({type:i,selectors:[["kendo-stepper"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,K7,5),he(n,j7,5),he(n,W7,5)),2&t&&(P(a=B())&&(e.stepTemplate=a.first),P(a=B())&&(e.labelTemplate=a.first),P(a=B())&&(e.indicatorTemplate=a.first))},hostVars:10,hostBindings:function(t,e){2&t&&(ie("role",e.ariaRole)("dir",e.direction),Qe("display",e.displayStyle),ue("k-widget",e.hostClasses)("k-stepper",e.hostClasses)("k-stepper-linear",e.linearClass))},inputs:{stepType:"stepType",linear:"linear",orientation:"orientation",currentStep:"currentStep",steps:"steps",successIcon:"successIcon",errorIcon:"errorIcon",animation:"animation"},outputs:{activate:"activate",currentStepChange:"currentStepChange"},exportAs:["kendoStepper"],features:[de([Y,YI,{provide:Et,useValue:"kendo.stepper"}]),Ie],decls:3,vars:16,consts:function(){return[["kendoStepperLocalizedMessages","","optional",$localize(l7||(l7=le([":kendo.stepper.optional|The text for the optional segment of the step label:Optional"])))],["kendoStepperList","",1,"k-step-list",3,"stepType","linear","orientation","steps","currentStep","successIcon","errorIcon","indicatorTemplate","labelTemplate","stepTemplate","ngStyle","listKeydown","listClick"],[3,"animation","max","label","orientation","reverse","value","ngStyle",4,"ngIf"],[3,"animation","max","label","orientation","reverse","value","ngStyle"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"ol",1),Q("listKeydown",function(a){return e.onListKeydown(a)})("listClick",function(a){return e.onListClick(a)}),x(),T(2,GIe,1,8,"kendo-progressbar",2)),2&t&&(k(1),ue("k-step-list-horizontal",e.isHorizontal)("k-step-list-vertical",!e.isHorizontal),y("stepType",e.stepType)("linear",e.linear)("orientation",e.orientation)("steps",e.steps)("currentStep",e.currentStep)("successIcon",e.successIcon)("errorIcon",e.errorIcon)("indicatorTemplate",null==e.indicatorTemplate?null:e.indicatorTemplate.templateRef)("labelTemplate",null==e.labelTemplate?null:e.labelTemplate.templateRef)("stepTemplate",null==e.stepTemplate?null:e.stepTemplate.templateRef)("ngStyle",e.stepsListStyling),k(1),y("ngIf",e.steps.length>0))},directives:[X7,o7,Z7,Vi,qe],encapsulation:2}),i}(),oFe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(RD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-stepper-messages"]],features:[de([{provide:RD,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),J7="primary",sFe=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.element=e,this.hostClass=!0,this.border=!1,this._themeColor=J7,this._size="medium",this._fillMode="solid",this._rounded="full",jt(fl)}return v(r,[{key:"borderClass",get:function(){return this.border}},{key:"flexBasis",get:function(){return this.width}},{key:"shape",set:function(e){this.rounded=function(r){return oNe[r]||"none"}(e)}},{key:"size",get:function(){return this._size},set:function(e){if(e!==this._size){var n=e||"medium";this.handleClasses("size",n),this._size=n}}},{key:"rounded",get:function(){return this._rounded},set:function(e){if(e!==this._rounded){var n=e||"full";this.handleClasses("rounded",n),this._rounded=n}}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){e!==this._themeColor&&(this._themeColor=e||J7,this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor))}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){e!==this.fillMode&&(this._fillMode=e||"solid",this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor))}},{key:"fill",set:function(e){this.fillMode=e}},{key:"avatarWidth",get:function(){return this.width}},{key:"avatarHeight",get:function(){return this.height}},{key:"ngOnInit",value:function(){this.verifyProperties()}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded"].forEach(function(a){e.handleClasses(a,e[a])}),this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor)}},{key:"iconClasses",value:function(){return this.icon?"k-icon k-i-".concat(this.icon):this.iconClass?"".concat(this.iconClass):void 0}},{key:"customAvatar",get:function(){return!(this.imageSrc||this.initials||this.icon||this.iconClass)}},{key:"verifyProperties",value:function(){if(xt()&&[this.icon||this.iconClass,this.imageSrc,this.initials].filter(function(a){return a}).length>1)throw new Error("\n Invalid property configuration given.\n The kendo-avatar component can accept only one of:\n icon, imageSrc or initials properties.\n ")}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(v7[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(v7[n]):""};case"rounded":return{toRemove:"k-rounded-".concat(p7[e]),toAdd:"none"!==n?"k-rounded-".concat(p7[n]):""}}}("avatar",e,this[e],n);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleFillModeAndThemeColorClasses",value:function(e,n){var a=this,o=this.element.nativeElement;Array.from(o.classList).filter(function(u){return u.startsWith("k-avatar-solid")||u.startsWith("k-avatar-outline")}).forEach(function(u){return a.renderer.removeClass(o,u)}),"none"!==e&&this.renderer.addClass(o,"k-avatar-".concat(e)),"none"!==e&&"none"!==n&&this.renderer.addClass(o,"k-avatar-".concat(e,"-").concat(n))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-avatar"]],hostVars:10,hostBindings:function(t,e){2&t&&(Qe("flex-basis",e.flexBasis)("width",e.avatarWidth)("height",e.avatarHeight),ue("k-avatar",e.hostClass)("k-avatar-bordered",e.borderClass))},inputs:{shape:"shape",size:"size",rounded:"rounded",themeColor:"themeColor",fillMode:"fillMode",fill:"fill",border:"border",iconClass:"iconClass",width:"width",height:"height",cssStyle:"cssStyle",initials:"initials",icon:"icon",imageSrc:"imageSrc"},ngContentSelectors:_a,decls:4,vars:4,consts:[[4,"ngIf"],[1,"k-avatar-image"],[3,"src","ngStyle"],[1,"k-avatar-text",3,"ngStyle"],[1,"k-avatar-icon",3,"ngStyle","ngClass"]],template:function(t,e){1&t&&(kn(),T(0,VIe,1,0,"ng-content",0),T(1,UIe,3,2,"ng-container",0),T(2,zIe,3,2,"ng-container",0),T(3,HIe,2,2,"ng-container",0)),2&t&&(y("ngIf",e.customAvatar),k(1),y("ngIf",e.imageSrc),k(1),y("ngIf",e.initials),k(1),y("ngIf",e.icon||e.iconClass))},directives:[qe,Vi,Ft],encapsulation:2}),i}(),lFe=function(){var i=function(){function r(t){var e=this;p(this,r),this.localizationService=t,this.hostClass=!0,this.orientation="vertical",this.width="285px",this.rtl=!1,jt(fl),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){e.rtl=n.rtl,e.direction=e.rtl?"rtl":"ltr"})}return v(r,[{key:"widthStyle",get:function(){return this.width}},{key:"vertical",get:function(){return"vertical"===this.orientation}},{key:"horizontal",get:function(){return"horizontal"===this.orientation}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-card"]],hostVars:11,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("width",e.widthStyle),ue("k-widget",e.hostClass)("k-card",e.hostClass)("k-card-vertical",e.vertical)("k-card-horizontal",e.horizontal))},inputs:{orientation:"orientation",width:"width"},features:[de([Y,{provide:Et,useValue:"kendo.card.component"}])],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),uFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-header"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-header",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),cFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-body"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-body",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),dFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-footer"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-footer",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),hFe=function(){var i=function(){function r(){p(this,r),this.hostClass=!0,this.orientation="horizontal",this.layout="start",this.action=new O}return v(r,[{key:"stretchedClass",get:function(){return"stretched"===this.layout}},{key:"startClass",get:function(){return"start"===this.layout}},{key:"endClass",get:function(){return"end"===this.layout}},{key:"centerClass",get:function(){return"center"===this.layout}},{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}},{key:"actions",set:function(e){Array.isArray(e)?this.actionsArray=e:e instanceof $e&&(this.actionsTemplate=e)}},{key:"onClick",value:function(e){this.action.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-actions"]],hostVars:14,hostBindings:function(t,e){2&t&&ue("k-card-actions",e.hostClass)("k-card-actions-stretched",e.stretchedClass)("k-card-actions-start",e.startClass)("k-card-actions-end",e.endClass)("k-card-actions-center",e.centerClass)("k-card-actions-vertical",e.verticalClass)("k-card-actions-horizontal",e.horizontalClass)},inputs:{orientation:"orientation",layout:"layout",actions:"actions"},outputs:{action:"action"},ngContentSelectors:_a,decls:3,vars:3,consts:[[4,"ngIf"],["type","button","class","k-button",3,"k-primary","k-flat","click",4,"ngFor","ngForOf"],["type","button",1,"k-button",3,"click"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(kn(),T(0,KIe,1,0,"ng-content",0),T(1,WIe,2,1,"ng-container",0),T(2,qIe,1,1,null,0)),2&t&&(y("ngIf",!e.actionsArray&&!e.actionsTemplate),k(1),y("ngIf",e.actionsArray),k(1),y("ngIf",e.actionsTemplate))},directives:[qe,gn,En],encapsulation:2}),i}(),fFe=function(){var i=function(){function r(){p(this,r),this.hostClass=!0,this.orientation="horizontal"}return v(r,[{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardSeparator",""]],hostVars:8,hostBindings:function(t,e){2&t&&(Qe("color",e.color),ue("k-card-separator",e.hostClass)("k-separator-vertical",e.verticalClass)("k-separator-horizontal",e.horizontalClass))},inputs:{color:"color",orientation:"orientation"}}),i}(),vFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardTitle",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-title",e.hostClass)}}),i}(),pFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardSubtitle",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-subtitle",e.hostClass)}}),i}(),gFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardMedia",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-media",e.hostClass)}}),i}(),t9=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoExpansionPanelTitleDirective",""]]}),i}(),yFe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),QI="k-hidden",CFe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.renderer=t,this.hostElement=e,this.ngZone=n,this.localizationService=a,this.builder=o,this.title="",this.subtitle="",this.disabled=!1,this.animation=!0,this.expandedChange=new O,this.action=new O,this.expand=new O,this.collapse=new O,this.hostClass=!0,this.tabindex=0,this.focused=!1,this.animationEnd=new O,this.subscriptions=new Je,this._expanded=!1,jt(fl),this.direction=a.rtl?"rtl":"ltr"}return v(r,[{key:"expanded",get:function(){return this._expanded},set:function(e){e!==this.expanded&&(this._expanded=e,this.expanded?this.removeContentHiddenClass():this.addContentHiddenClass())}},{key:"expandedClass",get:function(){return this.expanded&&!this.disabled}},{key:"focusClass",get:function(){return this.focused}},{key:"disabledClass",get:function(){return this.disabled}},{key:"onComponentBlur",value:function(){this.focused&&(this.focused=!1)}},{key:"onComponentFocus",value:function(){this.focused||(this.focused=!0)}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"title"),this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){this.initDomEvents(),this.expanded||this.renderer.addClass(this.content.nativeElement,QI)}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"initDomEvents",value:function(){var e=this;!this.hostElement||this.disabled||this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(e.hostElement.nativeElement,"keydown",e.keyDownHandler.bind(e)))})}},{key:"keyDownHandler",value:function(e){var n=this;e.keyCode!==J.Enter&&e.keyCode!==J.Space||TD(e.target,"k-expander")&&(e.preventDefault(),this.ngZone.run(function(){n.onHeaderAction()}))}},{key:"onHeaderClick",value:function(e){!ED(e.target)&&!this.disabled&&this.onHeaderAction()}},{key:"onHeaderAction",value:function(){this.focused=!0;var e=new yFe;if(e.action=this.expanded?"collapse":"expand",this.action.emit(e),!e.isDefaultPrevented()){if(this.setExpanded(!this.expanded),this.expanded&&this.removeContentHiddenClass(),this.animation)return void this.animateContent();this.expanded||this.addContentHiddenClass(),this.emitExpandCollapseEvent()}}},{key:"indicatorClasses",get:function(){return this.expanded?this.collapseIcon?this.collapseIcon:"k-icon k-i-arrow-chevron-up":this.expandIcon?this.expandIcon:"k-icon k-i-arrow-chevron-down"}},{key:"toggle",value:function(e){var n=this.expanded,a=Mi(e)?e:!n;if(a!==n){if(this.setExpanded(a),this.expanded&&this.removeContentHiddenClass(),this.animation)return void this.animateContent();this.expanded||this.addContentHiddenClass(),this.emitExpandCollapseEvent()}}},{key:"setExpanded",value:function(e){this._expanded=e,this.expandedChange.emit(e)}},{key:"animateContent",value:function(){var e=this,n="boolean"==typeof this.animation?200:this.animation,a=getComputedStyle(this.content.nativeElement).height,o=this.expanded?function mFe(i,r){return[Lt({overflow:"hidden",display:"block",height:0}),Ai("".concat(i,"ms ease-in"),Lt({height:"".concat(r)}))]}(n,a):function _Fe(i,r){return[Lt({overflow:"hidden",height:"".concat(r)}),Ai("".concat(i,"ms ease-in"),Lt({overflow:"hidden",height:0}))]}(n,a),s=this.createPlayer(o,this.content.nativeElement);this.animationEnd.pipe(It(1)).subscribe(function(){e.expanded||e.addContentHiddenClass(),e.emitExpandCollapseEvent()}),s.play()}},{key:"createPlayer",value:function(e,n){var a=this,s=this.builder.build(e).create(n);return s.onDone(function(){s&&(a.animationEnd.emit(),s.destroy(),s=null)}),s}},{key:"emitExpandCollapseEvent",value:function(){this[this.expanded?"expand":"collapse"].emit()}},{key:"addContentHiddenClass",value:function(){this.renderer.addClass(this.content.nativeElement,QI)}},{key:"removeContentHiddenClass",value:function(){this.renderer.removeClass(this.content.nativeElement,QI)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(be),m(Y),m(zp))},i.\u0275cmp=L({type:i,selectors:[["kendo-expansionpanel"]],contentQueries:function(t,e,n){var a;1&t&&he(n,t9,5),2&t&&P(a=B())&&(e.titleTemplate=a.first)},viewQuery:function(t,e){var n;1&t&&ge(XIe,7),2&t&&P(n=B())&&(e.content=n.first)},hostVars:11,hostBindings:function(t,e){1&t&&Q("blur",function(){return e.onComponentBlur()})("focus",function(){return e.onComponentFocus()}),2&t&&(ie("aria-disabled",e.disabledClass)("dir",e.direction)("tabindex",e.tabindex),ue("k-expander",e.hostClass)("k-expanded",e.expandedClass)("k-state-focus",e.focusClass)("k-state-disabled",e.disabledClass))},inputs:{title:"title",subtitle:"subtitle",disabled:"disabled",expanded:"expanded",expandIcon:"expandIcon",collapseIcon:"collapseIcon",animation:"animation"},outputs:{expandedChange:"expandedChange",action:"action",expand:"expand",collapse:"collapse"},exportAs:["kendoExpansionPanel"],features:[de([Y,{provide:Et,useValue:"kendo.expansionpanel"}])],ngContentSelectors:_a,decls:9,vars:7,consts:[["role","button",3,"click"],[4,"ngIf"],[1,"k-expander-indicator"],[3,"ngClass"],[1,"k-expander-content-wrapper"],["content",""],[1,"k-expander-content"],["class","k-expander-title",4,"ngIf"],[1,"k-spacer"],["class","k-expander-sub-title",4,"ngIf"],[1,"k-expander-title"],[1,"k-expander-sub-title"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(kn(),A(0,"div",0),Q("click",function(a){return e.onHeaderClick(a)}),T(1,QIe,4,2,"ng-container",1),T(2,eNe,1,1,null,1),A(3,"span",2),z(4,"span",3),x()(),A(5,"div",4,5)(7,"div",6),dn(8),x()()),2&t&&(ue("k-expander-header",!0),ie("aria-expanded",e.expanded&&!e.disabled),k(1),y("ngIf",!e.titleTemplate),k(1),y("ngIf",e.titleTemplate),k(2),y("ngClass",e.indicatorClasses),k(3),ie("aria-hidden",!e.expanded))},directives:[qe,En,Ft],encapsulation:2}),i}(),JI=function(r){return r?+r:void 0},n9=function(r,t){for(var e=0;e5&&void 0!==arguments[5]&&arguments[5],s=t.getBoundingClientRect(),l=(s.height-e.rows)/(n.height+e.rows),u=r.y-s.y,c=r.x-s.x,d=s.right-r.x,h=Math.floor((o?d:c)/(e.columns+n.width)),f=Math.min(h+1,a),g=Math.floor(u/(e.rows+n.height)),_=Math.min(g+1,l),C=Math.max(f,0),w=Math.max(_,0);return{row:w,col:C}},a9=["ew","ns","nwse"],o9=["ew","ns","nesw"],cg={ew:{width:9,overlapX:5},ns:{height:9,overlapY:5},nwse:{width:25,height:25,overlapX:18,overlapY:18},nesw:{width:25,height:25,overlapX:18,overlapY:18}},DFe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l,u,c){var d;return p(this,t),(d=r.call(this)).item=e,d.items=n,d.newIndex=a,d.oldIndex=o,d.newCol=s,d.oldCol=l,d.newRow=u,d.oldRow=c,d}return v(t)}(Is),EFe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u;return p(this,t),(u=r.call(this)).item=e,u.items=n,u.newRowSpan=a,u.oldRowSpan=o,u.newColSpan=s,u.oldColSpan=l,u}return v(t)}(Is),eN=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.zone=t,this.renderer=e,this.localization=n,this.reorderable=new xi(null),this.resizable=new xi(null),this.reorder=new Ot,this.resize=new Ot,this.lastDragCursorOffset={x:0,y:0},this.localizationSubscription=this.localization.changes.subscribe(function(o){return a.rtl=o.rtl})}return v(r,[{key:"colStart",get:function(){return this.currentColStart}},{key:"rowStart",get:function(){return this.currentRowStart}},{key:"itemWrapper",get:function(){return this.draggedItemWrapper}},{key:"order",get:function(){return this.targetOrder}},{key:"ngOnDestroy",value:function(){this.localizationSubscription.unsubscribe()}},{key:"handlePress",value:function(e){var n=this,a=!!e.target.classList.contains("k-resize-handle"),o=GI(e.target,function(d){return d.classList.contains("k-tilelayout-item")},this.tileLayoutSettings.tileLayoutElement),s=GI(e.target,function(d){return d.classList.contains("k-tilelayout-item-header")},this.tileLayoutSettings.tileLayoutElement);if(o){this.zone.run(function(){n.draggedItemWrapper=o,n.draggedItem=n.tileLayoutSettings.items.find(function(d){return d.order===+o.style.order})});var l=!a&&this.reorderable.getValue()&&this.draggedItem.reorderable&&s;if(!l&&!a)return;e.preventDefault(),this.zone.run(function(){n.reordering=l,n.resizing=a});var u=this.draggedItemWrapper.getBoundingClientRect();if(this.zone.run(function(){n.offset={top:e.clientY-u.top,left:e.clientX-u.left,x:u.x,y:u.y,width:u.width,height:u.height},n.targetSize={rowSpan:n.draggedItem.rowSpan,colSpan:n.draggedItem.colSpan},n.cellSize={width:(u.width-(n.targetSize.colSpan-1)*n.tileLayoutSettings.gap.columns)/n.targetSize.colSpan,height:(u.height-(n.targetSize.rowSpan-1)*n.tileLayoutSettings.gap.rows)/n.targetSize.rowSpan},n.lastDragCursorOffset={x:e.clientX,y:e.clientY}}),Co(this.renderer,this.draggedItemWrapper,{left:u.left+window.pageXOffset+"px",top:u.top+window.pageYOffset+"px",width:u.width+"px",height:u.height+"px",zIndex:10}),Co(this.renderer,this.tileLayoutSettings.hintElement,{display:"flex",height:u.height-2+"px"}),this.zone.run(function(){return n.targetOrder=n.draggedItem.order}),Co(this.renderer,this.draggedItemWrapper,{position:"absolute"}),this.reorderable.getValue()&&!a){this.zone.run(function(){n.currentColStart=n.draggedItem.colStart,n.currentRowStart=n.draggedItem.rowStart});var c=this.draggedItem.elem.nativeElement.querySelector(".k-tilelayout-item-header");this.renderer.addClass(c,"k-cursor-grabbing")}else this.resizable&&a&&this.zone.run(function(){n.startingPoint={top:e.clientY,left:e.clientX},n.currentResizingColSpan=n.draggedItem.colSpan,n.currentResizingRowSpan=n.draggedItem.rowSpan,n.draggedItem.col&&(n.currentColStart=n.draggedItem.col.toString()),n.draggedItem.row&&(n.currentRowStart=n.draggedItem.row.toString()),n.direction=e.target.classList[1]})}}},{key:"handleDrag",value:function(e){this.draggedItemWrapper&&(this.reordering?this.reorderItems(e):this.resizing&&this.resizeItem(e),this.lastDragCursorOffset={x:e.clientX,y:e.clientY})}},{key:"handleRelease",value:function(e){var n=this;if(e.preventDefault(),this.reordering){var a=this.draggedItem.order,o=this.draggedItem.col,s=this.draggedItem.row,l=JI(this.currentColStart),u=JI(this.currentRowStart);if(n9([this.targetOrder,l,u],[a,o,s])){var c=new DFe(this.draggedItem,this.tileLayoutSettings.items,this.targetOrder,a,JI(this.currentColStart),o,u,s);this.reorder.next(c),c.isDefaultPrevented()||(this.zone.run(this.targetOrder>a?function(){for(var w=function(R){n.tileLayoutSettings.items.find(function(N){return N.order===R}).order=R-1},E=a+1;E<=n.targetOrder;E++)w(E)}:function(){for(var w=function(R){n.tileLayoutSettings.items.find(function(N){return N.order===R}).order=R+1},E=n.targetOrder;E0?"right":l<0?"left":void 0,d=e.clientY-this.lastDragCursorOffset.y>0?"down":l<0?"up":void 0,h=this.draggedItemWrapper.getBoundingClientRect(),f=this.tileLayoutSettings.gap.columns,g=this.tileLayoutSettings.gap.rows;if(c&&this.draggedItem.col){var _=pf({x:"right"===c?h.right-f:h.left+f,y:e.clientY},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),w=this.getTargetCol(_.col,c);this.currentColStart=w.toString()}if(d&&this.draggedItem.row){var E=pf({x:e.clientX,y:"down"===d?h.bottom-g:h.top+g},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),R=this.getTargetRow(E.row,d);this.currentRowStart=R.toString()}}var N=sthis.targetOrder;this.zone.run(function(){return n.targetOrder=s}),N?this.tileLayoutSettings.tileLayoutElement.insertBefore(this.tileLayoutSettings.hintElement,this.tileLayoutSettings.tileLayoutElement.firstChild):V&&this.tileLayoutSettings.tileLayoutElement.appendChild(this.tileLayoutSettings.hintElement),Co(this.renderer,this.draggedItemWrapper,{top:e.pageY-this.offset.top+"px",left:e.pageX-this.offset.left+"px"})}},{key:"resizeItem",value:function(e){var n=this;Co(this.renderer,this.tileLayoutSettings.tileLayoutElement,{cursor:this.direction.split("k-cursor-")[1]});var a=this.rtl?this.offset.width+(this.offset.x-e.clientX):this.offset.width+(e.clientX-this.startingPoint.left),o=this.offset.height+(e.clientY-this.startingPoint.top),s=this.tileLayoutSettings.hintElement.getBoundingClientRect(),l=s.width,u=s.height,c=e.clientX-this.lastDragCursorOffset.x,d=e.clientY-this.lastDragCursorOffset.y,h=this.draggedItem.col?this.draggedItem.col:pf({x:this.rtl?s.right:s.x,y:s.y},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl).col,f=(this.tileLayoutSettings.columns-h)*(this.cellSize.width+this.tileLayoutSettings.gap.columns)+this.cellSize.width,g=function(){if(Co(n.renderer,n.draggedItemWrapper,{width:Math.min(Math.max(a,n.cellSize.width),f)+"px"}),n.rtl&&a>n.cellSize.width){var w=n.tileLayoutSettings.columns*(n.cellSize.width+n.tileLayoutSettings.gap.columns),E=n.tileLayoutSettings.tileLayoutElement.getBoundingClientRect().right-w;Co(n.renderer,n.draggedItemWrapper,{left:Math.max(e.clientX,E)+"px"})}var M=a-l,R=n.draggedItem.elem.nativeElement.getBoundingClientRect(),ee=pf({x:n.rtl?R.right:R.x,y:R.y},n.tileLayoutSettings.tileLayoutElement,n.tileLayoutSettings.gap,n.cellSize,n.tileLayoutSettings.columns,n.rtl),K=n.rtl?c>0:c<0;M>.3*n.cellSize.width&&(n.rtl?c<0:c>0)&&ee.col+n.currentResizingColSpan<=n.tileLayoutSettings.columns?n.currentResizingColSpan++:n.currentResizingColSpan>1&&K&&M<-.7*n.cellSize.width&&n.currentResizingColSpan--,Co(n.renderer,n.tileLayoutSettings.hintElement,{gridColumnEnd:"span ".concat(n.currentResizingColSpan)})};this.direction.indexOf("ew")>-1?g():(this.direction.indexOf("ns")>-1||g(),function(){Co(n.renderer,n.draggedItemWrapper,{height:Math.max(o,n.cellSize.height)+"px"});var w=o-u;w>.3*n.cellSize.height&&d>0?n.currentResizingRowSpan++:n.currentResizingRowSpan>1&&d<0&&w<-.7*n.cellSize.height&&n.currentResizingRowSpan--,Co(n.renderer,n.tileLayoutSettings.hintElement,{gridRowEnd:"span ".concat(n.currentResizingRowSpan)}),Co(n.renderer,n.tileLayoutSettings.hintElement,{height:"".concat(n.calculateHintHeight(),"px")})}())}},{key:"cleanUp",value:function(){if(this.targetOrder=this.currentResizingColSpan=this.currentColStart=this.currentResizingRowSpan=this.currentRowStart=void 0,this.resizing=this.reordering=!1,this.direction=null,this.draggedItemWrapper){var e=this.draggedItemWrapper.querySelector(".k-cursor-grab");e&&this.renderer.removeClass(e,"k-cursor-grabbing"),Co(this.renderer,this.draggedItemWrapper,{top:"",left:"",display:"",width:"",height:"",zIndex:"",position:""}),Co(this.renderer,this.tileLayoutSettings.hintElement,{display:"none",height:"auto"}),Co(this.renderer,this.tileLayoutSettings.tileLayoutElement,{cursor:"default"}),this.draggedItemWrapper=this.offset=this.draggedItem=this.resizing=this.reordering=this.currentResizingColSpan=this.currentResizingRowSpan=this.startingPoint=void 0,this.lastDragCursorOffset={x:0,y:0}}}},{key:"targetSpan",value:function(){var e=this.draggedItem.elem.nativeElement.getBoundingClientRect(),n=pf({x:this.rtl?e.right:e.x,y:e.y},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),a=pf({x:this.rtl?e.x+.3*this.cellSize.width:e.right-.3*this.cellSize.width,y:e.bottom-.3*this.cellSize.height},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl);return{targetColSpan:a.col-n.col+1,targetRowSpan:a.row-n.row+1}}},{key:"getTargetCol",value:function(e,n){return this.rtl?"left"===n?e-this.draggedItem.colSpan+1:e:"right"===n?e-this.draggedItem.colSpan+1:e}},{key:"getTargetRow",value:function(e,n){return"down"===n?e-this.draggedItem.rowSpan+1:e}},{key:"calculateHintHeight",value:function(){return this.currentResizingRowSpan*this.cellSize.height+(this.currentResizingRowSpan-1)*this.tileLayoutSettings.gap.rows-2}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Ee),oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),tN=function(){var i=function(){function r(t,e){p(this,r),this.hostEl=t,this.renderer=e,this.hostClass=!0}return v(r,[{key:"reorderable",set:function(e){var n=this.hostEl.nativeElement;e?(this.renderer.addClass(n,"k-touch-action-none"),this.renderer.removeClass(n,"k-touch-action-auto")):(this.renderer.addClass(n,"k-touch-action-auto"),this.renderer.removeClass(n,"k-touch-action-none"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item-header"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-tilelayout-item-header",e.hostClass)("k-card-header",e.hostClass)},inputs:{reorderable:"reorderable"},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),u9=function(){var i=function(){function r(t,e){p(this,r),this.el=t,this.renderer=e}return v(r,[{key:"ngOnInit",value:function(){this.sizeHandle()}},{key:"setHorizontalPosition",value:function(e){this.renderer.setStyle(e,this.rtl?"left":"right",-cg[this.resizeDirection].overlapX+"px")}},{key:"setBottom",value:function(e){this.renderer.setStyle(e,"bottom",-cg[this.resizeDirection].overlapY+"px")}},{key:"sizeHandle",value:function(){var e=this.el.nativeElement,n=cg[this.resizeDirection].width?"".concat(cg[this.resizeDirection].width,"px"):"100%",a=cg[this.resizeDirection].height?"".concat(cg[this.resizeDirection].height,"px"):"100%";this.renderer.setStyle(e,"width",n),this.renderer.setStyle(e,"height",a),"ew"===this.resizeDirection?this.setHorizontalPosition(e):("ns"===this.resizeDirection||this.setHorizontalPosition(e),this.setBottom(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoTileLayoutResizeHandle",""]],inputs:{resizeDirection:"resizeDirection",rtl:"rtl"}}),i}(),c9=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.elem=t,this.renderer=e,this.localization=n,this.draggingService=a,this.rowSpan=1,this.colSpan=1,this.reorderable=!0,this.resizable=!0,this.itemClass=!0,this.subs=new Je,this.subs.add(this.localization.changes.subscribe(function(s){o.rtl=s.rtl})),this.subs.add(this.draggingService.resizable.subscribe(function(s){o.resizeDirections=s&&o.resizable?o.rtl?o9:a9:void 0}))}return v(r,[{key:"order",get:function(){return this._order},set:function(e){this._order=e,this.renderer.setStyle(this.elem.nativeElement,"order","".concat(this._order))}},{key:"colEnd",get:function(){return"span ".concat(this.colSpan)}},{key:"rowEnd",get:function(){return"span ".concat(this.rowSpan)}},{key:"colStart",get:function(){return Mi(this.col)?this.col.toString():void 0}},{key:"rowStart",get:function(){return Mi(this.row)?this.row.toString():void 0}},{key:"reorderableHeader",get:function(){return this.reorderable&&this.draggingService.reorderable.getValue()}},{key:"ngAfterViewInit",value:function(){var e=this;this.subs.add(this.draggingService.reorderable.subscribe(function(n){var a;e.toggleCursorClass(n&&e.reorderable),(null===(a=e.headers)||void 0===a?void 0:a.first)&&(e.headers.first.reorderable=n&&e.reorderable)}))}},{key:"ngOnChanges",value:function(e){e.reorderable&&!e.reorderable.firstChange&&this.toggleCursorClass(e.reorderable.currentValue&&this.draggingService.reorderable.getValue()),e.resizable&&(this.resizeDirections=this.resizable&&this.draggingService.resizable.getValue()?this.rtl?o9:a9:void 0)}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"toggleCursorClass",value:function(e){var n=this.elem.nativeElement.querySelector(".k-tilelayout-item-header");!n||(e?this.renderer.addClass(n,"k-cursor-grab"):this.renderer.removeClass(n,"k-cursor-grab"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Y),m(eN))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,tN,4),2&t&&P(a=B())&&(e.headers=a)},hostVars:12,hostBindings:function(t,e){2&t&&(Qe("grid-column-end",e.colEnd)("grid-row-end",e.rowEnd)("grid-column-start",e.colStart)("grid-row-start",e.rowStart),ue("k-tilelayout-item",e.itemClass)("k-card",e.itemClass))},inputs:{title:"title",rowSpan:"rowSpan",colSpan:"colSpan",order:"order",col:"col",row:"row",reorderable:"reorderable",resizable:"resizable"},features:[Ie],ngContentSelectors:_a,decls:3,vars:2,consts:[[3,"reorderable",4,"ngIf"],[4,"ngIf"],[3,"reorderable"],[1,"k-card-title"],["kendoTileLayoutResizeHandle","",3,"class","rtl","resizeDirection",4,"ngFor","ngForOf"],["kendoTileLayoutResizeHandle","",3,"rtl","resizeDirection"]],template:function(t,e){1&t&&(kn(),T(0,tNe,3,2,"kendo-tilelayout-item-header",0),dn(1),T(2,iNe,2,1,"ng-container",1)),2&t&&(y("ngIf",e.title),k(2),y("ngIf",e.resizable))},directives:[tN,qe,gn,u9],encapsulation:2}),i}(),nN={column:"k-grid-flow-col",row:"k-grid-flow-row","column-dense":"k-grid-flow-col-dense","row-dense":"k-grid-flow-row-dense"},TFe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.elem=t,this.renderer=e,this.localization=n,this.draggingService=a,this.zone=o,this.columns=1,this.columnWidth="1fr",this.reorderable=!1,this.resizable=!1,this.rowHeight="1fr",this.autoFlow="column",this.reorder=new O,this.resize=new O,this.hostClass=!0,this.subs=new Je,this._gap={rows:16,columns:16},jt(fl)}return v(r,[{key:"gap",get:function(){return this._gap},set:function(e){this._gap="number"==typeof e?{rows:e,columns:e}:Object.assign(this._gap,e)}},{key:"gapStyle",get:function(){return"".concat(this.gap.rows,"px ").concat(this.gap.columns,"px")}},{key:"currentColStart",get:function(){return this.draggingService.colStart}},{key:"currentRowStart",get:function(){return this.draggingService.rowStart}},{key:"draggedItemWrapper",get:function(){return this.draggingService.itemWrapper}},{key:"targetOrder",get:function(){return this.draggingService.order}},{key:"ngOnInit",value:function(){var e=this;this.applyColStyling(),this.applyRowStyling(),this.draggingService.reorderable.next(this.reorderable),this.draggingService.resizable.next(this.resizable),ut(this.reorder)&&this.subs.add(this.draggingService.reorder.subscribe(function(n){return e.reorder.emit(n)})),ut(this.resize)&&this.subs.add(this.draggingService.resize.subscribe(function(n){return e.resize.emit(n)})),this.subs.add(this.draggingService.reorderable.subscribe(function(n){n&&!e.draggable&&e.initializeDraggable()})),this.subs.add(this.draggingService.resizable.subscribe(function(n){n&&!e.draggable&&e.initializeDraggable()})),this.subs.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngAfterViewInit",value:function(){var e=this;this.draggingService.tileLayoutSettings=this.draggingServiceConfig(),this.applyAutoFlow(null,nN[this.autoFlow]),this.items.changes.subscribe(function(){e.setItemsOrder(),e.draggingService.tileLayoutSettings.items=e.items.toArray()})}},{key:"ngAfterContentInit",value:function(){this.setItemsOrder()}},{key:"ngOnChanges",value:function(e){(e.columns||e.columnWidth)&&this.applyColStyling(),e.rowHeight&&this.applyRowStyling(),e.reorderable&&this.draggingService.reorderable.next(e.reorderable.currentValue),e.resizable&&this.draggingService.resizable.next(e.resizable.currentValue),(e.gap||e.autoFlow||e.columns)&&(this.draggingService.tileLayoutSettings=this.draggingServiceConfig(),e.autoFlow&&this.applyAutoFlow(nN[e.autoFlow.previousValue]||"",nN[e.autoFlow.currentValue]))}},{key:"ngOnDestroy",value:function(){this.draggable&&this.draggable.destroy(),this.subs.unsubscribe()}},{key:"handlePress",value:function(e){this.draggingService.handlePress(e.originalEvent)}},{key:"handleDrag",value:function(e){this.draggingService.handleDrag(e.originalEvent)}},{key:"handleRelease",value:function(e){this.draggingService.handleRelease(e.originalEvent)}},{key:"applyColStyling",value:function(){var e="number"==typeof this.columnWidth?"".concat(this.columnWidth,"px"):this.columnWidth,n="repeat(".concat(this.columns,", ").concat(e,")");this.renderer.setStyle(this.elem.nativeElement,"grid-template-columns",n)}},{key:"applyRowStyling",value:function(){var e="number"==typeof this.rowHeight?"".concat(this.rowHeight,"px"):this.rowHeight,n="".concat(e);this.renderer.setStyle(this.elem.nativeElement,"grid-auto-rows",n)}},{key:"draggingServiceConfig",value:function(){return{tileLayoutElement:this.elem?this.elem.nativeElement:void 0,hintElement:this.hint?this.hint.nativeElement:void 0,gap:this.gap,columns:this.columns,autoFlow:this.autoFlow,items:this.items?this.items.toArray():[]}}},{key:"initializeDraggable",value:function(){var e=this;this.draggable=new fI({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular(function(){return e.draggable.bindTo(e.elem.nativeElement)})}},{key:"applyAutoFlow",value:function(e,n){var a=this.elem.nativeElement;e&&this.renderer.removeClass(a,e),"none"!==this.autoFlow&&Mi(n)&&this.renderer.addClass(a,n)}},{key:"setItemsOrder",value:function(){this.items.forEach(function(e,n){Mi(e.order)||(e.order=n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Y),m(eN),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout"]],contentQueries:function(t,e,n){var a;1&t&&he(n,c9,4),2&t&&P(a=B())&&(e.items=a)},viewQuery:function(t,e){var n;1&t&&ge(rNe,5),2&t&&P(n=B())&&(e.hint=n.first)},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("gap",e.gapStyle)("padding",e.gapStyle),ue("k-widget",e.hostClass)("k-tilelayout",e.hostClass))},inputs:{columns:"columns",columnWidth:"columnWidth",gap:"gap",reorderable:"reorderable",resizable:"resizable",rowHeight:"rowHeight",autoFlow:"autoFlow"},outputs:{reorder:"reorder",resize:"resize"},features:[de([Y,eN,{provide:Et,useValue:"kendo.tilelayout.component"}]),Ie],ngContentSelectors:_a,decls:3,vars:14,consts:[[1,"k-layout-item-hint","k-layout-item-hint-reorder"],["hint",""]],template:function(t,e){1&t&&(kn(),dn(0),z(1,"div",0,1)),2&t&&(k(1),Qe("display","none")("order",e.targetOrder)("grid-column-end",null==e.draggedItemWrapper?null:e.draggedItemWrapper.style.gridColumnEnd)("grid-row-end",null==e.draggedItemWrapper?null:e.draggedItemWrapper.style.gridRowEnd)("grid-column-start",e.currentColStart)("grid-row-start",e.currentRowStart)("z-index","1"))},encapsulation:2}),i}(),AFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0,this.minHeight=0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item-body"]],hostVars:6,hostBindings:function(t,e){2&t&&(Qe("min-height",e.minHeight),ue("k-tilelayout-item-body",e.hostClass)("k-card-body",e.hostClass))},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),MFe=([].concat([sFe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),IFe=(Ae([lFe,uFe,cFe,dFe,hFe].concat([vFe,pFe,fFe,gFe])),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),FFe=[H7,eFe,tFe].concat([N7,L7,P7,F7]),LFe=([V7,U7].concat(Ae(FFe)),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),BFe=([].concat([CFe,t9]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}()),VFe=([].concat([kNe,qy,h7,C7,f7]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),zFe=([jI].concat([DNe,zI]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Ly]]}),i}()),KFe=[aFe,oFe].concat([K7,j7,W7]),jFe=([q7,X7,Z7].concat(Ae(KFe)),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,YRe]]}),i}()),$Fe=([].concat([I7,$I,WI,S7,R7,BNe,O7],[M7]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,yo]]}),i}()),XFe=([].concat([TFe,c9,tN,AFe,u9]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),iN={top:"start",middle:"center",bottom:"end",stretch:"stretch"},d9="k-justify-content",rN="k-align-items",t2e=function(){var i=function(){function r(t,e,n){p(this,r),this.renderer=t,this.element=e,this.localization=n,this.hostClass=!0,this.gap=0,this.orientation="horizontal",this._align={horizontal:"stretch",vertical:"stretch"},jt(fl)}return v(r,[{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}},{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"dir",get:function(){return this.direction}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign({},this._align,e),this.handleAlignClasses()}},{key:"ngAfterViewInit",value:function(){this.handleAlignClasses(),this.setGap()}},{key:"ngOnChanges",value:function(e){yn("gap",e)&&this.setGap(),yn("orientation",e)&&this.handleAlignClasses()}},{key:"handleAlignClasses",value:function(){var e=this.element.nativeElement;Mi(this.justifyClass)&&this.renderer.removeClass(e,this.justifyClass),Mi(this.alignClass)&&this.renderer.removeClass(e,this.alignClass),"horizontal"===this.orientation?(this.justifyClass="".concat(d9,"-").concat(this.align.horizontal),this.alignClass="".concat(rN,"-").concat(iN[this.align.vertical])):(this.justifyClass="".concat(d9,"-").concat(iN[this.align.vertical]),this.alignClass="".concat(rN,"-").concat(this.align.horizontal)),this.renderer.addClass(e,this.justifyClass),this.renderer.addClass(e,this.alignClass)}},{key:"setGap",value:function(){var e=function(r){return"number"==typeof r&&isFinite(r)}(this.gap)?"".concat(this.gap,"px"):this.gap;this.renderer.setStyle(this.element.nativeElement,"gap",e)}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-stacklayout"]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-stack-layout",e.hostClass)("k-hstack",e.horizontalClass)("k-vstack",e.verticalClass))},inputs:{align:"align",gap:"gap",orientation:"orientation"},exportAs:["kendoStackLayout"],features:[de([Y,{provide:Et,useValue:"kendo.stacklayout"}]),Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),i2e=([].concat([t2e]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),r2e=function(){var i=function(){function r(t,e,n){p(this,r),this.renderer=t,this.element=e,this.localization=n,this.hostClass=!0,this.gap=0,this._align={horizontal:"stretch",vertical:"stretch"},jt(fl)}return v(r,[{key:"dir",get:function(){return this.direction}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign({},this._align,e),this.handleAlignClasses()}},{key:"ngAfterViewInit",value:function(){this.handleAlignClasses(),this.handleGridTemplateStyling("rows"),this.handleGridTemplateStyling("cols"),this.setGap()}},{key:"ngOnChanges",value:function(e){yn("gap",e)&&this.setGap(),yn("rows",e)&&this.handleGridTemplateStyling("rows"),yn("cols",e)&&this.handleGridTemplateStyling("cols")}},{key:"handleAlignClasses",value:function(){var e=this.element.nativeElement;Mi(this.justifyClass)&&this.renderer.removeClass(e,this.justifyClass),Mi(this.alignClass)&&this.renderer.removeClass(e,this.alignClass),this.justifyClass="".concat("k-justify-items","-").concat(this.align.horizontal),this.alignClass="".concat(rN,"-").concat(iN[this.align.vertical]),this.renderer.addClass(e,this.justifyClass),this.renderer.addClass(e,this.alignClass)}},{key:"setGap",value:function(){var e=function(r){if("number"==typeof r||"string"==typeof r)return{cols:r,rows:r};var t={};return t.rows=r.rows?r.rows:0,t.cols=r.cols?r.cols:0,t}(this.gap),n=function(r){if(r.rows===r.cols)return"number"==typeof r.rows?"".concat(r.rows,"px"):r.rows;var t="".concat("number"==typeof r.rows?r.rows+"px":r.rows),e="".concat("number"==typeof r.cols?r.cols+"px":r.cols);return"".concat(t," ").concat(e)}(e);this.renderer.setStyle(this.element.nativeElement,"gap",n)}},{key:"handleGridTemplateStyling",value:function(e){if(Mi(this[e])){var n=function(r){var e,t=In(r);try{for(t.s();!(e=t.n()).done;){var n=e.value;if("number"!=typeof n&&"string"!=typeof n&&("object"!=typeof n||null===n))return!1}}catch(l){t.e(l)}finally{t.f()}return!0}(this[e]);if(!n&&xt()){var a="rows"===e?"GridLayoutRowSize":"GridLayoutColSize";throw new Error("The provided ".concat(e," value contains invalid elements. The array supports values of type number, string or ").concat(a,"."))}var o="rows"===e?"grid-template-rows":"grid-template-columns",s=function(r,t){var e=[];return r.forEach(function(n){if("number"==typeof n)e.push("".concat(n,"px"));else if("string"==typeof n)e.push(n);else if("rows"===t){var a=n.height;e.push(a?"number"==typeof a?"".concat(a,"px"):a:"0px")}else{var o=n.width;e.push(o?"number"==typeof o?"".concat(o,"px"):o:"0px")}}),e}(this[e],e);this.renderer.setStyle(this.element.nativeElement,o,s.join(" "))}}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-gridlayout"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-grid-layout",e.hostClass))},inputs:{rows:"rows",cols:"cols",gap:"gap",align:"align"},exportAs:["kendoGridLayout"],features:[de([Y,{provide:Et,useValue:"kendo.gridlayout"}]),Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),a2e=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.element=e}return v(r,[{key:"ngOnInit",value:function(){this.setItemStyle()}},{key:"ngOnChanges",value:function(){this.setItemStyle()}},{key:"setItemStyle",value:function(){var e=this.row||"auto",n=this.col||"auto",a=this.rowSpan?"span ".concat(this.rowSpan):"auto",o=this.colSpan?"span ".concat(this.colSpan):"auto",s="".concat(e," / ").concat(n," / ").concat(a," / ").concat(o);this.renderer.setStyle(this.element.nativeElement,"grid-area",s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-gridlayout-item"]],inputs:{row:"row",col:"col",rowSpan:"rowSpan",colSpan:"colSpan"},features:[Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),s2e=([].concat([r2e,a2e]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),l2e=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[MFe,IFe,LFe,VFe,BFe,zFe,jFe,$Fe,XFe,i2e,s2e]}),i}(),aN=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-loading-spinner"]],decls:1,vars:0,consts:[[1,"k-i-loading"]],template:function(t,e){1&t&&z(0,"div",0)},styles:[".k-i-loading[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;font-size:100px;color:#252830}"]}),i}(),Ad="arc",Xi="#000",Zn="bottom",Qt="center",pl="circle",xd="date",f9="12px sans-serif",g9=/\{\d+:?/,ND="height",sN="inside",Sn="left",Zi=Number.MAX_VALUE,br=-Number.MAX_VALUE,lN="none",uN="object",FD="outside",Gn="right",_9="roundedRect",cN="string",Fn="top",qo="value",Ln="#fff",LD="width",yt="x",Ct="y";function Jr(i){return Array.isArray(i)}function Za(i,r){for(var t=Jr(r)?r:[r],e=0;e1&&void 0!==arguments[1]?arguments[1]:0,t={top:0,right:0,bottom:0,left:0};return"number"==typeof i?t.top=t[Gn]=t[Zn]=t[Sn]=i:(t.top=i.top||r,t[Gn]=i[Gn]||r,t[Zn]=i[Zn]||r,t[Sn]=i[Sn]||r),t}var w9={compile:function(r){return r}},C2e=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){w9=t}},{key:"compile",value:function(t){return w9.compile(t)}}]),i}(),D9=C2e;function ea(){var r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.template?i.template=r=D9.compile(i.template):Ri(i.content)&&(r=i.content),r}var b2e=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,Zy={};function yc(i){if(Zy[i])return Zy[i];var r=[];return i.replace(b2e,function(t,e,n,a){r.push(Vt(e)?e:n||a)}),Zy[i]=function(t){for(var e=t,n=0;n1?e-1:0),a=1;a0?Math.ceil(r):Math.floor(r)}var mt=v(function i(){p(this,i)});function x9(i){var r=window.console;void 0!==r&&r.log&&r.log(i)}function Qy(i,r){return i.push.apply(i,r),i}var A2e={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"};function BD(i){for(var r=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],t="";i>0;)i>>6),r+=Ls(128|63&e)):e<65536?(r+=Ls(224|e>>>12),r+=Ls(128|e>>>6&63),r+=Ls(128|63&e)):e<1114111&&(r+=Ls(240|e>>>18),r+=Ls(128|e>>>12&63),r+=Ls(128|e>>>6&63),r+=Ls(128|63&e))}return r}(i);t>2,l=(3&n)<<4|a>>4,u=(15&a)<<2|o>>6,c=63&o;isNaN(a)?u=c=64:isNaN(o)&&(c=64),r=r+VD.charAt(s)+VD.charAt(l)+VD.charAt(u)+VD.charAt(c)}return r}function M9(i){return Vt((i.x||{}).location)?{x:i.x.location,y:i.y.location}:{x:i.pageX||i.clientX||0,y:i.pageY||i.clientY||0}}function R9(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.touch?i.touch.initialTouch:i.target}function mf(i){return""===i||null===i||"none"===i||"transparent"===i||!Vt(i)}function Zo(i){if(i)return i[i.length-1]}function zD(i,r,t){return Math.max(Math.min(i,t),r)}function HD(i,r){return i.length<2?i.slice():function e(n){if(n.length<=1)return n;var a=Math.floor(n.length/2),o=n.slice(0,a),s=n.slice(a);return function t(e,n){for(var a=[],o=0,s=0,l=0;o1&&void 0!==arguments[1]?arguments[1]:{};for(var t in r)for(var e=t.trim().split(" "),n=0;n0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return p(this,t),(e=r.call(this)).a=n,e.b=a,e.c=o,e.d=s,e.e=l,e.f=u,e}return v(t,[{key:"multiplyCopy",value:function(n){return new t(this.a*n.a+this.c*n.b,this.b*n.a+this.d*n.b,this.a*n.c+this.c*n.d,this.b*n.c+this.d*n.d,this.a*n.e+this.c*n.f+this.e,this.b*n.e+this.d*n.f+this.f)}},{key:"invert",value:function(){var n=this.a,a=this.b,o=this.c,s=this.d,l=this.e,u=this.f,c=n*s-a*o;return 0===c?null:new t(s/c,-a/c,-o/c,n/c,(o*u-s*l)/c,(a*l-n*u)/c)}},{key:"clone",value:function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)}},{key:"equals",value:function(n){return!!n&&this.a===n.a&&this.b===n.b&&this.c===n.c&&this.d===n.d&&this.e===n.e&&this.f===n.f}},{key:"round",value:function(n){return this.a=Ci(this.a,n),this.b=Ci(this.b,n),this.c=Ci(this.c,n),this.d=Ci(this.d,n),this.e=Ci(this.e,n),this.f=Ci(this.f,n),this}},{key:"toArray",value:function(n){var a=[this.a,this.b,this.c,this.d,this.e,this.f];if(Vt(n))for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:",";return this.toArray(n).join(a)}}],[{key:"translate",value:function(n,a){return new t(1,0,0,1,n,a)}},{key:"unit",value:function(){return new t(1,0,0,1,0,0)}},{key:"rotate",value:function(n,a,o){var s=new t;return s.a=Math.cos(lu(n)),s.b=Math.sin(lu(n)),s.c=-s.b,s.d=s.a,s.e=a-a*s.a+o*s.b||0,s.f=o-o*s.a-a*s.b||0,s}},{key:"scale",value:function(n,a){return new t(n,0,0,a,0,0)}}]),t}(mt);_N.IDENTITY=_N.unit();var ta=_N,N2e=/matrix\((.*)\)/;function L9(i){var r=getComputedStyle(i).transform;return"none"===r?ta.unit():function F2e(i){var r=i.match(N2e);if(null===r||2!==r.length)return ta.unit();var t=r[1].split(",").map(function(e){return parseFloat(e)});return qr(ta,Ae(t))}(r)}function P9(i){if(!i)return ta.unit();for(var r=L9(i),t=i.parentElement;t;){var e=L9(t);r=r.multiplyCopy(e),t=t.parentElement}return r.b=r.c=r.e=r.f=0,r}var L2e=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._size=e,n._length=0,n._map={},n}return v(t,[{key:"put",value:function(n,a){var o=this._map,s={key:n,value:a};o[n]=s,this._head?(this._tail.newer=s,s.older=this._tail,this._tail=s):this._head=this._tail=s,this._length>=this._size?(o[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++}},{key:"get",value:function(n){var a=this._map[n];if(a)return a===this._head&&a!==this._tail&&(this._head=a.newer,this._head.older=null),a!==this._tail&&(a.older&&(a.older.newer=a.newer,a.newer.older=a.older),a.older=this._tail,a.newer=null,this._tail.newer=a,this._tail=a),a.value}}]),t}(mt),B9=L2e,P2e=/\r?\n|\r|\t/g;function yN(i){return String(i).replace(P2e," ")}function G9(i){var r=[];for(var t in i)r.push(t+i[t]);return r.sort().join("")}function V9(i){for(var r=2166136261,t=0;t>>0}var kN,G2e={baselineMarkerSize:1};"undefined"!=typeof document&&((kN=document.createElement("div")).style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");var CN=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._cache=new B9(1e3),n.options=Object.assign({},G2e,e),n}return v(t,[{key:"measure",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==n)return{width:0,height:0,baseline:0};var s=G9(a),l=V9(n+s),u=this._cache.get(l);if(u)return u;var c={width:0,height:0,baseline:0},d=o.box||kN,h=this._baselineMarker().cloneNode(!1);for(var f in a){var g=a[f];void 0!==g&&(d.style[f]=g)}var _=!1!==o.normalizeText?yN(n):String(n);return d.textContent=_,d.appendChild(h),document.body.appendChild(d),_.length&&(c.width=d.offsetWidth-this.options.baselineMarkerSize,c.height=d.offsetHeight,c.baseline=h.offsetTop+this.options.baselineMarkerSize),c.width>0&&c.height>0&&this._cache.put(l,c),d.parentNode.removeChild(d),c}},{key:"_baselineMarker",value:function(){var n=document.createElement("div");return n.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",n}}]),t}(mt);CN.current=new CN;var z9=CN;function tk(i,r,t){return z9.current.measure(i,r,t)}var _f=Yu.append,nk=Yu.bindEvents,Te=Yu.defined,Rd=Yu.deg,ik=Yu.elementOffset,kc=Yu.elementSize,V2e=Yu.eventCoordinates,_l=Yu.eventElement,U2e=Yu.hashKey,Yi=Yu.last,Mt=Yu.limitValue,z2e=Yu.objectKey,Sr=Yu.rad,tt=Yu.round,rk=Yu.unbindEvents,qt=Yu.valueOrDefault,H2e=function(){function i(){p(this,i)}return v(i,null,[{key:"fetchFonts",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{depth:0},a=5;!t||n.depth>a||!document.fonts||Object.keys(t).forEach(function(o){var s=t[o];"dataSource"===o||"$"===o[0]||!s||("font"===o?e.push(s):"object"==typeof s&&(n.depth++,i.fetchFonts(s,e,n),n.depth--))})}},{key:"loadFonts",value:function(t,e){var n=[];if(t.length>0&&document.fonts){try{n=t.map(function(a){return document.fonts.load(a)})}catch(a){x9(a)}Promise.all(n).then(e,e)}else e()}},{key:"preloadFonts",value:function(t,e){var n=[];i.fetchFonts(t,n),i.loadFonts(n,e)}}]),i}(),K2e=H2e;function ze(i,r){var t=i.prototype;t.options=t.options?ne({},t.options,r):r}function bN(i){for(var r=Zi,t=br,e=0,n=i.length;e.5?h/(2-s-l):h/(s+l),s){case n:u=(a-o)/h+(a2&&void 0!==arguments[2]?arguments[2]:"0",e=i.toString(16);r>e.length;)e=t+e;return e}var SN=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this)).h=e,s.s=n,s.v=a,s.a=o,s}return v(t,[{key:"toRGB",value:function(){var s,l,u,n=this.h,a=this.s,o=this.v;if(0===a)s=l=u=o;else{n/=60;var c=Math.floor(n),d=n-c,h=o*(1-a),f=o*(1-a*d),g=o*(1-a*(1-d));switch(c){case 0:s=o,l=g,u=h;break;case 1:s=f,l=o,u=h;break;case 2:s=h,l=o,u=g;break;case 3:s=h,l=f,u=o;break;case 4:s=g,l=h,u=o;break;default:s=o,l=h,u=f}}return new Od(s,l,u,this.a)}},{key:"toHSL",value:function(){return this.toRGB().toHSL()}},{key:"toBytes",value:function(){return this.toRGB().toBytes()}}]),t}(WD),$9=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this)).h=e,s.s=n,s.l=a,s.a=o,s}return v(t,[{key:"toRGB",value:function(){var s,l,u,n=this.h/360,a=this.s/100,o=this.l/100;if(0===a)s=l=u=o;else{var c=o<.5?o*(1+a):o+a-o*a,d=2*o-c;s=wN(d,c,n+1/3),l=wN(d,c,n),u=wN(d,c,n-1/3)}return new Od(s,l,u,this.a)}},{key:"toHSV",value:function(){return this.toRGB().toHSV()}},{key:"toBytes",value:function(){return this.toRGB().toBytes()}}]),t}(WD);function wN(i,r,t){var e=t;return e<0&&(e+=1),e>1&&(e-=1),e<1/6?i+6*(r-i)*e:e<.5?r:e<2/3?i+(r-i)*(2/3-e)*6:i}function q9(i){return parseFloat(parseFloat(parseInt(i,16)/255).toFixed(3))}function Ps(i,r){var t,e;if(null==i||"none"===i)return null;if(i instanceof WD)return i;var n=i.toLowerCase();if(t=W9(n))return(n="transparent"===t[1]?new Od(1,1,1,0):Ps(vg[t[1]],r)).match=[t[1]],n;if((t=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?e=new Cc(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1):(t=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?e=new Cc(parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),1):(t=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?e=new Cc(parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),q9(t[4]+t[4])):(t=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?e=new Cc(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),q9(t[4])):(t=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(n))?e=new Cc(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),1):(t=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(n))?e=new Cc(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])):(t=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(n))?e=new Od(parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])/100,1):(t=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(n))&&(e=new Od(parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])/100,parseFloat(t[4]))),e)e.match=t;else if(!r)throw new Error("Cannot parse color: "+n);return e}var Z2e=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;if(p(this,e),a=t.call(this),1===arguments.length)for(var o=e.formats,s=a.resolveColor(n),l=0;l255?255:a}},{key:"padDigit",value:function(a){return 1===a.length?"0"+a:a}},{key:"brightness",value:function(a){var o=Math.round;return this.r=o(this.normalizeByte(this.r*a)),this.g=o(this.normalizeByte(this.g*a)),this.b=o(this.normalizeByte(this.b*a)),this}},{key:"percBrightness",value:function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)}},{key:"isDark",value:function(){return this.percBrightness()<180}}],[{key:"fromBytes",value:function(a,o,s,l){return new Cc(a,o,s,null!=l?l:1)}},{key:"fromRGB",value:function(a,o,s,l){return new Od(a,o,s,null!=l?l:1)}},{key:"fromHSV",value:function(a,o,s,l){return new SN(a,o,s,null!=l?l:1)}},{key:"fromHSL",value:function(a,o,s,l){return new $9(a,o,s,null!=l?l:1)}}]),e}(mt);return i.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i.namedColors=vg,i}(),Bs=Z2e,DN=function Y2e(i){return new Bs(i).isDark()?Ln:Xi},X9={},Q2e=function(){function i(r){p(this,i),this._index={},this._values=r?r.slice(0):[];for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};n.element=this,this.trigger("optionsChange",n)}},{key:"geometryChange",value:function(){this.trigger("geometryChange",{element:this})}},{key:"suspend",value:function(){return this._suspended=(this._suspended||0)+1,this}},{key:"resume",value:function(){return this._suspended=Math.max((this._suspended||0)-1,0),this}},{key:"_observerField",value:function(n,a){this[n]&&this[n].removeObserver(this),this[n]=a,a.addObserver(this)}}]),t}(mt),Gs=iLe;function rLe(i){return function(r){return this[i]!==r&&(this[i]=r,this.geometryChange()),this}}function aLe(i){return function(){return this[i]}}var qD=function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function oLe(i,r){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:n;return this.x*=n,this.y*=a,this.geometryChange(),this}},{key:"scaleCopy",value:function(n,a){return this.clone().scale(n,a)}},{key:"transform",value:function(n){var a=yf(n),o=this.x,s=this.y;return this.x=a.a*o+a.c*s+a.e,this.y=a.b*o+a.d*s+a.f,this.geometryChange(),this}},{key:"transformCopy",value:function(n){var a=this.clone();return n&&a.transform(n),a}},{key:"distanceTo",value:function(n){var a=this.x-n.x,o=this.y-n.y;return Math.sqrt(a*a+o*o)}},{key:"round",value:function(n){return this.x=Ci(this.x,n),this.y=Ci(this.y,n),this.geometryChange(),this}},{key:"toArray",value:function(n){var a=Vt(n);return[a?Ci(this.x,n):this.x,a?Ci(this.y,n):this.y]}},{key:"toString",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",o=this.x,s=this.y;return Vt(n)&&(o=Ci(o,n),s=Ci(s,n)),o+a+s}}],[{key:"create",value:function(n,a){if(Vt(n))return n instanceof t?n:1===arguments.length&&2===n.length?new t(n[0],n[1]):new t(n,a)}},{key:"min",value:function(){for(var n=hg,a=hg,o=0;o0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new kf,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(this,t),(e=r.call(this)).setOrigin(n),e.setSize(a),e.setCornerRadius(o),e}return v(t,[{key:"clone",value:function(){return new t(this.origin.clone(),this.size.clone())}},{key:"equals",value:function(n){return n&&n.origin.equals(this.origin)&&n.size.equals(this.size)}},{key:"setOrigin",value:function(n){return this._observerField("origin",Pe.create(n)),this.geometryChange(),this}},{key:"getOrigin",value:function(){return this.origin}},{key:"setCornerRadius",value:function(n){return this.cornerRadius=Array.isArray(n)?n:[n,n],this.geometryChange(),this}},{key:"getCornerRadius",value:function(){return this.cornerRadius}},{key:"setSize",value:function(n){return this._observerField("size",kf.create(n)),this.geometryChange(),this}},{key:"getSize",value:function(){return this.size}},{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}},{key:"topLeft",value:function(){return this.origin.clone()}},{key:"bottomRight",value:function(){return this.origin.clone().translate(this.width(),this.height())}},{key:"topRight",value:function(){return this.origin.clone().translate(this.width(),0)}},{key:"bottomLeft",value:function(){return this.origin.clone().translate(0,this.height())}},{key:"center",value:function(){return this.origin.clone().translate(this.width()/2,this.height()/2)}},{key:"bbox",value:function(n){var a=this.topLeft().transformCopy(n),o=this.topRight().transformCopy(n),s=this.bottomRight().transformCopy(n),l=this.bottomLeft().transformCopy(n);return t.fromPoints(a,o,s,l)}},{key:"transformCopy",value:function(n){return t.fromPoints(this.topLeft().transform(n),this.bottomRight().transform(n))}},{key:"expand",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return this.size.width+=2*n,this.size.height+=2*a,this.origin.translate(-n,-a),this}},{key:"expandCopy",value:function(n,a){return this.clone().expand(n,a)}},{key:"containsPoint",value:function(n){var a=this.origin,o=this.bottomRight();return!(n.x=this.x1&&n.x<=this.x2&&n.y>=this.y1&&n.y<=this.y2}},{key:"points",value:function(){return[new Ut(this.x1,this.y1),new Ut(this.x2,this.y1),new Ut(this.x2,this.y2),new Ut(this.x1,this.y2)]}},{key:"getHash",value:function(){return[this.x1,this.y1,this.x2,this.y2].join(",")}},{key:"overlaps",value:function(n){return!(n.y2=o*o&&w<=s*s}},{key:"getBBox",value:function(){var d,n=new et(Zi,Zi,br,br),a=tt(this.startAngle%360),o=tt((a+this.angle)%360),s=this.innerRadius,l=[0,90,180,270,a,o].sort(fLe),u=l.indexOf(a),c=l.indexOf(o);d=a===o?l:u0&&void 0!==arguments[0]?arguments[0]:[];return p(this,t),(e=r.call(this)).length=0,e._splice(0,n.length,n),e}return v(t,[{key:"elements",value:function(n){return n?(this._splice(0,this.length,n),this._change(),this):this.slice(0)}},{key:"push",value:function(){var n=arguments,a=vLe.apply(this,n);return this._add(n),a}},{key:"slice",value:function(){return Q9.call(this)}},{key:"pop",value:function(){var n=this.length,a=pLe.apply(this);return n&&this._remove([a]),a}},{key:"splice",value:function(n,a){var o=Q9.call(arguments,2),s=this._splice(n,a,o);return this._change(),s}},{key:"shift",value:function(){var n=this.length,a=mLe.apply(this);return n&&this._remove([a]),a}},{key:"unshift",value:function(){var n=arguments,a=_Le.apply(this,n);return this._add(n),a}},{key:"indexOf",value:function(n){for(var a=this.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:"";for(var o in p(this,t),(n=r.call(this)).prefix=a,e){var s=e[o];s=n._wrap(s,o),n[o]=s}return n}return v(t,[{key:"get",value:function(n){for(var a=n.split("."),o=this;a.length&&o;)o=o[a.shift()];return o}},{key:"set",value:function(n,a){this.get(n)!==a&&(this._set(n,this._wrap(a,n)),this.optionsChange({field:this.prefix+n,value:a}))}},{key:"_set",value:function(n,a){var o=n.indexOf(".")>=0,s=this,l=n;if(o){for(var u=l.split("."),c=this.prefix;u.length>1;){c+=(l=u.shift())+".";var d=s[l];d||((d=new t({},c)).addObserver(this),s[l]=d),s=d}l=u[0]}s._clear(l),s[l]=a}},{key:"_clear",value:function(n){var a=this[n];a&&a.removeObserver&&a.removeObserver(this)}},{key:"_wrap",value:function(n,a){var o=CLe.call(n),s=n;return null!==s&&Vt(s)&&"[object Object]"===o&&(!(n instanceof t)&&!(n instanceof mt)&&(s=new t(s,this.prefix+a+".")),s.addObserver(this)),s}}]),t}(Gs),t$=bLe,SLe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ta.unit();return p(this,t),(e=r.call(this))._matrix=n,e}return v(t,[{key:"clone",value:function(){return new t(this._matrix.clone())}},{key:"equals",value:function(n){return n&&n._matrix.equals(this._matrix)}},{key:"translate",value:function(n,a){return this._matrix=this._matrix.multiplyCopy(ta.translate(n,a)),this._optionsChange(),this}},{key:"scale",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=o;return s&&(s=Pe.create(s),this._matrix=this._matrix.multiplyCopy(ta.translate(s.x,s.y))),this._matrix=this._matrix.multiplyCopy(ta.scale(n,a)),s&&(this._matrix=this._matrix.multiplyCopy(ta.translate(-s.x,-s.y))),this._optionsChange(),this}},{key:"rotate",value:function(n,a){var o=Pe.create(a)||Pe.ZERO;return this._matrix=this._matrix.multiplyCopy(ta.rotate(n,o.x,o.y)),this._optionsChange(),this}},{key:"multiply",value:function(n){var a=yf(n);return this._matrix=this._matrix.multiplyCopy(a),this._optionsChange(),this}},{key:"matrix",value:function(n){return n?(this._matrix=n,this._optionsChange(),this):this._matrix}},{key:"_optionsChange",value:function(){this.optionsChange({field:"transform",value:this})}}]),t}(Gs),n$=SLe;function Hn(i){return null===i?null:i instanceof n$?i:new n$(i)}var wLe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._initOptions(e),n}return v(t,[{key:"nodeType",get:function(){return"Rect"}},{key:"_initOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.clip,o=n.transform;o&&(n.transform=Hn(o)),a&&!a.id&&(a.id=GD()),this.options=new t$(n),this.options.addObserver(this)}},{key:"transform",value:function(n){if(!Vt(n))return this.options.get("transform");this.options.set("transform",Hn(n))}},{key:"parentTransform",value:function(){for(var a,n=this;n.parent;){var o=(n=n.parent).transform();o&&(a=o.matrix().multiplyCopy(a||ta.unit()))}if(a)return Hn(a)}},{key:"currentTransform",value:function(){var l,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parentTransform(),a=this.transform(),o=yf(a),s=yf(n);if(l=o&&s?s.multiplyCopy(o):o||s)return Hn(l)}},{key:"visible",value:function(n){return Vt(n)?(this.options.set("visible",n),this):!1!==this.options.get("visible")}},{key:"clip",value:function(n){var a=this.options;return Vt(n)?(n&&!n.id&&(n.id=GD()),a.set("clip",n),this):a.get("clip")}},{key:"opacity",value:function(n){return Vt(n)?(this.options.set("opacity",n),this):pN(this.options.get("opacity"),1)}},{key:"clippedBBox",value:function(n){var a=this._clippedBBox(n);if(a){var o=this.clip();return o?cn.intersect(a,o.bbox(n)):a}}},{key:"containsPoint",value:function(n,a){if(this.visible()){var o=this.currentTransform(a),s=n;return o&&(s=n.transformCopy(o.matrix().invert())),this._hasFill()&&this._containsPoint(s)||this._isOnPath&&this._hasStroke()&&this._isOnPath(s)}return!1}},{key:"_hasFill",value:function(){var n=this.options.fill;return n&&!mf(n.color)}},{key:"_hasStroke",value:function(){var n=this.options.stroke;return n&&n.width>0&&!mf(n.color)}},{key:"_clippedBBox",value:function(n){return this.bbox(n)}}]),t}(Gs),Id=wLe,sk=function(r){return function(t){b(n,t);var e=S(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"fill",value:function(o,s){var l=this.options;if(Vt(o)){if(o&&"Gradient"!==o.nodeType){var u={color:o};Vt(s)&&(u.opacity=s),l.set("fill",u)}else l.set("fill",o);return this}return l.get("fill")}},{key:"stroke",value:function(o,s,l){return Vt(o)?(this.options.set("stroke.color",o),Vt(s)&&this.options.set("stroke.width",s),Vt(l)&&this.options.set("stroke.opacity",l),this):this.options.get("stroke")}}]),n}(r)},TLe=ta.IDENTITY.toString(),ZD=function(r){return function(t){b(n,t);var e=S(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"bbox",value:function(o){var u,s=yf(this.currentTransform(o)),l=s?s.toString():TLe;this._bboxCache&&this._matrixHash===l?u=this._bboxCache.clone():(u=this._bbox(s),this._bboxCache=u?u.clone():null,this._matrixHash=l);var c=this.options.get("stroke.width");return c&&u&&u.expand(c/2),u}},{key:"geometryChange",value:function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}}]),n}(r)};function i$(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return 0===Ci(Math.abs(i-r),t)}function EN(i,r,t){return i0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this)).setCenter(n),e.radiusX=a.radiusX,e.radiusY=a.radiusY||a.radiusX,e.startAngle=a.startAngle,e.endAngle=a.endAngle,e.anticlockwise=a.anticlockwise||!1,e.xRotation=a.xRotation,e}return v(t,[{key:"clone",value:function(){return new t(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})}},{key:"setCenter",value:function(n){return this._observerField("center",Pe.create(n)),this.geometryChange(),this}},{key:"getCenter",value:function(){return this.center}},{key:"pointAt",value:function(n){var a=this.center,o=lu(n);return new Pe(a.x+this.radiusX*Math.cos(o),a.y+this.radiusY*Math.sin(o))}},{key:"curvePoints",value:function(){var h,n=this.startAngle,a=this.anticlockwise?-1:1,o=[this.pointAt(n)],s=this._arcInterval(),l=s.endAngle-s.startAngle,u=Math.ceil(l/45),c=l/u,d=n;this.xRotation&&(h=Hn().rotate(this.xRotation,this.center));for(var f=1;f<=u;f++){var g=d+a*c,_=this._intervalCurvePoints(d,g,h);o.push(_.cp1,_.cp2,_.p2),d=g}return o}},{key:"bbox",value:function(n){for(var a=this._arcInterval(),o=a.startAngle,s=a.endAngle,l=r$(0,this.radiusX,this.radiusY,n),u=Md(l.x),c=Md(l.y),d=this.pointAt(s).transformCopy(n),h=o$(u,o),f=o$(c,o),g=this.pointAt(o).transformCopy(n),_=Pe.min(g,d),C=Pe.max(g,d);ha||o&&n===a)&&(a+=360),{startAngle:n,endAngle:a}}},{key:"_intervalCurvePoints",value:function(n,a,o){var s=this.pointAt(n),l=this.pointAt(a),u=this._derivativeAt(n),c=this._derivativeAt(a),d=(lu(a)-lu(n))/3,h=new Pe(s.x+d*u.x,s.y+d*u.y),f=new Pe(l.x-d*c.x,l.y-d*c.y);return o&&(s.transform(o),l.transform(o),h.transform(o),f.transform(o)),{p1:s,cp1:h,cp2:f,p2:l}}},{key:"_derivativeAt",value:function(n){var a=lu(n);return new Pe(-this.radiusX*Math.sin(a),this.radiusY*Math.cos(a))}},{key:"containsPoint",value:function(n){var C,a=this._arcInterval(),o=a.endAngle-a.startAngle,s=this.center,l=this.radiusX,u=this.radiusY,c=s.distanceTo(n),d=Math.atan2(n.y-s.y,n.x-s.x),h=l*u/Math.sqrt(YD(l,2)*YD(Math.sin(d),2)+YD(u,2)*YD(Math.cos(d),2)),f=this.pointAt(this.startAngle).round(10),g=this.pointAt(this.endAngle).round(10),_=function xLe(i,r,t,e){var n=r.x-i.x,a=e.x-t.x,o=r.y-i.y,s=e.y-t.y,l=i.x-t.x,u=i.y-t.y,c=n*s-a*o,d=(n*u-o*l)/c,h=(a*u-s*l)/c;if(d>=0&&d<=1&&h>=0&&h<=1)return new Pe(i.x+h*n,i.y+h*o)}(s,n.round(10),f,g);if(o<180)C=_&&EN(s.distanceTo(_),c)&&EN(c,h);else{var w=a$(s.x,s.y,l,u,n.x,n.y);360!==w&&(w=(360+w)%360);var E=a.startAngle<=w&&w<=a.endAngle;C=E&&EN(c,h)||!E&&(!_||_.equals(n))}return C}},{key:"_isOnPath",value:function(n,a){var o=this._arcInterval(),s=this.center,l=a$(s.x,s.y,this.radiusX,this.radiusY,n.x,n.y);return 360!==l&&(l=(360+l)%360),o.startAngle<=l&&l<=o.endAngle&&this.pointAt(l).distanceTo(n)<=a}}],[{key:"fromPoints",value:function(n,a,o,s,l,u,c){var d=function ILe(i){var r=i.x1,t=i.y1,e=i.x2,n=i.y2,a=i.rx,o=i.ry,s=i.largeArc,l=i.swipe,u=i.rotation,c=void 0===u?0:u,d=lu(c),h=Math.cos(d),f=Math.sin(d),g=h*(r-e)/2+f*(t-n)/2,_=-f*(r-e)/2+h*(t-n)/2,C=s!==l?1:-1,w=Math.pow(g,2),E=Math.pow(_,2),M=Math.pow(a,2),R=Math.pow(o,2),N=w/M+E/R;N>1&&(a*=N=Math.sqrt(w/M+E/R),M=Math.pow(a,2),o*=N,R=Math.pow(o,2));var V=C*Math.sqrt((M*R-M*E-R*w)/(M*E+R*w));isNaN(V)&&(V=0);var U=V*(a*_)/o,ee=o*g*-V/a,ve=h*U-f*ee+(r+e)/2,G=f*U+h*ee+(t+n)/2,I=(g-U)/a,K=(_-ee)/o,H=-(g+U)/a,se=-(_+ee)/o,me=(K>=0?1:-1)*Md(Math.acos(I/Math.sqrt(I*I+K*K))),ae=Ci((I*H+K*se)/(Math.sqrt(I*I+K*K)*Math.sqrt(H*H+se*se)),10),Ne=(I*se-K*H>=0?1:-1)*Md(Math.acos(ae));!l&&Ne>0&&(Ne-=360),l&&Ne<0&&(Ne+=360);var Ce=me+Ne,ye=Ce>=0?1:-1;return Ce=Math.abs(Ce)%360*ye,{center:new Pe(ve,G),startAngle:me,endAngle:Ce,radiusX:a,radiusY:o,xRotation:c}}({x1:n.x,y1:n.y,x2:a.x,y2:a.y,rx:o,ry:s,largeArc:l,swipe:u,rotation:c});return new t(d.center,{startAngle:d.startAngle,endAngle:d.endAngle,radiusX:d.radiusX,radiusY:d.radiusY,xRotation:d.xRotation,anticlockwise:0===u})}}]),t}(qD(Gs,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]));function a$(i,r,t,e,n,a){var o=Ci((n-i)/t,3),s=Ci((a-r)/e,3);return Ci(Md(Math.atan2(s,o)))}function o$(i,r){for(var t=i;t0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(this,t),(e=r.call(this)).real=n,e.img=a,e}return v(t,[{key:"add",value:function(n){return new t(Ci(this.real+n.real,10),Ci(this.img+n.img,10))}},{key:"addConstant",value:function(n){return new t(this.real+n,this.img)}},{key:"negate",value:function(){return new t(-this.real,-this.img)}},{key:"multiply",value:function(n){return new t(this.real*n.real-this.img*n.img,this.real*n.img+this.img*n.real)}},{key:"multiplyConstant",value:function(n){return new t(this.real*n,this.img*n)}},{key:"nthRoot",value:function(n){var a=Math.atan2(this.img,this.real),o=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),s=Math.pow(o,1/n);return new t(s*Math.cos(a/n),s*Math.sin(a/n))}},{key:"equals",value:function(n){return this.real===n.real&&this.img===n.img}},{key:"isReal",value:function(){return 0===this.img}}]),t}(mt),lk=NLe;function u$(i){return i<0?-1:1}function c$(i,r,t,e){if(0===i)return function FLe(i,r,t){var e=Math.sqrt(Math.pow(r,2)-4*i*t);return[(-r+e)/(2*i),(-r-e)/(2*i)]}(r,t,e);var u,c,d,h,f,g,_,n=(3*i*t-Math.pow(r,2))/(3*Math.pow(i,2)),a=(2*Math.pow(r,3)-9*i*r*t+27*Math.pow(i,2)*e)/(27*Math.pow(i,3)),o=Math.pow(n/3,3)+Math.pow(a/2,2),s=new lk(0,1),l=-r/(3*i);o<0?(u=new lk(-a/2,Math.sqrt(-o)).nthRoot(3),c=new lk(-a/2,-Math.sqrt(-o)).nthRoot(3)):(u=-a/2+Math.sqrt(o),u=new lk(u$(u)*Math.pow(Math.abs(u),1/3)),c=-a/2-Math.sqrt(o),c=new lk(u$(c)*Math.pow(Math.abs(c),1/3))),d=u.add(c),g=u.add(c).multiplyConstant(-.5),_=u.add(c.negate()).multiplyConstant(Math.sqrt(3)/2),h=g.add(s.multiply(_)),f=g.add(s.negate().multiply(_));var C=[];return d.isReal()&&C.push(Ci(d.real+l,10)),h.isReal()&&C.push(Ci(h.real+l,10)),f.isReal()&&C.push(Ci(f.real+l,10)),C}function JD(i,r,t,e,n){for(var s,a=l$(i,e),o=c$(a[0],a[1],a[2],a[3]-r[e]),l=0;l0?t.x-n:a-t.x)/(a-n)+o-t.y>=0}return e?1:0}function PLe(i){var r="_"+i;return function(t){return Vt(t)?(this._observerField(r,Pe.create(t)),this.geometryChange(),this):this[r]}}var e0=function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function BLe(i,r){for(var t=0;t1)&&(g=0);var _=Math.min(Math.max(h,f),1);return(_>1||_<0)&&(_=1),{min:g,max:_}}},{key:"_intersectionsTo",value:function(n,a){var o;return o=this.controlOut()&&n.controlIn()?function LLe(i,r,t){for(var a,e=l$(i,"x"),n=c$(e[0],e[1],e[2],e[3]-r.x),s=0,l=0;lr.y)&&((0===n[l]||1===n[l])&&t.bottomRight().x>r.x||00){var s=Zo(this.segments),l=new yl(o,a);this.suspend(),s.controlOut(n),this.resume(),this.segments.push(l)}return this}},{key:"arc",value:function(n,a,o,s,l){if(this.segments.length>0){var c=Zo(this.segments).anchor(),d=lu(n),h=new Pe(c.x-o*Math.cos(d),c.y-s*Math.sin(d)),f=new Sc(h,{startAngle:n,endAngle:a,radiusX:o,radiusY:s,anticlockwise:l});this._addArcSegments(f)}return this}},{key:"arcTo",value:function(n,a,o,s,l,u){if(this.segments.length>0){var d=Zo(this.segments).anchor(),h=Sc.fromPoints(d,Pe.create(n),a,o,s,l,u);this._addArcSegments(h)}return this}},{key:"_addArcSegments",value:function(n){this.suspend();for(var a=n.curvePoints(),o=1;o1){if(o[0]._isOnPathTo(o[1],n,l,"start"))return!0;for(var u=2;u<=s-2;u++)if(o[u-1]._isOnPathTo(o[u],n,l))return!0;if(o[s-2]._isOnPathTo(o[s-1],n,l,"end"))return!0}return!1}},{key:"_bbox",value:function(n){var s,a=this.segments,o=a.length;if(1===o){var l=a[0].anchor().transformCopy(n);s=new cn(l,kf.ZERO)}else if(o>0)for(var u=1;u0&&Zo(this.paths).lineTo(n,a),this}},{key:"curveTo",value:function(n,a,o){return this.paths.length>0&&Zo(this.paths).curveTo(n,a,o),this}},{key:"arc",value:function(n,a,o,s,l){return this.paths.length>0&&Zo(this.paths).arc(n,a,o,s,l),this}},{key:"arcTo",value:function(n,a,o,s,l,u){return this.paths.length>0&&Zo(this.paths).arcTo(n,a,o,s,l,u),this}},{key:"close",value:function(){return this.paths.length>0&&Zo(this.paths).close(),this}},{key:"_bbox",value:function(n){return t0(this.paths,!0,n)}},{key:"rawBBox",value:function(){return t0(this.paths,!1)}},{key:"_containsPoint",value:function(n){for(var a=this.paths,o=0;o2&&(l="l",c.splice(0,2))),m$[l])m$[l](i,{parameters:c,position:t,isRelative:u,previousCommand:e}),s&&"z"===s.toLowerCase()&&i.close();else if("m"!==l)throw new Error("Error while parsing SVG path. Unsupported command: "+l);e=l}),i}(new t(a),n)}}]),t}(sk(ZD(Id))),TN=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createRing",value:function(n,a){var o=n.startAngle+180,s=n.angle+o;n.angle>0&&o===s&&(s+=.001);var l=new Pe(n.center.x,n.center.y),u=Math.max(n.radius,0),c=Math.max(n.innerRadius,0),d=new Sc(l,{startAngle:o,endAngle:s,radiusX:u,radiusY:u}),h=dt.fromArc(d,a).close();if(c){d.radiusX=d.radiusY=c;var f=d.pointAt(s);h.lineTo(f.x,f.y),h.arc(s,o,c,c,!0)}else h.lineTo(l.x,l.y);return h}}]),t}(mt);TN.current=new TN;var n0=TN,k$=Math.PI/2,ZLe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(this,t),(e=r.call(this)).setCenter(n),e.setRadius(a),e}return v(t,[{key:"setCenter",value:function(n){return this._observerField("center",Pe.create(n)),this.geometryChange(),this}},{key:"getCenter",value:function(){return this.center}},{key:"equals",value:function(n){return n&&n.center.equals(this.center)&&n.radius===this.radius}},{key:"clone",value:function(){return new t(this.center.clone(),this.radius)}},{key:"pointAt",value:function(n){return this._pointAt(lu(n))}},{key:"bbox",value:function(n){for(var a=r$(0,this.radius,this.radius,n),o=Pe.maxPoint(),s=Pe.minPoint(),l=0;l<4;l++){var u=this._pointAt(a.x+l*k$).transformCopy(n),c=this._pointAt(a.y+l*k$).transformCopy(n),d=new Pe(u.x,c.y);o=Pe.min(o,d),s=Pe.max(s,d)}return cn.fromPoints(o,s)}},{key:"_pointAt",value:function(n){var a=this.center,o=this.radius;return new Pe(a.x+o*Math.cos(n),a.y+o*Math.sin(n))}},{key:"containsPoint",value:function(n){var a=this.center,o=this.radius;return Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2)<=Math.pow(o,2)}},{key:"_isOnPath",value:function(n,a){var s=this.radius,l=this.center.distanceTo(n);return s-a<=l&&l<=s+a}}]),t}(qD(Gs,["radius"])),bo=ZLe;function YLe(i){var r="_"+i;return function(t){return Vt(t)?(this._observerField(r,t),this.geometryChange(),this):this[r]}}function QLe(i,r){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:["geometry"],e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return QLe(e.prototype,t),e},tPe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new bo,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this,a)).geometry(n),Vt(e.options.stroke)||e.stroke("#000"),e}return v(t,[{key:"nodeType",get:function(){return"Circle"}},{key:"rawBBox",value:function(){return this._geometry.bbox()}},{key:"_bbox",value:function(n){return this._geometry.bbox(n)}},{key:"_containsPoint",value:function(n){return this.geometry().containsPoint(n)}},{key:"_isOnPath",value:function(n){return this.geometry()._isOnPath(n,this.options.stroke.width/2)}}]),t}(sk(ZD(AN(Id)))),kl=tPe,xN=function(r,t){return function(e){b(a,e);var n=S(a);function a(){return p(this,a),n.apply(this,arguments)}return v(a,[{key:"traverse",value:function(s){for(var l=this[t],u=0;u=0&&(this.children.splice(a,1),n.parent=null,this.childrenChange("remove",[n],a)),this}},{key:"removeAt",value:function(n){if(0<=n&&na);l++);this.visual.insert(l,n)}},{key:"traverse",value:function(n){for(var a=this.children,o=a.length,s=0;s1?new t(n[0],n[1],n[2]):new t(n.offset,n.color,n.opacity)}}]),t}(function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function hPe(i,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this)).stops=new cPe(e._createStops(n.stops)),e.stops.addObserver(Xe(e)),e._userSpace=n.userSpace,e.id=GD(),e}return v(t,[{key:"nodeType",get:function(){return"Gradient"}},{key:"userSpace",value:function(n){return Vt(n)?(this._userSpace=n,this.optionsChange(),this):this._userSpace}},{key:"_createStops",value:function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[],o=0;o=0&&this.stops.splice(a,1)}},{key:"optionsChange",value:function(n){this.trigger("optionsChange",{field:"gradient"+(n?"."+n.field:""),value:this})}},{key:"geometryChange",value:function(){this.optionsChange()}}]),t}(Gs),uk=mPe,yPe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).start(n.start||new Pe),e.end(n.end||new Pe(1,0)),e}return v(t)}(e0(uk,["start","end"])),r0=yPe,kPe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).center(n.center||new Pe),e._radius=Vt(n.radius)?n.radius:1,e._fallbackFill=n.fallbackFill,e}return v(t,[{key:"radius",value:function(n){return Vt(n)?(this._radius=n,this.geometryChange(),this):this._radius}},{key:"fallbackFill",value:function(n){return Vt(n)?(this._fallbackFill=n,this.optionsChange(),this):this._fallbackFill}}]),t}(e0(uk,["center"])),a0=kPe,ck="radial",SPe={glass:{type:"linear",rotation:0,stops:[{offset:0,color:Ln,opacity:0},{offset:.25,color:Ln,opacity:.3},{offset:1,color:Ln,opacity:0}]},sharpBevel:{type:ck,stops:[{offset:0,color:Ln,opacity:.55},{offset:.65,color:Ln,opacity:0},{offset:.95,color:Ln,opacity:.25}]},roundedBevel:{type:ck,stops:[{offset:.33,color:Ln,opacity:.06},{offset:.83,color:Ln,opacity:.2},{offset:.95,color:Ln,opacity:0}]},roundedGlass:{type:ck,supportVML:!1,stops:[{offset:0,color:Ln,opacity:0},{offset:.5,color:Ln,opacity:.3},{offset:.99,color:Ln,opacity:0}]},sharpGlass:{type:ck,supportVML:!1,stops:[{offset:0,color:Ln,opacity:.2},{offset:.15,color:Ln,opacity:.15},{offset:.17,color:Ln,opacity:.35},{offset:.85,color:Ln,opacity:.05},{offset:.87,color:Ln,opacity:.15},{offset:.99,color:Ln,opacity:0}]},bubbleShadow:{type:ck,center:[.5,.5],radius:.5}};function wPe(i,r){if(i.x1===r.x1&&i.y1===r.y1&&i.x2===r.x2&&i.y2===r.y2)return r;var t=Math.min(i.x1,r.x1),e=Math.max(i.x1,r.x1),n=Math.min(i.x2,r.x2),a=Math.max(i.x2,r.x2),o=Math.min(i.y1,r.y1),s=Math.max(i.y1,r.y1),l=Math.min(i.y2,r.y2),u=Math.max(i.y2,r.y2),c=[];return c[0]=new et(e,o,n,s),c[1]=new et(t,s,e,l),c[2]=new et(n,s,a,l),c[3]=new et(e,l,n,u),i.x1===t&&i.y1===o||r.x1===t&&r.y1===o?(c[4]=new et(t,o,e,s),c[5]=new et(n,l,a,u)):(c[4]=new et(n,o,a,s),c[5]=new et(t,l,e,u)),Xo(c,function(d){return d.height()>0&&d.width()>0})[0]}var E$=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=(n=r.call(this,e)).options;return a.width=parseInt(a.width,10),a.height=parseInt(a.height,10),n.gradients={},n}return v(t,[{key:"reflow",value:function(){var n=this.options,a=this.children,o=new et(0,0,n.width,n.height);this.box=o.unpad(n.margin);for(var s=0;sc&&(h.push({groupElements:w,groupSize:f,groupElementsSize:g}),C=Math.max(C,g),_+=u+f,f=0,g=0,w=[]),f=Math.max(f,R[s]),g>0&&(g+=l),g+=R[o],w.push(M)}return h.push({groupElements:w,groupSize:f,groupElementsSize:g}),{groups:h,groupsSize:_+=f,maxGroupElementsSize:C=Math.max(C,g)}}},{key:"elementSize",value:function(n){return{width:n.box.width(),height:n.box.height()}}},{key:"createVisual",value:function(){}}]),t}(Kn);ze(T$,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var ON=T$,TPe="12px sans-serif",xPe=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Pe,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(this,t),(n=r.call(this,o)).content(e),n.position(a),n.options.font||(n.options.font=TPe),Vt(n.options.fill)||n.fill("#000"),n}return v(t,[{key:"nodeType",get:function(){return"Text"}},{key:"content",value:function(n){return Vt(n)?(this.options.set("content",n),this):this.options.get("content")}},{key:"measure",value:function(){return tk(this.content(),{font:this.options.get("font")})}},{key:"rect",value:function(){var n=this.measure(),a=this.position().clone();return new cn(a,[n.width,n.height])}},{key:"bbox",value:function(n){var a=yf(this.currentTransform(n));return this.rect().bbox(a)}},{key:"rawBBox",value:function(){return this.rect().bbox()}},{key:"_containsPoint",value:function(n){return this.rect().containsPoint(n)}}]),t}(sk(e0(Id,["position"]))),IN=xPe,MPe=IN,A$=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).content=e,a.reflow(new et),a}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=a.size=tk(this.content,{font:a.font});this.baseline=o.baseline,this.box=new et(n.x1,n.y1,n.x1+o.width,n.y1+o.height)}},{key:"createVisual",value:function(){var n=this.options,a=n.font,o=n.color,s=n.opacity,l=n.cursor;this.visual=new MPe(this.content,this.box.toRect().topLeft(),{font:a,fill:{color:o,opacity:s},cursor:l})}}]),t}(Kn);ze(A$,{font:f9,color:Xi});var RPe=A$;function o0(i){var r=i.origin,t=i.bottomRight();return new et(r.x,r.y,t.x,t.y)}var OPe=/\n/m,IPe=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).content=e,o.data=a,o._initContainer(),!1!==o.options._autoReflow&&o.reflow(new et),o}return v(t,[{key:"_initContainer",value:function(){var n=this.options,a=String(this.content).split(OPe),o=new ON({vertical:!0,align:n.align,wrap:!1}),s=ne({},n,{opacity:1,animation:null});this.container=o,this.append(o);for(var l=0;l1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{};p(this,i),this._intlService=t.intlService,this.sender=t.sender||r,this.format=new GPe(t.intlService),this.chart=r,this.rtl=Boolean(t.rtl)}return v(i,[{key:"intl",get:function(){return this._intlService||L$.implementation},set:function(t){this._intlService=t,this.format.intl=t}},{key:"notify",value:function(t,e){this.chart&&this.chart.trigger(t,e)}},{key:"isPannable",value:function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t}}]),i}(),NN=VPe,UPe=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){FN=t}},{key:"create",value:function(t,e){if(FN)return FN.create(t,e)}}]),i}(),LN=UPe;function P$(i,r){var t=i.tickX,e=i.tickY,n=i.position,a=new dt({stroke:{width:r.width,color:r.color}});return i.vertical?a.moveTo(t,n).lineTo(t+r.size,n):a.moveTo(n,e).lineTo(n,e+r.size),Ns(a),a}function B$(i,r){var t=i.lineStart,e=i.lineEnd,n=i.position,a=new dt({stroke:{width:r.width,color:r.color,dashType:r.dashType}});return i.vertical?a.moveTo(t,n).lineTo(e,n):a.moveTo(n,t).lineTo(n,e),Ns(a),a}var G$=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new NN;return p(this,t),(n=r.call(this,e)).chartService=a,n.options.visible||(n.options=ne({},n.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),n.options.minorTicks=ne({},{color:n.options.line.color,width:n.options.line.width,visible:n.options.minorTickType!==lN},n.options.minorTicks,{size:n.options.minorTickSize,align:n.options.minorTickType}),n.options.majorTicks=ne({},{color:n.options.line.color,width:n.options.line.width,visible:n.options.majorTickType!==lN},n.options.majorTicks,{size:n.options.majorTickSize,align:n.options.majorTickType}),n.initFields(),n.options._deferLabels||n.createLabels(),n.createTitle(),n.createNotes(),n}return v(t,[{key:"initFields",value:function(){}},{key:"labelsRange",value:function(){return{min:this.options.labels.skip,max:this.labelsCount()}}},{key:"normalizeLabelRotation",value:function(n){var a=n.rotation;gl(a)&&(n.alignRotation=a.align,n.rotation=a.angle)}},{key:"createLabels",value:function(){var n=this.options,o=ne({},n.labels,{align:n.vertical?Gn:Qt,zIndex:n.zIndex}),s=Math.max(1,o.step);if(this.clearLabels(),o.visible){this.normalizeLabelRotation(o),"auto"===o.rotation&&(o.rotation=0,n.autoRotateLabels=!0);for(var l=this.labelsRange(),u=l.min;u0&&a.visible){var s=new dt({stroke:{width:a.width,color:a.color,dashType:a.dashType}});s.moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),n._alignLines&&Ns(s);var l=this._lineGroup=new sn;l.append(s),this.visual.append(l),this.createTicks(l)}}},{key:"getActualTickSize",value:function(){var n=this.options,a=0;return n.majorTicks.visible&&n.minorTicks.visible?a=Math.max(n.majorTicks.size,n.minorTicks.size):n.majorTicks.visible?a=n.majorTicks.size:n.minorTicks.visible&&(a=n.minorTicks.size),a}},{key:"createBackground",value:function(){var o=this.options.background;o&&(this._backgroundPath=dt.fromRect(this.box.toRect(),{fill:{color:o},stroke:null}),this.visual.append(this._backgroundPath))}},{key:"createPlotBands",value:function(){var n=this,a=this.options,o=a.plotBands||[],s=a.vertical,l=this.plotArea;if(0!==o.length){for(var u=this._plotbandGroup=new sn({zIndex:-1}),c=Xo(this.pane.axes,function(M){return M.options.vertical!==n.options.vertical})[0],d=0;d3&&void 0!==arguments[3]?arguments[3]:o,l=this.options,u=l.vertical,c=this.lineBox(),d=this.getActualTickSize()+l.margin;if(u){var f=c.x2;a?(f+=d,n.options.rotationOrigin=Sn):(f-=d+n.box.width(),n.options.rotationOrigin=Gn),h=n.box.move(f,o)}else{var g=c.y1;a?(g-=d+n.box.height(),n.options.rotationOrigin=Zn):(g+=d,n.options.rotationOrigin=Fn),h=new et(o,g,s,g+n.box.height())}n.reflow(h)}},{key:"autoRotateLabelAngle",value:function(n,a){return n.width()a?-90:-45}},{key:"autoRotateLabels",value:function(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(var n=this.getMajorTickPositions(),a=this.labels,o=Math.min(a.length,n.length-1),s=0,l=0;l0&&(!Te(u.max)||s<=u.max))return null;if(a0||ss&&l>0&&(h=Mt(a,o,s),d=Mt(a-c,o,s-c)),{min:d,max:h}}},{key:"valueRange",value:function(){return{min:this.seriesMin,max:this.seriesMax}}},{key:"lineDir",value:function(){var n=this.options;return(n.vertical?-1:1)*(n.reverse?-1:1)}},{key:"lineInfo",value:function(){var n=this.options.vertical,a=this.lineBox(),o=n?a.height():a.width(),s=n?Ct:yt,l=this.lineDir(),c=s+(1===l?1:2).toString();return{axis:s,axisOrigin:c,axisDir:l,lineBox:a,lineSize:o,lineStart:a[c]}}},{key:"pointOffset",value:function(n){var a=this.lineInfo(),o=a.axis,l=a.axisOrigin,u=a.lineBox;return(a.axisDir>0?n[o]-u[l]:u[l]-n[o])/a.lineSize}},{key:"scaleToDelta",value:function(n,a){var s=Mt(n,-.999,.999);return s>0?a*Math.min(1,s):a-a/(1+s)}},{key:"labelsBetweenTicks",value:function(){return!this.options.justified}},{key:"prepareUserOptions",value:function(){}}]),t}(Kn);ze(G$,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:Xi,visible:!0},title:{visible:!0,position:Qt},majorTicks:{align:FD,size:4,skip:0,step:1},minorTicks:{align:FD,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:FD,minorTickType:lN,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:Xi,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var dk=G$,s0="milliseconds",PN="seconds",BN="minutes",hk="hours",cu="days",fk="weeks",Sf="months",wc="years",gg=6e4,l0=60*gg,Dc=24*l0,VN=7*Dc,UN=31*Dc,zN=365*Dc,du={years:zN,months:UN,weeks:VN,days:Dc,hours:l0,minutes:gg,seconds:1e3,milliseconds:1};function HN(i,r){return i.getTime()-r-(i.getTimezoneOffset()-r.getTimezoneOffset())*gg}function zr(i,r){return new Date(i.getTime()+r)}function ni(i){var r;return i instanceof Date?r=i:i&&(r=new Date(i)),r}function u0(i,r){return 0===r&&23===i.getHours()&&(i.setHours(i.getHours()+2),!0)}function Ya(i,r,t,e){var n=i;if(i){var a=ni(i),o=a.getHours();t===wc?u0(n=new Date(a.getFullYear()+r,0,1),0):t===Sf?u0(n=new Date(a.getFullYear(),a.getMonth()+r,1),o):t===fk?(n=Ya(function HPe(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=0,e=i.getDay();if(!isNaN(e))for(;e!==r;)0===e?e=6:e--,t++;return zr(i,-t*Dc)}(a,e),7*r,cu),u0(n,o)):t===cu?u0(n=new Date(a.getFullYear(),a.getMonth(),a.getDate()+r),o):t===hk?n=function KPe(i,r){var t=new Date(i);t.setMinutes(0,0,0);var e=(i.getTimezoneOffset()-t.getTimezoneOffset())*gg;return zr(t,e+r*l0)}(a,r):t===BN?(n=zr(a,r*gg)).getSeconds()>0&&n.setSeconds(0):t===PN?n=zr(a,1e3*r):t===s0&&(n=zr(a,r)),t!==s0&&n.getMilliseconds()>0&&n.setMilliseconds(0)}return n}function KN(i,r,t){return Ya(ni(i),0,r,t)}function V$(i,r,t){var e=ni(i);return e&&KN(e,r,t).getTime()===e.getTime()?e:Ya(e,1,r,t)}function wf(i,r){return i&&r?i.getTime()-r.getTime():-1}function hu(i,r){return i.getTime()-r}function ii(i){if(Jr(i)){for(var r=[],t=0;t0){var o=this.options.vertical?Ct:yt,s=n[o+1],l=n[o+2],u=a[0],c=Yi(a);(u.box[o+1]>l||u.box[o+2]l||c.box[o+2]=0;)c--;return n.slice(u,c+1)}},{key:"lineInfo",value:function(){var n=this.options,a=n.vertical,o=n.reverse,s=this.lineBox(),l=a?s.height():s.width(),u=a?Ct:yt,c=o?-1:1,h=u+(1===c?1:2).toString();return{axis:u,axisOrigin:h,axisDir:c,lineBox:s,lineSize:l,lineStart:s[h]}}},{key:"lineDir",value:function(){return this.options.reverse?-1:1}},{key:"getSlot",value:function(n,a,o){var s=this.options,l=s.reverse,u=s.justified,c=this.scaleOptions(),d=c.scale,h=c.box,f=c.min,g=this.lineInfo(),_=g.axis,C=g.lineStart,w=h.clone(),E=!Te(a),M=qt(n,0),R=qt(a,M);R=Math.max(R-1,M);var N=C+(M-f)*d,V=C+((R=Math.max(M,R))+1-f)*d;return E&&u&&(V=N),o&&(N=Mt(N,h[_+1],h[_+2]),V=Mt(V,h[_+1],h[_+2])),w[_+1]=l?V:N,w[_+2]=l?N:V,w}},{key:"limitSlot",value:function(n){var o=this.options.vertical?Ct:yt,s=this.lineBox(),l=n.clone();return l[o+1]=Mt(n[o+1],s[o+1],s[o+2]),l[o+2]=Mt(n[o+2],s[o+1],s[o+2]),l}},{key:"slot",value:function(n,a,o){var s=Math.floor(this.options.min||0),l=n,u=a;return"string"==typeof l?l=this.categoryIndex(l):un(l)&&(l-=s),"string"==typeof u?u=this.categoryIndex(u):un(u)&&(u-=s),$(q(t.prototype),"slot",this).call(this,l,u,o)}},{key:"pointCategoryIndex",value:function(n){var a=this.options,o=a.reverse,s=a.justified,u=a.vertical?Ct:yt,c=this.scaleOptions(),h=c.box,C=h[u+1],E=n[u];if(Eh[u+2])return null;var M=(o?c.max:c.min)+(E-C)/c.scale,R=M%1;return s?M=Math.round(M):0===R&&M>0&&M--,Math.floor(M)}},{key:"getCategory",value:function(n){var a=this.pointCategoryIndex(n);return null===a?null:this.options.categories[a]}},{key:"categoryIndex",value:function(n){return this.totalIndex(n)-Math.floor(this.options.min||0)}},{key:"categoryAt",value:function(n,a){var o=this.options;return(a?o.srcCategories:o.categories)[n]}},{key:"categoriesCount",value:function(){return(this.options.categories||[]).length}},{key:"translateRange",value:function(n){var a=this.options,o=this.lineBox(),s=a.vertical?o.height():o.width(),l=a.categories.length,c=tt(n/(s/l),10);return{min:c,max:l+c}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),s=this.totalRangeIndices(),u=this.scaleToDelta(n,s.max-s.min),h=s.min+o*u,f=s.max-(1-o)*u;return f-h<.1&&(f=h+.1),{min:h,max:f}}},{key:"zoomRange",value:function(n,a){var o=this.totalRange(),s=o.min,l=o.max,u=this.scaleRange(n,a);return{min:Mt(u.min,s,l),max:Mt(u.max,s,l)}}},{key:"labelsCount",value:function(){var n=this.labelsRange();return n.max-n.min}},{key:"labelsRange",value:function(){var n=this.options,a=n.justified,o=n.labels,s=this.totalRangeIndices(!0),l=s.min,u=s.max,c=Math.floor(l);return a?(l=Math.ceil(l),u=Math.floor(u)):(l=Math.floor(l),u=Math.ceil(u)),{min:(l>o.skip?o.skip+o.step*Math.ceil((l-o.skip)/o.step):o.skip)-c,max:(n.categories.length?u+(a?1:0):0)-c}}},{key:"createAxisLabel",value:function(n,a,o){var s=this.options,l=s.dataItems?s.dataItems[n]:null,u=qt(s.categories[n],"");o.dataItem=l;var c=this.axisLabelText(u,a,o);return new bf(u,c,n,l,a)}},{key:"shouldRenderNote",value:function(n){var a=this.totalRangeIndices();return Math.floor(a.min)<=n&&n<=Math.ceil(a.max)}},{key:"noteSlot",value:function(n){var o=n-Math.floor(this.options.min||0);return this.getSlot(o)}},{key:"arrangeNotes",value:function(){$(q(t.prototype),"arrangeNotes",this).call(this),this.hideOutOfRangeNotes()}},{key:"hideOutOfRangeNotes",value:function(){var n=this.notes,a=this.box;if(n&&n.length)for(var o=this.options.vertical?Ct:yt,s=a[o+1],l=a[o+2],u=0;u=.01)return{min:M,max:R}}},{key:"valueRange",value:function(){return this.range()}},{key:"totalIndex",value:function(n){var a=this.options,o=this._categoriesMap?this._categoriesMap.get(n):function WPe(i,r){if(i instanceof Date){for(var t=r.length,e=0;e=o;){h=h||a[u].slice(0);do{g=h.shift()}while(g&&r===u&&go&&(f=Math.ceil(d/o));break}u=Tc[l++]||Yi(Tc),d=n/du[u],h=null}}i.baseUnitStep=f,i.baseUnit=u}var Z$=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"clone",value:function(){var n=new t(Object.assign({},this.options),this.chartService);return n.createLabels(),n}},{key:"categoriesHash",value:function(){var n=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+n}},{key:"initUserOptions",value:function(n){return n}},{key:"initFields",value:function(){$(q(t.prototype),"initFields",this).call(this);var n=this.chartService,a=n.intl,o=this.options,s=o.categories||[];if(s._parsed||((s=z$(a,s))._parsed=!0),o=ne({roundToBaseUnit:!0},o,{categories:s,min:ya(a,o.min),max:ya(a,o.max),weekStartDay:H$(o,a)}),n.panning&&n.isPannable(o.vertical?Ct:yt)&&(o.roundToBaseUnit=!1),o.userSetBaseUnit=o.userSetBaseUnit||o.baseUnit,o.userSetBaseUnitStep=o.userSetBaseUnitStep||o.baseUnitStep,this.options=o,o.srcCategories=s,s.length>0){var l=d0(s),u=o.maxDivisions;if(this.dataRange=new $N(l.min,l.max,function ZPe(i){var r=(i.baseUnit||"").toLowerCase();return r!==c0&&!hn(r,Tc)&&function XPe(i){for(var n,a,r=i.categories,t=Te(r)?r.length:0,e=Zi,o=0;o0&&(a=(e=Math.min(e,l))>=zN?wc:e>=UN-3*Dc?Sf:e>=VN?fk:e>=Dc?cu:e>=l0?hk:e>=gg?BN:PN)}n=s}i.baseUnit=a||cu}(i),(r===c0||"auto"===i.baseUnitStep)&&X$(i),i}(o)),u){var c=this.dataRange.displayRange(),d=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:c.min,max:c.max,maxDateGroups:u}),h=this.dataRange.options;X$(d,h.baseUnit,h.baseUnitStep),this.divisionRange=new $N(l.min,l.max,d)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||cu,this.dataRange=this.divisionRange=new qPe(o);this.rangeLabels=[]}},{key:"tickIndices",value:function(n){var a=this.dataRange,o=this.divisionRange,s=o.valuesCount();if(!this.options.maxDivisions||!s)return $(q(t.prototype),"tickIndices",this).call(this,n);var l=[],u=o.values(),c=0;this.options.justified||(u=u.concat(o.dateAt(s)),c=.5);for(var d=0;d=1){var h=l.length-1;l.splice(d,0,l[h-1]+(l[h]-l[h-1])*n)}return l}},{key:"shouldRenderNote",value:function(n){var a=this.range(),o=this.options.categories||[];return wf(n,a.min)>=0&&wf(n,a.max)<=0&&o.length}},{key:"parseNoteValue",value:function(n){return ya(this.chartService.intl,n)}},{key:"noteSlot",value:function(n){return this.getSlot(n)}},{key:"translateRange",value:function(n){var a=this.options,o=a.baseUnit,s=a.weekStartDay,l=a.vertical,u=this.lineBox(),c=l?u.height():u.width(),d=this.range(),f=tt(n/(c/(d.max-d.min)),10);if(d.min&&d.max){var g=zr(a.min||d.min,f),_=zr(a.max||d.max,f);d={min:Ya(g,0,o,s),max:Ya(_,0,o,s)}}return d}},{key:"labelsRange",value:function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}}},{key:"pan",value:function(n){if(this.isEmpty())return null;var a=this.options,o=this.lineBox(),s=a.vertical?o.height():o.width(),l=this.dataRange.displayRange(),u=l.min,c=l.max,d=this.dataRange.total(),f=tt(n/(s/(c-u)),10)*(a.reverse?-1:1),g=zr(u,f),_=zr(c,f),C=this.limitRange(ii(g),ii(_),ii(d.min),ii(d.max),f);return C?(C.min=ni(C.min),C.max=ni(C.max),C.baseUnit=a.baseUnit,C.baseUnitStep=a.baseUnitStep||1,C.userSetBaseUnit=a.userSetBaseUnit,C.userSetBaseUnitStep=a.userSetBaseUnitStep,C):void 0}},{key:"pointsRange",value:function(n,a){if(this.isEmpty())return null;var o=$(q(t.prototype),"pointsRange",this).call(this,n,a),s=this.dataRange.displayRange(),l=this.dataRange.displayIndices(),u=hu(s.max,s.min)/(l.max-l.min),c=this.options;return{min:zr(s.min,o.min*u),max:zr(s.min,o.max*u),baseUnit:c.userSetBaseUnit||c.baseUnit,baseUnitStep:c.userSetBaseUnitStep||c.baseUnitStep}}},{key:"scaleRange",value:function(n,a){if(this.isEmpty())return{};var o=this.options,s=o.userSetBaseUnit===c0,l=this.dataRange.total(),u=this.dataRange.displayRange(),c=u.min,d=u.max,h=Math.abs(this.pointOffset(a)),g=this.scaleToDelta(n,d-c),_=Math.round(h*g),C=Math.round((1-h)*g),w=this.dataRange.options.baseUnit,E=new Date(c.getTime()+_),M=new Date(d.getTime()-C);if(s){var G,I,R=o.autoBaseUnitSteps,N=o.maxDateGroups,V=Yi(R[w])*N*du[w],U=hu(d,c),ee=hu(M,E),ve=Tc.indexOf(w);if(eeV&&w!==wc){var K=0;do{ve++,K=0,I=2*du[w=Tc[ve]];do{G=R[w][K],K++}while(K0&&(E=zr(c,-I),M=zr(d,I),E=zr(E,Mt(M,l.min,l.max)-M),M=zr(M,Mt(E,l.min,l.max)-E))}}return E&&M&&hu(M,E)>0?{min:E,max:M,baseUnit:o.userSetBaseUnit||o.baseUnit,baseUnitStep:o.userSetBaseUnitStep||o.baseUnitStep}:void 0}},{key:"zoomRange",value:function(n,a){var o=this.dataRange.total(),s=this.scaleRange(n,a);return s&&(s.mino.max&&(s.max=o.max)),s}},{key:"range",value:function(){return this.dataRange.displayRange()}},{key:"createLabels",value:function(){$(q(t.prototype),"createLabels",this).call(this),this.createRangeLabels()}},{key:"clearLabels",value:function(){$(q(t.prototype),"clearLabels",this).call(this),this.rangeLabels=[]}},{key:"arrangeLabels",value:function(){this.arrangeRangeLabels(),$(q(t.prototype),"arrangeLabels",this).call(this)}},{key:"arrangeRangeLabels",value:function(){var n=this.options,a=this.rangeLabels;if(0!==a.length){var o=this.lineBox(),s=n.vertical,l=n.rangeLabels.mirror||n.labels.mirror,u=a[0];if(u){var c=s?o.y1-u.box.height()/2:o.x1;this.positionLabel(u,l,c)}var d=a[1];if(d){var h=s?o.y2-d.box.height()/2:o.x2;this.positionLabel(d,l,h)}}}},{key:"autoRotateLabels",value:function(){$(q(t.prototype),"autoRotateLabels",this).call(this),this.autoRotateRangeLabels()}},{key:"hideOutOfRangeLabels",value:function(){$(q(t.prototype),"hideOutOfRangeLabels",this).call(this),this.hideOverlappingLabels()}},{key:"hideOverlappingLabels",value:function(){var n=this.rangeLabels,a=this.labels;if(0!==n.length){var s=n[0];if(s&&s.options.visible)for(var l=0;l0&&o(c,a[d]);--d);}function o(f,g){return!(g.options.visible&&!g.box.overlaps(f.box)||(g.options.visible=!1,0))}}},{key:"contentBox",value:function(){for(var n=$(q(t.prototype),"contentBox",this).call(this),a=this.rangeLabels,o=0;o2&&void 0!==arguments[2]?arguments[2]:{},s=this.options,l=s.dataItems&&!s.maxDivisions?s.dataItems[n]:null,u=this.divisionRange.dateAt(n),c=a.dateFormats[this.divisionRange.options.baseUnit];a.format=a.format||c,o.dataItem=l;var d=this.axisLabelText(u,a,o);if(d)return new bf(u,d,n,l,a)}},{key:"createRangeLabels",value:function(){var n=this,a=this.divisionRange,o=a.displayStart,s=a.displayEnd,l=this.options,u=Object.assign({},l.labels,l.rangeLabels,{align:Qt,zIndex:l.zIndex});if(!0===u.visible){this.normalizeLabelRotation(u),u.alignRotation=Qt,"auto"===u.rotation&&(u.rotation=0,l.autoRotateRangeLabels=!0),u.format=u.format||u.dateFormats[this.divisionRange.options.baseUnit];var d=function(_,C,w){if(w){var E=new bf(C,w,_,null,u);n.append(E),n.rangeLabels.push(E)}};d(0,o,this.axisLabelText(o,u,{index:0,count:2})),d(1,s,this.axisLabelText(s,u,{index:1,count:2}))}}},{key:"autoRotateRangeLabels",value:function(){var n=this,a=this.rangeLabels;if(this.options.autoRotateRangeLabels&&!this.options.vertical&&2===a.length){var o=function(u,c,d){var h=2*Math.abs(c[d+1]-c[d]),f=n.autoRotateLabelAngle(u.box,h);0!==f&&(u.options.rotation=f,u.reflow(new et))},s=this.getMajorTickPositions();o(a[0],s,0),o(a[1],s,s.length-2)}}},{key:"categoryIndex",value:function(n){return this.dataRange.valueIndex(n)}},{key:"slot",value:function(n,a,o){var s=this.dataRange,l=n,u=a;l instanceof Date&&(l=s.dateIndex(l)),u instanceof Date&&(u=s.dateIndex(u));var c=this.getSlot(l,u,o);if(c)return c.toRect()}},{key:"getSlot",value:function(n,a,o){var s=n,l=a;return typeof s===uN&&(s=this.categoryIndex(s)),typeof l===uN&&(l=this.categoryIndex(l)),$(q(t.prototype),"getSlot",this).call(this,s,l,o)}},{key:"valueRange",value:function(){var a=d0(this.options.srcCategories);return{min:ni(a.min),max:ni(a.max)}}},{key:"categoryAt",value:function(n,a){return this.dataRange.dateAt(n,a)}},{key:"categoriesCount",value:function(){return this.dataRange.valuesCount()}},{key:"rangeIndices",value:function(){return this.dataRange.displayIndices()}},{key:"labelsBetweenTicks",value:function(){return!this.divisionRange.options.justified}},{key:"prepareUserOptions",value:function(){this.isEmpty()||(this.options.categories=this.dataRange.values())}},{key:"getCategory",value:function(n){var a=this.pointCategoryIndex(n);return null===a?null:this.dataRange.dateAt(a)}},{key:"totalIndex",value:function(n){return this.dataRange.totalIndex(n)}},{key:"currentRangeIndices",value:function(){var n=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(n.min),max:this.dataRange.totalIndex(n.max)}}},{key:"totalRange",value:function(){return this.dataRange.total()}},{key:"totalCount",value:function(){return this.dataRange.totalCount()}},{key:"isEmpty",value:function(){return!this.options.srcCategories.length}},{key:"roundedRange",value:function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var n=this.options,a=d0(n.srcCategories);return new $N(a.min,a.max,Object.assign({},n,{justified:!1,roundToBaseUnit:!0,justifyEnd:n.justified})).displayRange()}}]),t}(Ec);ze(Z$,{type:xd,labels:{dateFormats:$$},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var vk=Z$;function Y$(i,r){return tt(Math.floor(i/r)*r,10)}function h0(i,r){return tt(Math.ceil(i/r)*r,10)}function f0(i){return Math.max(Math.min(i,3e5),-3e5)}var qN=Math.pow(10,-9),Q$=function(i){b(t,i);var r=S(t);function t(e,n,a,o){return p(this,t),r.call(this,Object.assign({},a,{seriesMin:e,seriesMax:n}),o)}return v(t,[{key:"initUserOptions",value:function(n){var a=function JPe(i,r,t){var e=t.narrowRange,n=function YPe(i,r,t){if(!i&&!r)return 0;var e;if(i>=0&&r>=0){var n=i===r?0:i;if(!1===t||!t&&(r-n)/r>.2)return 0;e=Math.max(0,n-(r-n)/2)}else e=i;return e}(i,r,e),a=function QPe(i,r,t){if(!i&&!r)return 1;var e;if(i<=0&&r<=0){var n=i===r?0:r,a=Math.abs((n-i)/n);if(!1===t||!t&&a>.2)return 0;e=Math.min(0,n-(i-n)/2)}else e=r;return e}(i,r,e),o=ak(n,a),s={majorUnit:o};return!1!==t.roundToMajorUnit&&(n<0&&J$(n,o,1/3)&&(n-=o),a>0&&J$(a,o,1/3)&&(a+=o)),s.min=Y$(n,o),s.max=h0(a,o),s}(n.seriesMin,n.seriesMax,n);return this.totalOptions=function eBe(i,r){return{min:Te(r.min)?Math.min(i.min,r.min):i.min,max:Te(r.max)?Math.max(i.max,r.max):i.max,majorUnit:i.majorUnit}}(a,n),function nBe(i,r){var e,n,t=r;if(r){(function tBe(i,r){for(var t=0;t0?r.min=0:r.max=1),r.majorUnit?(i.min=Y$(i.min,r.majorUnit),i.max=h0(i.max,r.majorUnit)):a&&(t=ne(i,r),i.majorUnit=ak(t.min,t.max))}i.minorUnit=(t.majorUnit||i.majorUnit)/5;var o=ne(i,t);return o.min>=o.max&&(e&&!n?o.max=o.min+o.majorUnit:!e&&n&&(o.min=o.max-o.majorUnit)),o}(a,n)}},{key:"initFields",value:function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax}},{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"startValue",value:function(){return 0}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"getDivisions",value:function(n){if(0===n)return 1;var a=this.options;return Math.floor(tt((a.max-a.min)/n,3))+1}},{key:"getTickPositions",value:function(n,a){var o=this.options,s=this.lineInfo(),l=s.axisDir,u=s.axisOrigin,c=s.lineBox,g=n*(s.lineSize/(o.max-o.min)),_=this.getDivisions(n),C=[],w=c[u],E=0;a&&(E=a/n);for(var M=0;M<_;M++)M%E!=0&&C.push(tt(w,3)),w+=g*l;return C}},{key:"getMajorTickPositions",value:function(){return this.getTickPositions(this.options.majorUnit)}},{key:"getMinorTickPositions",value:function(){return this.getTickPositions(this.options.minorUnit)}},{key:"getSlot",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=this.options,l=this.lineInfo(),u=l.axis,c=l.axisDir,d=l.lineBox,h=l.lineSize,f=l.lineStart,g=c*(h/(s.max-s.min)),_=qt(n,a||0),C=qt(a,n||0);o&&(_=Mt(_,s.min,s.max),C=Mt(C,s.min,s.max));var w=Math.min(_,C)-s.min,E=Math.max(_,C)-s.min,M=new et(d.x1,d.y1,d.x1,d.y1);return M[u+1]=f0(f+g*(c>0?w:E)),M[u+2]=f0(f+g*(c>0?E:w)),M}},{key:"getValue",value:function(n){var a=this.options,o=Number(a.max),s=Number(a.min),l=this.pointOffset(n);return l<0||l>1?null:tt(s+l*(o-s),10)}},{key:"translateRange",value:function(n){var a=this.options,o=a.vertical,s=a.reverse,l=a.max,u=a.min,c=this.lineInfo(),g=tt(n/(c.lineSize/(l-u)),10);return(o||s)&&!(o&&s)&&(g=-g),{min:u+g,max:l+g,offset:g}}},{key:"labelsCount",value:function(){return this.getDivisions(this.options.majorUnit)}},{key:"createAxisLabel",value:function(n,a,o){var s=this.options,l=tt(s.min+n*s.majorUnit,10),u=this.axisLabelText(l,a,o);return new bf(l,u,n,null,a)}},{key:"shouldRenderNote",value:function(n){var a=this.range();return a.min<=n&&n<=a.max}},{key:"pan",value:function(n){var a=this.translateRange(n);return this.limitRange(a.min,a.max,this.totalMin,this.totalMax,a.offset)}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a),l=Math.min(o,s),u=Math.max(o,s);if(this.isValidRange(l,u))return{min:l,max:u}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),l=this.scaleToDelta(n,this.options.max-this.options.min),c=(1-o)*l,d=tt(this.options.min+o*l,10),h=tt(this.options.max-c,10);return h-dqN}}]),t}(dk);function J$(i,r,t){var e=tt(Math.abs(i%r),10);return 0===e||e>r*(1-t)}ze(Q$,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Xi},labels:{format:"#.####################"},zIndex:1});var Us=Q$,tq=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t);var l=ni(e),u=ni(n),c=o.intl,d=a||{};d=function rBe(i,r,t){var e=t.min||i,n=t.max||r,a=t.baseUnit||(n&&e?function iBe(i){var r=hk;return i>=zN?r=wc:i>=UN?r=Sf:i>=VN?r=fk:i>=Dc&&(r=cu),r}(HN(n,e)):hk),o=du[a],s=t.weekStartDay||0,l=KN(ii(e)-1,a,s)||ni(n),u=V$(ii(n)+1,a,s),d=(t.majorUnit?t.majorUnit:void 0)||h0(ak(l.getTime(),u.getTime()),o)/o,h=WN(l,u,a),g=h0(h,d)-h,_=Math.floor(g/2),C=g-_;return t.baseUnit||delete t.baseUnit,t.baseUnit=t.baseUnit||a,t.min=t.min||Ya(l,-_,a,s),t.max=t.max||Ya(u,C,a,s),t.minorUnit=t.minorUnit||d/5,t.majorUnit=d,t}(l,u,d=ne(d||{},{min:ya(c,d.min),max:ya(c,d.max),axisCrossingValue:z$(c,d.axisCrossingValues||d.axisCrossingValue),weekStartDay:H$(d,c)})),(s=r.call(this,d,o)).intlService=c,s.seriesMin=l,s.seriesMax=u;var h=d.weekStartDay||0;return s.totalMin=ii(KN(ii(l)-1,d.baseUnit,h)),s.totalMax=ii(V$(ii(u)+1,d.baseUnit,h)),s}return v(t,[{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"getDivisions",value:function(n){var a=this.options;return Math.floor(WN(a.min,a.max,a.baseUnit)/n+1)}},{key:"getTickPositions",value:function(n){for(var a=this.options,o=this.lineInfo(),s=o.axisDir,l=o.lineSize,u=o.lineStart,c=this.getDivisions(n),h=l/hu(a.max,a.min),f=a.weekStartDay||0,g=[u],_=1;_0&&(c=Ya(c,l,s.baseUnit,s.weekStartDay||0)),a.format=a.format||a.dateFormats[s.baseUnit];var h=this.axisLabelText(c,a,o);return new bf(c,h,n,null,a)}},{key:"translateRange",value:function(n){var a=this.options,o=this.lineBox(),s=a.vertical,l=a.reverse,u=s?o.height():o.width(),c=this.range(),d=u/hu(c.max,c.min),h=tt(n/d,10);return(s||l)&&(!s||!l)&&(h=-h),{min:zr(a.min,h),max:zr(a.max,h),offset:h}}},{key:"shouldRenderNote",value:function(n){var a=this.range();return wf(n,a.min)>=0&&wf(n,a.max)<=0}},{key:"pan",value:function(n){var a=this.translateRange(n,!0),o=this.limitRange(ii(a.min),ii(a.max),this.totalMin,this.totalMax,a.offset);if(o)return{min:ni(o.min),max:ni(o.max)}}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a),l=Math.min(o,s),u=Math.max(o,s);return{min:ni(l),max:ni(u)}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),l=this.scaleToDelta(n,this.options.max-this.options.min),u=o*l,c=(1-o)*l,d=ni(ii(this.options.min)+u),h=ni(ii(this.options.max)-c);return h-d<1e3&&(h=ni(ii(d)+1e3)),{min:d,max:h}}},{key:"zoomRange",value:function(n,a){var o=this.scaleRange(n,a);return{min:ni(Mt(ii(o.min),this.totalMin,this.totalMax)),max:ni(Mt(ii(o.max),this.totalMin,this.totalMax))}}}]),t}(dk);ze(tq,{type:xd,majorGridLines:{visible:!0,width:1,color:Xi},labels:{dateFormats:$$}});var nq=tq,aq=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t);var l=ne({majorUnit:10,min:e,max:n},a),u=l.majorUnit,c=function sBe(i,r){var t=tt(Cl(i,r),10)%1;return i<=0?r:0!==t&&(t<.3||t>.9)?Math.pow(r,Cl(i,r)+.2):Math.pow(r,Math.ceil(Cl(i,r)))}(n,u),d=function oBe(i,r,t){var e=t.majorUnit,n=i;return i<=0?n=r<=1?Math.pow(e,-2):1:t.narrowRange||(n=Math.pow(e,Math.floor(Cl(i,e)))),n}(e,n,l),h=function aBe(i,r,t,e){var n=t.min,a=t.max;return Te(t.axisCrossingValue)&&t.axisCrossingValue<=0&&XN(),Te(e.max)?e.max<=0&&XN():a=r,Te(e.min)?e.min<=0&&XN():n=i,{min:n,max:a}}(d,c,l,a);return l.max=h.max,l.min=h.min,l.minorUnit=a.minorUnit||tt(u-1,10),(s=r.call(this,l,o)).totalMin=Te(a.min)?Math.min(d,a.min):d,s.totalMax=Te(a.max)?Math.max(c,a.max):c,s.logMin=tt(Cl(h.min,u),10),s.logMax=tt(Cl(h.max,u),10),s.seriesMin=e,s.seriesMax=n,s.createLabels(),s}return v(t,[{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"startValue",value:function(){return this.options.min}},{key:"getSlot",value:function(n,a,o){var s=this.options,l=this.logMin,u=this.logMax,c=s.majorUnit,d=s.min,h=s.max,f=this.lineInfo(),g=f.axis,_=f.axisDir,C=f.lineBox,E=f.lineStart,M=_*(f.lineSize/(u-l)),R=qt(n,a||1),N=qt(a,n||1);if(R<=0||N<=0)return null;o&&(R=Mt(R,d,h),N=Mt(N,d,h)),R=Cl(R,c),N=Cl(N,c);var V=Math.min(R,N)-l,U=Math.max(R,N)-l,ee=new et(C.x1,C.y1,C.x1,C.y1);return ee[g+1]=f0(E+M*(_>0?V:U)),ee[g+2]=f0(E+M*(_>0?U:V)),ee}},{key:"getValue",value:function(n){var o=this.logMin,s=this.logMax,l=this.options.majorUnit,u=this.lineInfo(),f=u.lineSize,_=u.axisDir*(n[u.axis]-u.lineStart);return _<0||_>f?null:tt(Math.pow(l,o+_*((s-o)/f)),10)}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"translateRange",value:function(n){var a=this.options,o=this.logMin,s=this.logMax,l=a.reverse,u=a.vertical,c=a.majorUnit,d=this.lineBox(),h=u?d.height():d.width(),g=tt(n/(h/(s-o)),10);return(u||l)&&!(u&&l)&&(g=-g),{min:Math.pow(c,o+g),max:Math.pow(c,s+g),offset:g}}},{key:"labelsCount",value:function(){var n=Math.floor(this.logMax);return Math.floor(n-this.logMin)+1}},{key:"getMajorTickPositions",value:function(){var n=[];return this.traverseMajorTicksPositions(function(a){n.push(a)},{step:1,skip:0}),n}},{key:"createTicks",value:function(n){var a=this.options,o=a.majorTicks,s=a.minorTicks,l=a.vertical,u=a.labels.mirror,c=this.lineBox(),h={vertical:l};function f(g,_){h.tickX=u?c.x2:c.x2-_.size,h.tickY=u?c.y1-_.size:c.y1,h.position=g,n.append(P$(h,_))}return o.visible&&this.traverseMajorTicksPositions(f,o),s.visible&&this.traverseMinorTicksPositions(f,s),[]}},{key:"createGridLines",value:function(n){var a=this.options,o=a.minorGridLines,s=a.majorGridLines,l=a.vertical,u=n.lineBox(),c={lineStart:u[l?"x1":"y1"],lineEnd:u[l?"x2":"y2"],vertical:l},d=[],h=this.gridLinesVisual();function f(g,_){hn(g,d)||(c.position=g,h.append(B$(c,_)),d.push(g))}return s.visible&&this.traverseMajorTicksPositions(f,s),o.visible&&this.traverseMinorTicksPositions(f,o),h.children}},{key:"traverseMajorTicksPositions",value:function(n,a){for(var o=this.lineInfo(),s=o.lineStart,l=o.step,u=this.logMin,c=this.logMax,d=Math.ceil(u)+a.skip;d<=c;d+=a.step)n(tt(s+l*(d-u),10),a)}},{key:"traverseMinorTicksPositions",value:function(n,a){for(var o=this.options,s=o.min,l=o.max,u=o.minorUnit,c=o.majorUnit,d=this.lineInfo(),h=d.lineStart,f=d.step,g=this.logMin,_=this.logMax,w=Math.floor(g);w<_;w++)for(var E=this._minorIntervalOptions(w),M=a.skip;Ml)break;R>=s&&n(tt(h+f*(Cl(R,c)-g),10),a)}}},{key:"createAxisLabel",value:function(n,a,o){var s=Math.ceil(this.logMin+n),l=Math.pow(this.options.majorUnit,s),u=this.axisLabelText(l,a,o);return new bf(l,u,n,null,a)}},{key:"shouldRenderNote",value:function(n){var a=this.range();return a.min<=n&&n<=a.max}},{key:"pan",value:function(n){var a=this.translateRange(n);return this.limitRange(a.min,a.max,this.totalMin,this.totalMax,a.offset)}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a);return{min:Math.min(o,s),max:Math.max(o,s)}}},{key:"scaleRange",value:function(n,a){var o=this.options.majorUnit,s=Cl(this.options.min,o),l=Cl(this.options.max,o),u=Math.abs(this.pointOffset(a)),d=this.scaleToDelta(n,l-s),h=Math.pow(o,s+u*d),f=Math.pow(o,l-(1-u)*d);return f-h<1e-6&&(f=h+1e-6),{min:h,max:f}}},{key:"zoomRange",value:function(n,a){var o=this.scaleRange(n,a),s=this.totalMin,l=this.totalMax;return{min:Mt(o.min,s,l),max:Mt(o.max,s,l)}}},{key:"_minorIntervalOptions",value:function(n){var a=this.options,o=a.minorUnit,s=a.majorUnit,l=Math.pow(s,n);return{value:l,minorStep:(Math.pow(s,n+1)-l)/o}}},{key:"lineInfo",value:function(){var n=$(q(t.prototype),"lineInfo",this).call(this);return n.step=n.axisDir*(n.lineSize/(this.logMax-this.logMin)),n}}]),t}(dk);function XN(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function Cl(i,r){return Math.log(i)/Math.log(r)}ze(aq,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Xi},zIndex:1,_deferLabels:!0});var v0=aq,lBe={createGridLines:function(r){var o,s,t=this.options,e=Math.abs(this.box.center().y-r.lineBox().y1),n=[],a=!1;return t.majorGridLines.visible&&(o=this.majorGridLineAngles(r),a=!0,n=this.renderMajorGridLines(o,e,t.majorGridLines)),t.minorGridLines.visible&&(s=this.minorGridLineAngles(r,a),_f(n,this.renderMinorGridLines(s,e,t.minorGridLines,r,a))),n},renderMajorGridLines:function(r,t,e){return this.renderGridLines(r,t,e)},renderMinorGridLines:function(r,t,e,n,a){var o=this.radiusCallback&&this.radiusCallback(t,n,a);return this.renderGridLines(r,t,e,o)},renderGridLines:function(r,t,e,n){for(var a={stroke:{width:e.width,color:e.color,dashType:e.dashType}},o=this.box.center(),s=new bo([o.x,o.y],t),l=this.gridLinesVisual(),u=0;u3&&void 0!==arguments[3]&&arguments[3],l=this.options,u=l.categories.length,c=u/n||1,d=360/c,h=a||0,f=o||1,g=[],_=0,C=h;C3&&void 0!==arguments[3]&&arguments[3],l=this.options.min,u=this.getDivisions(n),c=[],d=a||0,h=o||1,f=d;f1&&void 0!==arguments[1]?arguments[1]:n,o=this.options,s=360-o.startAngle,l=this.getSlot(n,a),u=Math.min(n,a),c=Math.max(n,a);return o.reverse?(d=u,h=c):(d=360-c,h=360-u),new Sc([l.center.x,l.center.y],{startAngle:d=(d+s)%360,endAngle:h=(h+s)%360,radiusX:l.radius,radiusY:l.radius})}},{key:"getValue",value:function(n){var a=this.options,o=this.box.center(),u=Math.round(Rd(Math.atan2(n.y-o.y,n.x-o.x))),c=a.startAngle;return a.reverse||(u*=-1,c*=-1),(u+c+360)%360}},{key:"valueRange",value:function(){return{min:0,max:2*Math.PI}}}]),t}(dk);ze(QN,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:ti(10)},majorGridLines:{color:Xi,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),ne(QN.prototype,oq,{createPlotBands:YN.prototype.createPlotBands,majorAngles:YN.prototype.majorAngles,range:Us.prototype.range,labelsCount:Us.prototype.labelsCount,createAxisLabel:Us.prototype.createAxisLabel});var uBe=QN,cBe={options:{majorGridLines:{visible:!0}},createPlotBands:function(){for(var r=this.options,t=r.majorGridLines.type,e=r.plotBands,n=void 0===e?[]:e,a=this.plotArea.polarAxis,o=a.majorAngles(),s=a.box.center(),l=this._plotbandGroup=new sn({zIndex:-1}),u=0;u0){var f=new bo([r.x,r.y],h);if(n.type===Ad)c.append(new kl(f,a));else{for(var g=new dt(a),_=0;_1){var c=(Rd(Math.atan2(r.y-a.y,r.x-a.x))+540)%360;n.sort(function(_,C){return p0(_,c)-p0(C,c)});var d=p0(n[0],n[1])/2,h=p0(c,n[0]),f=90-d;s=o*(Math.sin(Sr(180-h-f))/Math.sin(Sr(f)))}return this.axisType().prototype.getValue.call(this,new Ut(t.x1,t.y2-s))}};function p0(i,r){return 180-Math.abs(Math.abs(i-r)-180)}var sq=cBe,lq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"radarMajorGridLinePositions",value:function(){return this.getTickPositions(this.options.majorUnit)}},{key:"radarMinorGridLinePositions",value:function(){var n=this.options,a=0;return n.majorGridLines.visible&&(a=n.majorUnit),this.getTickPositions(n.minorUnit,a)}},{key:"axisType",value:function(){return Us}}]),t}(Us);ne(lq.prototype,sq);var dBe=lq,uq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"radarMajorGridLinePositions",value:function(){var n=[];return this.traverseMajorTicksPositions(function(a){n.push(a)},this.options.majorGridLines),n}},{key:"radarMinorGridLinePositions",value:function(){var n=[];return this.traverseMinorTicksPositions(function(a){n.push(a)},this.options.minorGridLines),n}},{key:"axisType",value:function(){return v0}}]),t}(v0);ne(uq.prototype,sq);var hBe=uq,vBe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).closed=e,n}return v(t,[{key:"process",value:function(n){var a=n.slice(0),o=[],s=this.closed,l=a.length;if(l>2&&(this.removeDuplicates(0,a),l=a.length),l<2||2===l&&a[0].equals(a[1]))return o;var f,g,u=a[0],c=a[1],d=a[2];for(o.push(new yl(u));u.equals(a[l-1]);)s=!0,a.pop(),l--;if(2===l){var h=this.tangent(u,c,yt,Ct);return Yi(o).controlOut(this.firstControlPoint(h,u,c,yt,Ct)),o.push(new yl(c,this.secondControlPoint(h,u,c,yt,Ct))),o}if(s){var _=this.controlPoints(u=a[l-1],c=a[0],d=a[1]);f=_[1],g=_[0]}else{var C=this.tangent(u,c,yt,Ct);f=this.firstControlPoint(C,u,c,yt,Ct)}for(var w=f,E=0;E<=l-3;E++)if(this.removeDuplicates(E,a),E+3<=(l=a.length)){var M=this.controlPoints(u=a[E],c=a[E+1],d=a[E+2]);Yi(o).controlOut(w),w=M[1],o.push(new yl(c,M[0]))}if(s){var N=this.controlPoints(u=a[l-2],c=a[l-1],d=a[0]);Yi(o).controlOut(w),o.push(new yl(c,N[0])),Yi(o).controlOut(N[1]),o.push(new yl(d,g))}else{var V=this.tangent(c,d,yt,Ct);Yi(o).controlOut(w),o.push(new yl(d,this.secondControlPoint(V,c,d,yt,Ct)))}return o}},{key:"removeDuplicates",value:function(n,a){for(;a[n+1]&&(a[n].equals(a[n+1])||a[n+1].equals(a[n+2]));)a.splice(n+1,1)}},{key:"invertAxis",value:function(n,a,o){var s=!1;if(n.x===a.x)s=!0;else if(a.x===o.x)(a.y=u||(s=!0)}return s}},{key:"isLine",value:function(n,a,o){var s=this.lineFunction(n,a),l=this.calculateFunction(s,o.x);return n.x===a.x&&a.x===o.x||tt(l,1)===tt(o.y,1)}},{key:"lineFunction",value:function(n,a){var o=(a.y-n.y)/(a.x-n.x);return[n.y-o*n.x,o]}},{key:"controlPoints",value:function(n,a,o){var d,s=yt,l=Ct,u=!1,c=!1;if(this.isLine(n,a,o))d=this.tangent(n,a,yt,Ct);else{var h={x:this.isMonotonicByField(n,a,o,yt),y:this.isMonotonicByField(n,a,o,Ct)};h.x&&h.y?(d=this.tangent(n,o,yt,Ct),u=!0):(this.invertAxis(n,a,o)&&(s=Ct,l=yt),h[s]?d=0:(d=.01*(o[l]a[s]&&a[s]>n[s]||o[s]2&&void 0!==arguments[2])||arguments[2];return this._axis.slot(n,a,o)}},{key:"range",value:function(){return this._axis.range()}},{key:"valueRange",value:function(){return this._axis.valueRange()}}]),t}(mt),gBe=pBe;function hq(i,r){for(var t=0;t0&&(e=tF.sum(r)/t),e},first:function(r){for(var t=r.length,e=0;e1&&void 0!==arguments[1]?arguments[1]:[qo],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=0;s2&&void 0!==arguments[2]?arguments[2]:a,s={};if(a)for(var l=a.length,u=0;u=0){this.valueGetter=this.createValueGetter(a,o);var f=this.getStandardError(s,this.getAverage(s));this.globalRange=function(g){return{low:g-f,high:g+f}}}}},{key:"createValueGetter",value:function(n,a){var c,o=n.data,s=Qi.current,l=s.valueFields(n),u=Te(o[0])?o[0]:{};return Jr(u)?c=yc("["+(a?l.indexOf(a):0)+"]"):un(u)?c=yc():typeof u===uN&&(c=yc(s.sourceFields(n,l)[l.indexOf(a)])),c}},{key:"getErrorRange",value:function(n,a){var o,s,l;if(!Te(a))return null;if(this.globalRange)return this.globalRange(n);if(Jr(a))o=n-a[0],s=n+a[1];else if(un(l=parseFloat(a)))o=n-l,s=n+l;else{if(!(l=SBe.exec(a)))throw new Error("Invalid ErrorBar value: "+a);var u=n*(parseFloat(l[1])/100);o=n-Math.abs(u),s=n+Math.abs(u)}return{low:o,high:s}}},{key:"getStandardError",value:function(n,a){return this.getStandardDeviation(n,a,!0)/Math.sqrt(a.count)}},{key:"getStandardDeviation",value:function(n,a,o){for(var s=n.length,l=o?a.count-1:a.count,u=0,c=0;c2&&void 0!==arguments[2]?arguments[2]:{},e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=t.defaults=t.defaults||{},a=t.depth=t.depth||0,o=!1;if(t.excluded=t.excluded||[],a>5)return null;for(var s in i)if(!hn(s,t.excluded)&&i.hasOwnProperty(s)){var l=i[s];Ri(l)?(o=!0,e||(i[s]=qt(l(r),n[s]))):gl(l)&&(e||(t.defaults=n[s]),t.depth++,o=Mc(l,r,t,e)||o,t.depth--)}return o}function pF(i){for(var r=i.length,t=0,e=0;e0)return n.value/l}return n.value}},{key:"plotRange",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.categoryPoints[n.categoryIx];if(this.options.isStacked){for(var s=this.plotValue(n),l=s>=0,u=a,c=!1,d=0;d=0&&l||_<0&&!l)&&(u+=_,s+=_,c=!0,this.options.isStacked100&&(s=Math.min(s,1)))}}return c&&(u-=a),[u,s]}var C=n.series,w=this.seriesValueAxis(C),E=this.categoryAxisCrossingValue(w);return[E,C9(n.value)?n.value:E]}},{key:"stackLimits",value:function(n,a){for(var o=Zi,s=br,l=0;l0&&(this.errorTotals.positive[a]=Math.max(this.errorTotals.positive[a]||0,l)),{low:s,high:l}}},{key:"addValue",value:function(n,a){var o=a.categoryIx,s=a.series,l=a.seriesIx,u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]);var c=this.seriesPoints[l];c||(this.seriesPoints[l]=c=[]);var d=this.createPoint(n,a);d&&(Object.assign(d,a),d.owner=this,d.noteText=n.fields.noteText,Te(d.dataItem)||(d.dataItem=s.data[o]),this.addErrorBar(d,n,o)),this.points.push(d),c.push(d),u.push(d),this.updateRange(n.valueFields,a)}},{key:"evalPointOptions",value:function(n,a,o,s,l,u){var c={defaults:l._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},d=this._evalSeries[u];Te(d)||(this._evalSeries[u]=d=Mc(n,{},c,!0));var h=n;return d&&Mc(h=ne({},h),{value:a,category:o,index:s,series:l,dataItem:l.data[s]},c),h}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=n.value,l=this.valueAxisRanges[o];isFinite(s)&&null!==s&&((l=this.valueAxisRanges[o]=l||{min:Zi,max:br}).min=Math.min(l.min,s),l.max=Math.max(l.max,s))}},{key:"seriesValueAxis",value:function(n){var a=this.plotArea,o=n.axis,s=o?a.namedValueAxes[o]:a.valueAxis;if(!s)throw new Error("Unable to locate value axis with name "+o);return s}},{key:"reflow",value:function(n){var a=this,o=this.categorySlots=[],s=this.points,l=this.categoryAxis,u=0;this.traverseDataPoints(function(c,d){var h=d.categoryIx,g=a.seriesValueAxis(d.series),_=s[u++],C=o[h];if(C||(o[h]=C=a.categorySlot(l,h,g)),_){var w=a.plotRange(_,g.startValue()),E=a.valueSlot(g,w);if(E){var M=a.pointSlot(C,E);_.aboveAxis=a.aboveAxis(_,g),_.stackValue=w[1],a.options.isStacked100&&(_.percentage=a.plotValue(_)),a.reflowPoint(_,M)}else _.visible=!1}}),this.reflowCategories(o),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=n}},{key:"valueSlot",value:function(n,a){return n.getSlot(a[0],a[1],!this.options.clip)}},{key:"limitPoints",value:function(){for(var n=this.categoryPoints,a=n[0].concat(Yi(n)),o=0;o=o}},{key:"categoryAxisCrossingValue",value:function(n){var a=this.categoryAxis,o=n.options;return[].concat(o.axisCrossingValues||o.axisCrossingValue)[a.axisIndex||0]||0}},{key:"reflowPoint",value:function(n,a){n.reflow(a)}},{key:"reflowCategories",value:function(){}},{key:"pointSlot",value:function(n,a){var s=this.options.invertAxes,l=s?a:n,u=s?n:a;return new et(l.x1,u.y1,l.x2,u.y2)}},{key:"categorySlot",value:function(n,a){return n.getSlot(a)}},{key:"traverseDataPoints",value:function(n){for(var a=this.options.series,o=pF(a),s=a.length,l=0;l1&&(a=this.createSegment(c,s,o,a),this._addSegment(a)),c=[])}c.length>1&&(a=this.createSegment(c,s,o,a),this._addSegment(a))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(r){this._segments.push(r),r.parent=this},sortPoints:function(r){return r},seriesMissingValues:function(r){var t=r.missingValues;return!t&&this.options.isStacked?Ac:t||mg},getNearestPoint:function(r,t,e){for(var s,n=new Ut(r,t),a=this.seriesPoints[e],o=Zi,l=0;l0&&!1!==o.visible&&this.createStroke({stroke:ne({color:s,opacity:n.opacity,lineCap:"butt"},o)})}},{key:"strokeSegments",value:function(){var n=this._strokeSegments;return n||(n=this._strokeSegments=this.createStrokeSegments()),n}},{key:"createStrokeSegments",value:function(){return this.segmentsFromPoints(this.points())}},{key:"stackSegments",value:function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)}},{key:"createStackSegments",value:function(n){return this.segmentsFromPoints(this.toGeometryPoints(n)).reverse()}},{key:"segmentsFromPoints",value:function(n){return n.map(function(a){return new yl(a)})}},{key:"createStroke",value:function(n){var a=new dt(n);a.segments.push.apply(a.segments,this.strokeSegments()),this.visual.append(a)}},{key:"hasStackSegment",value:function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length}},{key:"createFill",value:function(n){var a=this.strokeSegments(),o=a.slice(0),s=this.hasStackSegment();if(s){var l=this.stackSegments();_f(o,l)}var u=new dt(n);u.segments.push.apply(u.segments,o),!s&&a.length>1&&this.fillToAxes(u),this.visual.append(u)}},{key:"fillToAxes",value:function(n){var a=this.parent,o=a.options.invertAxes,s=a.seriesValueAxis(this.series),l=a.categoryAxisCrossingValue(s),u=s.getSlot(l,l,!0),c=this.strokeSegments(),d=c[0].anchor(),h=Yi(c).anchor(),f=o?u.x1:u.y1;o?n.lineTo(f,h.y).lineTo(f,d.y):n.lineTo(h.x,f).lineTo(d.x,f)}}]),t}(Mg),Rg=JBe,Mq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createStrokeSegments",value:function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))}},{key:"createStackSegments",value:function(n){return this.segmentsFromPoints(this.calculateStepPoints(n)).reverse()}}]),t}(Rg);ne(Mq.prototype,mF);var eGe=Mq,tGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createStrokeSegments",value:function(){var n=new g0(this.options.closed),a=this.points();return n.process(a)}},{key:"createStackSegments",value:function(){for(var n=this.strokeSegments(),a=[],o=n.length-1;o>=0;o--){var s=n[o];a.push(new yl(s.anchor(),s.controlOut(),s.controlIn()))}return a}}]),t}(Rg),bF=tGe,nGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createSegment",value:function(n,a,o,s){var c,d,u=(a.line||{}).style;return this.options.isStacked&&o>0&&s&&("gap"!==this.seriesMissingValues(a)?(d=s.linePoints,c=s):d=this._gapStackPoints(n,o,u)),new(u===gk?eGe:u===_g?bF:Rg)(n,a,o,c,d)}},{key:"reflow",value:function(n){$(q(t.prototype),"reflow",this).call(this,n);var a=this._stackPoints;if(a)for(var o=0;o0&&!C);if(C)o!==gk&&f>l&&!s[_][g-1]&&h.push(this._previousSegmentPoint(f,g,g-1,_)),h.push(C),o!==gk&&f+10&&!c;)c=l[--u][o];return c?c=l[u][a]:(c=this._createGapStackPoint(n),this._stackPoints.push(c)),c}},{key:"_createGapStackPoint",value:function(n){var a=this.pointOptions({},0),o=new Tf(0,a);return o.categoryIx=n,o.series={},o}},{key:"seriesMissingValues",value:function(n){return n.missingValues||Ac}},{key:"supportsPointInactiveOpacity",value:function(){return!1}}]),t}(CF),iGe=nGe,rGe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this)).axisRanges={},e}return v(t,[{key:"update",value:function(n){var a=this.axisRanges;for(var o in n){var s=n[o],l=a[o];a[o]=l=l||{min:Zi,max:br},l.min=Math.min(l.min,s.min),l.max=Math.max(l.max,s.max)}}},{key:"reset",value:function(n){this.axisRanges[n]=void 0}},{key:"query",value:function(n){return this.axisRanges[n]}}]),t}(mt),R0=rGe,Rq=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).textBox=new Yo(e,o.options,a),o.append(o.textBox),o}return v(t,[{key:"createVisual",value:function(){this.textBox.options.noclip=this.options.noclip}},{key:"reflow",value:function(n){var a=this.options,o=a.vertical,s=a.aboveAxis,l=this.children[0],u=l.options,c=l.box,d=l.options.padding,h=n;u.align=o?Qt:Sn,u.vAlign=o?Fn:Qt,a.position===T0?o?(u.vAlign=Fn,!s&&c.height()0&&a.height()>0&&this.createRect(this.visual)}},{key:"createRect",value:function(n){var a=this.options,o=a.border,s=Te(o.opacity)?o.opacity:a.opacity,l=this.box.toRect();l.size.width=Math.round(l.size.width);var u=this.rectVisual=dt.fromRect(l,{fill:{color:this.color,opacity:a.opacity},stroke:{color:this.getBorderColor(),width:o.width,opacity:s,dashType:o.dashType}}),c=this.box.width(),d=this.box.height();if((a.vertical?c:d)>6&&(Ns(u),(c<1||d<1)&&(u.options.stroke.lineJoin="round")),n.append(u),SF(a)){var f=this.createGradientOverlay(u,{baseColor:this.color},ne({end:a.vertical?void 0:[0,1]},a.overlay));n.append(f)}}},{key:"createHighlight",value:function(n){return Ns(dt.fromRect(this.box.toRect(),n))}},{key:"highlightVisual",value:function(){return this.rectVisual}},{key:"highlightVisualArgs",value:function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}}},{key:"getBorderColor",value:function(){var n=this.color,a=this.options.border,o=a._brightness||.8,s=a.color;return Te(s)||(s=new Bs(n).brightness(o).toHex()),s}},{key:"tooltipAnchor",value:function(){var c,d,n=this.options,a=this.box,o=this.aboveAxis,s=this.owner.pane.clipBox()||a,l=Sn,u=Fn;if(n.vertical)c=Math.min(a.x2,s.x2)+5,o?d=Math.max(a.y1,s.y1):(d=Math.min(a.y2,s.y2),u=Zn);else{var h=Math.max(a.x1,s.x1),f=Math.min(a.x2,s.x2);n.isStacked?(u=Zn,o?(l=Gn,c=f):c=h,d=Math.max(a.y1,s.y1)-5):(o?c=f+5:(c=h-5,l=Gn),d=Math.max(a.y1,s.y1))}return{point:new Ut(c,d),align:{horizontal:l,vertical:u}}}},{key:"overlapsBox",value:function(n){return this.box.overlaps(n)}},{key:"pointData",value:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}}}]),t}(Kn);ne(O0.prototype,wl),ne(O0.prototype,xg),O0.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var wF=O0;function Iq(i,r){i.forEach(r)}function Nq(i,r){for(var t=i.length,e=t-1;e>=0;e--)r(i[e],e-t-1)}var Fq=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).forEach=e.rtl?Nq:Iq,n}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=a.vertical,s=a.gap,l=a.spacing,u=this.children,c=u.length,d=o?Ct:yt,h=c+s+l*(c-1),f=(o?n.height():n.width())/h,g=n[d+1]+f*(s/2);this.forEach(u,function(_,C){var w=(_.box||n).clone();w[d+1]=g,w[d+2]=g+f,_.reflow(w),C0&&o.options.set("stroke",{color:this.getBorderColor(),width:a.border.width,dashType:a.border.dashType,opacity:qt(a.border.opacity,a.opacity)}),Ns(o),n.append(o),SF(a)&&n.append(this.createGradientOverlay(o,{baseColor:this.color},ne({end:a.vertical?void 0:[0,1]},a.overlay)))}},{key:"createLines",value:function(n,a){this.drawLines(n,a,this.lines,a.line)}},{key:"drawLines",value:function(n,a,o,s){if(o)for(var l={stroke:{color:s.color||this.color,opacity:qt(s.opacity,a.opacity),width:s.width,dashType:s.dashType,lineCap:"butt"}},u=0;u{4:d}Open:{0:C}High:{1:C}Low:{2:C}Close:{3:C}"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),ne(N0.prototype,wl),ne(N0.prototype,xg);var DF=N0;function Bq(i){return eF(i)===i.length}var Gq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflowCategories",value:function(n){for(var a=this.children,o=a.length,s=0;sd.close&&(f=n.fields.downColor||l.downColor||l.color),Ri(l.color)&&(f=h.color),h.vertical=!this.options.invertAxes;var g=new c(d,h);return g.color=f,g}},{key:"splitValue",value:function(n){return[n.low,n.open,n.close,n.high]}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=this.splitValue(n),l=this.valueAxisRanges[o];l=this.valueAxisRanges[o]=l||{min:Zi,max:br},l=this.valueAxisRanges[o]={min:Math.min.apply(Math,s.concat([l.min])),max:Math.max.apply(Math,s.concat([l.max]))}}},{key:"formatPointValue",value:function(n,a){var o=n.value;return this.chartService.format.auto(a,o.open,o.high,o.low,o.close,n.category)}},{key:"animationPoints",value:function(){return this.points}}]),t}(Rc);ne(Gq.prototype,M0);var EF=Gq,TF=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).createNote(),a}return v(t,[{key:"reflow",value:function(n){var u,c,o=this.value,l=this.owner.seriesValueAxis(this.options);this.boxSlot=c=l.getSlot(o.q1,o.q3),this.realBody=c,this.reflowBoxSlot(n),this.whiskerSlot=u=l.getSlot(o.lower,o.upper),this.reflowWhiskerSlot(n);var d=l.getSlot(o.median);if(o.mean){var h=l.getSlot(o.mean);this.meanPoints=this.calcMeanPoints(n,h)}this.whiskerPoints=this.calcWhiskerPoints(c,u),this.medianPoints=this.calcMedianPoints(n,d),this.box=u.clone().wrap(c),this.reflowNote()}},{key:"reflowBoxSlot",value:function(n){this.boxSlot.x1=n.x1,this.boxSlot.x2=n.x2}},{key:"reflowWhiskerSlot",value:function(n){this.whiskerSlot.x1=n.x1,this.whiskerSlot.x2=n.x2}},{key:"calcMeanPoints",value:function(n,a){return[[[n.x1,a.y1],[n.x2,a.y1]]]}},{key:"calcWhiskerPoints",value:function(n,a){var o=a.center().x;return[[[o-5,a.y1],[o+5,a.y1],[o,a.y1],[o,n.y1]],[[o-5,a.y2],[o+5,a.y2],[o,a.y2],[o,n.y2]]]}},{key:"calcMedianPoints",value:function(n,a){return[[[n.x1,a.y1],[n.x2,a.y1]]]}},{key:"renderOutliers",value:function(n){for(var a=this.value,o=a.outliers||[],s=3*Math.abs(a.q3-a.q1),l=[],u=n.markers||{},c=0;ca.q1-s?n.outliers:n.extremes).border);Te(h.color)||(h.color=Te(this.color)?this.color:new Bs(u.background).brightness(.8).toHex());var f=new Fd({type:u.type,width:u.size,height:u.size,rotation:u.rotation,background:u.background,border:h,opacity:u.opacity});f.value=d,l.push(f)}return this.reflowOutliers(l),l}},{key:"reflowOutliers",value:function(n){for(var a=this.owner.seriesValueAxis(this.options),o=this.box.center(),s=0;s{6:d}Lower:{0:C}Q1:{1:C}Median:{2:C}Mean:{5:C}Q3:{3:C}Upper:{4:C}"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:Ln,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:pl,background:Ln,border:{width:2,opacity:1},opacity:0}}),ne(TF.prototype,wl);var Vq=TF,sGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflowBoxSlot",value:function(n){this.boxSlot.y1=n.y1,this.boxSlot.y2=n.y2}},{key:"reflowWhiskerSlot",value:function(n){this.whiskerSlot.y1=n.y1,this.whiskerSlot.y2=n.y2}},{key:"calcMeanPoints",value:function(n,a){return[[[a.x1,n.y1],[a.x1,n.y2]]]}},{key:"calcWhiskerPoints",value:function(n,a){var o=a.center().y;return[[[a.x1,o-5],[a.x1,o+5],[a.x1,o],[n.x1,o]],[[a.x2,o-5],[a.x2,o+5],[a.x2,o],[n.x2,o]]]}},{key:"calcMedianPoints",value:function(n,a){return[[[a.x1,n.y1],[a.x1,n.y2]]]}}]),t}(Vq),lGe=sGe,uGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"addValue",value:function(n,a){var w,o=a.categoryIx,s=a.category,l=a.series,u=a.seriesIx,c=this.children,d=this.options,h=n.valueFields,g=Bq(this.splitValue(h)),_=l.data[o],C=this.categoryPoints[o];C||(this.categoryPoints[o]=C=[]),g&&(w=this.createPoint(n,a));var E=c[o];E||(E=new I0({vertical:d.invertAxes,gap:d.gap,spacing:d.spacing,rtl:!d.invertAxes&&(this.chartService||{}).rtl}),this.append(E)),w&&(this.updateRange(h,a),E.append(w),w.categoryIx=o,w.category=s,w.series=l,w.seriesIx=u,w.owner=this,w.dataItem=_),this.points.push(w),C.push(w)}},{key:"pointType",value:function(){return this.options.invertAxes?lGe:Vq}},{key:"splitValue",value:function(n){return[n.lower,n.q1,n.median,n.q3,n.upper]}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=this.valueAxisRanges[o],l=this.splitValue(n).concat(this.filterOutliers(n.outliers));Te(n.mean)&&(l=l.concat(n.mean)),s=this.valueAxisRanges[o]=s||{min:Zi,max:br},s=this.valueAxisRanges[o]={min:Math.min.apply(Math,l.concat([s.min])),max:Math.max.apply(Math,l.concat([s.max]))}}},{key:"formatPointValue",value:function(n,a){var o=n.value;return this.chartService.format.auto(a,o.lower,o.q1,o.median,o.q3,o.upper,o.mean,n.category)}},{key:"filterOutliers",value:function(n){for(var a=(n||[]).length,o=[],s=0;s0||n.size<0&&a.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(n.size)),$(q(t.prototype),"addValue",this).call(this,n,a)):(this.points.push(null),this.seriesPoints[a.seriesIx].push(null))}},{key:"reflow",value:function(n){this.updateBubblesSize(n),$(q(t.prototype),"reflow",this).call(this,n)}},{key:"pointType",value:function(){return Uq}},{key:"createPoint",value:function(n,a){var o=a.series,l=a.pointIx*(zs/o.data.length),u={delay:l,duration:zs-l,type:yg},c=a.color||o.color;n.size<0&&o.negativeValues.visible&&(c=qt(o.negativeValues.color,c));var d=ne({labels:{animation:{delay:l,duration:zs-l}}},this.pointOptions(o,a.seriesIx),{markers:{type:pl,border:o.border,opacity:o.opacity,animation:u}});d=this.evalPointOptions(d,n,a),Ri(o.color)&&(c=d.color),d.markers.background=c;var h=new Uq(n,d);return h.color=c,this.append(h),h}},{key:"updateBubblesSize",value:function(n){for(var a=this.options.series,o=Math.min(n.width(),n.height()),s=0;s0&&a.options.set("stroke",{color:n.border.color||this.color,width:n.border.width,dashType:n.border.dashType,opacity:qt(n.border.opacity,n.opacity)}),this.bodyVisual=a,Ns(a),this.visual.append(a)}},{key:"createAnimation",value:function(){this.bodyVisual&&(this.animation=Vs.create(this.bodyVisual,this.options.animation))}},{key:"createHighlight",value:function(n){return dt.fromRect(this.box.toRect(),n)}},{key:"highlightVisual",value:function(){return this.bodyVisual}},{key:"highlightVisualArgs",value:function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}}]),t}(Kn);Mk.prototype.tooltipAnchor=wF.prototype.tooltipAnchor,ze(Mk,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}
    Target: {1}"}}),ne(Mk.prototype,wl),ne(Mk.prototype,xg);var pGe=Mk,xF=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),function gGe(i){for(var r=i.series,t=0;t0}},{key:"createAnimation",value:function(){var n=this.points;this._setAnimationOptions();for(var a=0;a0&&a0&&void 0!==arguments[0]?arguments[0]:this.panes,a=0;a=0;s--)for(var l=0;l0&&(s=Math.max(s,o.width()-u.contentBox.width()))}if(0!==s)for(var c=0;c0){var d=IF(u),h=Math.max(c.y1-d.y1,c.y2-d.y2);o=Math.max(o,c.x1-d.x1);for(var f=0;f0&&a.y.length>0&&(this.alignAxes(a.x,a.y),this.shrinkAxisWidth(n),this.autoRotateAxisLabels(a),this.alignAxes(a.x,a.y),this.shrinkAxisWidth(n)&&this.alignAxes(a.x,a.y),this.shrinkAxisHeight(n),this.alignAxes(a.x,a.y),this.shrinkAxisHeight(n)&&this.alignAxes(a.x,a.y),this.fitAxes(n))}},{key:"autoRotateAxisLabels",value:function(n){for(var s,a=this.panes,o=xGe(a),l=0;l0&&n.y.length>0&&(this.alignAxes(n.x,n.y),this.shrinkAxisWidth(a))}}},{key:"reflowPaneAxes",value:function(n){var a=n.axes,o=a.length;if(o>0)for(var s=0;s-1){for(var a=i.split(".");a.length>1;)n=a.shift(),Te(e[n])||(e[n]={}),e=e[n];n=a.shift()}e[n]=t}var IGe=RGe,FF=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._defaults={},e}return v(t,[{key:"register",value:function(n,a){for(var o=0;os.to,a.reflow(n)),o&&(o.options.aboveAxis=s.to>s.from,o.reflow(n)),this.note&&this.note.reflow(n)}}]),t}(wF);LF.prototype.defaults=ne({},LF.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var NGe=LF,eX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"pointType",value:function(){return NGe}},{key:"pointValue",value:function(n){return n.valueFields}},{key:"formatPointValue",value:function(n,a){return null===n.value.from&&null===n.value.to?"":this.chartService.format.auto(a,n.value.from,n.value.to)}},{key:"plotRange",value:function(n){return n?[n.value.from,n.value.to]:0}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=n.from,l=n.to,u=this.valueAxisRanges[o];null!==n&&un(s)&&un(l)&&((u=this.valueAxisRanges[o]=u||{min:Zi,max:br}).min=Math.min(u.min,s),u.max=Math.max(u.max,s),u.min=Math.min(u.min,l),u.max=Math.max(u.max,l))}},{key:"aboveAxis",value:function(n){var a=n.value;return a.from=0}},{key:"plotRange",value:function(n){return[n.from,n.to]}},{key:"createSegments",value:function(){for(var n=this.options.series,a=this.seriesPoints,o=this.segments=[],s=0;s0){this.invertAxes=hn(n[0].type,[Sl,Pd,Dg,Sg,Eg,bg,Cg,wg]);for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:this.panes;this.createCategoryAxes(n),this.aggregateCategories(n),this.createCategoryAxesLabels(n),this.createCharts(n),this.createValueAxes(n)}},{key:"removeAxis",value:function(n){var a=n.options.name;$(q(t.prototype),"removeAxis",this).call(this,n),n instanceof Ec?delete this.namedCategoryAxes[a]:(this.valueAxisRangeTracker.reset(a),delete this.namedValueAxes[a]),n===this.categoryAxis&&delete this.categoryAxis,n===this.valueAxis&&delete this.valueAxis}},{key:"createCharts",value:function(n){for(var a=this.groupSeriesByPane(),o=0;o0)for(l=s.options.categories=s.options.categories.slice(0);u--;)l.push("");this.valueAxisRangeTracker.update(n.valueAxisRanges),$(q(t.prototype),"appendChart",this).call(this,n,a)}},{key:"seriesPaneName",value:function(n){var a=this.options,o=n.axis;return(Xo([].concat(a.valueAxis),function(h){return h.name===o})[0]||{}).pane||((a.panes||[{}])[0]||{}).name||"default"}},{key:"seriesCategoryAxis",value:function(n){var a=n.categoryAxis,o=a?this.namedCategoryAxes[a]:this.categoryAxis;if(!o)throw new Error("Unable to locate category axis with name "+a);return o}},{key:"stackableChartOptions",value:function(n,a){var o=n.stack;return{isStacked:o,isStacked100:o&&"100%"===o.type,clip:a.options.clip}}},{key:"groupSeriesByCategoryAxis",value:function(n){for(var a=[],o={},s=0;s0&&d.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,category:Og(c),value:Og(d)})}}},{key:"pointPane",value:function(n){for(var a=this.panes,o=0;or?l():e=setTimeout(l,r-o)};return n.cancel=function(){clearTimeout(e)},n}var QGe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._events={},e}return v(t,[{key:"bind",value:function(n,a,o){var s=arguments,l=this,u=cX(n),c=uX(a),d=u.length;if(void 0===a){for(var h in n)this.bind(h,n[h]);return this}for(var f=function(C){var w=u[C],E=c?a:a[w];if(E){if(o){var M=E;(E=function(){l.unbind(w,E),M.apply(l,s)}).original=M}(l._events[w]=l._events[w]||[]).push(E)}},g=0;g1&&void 0!==arguments[1]?arguments[1]:{},o=this._events[n];if(o){var s=o.length;a.sender=this,a._defaultPrevented=!1,a.preventDefault=JGe,a.isDefaultPrevented=eVe,o=o.slice();for(var l=0;l=0;s--)(o[s]===a||o[s].original===a)&&o.splice(s,1);else this._events[n]=[];return this}}]),t}(mt);function uX(i){return"function"==typeof i}function cX(i){return"string"==typeof i?[i]:i}function JGe(){this._defaultPrevented=!0}function eVe(){return!0===this._defaultPrevented}var nVe=["click","mouseenter","mouseleave","mousemove","resize"],iVe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).options=Object.assign({},n),a.element=e,a.element._kendoExportVisual=a.exportVisual.bind(Xe(a)),a._click=a._handler("click"),a._mouseenter=a._handler("mouseenter"),a._mouseleave=a._handler("mouseleave"),a._mousemove=a._handler("mousemove"),a._visual=new sn,ek(e,a.options),a.bind(nVe,a.options),a._enableTracking(),a}return v(t,[{key:"draw",value:function(n){this._visual.children.push(n)}},{key:"clear",value:function(){this._visual.children=[]}},{key:"destroy",value:function(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()}},{key:"eventTarget",value:function(n){for(var o,a=R9(n);!o&&a&&(o=a._kendoNode,a!==this.element);)a=a.parentElement;if(o)return o.srcElement}},{key:"exportVisual",value:function(){return this._visual}},{key:"getSize",value:function(){return ek(this.element)}},{key:"currentSize",value:function(n){if(!n)return this._size;this._size=n}},{key:"setSize",value:function(n){ek(this.element,n),this.currentSize(n),this._resize()}},{key:"resize",value:function(n){var a=this.getSize(),o=this.currentSize();(n||(a.width>0||a.height>0)&&(!o||a.width!==o.width||a.height!==o.height))&&(this.currentSize(a),this._resize(a,n),this.trigger("resize",a))}},{key:"size",value:function(n){if(!n)return this.getSize();this.setSize(n)}},{key:"suspendTracking",value:function(){this._suspendedTracking=!0}},{key:"resumeTracking",value:function(){this._suspendedTracking=!1}},{key:"_enableTracking",value:function(){}},{key:"_resize",value:function(){}},{key:"_handler",value:function(n){var a=this;return function(o){var s=a.eventTarget(o);s&&!a._suspendedTracking&&a.trigger(n,{element:s,originalEvent:o,type:n})}}},{key:"_elementOffset",value:function(){var n=this.element,a=F9(n),o=I9(n);return{left:o.left+a.left,top:o.top+a.top}}},{key:"_surfacePoint",value:function(n){var a=this._elementOffset(),o=M9(n),s=o.x-a.left,l=o.y-a.top,u=P9(this.element).invert();return new Pe(s,l).transform(u)}}]),t}(QGe),UF=iVe,rVe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).childNodes=[],n.parent=null,e&&(n.srcElement=e,n.observe()),n}return v(t,[{key:"destroy",value:function(){this.srcElement&&this.srcElement.removeObserver(this);for(var n=this.childNodes,a=0;a0&&u.load(l);var c=this.element;c&&u.attachTo(c,a)}}},{key:"root",value:function(){for(var n=this;n.parent;)n=n.parent;return n}},{key:"attachTo",value:function(n,a){var o=document.createElement("div");vX(o,""+this.render()+"");var s=o.firstChild.firstChild;s&&(Vt(a)?n.insertBefore(s,n.childNodes[a]||null):n.appendChild(s),this.setElement(s))}},{key:"setElement",value:function(n){this.element&&(this.element._kendoNode=null),this.element=n,this.element._kendoNode=this;for(var a=this.childNodes,o=0;o")}},{key:"renderOffset",value:function(){return Mf("offset",this.srcElement.offset())}},{key:"mapStyle",value:function(){var n=this.srcElement;return[["stop-color",n.color()],["stop-opacity",n.opacity()]]}},{key:"optionsChange",value:function(n){"offset"===n.field?this.attr(n.field,n.value):("color"===n.field||"opacity"===n.field)&&this.css("stop-"+n.field,n.value)}}]),t}(Of),dVe=cVe,hVe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).id=e.id,n.loadStops(),n}return v(t,[{key:"loadStops",value:function(){for(var n=this.srcElement.stops,a=this.element,o=0;o").concat(this.renderChildren(),"")}},{key:"mapCoordinates",value:function(){var n=this.srcElement,a=n.start(),o=n.end();return[["x1",a.x],["y1",a.y],["x2",o.x],["y2",o.y],this.mapSpace()]}}]),t}(mX),vVe=fVe,pVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}},{key:"mapCoordinates",value:function(){var n=this.srcElement,a=n.center(),o=n.radius();return[["cx",a.x],["cy",a.y],["r",o],this.mapSpace()]}}]),t}(mX),gVe=pVe,mVe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).srcElement=e,n.id=e.id,n.load([e]),n}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}}]),t}(Of),_Ve=mVe,yVe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this)).definitionMap={},e}return v(t,[{key:"attachTo",value:function(n){this.element=n}},{key:"template",value:function(){return"".concat(this.renderChildren(),"")}},{key:"definitionChange",value:function(n){var a=n.definitions,o=n.action;"add"===o?this.addDefinitions(a):"remove"===o&&this.removeDefinitions(a)}},{key:"createDefinition",value:function(n,a){var o;return"clip"===n?o=_Ve:"fill"===n&&(a instanceof r0?o=vVe:a instanceof a0&&(o=gVe)),new o(a)}},{key:"addDefinitions",value:function(n){for(var a in n)this.addDefinition(a,n[a])}},{key:"addDefinition",value:function(n,a){var o=this.element,s=this.definitionMap,l=a.id,u=s[l];if(u)u.count++;else{var c=this.createDefinition(n,a);s[l]={element:c,count:1},this.append(c),o&&c.attachTo(this.element)}}},{key:"removeDefinitions",value:function(n){for(var a in n)this.removeDefinition(n[a])}},{key:"removeDefinition",value:function(n){var a=this.definitionMap,o=n.id,s=a[o];s&&(s.count--,0===s.count&&(this.remove(this.childNodes.indexOf(s.element),1),delete a[o]))}}]),t}(Of),kVe=yVe,CVe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).options=e,n.defs=new kVe,n}return v(t,[{key:"attachTo",value:function(n){this.element=n,this.defs.attachTo(n.firstElementChild)}},{key:"clear",value:function(){G0.prototype.clear.call(this)}},{key:"template",value:function(){return this.defs.render()+this.renderChildren()}},{key:"definitionChange",value:function(n){this.defs.definitionChange(n)}}]),t}(Of),_X=CVe,yX={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},zF="solid",bVe={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},SVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){this.attr("d",this.renderData()),this.invalidate()}},{key:"optionsChange",value:function(n){switch(n.field){case"fill":n.value?this.allAttr(this.mapFill(n.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:n.value}));break;case"stroke":n.value?this.allAttr(this.mapStroke(n.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(n.value);break;default:var a=bVe[n.field];a&&this.attr(a,n.value)}$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"content",value:function(){this.element&&(this.element.textContent=this.srcElement.content())}},{key:"renderData",value:function(){return this.printPath(this.srcElement)}},{key:"printPath",value:function(n){var a=n.segments,o=a.length;if(o>0){for(var l,u,s=[],c=1;c")}}]),t}(Of),If=SVe,wVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderData",value:function(){return this.printPath(this.srcElement.toPath())}}]),t}(If),DVe=wVe,EVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){var n=this.center();this.attr("cx",n.x),this.attr("cy",n.y),this.attr("r",this.radius()),this.invalidate()}},{key:"center",value:function(){return this.srcElement.geometry().center}},{key:"radius",value:function(){return this.srcElement.geometry().radius}},{key:"template",value:function(){return"")}}]),t}(If),TVe=EVe,AVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}},{key:"optionsChange",value:function(n){"transform"===n.field&&this.transformChange(n.value),$(q(t.prototype),"optionsChange",this).call(this,n)}}]),t}(Of),xVe=AVe,MVe=/&/g,RVe=//g;function HF(i){return String(i).replace(MVe,"&").replace(RVe,"<").replace(NVe,">").replace(OVe,""").replace(IVe,"'")}var FVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){this.allAttr(this.mapPosition()),this.invalidate()}},{key:"optionsChange",value:function(n){"src"===n.field&&this.allAttr(this.mapSource()),$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"mapPosition",value:function(){var n=this.srcElement.rect(),a=n.topLeft();return[["x",a.x],["y",a.y],["width",n.width()+"px"],["height",n.height()+"px"]]}},{key:"renderPosition",value:function(){return Rf(this.mapPosition())}},{key:"mapSource",value:function(n){var a=this.srcElement.src();return n&&(a=HF(a)),[["xlink:href",a]]}},{key:"renderSource",value:function(){return Rf(this.mapSource(!0))}},{key:"template",value:function(){return"")+""}}]),t}(If),LVe=FVe,PVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderData",value:function(){var n=this.srcElement.paths;if(n.length>0){for(var a=[],o=0;o")}}]),t}(If),VVe=GVe,KF=/&(?:[a-zA-Z]+|#\d+);/g;function jF(i){if(!i||"string"!=typeof i||!KF.test(i))return i;var r=jF._element;return KF.lastIndex=0,i.replace(KF,function(t){return r.innerHTML=t,r.textContent||r.innerText})}"undefined"!=typeof document&&(jF._element=document.createElement("span"));var UVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){var n=this.pos();this.attr("x",n.x),this.attr("y",n.y),this.invalidate()}},{key:"optionsChange",value:function(n){"font"===n.field?(this.attr("style",dX(this.mapStyle())),this.geometryChange()):"content"===n.field&&$(q(t.prototype),"content",this).call(this,this.srcElement.content()),$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"mapStyle",value:function(n){var a=$(q(t.prototype),"mapStyle",this).call(this,n),o=this.srcElement.options.font;return n&&(o=HF(o)),a.push(["font",o],["white-space","pre"]),a}},{key:"pos",value:function(){var n=this.srcElement.position(),a=this.srcElement.measure();return n.clone().setY(n.y+a.baseline)}},{key:"renderContent",value:function(){var n=this.srcElement.content();return yN(n=HF(n=jF(n)))}},{key:"renderTextAnchor",value:function(){var n;return(this.options||{}).rtl&&!(ml.browser.msie||ml.browser.edge)&&(n="end"),Mf("text-anchor",n)}},{key:"template",value:function(){return"").concat(this.renderContent(),"")}}]),t}(If),zVe=UVe;Oc.Arc=DVe,Oc.Circle=TVe,Oc.Group=xVe,Oc.Image=LVe,Oc.MultiPath=BVe,Oc.Path=If,Oc.Rect=VVe,Oc.Text=zVe;var jVe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n))._root=new _X(Object.assign({rtl:"rtl"===KD(e,"direction").direction},a.options)),vX(a.element,a._template()),a._rootElement=a.element.firstElementChild,function KVe(i){var r;try{r=i.getScreenCTM?i.getScreenCTM():null}catch(a){}if(r){var t=-r.e%1,e=-r.f%1,n=i.style;(0!==t||0!==e)&&(n.left=t+"px",n.top=e+"px")}}(a._rootElement),a._root.attachTo(a._rootElement),gN(a.element,{click:a._click,mouseover:a._mouseenter,mouseout:a._mouseleave,mousemove:a._mousemove}),a.resize(),a}return v(t,[{key:"type",get:function(){return"svg"}},{key:"destroy",value:function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,mN(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),$(q(t.prototype),"destroy",this).call(this)}},{key:"translate",value:function(n){var a="".concat(Math.round(n.x)," ").concat(Math.round(n.y)," ").concat(this._size.width," ").concat(this._size.height);this._offset=n,this._rootElement.setAttribute("viewBox",a)}},{key:"draw",value:function(n){$(q(t.prototype),"draw",this).call(this,n),this._root.load([n])}},{key:"clear",value:function(){$(q(t.prototype),"clear",this).call(this),this._root.clear()}},{key:"svg",value:function(){return""+this._template()}},{key:"exportVisual",value:function(){var n=this._visual,a=this._offset;if(a){var o=new sn;o.children.push(n),o.transform(Hn().translate(-a.x,-a.y)),n=o}return n}},{key:"_resize",value:function(){this._offset&&this.translate(this._offset)}},{key:"_template",value:function(){return"").concat(this._root.render(),"")}}]),t}(UF),WVe=jVe,Ic={};function z0(i,r){var t=r.segments;if(0!==t.length){var e=t[0],n=e.anchor();i.moveTo(n.x,n.y);for(var a=1;a0&&c.load(u,a,o),Vt(a)?this.insertAt(c,a):this.append(c)}}},{key:"load",value:function(n,a,o){this.loadElements(n,a,o),this.invalidate()}},{key:"setOpacity",value:function(n){if(this.srcElement){var a=this.srcElement.opacity();Vt(a)&&this.globalAlpha(n,a)}}},{key:"globalAlpha",value:function(n,a){var o=a;o&&n.globalAlpha&&(o*=n.globalAlpha),n.globalAlpha=o}},{key:"visible",value:function(){var n=this.srcElement;return!n||n&&!1!==n.options.visible}}]),t}(G0),bX=qVe,XVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderTo",value:function(n){if(this.visible()){n.save(),this.setTransform(n),this.setClip(n),this.setOpacity(n);for(var a=this.childNodes,o=0;o0;)(a=n.pop()).addObserver(this),"Group"===a.nodeType?Qy(n,a.children):this._insertShape(a)}},{key:"_insertShape",value:function(n){var a=n.bbox();if(a){var o=this.getSectors(a),s=o[0][0],l=o[1][0];if(this.inRoot(o))this.root.insert(n,a);else{var u=this.rootMap;u[s]||(u[s]={}),u[s][l]||(u[s][l]=new tUe(new cn([s*vu,l*vu],[vu,vu]))),u[s][l].insert(n,a)}}}},{key:"remove",value:function(n){if(n.removeObserver(this),"Group"===n.nodeType)for(var a=n.children,o=0;o1||n[1].length>1}},{key:"getSectors",value:function(n){for(var a=n.bottomRight(),o=Math.floor(a.x/vu),s=Math.floor(a.y/vu),l=[[],[]],u=Math.floor(n.origin.x/vu);u<=o;u++)l[0].push(u);for(var c=Math.floor(n.origin.y/vu);c<=s;c++)l[1].push(c);return l}}]),t}(mt);function rUe(i,r){return i._zIndexr._zIndex?-1:0}var EX=iUe,aUe=function(){function i(r){p(this,i),r.bind("mouseenter",this._mouseenter.bind(this)),r.bind("mouseleave",this._mouseleave.bind(this)),this.element=r.element}return v(i,[{key:"clear",value:function(){this._resetCursor()}},{key:"destroy",value:function(){this._resetCursor(),delete this.element}},{key:"_mouseenter",value:function(t){var e=this._shapeCursor(t);e?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(e)):this._resetCursor()}},{key:"_mouseleave",value:function(){this._resetCursor()}},{key:"_shapeCursor",value:function(t){for(var e=t.element;e&&!Vt(e.options.cursor);)e=e.parent;if(e)return e.options.cursor}},{key:"_getCursor",value:function(){if(this.element)return this.element.style.cursor}},{key:"_setCursor",value:function(t){this.element&&(this.element.style.cursor=t,this._current=t)}},{key:"_resetCursor",value:function(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)}}]),i}(),oUe=aUe,lUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderTo",value:function(n){n.save(),this.setTransform(n),this.setClip(n),this.setOpacity(n),n.beginPath(),this.renderPoints(n,this.srcElement),this.setLineDash(n),this.setLineCap(n),this.setLineJoin(n),this.setFill(n),this.setStroke(n),n.restore()}},{key:"setFill",value:function(n){var a=this.srcElement.options.fill,o=!1;return a&&("Gradient"===a.nodeType?(this.setGradientFill(n,a),o=!0):mf(a.color)||(n.fillStyle=a.color,n.save(),this.globalAlpha(n,a.opacity),n.fill(),n.restore(),o=!0)),o}},{key:"setGradientFill",value:function(n,a){var s,o=this.srcElement.rawBBox();if(a instanceof r0){var l=a.start(),u=a.end();s=n.createLinearGradient(l.x,l.y,u.x,u.y)}else if(a instanceof a0){var c=a.center();s=n.createRadialGradient(c.x,c.y,0,c.x,c.y,a.radius())}(function sUe(i,r){for(var t=0;t0)return n.strokeStyle=a.color,n.lineWidth=pN(a.width,1),n.save(),this.globalAlpha(n,a.opacity),n.stroke(),n.restore(),!0}},{key:"dashType",value:function(){var n=this.srcElement.options.stroke;if(n&&n.dashType)return n.dashType.toLowerCase()}},{key:"setLineDash",value:function(n){var a=this.dashType();if(a&&a!==zF){var o=yX[a];n.setLineDash?n.setLineDash(o):(n.mozDash=o,n.webkitLineDash=o)}}},{key:"setLineCap",value:function(n){var a=this.dashType(),o=this.srcElement.options.stroke;a&&a!==zF?n.lineCap="butt":o&&o.lineCap&&(n.lineCap=o.lineCap)}},{key:"setLineJoin",value:function(n){var a=this.srcElement.options.stroke;a&&a.lineJoin&&(n.lineJoin=a.lineJoin)}},{key:"renderPoints",value:function(n,a){z0(n,a)}}]),t}(bX),Nf=lUe,uUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){z0(n,this.srcElement.toPath())}}]),t}(Nf),cUe=uUe,dUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){var a=this.srcElement.geometry(),o=a.center;n.arc(o.x,o.y,a.radius,0,2*Math.PI)}}]),t}(Nf),hUe=dUe,fUe=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this,e)).onLoad=a.onLoad.bind(Xe(a)),a.onError=a.onError.bind(Xe(a)),a.loading=gf();var o=a.img=new Image;return n&&!/^data:/i.test(e.src())&&(o.crossOrigin=n),o.src=e.src(),o.complete?a.onLoad():(o.onload=a.onLoad,o.onerror=a.onError),a}return v(t,[{key:"renderTo",value:function(n){"resolved"===this.loading.state()&&(n.save(),this.setTransform(n),this.setClip(n),this.drawImage(n),n.restore())}},{key:"optionsChange",value:function(n){"src"===n.field?(this.loading=gf(),this.img.src=this.srcElement.src()):$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"onLoad",value:function(){this.loading.resolve(),this.invalidate()}},{key:"onError",value:function(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))}},{key:"drawImage",value:function(n){var a=this.srcElement.rect(),o=a.topLeft();n.drawImage(this.img,o.x,o.y,a.width(),a.height())}}]),t}(Nf),vUe=fUe,pUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){for(var a=this.srcElement.paths,o=0;o"}},{key:"_enableTracking",value:function(){this._searchTree=new EX,this._cursor=new oUe(this),$(q(t.prototype),"_enableTracking",this).call(this)}},{key:"_trackMouse",value:function(n){if(!this._suspendedTracking){var a=this.eventTarget(n);if("click"!==n.type){var o=this._currentShape;o&&o!==a&&this.trigger("mouseleave",{element:o,originalEvent:n,type:"mouseleave"}),a&&o!==a&&this.trigger("mouseenter",{element:a,originalEvent:n,type:"mouseenter"}),this.trigger("mousemove",{element:a,originalEvent:n,type:"mousemove"}),this._currentShape=a}else a&&this.trigger("click",{element:a,originalEvent:n,type:"click"})}}}]),t}(UF),TX=CUe,AX=function(){return"undefined"!=typeof document},wUe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._items=[{name:"svg",type:WVe},{name:"canvas",type:TX}],e}return v(t,[{key:"create",value:function(n,a){var o=this._items,s=o[0];if(a&&a.type)for(var l=a.type.toLowerCase(),u=0;ua.x2&&(h=a.x2-o.x),sa.y2&&(f=a.y2-o.y),l=0;n--)t(r[n],n)},UUe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,Object.assign({},BUe,n)))._rect=e,a._fieldMap={},a}return v(t,[{key:"rect",value:function(n){return n?(this._rect=n,this):this._rect}},{key:"_initMap",value:function(){var n=this.options,a=this._fieldMap;"horizontal"===n.orientation?(a.sizeField="width",a.groupsSizeField="height",a.groupAxis="x",a.groupsAxis="y"):(a.sizeField="height",a.groupsSizeField="width",a.groupAxis="y",a.groupsAxis="x"),n.reverse?(this.forEach=VUe,this.justifyAlign=PUe):(this.forEach=GUe,this.justifyAlign=H0)}},{key:"reflow",value:function(){if(this._rect&&0!==this.children.length){this._initMap(),this.options.transform&&this.transform(null);for(var E,M,R,n=this.options,a=this._rect,o=this._initGroups(),s=o.groups,l=o.groupsSize,u=this._fieldMap,c=u.sizeField,d=u.groupsSizeField,h=u.groupAxis,f=u.groupsAxis,g=new Pe,_=new Pe,C=new kf,w=H0(l,a,n.alignContent,f,d),N=function(H,se){var me=M.elements[se];_[h]=E,_[f]=H0(H.size[d],R,n.alignItems,f,d),function LUe(i,r,t){var e=t.transform()||Hn(),n=e.matrix();n.e+=i.x-r.origin.x,n.f+=i.y-r.origin.y,e.matrix(n),t.transform(e)}(_,H,me),E+=H.size[c]+n.spacing},V=0;Va.size[c]){var U=a.size[c]/R.size[c],ee=R.topLeft().scale(U,U),G=H0(R.size[d]*U,a,n.alignContent,f,d),I=Hn();"x"===h?I.translate(a.origin.x-ee.x,G-ee.y):I.translate(G-ee.x,a.origin.y-ee.y),I.scale(U,U),this.transform(I)}}}},{key:"_initGroups",value:function(){for(var n=this.options,a=this.children,o=n.lineSpacing,s=n.wrap,l=n.spacing,u=this._fieldMap.sizeField,c=this._newGroup(),d=[],h=function(){d.push(c),f+=c.lineSize+o},f=-o,g=0;gthis._rect.size[u]?0===c.bboxes.length?(this._addToGroup(c,C,_),h(),c=this._newGroup()):(h(),c=this._newGroup(),this._addToGroup(c,C,_)):this._addToGroup(c,C,_))}return c.bboxes.length&&h(),{groups:d,groupsSize:f}}},{key:"_addToGroup",value:function(n,a,o){n.size+=a.size[this._fieldMap.sizeField]+this.options.spacing,n.lineSize=Math.max(a.size[this._fieldMap.groupsSizeField],n.lineSize),n.bboxes.push(a),n.elements.push(o)}},{key:"_newGroup",value:function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}}]),t}(sn),zUe=UUe,HUe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e)).chartService=n,a}return v(t,[{key:"render",value:function(){var n=this.children,a=this.options,o=a.vertical;this.visual=new zUe(null,{spacing:o?0:a.spacing,lineSpacing:o?a.spacing:0,orientation:o?"vertical":"horizontal",reverse:a.rtl,alignItems:o?"start":"center"});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(n=r.call(this,e)).chartService=a,hn(n.options.position,[Fn,Gn,Zn,Sn,K0])||(n.options.position=Gn),n.createContainers(),n.createLegendTitle(e.title),n.createItems(),n}return v(t,[{key:"createContainers",value:function(){var n=this.options,a=n.position,o=n.align,s=a,l=Qt;a===K0?s=Sn:hn(a,[Fn,Zn])?(s="start"===o?Sn:"end"===o?Gn:Qt,l=a):o&&("start"===o?l=Fn:"end"===o&&(l=Zn)),this.container=new Cf({margin:n.margin,padding:n.padding,background:n.background,border:n.border,vAlign:l,align:s,zIndex:n.zIndex,shrinkToFit:!0}),this.itemsContainer=this.hasTitle()?new Cf({vAlign:l,align:s,zIndex:n.zIndex,shrinkToFit:!0}):this.container,this.append(this.container)}},{key:"createItems",value:function(){var n=this.getService(),a=this.options,o=this.isVertical(),s=new KUe({vertical:o,spacing:a.spacing,rtl:n.rtl},n),l=a.items;a.reverse&&(l=l.slice(0).reverse());for(var u=l.length,c=0;c0}},{key:"reflow",value:function(n){var a=this.options,o=n.clone();this.hasItems()?(a.position===K0?(this.containerCustomReflow(o),this.box=o):this.containerReflow(o),this.hasTitle()&&this.title.reflow(new et(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=o}},{key:"containerReflow",value:function(n){var a=this.options,o=this.container,s=a.position,l=a.width,u=a.height,c=s===Fn||s===Zn?yt:Ct,d=this.isVertical(),h=n.clone(),f=n.clone();(s===Sn||s===Gn)&&(f.y1=h.y1=0),d&&u?(f.y2=f.y1+u,f.align(h,Ct,o.options.vAlign)):!d&&l&&(f.x2=f.x1+l,f.align(h,yt,o.options.align)),o.reflow(f);var g=(f=o.box).clone();(a.offsetX||a.offsetY)&&(f.translate(a.offsetX,a.offsetY),o.reflow(f)),g[c+1]=n[c+1],g[c+2]=n[c+2],this.box=g}},{key:"containerCustomReflow",value:function(n){var a=this.options,o=this.container,s=a.offsetX,l=a.offsetY,u=a.width,c=a.height,d=this.isVertical(),h=n.clone();d&&c?h.y2=h.y1+c:!d&&u&&(h.x2=h.x1+u),o.reflow(h),o.reflow(new et(s,l,s+(h=o.box).width(),l+h.height()))}},{key:"renderVisual",value:function(){this.hasItems()&&$(q(t.prototype),"renderVisual",this).call(this)}},{key:"createLegendTitle",value:function(n){var a=ne({},{color:Xi,position:Fn,align:Qt},n),o=a.text;if(n&&!1!==n.visible){if(Te(a)&&a.visible){var s=ea(a);s?o=s({text:o}):a.format&&(o=this.chartService.format.auto(a.format,o))}this.title=new Yo(o,a),this.createTitleLayout(),this.appendTitleLayoutContent()}}},{key:"createTitleLayout",value:function(){this.layout=new ON({vertical:!0,wrap:!1}),this.container.append(this.layout)}},{key:"hasTitle",value:function(){return Boolean(this.options.title&&!1!==this.options.title.visible)}},{key:"appendTitleLayoutContent",value:function(){this.options.title.position===Zn?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))}}]),t}(Kn);ze(NX,{position:Gn,items:[],offsetX:0,offsetY:0,margin:ti(5),padding:ti(5),border:{color:Xi,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:Sn,vAlign:Qt}});var qUe=NX,XF=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._registry=[],e}return v(t,[{key:"register",value:function(n,a){this._registry.push({type:n,seriesTypes:a})}},{key:"create",value:function(n,a,o){for(var u,s=this._registry,l=s[0],c=0;c0){l=d;break}}return new l.type(u,a,o)}}]),t}(mt);XF.current=new XF;var Nc=XF;function Fc(i){var r=document.createElement("div");return i&&(r.className=i),r}function FX(i){for(var r=i;r&&!Yy(r,"k-handle");)r=r.parentNode;return r}var LX=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t),s=r.call(this);var l=e.element;return s.options=ne({},s.options,a),s.chart=e,s.observer=o,s.chartElement=l,s.categoryAxis=n,s._dateAxis=s.categoryAxis instanceof vk,s.initOptions(),s.visible=s.options.visible&&l.offsetHeight,s.visible&&(s.createElements(),s.set(s._index(s.options.from),s._index(s.options.to)),s.bindEvents()),s}return v(t,[{key:"onPane",value:function(n){return this.categoryAxis.pane===n}},{key:"createElements",value:function(){var n=this.options,a=this.wrapper=Fc("k-selector");Oi(a,{top:n.offset.top,left:n.offset.left,width:n.width,height:n.height,direction:"ltr"});var o=this.selection=Fc("k-selection");this.leftMask=Fc("k-mask"),this.rightMask=Fc("k-mask"),a.appendChild(this.leftMask),a.appendChild(this.rightMask),a.appendChild(o),o.appendChild(Fc("k-selection-bg"));var s=this.leftHandle=Fc("k-handle k-left-handle"),l=this.rightHandle=Fc("k-handle k-right-handle");s.appendChild(Fc()),l.appendChild(Fc()),o.appendChild(s),o.appendChild(l),this.chartElement.appendChild(a);var u=Oi(o,["borderLeftWidth","borderRightWidth","height"]),c=Oi(s,"height").height,d=Oi(l,"height").height;n.selection={border:{left:u.borderLeftWidth,right:u.borderRightWidth}},Oi(s,{top:(u.height-c)/2}),Oi(l,{top:(u.height-d)/2}),a.style.cssText=a.style.cssText}},{key:"bindEvents",value:function(){!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),nk(this.wrapper,De({},A0,this._mousewheelHandler))),this._domEvents=LN.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})}},{key:"initOptions",value:function(){var n=this.options,o=this.categoryAxis.pane.chartsBox(),s=this.chart.chartService.intl;this._dateAxis&&ne(n,{min:ya(s,n.min),max:ya(s,n.max),from:ya(s,n.from),to:ya(s,n.to)});var l=Oi(this.chartElement,["paddingLeft","paddingTop"]),u=l.paddingLeft,c=l.paddingTop;this.options=ne({},{width:o.width(),height:o.height()+.1,padding:{left:u,top:c},offset:{left:o.x1+u,top:o.y1+c},from:n.min,to:n.max},n)}},{key:"destroy",value:function(){this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(rk(this.wrapper,De({},A0,this._mousewheelHandler)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)}},{key:"_rangeEventArgs",value:function(n){return{axis:this.categoryAxis.options,from:this._value(n.from),to:this._value(n.to)}}},{key:"_start",value:function(n){var a=this.options,o=_l(n);if(!this._state&&o){this.chart._unsetActivePoint(),this._state={moveTarget:FX(o)||o,startLocation:n.x?n.x.location:0,range:{from:this._index(a.from),to:this._index(a.to)}};var s=this._rangeEventArgs({from:this._index(a.from),to:this._index(a.to)});this.trigger(hF,s)&&(this._state=null)}}},{key:"_press",value:function(n){var a;(a=this._state?this._state.moveTarget:FX(_l(n)))&&Za(a,"k-handle-active")}},{key:"_move",value:function(n){if(this._state){var a=this._state,o=this.options,s=this.categoryAxis,l=a.range,u=a.moveTarget,c=s.options.reverse,d=this._index(o.from),h=this._index(o.to),f=this._index(o.min),g=this._index(o.max),_=a.startLocation-n.x.location,C={from:l.from,to:l.to},w=l.to-l.from,E=Oi(this.wrapper,"width").width/(s.categoriesCount()-1),M=Math.round(_/E)*(c?-1:1);if(u){var R=Yy(u,"k-left-handle"),N=Yy(u,"k-right-handle");Yy(u,"k-selection k-selection-bg")?(l.from=Math.min(Math.max(f,d-M),g-w),l.to=Math.min(l.from+w,g)):R&&!c||N&&c?(l.from=Math.min(Math.max(f,d-M),g-1),l.to=Math.max(l.from+1,l.to)):(R&&c||N&&!c)&&(l.to=Math.min(Math.max(f+1,h-M),g),l.from=Math.min(l.to-1,l.from)),(l.from!==C.from||l.to!==C.to)&&(this.move(l.from,l.to),this.trigger(Ak,this._rangeEventArgs(l)))}}}},{key:"_end",value:function(){if(this._state){var n=this._state.moveTarget;n&&function g2e(i,r){i&&i.className&&(i.className=i.className.replace(r,"").replace(p2e," "))}(n,"k-handle-active");var a=this._state.range;this.set(a.from,a.to),this.trigger(fF,this._rangeEventArgs(a)),delete this._state}}},{key:"_tap",value:function(n){var a=this.options,o=this.categoryAxis,s=this.chart._eventCoordinates(n),l=o.pointCategoryIndex(new Ut(s.x,o.box.y1)),u=this._index(a.from),c=this._index(a.to),d=this._index(a.min),h=this._index(a.max),f=c-u,_={},C=3===n.event.which,w=Math.round(u+f/2-l);this._state||C||(this.chart._unsetActivePoint(),o.options.justified||w--,_.from=Math.min(Math.max(d,u-w),h-f),_.to=Math.min(_.from+f,h),this._start(n),this._state&&(this._state.range=_,this.trigger(Ak,this._rangeEventArgs(_)),this._end()))}},{key:"_mousewheel",value:function(n){var a=this,o=hN(n);if(this._start({target:this.selection}),this._state){var s=this._state.range;n.preventDefault(),n.stopPropagation(),Math.abs(o)>1&&(o*=3),this.options.mousewheel.reverse&&(o*=-1),this.expand(o)&&this.trigger(Ak,{axis:this.categoryAxis.options,delta:o,originalEvent:n,from:this._value(s.from),to:this._value(s.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(function(){a._end()},150)}}},{key:"_gesturestart",value:function(n){var a=this.options;this._state={range:{from:this._index(a.from),to:this._index(a.to)}};var o=this._rangeEventArgs(this._state.range);this.trigger(hF,o)?this._state=null:n.preventDefault()}},{key:"_gestureend",value:function(){this._state&&(this.trigger(fF,this._rangeEventArgs(this._state.range)),delete this._state)}},{key:"_gesturechange",value:function(n){var a=this.chart,s=this.options,l=this.categoryAxis,u=this._state.range,c=a._toModelCoordinates(n.touches[0].x.location).x,d=a._toModelCoordinates(n.touches[1].x.location).x,h=Math.min(c,d),f=Math.max(c,d);n.preventDefault(),u.from=l.pointCategoryIndex(new Ut(h))||s.min,u.to=l.pointCategoryIndex(new Ut(f))||s.max,this.move(u.from,u.to),this.trigger(Ak,this._rangeEventArgs(u))}},{key:"_index",value:function(n){var a=n;return n instanceof Date&&(a=this.categoryAxis.categoryIndex(n)),a}},{key:"_value",value:function(n){var a=n;return this._dateAxis&&(a=this.categoryAxis.categoryAt(n))>this.options.max&&(a=this.options.max),a}},{key:"_slot",value:function(n){var a=this.categoryAxis,o=this._index(n);return a.getSlot(o,o,!0)}},{key:"move",value:function(n,a){var o=this.options,s=this.categoryAxis.options.reverse,l=o.offset,u=o.padding,c=o.selection.border,h=s?n:a,f="x"+(s?2:1),g=this._slot(s?a:n),_=tt(g[f]-l.left+u.left);Oi(this.leftMask,{width:_}),Oi(this.selection,{left:_}),g=this._slot(h);var C=tt(o.width-(g[f]-l.left+u.left));Oi(this.rightMask,{width:C});var w=o.width-C;w!==o.width&&(w+=c.right),Oi(this.rightMask,{left:w}),Oi(this.selection,{width:Math.max(o.width-(_+C)-c.right,0)})}},{key:"set",value:function(n,a){var o=this.options,s=this._index(o.min),l=this._index(o.max),u=Mt(this._index(n),s,l),c=Mt(this._index(a),u+1,l);o.visible&&this.move(u,c),o.from=this._value(u),o.to=this._value(c)}},{key:"expand",value:function(n){var a=this.options,o=this._index(a.min),s=this._index(a.max),l=a.mousewheel.zoom,u=this._index(a.from),c=this._index(a.to),d={from:u,to:c},h=ne({},d);if(this._state&&(d=this._state.range),l!==Gn&&(d.from=Mt(Mt(u-n,0,c-1),o,s)),l!==Sn&&(d.to=Mt(Mt(c+n,d.from+1,s),o,s)),d.from!==h.from||d.to!==h.to)return this.set(d.from,d.to),!0}},{key:"zoom",value:function(n,a){var o=this.options,s=this._index(o.min),l=this._index(o.max),u=this._index(o.from),c=this._index(o.to),d={from:u,to:c},h=ne({},d),g=yt+(this.categoryAxis.options.reverse?"2":"1"),_=this.categoryAxis.lineBox(),C=Math.abs(_[g]-a.x),w=_.width(),E=tt(C/w,2),M=tt(E*n),R=tt((1-E)*n);if(this._state&&(d=this._state.range),d.from=Mt(Mt(u-M,0,c-1),s,l),d.to=Mt(Mt(c+R,d.from+1,l),s,l),d.from!==h.from||d.to!==h.to)return this.set(d.from,d.to),!0}},{key:"trigger",value:function(n,a){return(this.observer||this.chart).trigger(n,a)}}]),t}(mt);ze(LX,{visible:!0,mousewheel:{zoom:"both"},min:br,max:Zi});var PX=LX,YUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"show",value:function(n){if(n&&n.tooltipAnchor&&(!this._current||this._current!==n)){var a=ne({},this.options,n.options.tooltip),o=n.tooltipAnchor();o?(this._current=n,$(q(t.prototype),"show",this).call(this,{point:n,anchor:o},a,n)):this.hide()}}},{key:"hide",value:function(){delete this._current,$(q(t.prototype),"hide",this).call(this)}}]),t}(MF),QUe=YUe,BX=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e.chartService,n)).plotArea=e,a.formatService=e.chartService.format,a}return v(t,[{key:"showAt",value:function(n,a){var o=Xo(n,function(c){var d=c.series.tooltip;return!(d&&!1===d.visible)});if(o.length>0){var s=o[0],l=this.plotArea.categoryAxis.getSlot(s.categoryIx),u=a?this._slotAnchor(a,l):this._defaultAnchor(s,l);this.show({anchor:u,shared:!0,points:n,category:s.category,categoryText:this.formatService.auto(this.options.categoryFormat,s.category),series:this.plotArea.series},this.options)}}},{key:"_slotAnchor",value:function(n,a){return this.plotArea.categoryAxis.options.vertical||(n.x=a.center().x),{point:n,align:{horizontal:"left",vertical:"center"}}}},{key:"_defaultAnchor",value:function(n,a){var o=n.owner.pane.chartsBox(),s=this.plotArea.categoryAxis.options.vertical,l=o.center(),u=a.center();return{point:s?new Ut(l.x,u.y):new Ut(u.x,l.y),align:{horizontal:"center",vertical:"center"}}}}]),t}(MF);ze(BX,{categoryFormat:"{0:d}"});var GX=BX,VX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.element,a=this.options;if(n.bbox()){this.origin=a.origin;var s=a.vertical?Ct:yt,l=this.fromScale=new Pe(1,1);l[s]=pk,n.transform(Hn().scale(l.x,l.y))}else this.abort()}},{key:"step",value:function(n){var a=Fs(this.fromScale.x,1,n),o=Fs(this.fromScale.y,1,n);this.element.transform(Hn().scale(a,o,this.origin))}},{key:"abort",value:function(){$(q(t.prototype),"abort",this).call(this),this.element.transform(null)}}]),t}(Vs);ze(VX,{duration:zs}),uu.current.register(Sl,VX);var UX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.center=this.element.bbox().center();this.element.transform(Hn().scale(pk,pk,n))}},{key:"step",value:function(n){this.element.transform(Hn().scale(n,n,this.center))}}]),t}(Vs);ze(UX,{easing:"easeOutElastic"}),uu.current.register(yg,UX);var zX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)}},{key:"step",value:function(n){this.element.opacity(n*this.fadeTo)}}]),t}(Vs);ze(zX,{duration:200,easing:"linear"}),uu.current.register(Ld,zX);var HX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this.element.transform(Hn().scale(pk,pk,this.options.center))}},{key:"step",value:function(n){this.element.transform(Hn().scale(n,n,this.options.center))}}]),t}(Vs);ze(HX,{easing:"easeOutElastic",duration:zs}),uu.current.register(Bd,HX);var KX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"render",value:function(){$(q(t.prototype),"render",this).call(this),this.renderSegments()}},{key:"createSegment",value:function(n,a,o){return new(a.style===_g?_F:Mg)(n,a,o)}},{key:"animationPoints",value:function(){return $(q(t.prototype),"animationPoints",this).call(this).concat(this._segments)}},{key:"createMissingValue",value:function(n,a){if(a===Ac){var o={x:n.x,y:n.y};return Qo(o.x)||(o.x=0),Qo(o.y)||(o.y=0),o}}}]),t}(F0);ne(KX.prototype,yF);var jX=KX,ZF=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initFields",value:function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new R0,this.yAxisRangeTracker=new R0}},{key:"render",value:function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.panes,a=this.groupSeriesByPane(),o=0;o0&&this.appendChart(new F0(this,{series:n,clip:a.options.clip}),a)}},{key:"createScatterLineChart",value:function(n,a){n.length>0&&this.appendChart(new jX(this,{series:n,clip:a.options.clip}),a)}},{key:"createBubbleChart",value:function(n,a){n.length>0&&this.appendChart(new fGe(this,{series:n,clip:a.options.clip}),a)}},{key:"createXYAxis",value:function(n,a,o){for(var s=n.name,l=a?this.namedYAxes:this.namedXAxes,u=a?this.yAxisRangeTracker:this.xAxisRangeTracker,c=ne({reverse:!a&&this.chartService.rtl},n,{vertical:a}),d=Gd(c.type,E0),h=u.query(),f=d?{min:.1,max:1}:{min:0,max:1},g=u.query(s)||h||f,_=[c.min,c.max],C=this.series,w=0;w0&&h.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,x:Og(d),y:Og(h)})}},{key:"updateAxisOptions",value:function(n,a){var o=n.options.vertical,s=this.groupAxes(this.panes),l=(o?s.y:s.x).indexOf(n);WX(this.options,l,o,a),WX(this.originalOptions,l,o,a)}}]),t}(Vd);function WX(i,r,t,e){ne([].concat(t?i.yAxis:i.xAxis)[r],e)}ze(ZF,{xAxis:{},yAxis:{}}),ne(ZF.prototype,Rk);var JUe=ZF,YF=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,a)).value=e,o.sector=n,o}return v(t,[{key:"render",value:function(){var n=this.options.labels,a=this.owner.chartService,o=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var s=ea(n),l=this.pointData();if(s?o=s(l):n.format&&(o=a.format.auto(n.format,o)),n.visible&&(o||0===o)){if(n.position===Qt||n.position===T0)n.color||(n.color=DN(this.options.color)),n.background||(n.background=this.options.color);else{var u=a.theme.seriesDefaults.labels;n.color=n.color||u.color,n.background=n.background||u.background}this.label=new Yo(o,ne({},n,{align:Qt,vAlign:"",animation:{type:Ld,delay:this.animationDelay}}),l),this.append(this.label)}}}},{key:"reflow",value:function(n){this.render(),this.box=n,this.reflowLabel()}},{key:"reflowLabel",value:function(){var n=this.options.labels,a=this.label,o=this.sector.clone(),s=n.distance,l=o.middle();if(a){var d,u=a.box.height(),c=a.box.width();if(n.position===Qt)o.radius=Math.abs((o.radius-u)/2)+u,d=o.point(l),a.reflow(new et(d.x,d.y-u/2,d.x,d.y));else if(n.position===T0)o.radius=o.radius-u/2,d=o.point(l),a.reflow(new et(d.x,d.y-u/2,d.x,d.y));else{var h;(d=o.clone().expand(s).point(l)).x>=o.center.x?(h=d.x+c,a.orientation=Gn):(h=d.x-c,a.orientation=Sn),a.reflow(new et(h,d.y-u,d.x,d.y))}}}},{key:"createVisual",value:function(){var n=this,a=this.sector,o=this.options;if($(q(t.prototype),"createVisual",this).call(this),this.value)if(o.visual){var s=(a.startAngle+180)%360,l=o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new Pe(a.center.x,a.center.y),radius:a.radius,innerRadius:a.innerRadius,startAngle:s,endAngle:s+a.angle,options:o,sender:this.getSender(),createVisual:function(){var c=new sn;return n.createSegmentVisual(c),c}});l&&this.visual.append(l)}else this.createSegmentVisual(this.visual)}},{key:"createSegmentVisual",value:function(n){var a=this.sector,o=this.options,s=o.border||{},u=o.color,c={color:u,opacity:o.opacity},d=this.createSegment(a,ne({fill:c,stroke:{opacity:o.opacity},zIndex:o.zIndex},s.width>0?{stroke:{color:s.color,width:s.width,opacity:s.opacity,dashType:s.dashType}}:{}));n.append(d),SF(o)&&n.append(this.createGradientOverlay(d,{baseColor:u,fallbackFill:c},ne({center:[a.center.x,a.center.y],innerRadius:a.innerRadius,radius:a.radius,userSpace:!0},o.overlay)))}},{key:"createSegment",value:function(n,a){return a.singleSegment?new kl(new bo(new Pe(n.center.x,n.center.y),n.radius),a):n0.current.createRing(n,a)}},{key:"createAnimation",value:function(){var a=this.sector.center;ne(this.options,{animation:{center:[a.x,a.y],delay:this.animationDelay}}),$(q(t.prototype),"createAnimation",this).call(this)}},{key:"createHighlight",value:function(n){var a=this.options.highlight||{},o=a.border||{};return this.createSegment(this.sector,ne({},n,{fill:{color:a.color,opacity:a.opacity},stroke:{opacity:o.opacity,width:o.width,color:o.color}}))}},{key:"highlightVisual",value:function(){return this.visual.children[0]}},{key:"highlightVisualArgs",value:function(){var n=this.sector;return{options:this.options,radius:n.radius,innerRadius:n.innerRadius,center:new Pe(n.center.x,n.center.y),startAngle:n.startAngle,endAngle:n.angle+n.startAngle,visual:this.visual}}},{key:"tooltipAnchor",value:function(){var n=this.sector.clone().expand(5),a=n.middle();return{point:n.point(a),align:nze(a+180)}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}},{key:"pointData",value:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}}}]),t}(Kn),eze=tt(Sr(30),10),tze=tt(Sr(60),10);function nze(i){var r=Sr(i),t=tt(Math.sin(r),10),e=tt(Math.cos(r),10);return{horizontal:Math.abs(t)>tze?Qt:e<0?Gn:Sn,vertical:Math.abs(t)f-5?f-5:N,_.translate(w.x-C.x,w.y-C.y);for(var V=f-N,U=new Ut(V+_.x1+N,V+_.y1+N),ee=0;ee0&&(M.sort(this.labelComparator(!0)),this.leftLabelsReflow(M)),R.length>0&&(R.sort(this.labelComparator(!1)),this.rightLabelsReflow(R)),this.box=_}},{key:"leftLabelsReflow",value:function(n){var a=this.distanceBetweenLabels(n);this.distributeLabels(a,n)}},{key:"rightLabelsReflow",value:function(n){var a=this.distanceBetweenLabels(n);this.distributeLabels(a,n)}},{key:"distanceBetweenLabels",value:function(n){var a=Yi(this.points),o=a.sector,s=n.length-1,l=o.radius+a.options.labels.distance,u=[],c=n[0].box,d=tt(c.y1-(o.center.y-l-c.height()-c.height()/2));u.push(d);for(var h=0;h0&&(s>=0||l0){var u=Math.min(n[o],l);l-=u,n[o]-=u,n[a]+=u}return l}},{key:"reflowLabels",value:function(n,a){var h,o=Yi(this.points),s=o.sector,l=o.options.labels,u=a.length,c=l.distance,d=s.center.y-(s.radius+c)-a[0].box.height();n[0]+=2;for(var f=0;fc.center.x?(M=c.center.x-c.radius-4,g.lineTo(u.options.labels.align!==xc?M>E.x?M:w.x-8:M,w.y),g.lineTo(E.x,R.y)):(N.y=R.y,g.lineTo(N.x,N.y))),g.lineTo(R.x,R.y),this._connectorLines.push(g),this.visual.append(g)}}}}},{key:"renderVisual",value:function(){if($(q(t.prototype),"renderVisual",this).call(this),H9(this.options.series,function(u){return u.autoFit})){var n=this.targetBox,a=this.box.center(),o=this.visual.bbox();if(!o)return;var s=o.bottomRight(),l=Math.min((a.y-n.y1)/(a.y-o.origin.y),(n.y2-a.y)/(s.y-a.y),(a.x-n.x1)/(a.x-o.origin.x),(n.x2-a.x)/(s.x-a.x));l<1&&this.visual.transform(Hn().scale(l,l,[a.x,a.y]))}}},{key:"labelComparator",value:function(n){var a=n?-1:1;return function(o,s){return((o.parent.sector.middle()+270)%360-(s.parent.sector.middle()+270)%360)*a}}},{key:"hAlignLabel",value:function(n,a,o,s,l){var u=a.radius,c=a.center,d=c.x,h=c.y,f=Math.min(Math.abs(h-o),Math.abs(h-s));return f>u?n:d+Math.sqrt(u*u-f*f)*(l?1:-1)}},{key:"pointInCircle",value:function(n,a,o){return Math.pow(a.x-n.x,2)+Math.pow(a.y-n.y,2)u-5?u-5:f),_=0,w=0;w1)for(var n=function kze(i){for(var r=[],t=0;t1){var s=o[0].linePoints[0],l=Yi(o),u=Yi(l.linePoints);0===s.categoryIx&&u.categoryIx===u.categoriesCount-1&&Yi(o).linePoints.push(s)}}}},{key:"createSegment",value:function(n,a,o){var u=new(a.style===_g?_F:Mg)(n,a,o),c=this.seriesMissingValues(a);return(n.length===a.data.length||c===mg)&&(u.options.closed=!0),u}}]),t}(CF);ze(rZ,{clip:!1,limitPoints:!1});var aZ=rZ,Cze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"fillToAxes",value:function(){}}]),t}(bF),bze=Cze,Sze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"fillToAxes",value:function(){}}]),t}(Rg),wze=Sze,Dze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createSegment",value:function(n,a,o,s){var c,d,h,u=(a.line||{}).style;return this.options.isStacked&&o>0&&s&&(d=s.linePoints.slice(0),c=s),u===_g?(h=new bze(n,a,o,c,d)).options.closed=!0:(n.push(n[0]),h=new wze(n,a,o,c,d)),h}},{key:"seriesMissingValues",value:function(n){return n.missingValues||Ac}}]),t}(aZ),Eze=Dze,oZ=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),r.call(this,e,null,n)}return v(t)}(QX);ze(oZ,{overlay:{gradient:"none"},labels:{distance:10}});var Tze=oZ,sZ=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).forEach=e.rtl?Nq:Iq,n}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=this.children,s=a.gap,l=a.spacing,u=o.length,d=n.angle/(u+s+l*(u-1)),h=n.startAngle+d*(s/2);this.forEach(o,function(f){var g=n.clone();g.startAngle=h,g.angle=d,f.sector&&(g.radius=f.sector.radius),f.reflow(g),f.sector=g,h+=d+d*l})}}]),t}(Kn);ze(sZ,{gap:1,spacing:0});var Aze=sZ,xze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflow",value:function(n){var a=this.options.reverse,o=this.children,s=o.length,l=a?s-1:0,u=a?-1:1;this.box=new et;for(var c=l;c>=0&&c1,a.isStacked100=l&&"100%"===l.type&&s.length>1,a.isStacked100&&(this._isStacked100=!0)}return a}},{key:"createAreaChart",value:function(n,a){if(0!==n.length){var o=new Eze(this,this.chartOptions(n));this.appendChart(o,a)}}},{key:"createLineChart",value:function(n,a){if(0!==n.length){var o=new aZ(this,this.chartOptions(n));this.appendChart(o,a)}}},{key:"createBarChart",value:function(n,a){if(0!==n.length){var o=n[0],s=this.chartOptions(n);s.gap=o.gap,s.spacing=o.spacing;var l=new Rze(this,s);this.appendChart(l,a),this._hasBarCharts=!0}}},{key:"seriesCategoryAxis",value:function(){return this.categoryAxis}},{key:"_dispatchEvent",value:function(n,a,o){var s=n._eventCoordinates(a),l=new Ut(s.x,s.y),u=this.categoryAxis.getCategory(l),c=this.valueAxis.getValue(l);null!==u&&null!==c&&n.trigger(o,{element:_l(a),category:u,value:c})}},{key:"createCrosshairs",value:function(){}}]),t}(eZ);ne(n2.prototype,Rk,{appendChart:xf.prototype.appendChart,aggregateSeries:xf.prototype.aggregateSeries,seriesSourcePoints:xf.prototype.seriesSourcePoints}),ze(n2,{categoryAxis:{categories:[]},valueAxis:{}});var Oze=n2,r2=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).value=e,o.options.index=a.index,o}return v(t,[{key:"reflow",value:function(n){var a=this.points,o=this.children[0];this.box=new et(a[0].x,a[0].y,a[1].x,a[2].y),o&&o.reflow(new et(n.x1,a[0].y,n.x2,a[2].y))}},{key:"createVisual",value:function(){var o,n=this,a=this.options;$(q(t.prototype),"createVisual",this).call(this),(o=a.visual?a.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:a,sender:this.getSender(),createVisual:function(){return n.createPath()}}):this.createPath())&&this.visual.append(o)}},{key:"createPath",value:function(){var n=this.options,a=n.border;return dt.fromPoints(this.points,{fill:{color:n.color,opacity:n.opacity},stroke:{color:a.color,opacity:a.opacity,width:a.width}}).close()}},{key:"createHighlight",value:function(n){return dt.fromPoints(this.points,n)}},{key:"highlightVisual",value:function(){return this.visual.children[0]}},{key:"highlightVisualArgs",value:function(){var n=dt.fromPoints(this.points).close();return{options:this.options,path:n}}},{key:"tooltipAnchor",value:function(){var n=this.box;return{point:new Ut(n.center().x,n.y1),align:{horizontal:"center",vertical:"top"}}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}}]),t}(Kn);ze(r2,{color:Ln,border:{width:1}}),ne(r2.prototype,wl);var Ize=r2,a2=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).plotArea=e,a.points=[],a.labels=[],a.legendItems=[],a.render(),a}return v(t,[{key:"formatPointValue",value:function(n,a){return this.chartService.format.auto(a,n.value)}},{key:"render",value:function(){var a=this.plotArea.options.seriesColors,o=void 0===a?[]:a,s=this.options.series[0],l=s.data;if(l)for(var u=qq(s),c=u.total,d=u.points,h=0;hd.percentage&&(d=l[h]);for(var f=c.percentage/d.percentage*a,g=(a-f)/2,_=0,C=0;C1&&void 0!==arguments[1]?arguments[1]:.05,e=Ps(r),n=1-t;return function(a){var o=e.toHSL(),s=100-o.l;return o.l+=Math.min((n-a)*s,s),o.toCss()}}(l)(n.value/this.valueRange.max));var c=new lZ(n,s);return c.color=l,this.append(c),c}},{key:"seriesAxes",value:function(n){var a=n.xAxis,o=n.yAxis,s=this.plotArea,l=a?s.namedXAxes[a]:s.axisX,u=o?s.namedYAxes[o]:s.axisY;if(!l)throw new Error("Unable to locate X axis with name "+a);if(!u)throw new Error("Unable to locate Y axis with name "+o);return{xAxis:l,yAxis:u}}},{key:"reflow",value:function(n){var a=this,o=this.points,s=!this.options.clip,l=0;this.traverseDataPoints(function(u,c){var d=o[l++],h=a.seriesAxes(c.series),f=h.xAxis,g=h.yAxis,_=f.categoryIndex(u.x),C=g.categoryIndex(u.y),w=f.getSlot(_,_,s),E=g.getSlot(C,C,s);if(d)if(w&&E){var M=a.pointSlot(w,E);d.reflow(M)}else d.visible=!1}),this.box=n}},{key:"pointSlot",value:function(n,a){return new et(n.x1,a.y1,n.x2,a.y2)}},{key:"traverseDataPoints",value:function(n){for(var a=this.options.series,o=0;o0&&void 0!==arguments[0]?arguments[0]:this.panes;this.bindCategories(),this.createAxes(n),this.createCharts(n),this.createAxisLabels()}},{key:"bindCategories",value:function(){for(var n=this.srcSeries||this.series,a=0;a0&&h.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,x:Og(d),y:Og(h)})}},{key:"updateAxisOptions",value:function(n,a){var o=n.options.vertical,s=this.groupAxes(this.panes),l=(o?s.y:s.x).indexOf(n);uZ(this.options,l,o,a),uZ(this.originalOptions,l,o,a)}},{key:"crosshairOptions",value:function(n){return Object.assign({},n.options.crosshair,{zIndex:0})}}]),t}(Vd);function uZ(i,r,t,e){ne([].concat(t?i.yAxis:i.xAxis)[r],e)}ze(s2,{xAxis:{},yAxis:{}}),ne(s2.prototype,Rk);var Vze=s2,Jo="color",es="first",Qa="max",Lc="noteText";Nc.current.register(xf,[Sl,xc,yk,Dg,mk,Sg,kg,kk,Pd,Sk,_k,wg,bk,bg,wk,Cg,Ck,Eg]),Nc.current.register(JUe,[lF,uF,yg]),Nc.current.register(YX,[Bd]),Nc.current.register(uze,[C0]),Nc.current.register(Lze,[b0]),Nc.current.register(yze,[aF,oF,sF]),Nc.current.register(Oze,[S0,w0,D0]),Nc.current.register(Vze,[rF]),Qi.current.register([Sl,xc,yk,Dg,mk,Sg],[qo],[fu,Jo,Lc,vq,pq]),Qi.current.register([bk,bg,Ck,Eg],["from","to"],[fu,Jo,Lc]),Qi.current.register([wk,Cg],[qo],[fu,Jo,Lc,"summary"]),Qi.current.register([aF,oF,sF],[yt,Ct],[Jo]),Qi.current.register([S0,w0,D0],[qo],[Jo]),Qi.current.register([b0],[qo],[fu,Jo,"visibleInLegend","visible"]),Af.current.register([Sl,xc,yk,Dg,mk,Sg,wk,Cg],{value:Qa,color:es,noteText:es,errorLow:"min",errorHigh:Qa}),Af.current.register([bk,bg,Ck,Eg],{from:"min",to:Qa,color:es,noteText:es}),Af.current.register([S0,w0,D0],{value:Qa,color:es}),Qi.current.register([lF,uF,yg],[yt,Ct],[Jo,Lc,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Qi.current.register([yg],[yt,Ct,"size"],[Jo,fu,Lc]),Qi.current.register([rF],[yt,Ct,qo],[Jo,Lc]),Qi.current.register([kg,kk],["open","high","low","close"],[fu,Jo,"downColor",Lc]),Af.current.register([kg,kk],{open:Qa,high:Qa,low:"min",close:Qa,color:es,downColor:es,noteText:es}),Qi.current.register([_k,wg],["lower","q1","median","q3","upper","mean","outliers"],[fu,Jo,Lc]),Af.current.register([_k,wg],{lower:Qa,q1:Qa,median:Qa,q3:Qa,upper:Qa,mean:Qa,outliers:es,color:es,noteText:es}),Qi.current.register([Pd,Sk],["current","target"],[fu,Jo,"visibleInLegend",Lc]),Af.current.register([Pd,Sk],{current:Qa,target:Qa,color:es,noteText:es}),Qi.current.register([Bd,C0],[qo],[fu,Jo,"explode","visibleInLegend","visible"]);var u2=[fu,qo,yt,Ct],Ff="mousemove",cZ="contextmenu",dZ="mouseleave",hZ=function(i){b(t,i);var r=S(t);function t(e,n,a){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};p(this,t),(o=r.call(this)).observers=[],o.addObserver(s.observer),o.chartService=new NN(Xe(o),s),o.chartService.theme=a,o._initElement(e);var l=ne({},o.options,n);return o._originalOptions=ne({},l),o._theme=a,o._initTheme(l,a),o._initHandlers(),o._initSurface(),o.bindCategories(),K2e.preloadFonts(n,function(){o.fontLoaded=!0,o._destroyed||(o.trigger("init"),o._redraw(),o._attachEvents())}),o}return v(t,[{key:"_initElement",value:function(n){for(this._setElementClass(n),n.style.position="relative";n.firstChild;)n.removeChild(n.firstChild);this.element=n}},{key:"_setElementClass",value:function(n){Za(n,"k-chart")}},{key:"_initTheme",value:function(n,a){for(var o=[],s=n.series||[],l=0;l0||a.height>0;n||s&&(!o||a.width!==o.width||a.height!==o.height)?(this._size=a,this._resize(a,n),this.trigger("resize",a)):s&&this._selections&&H9(this._selections,function(l){return!l.visible})&&(this._destroySelections(),this._setupSelection())}},{key:"_resize",value:function(){this._noTransitionsRedraw()}},{key:"redraw",value:function(n){if(this.applyDefaults(this.options),this.applySeriesColors(),n){var a=this._model._plotArea,o=a.findPane(n);a.redraw(o)}else this._redraw()}},{key:"getAxis",value:function(n){return hq(n,this._plotArea.axes)}},{key:"findAxisByName",value:function(n){return this.getAxis(n)}},{key:"findPaneByName",value:function(n){for(var a=this._plotArea.panes,o=0;o=0){var c=this._plotArea.pointsByCategoryIndex(u);o.showAt(c)}}else l&&o.show(l)}},{key:"hideTooltip",value:function(){this._tooltip.hide()}},{key:"_initSurface",value:function(){var n=this.surface,a=this._surfaceWrap(),o=this.options.chartArea||{};o.width&&kc(a,{width:o.width}),o.height&&kc(a,{height:o.height}),n&&n.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=Ik.create(a,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))}},{key:"_surfaceWrap",value:function(){return this.element}},{key:"_redraw",value:function(){var n=this._getModel();this._size={width:n.options.width,height:n.options.height},this._destroyView(),this._model=n,this._plotArea=n._plotArea,n.renderVisual(),!1!==this.options.transitions&&n.traverse(function(a){a.animation&&a.animation.setup()}),this._initSurface(),this.surface.draw(n.visual),!1!==this.options.transitions&&n.traverse(function(a){a.animation&&a.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new AUe,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),pZ(this._plotArea.panes),this._navState||this._cancelDomEvents()}},{key:"exportVisual",value:function(n){var a;if(n&&(n.width||n.height||n.options)){var o=this.options,s=ne({},n.options,{chartArea:{width:n.width,height:n.height}});c2(this._originalOptions,s),this.options=ne({},this._originalOptions,s),this._initTheme(this.options,this._theme),this.bindCategories();var l=this._getModel();l.renderVisual(),pZ(l._plotArea.panes),a=l.visual,this.options=o}else a=this.surface.exportVisual();return a}},{key:"_sharedTooltip",value:function(){return this._plotArea instanceof xf&&this.options.tooltip&&this.options.tooltip.shared}},{key:"_createPannable",value:function(){var n=this.options;!1!==n.pannable&&(this._pannable=new xUe(this._plotArea,n.pannable))}},{key:"_createZoomSelection",value:function(){var n=this.options.zoomable,a=(n||{}).selection;!1!==n&&!1!==a&&(this._zoomSelection=new MUe(this,a))}},{key:"_createMousewheelZoom",value:function(){var n=this.options.zoomable,a=(n||{}).mousewheel;!1!==n&&!1!==a&&(this._mousewheelZoom=new FUe(this,a))}},{key:"_toggleDragZoomEvents",value:function(){var a=this.options.zoomable,s=(a||{}).mousewheel,l=!(this.options.pannable||!1!==a&&!1!==(a||{}).selection||this.requiresHandlers([dF,Dk,Ek])),u=(!1===a||!1===s)&&!this.requiresHandlers([Tk,Tg,Ag]),c=this.element;this._dragZoomEnabled&&l&&u?(c.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):!this._dragZoomEnabled&&!(l&&u)&&(c.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!l,!u)}},{key:"_toggleDomEvents",value:function(n,a){var o=this.domEvents;!o||(o.toggleDrag&&o.toggleDrag(n),o.toggleZoom&&o.toggleZoom(a))}},{key:"_createTooltip",value:function(){var n=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(n):new QUe(this.chartService,n)}},{key:"_createSharedTooltip",value:function(n){return new GX(this._plotArea,n)}},{key:"applyDefaults",value:function(n,a){(function Wze(i,r){var e,n,a,t=(r||{}).axisDefaults||{};function o(l){var u=(l||{}).color||n.color,c=ne({},t,t[e],n,n[e],{line:{color:u},labels:{color:u},title:{color:u}},l);return delete c[e],c}for(var s=0;s1?a:a[0]})(n,a),function $ze(i,r){var t=i.series,e=t.length,n=i.seriesDefaults,a=ne({},i.seriesDefaults),o=r?ne({},r.seriesDefaults):{},s=ne({},o);vZ(a),vZ(s);for(var l=0;l=0&&this.observers.splice(a,1)}},{key:"requiresHandlers",value:function(n){for(var a=this.observers,o=0;o1&&void 0!==arguments[1]?arguments[1]:{};n===kq&&(a.anchor.point=this._toDocumentCoordinates(a.anchor.point)),a.sender=this;for(var o=this.observers,s=!1,l=0;l=.1){s=Math.round(10*s),this._gestureDistance=n.distance;var l={delta:s,axisRanges:Nk(this._plotArea.axes),originalEvent:n};if(this._zooming||!this.trigger(Tk,l)){var u=this._eventCoordinates(n);this._zooming||(this._zooming=!0),(l.axisRanges=a.updateRanges(s,u))&&!this.trigger(Tg,l)&&a.zoom()}}}}},{key:"_mouseout",value:function(n){if(n.element){var a=this._drawingChartElement(n.element,n);a&&a.leave&&a.leave(this,n.originalEvent)}}},{key:"_start",value:function(n){var a=this._eventCoordinates(n);this._stopChartHandlers(n)||!this._plotArea.backgroundContainsPoint(a)||(this.requiresHandlers([dF,Dk,Ek])&&this._startNavigation(n,a,dF),this._pannable&&this._pannable.start(n)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(n)&&this.trigger(Tk,{axisRanges:Nk(this._plotArea.axes),originalEvent:n}))}},{key:"_move",value:function(n){var a=this._navState,o=this._pannable;if(!this._stopChartHandlers(n)){if(o){var s=o.move(n);s&&!this.trigger(Dk,{axisRanges:s,originalEvent:n})&&o.pan()}else if(a){for(var l={},u=a.axes,c=0;c1,u=this._hasInactiveOpacity();return this._updateHoveredPoint(o,a),o&&s!==o&&o.hover?(this._activePoint=o,!this._sharedTooltip()&&!o.hover(this,a)&&(this._displayTooltip(o),u?this._displayInactiveOpacity(o,l):this._highlight.show(o))):!o&&u&&(l&&this._activeChartInstance&&(this._updateSeriesOpacity(o,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),o}},{key:"_displayTooltip",value:function(n){ne({},this.options.tooltip,n.options.tooltip).visible&&this._tooltip.show(n)}},{key:"_displayInactiveOpacity",value:function(n,a,o){var s=this._activeChartInstance=this._chartInstanceFromPoint(n);if(s)if(a)this._updateSeriesOpacity(n),this._applySeriesOpacity(s.children,null,!0),this._applySeriesOpacity(s.children,n.series),this._highlight.show(o||n);else{var l;if(!s.supportsPointInactiveOpacity())return void this._highlight.show(n);(l=this._getInactivePoints(n,s))&&l.length&&this._highlight.show(l,1-this._getInactiveOpacityForSeries(n.series))}}},{key:"_getInactivePoints",value:function(n,a){return this._getAllPointsOfType(a,n.constructor).filter(function(s){return s!==n})}},{key:"_getAllPointsOfType",value:function(n,a){for(var o=[],s=0;s0;return n||a}},{key:"_getInactiveOpacityForSeries",value:function(n){return n.highlight.inactiveOpacity||this.options.seriesDefaults.highlight.inactiveOpacity||n.opacity||1}},{key:"_getDefaultOpacityForSeries",value:function(n){return n.defaultOpacity||n.opacity||1}},{key:"_mouseover",value:function(n){var a=this._startHover(n.element,n.originalEvent);a&&a.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),nk(document,De({},Ff,this._mouseMoveTrackHandler)))}},{key:"_mouseMoveTracking",value:function(n){var a=this.options,o=this._tooltip,s=this._highlight,l=this._activePoint,u=this._eventCoordinates(n);if(this._plotArea.box.containsPoint(u)){if(l&&l.tooltipTracking&&l.series&&l.parent.getNearestPoint){var c=l.parent.getNearestPoint(u.x,u.y,l.seriesIx);c&&c!==l&&(this._activePoint=c,!c.hover(this,n))&&(ne({},a.tooltip,c.options.tooltip).visible&&o.show(c),s.show(c))}}else rk(document,De({},Ff,this._mouseMoveTrackHandler)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null}},{key:"_mousemove",value:function(n){var a=this._eventCoordinates(n),o=this._plotArea;if(this._trackCrosshairs(a),o.hover){var s=o.backgroundContainsPoint(a);s?(o.hovered=!0,this._plotArea.hover(this,n)):o.hovered&&!s&&(this.trigger(cF),o.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(a,n)}},{key:"_trackCrosshairs",value:function(n){for(var a=this._plotArea.crosshairs,o=0;o0&&!this.trigger(_q,_)?(s.visible&&c.showAt(f,n),d.show(f),this._sharedHighlight=!0):c.hide(),this._tooltipCategoryIx=h}else o&&this._sharedHighlight&&(d.hide(),c.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(d.hide(),c.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}}},{key:"hideElements",value:function(n){var a=this._plotArea;this._mousemove.cancel(),a.hideCrosshairs(),this._unsetActivePoint(n)}},{key:"_unsetActivePoint",value:function(n){var a=this._tooltip,o=this._highlight;this._activePoint=null,this._hoveredPoint=null,a&&!(n&&n.keepTooltipOpen)&&a.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,o&&o.hide()}},{key:"_deferRedraw",value:function(){this._redraw()}},{key:"_clearRedrawTimeout",value:function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)}},{key:"bindCategories",value:function(){for(var a=[].concat(this.options.categoryAxis),o=0;o0)for(var E=(d=Zq(n,m0(f.categoryField,_[0])))?Xq:m0,M=0;M0){d&&(u=function Xze(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wf,t=qze(i,r),e=t.length,n=e>0?[t[0]]:[],a=1;a1,u):s.show(u)}},{key:"_shouldAttachMouseMove",value:function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([yq,cF])}},{key:"updateMouseMoveHandler",value:function(){rk(this.element,De({},Ff,this._mousemove)),this._shouldAttachMouseMove()&&nk(this.element,De({},Ff,this._mousemove))}},{key:"applyOptions",value:function(n,a){c2(this._originalOptions,n),this._originalOptions=ne(this._originalOptions,n),this.options=ne({},this._originalOptions),a&&(this._theme=a,this.chartService.theme=a),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()}},{key:"setOptions",value:function(n,a){this.applyOptions(n,a),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()}},{key:"setDirection",value:function(n){this.chartService.rtl=Boolean(n),this.surface&&"svg"===this.surface.type&&this._destroySurface()}},{key:"setIntlService",value:function(n){this.chartService.intl=n}},{key:"noTransitionsRedraw",value:function(){this._noTransitionsRedraw()}},{key:"destroy",value:function(){var n;this._destroyed=!0,rk(this.element,(De(n={},cZ,this._clickHandler),De(n,A0,this._mousewheelHandler),De(n,Ff,this._mousemove),De(n,dZ,this._mouseleaveHandler),n)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&rk(document,De({},Ff,this._mouseMoveTrackHandler)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()}},{key:"_destroySurface",value:function(){var n=this.surface;n&&(n.unbind("mouseenter",this._surfaceMouseenterHandler),n.unbind("mouseleave",this._surfaceMouseleaveHandler),n.destroy(),this.surface=null)}},{key:"_destroySelections",value:function(){var n=this._selections;if(n)for(;n.length>0;)n.shift().destroy()}},{key:"_destroyView",value:function(){var n=this._model;n&&(n.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)}}]),t}(mt);function fZ(i,r){if(i)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:wf,t=1,e=i.length;t0&&(_+=o.left+o.right),_}},{key:"_createSharedTooltip",value:function(n){return new e3e(this._plotArea,n)}}],[{key:"normalizeOptions",value:function(n){var a=yZ(n);return(a=Jr(a)?{seriesDefaults:{data:a}}:ne({},a)).series||(a.series=[{data:yZ(a.data)}]),ne(a,{seriesDefaults:{type:a.type}}),(hn(a.series[0].type,gZ)||hn(a.seriesDefaults.type,gZ))&&(a=ne({},{categoryAxis:{crosshair:{visible:!1}}},a)),a}}]),t}(d2);ze(kZ,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var i3e=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this._initialOpacity=parseFloat(Oi(this.element,"opacity").opacity)}},{key:"step",value:function(n){Oi(this.element,{opacity:String(Fs(this._initialOpacity,0,n))})}},{key:"abort",value:function(){$(q(t.prototype),"abort",this).call(this),Oi(this.element,{display:"none",opacity:String(this._initialOpacity)})}},{key:"cancel",value:function(){$(q(t.prototype),"abort",this).call(this),Oi(this.element,{opacity:String(this._initialOpacity)})}}]),t}(Vs),r3e=i3e;function f2(i,r){var t=document.createElement("div");return t.className=i,r&&(t.style.cssText=r),t}var CZ=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;p(this,t),(o=r.call(this)).options=ne({},o.options,a),o.container=e,o.chartService=n;var s=Oi(e,["paddingLeft","paddingTop"]);return o.chartPadding={top:s.paddingTop,left:s.paddingLeft},o.createElements(),e.appendChild(o.element),o}return v(t,[{key:"createElements",value:function(){var n=this.element=f2("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),a=this.tooltip=f2("k-tooltip k-chart-tooltip"),o=this.scroll=f2("k-scroll");a.innerHTML=" ",n.appendChild(a),n.appendChild(o)}},{key:"show",value:function(n,a,o){var s=this.element,l=this.options,u=this.scroll,c=this.tooltip,d=ni(ii(n)+ii(a-n)/2),h=.4*o.width(),f=o.center().x-h,w=(o.center().x-f)/(l.max-l.min),E=d-l.min,M=this.chartService.intl.format(l.format,n,a),R=ea(l);this.clearHideTimeout(),this._visible||(Oi(s,{visibility:"hidden",display:"block"}),this._visible=!0),R&&(M=R({from:n,to:a})),c.innerHTML=M,Oi(c,{left:o.center().x-c.offsetWidth/2,top:o.y1});var N=Oi(c,["marginTop","borderTopWidth","height"]);Oi(u,{width:h,left:f+E*w,top:o.y1+N.marginTop+N.borderTopWidth+N.height/2}),Oi(s,{visibility:"visible"})}},{key:"clearHideTimeout",value:function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()}},{key:"hide",value:function(){var n=this;this.clearHideTimeout(),this._hideTimeout=setTimeout(function(){n._visible=!1,n._hideAnimation=new r3e(n.element),n._hideAnimation.setup(),n._hideAnimation.play()},this.options.hideDelay)}},{key:"destroy",value:function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll}}]),t}(mt);ze(CZ,{format:"{0:d} - {1:d}",hideDelay:500});var a3e=CZ,Ud="_navigator",Pc=Ud,s3e=function(i){b(t,i);var r=S(t);function t(e){var n,a;p(this,t),(a=r.call(this)).chart=e;var o=a.options=ne({},a.options,e.options.navigator),s=o.select;return s&&(s.from=a.parseDate(s.from),s.to=a.parseDate(s.to)),Te(o.hint.visible)||(o.hint.visible=o.visible),a.chartObserver=new dN(Xe(a),(De(n={},Dk,"_drag"),De(n,Ek,"_dragEnd"),De(n,Tg,"_zoom"),De(n,Ag,"_zoomEnd"),n)),e.addObserver(a.chartObserver),a}return v(t,[{key:"parseDate",value:function(n){return ya(this.chart.chartService.intl,n)}},{key:"clean",value:function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)}},{key:"destroy",value:function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()}},{key:"redraw",value:function(){this._redrawSelf(),this.initSelection()}},{key:"initSelection",value:function(){var n=this.chart,a=this.options,o=this.mainAxis(),s=o.roundedRange(),l=s.min,u=s.max,c=a.select,d=c.from,h=c.to,f=c.mousewheel,g=function l3e(i){return bZ.prototype=i,new bZ}(o);0!==o.categoriesCount()&&(this.clean(),g.box=o.box,this.selection=new PX(n,g,{min:l,max:u,from:d||l,to:h||u,mousewheel:qt(f,{zoom:"left"}),visible:a.visible},new dN(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),a.hint.visible&&(this.hint=new a3e(n.element,n.chartService,{min:l,max:u,template:ea(a.hint),format:a.hint.format})))}},{key:"setRange",value:function(){var o=this.chart._createPlotArea(!0).namedCategoryAxes[Pc].roundedRange(),s=o.min,l=o.max,u=this.options.select||{},c=u.from||s;cl&&(d=l),this.options.select=ne({},u,{from:c,to:d}),this.filterAxes()}},{key:"_redrawSelf",value:function(n){var a=this.chart._plotArea;a&&a.redraw(Yi(a.panes),n)}},{key:"redrawSlaves",value:function(){var n=this.chart,a=n._plotArea,o=a.panes.slice(0,-1);a.srcSeries=n.options.series,a.options.categoryAxis=n.options.categoryAxis,a.clearSeriesPointsCache(),a.redraw(o)}},{key:"_drag",value:function(n){var g,a=this.chart,o=this.selection,s=a._eventCoordinates(n.originalEvent),l=this.mainAxis(),u=l.roundedRange(),c=l.pane.box.containsPoint(s),h=n.axisRanges[a._plotArea.categoryAxis.options.name],f=this.options.select;if(h&&!c&&o){g=f.from&&f.to?ii(f.to)-ii(f.from):ii(o.options.to)-ii(o.options.from);var _=ni(Mt(ii(h.min),u.min,ii(u.max)-g)),C=ni(Mt(ii(_)+g,ii(u.min)+g,u.max));this.options.select={from:_,to:C},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),o.set(_,C),this.showHint(_,C)}}},{key:"_dragEnd",value:function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()}},{key:"readSelection",value:function(){var n=this.selection.options,o=n.to,s=this.options.select;s.from=n.from,s.to=o}},{key:"filterAxes",value:function(){for(var n=this.options.select,a=void 0===n?{}:n,s=this.chart.options.categoryAxis,l=a.from,u=a.to,c=0;c1&&(d*=3),f-h>1?(o.zoom(d,g),this.readSelection()):(a.options.min=l.from,l.from=a.scaleRange(-n.delta*this.chart._mousewheelZoomRate(),g).min),u&&(this.filterAxes(),this.redrawSlaves()),o.set(l.from,l.to),this.showHint(this.options.select.from,this.options.select.to)}}},{key:"_zoomEnd",value:function(n){this._dragEnd(n)}},{key:"showHint",value:function(n,a){this.hint&&this.hint.show(n,a,this.chart._plotArea.backgroundBox())}},{key:"_selectStart",value:function(n){return this.chart._selectStart(n)}},{key:"_select",value:function(n){return this.showHint(n.from,n.to),this.chart._select(n)}},{key:"_selectEnd",value:function(n){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(n)}},{key:"mainAxis",value:function(){var n=this.chart._plotArea;if(n)return n.namedCategoryAxes[Pc]}},{key:"select",value:function(n,a){var o=this.options.select;return n&&a&&(o.from=this.parseDate(n),o.to=this.parseDate(a),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(n,a)),{from:o.from,to:o.to}}}],[{key:"setup",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n.__navi){n.__navi=!0;var o=ne({},a.navigator,n.navigator),s=n.panes=[].concat(n.panes),l=ne({},o.pane,{name:Ud});o.visible||(l.visible=!1,l.height=.1),s.push(l),t.attachAxes(n,o),t.attachSeries(n,o,a)}}},{key:"attachAxes",value:function(n,a){var o=a.series||[],s=n.categoryAxis=[].concat(n.categoryAxis),l=n.valueAxis=[].concat(n.valueAxis),c=0===Ji(o,mq).length,d=ne({type:"date",pane:Ud,roundToBaseUnit:!c,justified:c,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:a.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),h=a.categoryAxis;s.push(ne({},d,{maxDateGroups:200},h,{name:Pc,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),ne({},d,h,{name:Pc+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),ne({},d,h,{name:Pc+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),l.push(ne({name:Pc,pane:Ud,majorGridLines:{visible:!1},visible:!1},a.valueAxis))}},{key:"attachSeries",value:function(n,a,o){for(var s=n.series=n.series||[],l=[].concat(a.series||[]),u=o.seriesColors,c=a.seriesDefaults,d=0;d3&&void 0!==arguments[3]?arguments[3]:{};return p(this,t),(o=r.call(this)).element=e,o.theme=a,o.contextService=new NN(Xe(o),s),o._originalOptions=ne({},o.options,n),o.options=ne({},o._originalOptions),o._initTheme(a),o.redraw(),o}return v(t,[{key:"destroy",value:function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement}},{key:"value",value:function(n){var a=this.pointers[0];if(0===arguments.length)return a.value();a.value(n),this._setValueOptions(n)}},{key:"_draw",value:function(){var n=this.surface;n.clear(),n.draw(this._visuals)}},{key:"exportVisual",value:function(){return this._visuals}},{key:"allValues",value:function(n){var a=this.pointers,o=[];if(0===arguments.length){for(var s=0;s0&&(s=LZ(s,o.width)),p3e.fromRect(s,{stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n.background}})}},{key:"_initSurface",value:function(){var n=this.options,a=this.surface,o=this._surfaceElement(),s=this._surfaceSize();kc(o,s),a&&a.options.type===n.renderAs?(this.surface.clear(),this.surface.resize()):(a&&a.destroy(),this.surface=g3e.create(o,{type:n.renderAs}))}},{key:"_surfaceSize",value:function(){var n=this.options,a=this._getSize();return n.gaugeArea&&ne(a,n.gaugeArea),a}},{key:"_surfaceElement",value:function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement}},{key:"getSize",value:function(){return this._getSize()}},{key:"_getSize",value:function(){var n=this.element,a=this._defaultSize(),o=n.offsetWidth,s=n.offsetHeight;return o||(o=a.width),s||(s=a.height),{width:o,height:s}}},{key:"_defaultSize",value:function(){return{width:200,height:200}}},{key:"_toggleTransitions",value:function(n){this.options.transitions=n;for(var a=0;a0&&n.visible){var s=new p2({stroke:{color:n.color,dashType:n.dashType,width:n.width}});s.moveTo(a.x1,a.y1).lineTo(a.x2,a.y2),o.append(s)}return o}},{key:"renderTicks",value:function(){var n=new Pk,a=this.options,o=a.majorTicks.visible?a.majorUnit:0,s={vertical:a.vertical,mirror:a.labels.mirror,lineBox:this.lineBox()};return GZ(n,this.getMajorTickPositions(),s,a.majorTicks),GZ(n,this.getMinorTickPositions(),s,ne({},{skipUnit:o/a.minorUnit},a.minorTicks)),n}}]),t}(Us);ze(VZ,{min:0,max:50,majorTicks:{size:15,align:zd,color:Xi,width:.5,visible:!0},minorTicks:{size:10,align:zd,color:Xi,width:.5,visible:!0},line:{width:.5},labels:{position:zd,padding:2},mirror:!1,_alignLines:!1});var _3e=VZ,UZ=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),a=r.call(this);var o=e.options,s=o.min,l=o.max,u=a.options=ne({},a.options,n);return u.fill=u.color,a.scale=e,u.value=Te(u.value)?Mt(u.value,s,l):s,a}return v(t,[{key:"value",value:function(n){var a=this.options,o=a.value;if(0===arguments.length)return o;var s=this.scale.options,l=s.min,u=s.max;a._oldValue=Te(a._oldValue)?a.value:l,a.value=Mt(n,l,u),this.elements&&this.repaint()}}]),t}(mt);ze(UZ,{color:Xi});var g2=UZ,zZ=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).options=ne({track:{visible:Te(n.track)}},a.options),a}return v(t,[{key:"reflow",value:function(){var g,_,C,n=this.options,a=this.scale,o=a.options,s=o.mirror,l=o.vertical,u=a.lineBox(),c=n.track.size||n.size,d=n.size/2,h=ti(n.margin),f=l?h[s?"left":"right"]:h[s?"bottom":"top"];f=s?-f:f,l?(C=new et(u.x1+f,u.y1,u.x1+f,u.y2),s?C.x1-=c:C.x2+=c,n.shape!==Lk&&(g=_=new et(u.x2+f,u.y1-d,u.x2+f,u.y2+d))):(C=new et(u.x1,u.y1-f,u.x2,u.y1-f),s?C.y2+=c:C.y1-=c,n.shape!==Lk&&(g=_=new et(u.x1-d,u.y1-f,u.x2+d,u.y1-f))),this.trackBox=C,this.pointerRangeBox=_,this.box=g||C.clone().pad(n.border.width)}},{key:"getElementOptions",value:function(){var n=this.options;return{fill:{color:n.color,opacity:n.opacity},stroke:Te(n.border)?{color:n.border.width?n.border.color||n.color:"",width:n.border.width,dashType:n.border.dashType,opacity:n.opacity}:null}}},{key:"_margin",value:function(){var o=this.scale.options,s=o.mirror,l=o.vertical,u=ti(this.options.margin);return l?u[s?"left":"right"]:u[s?"bottom":"top"]}}]),t}(g2);ze(zZ,{shape:Lk,track:{border:{width:1}},color:Xi,border:{width:1},opacity:1,margin:ti(3),animation:{type:Lk},visible:!0});var HZ=zZ,m2=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.options,a=n.margin,o=n.from,s=n.to,l=n.vertical,u=l?"x1":"y1";n.mirror===l?(o[u]-=a,s[u]-=a):(o[u]+=a,s[u]+=a);var c=this.fromScale=new Pe(o.x1,o.y1),d=this.toScale=new Pe(s.x1,s.y1);0!==n.duration&&(n.duration=Math.max(c.distanceTo(d)/n.duration*1e3,1))}},{key:"step",value:function(n){var a=Fs(this.fromScale.x,this.toScale.x,n),o=Fs(this.fromScale.y,this.toScale.y,n);this.element.transform(Hn().translate(a,o))}}]),t}(Vs);ze(m2,{easing:$0,duration:250}),uu.current.register(EZ,m2);var y3e=m2,Ng=Pe,k3e=dt,C3e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),a=r.call(this,e,n),Te(a.options.size)||(a.options.size=.6*a.scale.options.majorTicks.size),a}return v(t,[{key:"pointerShape",value:function(){var n=this.scale,a=this.options.size,o=a/2,s=n.options.mirror?-1:1;return n.options.vertical?[new Ng(0,0-o),new Ng(0-s*a,0),new Ng(0,0+o)]:[new Ng(0-o,0),new Ng(0,0+s*a),new Ng(0+o,0)]}},{key:"repaint",value:function(){var n=this.scale,a=this.options,o=new y3e(this.elements,ne(a.animation,{vertical:n.options.vertical,mirror:n.options.mirror,margin:this._margin(a.margin),from:n.getSlot(a._oldValue),to:n.getSlot(a.value)}));!1===a.animation.transitions&&(o.options.duration=0),o.setup(),o.play()}},{key:"render",value:function(){var n=this.scale,a=this.options,o=this.getElementOptions(),s=this.pointerShape(a.value);a.animation.type=EZ;var l=new k3e({stroke:o.stroke,fill:o.fill}).moveTo(s[0]).lineTo(s[1]).lineTo(s[2]).close(),u=n.getSlot(a.value);return l.transform(Hn().translate(u.x1,u.y1)),this.elements=l,l}}]),t}(HZ),b3e=C3e,_2=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.options,a=this.axis=n.vertical?Ct:yt,o=this.to=n.newPoints[0][a],s=this.from=n.oldPoints[0][a];0!==n.duration&&(n.duration=Math.max(Math.abs(o-s)/n.speed*1e3,1)),this._set(s)}},{key:"step",value:function(n){var a=Fs(this.from,this.to,n);this._set(a)}},{key:"_set",value:function(n){var a="set"+this.axis.toUpperCase(),o=this.options.newPoints;o[0][a](n),o[1][a](n)}}]),t}(Vs);ze(_2,{easing:$0,speed:250}),uu.current.register(Lk,_2);var S3e=_2,w3e=sn,KZ=dt,D3e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),a=r.call(this,e,n),Te(a.options.size)||(a.options.size=.3*a.scale.options.majorTicks.size),a}return v(t,[{key:"pointerShape",value:function(n){var a=this.scale,s=a.options,u=s.vertical,c=s.mirror===u?-1:1,d=this.options.size*c,h=a.getSlot(a.options.min),f=a.getSlot(n),g=u?Ct:yt,_=u?yt:Ct,C=this._margin()*c,w=new Pe;w[g]=h[g+"1"],w[_]=h[_+"1"];var E=new Pe;E[g]=f[g+"1"],E[_]=f[_+"1"],u?(w.translate(C,0),E.translate(C,0)):(w.translate(0,C),E.translate(0,C));var M=E.clone(),R=w.clone();return u?(M.translate(d,0),R.translate(d,0)):(M.translate(0,d),R.translate(0,d)),[w,E,M,R]}},{key:"repaint",value:function(){var n=this.scale,a=this.options,o=this.pointerShape(a.value),s=this.pointerPath,l=this.pointerShape(a._oldValue);s.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close();var u=new S3e(s,ne(a.animation,{reverse:n.options.reverse,vertical:n.options.vertical,oldPoints:[l[1],l[2]],newPoints:[o[1],o[2]]}));!1===a.animation.transitions&&(u.options.duration=0),u.setup(),u.play()}},{key:"render",value:function(){var n=new w3e,a=this.getElementOptions();this.options.track.visible&&n.append(this.renderTrack());var o=this.pointerPath=new KZ({stroke:a.stroke,fill:a.fill});return n.append(o),this.elements=n,n}},{key:"renderTrack",value:function(){var n=this.options.track,a=n.border||{},o=this.trackBox.clone().pad(a.width||0);return new KZ.fromRect(o.toRect(),{fill:{color:n.color,opacity:n.opacity},stroke:{color:a.width?a.color||n.color:"",width:a.width,dashType:a.dashType}})}}]),t}(HZ),E3e=D3e,x3e=sn,M3e=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflow",value:function(n){var a=this.pointers,o=n.origin.x,s=n.origin.y,l=new et(o,s,o+n.width(),s+n.height());this.scale.reflow(l),this._shrinkScaleWidth(l);for(var u=0;u0&&(a.box.shrink(o,0),a.box.alignTo(n,"center"),a.reflow(a.box))}}},{key:"_shrinkElements",value:function(){for(var n=this.scale,a=this.pointers,o=n.box.clone(),s=n.options.vertical?"y":"x",l=a[0].box,u=0;u0&&void 0!==arguments[0]?arguments[0]:new Sc,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this,a)).geometry(n),Vt(e.options.stroke)||e.stroke("#000"),e}return v(t,[{key:"nodeType",get:function(){return"Arc"}},{key:"_bbox",value:function(n){return this._geometry.bbox(n)}},{key:"rawBBox",value:function(){return this.geometry().bbox()}},{key:"toPath",value:function(){var n=new dt,a=this.geometry().curvePoints();if(a.length>0){n.moveTo(a[0].x,a[0].y);for(var o=1;o=360&&a.max%a.majorUnit==0&&(n-=1),n}},{key:"renderLabels",value:function(){var n=this.options,a=this.arc.clone(),o=a.getRadiusX(),s=this.tickAngles(a,n.majorUnit),l=n.rangeSize=n.rangeSize||.1*o,u=new Z0,c=.05*o;Te(n.rangeDistance)?c=n.rangeDistance:n.rangeDistance=c;var d=n.labels,h=d.position===zd,f=Te(this.labelElements);h&&(o-=this.ticksSize(),this.hasRanges()&&!f&&(o-=l+c),a.setRadiusX(o).setRadiusY(o));for(var g=this.labels,_=g.length,C=ti(d.padding),w=(C.left+C.right)/2,E=(C.top+C.bottom)/2,M=0;M<_;M++){var R=g[M],N=R.box.width()/2,V=R.box.height()/2,U=s[M],ee=(U-180)*xZ,ve=a.pointAt(U),G=ve.x+Math.cos(ee)*(N+w)*(h?1:-1),I=ve.y+Math.sin(ee)*(V+E)*(h?1:-1);R.reflow(new et(G-N,I-V,G+N,I+V));var K=new Pe(R.box.x1,R.box.y1),H=void 0;if(f){var se=(H=this.labelElements.children[M]).bbox().origin,me=H.transform()||Hn();me.translate(K.x-se.x,K.y-se.y),H.transform(me)}else H=NZ(R,n.labels),u.append(H);this.bbox=cn.union(this.bbox,H.bbox())}return u}},{key:"repositionRanges",value:function(){var n=this.ranges.children;if(n.length>0){var a=this.options,o=a.rangeDistance,s=a.rangeSize,l=this.getRangeRadius();this.options.labels.position===zd&&(l+=s+o);for(var u=l+s/2,c=0;c=0;s--)s%o==0&&n.splice(s,1);return n}},{key:"tickAngles",value:function(n,a){var o=this.options,u=n.endAngle-n.startAngle,c=(o.max-o.min)/a,d=n.startAngle,h=u/c;o.reverse&&(d+=u,h=-h),u>=360&&o.max%a==0&&(c-=1);for(var f=[],g=0;g5||l!==f&&(c=this.getPlotBox(l,n,a),0<=c&&c<=2)||u!==f&&(h=this.getPlotBox(u,n,a),0<=h&&h<=2)||(f=c>0&&h>0?2*l:c<0&&h<0?2*u:tt((l+u)/2||1,3),d=this.getPlotBox(f,n,a),0<=d&&d<=2));)g=h,d>0?(u=f,h=d):(l=f,c=d)}},{key:"getPlotBox",value:function(n,a,o){var s=this.scale,l=this.pointers,u=o.getRadiusX(),c=o.clone();c.setRadiusX(u+n).setRadiusY(u+n),s.arc=c,s.reflow(a),this.plotBbox=s.bbox;for(var d=0;d=this.kCheckSumMinLength){var s=(o+this.getWeightedSum(n,a,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=s,this.addPattern(this.characterMap[s])}}},{key:"getWeightedSum",value:function(n,a,o){for(var s=0,l=0;la;)l=parseFloat((l-.1).toFixed(1)),s=this.getBaseUnit(l);if(s127?this.invalidCharacterError(r):this.addExtended(r.charCodeAt(0))},addExtended:function(r){for(var t,e=0;e=0;u--)o+=this.weightedValue(n[u],a-u,this.cCheckSumTotal);for(o=this.weightedValue(s=o%this.checkSumMod,1,this.kCheckSumTotal),u=a-1;u>=0;u--)o+=this.weightedValue(n[u],a-u+1,this.kCheckSumTotal);return[s,o%this.checkSumMod]}},{key:"_findCharacterByValue",value:function(n){for(var a in this.characterMap)if(this.characterMap[a].value===n)return a}},{key:"weightedValue",value:function(n,a,o){return(a%o||o)*n}},{key:"addPattern",value:function(n){for(var a,o=0;o=0&&this.isCode(l)&&n.index=n.value.length||this.encoding[this.shiftKey].is(n.value,n.index+1)))return this.encoding.addPattern(this.SHIFT),n.shifted=!0,!0}},{key:"_moveState",value:function(){return this.encoding.addPattern(this.MOVE),!0}}]),t}(Y0),Fg={};Fg.A=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"A",shiftKey:"B",MOVE:101,START:103})}},{key:"isCode",value:function(n){return 0<=n&&n<96}},{key:"getValue",value:function(n){return n<32?n+64:n-32}}]),t}(rY),Fg.B=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"B",shiftKey:"A",MOVE:100,START:104})}},{key:"isCode",value:function(n){return 32<=n&&n<128}},{key:"getValue",value:function(n){return n-32}}]),t}(rY),Fg.C=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"C",MOVE:99,START:105})}},{key:"addStart",value:function(){this.encoding.addPattern(this.START)}},{key:"is",value:function(n,a){var o=w2(n,a,4);return(a+4<=n.length||2===n.length)&&S2.test(o)}},{key:"move",value:function(){this.encoding.addPattern(this.MOVE)}},{key:"pushState",value:function(n){for(var a;(a=w2(n.value,n.index,2))&&S2.test(a)&&2===a.length;)this.encoding.addPattern(parseInt(a,10)),n.index+=2}},{key:"getValue",value:function(n){return n}}]),t}(Y0),Fg.FNC4=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e))._initSubStates(n),a}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"FNC4",dependentStates:["A","B"]})}},{key:"addStart",value:function(n){var a=n.value.charCodeAt(0)-128,o=this._getSubState(a);this.encoding[o].addStart()}},{key:"is",value:function(n,a){var o=n.charCodeAt(a);return this.isCode(o)}},{key:"isCode",value:function(n){return 128<=n&&n<256}},{key:"pushState",value:function(n){var l,a=this._initSubState(n),o=this.encoding,s=a.value.length;if(n.index+=s,s<3)for(;a.index0?this.getBySeparator(o,l):this.getByLength(o,l)).ai.length)d=l+h+c.id.length+c.ai.length;else if((d=o.indexOf(this.startAI,l+1))<0){if(l+c.ai.max+c.id.length+h=o.length)break;l=d,u.state!==this.startState&&(a[this.startState].move(u),u.state=this.startState),c.ai.length||a.addPattern(this.START)}n.index=n.value.length}},{key:"validate",value:function(n,a){var o=a.substr(n.id.length),s=n.ai;if(!s.type&&!S2.test(o))throw new Error("Application identifier "+n.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===s.type&&!rHe.test(o))throw new Error("Application identifier "+n.id+" is alphanumeric only but contains non alphanumeric character(s).");if(s.length&&s.length!==o.length)throw new Error("Application identifier "+n.id+" must be "+s.length+" characters long.");if(s.min&&s.min>o.length)throw new Error("Application identifier "+n.id+" must be at least "+s.min+" characters long.");if(s.max&&s.max=n.value.length);)if(n.shifted){var s=n.state;n.state=n.previousState,n.previousState=s,n.shifted=!1}else n.previousState=n.state,n.state=this.getNextState(n,a),this[n.state].move(n)}},{key:"addStart",value:function(n){this[n.state].addStart(n),this.position=1}},{key:"addCheckSum",value:function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)}},{key:"addStop",value:function(){this.addPattern(this.STOP)}},{key:"setBaseUnit",value:function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)}},{key:"addPattern",value:function(n){for(var o,a=this.characterMap[n].toString(),s=0;s2&&void 0!==arguments[2]?arguments[2]:Y9;return p(this,t),(a=r.call(this)).options=ne({},a.options,n),a.element=e,a.onError=o,a._initElement(),a._initSurface(),a._setOptions(n),n&&Te(n.value)&&a.redraw(),a}return v(t,[{key:"destroy",value:function(){this._destroySurface()}},{key:"_initElement",value:function(){Za(this.element,"k-barcode")}},{key:"_initSurface",value:function(){var a=this.surface;(!a||a.options.type!==this.options.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}},{key:"_createSurface",value:function(){return Ik.create(this.surfaceElement,{type:this.options.renderAs})}},{key:"_destroySurface",value:function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}},{key:"_initSurfaceElement",value:function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}},{key:"_destroySurfaceElement",value:function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}},{key:"setOptions",value:function(n){this._setOptions(n),this._initSurface(),this.redraw()}},{key:"redraw",value:function(){var n=this._getSize();this.surface.clear(),this.surface.setSize({width:n.width,height:n.height}),this.createVisual(),this.surface.draw(this.visual)}},{key:"getSize",value:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}}},{key:"_resize",value:function(){this.redraw()}},{key:"createVisual",value:function(){this.visual=this._render()}},{key:"_render",value:function(){var f,g,n=this.options,a=n.value,o=n.text,s=ti(o.margin),l=this._getSize(),u=n.border||{},c=this.encoding,d=new et(0,0,l.width,l.height).unpad(u.width).unpad(n.padding),h=d.height(),C=new sn;this.contentBox=d,C.append(this._getBackground(l)),o.visible&&(h-=tk(a,{font:o.font}).height+s.top+s.bottom);try{f=c.encode(a,d.width(),h)}catch(w){return this.onError(w),C}return o.visible&&(g=a,n.checksum&&Te(c.checksum)&&(g+=" "+c.checksum),C.append(this._getText(g))),this.barHeight=h,this._bandsGroup=this._getBands(f.pattern,f.baseUnit),C.append(this._bandsGroup),C}},{key:"exportVisual",value:function(){return this._render()}},{key:"_getSize",value:function(){var a=sY(this.element,this.options.renderAs),o=new kf(300,100);return a.width>0&&(o.width=a.width),a.height>0&&(o.height=a.height),this.options.width&&(o.width=this.options.width),this.options.height&&(o.height=this.options.height),o}},{key:"value",value:function(n){if(!Te(n))return this.options.value;this.options.value=String(n),this.redraw()}},{key:"_getBands",value:function(n,a){for(var l,u,o=this.contentBox,s=o.x1,c=new sn,d=0;d1&&void 0!==arguments[1]?arguments[1]:new cn,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(this,t),(n=r.call(this,o)).src(e),n.rect(a),n}return v(t,[{key:"nodeType",get:function(){return"Image"}},{key:"src",value:function(n){return Vt(n)?(this.options.set("src",n),this):this.options.get("src")}},{key:"bbox",value:function(n){var a=yf(this.currentTransform(n));return this._rect.bbox(a)}},{key:"rawBBox",value:function(){return this._rect.bbox()}},{key:"_containsPoint",value:function(n){return this._rect.containsPoint(n)}},{key:"_hasFill",value:function(){return this.src()}}]),t}(AN(Id,["rect"])),D2=SHe,Lg=Object.assign;function lY(i,r){for(var t=[],e=0;e=this.matrix.length)&&(this.dir=-this.dir,this.startColumn-=8!==this.startColumn?2:3,this.column=this.startColumn,this.row=this.dir<0?this.matrix.length-1:0);return{row:this.row,column:this.column}}},{key:"getNextRemainderCell",value:function(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}}}]),t}(mt),uY=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).dataString=e,a.version=n,a}return v(t)}(mt),DHe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getEncodingResult",value:function(n,a){var o=function l8e(i){var t,r=[],e=0,n=i;for(r.push(gY(n,8,5,8,t)),t=r[0].mode,n=n.substr(r[0].modeString.length);n.length>0;){var a=gY(n,17,9,16,t);a.mode!==t?(t=a.mode,r.push(a),e++):r[e].modeString+=a.modeString,n=n.substr(a.modeString.length)}return r}(n),s=function u8e(i){for(var r=0,e=0;e26?2:1}},{key:"getBitsCharacterCount",value:function(n){return this.bitsInCharacterCount[this.getVersionIndex(n||40)]}},{key:"getModeCountString",value:function(n,a){return this.modeIndicator+So(n,this.getBitsCharacterCount(a))}},{key:"encode",value:function(){}},{key:"getStringBitsLength",value:function(){}},{key:"getValue",value:function(){}}]),t}(mt),EHe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Lg(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})}},{key:"getValue",value:function(n){return parseInt(n,10)}},{key:"encode",value:function(n,a){var u,s=lY(n,3),l=this.getModeCountString(n.length,a);for(u=0;u>6*u&63|128,8)+s;s=(n>>6*o|255>>l<=0;n--)t[n]=i[n]^r[n];return t}function i8e(i,r){for(var t=[],e=0;e=0?r[n]:0))%255:A2[Hd[t[e+n]]^Hd[(i[e]+r[n])%255]];return t}function a8e(i,r){var t=[],e=i.length-1;do{t[e]=Hd[(i[e]+r)%255],e--}while(void 0!==i[e]);return t}function o8e(i,r){var s,l,t=R2[r-1],e=new Array(r).concat(i),n=new Array(e.length-t.length).concat(t),a=i.length,o=[];for(l=0;l=0;l--)o[r-1-l]=So(e[l],8);return o}function gY(i,r,t,e,n){var d,h,a=KHe.exec(i),o=a?a[0]:"",s=WHe.exec(i),l=s?s[0]:"",u=fY.exec(i),c=u?u[0]:"";return o&&(o.length>=r||i.length===o.length||o.length>=t&&!fY.test(i.charAt(o.length)))?(d="numeric",h=o):c&&(i.length===c.length||c.length>=e||n===dY)?(d=dY,h=o||l):(d="byte",h=c?c+vY.exec(i.substring(c.length))[0]:vY.exec(i)[0]),{mode:d,modeString:h}}function mY(i,r){var t=0,e=Uk.length-1,n=Math.floor(Uk.length/2);do{i1);return i<=Uk[t][r].totalDataCodewords?n+1:e+1}function _Y(i,r,t){var e=J0(r),n=r.length-1,a=i<=t);return n}(a,e);return s+So(l,n)}function zk(i,r){return parseInt(i.charAt(r),10)}function yY(i,r){var e,n,t=i[0],a=0,o=r.length;for(e=0,n=8;e<=8;e++)6!==e&&Ja(i,zk(r,o-1-a++),e,n);for(e=8,n=7;n>=0;n--)6!==n&&Ja(i,zk(r,o-1-a++),e,n);for(a=0,n=t.length-1,e=8;n>=t.length-8;n--)Ja(i,zk(r,o-1-a++),e,n);for(Ja(i,1,t.length-8,8),e=t.length-7,n=8;e=0&&n=5&&(r[i]+=3+n[i][a]-5),n[i][a]=1)}function y8e(i,r){var t=Math.floor(i/r*100),e=t%5,n=Math.abs(t-e-50),a=Math.abs(t+5-e-50);return 10*Math.min(n/5,a/5)}(function t8e(){var i,r;for(r=1;r<255;r++)(i=2*Hd[r-1])>255&&(i^=285),Hd[r]=i,A2[i]=r;Hd[r]=i=2*Hd[r-1]^285,Hd[-1]=0})(),function r8e(){for(var r=2;r<=68;r++)R2[r]=i8e(R2[r-1],[r,0])}();var Hk=Math.round,b8e=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],SY=[[0,1],[1,1],[1,0]],S8e=function(i){b(t,i);var r=S(t);function t(e,n){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y9;return p(this,t),(a=r.call(this)).options=ne({},a.options,n),a.element=e,a.wrapper=a.element,a.onError=o,a._initElement(),a._initSurface(),a.setOptions(n),a}return v(t,[{key:"destroy",value:function(){this._destroySurface()}},{key:"_initElement",value:function(){Za(this.element,"k-qrcode")}},{key:"_initSurface",value:function(){var a=this.surface;(!a||a.options.type!==this.options.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}},{key:"_createSurface",value:function(){return Ik.create(this.surfaceElement,{type:this.options.renderAs})}},{key:"_destroySurface",value:function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}},{key:"_initSurfaceElement",value:function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}},{key:"_destroySurfaceElement",value:function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}},{key:"redraw",value:function(){var n=this._getSize();this.surface.clear(),this.surface.setSize({width:n,height:n}),this.createVisual(),this.surface.draw(this.visual)}},{key:"getSize",value:function(){var n=this.element,a=n.clientWidth,o=n.clientHeight,s={width:0,height:0};return a>0&&(s.width=a),o&&(s.height=o),s}},{key:"_resize",value:function(){this.redraw()}},{key:"createVisual",value:function(){this.visual=this._render()}},{key:"exportVisual",value:function(){return this._render()}},{key:"_render",value:function(){var a,u,c,d,f,n=this._value,o=this.options.border||{},s=this.options.padding||0,l=o.width||0;o.width=l;var g=new sn;try{n&&(c=function C8e(i,r,t){var e=function k8e(i){return i&&i.toLowerCase().indexOf("utf_8")>=0?new IHe:new DHe}(t),n=e.getEncodingResult(i,r),a=n.version,o=Uk[a-1][r],s=function e8e(i,r){for(var t=8*r,e=0,n=0,a=i;a.length=7&&kY(u,So(0,18)),yY(u,So(0,15)),function JHe(i,r){for(var e,n,a,t=new wHe(i[0]),o=0;o0;){for(var s=0;s=0&&o[d+1][h]===t[f][0]&&o[d+1][h-1]===t[f][0]&&(r[f]+=3),CY(f,n,r,0,o[d][h]),CY(f,n,r,1,o[h][d]),bY(f,r,t,o[d][h],a,0),bY(f,r,t,o[h][d],a,1);var _,g=c*c,C=Number.MAX_VALUE;for(s=0;s=7&&kY([d],function v8e(i){return _Y(i,"1111100100101",18)}(a)),yY([d],function d8e(i){var t,e="";if(0===J0(i))return"101010000010010";t=_Y(J0(i),"10100110111",15);for(var n=0;n0?s:200}return n}},{key:"_calculateBaseUnit",value:function(n,a){var o=Math.floor(n/a);if(o<1){var s=Math.ceil(1*a);this.onError(new Error("Insufficient size for QR Code: the current size is ".concat(n,"px and the minimum size is ").concat(s,"px.")))}else o*a>=n&&o-1>=1&&o--;return o}},{key:"_renderMatrix",value:function(n,a,o){for(var s=new Nd({fill:{color:this.options.color},stroke:null}),l=0;l0;){V=Gc(E),U=jd(E),ee=Kd.sqrt(gu(w*V)+gu(g*C-f*w*U)),K=tE(ee,G=f*C+g*w*U);var H=g*w*V/ee;I=0,0!=(ve=1-gu(H))&&(I=G-2*f*C/ve),M=E;var se=c/16*ve*(4+c*(4-3*ve));E=d+(1-se)*c*H*(K+se*ee*(I+se*G*(2*gu(I)-1))),N=E8e(E-M)<=this.DISTANCE_CONVERGENCE}var me=ve*(gu(l)-gu(u))/gu(u),ae=1+me/16384*(4096+me*(me*(320-175*me)-768)),Ne=me/1024*(256+me*(me*(74-47*me)-128)),Ce=Ne*ee*(I+Ne/4*(G*(2*gu(I)-1)-Ne/6*I*(4*gu(ee)-3)*(4*gu(I)-3))),ye=tE(w*V,g*C-f*w*U),Be=tE(g*V,-f*w+g*C*U);return{distance:tt(u*ae*(K-Ce),this.DISTANCE_PRECISION),azimuthFrom:Rd(ye),azimuthTo:Rd(Be)}}},{key:"toString",value:function(){return String(this.lat)+","+String(this.lng)}}],[{key:"fromLngLat",value:function(n){return new t(n[1],n[0])}},{key:"fromLatLng",value:function(n){return new t(n[0],n[1])}},{key:"create",value:function(n,a){if(Te(n))return n instanceof t?n.clone():1===arguments.length&&2===n.length?t.fromLatLng(n):new t(n,a)}}]),t}(mt),Wd=Math,N2=Wd.atan,EY=Wd.exp,TY=Wd.pow,AY=Wd.sin,xY=Wd.log,MY=Wd.tan,T8e=Pe,nE=Wd.PI,F2=nE/2,RY=nE/4,A8e=nE/180,x8e=I2.WGS84,OY=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).initProperties(),n._initOptions(e),n}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"initProperties",value:function(){ne(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})}},{key:"forward",value:function(n,a){var o=this,s=o.options,u=s.datum.a,c=s.centralMeridian,d=Mt(n.lat,-o.MAX_LAT,o.MAX_LAT),h=a?Mt(n.lng,-o.MAX_LNG,o.MAX_LNG):n.lng,f=Sr(h-c)*u,g=o._projectLat(d);return new T8e(f,g)}},{key:"_projectLat",value:function(n){var a=this.options.datum,o=a.e,s=a.a,l=Sr(n),u=MY(RY+l/2),c=o*AY(l),d=TY((1-c)/(1+c),o/2);return s*xY(u*d)}},{key:"inverse",value:function(n,a){var o=this,s=o.options,d=n.x/(A8e*s.datum.a)+s.centralMeridian,h=Mt(o._inverseY(n.y),-o.MAX_LAT,o.MAX_LAT);return a&&(d=Mt(d,-o.MAX_LNG,o.MAX_LNG)),new na(h,d)}},{key:"_inverseY",value:function(n){var h,a=this,o=a.options.datum,l=o.e,u=l/2,c=EY(-n/o.a),d=F2-2*N2(c);for(h=0;h<=a.INVERSE_ITERATIONS;h++){var f=l*AY(d),g=TY((1-f)/(1+f),u),_=F2-2*N2(c*g)-d;if(d+=_,Wd.abs(_)<=a.INVERSE_CONVERGENCE)break}return Rd(d)}}]),t}(mt);ze(OY,{centralMeridian:0,datum:x8e});var M8e=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),ne(this,{MAX_LAT:85.0511287798})}},{key:"_projectLat",value:function(n){var a=this.options.datum.a,o=Sr(n),s=MY(RY+o/2);return a*xY(s)}},{key:"_inverseY",value:function(n){var o=EY(-n/this.options.datum.a);return Rd(F2-2*N2(o))}}]),t}(OY),R8e=function(i){b(t,i);var r=S(t);function t(){var e;p(this,t);var a=Xe(e=r.call(this))._proj=new M8e,o=e.c=2*nE*a.options.datum.a;return e._tm=Hn().translate(.5,.5).scale(1/o,-1/o),e._itm=Hn().scale(o,-o).translate(-.5,-.5),e}return v(t,[{key:"toPoint",value:function(n,a,o){return this._proj.forward(n,o).transform(this._tm).scale(a||1)}},{key:"toLocation",value:function(n,a,o){var s=n.clone().scale(1/(a||1)).transform(this._itm);return this._proj.inverse(s,o)}}]),t}(mt),IY=Object.defineProperty,Pg=function(r){var t=document.createElement("div");return t.innerHTML=r,t.firstChild},Kk=function(r){for(;r.firstChild;)r.removeChild(r.firstChild)},NY=function(r,t){t.insertBefore(r,t.firstChild)},FY=function(r){return r.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()})},LY=function(r){return r&&String(r).endsWith("px")?r:String(r)+"px"},PY=function(r){var e,t=!1,n=[],a={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},o={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},s={tablet:/playbook|ipad|fire/i},l={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(var u in a)if(a.hasOwnProperty(u)&&(n=r.match(a[u]))){if("windows"===u&&"plugins"in navigator)return!1;(t={}).device=u,t.tablet=L2(u,s,!1),t.browser=L2(r,l,"default"),t.name=L2(u,o),t[t.name]=!0,t.majorVersion=n[2],t.minorVersion=(n[3]||"0").replace("_","."),e=t.minorVersion.replace(".","").substr(0,2),t.flatVersion=t.majorVersion+e+new Array(3-(e.length<3?e.length:2)).join("0");break}return t};function L2(i,r,t){for(var e in r)if(r.hasOwnProperty(e)&&r[e].test(i))return e;return void 0!==t?t:i}var P2=function(){var r={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},t=Pf();return t.touch&&(t.mobileOS.ios||t.mobileOS.android)?r={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:t.pointers?r={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:t.msPointers&&(r={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),r},Pf=function(){var r=PY(navigator.userAgent),t=function(r){var t=!1,e=[],n={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var a in n)if(n.hasOwnProperty(a)&&(e=r.match(n[a]))){(t={})[a]=!0,t[e[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||e[2],10);break}return t}(navigator.userAgent),e=t.chrome,n=t.crios,a=t.mozilla,o=t.safari,s={};s.mobileOS=r,s.touch="ontouchstart"in window,s.pointers=!e&&!n&&!a&&!o&&window.PointerEvent,s.msPointers=!e&&window.MSPointerEvent,s.mouseAndTouchPresent=s.touch&&!(s.mobileOS.ios||s.mobileOS.android),s.eventCapture=document.documentElement.addEventListener;var l=document.createElement("table"),u=s.transitions=!1,c=s.transforms=!1,d="string";return["Moz","webkit","O","ms"].forEach(function(h){var f=typeof l.style[h+"Transition"]===d;if(f||typeof l.style[h+"Transform"]===d){var g=h.toLowerCase();return c={css:"ms"!==g?"-"+g+"-":"",prefix:h,event:"o"===g||"webkit"===g?g:""},f&&((u=c).event=u.event?u.event+"TransitionEnd":"transitionend"),!1}}),l=null,s.transforms=c,s.transitions=u,s.delayedClick=function(){if(s.touch){if(s.mobileOS.ios)return!0;if(s.mobileOS.android){if(!s.browser.chrome)return!0;if(s.browser.version<32)return!1;var h=document.querySelector("meta[name=viewport]");return!(h?h.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},s},ui=function(r,t){return r.bind(t)},eo=function(r,t,e,n,a){G8e(r,t,e,n,a)},G8e=function(r,t,e,n,a){(Jr(t)?t:(t||"").split(" ")).forEach(function(s){V8e(r,s,e,n,a)})},V8e=function(r,t,e,n,a){var s,o=n;e&&Ri(e)&&!n?o=e:e&&function B8e(i){return"string"==typeof i}(e)&&Ri(o)&&(s=e),r.addEventListener(t,function(l){var u=l.target?l.target.closest(s):null;(!s||s&&l.target&&u)&&(IY(l,"currentTarget",{value:s?u:l.currentTarget}),IY(l,"delegateTarget",{value:r}),o(l))},Boolean(a))},wo=function(r,t,e,n,a){U8e(r,t,e,n,a)},U8e=function(r,t,e,n){(Jr(t)?t:(t||"").split(" ")).forEach(function(o){z8e(r,o,e,n)})},z8e=function(r,t,e,n){r.removeEventListener(t,e,Boolean(n))},Hs=function(r){var t=P2(navigator);return r.replace(/([^ ]+)/g,function e(o){return t[o]||o})},iE=function(r,t){var e=r.prototype;e.events?t.forEach(function(n){e.events.indexOf(n)<0&&e.events.push(n)}):e.events=t},Vc=function(){return Number(new Date)},BY=function(){},VY="function",K8e=function(){this._defaultPrevented=!0},j8e=function(){return!0===this._defaultPrevented},El=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._events={},e}return v(t,[{key:"destroy",value:function(){this.unbind()}},{key:"bind",value:function(n,a,o){var l,c,d,h,s=this,u="string"==typeof n?[n]:n||[],f=typeof a===VY;if(void 0===a){for(l in n)s.bind(l,n[l]);return s}var _=function(){var w=u[l];(h=f?a:a[w])&&(o&&(d=h,h=function(){s.unbind(w,h),d.apply(s,arguments)},h.original=d),(s._events[w]=s._events[w]||[]).push(h))};for(l=0,c=u.length;l=0;l--)(s[l]===a||s[l].original===a)&&s.splice(l,1);else o._events[n]=[];return o}},{key:"_setEvents",value:function(n){for(var a=(this.events||[]).length,o=0;o0?(Kk(this.element),function(r,t){var e=document.createElement("div");for(e.innerHTML=r;e.childNodes.length>0;)t.appendChild(e.childNodes[0])}(n.join(this.options.separator),this.element),this.showElement()):this.hideElement()}},{key:"hideElement",value:function(){this.element.style.display="none"}},{key:"showElement",value:function(){this.element.style.display=""}},{key:"_itemText",value:function(n){var a="",o=this._inZoomLevel(n.minZoom,n.maxZoom),s=this._inArea(n.extent);return o&&s&&(a+=n.text),a}},{key:"_inZoomLevel",value:function(n,a){var s=qt(n,-Number.MAX_VALUE),l=qt(a,Number.MAX_VALUE);return this._zoom>s&&this._zoom')}var B2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this)).element=e,a._initOptions(n);var o=rE("up"),s=rE("right"),l=rE("down"),u=rE("left");a.element.appendChild(o),a.element.appendChild(s),a.element.appendChild(l),a.element.appendChild(u),Za(a.element,"k-widget k-navigator"),eo(a.element,"click",".k-button",ui(a._click,Xe(a)));var c=a.element.parentNode.closest("[data-role]");return a._keyroot=c||a.element,a._tabindex(a._keyroot),a._keydownHandler=ui(a._keydown,Xe(a)),eo(a._keyroot,"keydown",a._keydownHandler),a}return v(t,[{key:"destroy",value:function(){this.dispose()}},{key:"dispose",value:function(){wo(this._keyroot,"keydown",this._keydownHandler)}},{key:"_tabindex",value:function(n){var a=n||this.wrapper||this.element,o=this.element,s="tabindex",l=a.getAttribute(s)||o.getAttribute(s);o.removeAttribute(s),a.setAttribute(s,isNaN(l)?0:l)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_pan",value:function(n,a){var o=this.options.panStep;this.trigger("pan",{x:n*o,y:a*o})}},{key:"_click",value:function(n){var a=0,o=0,s=n.currentTarget;s.matches(".k-navigator-n")?o=1:s.matches(".k-navigator-s")?o=-1:s.matches(".k-navigator-e")?a=1:s.matches(".k-navigator-w")&&(a=-1),this._pan(a,o),n.preventDefault()}},{key:"_keydown",value:function(n){switch(n.which){case pg_UP:this._pan(0,1),n.preventDefault();break;case pg_DOWN:this._pan(0,-1),n.preventDefault();break;case pg_RIGHT:this._pan(1,0),n.preventDefault();break;case pg_LEFT:this._pan(-1,0),n.preventDefault()}}}]),t}(El);function KY(i,r){return Pg('')}ze(B2,{name:"Navigator",panStep:1}),iE(B2,["pan"]);var G2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this)).element=e,a._initOptions(n);var o=KY("in","k-i-plus"),s=KY("out","k-i-minus");a.element.appendChild(o),a.element.appendChild(s),Za(a.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),a._clickHandler=a._click.bind(Xe(a)),eo(a.element,"click",".k-button",a._clickHandler);var l=a.element.parentNode.closest("[data-role]");return a._keyroot=l||a.element,a._tabindex(a._keyroot),a._keydownHandler=a._keydown.bind(Xe(a)),eo(a._keyroot,"keydown",a._keydownHandler),a}return v(t,[{key:"destroy",value:function(){this.element&&wo(this.element,"click",this._clickHandler),this._keyroot&&wo(this._keyroot,"keydown",this._keydownHandler)}},{key:"_tabindex",value:function(n){var a=n||this.wrapper||this.element,o=this.element,s="tabindex",l=a.getAttribute(s)||o.getAttribute(s);o.removeAttribute(s),a.setAttribute(s,isNaN(l)?0:l)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_change",value:function(n){this.trigger("change",{delta:n*this.options.zoomStep})}},{key:"_click",value:function(n){var o=1;Yy(n.currentTarget,"k-zoom-out")&&(o=-1),this._change(o),n.preventDefault()}},{key:"_keydown",value:function(n){switch(n.which){case pg_NUMPAD_PLUS:case 187:case 61:this._change(1);break;case pg_NUMPAD_MINUS:case 189:case 173:this._change(-1)}}}]),t}(El);ze(G2,{name:"ZoomControl",zoomStep:1}),iE(G2,["change"]);var WY=Math,$Y=WY.max,qY=WY.min,aE=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),a=r.call(this);var o=na.create(e),s=na.create(n);return o.lng+180>s.lng+180&&o.lat+90=a.lng+180&&s+180<=o.lng+180&&l+90>=o.lat+90&&l+90<=a.lat+90}},{key:"center",value:function(){var n=this.nw,a=this.se;return new na(n.lat+(a.lat-n.lat)/2,n.lng+(a.lng-n.lng)/2)}},{key:"containsAny",value:function(n){for(var a=!1,o=0;o=n.minZoom,s=!Te(n.maxZoom)||a<=n.maxZoom,l=aE.create(n.extent),u=!l||l.overlaps(this.map.extent());this._setVisibility(o&&s&&u)}},{key:"_setVisibility",value:function(n){this.element.style.display=n?"":"none"}},{key:"_activate",value:function(){var n=this.map;this._deactivate(),n.bind("beforeReset",this._beforeReset),n.bind("reset",this._reset),n.bind("resize",this._resize),n.bind("panEnd",this._panEnd)}},{key:"_deactivate",value:function(){var n=this.map;n.unbind("beforeReset",this._beforeReset),n.unbind("reset",this._reset),n.unbind("resize",this._resize),n.unbind("panEnd",this._panEnd)}},{key:"_updateAttribution",value:function(){var n=this.map.attribution;n&&n.add(this.options.attribution)}},{key:"_readData",value:function(){return this.options.data||[]}},{key:"_hasData",value:function(){return this._data&&this._data.length>0}}]),t}(mt),$d=Math,U2=Pe;function XY(i){return Ri(i)?i:D9.compile(i)}function Z8e(i){return new U2(tt(i.x),tt(i.y))}function ZY(i){var r=i;return"string"!=typeof i&&(r+="px"),r}var YY=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),"string"==typeof(a=r.call(this,e,n)).options.subdomains&&(a.options.subdomains=a.options.subdomains.split(""));var o=a._viewType();return a._view=new o(a.element,a.options),a}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this._view.destroy(),this._view=null}},{key:"_beforeReset",value:function(){var n=this.map,a=n.locationToLayer(n.extent().nw).round();this._view.viewOrigin(a)}},{key:"_reset",value:function(){$(q(t.prototype),"_reset",this).call(this),this._updateView(),this._view.reset()}},{key:"_viewType",value:function(){return Y8e}},{key:"_activate",value:function(){$(q(t.prototype),"_activate",this).call(this),this.support.mobileOS||(this._pan||(this._pan=VF(this._render.bind(this),100)),this.map.bind("pan",this._pan))}},{key:"_deactivate",value:function(){$(q(t.prototype),"_deactivate",this).call(this),this._pan&&this.map.unbind("pan",this._pan)}},{key:"_updateView",value:function(){var n=this._view,a=this.map,o=a.extent(),s={nw:a.locationToLayer(o.nw).round(),se:a.locationToLayer(o.se).round()};n.center(a.locationToLayer(a.center())),n.extent(s),n.zoom(a.zoom())}},{key:"_resize",value:function(){this._render()}},{key:"_panEnd",value:function(n){$(q(t.prototype),"_panEnd",this).call(this,n),this._render()}},{key:"_render",value:function(){this._updateView(),this._view.render()}}]),t}(V2);ze(YY,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});var Y8e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).element=e,a._initOptions(n),a.pool=new JY,a}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"center",value:function(n){this._center=n}},{key:"extent",value:function(n){this._extent=n}},{key:"viewOrigin",value:function(n){this._viewOrigin=n}},{key:"zoom",value:function(n){this._zoom=n}},{key:"pointToTileIndex",value:function(n){return new U2($d.floor(n.x/this.options.tileSize),$d.floor(n.y/this.options.tileSize))}},{key:"tileCount",value:function(){var n=this.size(),a=this.pointToTileIndex(this._extent.nw),o=this._extent.nw,s=this.indexToPoint(a).translate(-o.x,-o.y);return{x:$d.ceil(($d.abs(s.x)+n.width)/this.options.tileSize),y:$d.ceil(($d.abs(s.y)+n.height)/this.options.tileSize)}}},{key:"size",value:function(){var n=this._extent.nw,o=this._extent.se.clone().translate(-n.x,-n.y);return{width:o.x,height:o.y}}},{key:"indexToPoint",value:function(n){return new U2(n.x*this.options.tileSize,n.y*this.options.tileSize)}},{key:"subdomainText",value:function(){var n=this.options.subdomains;return n[this.subdomainIndex++%n.length]}},{key:"destroy",value:function(){Kk(this.element),this.pool.empty()}},{key:"reset",value:function(){this.pool.reset(),this.subdomainIndex=0,this.render()}},{key:"render",value:function(){var o,s,l,n=this.tileCount(),a=this.pointToTileIndex(this._extent.nw);for(s=0;s=0?o:a-(0===o?a:o)}}]),t}(mt),QY=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).id=e,a.visible=!0,a._initOptions(n),a.createElement(),a.show(),a}return v(t,[{key:"destroy",value:function(){var n=this.element,a=n?n.parentNode:null;n&&(a&&a.removeChild(n),this.element=null)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"createElement",value:function(){var n=document.createElement("img"),a=this.options.size+"px";n.style.position="absolute",n.style.display="block",n.style.width=n.style.maxWidth=a,n.style.height=n.style.maxHeight=a,this.element=n}},{key:"show",value:function(){var n=this.element;n.style.top=ZY(this.options.offset.y),n.style.left=ZY(this.options.offset.x);var a=this.url();a&&n.setAttribute("src",a),n.style.visibility="visible",this.visible=!0}},{key:"hide",value:function(){this.element.style.visibility="hidden",this.visible=!1}},{key:"url",value:function(){return XY(this.options.urlTemplate)(this.urlOptions())}},{key:"errorUrl",value:function(){return XY(this.options.errorUrlTemplate)(this.urlOptions())}},{key:"urlOptions",value:function(){var n=this.options;return{zoom:n.zoom,subdomain:n.subdomain,z:n.zoom,x:n.index.x,y:n.index.y,s:n.subdomain,quadkey:n.quadkey,q:n.quadkey,culture:n.culture,c:n.culture}}}]),t}(mt);ze(QY,{urlTemplate:"",errorUrlTemplate:""});var JY=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._items=[],e}return v(t,[{key:"get",value:function(n,a){return this._items.length>=this.options.maxSize&&this._remove(n),this._create(a)}},{key:"empty",value:function(){for(var n=this._items,a=0;ao&&!a[l].visible&&(s=l,o=u)}-1!==s&&(a[s].destroy(),a.splice(s,1))}}]),t}(mt);ze(JY,{maxSize:100});var Bf=Object.assign,jk="change",Q8e=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t);var o=Xe(a=r.call(this)),s=e[0]||e;o.capture=!1;var l=P2(navigator);return s.addEventListener?(l.down.split(" ").forEach(function(u){s.addEventListener(u,ui(o._press,o),!0)}),l.up.split(" ").forEach(function(u){s.addEventListener(u,ui(o._release,o),!0)})):(l.down.split(" ").forEach(function(u){s.attachEvent(u,ui(o._press,o))}),l.up.split(" ").forEach(function(u){s.attachEvent(u,ui(o._release,o))})),o.bind(["press","release"],n||{}),a}return v(t,[{key:"captureNext",value:function(){this.capture=!0}},{key:"cancelCapture",value:function(){this.capture=!1}},{key:"_press",value:function(n){this.trigger("press"),this.capture&&n.preventDefault()}},{key:"_release",value:function(n){var a=this;a.trigger("release"),a.capture&&(n.preventDefault(),a.cancelCapture())}}]),t}(El),eQ=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));return a.forcedEnabled=!1,Bf(a,e),a.scale=1,a.horizontal?(a.measure="offsetWidth",a.scrollSize="scrollWidth",a.axis="x"):(a.measure="offsetHeight",a.scrollSize="scrollHeight",a.axis="y"),n}return v(t,[{key:"makeVirtual",value:function(){Bf(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})}},{key:"virtualSize",value:function(n,a){(this._virtualMin!==n||this._virtualMax!==a)&&(this._virtualMin=n,this._virtualMax=a,this.update())}},{key:"outOfBounds",value:function(n){return n>this.max||nl,n||a.trigger(jk,a))}}]),t}(El),J8e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));return a.x=new eQ(Bf({horizontal:!0},e)),a.y=new eQ(Bf({horizontal:!1},e)),a.container=e.container,a.forcedMinScale=e.minScale,a.maxScale=e.maxScale||100,a.bind(jk,e),n}return v(t,[{key:"rescale",value:function(n){this.x.rescale(n),this.y.rescale(n),this.refresh()}},{key:"centerCoordinates",value:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}}},{key:"refresh",value:function(){var n=this;n.x.update(),n.y.update(),n.enabled=n.x.enabled||n.y.enabled,n.minScale=n.forcedMinScale||Math.min(n.x.minScale,n.y.minScale),n.fitScale=Math.max(n.x.minScale,n.y.minScale),n.trigger(jk)}}]),t}(El),tQ=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Bf(Xe(n),e),n}return v(t,[{key:"outOfBounds",value:function(){return this.dimension.outOfBounds(this.movable[this.axis])}},{key:"dragMove",value:function(n){var a=this,o=a.dimension,s=a.axis,l=a.movable,u=l[s]+n;if(o.enabled){var c=n;(uo.max&&n>0)&&(c*=a.resistance),l.translateAxis(s,c),a.trigger(jk,a)}}}]),t}(El),e5e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var o,s,l,u,a=Xe(n=r.call(this));return Bf(a,{elastic:!0},e),a.x=o=new tQ({axis:"x",dimension:a.dimensions.x,resistance:l=a.elastic?.5:0,movable:u=a.movable}),a.y=s=new tQ({axis:"y",dimension:a.dimensions.y,resistance:l,movable:u}),a.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(d){a.gesture=d,a.offset=ik(a.dimensions.container)},press:function(d){var h=d.event.target.closest("a");h&&h.matches("[data-navigate-on-press=true]")&&d.sender.cancel()},gesturechange:function(d){var E,h=a.gesture,f=h.center,g=d.center,_=d.distance/h.distance,w=a.dimensions.maxScale;u.scale<=a.dimensions.minScale&&_<1&&(_+=.8*(1-_)),u.scale*_>=w&&(_=w/u.scale);var M=u.x+a.offset.left,R=u.y+a.offset.top;E={x:(M-f.x)*_+g.x-M,y:(R-f.y)*_+g.y-R},u.scaleWith(_),o.dragMove(E.x),s.dragMove(E.y),a.dimensions.rescale(u.scale),a.gesture=d,d.preventDefault()},move:function(d){d.event.target.tagName.match(/textarea|input/i)||(o.dimension.enabled||s.dimension.enabled?(o.dragMove(d.x.delta),s.dragMove(d.y.delta),d.preventDefault()):d.touch.skip())},end:function(d){d.preventDefault()}}),n}return v(t)}(mt),nQ=function(r,t,e){return"translate3d("+r+"px,"+t+"px,0) scale("+e+")"},z2=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));a.support=Pf(),n.transformStyle=n.support.transitions.prefix+"Transform",a.element=e,a.element.style.webkitTransformOrigin="left top",a.x=0,a.y=0,a.scale=1;var o=nQ(a.x,a.y,a.scale);return a.element.style[n.transformStyle]=o,a._saveCoordinates(o),n}return v(t,[{key:"translateAxis",value:function(n,a){this[n]+=a,this.refresh()}},{key:"scaleTo",value:function(n){this.scale=n,this.refresh()}},{key:"scaleWith",value:function(n){this.scale*=n,this.refresh()}},{key:"translate",value:function(n){this.x+=n.x,this.y+=n.y,this.refresh()}},{key:"moveAxis",value:function(n,a){this[n]=a,this.refresh()}},{key:"moveTo",value:function(n){Bf(this,n),this.refresh()}},{key:"refresh",value:function(){var s,n=this,a=n.x,o=n.y;n.round&&(a=Math.round(a),o=Math.round(o)),(s=nQ(a,o,n.scale))!==n.coordinates&&(n.element.style[this.transformStyle]=s,n._saveCoordinates(s),n.trigger(jk))}},{key:"_saveCoordinates",value:function(n){this.coordinates=n}}]),t}(El),H2=sn,K2=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n))._pan=ui(a._pan,Xe(a)),a.surface=Ik.create(a.element,{width:e.scrollElement.clientWidth,height:e.scrollElement.clientHeight}),a._initRoot(),a.movable=new z2(a.surface.element),a._markers=[],a._click=a._handler("shapeClick"),a.surface.bind("click",a._click),a._mouseenter=a._handler("shapeMouseEnter"),a.surface.bind("mouseenter",a._mouseenter),a._mouseleave=a._handler("shapeMouseLeave"),a.surface.bind("mouseleave",a._mouseleave),a}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this.surface.destroy()}},{key:"_reset",value:function(){$(q(t.prototype),"_reset",this).call(this),this._translateSurface(),this._data=this._readData(),this._hasData()&&this._load(this._data)}},{key:"_initRoot",value:function(){this._root=new H2,this.surface.draw(this._root)}},{key:"_beforeReset",value:function(){this.surface.clear(),this._initRoot()}},{key:"_resize",value:function(){this.surface.size(this.map.size())}},{key:"_readData",value:function(){var n=$(q(t.prototype),"_readData",this).call(this);return"FeatureCollection"===n.type?n.features:"GeometryCollection"===n.type?n.geometries:n}},{key:"_load",value:function(n){this._data=n,this._clearMarkers(),this._loader||(this._loader=new t5e(this.map,this.options.style,this));for(var a=new H2,o=0;o1?Nd:dt)(this.style),s=0;s-1&&this.items.splice(a,1)}},{key:"clear",value:function(){for(var n=0;n=this.duration}},{key:"timePassed",value:function(){return Math.min(this.duration,Vc()-this.startDate)}},{key:"moveTo",value:function(n){var a=this;a.initial=a.movable[a.axis],a.delta=n.location-a.initial,a.duration="number"==typeof n.duration?n.duration:300,a.tick=a._easeProxy(n.ease),a.startDate=Vc(),a.start()}},{key:"_easeProxy",value:function(n){var a=this;return function(){a.movable.moveAxis(a.axis,n(a.timePassed(),a.initial,a.delta,a.duration))}}}],[{key:"easeOutExpo",value:function(n,a,o,s){return n===s?a+o:o*(1-Math.pow(2,-10*n/s))+a}}]),t}(oE),sE=Object.assign,s5e=function(r){r.preventDefault()},cQ=800,dQ=0,$2="move",lE="tap",mQ="doubleTap",_Q="release",yQ="gesturechange",kQ="gestureend",CQ="gesturetap",c5e={api:0,touch:0,mouse:9,pointer:9};function bQ(i){var o,s,l,r=Pf(),t=[],e=i.originalEvent||i,n=i.currentTarget,a=0;if(i.api)t.push({id:2,event:i,target:i.target,currentTarget:i.target,location:i,type:"api"});else if(i.type.match(/touch/))for(o=(s=e?e.changedTouches:[]).length;a1}},{key:"_maxTouchesReached",value:function(){return this.touches.length>=this._maxTouches}},{key:"_disposeAll",value:function(){for(var n=this.touches;n.length>0;)n.pop().dispose()}},{key:"_isMoved",value:function(){return Xo(this.touches,function(n){return n.isMoved()}).length}},{key:"_select",value:function(n){(!this.allowSelection||this.trigger("select",{event:n}))&&n.preventDefault()}},{key:"_start",value:function(n){var l,d,a=this,o=0,s=a.filter,u=bQ(n),c=u.length,h=n.which;if(!(h&&h>1||a._maxTouchesReached()))for(t.current=null,a.currentTarget=n.currentTarget,a.stopPropagation&&n.stopPropagation();oa.max?a.max:a.min)}},{key:"_moveTo",value:function(n){this.transition.moveTo({location:n,duration:500,ease:uQ.easeOutExpo})}}]),t}(oE),S5e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this,e));return Bg(a,e,{origin:{},destination:{},offset:{}}),n}return v(t,[{key:"tick",value:function(){this._updateCoordinates(),this.moveTo(this.origin)}},{key:"done",value:function(){return Gf(this.offset.y)<5&&Gf(this.offset.x)<5}},{key:"onEnd",value:function(){this.moveTo(this.destination),this.callback&&this.callback.call()}},{key:"setCoordinates",value:function(n,a){this.offset={},this.origin=n,this.destination=a}},{key:"setCallback",value:function(n){n&&Ri(n)?this.callback=n:n=void 0}},{key:"_updateCoordinates",value:function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}]),t}(oE),w5e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this)),o="x"===e.axis,l=Pg('
    ');return Bg(a,e,{element:l,elementSize:0,movable:new z2(l),scrollMovable:e.movable,alwaysVisible:e.alwaysVisible,size:o?"width":"height"}),a.scrollMovable.bind(uE,a.refresh.bind(a)),a.container.appendChild(l),e.alwaysVisible&&a.show(),n}return v(t,[{key:"refresh",value:function(){var n=this,a=n.axis,o=n.dimension,s=o.size,u=s/o.total,c=Math.round(-n.scrollMovable[a]*u),d=Math.round(s*u);this.element.style.display=u>=1?"none":"",c+d>s?d=s-c:c<0&&(d+=c,c=0),n.elementSize!==d&&(n.element.style[n.size]=d+"px",n.elementSize=d),n.movable.moveAxis(a,c)}},{key:"show",value:function(){this.element.style.opacity=.7,this.element.style.visibility="visible"}},{key:"hide",value:function(){this.alwaysVisible||(this.element.style.opacity=0)}}]),t}(mt),Y2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t);var o=Xe(a=r.call(this));a.element=e,a._initOptions(n);var s=function(r){var t=PY(r);return t.ios||t.android}(navigator.userAgent);o._native=o.options.useNative&&s;var l=Pg('
    ');if(o._native)return Za(e,"km-native-scroller"),NY(l,e),Bg(o,{scrollElement:e,fixedContainer:e.children[0]}),gs(a);e.style.overflow="hidden",Za(e,"km-scroll-wrapper"),function(r,t){for(r.appendChild(t);r.firstChild!==t;)t.appendChild(r.firstChild)}(e,Pg('
    ')),NY(l,e);var c=e.children[1],d=new Q8e(e),h=new z2(c),f=new J8e({element:c,container:e,forcedEnabled:o.options.zoom}),g=a.options.avoidScrolling,_=new X2(e,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:o.options.zoom,supportDoubleTap:o.options.supportDoubleTap,start:function(R){f.refresh();var N=Gf(R.x.velocity),V=Gf(R.y.velocity),U=2*N>=V,ee=function(r,t){return r===t||function(r,t){if(!t)return!1;for(var e=t.parentNode;null!==e;){if(e===r)return!0;e=e.parentNode}return!1}(r,t)}(o.fixedContainer,R.event.target),ve=2*V>=N;!ee&&!g(R)&&o.enabled&&(f.x.enabled&&U||f.y.enabled&&ve)?_.capture():_.cancel()}}),C=new e5e({movable:h,dimensions:f,userEvents:_,elastic:o.options.elastic}),w=new C5e({movable:h,dimensions:f,userEvents:_,tapCapture:d}),E=new S5e({moveTo:function(R){o.scrollTo(R.x,R.y)}});return h.bind(uE,function(){o.scrollTop=-h.y,o.scrollLeft=-h.x,o.trigger("scroll",{scrollTop:o.scrollTop,scrollLeft:o.scrollLeft})}),o.options.mousewheelScrolling&&(a._wheelScrollHandler=a._wheelScroll.bind(Xe(a)),eo(e,"DOMMouseScroll mousewheel",a._wheelScrollHandler)),Bg(o,{movable:h,dimensions:f,zoomSnapBack:w,animatedScroller:E,userEvents:_,pane:C,tapCapture:d,pulled:!1,enabled:!0,scrollElement:c,scrollTop:0,scrollLeft:0,fixedContainer:e.children[0]}),o._initAxis("x"),o._initAxis("y"),o._wheelEnd=function(){o._wheel=!1,o.userEvents.end(0,o._wheelY)},f.refresh(),o.options.pullToRefresh&&o._initPullToRefresh(),a}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_wheelScroll",value:function(n){if(!n.ctrlKey){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var a=function(r){var n,t=r.originalEvent||r,e=t.wheelDeltaY;return t.wheelDelta?(void 0===e||e)&&(n=t.wheelDelta):t.detail&&t.axis===t.VERTICAL_AXIS&&(n=10*-t.detail),n}(n);a&&(this._wheelY+=a,this.userEvents.move(0,this._wheelY)),n.preventDefault()}}},{key:"makeVirtual",value:function(){this.dimensions.y.makeVirtual()}},{key:"virtualSize",value:function(n,a){this.dimensions.y.virtualSize(n,a)}},{key:"height",value:function(){return this.dimensions.y.size}},{key:"scrollHeight",value:function(){return this.scrollElement.scrollHeight}},{key:"scrollWidth",value:function(){return this.scrollElement.scrollWidth}},{key:"_resize",value:function(){this._native||this.contentResized()}},{key:"setOptions",value:function(n){this._initOptions(n),n.pullToRefresh&&this._initPullToRefresh()}},{key:"reset",value:function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))}},{key:"contentResized",value:function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)}},{key:"zoomOut",value:function(){var n=this.dimensions;n.refresh(),this._scale(n.fitScale),this.movable.moveTo(n.centerCoordinates())}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1}},{key:"scrollTo",value:function(n,a){this._native?(this.scrollElement.scrollLeft(Gf(n)),this.scrollElement.scrollTop(Gf(a))):(this.dimensions.refresh(),this.movable.moveTo({x:n,y:a}))}},{key:"animatedScrollTo",value:function(n,a,o){this._native?this.scrollTo(n,a):(this.animatedScroller.setCoordinates({x:this.movable.x,y:this.movable.y},{x:n,y:a}),this.animatedScroller.setCallback(o),this.animatedScroller.start())}},{key:"pullHandled",value:function(){}},{key:"destroy",value:function(){wo(this.element,"DOMMouseScroll mousewheel",this._wheelScrollHandler),this.userEvents&&this.userEvents.destroy()}},{key:"_scale",value:function(n){this.dimensions.rescale(n),this.movable.scaleTo(n)}},{key:"_initPullToRefresh",value:function(){}},{key:"_dragEnd",value:function(){}},{key:"_paneChange",value:function(){}},{key:"_initAxis",value:function(n){var a=this,o=a.movable,s=a.dimensions[n],l=a.tapCapture,u=a.pane[n],c=new w5e({axis:n,movable:o,dimension:s,container:a.element,alwaysVisible:a.options.visibleScrollHints});s.bind(uE,function(){c.refresh()}),u.bind(uE,function(){c.show()}),a[n+"inertia"]=new b5e({axis:n,paneAxis:u,movable:o,tapCapture:l,userEvents:a.userEvents,dimension:s,elastic:a.options.elastic,friction:a.options.friction||.96,velocityMultiplier:a.options.velocityMultiplier||10,end:function(){c.hide(),a.trigger("scrollEnd",{axis:n,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft})}})}}]),t}(El);ze(Y2,{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}}),iE(Y2,["pull","scroll","resize"]);var D5e=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,i),this.sender=t.sender||r,this.widget=r,this.rtl=Boolean(t.rtl)}return v(i,[{key:"notify",value:function(t,e){this.widget&&this.widget.trigger(t,e)}}]),i}(),E5e=D5e,qd=Math,TQ=qd.min,Q2=qd.pow,AQ=Pe,cE="marker",dE="location",xQ="DOMMouseScroll mousewheel",R5e=De({bubble:iQ,shape:K2,tile:YY},cE,W2);function MQ(i){var r=[];if(i)for(var t=FY(i).split("-"),e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p(this,t),(n=r.call(this))._init(e,a,o,s),n}return v(t,[{key:"destroy",value:function(){this.scroller.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),Jr(this.markers)?this.markers.forEach(function(a){a.destroy()}):this.markers.destroy();for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.support=Pf(),this.context=s,this.initObserver(s),this.initServices(s),this._initOptions(a),this._setEvents(a),this.crs=new R8e,this._initElement(n),this._viewOrigin=this._getOrigin(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset(),this._mousewheelHandler=this._mousewheel.bind(this),eo(this.element,xQ,this._mousewheelHandler)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_initElement",value:function(n){this.element=n,Za(n,"k-map"),n.style.position="relative",n.setAttribute("data-role","map"),Kk(n);var a=Pg("
    ");this.element.appendChild(a)}},{key:"initServices",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.widgetService=new E5e(this,n)}},{key:"initObserver",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.observers=[],this.addObserver(n.observer)}},{key:"addObserver",value:function(n){n&&this.observers.push(n)}},{key:"removeObserver",value:function(n){var a=this.observers.indexOf(n);a>=0&&this.observers.splice(a,1)}},{key:"requiresHandlers",value:function(n){for(var a=this.observers,o=0;o1&&void 0!==arguments[1]?arguments[1]:{};a.sender=this;for(var o=this.observers,s=!1,l=0;l1&&void 0!==arguments[1]?arguments[1]:{};a.sender=this;for(var o=this.observers,s=!1,l=0;l0&&void 0!==arguments[0]?arguments[0]:{},a=this.element;this.destroy(),Kk(a),this._init(a,n,{},this.context),this._reset()}},{key:"locationToLayer",value:function(n,a){var o=!this.options.wraparound,s=na.create(n);return this.crs.toPoint(s,this._layerSize(a),o)}},{key:"layerToLocation",value:function(n,a){var o=!this.options.wraparound,s=AQ.create(n);return this.crs.toLocation(s,this._layerSize(a),o)}},{key:"locationToView",value:function(n){var a=na.create(n),o=this.locationToLayer(this._viewOrigin);return this.locationToLayer(a).translateWith(o.scale(-1))}},{key:"viewToLocation",value:function(n,a){var o=this.locationToLayer(this._getOrigin(),a),l=AQ.create(n).clone().translateWith(o);return this.layerToLocation(l,a)}},{key:"eventOffset",value:function(n){var a,o,s=ik(this.element);if(n.x&&n.x[dE]||n.y&&n.y[dE])a=n.x[dE]-s.left,o=n.y[dE]-s.top;else{var l=n.originalEvent||n;a=qt(l.pageX,l.clientX)-s.left,o=qt(l.pageY,l.clientY)-s.top}return new Pe(a,o)}},{key:"eventToView",value:function(n){var a=this.eventOffset(n);return this.locationToView(this.viewToLocation(a))}},{key:"eventToLayer",value:function(n){return this.locationToLayer(this.eventToLocation(n))}},{key:"eventToLocation",value:function(n){var a=this.eventOffset(n);return this.viewToLocation(a)}},{key:"viewSize",value:function(){var n=this.element,a=this._layerSize(),o=n.clientWidth;return this.options.wraparound||(o=TQ(a,o)),{width:o,height:TQ(a,n.clientHeight)}}},{key:"exportVisual",value:function(){return this._reset(),!1}},{key:"_setOrigin",value:function(n,a){var s,o=this.viewSize(),l=this._origin=na.create(n);return(s=this.locationToLayer(l,a)).x+=o.width/2,s.y+=o.height/2,this.options.center=this.layerToLocation(s,a).toArray(),this}},{key:"_getOrigin",value:function(n){var o,a=this.viewSize();return(n||!this._origin)&&((o=this.locationToLayer(this.center())).x-=a.width/2,o.y-=a.height/2,this._origin=this.layerToLocation(o)),this._origin}},{key:"_setExtent",value:function(n){var a=aE.create(n),o=a.se.clone();this.options.wraparound&&o.lng<0&&n.nw.lng>0&&(o.lng=180+(180+o.lng));var s=new aE(a.nw,o);this.center(s.center());var c,l=this.element.clientWidth,u=this.element.clientHeight;for(c=this.options.maxZoom;c>=this.options.minZoom;c--){var d=this.locationToLayer(s.nw,c),h=this.locationToLayer(s.se,c),f=qd.abs(h.x-d.x),g=qd.abs(h.y-d.y);if(f<=l&&g<=u)break}this.zoom(c)}},{key:"_getExtent",value:function(){var n=this._getOrigin(),a=this.locationToLayer(n),o=this.viewSize();a.x+=o.width,a.y+=o.height;var s=this.layerToLocation(a);return new aE(n,s)}},{key:"_zoomAround",value:function(n,a){this._setOrigin(this.layerToLocation(n,a),a),this.zoom(a)}},{key:"_initControls",value:function(){var n=this.options.controls;n.attribution&&this._createAttribution(n.attribution),this.support.mobileOS||(n.navigator&&this._createNavigator(n.navigator),n.zoom&&this._createZoomControl(n.zoom))}},{key:"_createControlElement",value:function(n,a){var o=n.position||a,s="."+MQ(o).replace(" ","."),l=this.element.querySelector(".k-map-controls"+s)||[];if(0===l.length){var u=document.createElement("div");Za(u,"k-map-controls "+MQ(o)),this.element.appendChild(l=u)}var c=document.createElement("div");return l.appendChild(c),c}},{key:"_createAttribution",value:function(n){var a=this._createControlElement(n,"bottomRight");this.attribution=new UY(a,n)}},{key:"_createNavigator",value:function(n){var a=this._createControlElement(n,"topLeft"),o=this.navigator=new B2(a,n);this._navigatorPan=this._navigatorPan.bind(this),o.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),o.bind("center",this._navigatorCenter)}},{key:"_navigatorPan",value:function(n){var a=this.scroller,o=a.scrollLeft+n.x,s=a.scrollTop-n.y,l=this._virtualSize,c=this.element.clientHeight;o=Mt(o,l.x.min,l.x.max-this.element.clientWidth),s=Mt(s,l.y.min,l.y.max-c),this.scroller.one("scroll",ui(this._scrollEnd,this)),this.scroller.scrollTo(-o,-s)}},{key:"_navigatorCenter",value:function(){this.center(this.options.center)}},{key:"_createZoomControl",value:function(n){var a=this._createControlElement(n,"topLeft"),o=this.zoomControl=new G2(a,n);this._zoomControlChange=this._zoomControlChange.bind(this),o.bind("change",this._zoomControlChange)}},{key:"_zoomControlChange",value:function(n){this.trigger("zoomStart",{originalEvent:n})||(this.zoom(this.zoom()+n.delta),this.trigger("zoomEnd",{originalEvent:n}))}},{key:"_initScroller",value:function(){var o=this.scroller=new Y2(this.element.children[0],{friction:this.support.mobileOS?.93:.9,velocityMultiplier:5,zoom:!1!==this.options.zoomable,mousewheelScrolling:!1,supportDoubleTap:!0});o.bind("scroll",ui(this._scroll,this)),o.bind("scrollEnd",ui(this._scrollEnd,this)),o.userEvents.bind("gesturestart",ui(this._scaleStart,this)),o.userEvents.bind("gestureend",ui(this._scale,this)),o.userEvents.bind("doubleTap",ui(this._doubleTap,this)),o.userEvents.bind("tap",ui(this._tap,this)),this.scrollElement=o.scrollElement}},{key:"_initLayers",value:function(){for(var n=this.options.layers,a=this.layers=[],o=0;o0||(this.markers=new W2(this,this.options.markerDefaults),this.markers.add(this.options.markers))}},{key:"_scroll",value:function(n){var a=this.locationToLayer(this._viewOrigin).round(),o=n.sender.movable,s=new Pe(o.x,o.y).scale(-1).scale(1/o.scale);a.x+=s.x,a.y+=s.y,this._scrollOffset=s,this._setOrigin(this.layerToLocation(a)),this.trigger("pan",{originalEvent:n,origin:this._getOrigin(),center:this.center()})}},{key:"_scrollEnd",value:function(n){!this._scrollOffset||!this._panComplete()||(this._scrollOffset=null,this._panEndTimestamp=Vc(),this.trigger("panEnd",{originalEvent:n,origin:this._getOrigin(),center:this.center()}))}},{key:"_panComplete",value:function(){return Vc()-(this._panEndTimestamp||0)>50}},{key:"_scaleStart",value:function(n){if(this.trigger("zoomStart",{originalEvent:n})){var a=n.touches[1];a&&a.cancel()}}},{key:"_scale",value:function(n){var o=this._scaleToZoom(this.scroller.movable.scale),s=new Pe(n.center.x,n.center.y),l=this.viewToLocation(s,o),c=this.locationToLayer(l,o).translate(-s.x,-s.y);this._zoomAround(c,o),this.trigger("zoomEnd",{originalEvent:n})}},{key:"_scaleToZoom",value:function(n){var a=this._layerSize()*n,s=qd.log(a/this.options.minSize)/qd.log(2);return qd.round(s)}},{key:"_reset",value:function(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.trigger("beforeReset"),this.trigger("reset")}},{key:"_resetScroller",value:function(){var n=this.scroller,a=n.dimensions.x,o=n.dimensions.y,s=this._layerSize(),l=this.extent().nw,u=this.locationToLayer(l).round();n.movable.round=!0,n.reset(),n.userEvents.cancel();var c=this.zoom();n.dimensions.forcedMinScale=Q2(2,this.options.minZoom-c),n.dimensions.maxScale=Q2(2,this.options.maxZoom-c);var d={min:-u.x,max:s-u.x},h={min:-u.y,max:s-u.y};if(this.options.wraparound&&(d.max=20*s,d.min=-d.max),!1===this.options.pannable){var f=this.viewSize();d.min=h.min=0,d.max=f.width,h.max=f.height}a.makeVirtual(),o.makeVirtual(),a.virtualSize(d.min,d.max),o.virtualSize(h.min,h.max),this._virtualSize={x:d,y:h}}},{key:"_renderLayers",value:function(){}},{key:"_layerSize",value:function(n){var a=qt(n,this.options.zoom);return this.options.minSize*Q2(2,a)}},{key:"_tap",value:function(n){if(this._panComplete()){var a=this.eventOffset(n);this.trigger("click",{originalEvent:n,location:this.viewToLocation(a)})}}},{key:"_doubleTap",value:function(n){if(!1!==this.options.zoomable&&!this.trigger("zoomStart",{originalEvent:n})){var o=this.zoom()+1,s=this.eventOffset(n),l=this.viewToLocation(s),c=this.locationToLayer(l,o).translate(-s.x,-s.y);this._zoomAround(c,o),this.trigger("zoomEnd",{originalEvent:n})}}},{key:"_mousewheel",value:function(n){n.preventDefault();var a=hN(n)>0?-1:1,o=this.options,s=this.zoom(),l=Mt(s+a,o.minZoom,o.maxZoom);if(!1!==o.zoomable&&l!==s&&!this.trigger("zoomStart",{originalEvent:n})){var u=this.eventOffset(n),c=this.viewToLocation(u),h=this.locationToLayer(c,l).translate(-u.x,-u.y);this._zoomAround(h,l),this.trigger("zoomEnd",{originalEvent:n})}}}]),t}(El);ze(RQ,{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}},bubble:{style:{fill:{color:"#fff",opacity:.5},stroke:{color:"#aaa",width:.5}}},marker:{shape:"pinTarget",tooltip:{position:"top"}}},center:[0,0],zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{position:"top"}},wraparound:!0,renderPointsAsMarkers:!1}),iE(RQ,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);var J2="Arial, Helvetica, sans-serif",eL="12px "+J2,IQ="16px "+J2,NQ="transparent",LQ=function(){return{icon:{border:{width:1}},label:{font:eL,padding:3},line:{length:10,width:2},visible:!0}},I5e=function(){return{labels:{font:eL},notes:LQ(),title:{font:IQ,margin:5}}},W5e=function(r){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:r.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:NQ},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:NQ,visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:LQ(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},$5e=function(){return{font:IQ}},q5e=function(){return{labels:{font:eL}}},jQ=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{axisDefaults:I5e(),categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:W5e(r),title:$5e(),legend:q5e()}};function X5e(i,r){var t={width:"800px",height:"600px",cors:"Anonymous"},e=i,n=i.clippedBBox();if(n){var a=n.getOrigin();(e=new sn).transform(Hn().translate(-a.x,-a.y)),e.children.push(i);var o=n.getSize();t.width=o.width+"px",t.height=o.height+"px"}var s=Object.assign(t,r),l=document.createElement("div"),u=l.style;u.display="none",u.width=s.width,u.height=s.height,document.body.appendChild(l);var c=new TX(l,s);c.suspendTracking(),c.draw(e);var d=c.image(),h=function(){c.destroy(),document.body.removeChild(l)};return d.then(h,h),d}function Y5e(i,r){var t=function Z5e(i){var r=new _X({skipBaseHref:!0}),t=i.clippedBBox(),e=i;if(t){var n=t.getOrigin(),a=new sn;a.transform(Hn().translate(-n.x,-n.y)),a.children.push(i),e=a}r.load([e]);var o="").concat(r.render(),"");return r.destroy(),o}(i);return(!r||!r.raw)&&(t="data:image/svg+xml;base64,"+UD(t)),gf().resolve(t)}function hE(i){return"string"==typeof i}var r,t4e=/\{(\d+)}?\}/g,n4e=function(){function i(r){var t=r.name,e=r.message;if(p(this,i),!t||!e)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=e}return v(i,[{key:"formatMessage",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n=1;a--){var o=e[a];(o===r.variant||o===r.script)&&e.splice(a,1)}var s=e.length;if(s>1)return e[s-1].toUpperCase()}(i.name,t),i.territory=e,e}function k4e(i,r){for(var t in r)"numbers"===t?c4e(i,r[t]):"dates"===t&&_4e(i,r[t])}function JQ(i,r){var t=r.type,e=r.nameType,n=r.standAlone,a=r.lower,l=(a?"lower-":"")+e,u=Vg(i).calendar[t][n?"stand-alone":"format"],c=u[l];return!c&&a&&(c=u[l]=function D4e(i){var r=Array.isArray(i)?function S4e(i){for(var r=[],t=0;t1&&void 0!==arguments[1])||arguments[1];if(tJ[i])return tJ[i];var t=zi.supplemental.currencyData;if(t){var e=t.region[i];if(e)return I4e(e);if(r)throw x4e.error(i)}else if(r)throw A4e.error()}(gE(t),r);if(!n&&r)throw M4e.error(t.name);e.localeCurrency=n}return e.localeCurrency}var sL=["sun","mon","tue","wed","thu","fri","sat"],B4e=Tl.NoWeekData,G4e=Tl.NoFirstDay;function rJ(i){var r=Vg(i);if(!isNaN(r.firstDay))return r.firstDay;var t=zi.supplemental.weekData;if(!t)throw B4e.error();var e=t.firstDay[gE(r)]||t.firstDay["001"];if(!e)throw G4e.error();return r.firstDay=sL.indexOf(e),r.firstDay}var V4e=Tl.NoWeekData;function aJ(i){return 1/i==-1/0}function oJ(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.currency||(r.currency=iJ(i,!0));var t=F4e(i,r);return t}function sJ(i,r,t,e,n){var a=n.numbers.symbols,o=i.indexOf(a.decimal),s=e.groupSize.slice(),l=s.shift(),u=-1!==o?o:t+1,c=i.substring(r,u),d=i,h=c.length;if(h>=l){for(var f=h,g=[];f>-1;){var _=c.substring(f-l,f);_&&g.push(_),f-=l;var C=s.shift();if(0===(l=void 0!==C?C:l)){(_=c.substring(0,f))&&g.push(_);break}}c=g.reverse().join(a.group),d=i.substring(0,r)+c+i.substring(u)}return d}function uL(i){return i===$k||i===fE}function to(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e=r-String(i).length,n=i;if(e>0){var a=new Array(e+1).join("0");n=t?i+a:a+i}return n}function qk(i,r){var t=i,e=r||0;return t=t.toString().split("e"),t=(t=Math.round(Number(t[0]+"e"+(t[1]?Number(t[1])+e:e)))).toString().split("e"),(t=Number(t[0]+"e"+(t[1]?Number(t[1])-e:-e))).toFixed(Math.min(e,20))}var W4e=/0+$/;function Z4e(i,r,t){var e=t.numbers.symbols,n=r.style,a=uL(n);if(n===WQ)return(void 0!==r.minimumFractionDigits?i.toExponential(r.minimumFractionDigits):i.toExponential()).replace(Zd,e.decimal);var l,s=i;a&&(r.value=s,l=oJ(t,r)),n===Ug&&(s*=100,l=e.percentSign);var u=function $4e(i){var a,r=i.minimumFractionDigits,t=i.maximumFractionDigits,e=i.style,n=uL(e);return n&&(a=function L4e(i){var r=2,t=2,e=((zi.supplemental.currencyData||{}).fractions||{})[i];return e&&e._digits&&(t=r=parseInt(e._digits,10)),{minimumFractionDigits:r,maximumFractionDigits:t}}(i.currency)),void 0===r&&(r=n?a.minimumFractionDigits:0),void 0===t&&(t=e===Ug?Math.max(r,0):n?Math.max(r,a.maximumFractionDigits):Math.max(r,3)),{minimumFractionDigits:r,maximumFractionDigits:t}}(r),c=u.minimumFractionDigits,h=(s=qk(s,u.maximumFractionDigits))<0,f=aJ(i),g=s.split(Zd),_=g[0],C=to(g[1]?g[1].replace(W4e,""):"",c,!0);h&&(_=_.substring(1)),r.minimumIntegerDigits&&(_=to(_,r.minimumIntegerDigits));var E,w=!1!==r.useGrouping?sJ(_,0,_.length,r,t):_;if(C&&(w+=e.decimal+C),a&&"name"===r.currencyDisplay)E=function X4e(i,r){var t=i.numbers.currency,e=1!==r?t["unitPattern-count-other"]:t["unitPattern-count-one"];return r<0&&(e=e.replace(Xd,"-".concat(Xd))),e}(t,i);else{var M=r.patterns;E=h||f?M[1]||"-"+M[0]:M[0]}if(E===Xd&&!h)return w;var R=function q4e(i,r,t){for(var e="",n=0,a=r.length;n-1||r.indexOf('"')>-1||r.indexOf("\\")>-1){var t=i.literals=[];i.format=r.replace(Y4e,function(e){var n=e.charAt(0).replace("\\",""),a=e.slice(1).replace(n,"");return t.push(a),"__??__"})}}var J4e=/(\.(?:[0-9]*[1-9])?)0+$/g,eKe=/\.$/,tKe=/\,/g;function dJ(i,r,t){return-1===i&&-1!==r?r:-1!==i&&-1===r?i:t?Math.min(i,r):Math.max(i,r)}function dKe(i,r,t){var e={negative:i<0,number:Math.abs(i),negativeZero:aJ(i),format:r};return function aKe(i){var r=i.number,t=i.format;if(t=t.split(";"),(i.negative||i.negativeZero)&&t[1])t=t[1],i.hasNegativeFormat=!0;else if(0===r){var e=t[2];t=e||t[0],e&&function rKe(i){return-1===i.indexOf("#")&&-1===i.indexOf("0")}(e)&&(i.constant=e)}else t=t[0];i.format=t}(e),e.constant?e.constant:(cJ(e),uJ(e,t),function oKe(i){i.hasGroup=i.format.indexOf(",")>-1,i.hasGroup&&(i.format=i.format.replace(tKe,""))}(e),function iKe(i){var r=i.number,t=i.format,e=t.indexOf(Zd);if(-1!==e){var n=t.lastIndexOf("0")-e,a=t.lastIndexOf("#")-e,o=n>-1,s=a>-1,l=r.toString().split("e"),u=(l=(l=l[1]?qk(r,Math.abs(l[1])):l[0]).split(Zd)[1]||"").length,c=-1;o||s?o&&n>a?u=n:a>n&&(s&&u>a?u=a:o&&u-1&&(r=qk(r,u),c>-1&&(r=function nKe(i,r){var t;return t=0===r?J4e:new RegExp("(\\.[0-9]{".concat(r,"}[1-9]*)0+$"),"g"),i.replace(t,"$1").replace(eKe,"")}(r,c)))}else r=qk(r);i.negative&&-1*r>=0&&!i.negativeZero&&(i.negative=!1),i.number=r,i.decimalIndex=e}(e),function sKe(i){var r=i.format,t=r.indexOf("#"),e=r.indexOf("0"),n=dJ(t,e,!0),a=dJ(t=r.lastIndexOf("#"),e=r.lastIndexOf("0"));n===r.length&&(a=n),i.start=n,i.end=a,i.lastZeroIndex=e}(e),function cKe(i,r){var t=i.number;return-1!==i.start&&(t=function uKe(i,r){var t=i.start,e=i.end,n=i.negative,a=i.negativeZero,o=i.format,s=i.decimalIndex,l=i.lastZeroIndex,u=i.hasNegativeFormat,c=i.hasGroup,d=i.number,h=d.toString().split(Zd),f=o.length,g=h[0],_=h[1]||"",C=g.length,w="";d=o.substring(0,t),(n||a)&&!u&&(d+="-");for(var E=t;E-1&&(d+=g,E=s),s===E){d+=(_?r.numbers.symbols.decimal:"")+_,E+=e-s+1;continue}"0"===M?(d+=M,w=M):"#"===M&&(d+=w)}return c&&(d=sJ(d,t+(n&&!u?1:0),Math.max(e,C+t),r.numbers.decimal,r)),e>=t&&(d+=o.substring(e+1)),d}(i,r),t=function lKe(i,r,t){var e=i;if(r===$k||r===Ug){e="";for(var n=0,a=i.length;n1&&void 0!==arguments[1]?arguments[1]:Xd,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hg;if(null==i)return"";if(!isFinite(i))return String(i);var a,e=Vf(t),n=hJ(r);if(n){var o=n.style||tL;a=Z4e(i,Object.assign({},e.numbers[o],n),e)}else a=dKe(i,r,e);return a}function cL(i){return"number"==typeof i}var vKe=/[eE][\-+]?[0-9]+/,vJ=/\u00A0/g;function pJ(i,r){if(r.length>1){var t=(r[1]||"").replace("$","").split(Xd);if(i.indexOf(t[0])>-1&&i.indexOf(t[1])>-1)return i.replace(t[0],"").replace(t[1],"")}}function pKe(i,r,t){var o,e=hJ(t)||{},n=uL(e.style),a=i,s=e.currency||iJ(r,n);if(s){var l=function N4e(i,r){var e=nJ(i,r,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]);if(e){if(!e.displays){var n=[r];for(var a in e)n.push(e[a]);n.sort(O4e),e.displays=n}return e.displays}}(r,s,n);if(l)for(var u=0;ue&&(e=u,n=s,a=r[o])}a=a.replace("v","z");for(var _=0;_0){var a=i.substr(0,e),o=i.substr(e);n=dL(r.calendar.dateTimeFormats.short,t[o]||vL(mE(o),t),t[a]||vL(mE(a),t))}else n=vL(mE(i),t);return function xKe(i,r,t){jg[t]||(jg[t]={}),jg[t][i]=r}(i,n,r.name),n}(n,r))}return e||(e=t.patterns.d),e}function yJ(i){var r;return i<=3?r="abbreviated":4===i?r="wide":5===i?r="narrow":6===i&&(r="short"),r}function Al(i,r,t,e,n){return JQ(i,{type:r,nameType:yJ(t),standAlone:e,lower:n})}function kJ(i){return"function"==typeof i}function gL(i){return Boolean(i)&&kJ(i.getTime)&&kJ(i.getMonth)}var _E="hour",yE="zone",mL="weekday",bJ="quarter",OKe={G:"era",y:"year",q:bJ,Q:bJ,M:"month",L:"month",d:"day",E:mL,c:mL,e:mL,h:_E,H:_E,k:_E,K:_E,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:yE,X:yE,z:yE,Z:yE},Yk=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function SJ(i,r,t,e){return r<=2?to(i+1,r):Al(t,"months",r,e)[i]}function wJ(i,r,t,e){var n=Math.floor(i.getMonth()/3);return r<3?n+1:Al(t,"quarters",r,e)[n]}function kE(i,r,t){var e=t.shortHours,n=t.optionalMinutes,a=t.separator,o=t.localizedName,s=t.zZeroOffset,l=i.getTimezoneOffset()/60;if(0===l&&s)return"Z";var u=l<=0?"+":"-",c=Math.abs(l).toString().split("."),d=c[1]||0,h=u+(e?c[0]:to(c[0],2));return(d||!n)&&(h+=(a?":":"")+to(d,2)),o&&(h=dL(0===l?r.calendar.gmtZeroFormat:r.calendar.gmtFormat,h)),h}function DJ(i,r,t,e){return r<3?function IKe(i,r,t){var e=rJ(t);return(i2&&void 0!==arguments[2]?arguments[2]:Hg;if(!gL(i))return null==i?"":i;var e=Vf(t),n=pL(r,e);return n.replace(Yk,function(a){var o=a.length;return a.includes("'")||a.includes('"')?a.slice(1,o-1):er[a[0]](i,o,e)})}function TJ(i,r,t){var e=i.getTimezoneOffset(),n=new Date(i.getTime()+6e4*(r-t)),a=n.getTimezoneOffset();return new Date(n.getTime()+6e4*(a-e))}er.d=function(i,r){return to(i.getDate(),r)},er.E=function(i,r,t){return Al(t,"days",r)[i.getDay()]},er.M=function(i,r,t){return SJ(i.getMonth(),r,t,!1)},er.L=function(i,r,t){return SJ(i.getMonth(),r,t,!0)},er.y=function(i,r){var t=i.getFullYear();return 2===r&&(t%=100),to(t,r)},er.h=function(i,r){return to(i.getHours()%12||12,r)},er.H=function(i,r){return to(i.getHours(),r)},er.k=function(i,r){return to(i.getHours()||24,r)},er.K=function(i,r){return to(i.getHours()%12,r)},er.m=function(i,r){return to(i.getMinutes(),r)},er.s=function(i,r){return to(i.getSeconds(),r)},er.S=function(i,r){var t=i.getMilliseconds();return 0!==t?to(String(t/1e3).split(".")[1].substr(0,r),r,!0):to("",r)},er.a=function(i,r,t){return Al(t,"dayPeriods",r)[i.getHours()<12?"am":"pm"]},er.z=function(i,r,t){return kE(i,t,{shortHours:r<4,optionalMinutes:r<4,separator:!0,localizedName:!0})},er.Z=function(i,r,t){return kE(i,t,{separator:r>3,localizedName:4===r,zZeroOffset:5===r})},er.x=function(i,r,t){return kE(i,t,{optionalMinutes:1===r,separator:3===r||5===r})},er.X=function(i,r,t){return kE(i,t,{optionalMinutes:1===r,separator:3===r||5===r,zZeroOffset:!0})},er.G=function(i,r,t){var e=i.getFullYear()>=0?1:0;return Al(t,"eras",r)[e]},er.e=DJ,er.c=function(i,r,t){return DJ(i,r,t,!0)},er.q=function(i,r,t){return wJ(i,r,t,!0)},er.Q=wJ;var FKe=/([+|\-]\d{1,2})(:?)(\d{2})?/,LKe=/^\/Date\((.*?)\)\/$/,PKe=/[+-]\d*/,BKe={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},GKe=/\d+/,VKe=/^ */,UKe=/ *$/,zKe=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],xJ=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Ks(i,r,t){return!(i>=r&&i<=t)}function ia(i,r){for(var t=r.format,e=r.idx,n=0;t[e]===i;)n++,e++;return n>0&&(e-=1),r.idx=e,n}function mu(i,r){var t=i?BKe[i]||new RegExp("^\\d{1,"+i+"}"):GKe,e=r.value.substr(r.valueIdx,i).match(t);return e?(r.valueIdx+=(e=e[0]).length,parseInt(e,10)):null}function Uf(i,r,t){for(var a,o,u,e=0,n=i.length,s=0,l=0;es&&(s=o,l=e);return s?(r.valueIdx+=s,l+1):null}function _L(i){var r=!1;return i.value.charAt(i.valueIdx)===i.format[i.idx]&&(i.valueIdx++,r=!0),r}function CE(i,r,t){var e=t.shortHours,n=t.noSeparator,a=t.optionalMinutes,o=t.localizedName,s=t.zLiteral;if(i.UTC=!0,s&&"Z"===i.value.charAt(i.valueIdx))return i.valueIdx++,!1;if(o&&!Uf(function KKe(i){var r=i.gmtFormat,t=i.gmtZeroFormat;if(!r)throw Tl.NoGMTInfo.error();return[r.replace("{0}","").toLowerCase(),t.replace("{0}","").toLowerCase()]}(r.calendar),i,!0))return!0;var l=FKe.exec(i.value.substr(i.valueIdx,6));if(!l)return!o;var u=l[1],c=l[3],d=parseInt(u,10),h=l[2],f=parseInt(c,10);if(isNaN(d)||!e&&3!==u.length||!a&&isNaN(f)||n&&h||(isNaN(f)&&(f=null),Ks(d,-12,13)||f&&Ks(f,0,59)))return!0;i.valueIdx+=l[0].length,i.hoursOffset=d,i.minutesOffset=f}function MJ(i,r,t){var e=ia(i,r),n=Al(t,"months",e,"L"===i,!0),a=e<3?mu(2,r):Uf(n,r,!0);if(null===a||Ks(a,1,12))return!0;r.month=a-1}function RJ(i,r,t){var e=ia(i,r),n=Al(t,"days",e,"c"===i,!0),a=e<3?mu(1,r):Uf(n,r,!0);if(!a&&0!==a||Ks(a,1,7))return!0}var dr={};function WKe(i,r){var t=VKe.exec(r)[0],e=UKe.exec(r)[0];return"".concat(t).concat(i).concat(e)}function $Ke(i,r,t){for(var e=pL(r,t).split(""),n={format:e,idx:0,value:WKe(i,r),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},a=e.length,o=!1;n.idx2029&&(t-=100)}i.year=t},dr.h=function(i){ia("h",i);var r=mu(2,i);if(12===r&&(r=0),null===r||Ks(r,0,11))return!0;i.hours=r},dr.K=function(i){ia("K",i);var r=mu(2,i);if(null===r||Ks(r,0,11))return!0;i.hours=r},dr.a=function(i,r){var e=Al(r,"dayPeriods",ia("a",i),!1,!0),n=Uf([e.pm],i,!0);if(!n&&!Uf([e.am],i,!0))return!0;i.pmHour=n},dr.H=function(i){ia("H",i);var r=mu(2,i);if(null===r||Ks(r,0,23))return!0;i.hours=r},dr.k=function(i){ia("k",i);var r=mu(2,i);if(null===r||Ks(r,1,24))return!0;i.hours=24===r?0:r},dr.m=function(i){ia("m",i);var r=mu(2,i);if(null===r||Ks(r,0,59))return!0;i.minutes=r},dr.s=function(i){ia("s",i);var r=mu(2,i);if(null===r||Ks(r,0,59))return!0;i.seconds=r},dr.S=function(i){var r=ia("S",i),t=i.value.substr(i.valueIdx,r),e=null;if(isNaN(parseInt(t,10))||(e=qk(e=parseFloat("0."+t,10),3),e*=1e3,i.valueIdx+=r),null===e||Ks(e,0,999))return!0;i.milliseconds=e},dr.z=function(i,r){var e=ia("z",i)<4,n=CE(i,r,{shortHours:e,optionalMinutes:e,localizedName:!0});if(n)return n},dr.Z=function(i,r){var t=ia("Z",i),e=CE(i,r,{noSeparator:t<4,zLiteral:5===t,localizedName:4===t});if(e)return e},dr.x=function(i,r){var t=ia("x",i),e=CE(i,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t});if(e)return e},dr.X=function(i,r){var t=ia("X",i),e=CE(i,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t,zLiteral:!0});if(e)return e},dr.G=function(i,r){var e=Al(r,"eras",ia("G",i),!1,!0);if(null===Uf([e[0],e[1]],i,!0))return!0},dr.e=function(i,r){return RJ("e",i,r)},dr.c=function(i,r){return RJ("c",i,r)};var QKe={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},OJ="literal";function yL(i,r){var t=i[i.length-1];t&&t.type===OJ?t.pattern+=r:i.push({type:OJ,pattern:r})}function JKe(i){return"h"===i||"K"===i}var t6e=/\{(\d+)(:[^\}]+)?\}/g;function kL(i,r,t){if(r){if(gL(i))return EJ(i,r,t);if(cL(i))return fJ(i,r,t)}return null!=i?i:""}var i6e={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440833,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Uc="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",IJ={NoCurrency:"Solution: ".concat(Uc,"#toc-no-currency"),NoCurrencyDisplay:"Solution: ".concat(Uc,"#toc-no-currency-display"),NoCurrencyRegion:"Solution: ".concat(Uc,"#toc-no-currency-region"),NoDateFieldNames:"Solution: ".concat(Uc,"#toc-no-date-filed-names"),NoFirstDay:"Solution: ".concat(Uc,"#toc-no-first-day"),NoGMTInfo:"Solution: ".concat(Uc,"#toc-no-gmt-info"),NoLocale:"Solution: ".concat(Uc,"#toc-no-locale"),NoValidCurrency:"Solution: ".concat(Uc,"#toc-no-valid-currency"),NoWeekData:"Solution: ".concat(Uc,"#toc-no-week-data")};function NJ(i){var r=i.message,t=IJ[Object.keys(IJ).filter(function(e){return 0===r.indexOf(e)})[0]];return t?"".concat(r," ").concat(t):r}function ts(i){return function(){try{for(var r=arguments.length,t=new Array(r),e=0;e1&&void 0!==arguments[1]?arguments[1]:Hg,t=Vf(r),e=t.calendar.dateFields;if(!e)throw Tl.NoDateFieldNames.error();var n=e[i.type]||{};return n[i.nameType]||n.wide}),o6e=ts(rJ),s6e=ts(function n6e(i,r,t){return i.replace(t6e,function(e,n,a){return kL(r[parseInt(n,10)],a?a.substring(1):"",t)})}),l6e=ts(EJ),u6e=ts(fJ),c6e=(ts(function C4e(){for(var i=arguments.length,r=0;r2&&void 0!==arguments[2]?arguments[2]:Hg;if(!i)return null;if(gL(i))return i;var e=String(i).trim(),n=XKe(e);if(n)return n;for(var a=Vf(t),o=r||ZKe(a.calendar),s=(o=Array.isArray(o)?o:[o]).length,l=0;l1&&void 0!==arguments[1]?arguments[1]:Hg,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!i&&0!==i)return null;if(cL(i))return i;var s,e=Vf(r),n=e.numbers.symbols,a=i.toString(),o=t||{};if(hE(t)&&(cJ(o={format:t}),a=gKe(a,o),uJ(o,e)),(o.style===Ug||a.indexOf(n.percentSign)>-1)&&(a=a.replace(n.percentSign,""),s=!0),vKe.test(a))return a=parseFloat(a.replace(n.decimal,Zd)),isNaN(a)?null:a;var l=pKe(a,e,o),u=l.negative,c=l.number,d=(a=String(c).trim()).indexOf("-");if(d>0)return null;var h=d>-1;return h=void 0!==u?u:h,a=a.replace("-","").replace(vJ," ").split(n.group.replace(vJ," ")).join("").replace(n.decimal,Zd),a=parseFloat(a),isNaN(a)?a=null:h&&(a*=-1),a&&s&&(a/=100),a}),f6e=ts(function e6e(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hg,t=Vf(r),e=pL(i,t),n=[],a=Yk.lastIndex=0,o=Yk.exec(e);o;){var s=o[0];if(a=h&&(c.names={type:d.type,nameType:yJ(f),standAlone:d.standAlone===l})}n.push(c)}a=Yk.lastIndex,o=Yk.exec(e)}return a1?o-1:0),l=1;l1){var l=e[0],u=e[1];s=Math.sqrt(Math.pow(l.pageX-u.pageX,2)+Math.pow(l.pageY-u.pageY,2))}return{distance:s,event:r.srcEvent,preventDefault:function(){r.preventDefault()},target:r.target,touches:e.map(V6e),type:r.type,x:{delta:t?a-t.x.location:0,initialDelta:r.deltaX,location:a,startLocation:a-r.deltaX},y:{delta:t?o-t.y.location:0,initialDelta:r.deltaY,location:o,startLocation:o-r.deltaY}}}(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](n),n}},{key:"bind",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.unbind(),this.eventHandlers=t;for(var e=0;e0;)a=a[s]=a[s]||{},s=o.shift();a[s]=n}},{key:"next",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.source.next(e.store)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),$g=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.configurationService=t,this.collectionService=e,this.options={},this.subscription=t.onFastChange$.subscribe(function(a){n.options=a,n.notify()})}return v(r,[{key:"ngOnChanges",value:function(e){var n=this.configurationService.store;CL(e,n),this.configurationService.push(n)}},{key:"notifyChanges",value:function(e){this.ngOnChanges(bL(e))}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"notify",value:function(){!this.collectionService||this.collectionService.notify(new q6e(this,this.options))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275dir=X({type:i,features:[Ie]}),i}(),ft=function(){var i=function(){function r(t,e){if(p(this,r),this.configKey=t,this.configurationService=e,this.store={},void 0===t)throw new Error("Configuration key not set")}return v(r,[{key:"ngOnDestroy",value:function(){this.store=void 0,this.notify()}},{key:"ngOnChanges",value:function(e){CL(e,this.store),this.notify()}},{key:"notifyChanges",value:function(e){this.ngOnChanges(bL(e))}},{key:"markAsVisible",value:function(){this.store.visible=!0,this.notify()}},{key:"notify",value:function(){this.configurationService.notify(new SL(this.configKey,this.store))}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275dir=X({type:i,features:[Ie]}),i}(),wL=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"tooltip",n)).configurationService=n,a.markAsVisible(),a}return v(e,[{key:"seriesTooltipTemplateRef",get:function(){return this.seriesTooltipTemplate}}]),e}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-item-tooltip"]],contentQueries:function(t,e,n){var a;1&t&&he(n,$e,5),2&t&&P(a=B())&&(e.seriesTooltipTemplate=a.first)},inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),VJ=function(r){return void 0!==r&&!r},zf=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).configurationService=n,o.collectionService=a,o}return v(e,[{key:"toggleVisibility",value:function(){this.options.visible=VJ(this.options.visible),this.notify()}},{key:"togglePointVisibility",value:function(a){var o=this.options.pointVisibility=this.options.pointVisibility||{};o[a]=VJ(o[a]),this.notify()}},{key:"seriesTooltipTemplateRef",get:function(){if(this.seriesTooltip)return this.seriesTooltip.seriesTooltipTemplateRef}}]),e}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,wL,5),2&t&&P(a=B())&&(e.seriesTooltip=a.first)},inputs:{aggregate:"aggregate",autoFit:"autoFit",axis:"axis",border:"border",categoryAxis:"categoryAxis",categoryField:"categoryField",closeField:"closeField",color:"color",colorField:"colorField",connectors:"connectors",currentField:"currentField",dashType:"dashType",data:"data",downColor:"downColor",downColorField:"downColorField",dynamicHeight:"dynamicHeight",dynamicSlope:"dynamicSlope",errorHighField:"errorHighField",errorLowField:"errorLowField",explodeField:"explodeField",field:"field",fromField:"fromField",gap:"gap",highField:"highField",holeSize:"holeSize",line:"line",lowField:"lowField",lowerField:"lowerField",margin:"margin",maxSize:"maxSize",mean:"mean",meanField:"meanField",median:"median",medianField:"medianField",minSize:"minSize",missingValues:"missingValues",name:"name",neckRatio:"neckRatio",negativeColor:"negativeColor",negativeValues:"negativeValues",noteTextField:"noteTextField",opacity:"opacity",openField:"openField",outliersField:"outliersField",overlay:"overlay",padding:"padding",q1Field:"q1Field",q3Field:"q3Field",segmentSpacing:"segmentSpacing",size:"size",sizeField:"sizeField",spacing:"spacing",stack:"stack",startAngle:"startAngle",style:"style",summaryField:"summaryField",target:"target",toField:"toField",type:"type",upperField:"upperField",visible:"visible",visibleInLegend:"visibleInLegend",visibleInLegendField:"visibleInLegendField",visual:"visual",width:"width",whiskers:"whiskers",xAxis:"xAxis",xErrorHighField:"xErrorHighField",xErrorLowField:"xErrorLowField",xField:"xField",yAxis:"yAxis",yErrorHighField:"yErrorHighField",yErrorLowField:"yErrorLowField",yField:"yField",zIndex:"zIndex",errorBars:"errorBars",extremes:"extremes",highlight:"highlight",labels:"labels",markers:"markers",notes:"notes",outliers:"outliers",tooltip:"tooltip"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),Z6e={horizontal:"fit",vertical:"fit"},UJ=function(){var i=function(){function r(t,e){p(this,r),this.popupService=t,this.localizationService=e,this.style={},this.popupRef=null}return v(r,[{key:"active",get:function(){return null!==this.popupRef}},{key:"show",value:function(e){var n=e.anchor.align,a=this.position(e.anchor.point);if(this.style=e.style,this.popupRef){var o=this.popupRef.popup.instance;o.offset=a,o.popupAlign=n}else this.popupRef=this.popupService.open(Object.assign({offset:a,popupAlign:n,animate:this.animate,content:this.templateRef,collision:Z6e,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit()}},{key:"hide",value:function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)}},{key:"onInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.hide()}},{key:"position",value:function(e){if(!this.popupSettings||!this.popupSettings.appendTo)return e;var n=this.popupSettings.appendTo.element.nativeElement;console.log("appendTo",n);var a=n.getBoundingClientRect(),o=this.scrollOffset(n);return{left:e.left-a.left-o.scrollLeft,top:e.top-a.top-o.scrollTop}}},{key:"scrollOffset",value:function(e){if(!e)return null;for(var n=e.scrollLeft,a=e.scrollTop,o=e.parentElement;o;)n+=o.scrollLeft,a+=o.scrollTop,o=o.parentElement;return{scrollLeft:n,scrollTop:a}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Cr),m(Y))},i.\u0275dir=X({type:i}),i}();function zJ(){if(Ze())return new _e(document.body)}var DL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).animate=!1,o}return v(e,[{key:"show",value:function(a){$(q(e.prototype),"show",this).call(this,a),this.value=a.value,this.popupRef.popup.changeDetectorRef.detectChanges()}}]),e}(UJ);return i.\u0275fac=function(t){return new(t||i)(m(Cr),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-crosshair-tooltip"]],viewQuery:function(t,e){var n;1&t&&ge(FJ,7),2&t&&P(n=B())&&(e.templateRef=n.first)},inputs:{key:"key",popupSettings:"popupSettings"},features:[de([Cr,{provide:xI,useFactory:zJ}]),j],decls:2,vars:0,consts:[["content",""],[1,"k-chart-tooltip","k-chart-crosshair-tooltip",3,"ngStyle"]],template:function(t,e){1&t&&T(0,b6e,2,2,"ng-template",null,0,$n)},directives:[Vi],encapsulation:2}),i}(),HJ=["categoryAxis","valueAxis","xAxis","yAxis"],Qk=function(){var i=function(){function r(){p(this,r),this.tooltipKeys=[],this.tooltipsMap={}}return v(r,[{key:"show",value:function(e){for(var n=this.crossahirTooltipComponents.toArray(),a=e.axisName,o=e.axisIndex,s=0;s0}},{key:"createCrosshairTooltips",value:function(e){var n=this.mapTooltips(e),a=this.tooltipsMap;for(var o in a)n[o]||(this.removeTooltip(o),delete a[o]);for(var s in n)a[s]||(a[s]=n[s],this.tooltipKeys.push(s))}},{key:"removeTooltip",value:function(e){for(var n=this.tooltipKeys,a=0;a0,l=a.series.length>1,u=1;return s&&u++,l&&u++,{category:a.category,categoryText:a.categoryText,colorMarker:l,colspan:u,nameColumn:s,points:this.wrapPoints(a.points,a.format)}}},{key:"pointTemplateRef",value:function(a){return this.templateService.getTemplate(a.series.index)||this.defaultSeriesTooltipTemplate.templateRef}},{key:"wrapPoints",value:function(a,o){for(var s=[],l=0;l
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n '.concat(function(){for(var r='\n
    \n
    \n
    \n
    \n
    \n
    \n ',t=0;t<30;t++)r+='\n
    ');return r}(),"\n
    \n"),document.body.appendChild(a)}},{key:"destroyElement",value:function(){this.element&&(document.body.removeChild(this.element),this.element=void 0)}},{key:"setStyle",value:function(a,o){this.set(a,o)}},{key:"setColors",value:function(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color");var a=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(a)||(this.setStyle("seriesDefaults.area.opacity",a),this.setStyle("seriesDefaults.radarArea.opacity",a),this.setStyle("seriesDefaults.verticalArea.opacity",a),this.setStyle("seriesDefaults.labels.opacity",a)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")}},{key:"setInactiveOpacity",value:function(a,o){var s=this,l=parseFloat(this.queryStyle(o).opacity);!isNaN(l)&&l<1&&a.forEach(function(u){return s.setStyle("seriesDefaults.".concat(u,".highlight.inactiveOpacity"),l)})}},{key:"setFonts",value:function(){var a=wE(this.queryStyle("chart-font")),o=wE(this.queryStyle("chart-title-font")),s=wE(this.queryStyle("chart-pane-title-font")),l=wE(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",l),this.setStyle("axisDefaults.notes.label.font",a),this.setStyle("axisDefaults.title.font",a),this.setStyle("legend.labels.font",a),this.setStyle("seriesDefaults.labels.font",l),this.setStyle("seriesDefaults.notes.label.font",a),this.setStyle("title.font",o),this.setStyle("paneDefaults.title.font",s)}},{key:"setSeriesColors",value:function(){var a=this.element,o=[].slice.call(a.querySelectorAll(".k-var--series div")),s=$J(a.querySelector(".k-var--series-unset")),l=o.reduce(function(u,c){var d=function(r){var t=r.match(/series-([a-z])$/);if(null!==t)return function(r){return r.toLowerCase().charCodeAt(0)-"a".charCodeAt(0)}(t[1]);var e=r.split("--series-")[1];return parseInt(e,10)-1}(c.className),h=$J(c);return h!==s&&(u[d]=h),u},[]);this.setStyle("seriesColors",l)}},{key:"mapColor",value:function(a,o){this.setStyle(a,this.queryColor(o))}},{key:"queryColor",value:function(a){return this.queryStyle(a).backgroundColor}},{key:"queryStyle",value:function(a){var o=this.element.querySelector(".k-var--".concat(a));return window.getComputedStyle(o)}}]),e}(we);return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function RL(i){return i.observers.length>0}var qg=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c){p(this,r),this.configurationService=t,this.themeService=e,this.element=n,this.intl=a,this.localizationService=o,this.ngZone=s,this.instanceEventService=l,this.changeDetector=u,this.renderer=c,this.axisLabelClick=new O,this.drag=new O,this.dragEnd=new O,this.dragStart=new O,this.legendItemHover=new O,this.legendItemLeave=new O,this.noteClick=new O,this.noteHover=new O,this.noteLeave=new O,this.paneRender=new O,this.plotAreaClick=new O,this.plotAreaHover=new O,this.plotAreaLeave=new O,this.render=new O,this.select=new O,this.selectEnd=new O,this.selectStart=new O,this.seriesClick=new O,this.seriesHover=new O,this.seriesOver=new O,this.seriesLeave=new O,this.zoom=new O,this.zoomEnd=new O,this.zoomStart=new O,this.legendItemClick=new O,this.resizeRateLimit=10,this.theme=null,this.suppressTransitions=!1,this.rtl=!1,this.hostClasses=["k-chart","k-widget"],jt(ML),this.themeService.loadTheme(),this.refreshWait()}return v(r,[{key:"ngOnInit",value:function(){var e=this;this.element&&(this.hostClasses.forEach(function(n){e.renderer.addClass(e.element.nativeElement,n)}),this.renderer.setStyle(this.element.nativeElement,"position","relative"))}},{key:"ngAfterViewInit",value:function(){var e=this;this.canRender&&this.ngZone.runOutsideAngular(function(){var n=e.renderer.listen(e.surfaceElement.nativeElement,"mouseleave",e.chartMouseleave.bind(e));e.domSubscriptions=function(){n()}}),this.setDirection(),this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))}},{key:"ngAfterViewChecked",value:function(){var e=this;this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(function(){e.resize()},0)})}},{key:"ngOnChanges",value:function(e){var n=this.configurationService.store;CL(e,n),n.popupSettings=null,this.configurationService.push(n)}},{key:"notifyChanges",value:function(e){this.ngOnChanges(bL(e))}},{key:"ngOnDestroy",value:function(){this.destroyed=!0,this.subscription&&this.subscription.unsubscribe(),this.domSubscriptions&&(this.domSubscriptions(),this.domSubscriptions=null),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.resizeTimeout),clearTimeout(this.redrawTimeout)}},{key:"createInstance",value:function(e,n){this.instance=new d2(e,this.options,this.theme,{intlService:this.intl,observer:n,rtl:this.rtl,sender:this})}},{key:"exportImage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return X5e(this.exportVisual(e),e)}},{key:"exportSVG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Y5e(this.exportVisual(e),e)}},{key:"exportVisual",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.instance.exportVisual(e)}},{key:"findAxisByName",value:function(e){if(this.instance)return this.instance.findAxisByName(e)}},{key:"findPaneByIndex",value:function(e){if(this.instance)return this.instance.findPaneByIndex(e)}},{key:"findPaneByName",value:function(e){if(this.instance)return this.instance.findPaneByName(e)}},{key:"getPlotArea",value:function(){if(this.instance)return this.instance.plotArea()}},{key:"toggleHighlight",value:function(e,n){this.instance&&this.instance.toggleHighlight(e,n)}},{key:"hideTooltip",value:function(){this.instance&&this.instance.hideTooltip()}},{key:"showTooltip",value:function(e){this.instance&&this.instance.showTooltip(e)}},{key:"init",value:function(){if(this.canRender){var e=this.surfaceElement.nativeElement,n=new J6e(this);this.createInstance(e,n)}}},{key:"resize",value:function(){this.instance&&this.instance.resize()}},{key:"onResize",value:function(e){this.autoResize&&this.resize()}},{key:"onLegendItemClick",value:function(e){var n=this;this.run(function(){var a=new Sje(e,n);if(n.legendItemClick.emit(a),!a.isDefaultPrevented()){var o=n.seriesComponents.toArray()[e.series.index];if(!o)return;void 0===e.pointIndex?o.toggleVisibility():o.togglePointVisibility(e.pointIndex),n.suppressTransitions=!0}},RL(this.legendItemClick),this.seriesComponents.length>0)}},{key:"onInit",value:function(e){this.instance=e.sender}},{key:"onRender",value:function(e){var n=this,a=this.getDonutCenterStyle();this.run(function(){var o=new jJ(e,n);n.surface=e.sender.surface,n.render.emit(o),n.donutCenterStyle=a},RL(this.render),this.donutCenterStyle!==a)}},{key:"onShowTooltip",value:function(e){var n=this;this.run(function(){e.crosshair?n.crossahirTooltips.show(e):n.tooltipInstance.show(e)},!e.crosshair,!0)}},{key:"onHideTooltip",value:function(e){e.crosshair?this.crossahirTooltips.active&&(this.crossahirTooltips.hide(),this.detectChanges()):this.tooltipInstance.active&&(this.tooltipInstance.hide(),this.detectChanges())}},{key:"trigger",value:function(e,n){if("resize"!==e){var a=this.activeEmitter(e);if(a){var o=this.instanceEventService.create(e,n,this);return this.run(function(){a.emit(o)}),o.isDefaultPrevented&&o.isDefaultPrevented()}}}},{key:"requiresHandlers",value:function(e){for(var n=0;n0}},{key:"activeEmitter",value:function(e){var n=this[e];if(n&&n.emit&&RL(n))return n}},{key:"getDonutCenterStyle",value:function(){if(this.instance&&this.options&&this.options.series){var e=this.options.series[0],n=this.instance._plotArea.charts;if(e&&"donut"===e.type&&n&&0!==n[0].points.length){var a=n[0].points[0],o=a.box.center(),s=a.sector.innerRadius,c=2*s;return{height:c+"px",left:o.x-s+"px",top:o.y-s+"px",width:c+"px"}}}}},{key:"refreshWait",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.subscription=zO(e.configurationService.onChange$,e.themeService.onChange$).pipe(At(function(n){e.options=n[0],e.theme=n[1]}),ff(GJ)).subscribe(function(){e.refresh()})})}},{key:"run",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;n?(a&&this.changeDetector.markForCheck(),this.ngZone.run(e)):(e(),a&&this.detectChanges())}},{key:"detectChanges",value:function(){this.destroyed||this.changeDetector.detectChanges()}},{key:"intlChange",value:function(){this.instance&&this.deferredRedraw()}},{key:"rtlChange",value:function(){this.instance&&this.rtl!==this.isRTL&&this.deferredRedraw()}},{key:"deferredRedraw",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){clearTimeout(e.redrawTimeout),e.redrawTimeout=setTimeout(function(){e.updateDirection(),e.instance.noTransitionsRedraw()},0)})}},{key:"updateDirection",value:function(){var e=this.isRTL;this.rtl!==e&&(this.setDirection(),this.instance&&this.instance.setDirection(e))}},{key:"setDirection",value:function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")}},{key:"isRTL",get:function(){return Boolean(this.localizationService.rtl)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(we),m(DE),m(_e),m(fi),m(Y),m(be),m(eC),m(nt),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,BJ,5),he(n,zf,5)),2&t&&(P(a=B())&&(e.donutCenterTemplate=a.first),P(a=B())&&(e.seriesComponents=a))},viewQuery:function(t,e){var n;1&t&&(ge(Jk,7),ge(Qk,7),ge(P6e,7)),2&t&&(P(n=B())&&(e.tooltipInstance=n.first),P(n=B())&&(e.crossahirTooltips=n.first),P(n=B())&&(e.surfaceElement=n.first))},inputs:{pannable:"pannable",renderAs:"renderAs",seriesColors:"seriesColors",title:"title",transitions:"transitions",zoomable:"zoomable",axisDefaults:"axisDefaults",categoryAxis:"categoryAxis",chartArea:"chartArea",legend:"legend",panes:"panes",paneDefaults:"paneDefaults",plotArea:"plotArea",series:"series",seriesDefaults:"seriesDefaults",tooltip:"tooltip",valueAxis:"valueAxis",xAxis:"xAxis",yAxis:"yAxis",resizeRateLimit:"resizeRateLimit",popupSettings:"popupSettings"},outputs:{axisLabelClick:"axisLabelClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",legendItemHover:"legendItemHover",legendItemLeave:"legendItemLeave",noteClick:"noteClick",noteHover:"noteHover",noteLeave:"noteLeave",paneRender:"paneRender",plotAreaClick:"plotAreaClick",plotAreaHover:"plotAreaHover",plotAreaLeave:"plotAreaLeave",render:"render",select:"select",selectEnd:"selectEnd",selectStart:"selectStart",seriesClick:"seriesClick",seriesHover:"seriesHover",seriesOver:"seriesOver",seriesLeave:"seriesLeave",zoom:"zoom",zoomEnd:"zoomEnd",zoomStart:"zoomStart",legendItemClick:"legendItemClick"},exportAs:["kendoChart"],features:[de([we,Hf,eC,Y,{provide:Et,useValue:"kendo.chart"}]),Ie],decls:6,vars:4,consts:[[1,"k-chart-surface"],["surface",""],[3,"popupSettings"],[3,"popupSettings","leave"],[3,"rateLimit","resize"],["class","k-chart-donut-center",3,"ngStyle",4,"ngIf"],[1,"k-chart-donut-center",3,"ngStyle"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(z(0,"div",0,1)(2,"kendo-chart-crosshair-tooltips-container",2),A(3,"kendo-chart-tooltip-popup",3),Q("leave",function(a){return e.tooltipMouseleave(a)}),x(),A(4,"kendo-resize-sensor",4),Q("resize",function(a){return e.onResize(a)}),x(),T(5,G6e,2,2,"div",5)),2&t&&(k(2),y("popupSettings",e.popupSettings),k(1),y("popupSettings",e.popupSettings),k(1),y("rateLimit",e.resizeRateLimit),k(1),y("ngIf",e.donutCenterStyle&&e.donutCenterTemplate))},directives:[Qk,Jk,Gr,qe,Vi,En],encapsulation:2,changeDetection:0}),i}(),Xg=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.configKey=t,this.configurationService=e,this.collectionService=n,this.items=[],this.subscription=n.onItemChange$.subscribe(function(o){return a.processChanges(o)})}return v(r,[{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"ngAfterContentInit",value:function(){var e=this;this.readItems(),this.children.changes.subscribe(function(){return e.readItems()})}},{key:"processChanges",value:function(e){if(this.children){var n=this.children.toArray().indexOf(e.sender);n<0||(this.items[n]=e.options,this.change())}}},{key:"readItems",value:function(){this.items=this.children.map(function(e){return e.options}),this.change()}},{key:"change",value:function(){this.configurationService.notify(new SL(this.configKey,0===this.items.length?void 0:this.items))}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275dir=X({type:i}),i}(),tC=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a)).configurationService=n,l.collectionService=a,l.notifyChanges({weekStartDay:o.firstDay(s)}),l}return v(e)}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr),m(fi),m(Ko))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-category-axis-item"]],inputs:{autoBaseUnitSteps:"autoBaseUnitSteps",axisCrossingValue:"axisCrossingValue",background:"background",baseUnit:"baseUnit",baseUnitStep:"baseUnitStep",categories:"categories",color:"color",justified:"justified",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",max:"max",maxDateGroups:"maxDateGroups",maxDivisions:"maxDivisions",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",name:"name",pane:"pane",plotBands:"plotBands",reverse:"reverse",roundToBaseUnit:"roundToBaseUnit",startAngle:"startAngle",type:"type",visible:"visible",weekStartDay:"weekStartDay",crosshair:"crosshair",labels:"labels",notes:"notes",select:"select",title:"title",rangeLabels:"rangeLabels"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),OL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,"categoryAxis",n,a)).configurationService=n,o.collectionService=a,o}return v(e)}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-category-axis"]],contentQueries:function(t,e,n){var a;1&t&&he(n,tC,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),tee=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"legend",n)).configurationService=n,a.markAsVisible(),a}return v(e)}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-legend"]],inputs:{align:"align",background:"background",border:"border",height:"height",labels:"labels",margin:"margin",offsetX:"offsetX",offsetY:"offsetY",orientation:"orientation",padding:"padding",position:"position",reverse:"reverse",visible:"visible",width:"width",markers:"markers",spacing:"spacing",inactiveItems:"inactiveItems",item:"item",title:"title"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),nC=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,"series",n,a)).configurationService=n,s.collectionService=a,s.tooltipTemplateService=o,s}return v(e,[{key:"ngAfterContentChecked",value:function(){this.readTooltipTemplates()}},{key:"readTooltipTemplates",value:function(){var a=this.children.map(function(o){return o.seriesTooltipTemplateRef});this.tooltipTemplateService.setSeriesTemplates(a)}}]),e}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr),m(Hf))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series"]],contentQueries:function(t,e,n){var a;1&t&&he(n,zf,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),FL=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"seriesDefaults",n)).configurationService=n,a}return v(e)}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-defaults"]],inputs:{border:"border",gap:"gap",highlight:"highlight",overlay:"overlay",spacing:"spacing",stack:"stack",type:"type",visual:"visual",labels:"labels",notes:"notes",tooltip:"tooltip"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),LL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,"tooltip",n)).configurationService=n,o.templateService=a,o.markAsVisible(),o}return v(e,[{key:"ngAfterContentChecked",value:function(){this.templateService.setTemplate(this.seriesTooltipTemplate?this.seriesTooltipTemplate.templateRef:null),this.templateService.setSharedTemplate(this.sharedTooltipTemplate?this.sharedTooltipTemplate.templateRef:null)}}]),e}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we),m(Hf))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-tooltip"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,bE,5),he(n,SE,5)),2&t&&(P(a=B())&&(e.seriesTooltipTemplate=a.first),P(a=B())&&(e.sharedTooltipTemplate=a.first))},inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",opacity:"opacity",padding:"padding",shared:"shared",visible:"visible"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),EE=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).configurationService=n,o.collectionService=a,o}return v(e)}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-value-axis-item"]],inputs:{axisCrossingValue:"axisCrossingValue",background:"background",color:"color",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",majorUnit:"majorUnit",max:"max",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",minorUnit:"minorUnit",name:"name",narrowRange:"narrowRange",pane:"pane",plotBands:"plotBands",reverse:"reverse",type:"type",visible:"visible",crosshair:"crosshair",labels:"labels",notes:"notes",title:"title"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),PL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,"valueAxis",n,a)).configurationService=n,o.collectionService=a,o}return v(e)}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-value-axis"]],contentQueries:function(t,e,n){var a;1&t&&he(n,EE,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),iC=(new Dt("configuration prefix"),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[DE],imports:[[bt,Fa,yo]]}),i}()),QWe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[iC,bt,Fa,yo],iC]}),i}(),JWe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[iC,bt,Fa,yo],iC]}),i}(),e7e=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[iC,JWe,QWe]}),i}(),rC=function(){return{style:"smooth"}},ka=function(){return{visible:!1}},GL=function(){return{step:4,skip:2,font:"10px sans-serif"}},t7e=function(r){return{margin:r}},n7e=function(){return{color:"#FFF"}},i7e=function(){return{from:0,to:100,color:"#35C473"}},r7e=function(r){return[r]},a7e=function(){return{color:"#35C473",opacity:.3}},o7e=function(){return{color:"#CC3458",opacity:.3}},s7e=function(){return{top:8}},l7e=function(r){return{rotation:"auto",margin:r}},u7e=function(){return{right:4}},c7e=function(r){return{step:2,skip:2,margin:r}},d7e=function(){return{step:2,skip:2,color:"#F0F2F2"}},h7e=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"months",set:function(e){this.baseUnit=e>3?"months":"weeks"}},{key:"closeRate",set:function(e){this.bulletData=[{target:70,current:Math.round(100*e)}]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-active-issues"]],inputs:{data:"data",active:"active",issues:"issues",months:"months",closeRate:"closeRate"},decls:83,vars:128,consts:[[1,"k-card"],[1,"k-card-header","m-0"],[1,"k-card-body"],[1,"row"],[1,"col-sm-12","col-lg-6","col-xl","active-issues"],[1,"comp-label"],[1,"issues-count"],[1,"issues-label"],[2,"height","80px"],["format","{0}%"],["type","column",3,"stack","gap","overlay"],["type","area","field","count","categoryField","date","aggregate","count",3,"line","color","data"],[3,"baseUnit","majorTicks","labels","majorGridLines","line"],[3,"visible","majorGridLines"],[1,"col-12","col-lg-6","col-xl","pb-4","text-danger","closed-issues"],["format","{0}"],[1,"col-12","col-lg-6","col-xl","pb-4","text-success","open-issues"],[1,"col-12","col-lg-6","col-xl","pb-4","close-rate"],[1,"m-0","small","text-uppercase","text-muted"],[2,"height","20px",3,"chartArea"],["type","bullet","currentField","current","targetField","target","color","#e91e63",3,"data","target"],[3,"plotBands","visible","majorGridLines"],[1,"col-12","all-issues"],[3,"type","stack","gap","overlay"],["field","count","categoryField","date","aggregate","count",3,"line","opacity","border","color","data"],[3,"baseUnit","majorTicks","line","majorGridLines","labels"],[3,"line","labels","majorGridLines"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"h2",1),te(2,"Active Issues"),x(),A(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),te(8),x(),A(9,"div",7),te(10,"Active issues"),x()(),A(11,"kendo-chart",8),z(12,"kendo-chart-tooltip",9)(13,"kendo-chart-series-defaults",10),A(14,"kendo-chart-series"),z(15,"kendo-chart-series-item",11),x(),A(16,"kendo-chart-category-axis"),z(17,"kendo-chart-category-axis-item",12),x(),A(18,"kendo-chart-value-axis"),z(19,"kendo-chart-value-axis-item",13),x()()(),A(20,"div",14)(21,"span",5)(22,"div",6),te(23),x(),A(24,"div",7),te(25,"Closed issues"),x()(),A(26,"kendo-chart",8),z(27,"kendo-chart-tooltip",15)(28,"kendo-chart-series-defaults",10),A(29,"kendo-chart-series"),z(30,"kendo-chart-series-item",11),x(),A(31,"kendo-chart-category-axis"),z(32,"kendo-chart-category-axis-item",12),x(),A(33,"kendo-chart-value-axis"),z(34,"kendo-chart-value-axis-item",13),x()()(),A(35,"div",16)(36,"span",5)(37,"div",6),te(38),x(),A(39,"div",7),te(40,"Open issues"),x()(),A(41,"kendo-chart",8),z(42,"kendo-chart-tooltip",15)(43,"kendo-chart-series-defaults",10),A(44,"kendo-chart-series"),z(45,"kendo-chart-series-item",11),x(),A(46,"kendo-chart-category-axis"),z(47,"kendo-chart-category-axis-item",12),x(),A(48,"kendo-chart-value-axis"),z(49,"kendo-chart-value-axis-item",13),x()()(),A(50,"div",17)(51,"span",5)(52,"div",6),te(53),Wa(54,"percent"),x(),A(55,"div",7),te(56,"Close rate"),x()(),A(57,"p",18),te(58),Wa(59,"percent"),Wa(60,"date"),x(),A(61,"p",18),te(62),Wa(63,"percent"),Wa(64,"date"),x(),A(65,"kendo-chart",19),z(66,"kendo-chart-tooltip",15),A(67,"kendo-chart-series"),z(68,"kendo-chart-series-item",20),x(),A(69,"kendo-chart-value-axis"),z(70,"kendo-chart-value-axis-item",21),x()()()(),A(71,"div",3)(72,"div",22)(73,"kendo-chart"),z(74,"kendo-chart-tooltip",15)(75,"kendo-chart-series-defaults",23),A(76,"kendo-chart-series"),z(77,"kendo-chart-series-item",24)(78,"kendo-chart-series-item",24),x(),A(79,"kendo-chart-category-axis"),z(80,"kendo-chart-category-axis-item",25),x(),A(81,"kendo-chart-value-axis"),z(82,"kendo-chart-value-axis-item",26),x()()()()()()),2&t&&(k(8),at(e.issues.open+e.issues.closed),k(5),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("line",wt(88,rC))("color","#888")("data",e.active),k(2),y("baseUnit",e.baseUnit)("majorTicks",wt(89,ka))("labels",wt(90,GL))("majorGridLines",wt(91,ka))("line",wt(92,ka)),k(2),y("visible",!1)("majorGridLines",wt(93,ka)),k(4),at(e.issues.closed),k(5),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("line",wt(94,rC))("color","#e91e63")("data",e.data.closed),k(2),y("baseUnit",e.baseUnit)("majorTicks",wt(95,ka))("labels",wt(96,GL))("majorGridLines",wt(97,ka))("line",wt(98,ka)),k(2),y("visible",!1)("majorGridLines",wt(99,ka)),k(4),at(e.issues.open),k(5),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("line",wt(100,rC))("color","#27c46d")("data",e.data.open),k(2),y("baseUnit",e.baseUnit)("majorTicks",wt(101,ka))("labels",wt(102,GL))("majorGridLines",wt(103,ka))("line",wt(104,ka)),k(2),y("visible",!1)("majorGridLines",wt(105,ka)),k(4),at(rw(54,75,e.issues.closeRate.average,"2.0-0")),k(5),Jl(" Highest: ",rw(59,78,e.issues.closeRate.highest.close_rate,"2.0-0")," on ",fc(60,81,e.issues.closeRate.highest.created_at)," "),k(4),Jl(" Lowest: ",rw(63,83,e.issues.closeRate.lowest.close_rate,"2.0-0")," on ",fc(64,86,e.issues.closeRate.lowest.created_at)," "),k(3),y("chartArea",ot(106,t7e,-20)),k(3),y("data",e.bulletData)("target",wt(108,n7e)),k(2),y("plotBands",ot(110,r7e,wt(109,i7e)))("visible",!1)("majorGridLines",wt(112,ka)),k(5),y("type","area")("stack",!0)("gap",.06)("overlay",!1),k(2),y("line",wt(113,rC))("opacity",.3)("border",wt(114,a7e))("color","#35C473")("data",e.data.open),k(1),y("line",wt(115,rC))("opacity",.3)("border",wt(116,o7e))("color","#CC3458")("data",e.data.closed),k(2),y("baseUnit",e.baseUnit)("majorTicks",wt(117,ka))("line",wt(118,ka))("majorGridLines",wt(119,ka))("labels",ot(121,l7e,wt(120,s7e))),k(2),y("line",wt(123,ka))("labels",ot(125,c7e,wt(124,u7e)))("majorGridLines",wt(127,d7e)))},directives:[qg,LL,FL,nC,zf,OL,tC,PL,EE],pipes:[Y4,Cw],encapsulation:2}),i}(),f7e=function(){var i=function(){function r(){p(this,r),this.hoverColor="rgb(255, 99, 88)"}return v(r,[{key:"data",set:function(e){var n=this;this.issues=e,e.forEach(function(a){"SEV: LOW"===a.type&&n.setDonutLegend({value:a.value,category:a.type,point:{options:{color:n.hoverColor}}})})}},{key:"className",get:function(){return"k-card issue-types"}},{key:"onHover",value:function(e){this.setDonutLegend(e)}},{key:"setDonutLegend",value:function(e){this.hoverColor=e.point.options.color,this.donutPercent=Math.round(100*e.value||0)+"",this.donutLabel=e.category}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-issue-types"]],hostVars:2,hostBindings:function(t,e){2&t&&_r(e.className)},inputs:{data:"data"},decls:14,vars:7,consts:[[1,"k-card-header"],[1,"k-card-body","height-1"],[3,"seriesHover"],["type","donut","field","value","categoryField","type",3,"holeSize","data","overlay"],["position","bottom"],[1,"comp-label","chart-label"],[1,"issues-count"],[1,"percentage"],[1,"issues-label"]],template:function(t,e){1&t&&(A(0,"h2",0),te(1,"Issue Types"),x(),A(2,"div",1)(3,"kendo-chart",2),Q("seriesHover",function(a){return e.onHover(a)}),A(4,"kendo-chart-series"),z(5,"kendo-chart-series-item",3),x(),z(6,"kendo-chart-legend",4),x(),A(7,"div",5)(8,"div",6),te(9),A(10,"span",7),te(11,"%"),x()(),A(12,"div",8),te(13),x()()()),2&t&&(k(5),y("holeSize",100)("data",e.issues)("overlay",!1),k(2),Qe("color",e.hoverColor),k(2),Nt(" ",e.donutPercent," "),k(4),at(e.donutLabel))},directives:[qg,nC,zf,tee],encapsulation:2}),i}();function v7e(i,r){if(1&i){var t=Me();A(0,"div",12),Q("click",function(){var s=re(t).$implicit;return D().addSeries(s,!0)}),A(1,"div",13),te(2),x(),A(3,"div",14),te(4),x()()}if(2&i){var e=r.$implicit,n=D();Qe("color",e.active?e.value:n.initialGrey),k(2),at(n.data[e.label].length),k(2),at(e.label)}}function p7e(i,r){if(1&i&&z(0,"kendo-chart-series-item",15),2&i){var t=r.$implicit;y("data",t.data)("markers",t.markers)("color",t.color)}}var AE=function(){return{visible:!1}},g7e=function(){return{step:4,skip:2}},m7e=function(){return{step:2,skip:2}},_7e=function(){return{step:2,skip:2,color:"#F0F2F2"}},y7e=function(){var i=function(){function r(){p(this,r),this.initialGrey="#A2ACAC",this.series=[],this.visibleSeries=[],this.seriesColors=[{label:"SEV: Low",value:"#FF9966",active:!1},{label:"SEV: Medium",value:"#BB6ACB",active:!1},{label:"SEV: High",value:"#52C3D3",active:!1},{label:"Enhancement",value:"#22C85D",active:!1},{label:"Feature",value:"#FF6358",active:!1},{label:"Others",value:"#2BA7DA",active:!1}]}return v(r,[{key:"months",set:function(e){this.baseUnit=e>3?"months":"weeks"}},{key:"addSeries",value:function(e,n){n&&this.seriesColors.forEach(function(l){l.value===e.value&&(l.active=!l.active)});var a={color:this.seriesColors.filter(function(l){return l.label===e.label})[0].value,markers:{visible:!1},data:this.data[e.label]};if(this.visibleSeries.some(function(l){return l.color===a.color})){var s=this.visibleSeries.map(function(l){return l.color}).indexOf(a.color);~s&&this.visibleSeries.splice(s,1)}else this.visibleSeries.push(a);this.series=this.visibleSeries}},{key:"ngOnInit",value:function(){this.addSeries({label:"SEV: Low",value:"#FF9966",active:!1},!0),this.addSeries({label:"Enhancement",value:"#22C85D",active:!1},!0),this.addSeries({label:"Others",value:"#2BA7DA",active:!1},!0)}},{key:"ngOnChanges",value:function(e){e.data.previousValue&&e.data.previousValue.hasOwnProperty("Others")&&(this.visibleSeries=[],this.addSeries({label:"SEV: Low",value:"#FF9966",active:!1},!1),this.addSeries({label:"Enhancement",value:"#22C85D",active:!1},!1),this.addSeries({label:"Others",value:"#2BA7DA",active:!1},!1))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-types-distribution"]],inputs:{data:"data",months:"months"},features:[Ie],decls:17,vars:20,consts:[[1,"k-card"],[1,"k-card-header"],[1,"k-card-body"],[1,"row"],["class","col-6 col-sm-4 col-xl-2 comp-label label-clickable",3,"color","click",4,"ngFor","ngForOf"],[1,"col-12","types-distribution"],[2,"height","300px",3,"pannable","zoomable","transitions"],["format","{0}"],["type","line",3,"overlay"],["baseUnit","months",3,"majorTicks","labels","majorGridLines","line"],["style","smooth","aggregate","count","categoryField","date",3,"data","markers","color",4,"ngFor","ngForOf"],[3,"line","labels","majorGridLines"],[1,"col-6","col-sm-4","col-xl-2","comp-label","label-clickable",3,"click"],[1,"issues-count"],[1,"issues-label"],["aggregate","count","categoryField","date",3,"data","markers","color"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"h2",1),te(2,"Types Distribution"),x(),A(3,"div",2)(4,"div",3),T(5,v7e,5,4,"div",4),x(),A(6,"div",3)(7,"div",5)(8,"kendo-chart",6),z(9,"kendo-chart-tooltip",7)(10,"kendo-chart-series-defaults",8),A(11,"kendo-chart-category-axis"),z(12,"kendo-chart-category-axis-item",9),x(),A(13,"kendo-chart-series"),T(14,p7e,1,3,"kendo-chart-series-item",10),x(),A(15,"kendo-chart-value-axis"),z(16,"kendo-chart-value-axis-item",11),x()()()()()()),2&t&&(k(5),y("ngForOf",e.seriesColors),k(3),y("pannable",!0)("zoomable",!0)("transitions",!1),k(2),y("overlay",!1),k(2),y("majorTicks",wt(13,AE))("labels",wt(14,g7e))("majorGridLines",wt(15,AE))("line",wt(16,AE)),k(2),y("ngForOf",e.visibleSeries),k(2),y("line",wt(17,AE))("labels",wt(18,m7e))("majorGridLines",wt(19,_7e)))},directives:[gn,qg,LL,FL,OL,tC,nC,zf,PL,EE],encapsulation:2}),i}();function k7e(i,r){1&i&&(A(0,"div",6),z(1,"app-loading-spinner"),x())}function C7e(i,r){if(1&i&&z(0,"app-active-issues",7),2&i){var t=D();y("data",t.issues.groupedIssues)("months",t.months)("issues",t.issues)("closeRate",t.issues.closeRate.average)("active",t.issues.active)}}function b7e(i,r){if(1&i&&(A(0,"div",8),z(1,"app-issue-types",9),x()),2&i){var t=D();k(1),y("data",t.issues.issueTypes)}}function S7e(i,r){if(1&i&&z(0,"app-types-distribution",12),2&i){var t=D(2);y("data",t.issues.typesDistribution)("months",t.months)}}function w7e(i,r){if(1&i&&(A(0,"div",10),T(1,S7e,1,2,"app-types-distribution",11),x()),2&i){var t=D();k(1),y("ngIf",t.issues.active.length)}}var D7e=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-statistics"]],inputs:{issues:"issues",months:"months",loading:"loading"},decls:6,vars:4,consts:[[1,"row"],[1,"col-12"],["class","k-card","style","height: 400px",4,"ngIf"],[3,"data","months","issues","closeRate","active",4,"ngIf"],["class","col-xl-4",4,"ngIf"],["class","col-xl-8",4,"ngIf"],[1,"k-card",2,"height","400px"],[3,"data","months","issues","closeRate","active"],[1,"col-xl-4"],[3,"data"],[1,"col-xl-8"],[3,"data","months",4,"ngIf"],[3,"data","months"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1),T(2,k7e,2,0,"div",2),T(3,C7e,1,5,"app-active-issues",3),x(),T(4,b7e,2,1,"div",4),T(5,w7e,2,1,"div",5),x()),2&t&&(k(2),y("ngIf",e.loading),k(1),y("ngIf",!e.loading&&e.issues.active.length),k(1),y("ngIf",!e.loading&&e.issues.active.length),k(1),y("ngIf",!e.loading&&e.issues.active.length))},directives:[qe,aN,h7e,f7e,y7e],encapsulation:2}),i}();function E7e(i,r){if(1&i&&z(0,"app-statistics",12),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}function T7e(i,r){if(1&i&&z(0,"app-statistics",12),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}function A7e(i,r){if(1&i&&z(0,"app-statistics",12),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}var x7e=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.githubService=t,this.issuesProcessor=e,this.isLoading=!0,this.today=new Date,this.months=3,this.selectedIndex=0,this.rangeStart=this.issuesProcessor.getMonthsRange(this.months),this.subscription=xn(t.getGithubIssues({pages:5}).pipe(We(function(a){return n.data=a,n.isLoading=!1,n.issuesProcessor.process(a,n.months)},function(a){return n.isLoading=!1})),lt(new Zj)).subscribe(function(a){n.issues=a})}return v(r,[{key:"get_id",get:function(){return"dashboard"}},{key:"get_class",get:function(){return"container-fluid"}},{key:"onFilterClick",value:function(e){this.months!==e&&(this.months=e,this.rangeStart=this.issuesProcessor.getMonthsRange(e),this.issues=this.issuesProcessor.process(this.data,e),this.filterIssues(this.selectedIndex))}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onTabSelect",value:function(e){this.filterIssues(e.index)}},{key:"filterIssues",value:function(e){switch(e){case 0:this.issues=this.issuesProcessor.process(this.data,this.months),this.selectedIndex=0;break;case 1:var n=this.issuesProcessor.flatten(this.data).filter(function(o){return!!o.assignee&&"ggkrustev"===o.assignee.login});this.issues=this.issuesProcessor.process(n,this.months),this.selectedIndex=1;break;case 2:var a=this.issuesProcessor.flatten(this.data).filter(function(o){return"ggkrustev"===o.user.login});this.issues=this.issuesProcessor.process(a,this.months),this.selectedIndex=2;break;default:this.issues=this.issuesProcessor.process(this.data,this.months)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Jp),m(hD))},i.\u0275cmp=L({type:i,selectors:[["app-dashboard"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.get_id),_r(e.get_class))},features:[de([Jp,hD])],decls:24,vars:15,consts:[["id","header",1,"row"],[1,"col-sm"],[1,"h2"],[1,"col-sm","text-sm-right","p-0","p-sm-3"],[3,"selection"],["kendoRippleContainer","","kendoButton","",3,"togglable","selected","click"],["kendoRippleContainer","","kendoButton","",3,"togglable","click"],["id","statistics"],[3,"select"],[3,"title","selected"],["kendoTabContent",""],[3,"title"],[3,"loading","issues","months"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"h4"),te(3,"Statistics"),x(),A(4,"p",2),te(5),Wa(6,"date"),Wa(7,"date"),x()(),A(8,"div",3)(9,"kendo-buttongroup",4)(10,"button",5),Q("click",function(){return e.onFilterClick(3)}),te(11,"3 Months"),x(),A(12,"button",6),Q("click",function(){return e.onFilterClick(6)}),te(13,"6 Months"),x(),A(14,"button",6),Q("click",function(){return e.onFilterClick(12)}),te(15,"1 Year"),x()()()(),A(16,"div",7)(17,"kendo-tabstrip",8),Q("select",function(a){return e.onTabSelect(a)}),A(18,"kendo-tabstrip-tab",9),T(19,E7e,1,3,"ng-template",10),x(),A(20,"kendo-tabstrip-tab",11),T(21,T7e,1,3,"ng-template",10),x(),A(22,"kendo-tabstrip-tab",11),T(23,A7e,1,3,"ng-template",10),x()()()),2&t&&(k(5),Jl("",fc(6,11,e.rangeStart)," - ",fc(7,13,e.today),""),k(4),y("selection","single"),k(1),y("togglable",!0)("selected",!0),k(2),y("togglable",!0),k(2),y("togglable",!0),k(4),y("title","All Issues")("selected",!0),k(2),y("title","Assigned to Me"),k(2),y("title","Created by Me"))},directives:[HW,La,$y,I7,$I,WI,D7e],pipes:[Cw],encapsulation:2}),i}();function aC(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return i<0&&(i=0),jw(i,i,r)}var M7e=Array.isArray;function R7e(i){return 1===i.length&&M7e(i[0])?i[0]:i}function O7e(){for(var i=arguments.length,r=new Array(i),t=0;t1&&void 0!==arguments[1]?arguments[1]:kee;return oi(function(t,e){var n=r.leading,a=r.trailing,o=!1,s=null,l=null,u=!1,c=function(){null==l||l.unsubscribe(),l=null,a&&(f(),u&&e.complete())},d=function(){l=null,u&&e.complete()},h=function(_){return l=Pi(i(_)).subscribe(Wn(e,c,d))},f=function(){if(o){o=!1;var _=s;s=null,e.next(_),!u&&h(_)}};t.subscribe(Wn(e,function(g){o=!0,s=g,(!l||l.closed)&&(n?f():h(g))},function(){u=!0,(!(a&&o&&l)||l.closed)&&e.complete()}))})}function VL(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kee,e=jw(i,r);return F7e(function(){return e},t)}var Cee=function(){var i=function(){function r(t,e){p(this,r),this._renderer=t,this._elementRef=e,this.onChange=function(n){},this.onTouched=function(){}}return v(r,[{key:"setProperty",value:function(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"setDisabledState",value:function(e){this.setProperty("disabled",e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e))},i.\u0275dir=X({type:i}),i}(),Kf=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(Cee);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,features:[j]}),i}(),jn=new Dt("NgValueAccessor"),P7e={provide:jn,useExisting:ke(function(){return zL}),multi:!0},zL=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e,[{key:"writeValue",value:function(a){this.setProperty("checked",a)}}]),e}(Kf);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Q("change",function(a){return e.onChange(a.target.checked)})("blur",function(){return e.onTouched()})},features:[de([P7e]),j]}),i}(),B7e={provide:jn,useExisting:ke(function(){return zc}),multi:!0},V7e=new Dt("CompositionEventMode"),zc=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a))._compositionMode=o,s._composing=!1,null==s._compositionMode&&(s._compositionMode=!function G7e(){var i=tu()?tu().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}()),s}return v(e,[{key:"writeValue",value:function(a){this.setProperty("value",null==a?"":a)}},{key:"_handleInput",value:function(a){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(a)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(a){this._composing=!1,this._compositionMode&&this.onChange(a)}}]),e}(Cee);return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e),m(V7e,8))},i.\u0275dir=X({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Q("input",function(a){return e._handleInput(a.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(a){return e._compositionEnd(a.target.value)})},features:[de([B7e]),j]}),i}(),tr=new Dt("NgValidators"),Jd=new Dt("NgAsyncValidators");function See(i){return null!=i}function wee(i){var r=X_(i)?wi(i):i;return $M(r),r}function Dee(i){var r={};return i.forEach(function(t){r=null!=t?Object.assign(Object.assign({},r),t):r}),0===Object.keys(r).length?null:r}function Eee(i,r){return r.map(function(t){return t(i)})}function Tee(i){return i.map(function(r){return function Z7e(i){return!i.validate}(r)?r:function(t){return r.validate(t)}})}function KL(i){return null!=i?function Y7e(i){if(!i)return null;var r=i.filter(See);return 0==r.length?null:function(t){return Dee(Eee(t,r))}}(Tee(i)):null}function jL(i){return null!=i?function Q7e(i){if(!i)return null;var r=i.filter(See);return 0==r.length?null:function(t){return FO(Eee(t,r).map(wee)).pipe(We(Dee))}}(Tee(i)):null}function Aee(i,r){return null===i?[r]:Array.isArray(i)?[].concat(Ae(i),[r]):[i,r]}function xee(i){return i._rawValidators}function Mee(i){return i._rawAsyncValidators}function WL(i){return i?Array.isArray(i)?i:[i]:[]}function ME(i,r){return Array.isArray(i)?i.includes(r):i===r}function Ree(i,r){var t=WL(r);return WL(i).forEach(function(n){ME(t,n)||t.push(n)}),t}function Oee(i,r){return WL(r).filter(function(t){return!ME(i,t)})}var Iee=function(){function i(){p(this,i),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return v(i,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=KL(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=jL(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),i}(),ra=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return v(t)}(Iee),no=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(Iee),Nee=function(){function i(r){p(this,i),this._cd=r}return v(i,[{key:"is",value:function(t){var e,n,a;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(a=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===a?void 0:a[t])}}]),i}(),jf=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,n)}return v(e)}(Nee);return i.\u0275fac=function(t){return new(t||i)(m(ra,2))},i.\u0275dir=X({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ue("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[j]}),i}(),Fee=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,n)}return v(e)}(Nee);return i.\u0275fac=function(t){return new(t||i)(m(no,10))},i.\u0275dir=X({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&ue("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[j]}),i}();function oC(i,r){XL(i,r),r.valueAccessor.writeValue(i.value),function o9e(i,r){r.valueAccessor.registerOnChange(function(t){i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&Pee(i,r)})}(i,r),function l9e(i,r){var t=function(n,a){r.valueAccessor.writeValue(n),a&&r.viewToModelUpdate(n)};i.registerOnChange(t),r._registerOnDestroy(function(){i._unregisterOnChange(t)})}(i,r),function s9e(i,r){r.valueAccessor.registerOnTouched(function(){i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&Pee(i,r),"submit"!==i.updateOn&&i.markAsTouched()})}(i,r),function a9e(i,r){if(r.valueAccessor.setDisabledState){var t=function(n){r.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),r._registerOnDestroy(function(){i._unregisterOnDisabledChange(t)})}}(i,r)}function IE(i,r){var e=function(){};r.valueAccessor&&(r.valueAccessor.registerOnChange(e),r.valueAccessor.registerOnTouched(e)),function FE(i,r){var t=!1;if(null!==i){if(null!==r.validator){var e=xee(i);if(Array.isArray(e)&&e.length>0){var n=e.filter(function(l){return l!==r.validator});n.length!==e.length&&(t=!0,i.setValidators(n))}}if(null!==r.asyncValidator){var a=Mee(i);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(l){return l!==r.asyncValidator});o.length!==a.length&&(t=!0,i.setAsyncValidators(o))}}}var s=function(){};return NE(r._rawValidators,s),NE(r._rawAsyncValidators,s),t}(i,r),i&&(r._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(function(){}))}function NE(i,r){i.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(r)})}function XL(i,r){var t=xee(i);null!==r.validator?i.setValidators(Aee(t,r.validator)):"function"==typeof t&&i.setValidators([t]);var e=Mee(i);null!==r.asyncValidator?i.setAsyncValidators(Aee(e,r.asyncValidator)):"function"==typeof e&&i.setAsyncValidators([e]);var n=function(){return i.updateValueAndValidity()};NE(r._rawValidators,n),NE(r._rawAsyncValidators,n)}function Pee(i,r){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function ZL(i,r){if(!i.hasOwnProperty("model"))return!1;var t=i.model;return!!t.isFirstChange()||!Object.is(r,t.currentValue)}function YL(i,r){if(!r)return null;Array.isArray(r);var t=void 0,e=void 0,n=void 0;return r.forEach(function(a){a.constructor===zc?t=a:function d9e(i){return Object.getPrototypeOf(i.constructor)===Kf}(a)?e=a:n=a}),n||e||t||null}function QL(i,r){var t=i.indexOf(r);t>-1&&i.splice(t,1)}var sC="VALID",LE="INVALID",Zg="PENDING",lC="DISABLED";function eP(i){return(PE(i)?i.validators:i)||null}function Uee(i){return Array.isArray(i)?KL(i):i||null}function tP(i,r){return(PE(r)?r.asyncValidators:i)||null}function zee(i){return Array.isArray(i)?jL(i):i||null}function PE(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}var nP=function(r){return r instanceof uC};function Kee(i){return function(r){return r instanceof rP}(i)?i.value:i.getRawValue()}function jee(i,r){var t=nP(i),e=i.controls;if(!(t?Object.keys(e):e).length)throw new gt(1e3,"");if(!e[r])throw new gt(1001,"")}function Wee(i,r){nP(i),i._forEachChild(function(e,n){if(void 0===r[n])throw new gt(1002,"")})}var iP=function(){function i(r,t){p(this,i),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=t,this._composedValidatorFn=Uee(this._rawValidators),this._composedAsyncValidatorFn=zee(this._rawAsyncValidators)}return v(i,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===sC}},{key:"invalid",get:function(){return this.status===LE}},{key:"pending",get:function(){return this.status==Zg}},{key:"disabled",get:function(){return this.status===lC}},{key:"enabled",get:function(){return this.status!==lC}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=Uee(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=zee(t)}},{key:"addValidators",value:function(t){this.setValidators(Ree(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(Ree(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(Oee(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(Oee(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return ME(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return ME(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Zg,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=lC,this.errors=null,this._forEachChild(function(n){n.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(n){return n(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=sC,this._forEachChild(function(n){n.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(n){return n(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===sC||this.status===Zg)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?lC:sC}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=Zg,this._hasOwnPendingAsyncValidator=!0;var n=wee(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(a){e._hasOwnPendingAsyncValidator=!1,e.setErrors(a,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function h9e(i,r,t){if(null==r||(Array.isArray(r)||(r=r.split(t)),Array.isArray(r)&&0===r.length))return null;var e=i;return r.forEach(function(n){e=nP(e)?e.controls.hasOwnProperty(n)?e.controls[n]:null:function(r){return r instanceof v9e}(e)&&e.at(n)||null}),e}(this,t,".")}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new O,this.statusChanges=new O}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?lC:this.errors?LE:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zg)?Zg:this._anyControlsHaveStatus(LE)?LE:sC}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){PE(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),i}(),rP=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return p(this,t),(e=r.call(this,eP(a),tP(o,a))).defaultValue=null,e._onChange=[],e._pendingChange=!1,e._applyFormState(n),e._setUpdateStrategy(a),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),PE(a)&&a.initialValueIsDefault&&(e.defaultValue=e._isBoxedValue(n)?n.value:n),e}return v(t,[{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=n,this._onChange.length&&!1!==o.emitModelToViewChange&&this._onChange.forEach(function(s){return s(a.value,!1!==o.emitViewToModelChange)}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(n,a)}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(n),this.markAsPristine(a),this.markAsUntouched(a),this.setValue(this.value,a),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(n){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(n){this._onChange.push(n)}},{key:"_unregisterOnChange",value:function(n){QL(this._onChange,n)}},{key:"registerOnDisabledChange",value:function(n){this._onDisabledChange.push(n)}},{key:"_unregisterOnDisabledChange",value:function(n){QL(this._onDisabledChange,n)}},{key:"_forEachChild",value:function(n){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}]),t}(iP),uC=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,eP(n),tP(a,n))).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return v(t,[{key:"registerControl",value:function(n,a){return this.controls[n]?this.controls[n]:(this.controls[n]=a,a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange),a)}},{key:"addControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(n,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),delete this.controls[n],this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),delete this.controls[n],a&&this.registerControl(n,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}},{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wee(this,n),Object.keys(n).forEach(function(s){jee(a,s),a.controls[s].setValue(n[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=n&&(Object.keys(n).forEach(function(s){a.controls[s]&&a.controls[s].patchValue(n[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(n[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(n,a,o){return n[o]=Kee(a),n})}},{key:"_syncPendingControls",value:function(){var n=this._reduceChildren(!1,function(a,o){return!!o._syncPendingControls()||a});return n&&this.updateValueAndValidity({onlySelf:!0}),n}},{key:"_forEachChild",value:function(n){var a=this;Object.keys(this.controls).forEach(function(o){var s=a.controls[o];s&&n(s,o)})}},{key:"_setUpControls",value:function(){var n=this;this._forEachChild(function(a){a.setParent(n),a._registerOnCollectionChange(n._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(n){for(var a=0,o=Object.keys(this.controls);a0||this.disabled}}]),t}(iP),v9e=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,eP(n),tP(a,n))).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return v(t,[{key:"at",value:function(n){return this.controls[n]}},{key:"push",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(n,0,a),this._registerControl(a),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"removeAt",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"setControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),a&&(this.controls.splice(n,0,a),this._registerControl(a)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Wee(this,n),n.forEach(function(s,l){jee(a,l),a.at(l).setValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=n&&(n.forEach(function(s,l){a.at(l)&&a.at(l).patchValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(n[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this.controls.map(function(n){return Kee(n)})}},{key:"clear",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(a){return a._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}},{key:"_syncPendingControls",value:function(){var n=this.controls.reduce(function(a,o){return!!o._syncPendingControls()||a},!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}},{key:"_forEachChild",value:function(n){this.controls.forEach(function(a,o){n(a,o)})}},{key:"_updateValue",value:function(){var n=this;this.value=this.controls.filter(function(a){return a.enabled||n.disabled}).map(function(a){return a.value})}},{key:"_anyControls",value:function(n){return this.controls.some(function(a){return a.enabled&&n(a)})}},{key:"_setUpControls",value:function(){var n=this;this._forEachChild(function(a){return n._registerControl(a)})}},{key:"_allControlsDisabled",value:function(){var a,n=In(this.controls);try{for(n.s();!(a=n.n()).done;)if(a.value.enabled)return!1}catch(s){n.e(s)}finally{n.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}]),t}(iP),p9e={provide:no,useExisting:ke(function(){return BE})},cC=function(){return Promise.resolve(null)}(),BE=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).submitted=!1,o._directives=new Set,o.ngSubmit=new O,o.form=new uC({},KL(n),jL(a)),o}return v(e,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(a){var o=this;cC.then(function(){var s=o._findContainer(a.path);a.control=s.registerControl(a.name,a.control),oC(a.control,a),a.control.updateValueAndValidity({emitEvent:!1}),o._directives.add(a)})}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){var o=this;cC.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name),o._directives.delete(a)})}},{key:"addFormGroup",value:function(a){var o=this;cC.then(function(){var s=o._findContainer(a.path),l=new uC({});(function Bee(i,r){XL(i,r)})(l,a),s.registerControl(a.name,l),l.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(a){var o=this;cC.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name)})}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){var s=this;cC.then(function(){s.form.get(a.path).setValue(o)})}},{key:"setValue",value:function(a){this.control.setValue(a)}},{key:"onSubmit",value:function(a){return this.submitted=!0,function Vee(i,r){i._syncPendingControls(),r.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(a){return a.pop(),a.length?this.form.get(a):this.form}}]),e}(no);return i.\u0275fac=function(t){return new(t||i)(m(tr,10),m(Jd,10))},i.\u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Q("submit",function(a){return e.onSubmit(a)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([p9e]),j]}),i}(),m9e={provide:ra,useExisting:ke(function(){return Wf})},Xee=function(){return Promise.resolve(null)}(),Wf=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l){var u;return p(this,e),(u=t.call(this))._changeDetectorRef=l,u.control=new rP,u._registered=!1,u.update=new O,u._parent=n,u._setValidators(a),u._setAsyncValidators(o),u.valueAccessor=YL(Xe(u),s),u}return v(e,[{key:"ngOnChanges",value:function(a){if(this._checkForErrors(),!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var o=a.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a),ZL(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){oC(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(a){var o=this;Xee.then(function(){var s;o.control.setValue(a,{emitViewToModelChange:!1}),null===(s=o._changeDetectorRef)||void 0===s||s.markForCheck()})}},{key:"_updateDisabled",value:function(a){var o=this,s=a.isDisabled.currentValue,l=""===s||s&&"false"!==s;Xee.then(function(){var u;l&&!o.control.disabled?o.control.disable():!l&&o.control.disabled&&o.control.enable(),null===(u=o._changeDetectorRef)||void 0===u||u.markForCheck()})}},{key:"_getPath",value:function(a){return this._parent?function OE(i,r){return[].concat(Ae(r.path),[i])}(a,this._parent):[a]}}]),e}(ra);return i.\u0275fac=function(t){return new(t||i)(m(no,9),m(tr,10),m(Jd,10),m(jn,10),m(nt,8))},i.\u0275dir=X({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[de([m9e]),j,Ie]}),i}(),Zee=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i}(),Qee=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),aP=new Dt("NgModelWithFormControlWarning"),b9e={provide:ra,useExisting:ke(function(){return oP})},oP=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this))._ngModelWarningConfig=s,l.update=new O,l._ngModelWarningSent=!1,l._setValidators(n),l._setAsyncValidators(a),l.valueAccessor=YL(Xe(l),o),l}return v(e,[{key:"isDisabled",set:function(a){}},{key:"ngOnChanges",value:function(a){if(this._isControlChanged(a)){var o=a.form.previousValue;o&&IE(o,this),oC(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}ZL(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&IE(this.form,this)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_isControlChanged",value:function(a){return a.hasOwnProperty("form")}}]),e}(ra);return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(t){return new(t||i)(m(tr,10),m(Jd,10),m(jn,10),m(aP,8))},i.\u0275dir=X({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[de([b9e]),j,Ie]}),i}(),vte=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Qee]]}),i}(),dC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[vte]}),i}(),fP=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"withConfig",value:function(e){return{ngModule:r,providers:[{provide:aP,useValue:e.warnOnNgModelWithFormControl}]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[vte]}),i}(),ji=function(r){return null!=r},GE=function(r){return null==r},vP=function(r){return Array.isArray(r)},pte=function(r){return"function"==typeof r},pP=function(r){return"string"==typeof r},qf=function(r){return!isNaN(r-parseFloat(r))},eh=function(r){return r&&r.getTime},Hc=function(r){return ji(r.filters)},gte=function(r,t,e){return function(n){return r(n)?t(n):e(n)}},xl=function(){for(var r=arguments.length,t=new Array(r),e=0;e0}(r(t))}},Yg=function(r,t){return gte(r,t,e$e)},mP=function(r,t){return function(e){return r(e).map(t).join("~")}},a$e=xl.apply(void 0,Ae([['"',""],[":","-"]].map(function(t){var e=Bt(t,2),n=e[0],a=e[1];return function(o){return o.replace(new RegExp(n,"g"),a)}}))),o$e=function(t){return t.slice(0,t.indexOf("."))},wte=function(r){var e=r.dir,n=void 0===e?"asc":e;return"".concat(r.field,"-").concat(n)},Dte=_u("take"),Ete=_u("aggregates"),l$e=_u("skip"),Tte=_u("group"),_P=_u("sort",!0),u$e=mP(_P,wte),c$e=mP(Tte,wte),d$e=mP(Ete,function(r){var e=r.aggregate;return"".concat(r.field,"-").concat(e)}),f$e=xl(function(r){return"datetime'".concat(r,"'")},o$e,a$e,JSON.stringify,function(r){return new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()))}),g$e=xl(fC("page"),function(r){return Math.floor((r.skip||0)/r.take)+1}),m$e=xl(fC("pageSize"),Dte),_$e=xl(fC("group"),c$e),y$e=xl(fC("sort"),u$e),k$e=xl(fC("aggregate"),d$e),yP=(Yg(gP(l$e),g$e),Yg(gP(Dte),m$e),Yg(Ste(Tte),_$e),Yg(gP(Ete),k$e),xl(Yg(Ste(_P),y$e),function(r){return Object.assign({},r,{sort:(_P(r)||[]).filter(function(t){return function(r){return!function(r){return GE(r)||0===r.trim().length}(r)}(t.dir)})})}),function(r){var e=r.operator,n=r.value;return"".concat(r.field,"~").concat(e,"~").concat(n)}),VE=(gte(function(r){return eh(r.value)},xl(yP,function(r){var t=r.field,n=r.ignoreCase,a=r.operator;return{value:f$e(r.value),field:t,ignoreCase:n,operator:a}}),yP),function(r,t,e){return t[r]=e,t}),kP=function(r){return function(t){var e=t[r];return ji(e)?e:t[function(r){return r.replace(/(^[A-Z])/g,function(t,e){return e.toLowerCase()})}(r)]}},Mte=(kP("Member"),kP("AggregateMethodName"),kP("Value"),function(r){return function(t){return Object.keys(t).reduce(r.bind(null,t),{})}}),F$e=Mte(function(i,r,t){return VE(t.toLowerCase(),r,i[t])}),L$e=Mte(function(i,r,t){return VE(t,r,F$e(i[t]))}),Rte=function(r,t){return ji(r)?r:t},Ote=xl(function(i){var r=i.field,t=i.hasSubgroups,e=i.value,a=i.items;return{aggregates:L$e(i.aggregates),field:r,items:t?a.map(Ote):a,value:e}},function(r){return{aggregates:r.Aggregates||r.aggregates,field:r.Member||r.member||r.field,hasSubgroups:r.HasSubgroups||r.hasSubgroups||!1,items:r.Items||r.items,value:Rte(r.Key,Rte(r.key,r.value))}}),Ite=function(r,t){return GE(r)?r===t?0:-1:GE(t)?1:r.localeCompare?r.localeCompare(t):r>t?1:r0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(r).forEach(function(t){var e=r[t];Object.keys(e).forEach(function(n){e[n]=e[n].result()})}),r},W$e=function(r){var t=r.map(function(e){var n=_u(e.field,!0),a=(e.aggregate||"").toLowerCase(),o=_u(a,!0);return function(s,l){var u=s[e.field]||{},c=o(u)||function(r){return{average:function(){var e=0,n=0;return{calc:function(o){qf(o)?(e+=o,n++):e=o},result:function(){return qf(e)?e/n:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(a){(e=qf(e)||eh(e)?e:a)a&&(qf(a)||eh(a))&&(e=a)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(a){a=ji(a)?a:0,e+=a},result:function(){return e}}}}[r]()}(a);return c.calc(n(l)),u[e.aggregate]=c,s[e.field]=u,s}});return function(e,n){return t.reduce(function(a,o){return o(a,n)},e)}},$$e=function(r,t){return r.push(t),r},Nte=function(r){return function(t){return function(e,n,a){return t(e,r(n,a))}}},Fte=function(r){return function(t){return function(e,n){return r(n)?t(e,n):e}}},Lte=function(r){return ji(r.__value)},CP=function(r,t,e){for(var n=t,a=0,o=e.length;a1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z$e,n={};if(!t.length)return n;var a=CP(e(W$e(t)),n,r);return K$e(a)},J$e=function i(r){r.filters&&(r.filters=r.filters.map(function(t){var e=Object.assign({},t);return!Hc(t)&&pP(t.operator)&&(e.operator=function(r){return{"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[r.toLowerCase()]||r}(t.operator)),Hc(t)&&i(e),e}))},Bte=function(r){return ji(r)&&(r=function(r){return Hc(r)?Object.assign({},r):{filters:vP(r)?r:[r],logic:"and"}}(r),J$e(r)),r},tqe={or:{concat:function(r,t){return function(e){return r(e)||t(e)}},identity:function(){return!1}},and:{concat:function(r,t){return function(e){return r(e)&&t(e)}},identity:function(){return!0}}},nqe={contains:function(r,t){return(r||"").indexOf(t)>=0},doesnotcontain:function(r,t){return-1===(r||"").indexOf(t)},doesnotendwith:function(r,t){return(r||"").indexOf(t,(r||"").length-(t||"").length)<0},doesnotstartwith:function(r,t){return-1===(r||"").lastIndexOf(t,0)},endswith:function(r,t){return(r||"").indexOf(t,(r||"").length-(t||"").length)>=0},eq:function(r,t){return r===t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t},isempty:function(r){return""===r},isnotempty:function(r){return""!==r},isnotnull:function(r){return ji(r)},isnull:function(r){return GE(r)},lt:function(r,t){return r1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hte,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;if(!(t=zte(t)).length)return r;var a=t[0],o={},s=CP(e(H$e(a.field)),o,r),l=[];return Object.keys(s).forEach(function(u){Object.keys(s[u]).forEach(function(c){var d=s[u][c],h={},f=n;ji(a.aggregates)&&(f=Ute(n,{field:a.field,ignoreCase:!1,operator:"eq",value:d.value}),h=Y$e(f,a.aggregates)),l[d.__position]={aggregates:h,field:u,items:t.length>1?i(d.items,t.slice(1),Hte,f):d.items,value:d.value}})}),l},lqe=function i(r,t,e,n){if(!(e-t<2)){var a=t+e>>>1;i(r,t,a,n),i(r,a,e,n),function(r,t,e,n,a){for(var o=e-t,s=n-e,l=[],u=0;u0&&o>0);for(;o;)r[h++]=l[c++],o--;for(;s;)r[h++]=r[d++],s--}(r,t,a,e,n)}},UE=function(r,t){if(t.some(function(n){return ji(n.dir)})){r=r.slice(0);var e=function(r){return r.filter(function(t){return ji(t.dir)}).map(function(t){return G$e(t)}).reduce(function(t,e){return function(n,a){return t(n,a)||e(n,a)}},V$e)}(t);lqe(r,0,r.length,e)}return r},jte=function(r,t){var e=t.skip,n=t.take,a=t.filter,o=t.sort,s=t.group,l=[].concat(Ae(zte(s||[])),Ae(o||[]));l.length&&(r=UE(r,l));var u=ji(a)&&Fte.length,c=ji(s)&&s.length;if(!u&&!c)return{data:n?r.slice(e,e+n):r,total:r.length};var d,f,h=[];if(u?(d=function(r,t){for(var e=0,n=0,a=r.length;n0?t(e,n):function(r){return Lte(r)?r:{__value:r,reduced:!0}}(e)}}}(n))),h.length){var g=xl.apply(void 0,h),_=c?Kte(r,s,g,function(r,t){return t?r.filter(t):r}(r,f)):CP(g($$e),[],r);return{data:_,total:d}}return{data:c?Kte(r,s):r,total:d}},Une=["track"],xqe=["thumb"],Hne=function(r,t,e){return{keydown:r,focus:t,blur:e}},Mqe=["numericInput"],Rqe=function(r,t){return{mouseup:r,mouseleave:t}},Kne=function(r){return{mousedown:r}};function Oqe(i,r){if(1&i&&(A(0,"span",4)(1,"button",5),z(2,"span",6),x(),A(3,"button",7),z(4,"span",8),x()()),2&i){var t=D();y("kendoEventsOutsideAngular",ln(13,Rqe,t.releaseArrow,t.releaseArrow)),k(1),ue("k-active",t.arrowDirection===t.ArrowDirection.Up),y("kendoEventsOutsideAngular",ot(16,Kne,t.increasePress))("title",t.incrementTitle),ie("aria-hidden",!0)("aria-label",t.incrementTitle),k(2),ue("k-active",t.arrowDirection===t.ArrowDirection.Down),y("kendoEventsOutsideAngular",ot(18,Kne,t.decreasePress))("title",t.decrementTitle),ie("aria-hidden",!0)("aria-label",t.decrementTitle)}}var Iqe=function(r,t,e,n,a,o,s){return{mousedown:r,dragenter:t,keydown:e,input:n,focus:a,blur:o,paste:s}},Nqe=["input"];function Fqe(i,r){}function Lqe(i,r){if(1&i&&T(0,Fqe,0,0,"ng-template",8),2&i){var t=D();y("ngTemplateOutlet",null==t.prefixTemplate?null:t.prefixTemplate.templateRef)}}function Pqe(i,r){if(1&i){var t=Me();A(0,"span",9),Q("click",function(){return re(t),D().clearValue()})("mousedown",function(a){return a.preventDefault()})("keydown.enter",function(a){return re(t),D().clearValue(a)})("keydown.space",function(a){return re(t),D().clearValue(a)}),z(1,"span",10),x()}if(2&i){var e=D();y("tabindex",e.tabIndex)("title",e.clearTitle()),ie("aria-label",e.clearTitle()),k(1),y("ngClass",e.clearButtonClasses)}}function Bqe(i,r){1&i&&z(0,"span",10),2&i&&y("ngClass",D().errorIconClasses)}function Gqe(i,r){1&i&&z(0,"span",10),2&i&&y("ngClass",D().successIconClasses)}function Vqe(i,r){}function Uqe(i,r){if(1&i&&T(0,Vqe,0,0,"ng-template",8),2&i){var t=D();y("ngTemplateOutlet",null==t.suffixTemplate?null:t.suffixTemplate.templateRef)}}var zqe=function(r,t,e){return{focus:r,blur:t,input:e}},mn=function(r){return null!=r},vC=function(r,t){return r===t||null===r&&void 0===t||void 0===r&&null===t},pC=function(r){return r&&(!r.touched||r.control&&"blur"===r.control.updateOn)},Wne={small:"sm",medium:"md",large:"lg"},$ne={small:"sm",medium:"md",large:"lg",full:"full"},Xf=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(Wne[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(Wne[n]):""};case"rounded":return{toRemove:"k-rounded-".concat($ne[e]),toAdd:"none"!==n?"k-rounded-".concat($ne[n]):""};case"fillMode":return{toRemove:"k-".concat(r,"-").concat(e),toAdd:"none"!==n?"k-".concat(r,"-").concat(n):""}}},qne=function(r){return Math.min(r,20)},gC=function(r){return(String(r).split(".")[1]||"").length},zE=function(r,t){var e=qne(t);return parseFloat(r.toFixed(e))},Zf=function(r,t){var e=function(r,t){return Math.max(gC(r),gC(t))}(r,t);return zE(r+t,e)};function th(i,r){if(i&&i.nativeElement){for(var t=arguments.length,e=new Array(t>2?t-2:0),n=2;n=0?Math.floor(r):Math.ceil(r)},Yf=function(r){},Qf=function(r){return!isNaN(r)&&null!==r};function uie(i,r){var t=r-String(i).length,e=i;if(t>0){var n=new Array(t+1).join("0");e=parseFloat(i+n)}return e}var Wc=function(){return function(i){i[i.Down=-1]="Down",i[i.None=0]="None",i[i.Up=1]="Up"}(Wc||(Wc={})),Wc}(),qE=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-numerictextbox-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[j]}),i}(),AZe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(qE);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoNumericTextBoxLocalizedMessages",""]],features:[de([{provide:qE,useExisting:ke(function(){return i})}]),j]}),i}(),cie=["min","max","step","decimals"],xZe={decimals:null,max:null,min:null,step:1},Jf=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.intl=t,this.renderer=e,this.localizationService=n,this.injector=a,this.ngZone=o,this.changeDetector=s,this.hostElement=l,this.focusableId="k-".concat(qn()),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new O,this.onFocus=new O,this.onBlur=new O,this.ArrowDirection=Wc,this.arrowDirection=Wc.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=Yf,this.maxValidateFn=Yf,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=Yf,this.ngTouched=Yf,this.ngValidatorChange=Yf,this.domEvents=[],this.increasePress=function(c){u.arrowPress(Wc.Up,c)},this.decreasePress=function(c){u.arrowPress(Wc.Down,c)},this.releaseArrow=function(){clearTimeout(u.spinTimeout),u.arrowDirection!==Wc.None&&(u.arrowDirection=Wc.None,u.changeDetector.detectChanges())},this.handlePaste=function(){u.isPasted=!0},this.handleInput=function(){var c=u.numericInput.nativeElement,d=c.selectionStart,h=c.selectionEnd,f=c.value;if(u.pressedKey===J.NumpadDecimal&&(f=u.replaceNumpadDotValue()),u.isPasted&&(f=u.formatInputValue(u.intl.parseNumber(f))),!u.isValid(f))return c.value=u.inputValue,void u.setSelection(d-1,h-1);var g=u.intl.parseNumber(f),_=u.restrictDecimals(g);if(u.autoCorrect){var C=u.limitInputValue(_);_=C.value,d=C.selectionStart,h=C.selectionEnd}g!==_||u.hasTrailingZeros(f)||!u.focused?(u.setInputValue(_),u.setSelection(d,h)):u.inputValue=f,u.isPasted&&(c.value=u.inputValue),u.updateValue(_),u.previousSelection=null,u.isPasted=!1},this.handleDragEnter=function(){!u.focused&&!u.isDisabled&&u.setInputValue(u.value,!0)},this.handleMouseDown=function(){u.mouseDown=!0},this.handleFocus=function(){if(!u.focused&&(u.focused=!0,!u.isDisabled)){var c=u.selectOnFocus||!u.mouseDown;u.ngZone.runOutsideAngular(function(){setTimeout(function(){c?u.selectAll():u.selectCaret()},0)})}u.mouseDown=!1,ut(u.onFocus)&&u.ngZone.run(function(){u.onFocus.emit()})},this.handleBlur=function(){u.changeDetector.markForCheck(),u.focused=!1,u.inputValue!==u.elementValue&&u.handleInput(),u.setInputValue(),(ut(u.onBlur)||pC(u.control))&&u.ngZone.run(function(){u.ngTouched(),u.onBlur.emit()})},this.handleKeyDown=function(c){if(!u.isDisabled){var d;c.keyCode===J.ArrowDown?d=-1:c.keyCode===J.ArrowUp&&(d=1),d&&u.step&&(c.preventDefault(),u.addStep(d));var h=u.numericInput.nativeElement;u.previousSelection={end:h.selectionEnd,start:h.selectionStart},u.pressedKey=c.keyCode}},this.handleWheel=function(c){if(u.focused&&!u.isDisabled&&u.changeValueOnScroll){c.preventDefault();var d=function(r){var t=0;return r.wheelDelta?t=(t=r.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):r.detail&&(t=Math.round(-r.detail/3)),t}(c);u.addStep(d)}},jt(jc),this.direction=n.rtl?"rtl":"ltr"}return v(r,[{key:"format",get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"disableClass",get:function(){return this.disabled}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(ra,null),this.ngZone.runOutsideAngular(function(){e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"mousewheel",e.handleWheel.bind(e))),e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"DOMMouseScroll",e.handleWheel.bind(e)))})}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","fillMode"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngOnChanges",value:function(e){Ki(cie,e,!1)&&this.parseOptions(cie.filter(function(n){return e[n]})),this.verifySettings(),Ki(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?function(r){return function(t){return!mn(r)||!mn(t.value)||t.value>=r?null:{minError:{minValue:r,value:t.value}}}}(this.min):Yf,this.maxValidateFn=this.rangeValidation?function(r){return function(t){return!mn(r)||!mn(t.value)||t.value<=r?null:{maxError:{maxValue:r,value:t.value}}}}(this.max):Yf,this.ngValidatorChange()),Ki(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Ki(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),(!this.focused||this.intl.parseNumber(this.elementValue)!==this.value)&&this.setInputValue())}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach(function(e){return e()})}},{key:"validate",value:function(e){return this.minValidateFn(e)||this.maxValidateFn(e)}},{key:"registerOnValidatorChange",value:function(e){this.ngValidatorChange=e}},{key:"writeValue",value:function(e){this.verifyValue(e);var n=this.restrictModelValue(e);this.value=n,this.setInputValue()}},{key:"registerOnChange",value:function(e){this.ngChange=e}},{key:"registerOnTouched",value:function(e){this.ngTouched=e}},{key:"setDisabledState",value:function(e){this.changeDetector.markForCheck(),this.disabled=e}},{key:"focus",value:function(){th(this.numericInput,"focus")}},{key:"blur",value:function(){th(this.numericInput,"blur")}},{key:"notifyValueChange",value:function(){this.setInputValue()}},{key:"incrementTitle",get:function(){return this.localizationService.get("increment")}},{key:"decrementTitle",get:function(){return this.localizationService.get("decrement")}},{key:"decimalSeparator",get:function(){return this.intl.numberSymbols().decimal}},{key:"elementValue",get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)}},{key:"focused",get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var n=this.hostElement.nativeElement;e?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus"),this.isFocused=e}}},{key:"hasDecimals",get:function(){return null!==this.decimals&&this.decimals>=0}},{key:"isDisabled",get:function(){return this.disabled||this.readonly}},{key:"arrowPress",value:function(e,n){n.preventDefault(),!this.isDisabled&&!function(r){return r.button&&2===r.button||r.which&&3===r.which}(n)&&(cW||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())}},{key:"updateValue",value:function(e){var n=this;vC(this.value,e)||this.ngZone.run(function(){n.value=e,n.ngChange(e),n.valueChange.emit(e),n.changeDetector.markForCheck()})}},{key:"replaceNumpadDotValue",value:function(){var e=this.inputValue||"";if(this.previousSelection){var n=this.numericInput.nativeElement,a=n.selectionStart,o=n.selectionEnd,s=this.previousSelection,u=s.end;n.value=e=e.substring(0,s.start)+this.decimalSeparator+e.substring(u),this.setSelection(a,o)}return e}},{key:"isValid",value:function(e){return this.numericRegex||(this.numericRegex=function(r){var n=r.min,a=r.separator;"."===a&&(a="\\"+a);var s,o=r.autoCorrect&&null!==n&&n>=0?"":"-?";return s=0===r.decimals?"\\d*":"(?:(?:\\d+(".concat(a,"\\d*)?)|(?:").concat(a,"\\d*))?"),new RegExp("^".concat(o).concat(s,"$"))}({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)}},{key:"spin",value:function(e,n){var a=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){a.spin(e,50)},n),this.addStep(e)}},{key:"addStep",value:function(e){var n=Zf(this.value||0,this.step*e);n=this.limitValue(n),n=this.restrictDecimals(n),this.setInputValue(n),this.updateValue(n)}},{key:"setSelection",value:function(e,n){this.focused&&th(this.numericInput,"setSelectionRange",e,n)}},{key:"limitValue",value:function(e){var n=e;return this.isInRange(e)||(Qf(this.max)&&e>this.max&&(n=this.max),Qf(this.min)&&eh?e>0?C=!0:_=h:g&&e0?_=d:C=!0),_){var E=this.tryPadValue(e,_);E&&lie(e)!==lie(_)&&(w=E,u=!0)}else C&&this.inputValue&&a!==s.length&&(w=parseFloat(s.substr(0,a)+s.substr(a+c)));l=this.limitValue(w),u=(u||l!==w)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+c>0}return{selectionEnd:u?String(l).length:o,selectionStart:a,value:l}}},{key:"tryPadValue",value:function(e,n){var l,a=String(Math.floor(n)).length,o=uie(e,a),s=uie(e,a+1);return this.isInRange(o)?l=o:this.isInRange(s)&&(l=s),l}},{key:"isInRange",value:function(e){return!Qf(e)||(!Qf(this.min)||this.min<=e)&&(!Qf(this.max)||e<=this.max)}},{key:"restrictModelValue",value:function(e){var n=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(n)!==n&&(n=null),n}},{key:"restrictDecimals",value:function(e,n){var a=e;if(e&&this.hasDecimals){var o=this.decimals,s=String(e);if(n||sie.test(s))a=zE(e,o);else{var l=s.split("."),u=l[1];u&&u.length>o&&(u=u.substr(0,o),a=parseFloat("".concat(l[0]).concat(".").concat(u)))}}return a}},{key:"formatInputValue",value:function(e){var n=String(e),a=sie.exec(n);return a&&(n=e.toFixed(qne(parseInt(a[1],10)))),n.replace(".",this.decimalSeparator)}},{key:"formatValue",value:function(e,n){var a;return a=null!==e&&function(r){return void 0!==r}(e)&&""!==e?n&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):"",a}},{key:"setInputValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.value,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.focused,a=this.formatValue(e,n);this.elementValue=a,this.inputValue=a}},{key:"verifySettings",value:function(){if(xt()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max","."))}},{key:"verifyValue",value:function(e){if(xt()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and ".concat(JSON.stringify(e)," was set."))}},{key:"parseOptions",value:function(e){for(var n=0;nthis.decimals&&n.lastIndexOf("0")===n.length-1}}},{key:"selectAll",value:function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)}},{key:"selectCaret",value:function(){var e=function(r){return r.selectionStart}(this.numericInput.nativeElement),n=this.elementValue,a=n.substring(0,e);if(this.setInputValue(),a.length){var o=function(r,t){var e="".concat(t,"0123456789-");return r.split("").reduce(function(n,a){return e.includes(a)?++n:n},0)}(a,this.decimalSeparator),s=this.adjustSignificantChars(n,o);this.setSelection(s,s)}else this.setSelection(0,0)}},{key:"numberOfLeadingZeroes",value:function(e){var n=e.indexOf(this.decimalSeparator),a=e.match(/^[^1-9]*?(0+)/);if(a){var s=a[1].length;return a[0].length===n?s-1:s}return 0}},{key:"adjustSignificantChars",value:function(e,n){var a=this.numberOfLeadingZeroes(e);return a>0?Math.max(0,n-a):n}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("input",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(fi),m(Ee),m(Y),m(Jn),m(be),m(nt),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-numerictextbox"]],viewQuery:function(t,e){var n;1&t&&ge(Mqe,7),2&t&&P(n=B())&&(e.numericInput=n.first)},hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-disabled",e.disableClass)("k-input",e.hostClasses)("k-numerictextbox",e.hostClasses))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",autoCorrect:"autoCorrect",format:"format",max:"max",min:"min",decimals:"decimals",placeholder:"placeholder",step:"step",spinners:"spinners",rangeValidation:"rangeValidation",tabindex:"tabindex",tabIndex:"tabIndex",changeValueOnScroll:"changeValueOnScroll",selectOnFocus:"selectOnFocus",value:"value",maxlength:"maxlength",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur"},exportAs:["kendoNumericTextBox"],features:[de([Y,{provide:Et,useValue:"kendo.numerictextbox"},{provide:jn,useExisting:ke(function(){return i}),multi:!0},{provide:tr,useExisting:ke(function(){return i}),multi:!0},{provide:Ui,useExisting:ke(function(){return i})}]),Ie],decls:4,vars:20,consts:function(){return[["kendoNumericTextBoxLocalizedMessages","","increment",$localize(Yte||(Yte=le([":kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox:Increase value"]))),"decrement",$localize(Qte||(Qte=le([":kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox:Decrease value"])))],["role","spinbutton","autocomplete","off","autocorrect","off",1,"k-input-inner",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["numericInput",""],["class","k-input-spinner k-spin-button",3,"kendoEventsOutsideAngular",4,"ngIf"],[1,"k-input-spinner","k-spin-button",3,"kendoEventsOutsideAngular"],["type","button","tabindex","-1",1,"k-spinner-increase","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],[1,"k-button-icon","k-icon","k-i-arrow-n"],["type","button","tabindex","-1",1,"k-spinner-decrease","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],[1,"k-button-icon","k-icon","k-i-arrow-s"]]},template:function(t,e){1&t&&(Wt(0,0),z(1,"input",1,2),T(3,Oqe,5,20,"span",3)),2&t&&(k(1),y("id",e.focusableId)("tabindex",e.tabIndex)("disabled",e.disabled)("readonly",e.readonly)("kendoEventsOutsideAngular",cR(12,Iqe,e.handleMouseDown,e.handleDragEnter,e.handleKeyDown,e.handleInput,e.handleFocus,e.handleBlur,e.handlePaste)),ie("aria-valuemin",e.min)("aria-valuemax",e.max)("aria-valuenow",e.value)("title",e.title)("placeholder",e.placeholder)("maxLength",e.maxlength),k(2),y("ngIf",e.spinners))},directives:[AZe,qi,qe],encapsulation:2}),i}(),hie=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(qE);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-numerictextbox-messages"]],features:[de([{provide:qE,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),fie=(Promise.resolve(null),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Ly,cr,yo],Ly,cr,yo]}),i}()),vie=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,fie]]}),i}(),LZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,fie]]}),i}(),PZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,yo]]}),i}(),AP=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}(),BZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}(),UZe=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxSuffixTemplate",""]]}),i}(),pie=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxPrefixTemplate",""]]}),i}(),gie=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-textbox-messages-base"]],inputs:{clear:"clear"},features:[j]}),i}(),zZe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(gie);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxLocalizedMessages",""]],features:[de([{provide:gie,useExisting:ke(function(){return i})}]),j]}),i}(),_ie=function(){var i=function(){function r(t,e,n,a,o,s){var l=this;p(this,r),this.localizationService=t,this.ngZone=e,this.changeDetector=n,this.renderer=a,this.injector=o,this.hostElement=s,this.focusableId="k-".concat(qn()),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new O,this.inputFocus=new O,this.inputBlur=new O,this.onFocus=new O,this.onBlur=new O,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){l.disabled||(l.selectOnFocus&&l.value&&l.ngZone.run(function(){setTimeout(function(){l.selectAll()})}),ut(l.onFocus)&&(l.isFocused||l.ngZone.run(function(){l.onFocus.emit()})),ut(l.inputFocus)&&(!l.focusChangedProgrammatically||l.focusChangedProgrammatically&&l.clearButtonClicked)&&l.ngZone.run(function(){l.inputFocus.emit()}),l.ngZone.run(function(){l.isFocused=!0}))},this.handleInputBlur=function(){l.changeDetector.markForCheck(),(ut(l.inputBlur)||pC(l.control))&&l.ngZone.run(function(){l.ngTouched(),l.inputBlur.emit()})},this.handleInput=function(u){var c=u.target,d=function(r){var t=kI(r),e=yI(r);return t&&t.safari||e&&"mobilesafari"===e.browser}(navigator.userAgent),h=d&&function(r){return/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(r)}(c.value)?u.data:c.value,f=[c.selectionStart,c.selectionEnd],g=f[0],_=f[1];l.updateValue(h),d&&c.setSelectionRange(g,_)},this.ngChange=function(u){},this.ngTouched=function(){},jt(jc),this.direction=t.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledClass",get:function(){return this.disabled}},{key:"ngOnInit",value:function(){var e=this;this.control=this.injector.get(ra,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){var e=this,n=this.hostElement.nativeElement,a=!1,o=!1;this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(n,"focusin",function(){e.isFocused||e.ngZone.run(function(){e.onFocus.emit(),e.isFocused=!0})})),e.subscriptions.add(e.renderer.listen(n,"focusout",function(l){if(e.isFocused)if(o){var u=function(r,t){for(;r&&r!==e.hostElement.nativeElement;)r=r.parentNode;return r}(l.relatedTarget);u||e.handleBlur(),o=!1}else!a&&!e.clearButtonClicked&&e.handleBlur()})),e.subscriptions.add(e.renderer.listen(n,"mouseenter",function(){a=!0})),e.subscriptions.add(e.renderer.listen(n,"mouseleave",function(){a=!1})),e.subscriptions.add(e.renderer.listen(n,"keydown",function(l){o=l.keyCode===J.Tab}))}),["size","rounded","fillMode"].forEach(function(l){e.handleClasses(e[l],l)})}},{key:"ngOnChanges",value:function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"focus",value:function(){!this.input||(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}},{key:"blur",value:function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}},{key:"clearTitle",value:function(){return this.localizationService.get("clear")}},{key:"checkClearButton",value:function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value}},{key:"clearValue",value:function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1}},{key:"writeValue",value:function(e){this.value=e,this.checkClearButton()}},{key:"registerOnChange",value:function(e){this.ngChange=e}},{key:"registerOnTouched",value:function(e){this.ngTouched=e}},{key:"setDisabledState",value:function(e){this.changeDetector.markForCheck(),this.disabled=e}},{key:"showErrorsInitial",value:function(){if(!this.control)return!1;var e=this.control;return e.invalid&&(e.dirty||e.touched)}},{key:"showSuccessInitial",value:function(){if(!this.control)return!1;var e=this.control;return e.valid&&(e.dirty||e.touched)}},{key:"successIconClasses",get:function(){return this.successIcon?"".concat(this.successIcon):"k-input-validation-icon k-icon k-i-check"}},{key:"errorIconClasses",get:function(){return this.errorIcon?"".concat(this.errorIcon):"k-input-validation-icon k-icon k-i-warning"}},{key:"clearButtonClasses",get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-x"}},{key:"hasErrors",get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon}},{key:"isSuccessful",get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon}},{key:"setSelection",value:function(e,n){this.isFocused&&th(this.input,"setSelectionRange",e,n)}},{key:"selectAll",value:function(){this.value&&this.setSelection(0,this.value.length)}},{key:"updateValue",value:function(e){var n=this;vC(this.value,e)||this.ngZone.run(function(){n.value=e,n.ngChange(e),n.valueChange.emit(e),n.checkClearButton(),n.changeDetector.markForCheck()})}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var n=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus"),this._isFocused=e}}},{key:"handleBlur",value:function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("input",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(be),m(nt),m(Ee),m(Jn),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-textbox"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,UZe,5),he(n,pie,5)),2&t&&(P(a=B())&&(e.suffixTemplate=a.first),P(a=B())&&(e.prefixTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&ge(Nqe,7),2&t&&P(n=B())&&(e.input=n.first)},hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-disabled",e.disabledClass)("k-textbox",e.hostClasses)("k-input",e.hostClasses))},inputs:{focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",value:"value",selectOnFocus:"selectOnFocus",showSuccessIcon:"showSuccessIcon",showErrorIcon:"showErrorIcon",clearButton:"clearButton",successIcon:"successIcon",errorIcon:"errorIcon",clearButtonIcon:"clearButtonIcon",size:"size",rounded:"rounded",fillMode:"fillMode",tabIndex:"tabIndex",placeholder:"placeholder",maxlength:"maxlength"},outputs:{valueChange:"valueChange",inputFocus:"inputFocus",inputBlur:"inputBlur",onFocus:"focus",onBlur:"blur"},exportAs:["kendoTextBox"],features:[de([Y,{provide:Et,useValue:"kendo.textbox"},{provide:jn,useExisting:ke(function(){return i}),multi:!0},{provide:Ui,useExisting:ke(function(){return i})}]),Ie],decls:10,vars:18,consts:function(){return[["kendoTextBoxLocalizedMessages","","clear",$localize(Jte||(Jte=le([":kendo.textbox.clear|The title for the **Clear** button in the TextBox.:Clear"])))],[1,"k-input-prefix"],[4,"ngIf"],[1,"k-input-inner",3,"id","disabled","readonly","value","kendoEventsOutsideAngular"],["input",""],["role","button","class","k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"k-input-suffix"],[3,"ngTemplateOutlet"],["role","button",1,"k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space"],[3,"ngClass"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"span",1),T(2,Lqe,1,1,null,2),x(),z(3,"input",3,4),T(5,Pqe,2,4,"span",5),T(6,Bqe,1,1,"span",6),T(7,Gqe,1,1,"span",6),A(8,"span",7),T(9,Uqe,1,1,null,2),x()),2&t&&(k(2),y("ngIf",e.prefixTemplate),k(1),y("id",e.focusableId)("disabled",e.disabled)("readonly",e.readonly)("value",e.value)("kendoEventsOutsideAngular",va(14,zqe,e.handleInputFocus,e.handleInputBlur,e.handleInput)),ie("tabindex",e.disabled?void 0:e.tabindex)("placeholder",e.placeholder)("title",e.title)("maxlength",e.maxlength),k(2),y("ngIf",e.showClearButton),k(1),y("ngIf",e.hasErrors),k(1),y("ngIf",e.isSuccessful),k(2),y("ngIf",e.suffixTemplate))},directives:[zZe,qe,En,qi,Ft],encapsulation:2}),i}(),yie=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),$Ze=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,yie],cr]}),i}(),qZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,yie],cr]}),i}(),mYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[vie,AP,bt,Fa,Ly]]}),i}(),_Ye=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),kYe=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.hostElement=e,this.kendoClass=!0,this._size="medium",jt(jc)}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"ngAfterViewInit",value:function(){var e=this;["size"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("radio",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(_e))},i.\u0275dir=X({type:i,selectors:[["input","kendoRadioButton",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-radio",e.kendoClass)},inputs:{size:"size"}}),i}(),CYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),bYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),kC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],qZe,$Ze,vie,LZe,PZe,AP,BZe,mYe,_Ye,CYe,bYe]}),i}();function SYe(i,r){return function(t,e){return!i.call(r,t,e)}}function Kie(i){return oi(function(r,t){var e=!1,n=0;r.subscribe(Wn(t,function(a){return(e||(e=!i(a,n++)))&&t.next(a)}))})}var DYe=["kendoTreeViewGroup",""];function EYe(i,r){if(1&i){var t=Me();A(0,"span",12),Q("click",function(){re(t);var l=D(),u=l.index,c=l.$implicit,d=D();return d.expandNode(d.nodeIndex(u),c,!d.isExpanded(c,d.nodeIndex(u)))}),z(1,"span",13),x()}if(2&i){var e=D(),n=e.index,a=e.$implicit,o=D();y("kendoTreeViewLoading",o.nodeIndex(n)),k(1),ue("k-i-collapse",o.isExpanded(a,o.nodeIndex(n)))("k-i-expand",!o.isExpanded(a,o.nodeIndex(n)))}}function TYe(i,r){if(1&i){var t=Me();A(0,"kendo-checkbox",14),Q("checkStateChange",function(){re(t);var l=D().index,u=D();return u.checkNode(u.nodeIndex(l))}),x()}if(2&i){var e=D(),n=e.$implicit,a=e.index,o=D();y("size",o.size)("node",n)("index",o.nodeIndex(a))("isChecked",o.isChecked)("tabindex",-1)}}function AYe(i,r){}var xYe=function(r,t){return{$implicit:r,index:t}};function MYe(i,r){if(1&i&&(Ge(0),T(1,AYe,0,0,"ng-template",15),Ve()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();k(1),y("ngTemplateOutlet",a.nodeTemplateRef)("ngTemplateOutletContext",ln(2,xYe,e,a.nodeIndex(n)))}}function RYe(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D().$implicit,e=D();k(1),Nt(" ",e.nodeText(t)," ")}}function OYe(i,r){if(1&i&&z(0,"ul",16),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("nodes",a.fetchChildren)("loadOnDemand",a.loadOnDemand)("checkboxes",a.checkboxes)("expandIcons",a.expandIcons)("selectable",a.selectable)("touchActions",a.touchActions)("children",a.children)("hasChildren",a.hasChildren)("isChecked",a.isChecked)("isDisabled",a.isDisabled)("disabled",a.disabled||a.isDisabled(e,a.nodeIndex(n)))("isExpanded",a.isExpanded)("isSelected",a.isSelected)("isVisible",a.isVisible)("nodeTemplateRef",a.nodeTemplateRef)("loadMoreButtonTemplateRef",a.loadMoreButtonTemplateRef)("parentIndex",a.nodeIndex(n))("parentDataItem",e)("textField",a.nextFields)("loadMoreService",a.loadMoreService)("@toggle",!0)("trackBy",a.trackBy)}}function IYe(i,r){if(1&i&&(A(0,"li",2)(1,"div",3),T(2,EYe,2,5,"span",4),T(3,TYe,1,5,"kendo-checkbox",5),A(4,"span",6)(5,"span",7),Ge(6,8),T(7,MYe,2,5,"ng-container",9),T(8,RYe,2,1,"ng-container",10),Ve(),x()()(),T(9,OYe,1,22,"ul",11),x()),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-display-none",!n.isVisible(t,n.nodeIndex(e))),y("dataItem",t)("index",n.nodeIndex(e))("parentDataItem",n.parentDataItem)("parentIndex",n.parentIndex)("loadOnDemand",n.loadOnDemand)("checkable",n.checkboxes)("isChecked",n.isChecked(t,n.nodeIndex(e)))("isDisabled",n.disabled||n.isDisabled(t,n.nodeIndex(e)))("isVisible",n.isVisible(t,n.nodeIndex(e)))("expandable",n.expandIcons&&n.hasChildren(t))("isExpanded",n.isExpanded(t,n.nodeIndex(e)))("selectable",n.selectable)("isSelected",n.isSelected(t,n.nodeIndex(e))),ie("aria-setsize",n.totalNodesCount)("data-treeindex",n.nodeIndex(e)),k(1),y("ngClass",n.setItemClasses(n.data.length,e)),k(1),y("ngIf",n.expandIcons&&n.hasChildren(t)),k(1),y("ngIf",n.checkboxes),k(1),Qe("touch-action",n.touchActions?"":"none"),y("dataItem",t)("index",n.nodeIndex(e))("initialSelection",n.isSelected(t,n.nodeIndex(e)))("isSelected",n.isSelected),ie("data-treeindex",n.nodeIndex(e)),k(2),y("ngSwitch",n.hasTemplate),k(1),y("ngSwitchCase",!0),k(2),y("ngIf",n.isExpanded(t,n.nodeIndex(e))&&n.hasChildren(t))}}function NYe(i,r){1&i&&z(0,"span",22)}function FYe(i,r){}var LYe=function(r){return{index:r}};function PYe(i,r){if(1&i&&T(0,FYe,0,0,"ng-template",15),2&i){var t=D(2);y("ngTemplateOutlet",t.loadMoreButtonTemplateRef)("ngTemplateOutletContext",ot(2,LYe,t.loadMoreButtonIndex))}}function BYe(i,r){1&i&&(Ge(0),te(1," Load more "),Ve())}function GYe(i,r){if(1&i&&(A(0,"li",17)(1,"div",18),T(2,NYe,1,0,"span",19),A(3,"span",20)(4,"span",7),T(5,PYe,1,4,null,21),T(6,BYe,2,0,"ng-container",21),x()()()()),2&i){var t=D();ue("k-treeview-load-more-checkboxes-container",t.checkboxes),y("selectable",!1)("checkable",!1)("expandable",!1)("index",t.loadMoreButtonIndex)("parentDataItem",t.parentDataItem)("parentIndex",t.parentIndex),ie("data-treeindex",t.loadMoreButtonIndex),k(2),y("ngIf",t.loadingMoreNodes),k(1),y("index",t.loadMoreButtonIndex),ie("data-treeindex",t.loadMoreButtonIndex),k(2),y("ngIf",t.loadMoreButtonTemplateRef),k(1),y("ngIf",!t.loadMoreButtonTemplateRef)}}var VYe=["assetsContainer"];function UYe(i,r){1&i&&z(0,"span",6)}function zYe(i,r){if(1&i){var t=Me();A(0,"span",3)(1,"kendo-textbox",4),Q("valueChange",function(a){return re(t),D().filterChange.emit(a)}),T(2,UYe,1,0,"ng-template",5),x()()}if(2&i){var e=D();k(1),y("size",e.size)("value",e.filter)("clearButton",!0)("placeholder",e.filterInputPlaceholder)}}var QYe={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1651820172,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},MP=function(){function i(){p(this,i),this.changes=new O}return v(i,[{key:"notify",value:function(){this.changes.emit()}}]),i}(),JYe=function(){return!1},eQe=function(){return"none"},tQe=function(){return!1},nQe=function(){return!0},jie=function(){return!1},Wie=function(){return!0},iQe=function(r,t){return t},CC=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"expand",value:function(e,n){this.changes.next({dataItem:n,index:e,expand:!0})}},{key:"collapse",value:function(e,n){this.changes.next({dataItem:n,index:e,expand:!1})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),em=function(){var i=function(){function r(){p(this,r),this.INDEX_SEPARATOR="_"}return v(r,[{key:"nodeIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(n).concat(n?this.INDEX_SEPARATOR:"").concat(e)}},{key:"indexForLevel",value:function(e,n){return e.split(this.INDEX_SEPARATOR).slice(0,n).join(this.INDEX_SEPARATOR)}},{key:"lastLevelIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=e.split(this.INDEX_SEPARATOR);return n.length?parseInt(n[n.length-1],10):NaN}},{key:"level",value:function(e){return e.split(this.INDEX_SEPARATOR).length}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),RP=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"notifyLoaded",value:function(e){this.changes.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rQe=/^(?:a|input|select|option|textarea|button|object)$/i,tv=function(r,t){var e=r.matches||r.msMatchesSelector||r.webkitMatchesSelector;return!!e&&e.call(r,t)},tm=function(r,t){if(!document.documentElement.contains(r))return null;for(var e=r;null!==e&&1===e.nodeType;){if(tv(e,t))return e;e=e.parentElement||e.parentNode}return null},Re=function(r){return null!=r},Xie=function(r){return Array.isArray(r)},nv=function(r){var t="li.k-treeview-item";return Ze()?r.closest?r.closest(t):tm(r,t):null},Zie=function(r){if(r.tagName){var t=r.tagName.toLowerCase(),e=r.getAttribute("tabIndex"),n="-1"===e,a=null!==e&&!n;return rQe.test(t)&&(a=!r.disabled&&!n),a}return!1},Yie=function(r){return Re(tm(r,".k-treeview-leaf.k-treeview-load-more-button"))},NP=function(r,t){return Boolean(function(r,t){for(;r&&!t(r);)r=r.parentNode;return r}(r,function(e){return e===t}))},Qie=function(r){return r.nativeElement.querySelector('li[tabindex="0"]')},FP=function(r){return r?r.getAttribute("data-treeindex"):""},yu=function(r){return(r||{}).index},bC=function(r,t){return[r,t].filter(function(e){return Re(e)}).join("_")},vQe=function(r,t,e){return Re(r)?{dataItem:r,index:bC(e,t)}:null},a1=function(r,t){return{small:"k-".concat(r,"-sm"),medium:"k-".concat(r,"-md"),large:"k-".concat(r,"-lg")}[t]},LP=function(r){return r||{}},PP=function(r){return LP(r).children||[]},BP=function(r){if(!Array.isArray(r)||0===r.length)return null;for(var n=r.length-1;n>=0;n-=1){var a=r[n];if(a.visible)return a}return null},gQe=function(){function i(){p(this,i),this.ib=new em,this.nodes=[]}return v(i,[{key:"firstVisibleNode",value:function(){return(this.nodes||[]).find(function(t){return t.visible})}},{key:"lastVisibleNode",value:function(){for(var t=BP(this.nodes);Re(t)&&PP(t).length>0;){var e=PP(t),n=BP(e);if(!Re(n))return t;t=n}return t}},{key:"closestNode",value:function(t){var a=LP(this.findNode(t)).prev||this.firstVisibleNode();return LP(a).index===t?this.visibleSibling(a,1):a}},{key:"firstFocusableNode",value:function(){return this.nodes.find(function(t){return!t.disabled&&t.visible})}},{key:"findNode",value:function(t){return this.find(t,this.nodes)}},{key:"findParent",value:function(t){var e=this.ib.level(t)-1;return this.findNode(this.ib.indexForLevel(t,e))}},{key:"findVisibleChild",value:function(t){var e=this.findNode(t);return PP(e).find(function(a){return a.visible})}},{key:"findVisiblePrev",value:function(t){var e=t.index,n=this.findParent(e),a=this.ib.lastLevelIndex(e),s=this.container(n).slice(0,a).every(function(d){return!d.visible});if(0===a||s)return n;var l=this.findNode(e),u=this.visibleSibling(l,-1);if(u)for(var c=this.container(u);c.length>0&&c.some(function(d){return d.visible});)u=BP(c),c=this.container(u);return u}},{key:"findVisibleNext",value:function(t){var e=this.container(t),n=e.some(function(a){return a.visible});return 0!==e.length&&n?e.find(function(a){return a.visible}):this.visibleSibling(t,1)}},{key:"registerItem",value:function(t,e,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=[],l=this.ib.level(e),u=this.findParent(e);if(u||1===l){var c={id:t,children:s,index:e,parent:u,disabled:n,loadMoreButton:a,visible:o};this.insert(c,u)}}},{key:"unregisterItem",value:function(t,e){var n=this.find(e,this.nodes);if(n&&n.id===t){var a=this.container(n.parent);a.splice(a.indexOf(n),1)}}},{key:"childLevel",value:function(t){var e=t.filter(function(n){return Re(n)});return e&&e.length?this.ib.level(e[0].index):1}},{key:"container",value:function(t){return t?t.children:this.nodes}},{key:"find",value:function(t,e){var n=this.childLevel(e),a=this.ib.indexForLevel(t,n),o=n===this.ib.level(t),s=e.find(function(l){return l&&l.index===a});return s?o?s:this.find(t,s.children):null}},{key:"insert",value:function(t,e){this.container(e).splice(this.ib.lastLevelIndex(t.index),0,t)}},{key:"visibleSibling",value:function(t,e){if(!t)return null;for(var n=this.findParent(t.index),a=this.container(n),o=a.indexOf(t)+e,s=a[o];Re(s);){if(s.visible)return s;s=a[o+=e]}return this.visibleSibling(n,e)}}]),i}(),SC=function(){var i=function(){function r(t){var n,e=this;p(this,r),this.localization=t,this.expands=new Ot,this.moves=new Ot,this.checks=new Ot,this.selects=new Ot,this.loadMore=new Ot,this.navigable=!0,this.actions=(De(n={},J.ArrowUp,function(){return e.activate(e.model.findVisiblePrev(e.focusableItem),!0)}),De(n,J.ArrowDown,function(){return e.activate(e.model.findVisibleNext(e.focusableItem),!0)}),De(n,J.ArrowLeft,function(){return!e.isLoadMoreButton&&e.expand({expand:e.localization.rtl,intercept:e.localization.rtl?e.moveToFirstVisibleChild:e.moveToParent})}),De(n,J.ArrowRight,function(){return!e.isLoadMoreButton&&e.expand({expand:!e.localization.rtl,intercept:e.localization.rtl?e.moveToParent:e.moveToFirstVisibleChild})}),De(n,J.Home,function(){return e.activate(e.model.firstVisibleNode(),!0)}),De(n,J.End,function(){return e.activate(e.model.lastVisibleNode(),!0)}),De(n,J.Enter,function(){return e.handleEnter()}),De(n,J.Space,function(){return e.handleSpace()}),n),this.isFocused=!1,this.shouldScroll=!1,this._model=new gQe,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return v(r,[{key:"model",get:function(){return this._model},set:function(e){this._model=e}},{key:"activeIndex",get:function(){return yu(this.activeItem)||null}},{key:"isActiveExpanded",get:function(){return this.activeItem&&this.activeItem.children.length>0}},{key:"isLoadMoreButton",get:function(){return this.activeItem&&this.activeItem.loadMoreButton}},{key:"focusableItem",get:function(){return this.activeItem||this.model.firstFocusableNode()}},{key:"activate",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!this.navigable||!e||this.isActive(yu(e))||(this.isFocused=!0,this.activeItem=e||this.activeItem,this.shouldScroll=n,this.notifyMove())}},{key:"activateParent",value:function(e){this.activate(this.model.findParent(e))}},{key:"activateIndex",value:function(e){!e||this.activate(this.model.findNode(e))}},{key:"activateClosest",value:function(e){!e||yu(this.focusableItem)!==e||(this.activeItem=this.model.closestNode(e),this.notifyMove())}},{key:"activateFocusable",value:function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())}},{key:"deactivate",value:function(){!this.navigable||!this.isFocused||(this.isFocused=!1,this.notifyMove())}},{key:"checkIndex",value:function(e){this.isDisabled(e)||this.checks.next(e)}},{key:"selectIndex",value:function(e){this.isDisabled(e)||this.selects.next(e)}},{key:"notifyLoadMore",value:function(e){!Re(e)||this.loadMore.next(e)}},{key:"isActive",value:function(e){return!!e&&this.isFocused&&this.activeIndex===e}},{key:"isFocusable",value:function(e){return yu(this.focusableItem)===e}},{key:"isDisabled",value:function(e){return this.model.findNode(e).disabled}},{key:"registerItem",value:function(e,n,a){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=this.model.findNode(n);Re(l)&&(this.model.unregisterItem(l.id,l.index),this.isActive(n)&&this.deactivate()),this.model.registerItem(e,n,a,o,s)}},{key:"unregisterItem",value:function(e,n){this.isActive(n)&&this.activateParent(n),this.model.unregisterItem(e,n)}},{key:"move",value:function(e){if(this.navigable){var n=this.actions[e.keyCode];!n||(n(),e.preventDefault())}}},{key:"expand",value:function(e){var n=e.expand,a=e.intercept,o=yu(this.activeItem);!o||a(o)||this.notifyExpand(n)}},{key:"moveToParent",value:function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(yu(this.activeItem))),!0)}},{key:"moveToFirstVisibleChild",value:function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(yu(this.activeItem))),!0)}},{key:"notifyExpand",value:function(e){this.expands.next(this.navigationState(e))}},{key:"notifyMove",value:function(){this.moves.next(this.navigationState())}},{key:"navigationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{expand:e,index:this.activeIndex,isFocused:this.isFocused,shouldScroll:this.shouldScroll}}},{key:"handleEnter",value:function(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))}},{key:"handleSpace",value:function(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),GP=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"childrenLoaded",value:function(e,n){this.changes.next({item:e,children:n})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),VP=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewNodeTemplate",""]]}),i}(),UP=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewLoadMoreButtonTemplate",""]]}),i}(),ku=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),wC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),o1=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"isFirstSelected",value:function(e){return this.firstIndex===e}},{key:"setFirstSelected",value:function(e,n){this.firstIndex===e&&!1===n?this.firstIndex=null:!this.firstIndex&&n&&(this.firstIndex=e)}},{key:"select",value:function(e,n){this.changes.next({dataItem:n,index:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),mQe=/\d+$/,s1=function(){var i=function(){function r(){p(this,r),this.map=new Map}return v(r,[{key:"reset",value:function(){this.map.clear()}},{key:"registerItem",value:function(e,n){var a={children:[],item:e,parent:this.item(yu(n))};this.map.set(e.index,a)}},{key:"registerChildren",value:function(e,n){var a=this.item(e);!a||(a.children=n)}},{key:"unregisterItem",value:function(e,n){var a=this.item(e);a&&a.item.dataItem===n&&(this.map.delete(e),a.parent&&a.parent.children&&(a.parent.children=a.parent.children.filter(function(o){return o.dataItem!==n})))}},{key:"replaceItem",value:function(e,n,a){!n||(this.unregisterItem(e,n.dataItem),this.registerItem(n,a),this.addToParent(n,a))}},{key:"itemLookup",value:function(e){var n=this.item(e);return n?{children:this.mapChildren(n.children),item:n.item,parent:n.parent}:null}},{key:"hasItem",value:function(e){return this.map.has(e)}},{key:"item",value:function(e){return this.map.get(e)||null}},{key:"addToParent",value:function(e,n){if(n){var a=this.item(n.index),o=parseInt(mQe.exec(e.index)[0],10);a.children=a.children||[],a.children.splice(o,0,e)}}},{key:"mapChildren",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.map(function(a){var o=e.item(a.index),s=o.item,l=o.parent;return{children:e.mapChildren(o.children),item:s,parent:l}})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),ere=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.changeDetector=n,this.id="_".concat(qn()),this.tabindex=0,this.size="medium",this.checkStateChange=new O,this.checkState="none"}return v(r,[{key:"classWrapper",get:function(){return!0}},{key:"indeterminate",get:function(){return"indeterminate"===this.checkState}},{key:"checked",get:function(){return"checked"===this.checkState}},{key:"checkBoxClasses",get:function(){return"k-checkbox ".concat(this.size?a1("checkbox",this.size):""," k-rounded-md")}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")}},{key:"ngDoCheck",value:function(){this.checkState=this.isChecked(this.node,this.index)}},{key:"handleChange",value:function(e){var n=e.target.checked?"checked":"none";this.checkState=n,this.changeDetector.detectChanges(),this.checkStateChange.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-checkbox"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-checkbox-wrapper",e.classWrapper)},inputs:{id:"id",isChecked:"isChecked",node:"node",index:"index",labelText:"labelText",tabindex:"tabindex",size:"size"},outputs:{checkStateChange:"checkStateChange"},decls:3,vars:8,consts:[["type","checkbox",3,"id","checked","indeterminate","tabindex","change"],["tabindex","-1",1,"k-checkbox-label",3,"for"]],template:function(t,e){1&t&&(A(0,"input",0),Q("change",function(a){return e.handleChange(a)}),x(),A(1,"label",1),te(2),x()),2&t&&(_r(e.checkBoxClasses),y("id",e.id)("checked",e.checked)("indeterminate",e.indeterminate)("tabindex",e.tabindex),k(1),y("for",e.id),k(1),at(e.labelText))},encapsulation:2}),i}(),tre=function(r,t){return{dataItem:t,index:r}},_Qe=0,nre=function(){var i=function(){function r(t,e,n,a,o,s,l){p(this,r),this.element=t,this.expandService=e,this.navigationService=n,this.selectionService=a,this.lookupService=o,this.renderer=s,this.ib=l,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=_Qe++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}return v(r,[{key:"isChecked",set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"}},{key:"isExpanded",get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e}},{key:"isSelected",get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e}},{key:"isButton",get:function(){return"button"===this.role}},{key:"treeItem",get:function(){return tre(this.index,this.dataItem)}},{key:"parentTreeItem",get:function(){return this.parentDataItem?tre(this.parentIndex,this.parentDataItem):null}},{key:"ngOnInit",value:function(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()}},{key:"ngOnChanges",value:function(e){var n=e.index,a=e.isDisabled;Ki(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),a&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(n),Ki(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()}},{key:"ngOnDestroy",value:function(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce(function(e,n){return n.unsubscribe(),e},[])}},{key:"subscribe",value:function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe(function(n){e.updateTabIndex(),e.focusItem(n.shouldScroll)}),this.navigationService.expands.pipe(Ue(function(n){return n.index===e.index&&!e.isDisabled})).subscribe(function(n){return e.expand(n.expand)})]}},{key:"registerNavigationItem",value:function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()}},{key:"activateItem",value:function(){if(!this.isDisabled){var e=this.navigationService,n=this.selectionService,a=this.index;n.setFirstSelected(a,this.isSelected),!e.isActive(a)&&n.isFirstSelected(a)&&e.activateIndex(a)}}},{key:"expand",value:function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)}},{key:"isFocusable",value:function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)}},{key:"focusItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus({preventScroll:!e})}},{key:"moveLookupItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.dataItem,a=e.index,o=e.parentDataItem,s=e.parentIndex;if((!a||!a.firstChange)&&(n||a||o||s)){var l=(a||{}).previousValue||this.index;this.lookupService.replaceItem(l,this.treeItem,this.parentTreeItem)}}},{key:"moveNavigationItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.currentValue,a=e.firstChange,o=e.previousValue;!a&&Re(n)&&Re(o)&&(this.navigationService.unregisterItem(this.id,o),this.navigationService.registerItem(this.id,n,this.isDisabled,this.isButton))}},{key:"updateNodeAvailability",value:function(){var e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.unregisterItem(this.id,this.index),e.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)}},{key:"setAriaAttributes",value:function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)}},{key:"setDisabledClass",value:function(){this.setClass("k-disabled",this.isDisabled)}},{key:"setClass",value:function(e,n){this.renderer[n?"addClass":"removeClass"](this.element.nativeElement,e)}},{key:"updateTabIndex",value:function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")}},{key:"setAttribute",value:function(e,n){Re(n)?this.renderer.setAttribute(this.element.nativeElement,e,n):this.renderer.removeAttribute(this.element.nativeElement,e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(CC),m(SC),m(o1),m(s1),m(Ee),m(em))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewItem",""]],inputs:{dataItem:"dataItem",index:"index",parentDataItem:"parentDataItem",parentIndex:"parentIndex",role:"role",loadOnDemand:"loadOnDemand",checkable:"checkable",selectable:"selectable",expandable:"expandable",isChecked:"isChecked",isDisabled:"isDisabled",isVisible:"isVisible",isExpanded:"isExpanded",isSelected:"isSelected"},features:[Ie]}),i}(),ire=function(){var i=function(){function r(t,e,n){p(this,r),this.expandService=t,this.loadingService=e,this.cd=n,this._loading=!1}return v(r,[{key:"loading",get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()}},{key:"ngOnInit",value:function(){var e=this,n=this.loadingService.changes.pipe(Ue(function(a){return a===e.index}));this.subscription=this.expandService.changes.pipe(Ue(function(a){return a.index===e.index}),At(function(a){!a.expand&&e.loading&&(e.loading=!1)}),Ue(function(a){return a.expand}),Nn(function(a){return lt(a).pipe(Dd(100),Qr(n))})).subscribe(function(){return e.loading=!0}),this.subscription.add(n.subscribe(function(){return e.loading=!1}))}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(CC),m(RP),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewLoading",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-i-loading",e.loading)},inputs:{index:["kendoTreeViewLoading","index"]}}),i}(),rre=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.element=t,this.navigationService=e,this.selectionService=n,this.renderer=a,this.initialSelection=!1,this.isSelected=jie,this.subscriptions=new Je,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(Ue(function(s){return s===o.index})).subscribe(function(s){return o.selectionService.select(s,o.dataItem)})),this.subscriptions.add(this.selectionService.changes.subscribe(function(){o.updateSelectionClass(o.isSelected(o.dataItem,o.index))}))}return v(r,[{key:"ngOnChanges",value:function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"updateFocusClass",value:function(){this.render(this.navigationService.isActive(this.index),"k-focus")}},{key:"updateSelectionClass",value:function(e){this.render(e,"k-selected")}},{key:"render",value:function(e,n){this.renderer[e?"addClass":"removeClass"](this.element.nativeElement,n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(SC),m(o1),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewItemContent",""]],inputs:{dataItem:"dataItem",index:"index",initialSelection:"initialSelection",isSelected:"isSelected"},features:[Ie]}),i}(),are="k-treeview-top",ore="k-treeview-mid",zP="k-treeview-bot",sre=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.expandService=t,this.loadingService=e,this.indexBuilder=n,this.treeViewLookupService=a,this.navigationService=o,this.nodeChildrenService=s,this.dataChangeNotification=l,this.changeDetectorRef=u,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.size="medium",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new Je,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return lt([])},this.hasChildren=function(){return!1}}return v(r,[{key:"moreNodesAvailable",get:function(){return!(!Re(this.loadMoreService)||0===this.data.length)&&this.pageSize0?this.pageSize:0):this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)}},{key:"loadMoreButtonIndex",get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null}},{key:"totalNodesCount",get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length}},{key:"hasTemplate",get:function(){return Re(this.nodeTemplateRef)}},{key:"expandNode",value:function(e,n,a){a?this.expandService.expand(e,n):this.expandService.collapse(e,n)}},{key:"checkNode",value:function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)}},{key:"nodeIndex",value:function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)}},{key:"nodeText",value:function(e){return kr(Xie(this.textField)?this.textField[0]:this.textField)(e)}},{key:"ngOnDestroy",value:function(){Re(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),Re(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()}},{key:"ngOnInit",value:function(){var e=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(Ue(function(n){return n===e.loadMoreButtonIndex})).subscribe(this.loadMoreNodes.bind(this)))}},{key:"ngOnChanges",value:function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))}},{key:"fetchChildren",value:function(e,n){var a=this;return this.children(e).pipe(cl(function(){return a.loadingService.notifyLoaded(n),po}),At(function(){return a.loadingService.notifyLoaded(n)}))}},{key:"nextFields",get:function(){return Xie(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]}},{key:"loadMoreNodes",value:function(){Re(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()}},{key:"setItemClasses",value:function(e,n){return 1===e?this.parentIndex?zP:"".concat(are," ").concat(zP):0===n?are:n>0&&n0){var a=e.loadMoreButtonIndex;e.pageSize+=n.length,e.data=e.data.concat(n),e.navigationService.isActive(a)&&(e.changeDetectorRef.detectChanges(),e.reselectItemAt(a))}}))}},{key:"setNodeChildren",value:function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)}},{key:"mapToTreeItem",value:function(e){var n=this;return this.parentIndex?e.map(function(a,o){return{dataItem:a,index:n.nodeIndex(o)}}):[]}},{key:"emitChildrenLoaded",value:function(e){if(this.parentIndex){var n=e.filter(function(a){return a.dataItem});this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},n)}}},{key:"subscribeToNodesChange",value:function(){var e=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(function(n){e.data=n,e.initialNodesLoaded=!0})}},{key:"reselectItemAt",value:function(e){!Re(e)||(this.navigationService.deactivate(),this.navigationService.activateIndex(e))}},{key:"registerLoadedNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(n),this.emitChildrenLoaded(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(CC),m(RP),m(em),m(s1),m(SC),m(GP),m(MP),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoTreeViewGroup",""]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("role",e.role),ue("k-treeview-group",e.kGroupClass))},inputs:{checkboxes:"checkboxes",expandIcons:"expandIcons",disabled:"disabled",selectable:"selectable",touchActions:"touchActions",loadOnDemand:"loadOnDemand",trackBy:"trackBy",nodes:"nodes",textField:"textField",parentDataItem:"parentDataItem",parentIndex:"parentIndex",nodeTemplateRef:"nodeTemplateRef",loadMoreButtonTemplateRef:"loadMoreButtonTemplateRef",loadMoreService:"loadMoreService",size:"size",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isVisible:"isVisible",isSelected:"isSelected",children:"children",hasChildren:"hasChildren"},features:[Ie],attrs:DYe,decls:2,vars:3,consts:[["class","k-treeview-item","kendoTreeViewItem","",3,"k-display-none","dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-treeview-item","kendoTreeViewItem","","role","button",3,"k-treeview-load-more-checkboxes-container","selectable","checkable","expandable","index","parentDataItem","parentIndex",4,"ngIf"],["kendoTreeViewItem","",1,"k-treeview-item",3,"dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected"],[3,"ngClass"],["class","k-treeview-toggle",3,"kendoTreeViewLoading","click",4,"ngIf"],[3,"size","node","index","isChecked","tabindex","checkStateChange",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf",3,"dataItem","index","initialSelection","isSelected"],[1,"k-treeview-leaf-text"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy",4,"ngIf"],[1,"k-treeview-toggle",3,"kendoTreeViewLoading","click"],[1,"k-icon"],[3,"size","node","index","isChecked","tabindex","checkStateChange"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy"],["kendoTreeViewItem","","role","button",1,"k-treeview-item",3,"selectable","checkable","expandable","index","parentDataItem","parentIndex"],[1,"k-treeview-bot"],["class","k-icon k-i-loading k-i-expand",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf","k-treeview-load-more-button",3,"index"],[4,"ngIf"],[1,"k-icon","k-i-loading","k-i-expand"]],template:function(t,e){1&t&&(T(0,IYe,10,30,"li",0),T(1,GYe,7,14,"li",1)),2&t&&(y("ngForOf",e.data)("ngForTrackBy",e.trackBy),k(1),y("ngIf",e.initialNodesLoaded&&e.moreNodesAvailable))},directives:[ere,i,gn,nre,Ft,qe,ire,rre,kd,Gp,En,$R],encapsulation:2,data:{animation:[ef("toggle",[iu("void => *",[Lt({height:0}),Ai("0.1s ease-in",Lt({height:"*"}))]),iu("* => void",[Lt({height:"*"}),Ai("0.1s ease-in",Lt({height:0}))])])]}}),i}(),bQe=[CC,em,s1,RP,GP,SC,o1,MP,Y,{provide:Et,useValue:"kendo.treeview"},{provide:ku,useExisting:ke(function(){return is})},{provide:wC,useExisting:ke(function(){return is})}],is=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){var f=this;p(this,r),this.element=t,this.changeDetectorRef=e,this.expandService=n,this.navigationService=a,this.nodeChildrenService=o,this.selectionService=s,this.treeViewLookupService=l,this.ngZone=u,this.renderer=c,this.dataChangeNotification=d,this.localization=h,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return f.data},this.childrenLoaded=new O,this.onBlur=new O,this.onFocus=new O,this.expand=new O,this.collapse=new O,this.nodeDragStart=new O,this.nodeDrag=new O,this.filterStateChange=new O,this.nodeDrop=new O,this.nodeDragEnd=new O,this.addItem=new O,this.removeItem=new O,this.checkedChange=new O,this.selectionChange=new O,this.filterChange=new O,this.nodeClick=new O,this.nodeDblClick=new O,this.trackBy=iQe,this.isDisabled=tQe,this.isVisible=Wie,this.navigable=!0,this.children=function(){return lt([])},this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new xi([]),this._animate=!0,this._size="medium",this.subscriptions=new Je,this.domSubscriptions=[],jt(QYe)}return v(r,[{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"animate",get:function(){return!this._animate},set:function(e){this._animate=e}},{key:"nodeTemplateRef",get:function(){return this._nodeTemplateRef||this.nodeTemplateQuery},set:function(e){this._nodeTemplateRef=e}},{key:"loadMoreButtonTemplateRef",get:function(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery},set:function(e){this._loadMoreButtonTemplateRef=e}},{key:"nodes",get:function(){return this.data.value},set:function(e){this.data.next(e||[]),this.dataChangeNotification.notify()}},{key:"hasChildren",get:function(){return this._hasChildren||JYe},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}},{key:"isChecked",get:function(){return this._isChecked||eQe},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)}},{key:"isExpanded",get:function(){return this._isExpanded||nQe},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}},{key:"isSelected",get:function(){return this._isSelected||jie},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";"none"!==this.size&&this.renderer.removeClass(this.element.nativeElement,a1("treeview",this.size)),this.renderer.addClass(this.element.nativeElement,a1("treeview",n)),this._size=e}},{key:"ngOnChanges",value:function(e){this.navigationService.navigable=Boolean(this.navigable),Ki(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(function(e){return e()})}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe(function(n){return e.childrenLoaded.emit(n)})),this.subscriptions.add(this.expandService.changes.subscribe(function(n){var a=n.index,o=n.dataItem;return n.expand?e.expand.emit({index:a,dataItem:o}):e.collapse.emit({index:a,dataItem:o})})),this.subscriptions.add(this.navigationService.checks.subscribe(function(n){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(n))})),this.subscriptions.add(this.selectionService.changes.subscribe(function(n){ut(e.selectionChange)&&e.ngZone.run(function(){e.selectionChange.emit(n)})})),this.element&&this.ngZone.runOutsideAngular(function(){e.attachDomHandlers()}),this.size&&this.renderer.addClass(this.element.nativeElement,a1("treeview",this.size))}},{key:"blur",value:function(){if(Ze()){var e=Qie(this.element);document.activeElement===e&&e.blur()}}},{key:"focus",value:function(e){var n=e||yu(this.navigationService.focusableItem);this.navigationService.activateIndex(n);var a=Qie(this.element);a&&a.focus()}},{key:"itemLookup",value:function(e){return this.treeViewLookupService.itemLookup(e)}},{key:"rebindChildren",value:function(){this.dataChangeNotification.notify()}},{key:"expandNode",value:function(e,n){this.expandService.expand(n,e)}},{key:"collapseNode",value:function(e,n){this.expandService.collapse(n,e)}},{key:"getNodePageSize",value:function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)}},{key:"setNodePageSize",value:function(e,n){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,n)}},{key:"preloadChildNodes",value:function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)}},{key:"attachDomHandlers",value:function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))}},{key:"focusHandler",value:function(e){var a,n=this;tv(e.target,".k-treeview-item")?a=e.target:Zie(e.target)||(a=nv(e.target)),a&&(this.navigationService.activateIndex(FP(e.target)),!this.isActive&&ut(this.onFocus)&&this.ngZone.run(function(){n.onFocus.emit()}),this.isActive=!0)}},{key:"blurHandler",value:function(e){var n=this;this.isActive&&tv(e.target,".k-treeview-item")&&(!e.relatedTarget||!tv(e.relatedTarget,".k-treeview-item")||!NP(e.relatedTarget,this.element.nativeElement))&&(this.navigationService.deactivate(),this.isActive=!1,ut(this.onBlur)&&this.ngZone.run(function(){n.onBlur.emit()}))}},{key:"clickHandler",value:function(e){var n=this,a=e.target;if(("contextmenu"!==e.type||ut(this.nodeClick))&&("click"!==e.type||ut(this.nodeClick)||ut(this.selectionChange)||Yie(a))&&("dblclick"!==e.type||ut(this.nodeDblClick))&&!Zie(a)&&(function(r){if(!Ze())return null;for(var e=r;e&&!tv(e,".k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)e=e.parentNode;return e?tv(e,".k-treeview-leaf:not(.k-treeview-load-more-button)"):void 0}(a)||Yie(a))&&NP(a,this.element.nativeElement)){var o=FP(nv(a));!o||this.navigationService.isDisabled(o)||this.ngZone.run(function(){var s=n.treeViewLookupService.itemLookup(o);if("click"===e.type){if(n.navigationService.model.findNode(o).loadMoreButton)return void n.navigationService.notifyLoadMore(o);n.navigationService.selectIndex(o)}("dblclick"===e.type?n.nodeDblClick:n.nodeClick).emit({item:s.item,originalEvent:e,type:e.type})})}}},{key:"keydownHandler",value:function(e){var n=this;this.isActive&&this.navigable&&this.ngZone.run(function(){n.navigationService.move(e)})}},{key:"verifyLoadMoreService",value:function(){if(xt()&&!Re(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See ".concat("http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/","."))}},{key:"registerLookupItems",value:function(e){var n=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Re(e)&&0!==e.length){var o=yu(a),s=e.map(function(l,u){return vQe(l,u,o)});Re(a)&&this.treeViewLookupService.registerChildren(o,s),s.forEach(function(l){n.treeViewLookupService.registerItem(l,a),n.hasChildren(l.dataItem)&&n.children(l.dataItem).subscribe(function(u){return n.registerLookupItems(u,l)})})}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(nt),m(CC),m(SC),m(GP),m(o1),m(s1),m(be),m(Ee),m(MP),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-treeview"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,VP,5),he(n,UP,5)),2&t&&(P(a=B())&&(e.nodeTemplateQuery=a.first),P(a=B())&&(e.loadMoreButtonTemplateQuery=a.first))},viewQuery:function(t,e){var n;1&t&&ge(VYe,7,ei),2&t&&P(n=B())&&(e.assetsContainer=n.first)},hostVars:5,hostBindings:function(t,e){2&t&&(ie("role",e.role)("dir",e.direction),JM("@.disabled",e.animate),ue("k-treeview",e.classNames))},inputs:{filterInputPlaceholder:"filterInputPlaceholder",animate:"animate",nodeTemplateRef:["nodeTemplate","nodeTemplateRef"],loadMoreButtonTemplateRef:["loadMoreButtonTemplate","loadMoreButtonTemplateRef"],trackBy:"trackBy",nodes:"nodes",textField:"textField",hasChildren:"hasChildren",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isSelected:"isSelected",isVisible:"isVisible",navigable:"navigable",children:"children",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",size:"size"},outputs:{childrenLoaded:"childrenLoaded",onBlur:"blur",onFocus:"focus",expand:"expand",collapse:"collapse",nodeDragStart:"nodeDragStart",nodeDrag:"nodeDrag",filterStateChange:"filterStateChange",nodeDrop:"nodeDrop",nodeDragEnd:"nodeDragEnd",addItem:"addItem",removeItem:"removeItem",checkedChange:"checkedChange",selectionChange:"selectionChange",filterChange:"filterChange",nodeClick:"nodeClick",nodeDblClick:"nodeDblClick"},exportAs:["kendoTreeView"],features:[de(bQe),Ie],decls:4,vars:20,consts:[["class","k-treeview-filter",4,"ngIf"],["kendoTreeViewGroup","","role","group",1,"k-treeview-lines",3,"size","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","textField","nodes","loadMoreService","trackBy"],["assetsContainer",""],[1,"k-treeview-filter"],[3,"size","value","clearButton","placeholder","valueChange"],["kendoTextBoxPrefixTemplate",""],[1,"k-input-icon","k-icon","k-i-search"]],template:function(t,e){1&t&&(T(0,zYe,3,4,"span",0),z(1,"ul",1),Wt(2,null,2)),2&t&&(y("ngIf",e.filterable),k(1),y("size",e.size)("loadOnDemand",e.loadOnDemand)("checkboxes",e.checkboxes)("expandIcons",e.expandIcons)("selectable",e.selectable)("touchActions",e.touchActions)("children",e.children)("hasChildren",e.hasChildren)("isChecked",e.isChecked)("isDisabled",e.isDisabled)("isExpanded",e.isExpanded)("isSelected",e.isSelected)("isVisible",e.isVisible)("nodeTemplateRef",null==e.nodeTemplateRef?null:e.nodeTemplateRef.templateRef)("loadMoreButtonTemplateRef",null==e.loadMoreButtonTemplateRef?null:e.loadMoreButtonTemplateRef.templateRef)("textField",e.textField)("nodes",e.fetchNodes)("loadMoreService",e.loadMoreService)("trackBy",e.trackBy))},directives:[_ie,sre,qe,pie],encapsulation:2}),i}();!function xQe(i){var r,t=!1}(function(){if(!Ze()||!Re(document.body))return!1;var r=document.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='
    child
    '),document.body.appendChild(r);var t=10!==r.children[0].getBoundingClientRect().top;return document.body.removeChild(r),t}),new RegExp("(auto|scroll)"),new em,new em;var xre,Mre,Rre,Ore,Ire,Nre,Fre,Lre,Pre,WQe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),$Qe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,WQe,kC]]}),i}(),qQe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[$Qe]]}),i}(),XQe=["input"],ZQe=function(r,t){return{focus:r,blur:t}},YQe=["content"],QQe=["list"],JQe=["virtualContainer"];function eJe(i,r){}var Cu=function(r,t){return{templateRef:r,$implicit:t}};function tJe(i,r){if(1&i&&T(0,eJe,0,0,"ng-template",10),2&i){var t=D(2);y("templateContext",ln(1,Cu,t.fixedGroupTemplate.templateRef,t.currentGroup))}}function nJe(i,r){if(1&i&&(A(0,"span"),te(1),x()),2&i){var t=D(2);_r(t.listGroupStickyHeaderTextClass),k(1),at(t.currentGroup)}}var Wre=function(r,t,e){return{"height.px":r,"minHeight.px":t,boxSizing:e}};function iJe(i,r){if(1&i&&(A(0,"div",8),T(1,tJe,1,4,null,5),T(2,nJe,2,3,"ng-template",9),x()),2&i){var t=D();_r(t.listGroupStickyHeaderClass),y("ngStyle",va(5,Wre,null==t.virtual?null:t.virtual.itemHeight,null==t.virtual?null:t.virtual.itemHeight,t.virtual?"border-box":"inherit")),k(1),y("ngIf",t.fixedGroupTemplate),k(1),y("ngIf",!t.fixedGroupTemplate)}}function rJe(i,r){if(1&i){var t=Me();A(0,"input",14),Q("change",function(o){re(t);var s=D().index;return D(2).onCheckedChange(o,s)}),x()}if(2&i){var e=D().index,n=D(2);y("ngClass",n.checkboxClasses)("checked",n.isChecked(e))}}function aJe(i,r){}function oJe(i,r){if(1&i&&T(0,aJe,0,0,"ng-template",10),2&i){var t=D().$implicit,e=D(2);y("templateContext",ln(1,Cu,e.template.templateRef,t))}}function sJe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D().$implicit,e=D(2);k(1),at(e.getText(t))}}var $re=function(r,t){return{"k-disabled":r,"k-table-alt-row":t}};function lJe(i,r){if(1&i&&(A(0,"li",12),T(1,rJe,1,2,"input",13),T(2,oJe,1,4,null,5),T(3,sJe,2,1,"ng-template",9),x()),2&i){var t=r.$implicit,e=r.index,n=D(2);_r(n.listItemClass),y("checkboxes",n.checkboxes)("height",null==n.virtual?null:n.virtual.itemHeight)("index",e+n.startFrom)("multipleSelection",n.multipleSelection)("ngClass",ln(12,$re,n.isDisabled(e),n.isAltRow(e))),ie("id",n.optionPrefix+"-"+n.getValue(t))("tabIndex",-1),k(1),y("ngIf",n.checkboxes.enabled),k(1),y("ngIf",n.template),k(1),y("ngIf",!n.template)}}function uJe(i,r){1&i&&T(0,lJe,4,15,"ng-template",11),2&i&&y("ngForOf",D().data)}function cJe(i,r){}function dJe(i,r){if(1&i&&T(0,cJe,0,0,"ng-template",10),2&i){var t=D(2).$implicit,e=D(2);y("templateContext",ln(1,Cu,e.groupTemplate.templateRef,t.value))}}function hJe(i,r){1&i&&te(0),2&i&&at(D(2).$implicit.value)}function fJe(i,r){if(1&i&&(A(0,"li",18)(1,"span"),T(2,dJe,1,4,null,5),T(3,hJe,1,1,"ng-template",9),x()()),2&i){var t=D(),e=t.index,n=t.$implicit,a=D(2);_r(a.listGroupItemClass),ue("k-table-alt-row",a.isAltRow(e-1)),y("ngStyle",va(12,Wre,null==a.virtual?null:a.virtual.itemHeight,null==a.virtual?null:a.virtual.itemHeight,a.virtual?"border-box":"inherit")),ie("group-index",n.index)("id",a.optionPrefix+"-"+a.getValue(n.value))("tabIndex",-1),k(1),_r(a.listGroupItemTextClass),k(1),y("ngIf",a.groupTemplate),k(1),y("ngIf",!a.groupTemplate)}}function vJe(i,r){}function pJe(i,r){if(1&i&&T(0,vJe,0,0,"ng-template",10),2&i){var t=D(2).$implicit,e=D(2);y("templateContext",ln(1,Cu,e.template.templateRef,t.value))}}function gJe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D(2).$implicit,e=D(2);k(1),at(e.getText(t.value))}}function mJe(i,r){if(1&i&&(A(0,"li",19),T(1,pJe,1,4,null,5),T(2,gJe,2,1,"ng-template",9),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D(2);_r(a.listItemClass),y("height",null==a.virtual?null:a.virtual.itemHeight)("index",e.offsetIndex)("multipleSelection",a.multipleSelection)("ngClass",ln(11,$re,a.isDisabled(e.offsetIndex),a.isAltRow(n-1))),ie("absolute-index",e.index)("id",a.optionPrefix+"-"+a.getValue(e.value))("tabIndex",-1),k(1),y("ngIf",a.template),k(1),y("ngIf",!a.template)}}function _Je(i,r){if(1&i&&(T(0,fJe,4,16,"li",16),T(1,mJe,3,14,"li",17)),2&i){var t=r.$implicit;y("ngIf",t.header&&t.index>0),k(1),y("ngIf",!t.header)}}function yJe(i,r){1&i&&T(0,_Je,2,2,"ng-template",11),2&i&&y("ngForOf",D().data)}function kJe(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().listResize.emit()}),x()}}function CJe(i,r){if(1&i){var t=Me();A(0,"div",21,22)(2,"div")(3,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().listResize.emit()}),x()()()}if(2&i){var e=D();k(2),Qe("height",e.scrollHeight,"px")}}var im=["container"],rm=["popupTemplate"],c1=["optionsList"];function bJe(i,r){if(1&i){var t=Me();A(0,"span",8),Q("click",function(a){return re(t),D().clearValue(a)})("mousedown",function(a){return a.preventDefault()}),z(1,"span",9),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),ie("title",e.messageFor("clearTitle"))}}function SJe(i,r){1&i&&z(0,"span",10)}function wJe(i,r){}var fr=function(r){return{templateRef:r}};function DJe(i,r){if(1&i&&T(0,wJe,0,0,"ng-template",15),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function EJe(i,r){}function TJe(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function AJe(i,r){if(1&i&&(A(0,"div",16),T(1,EJe,0,0,"ng-template",17),T(2,TJe,2,1,"ng-template",6),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,null==t.noDataTemplate?null:t.noDataTemplate.templateRef)),k(1),y("ngIf",!t.noDataTemplate)}}function xJe(i,r){}function MJe(i,r){if(1&i&&T(0,xJe,0,0,"ng-template",15),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function RJe(i,r){if(1&i){var t=Me();T(0,DJe,1,3,null,11),A(1,"kendo-list",12,13),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(3,AJe,3,5,"div",14),T(4,MJe,1,3,null,11)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.valueField)("valueField",e.valueField)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function OJe(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",18),Q("resize",function(){return re(t),D().onResize()}),x()}}var IJe=["select"],DC=function(r){return{mousedown:r}};function NJe(i,r){if(1&i){var t=Me();A(0,"span",10),Q("click",function(a){return re(t),D().clearValue(a)}),z(1,"span",11),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),y("kendoEventsOutsideAngular",ot(4,DC,e.preventEventDefault)),ie("title",e.messageFor("clearTitle"))}}function FJe(i,r){}function LJe(i,r){if(1&i&&T(0,FJe,0,0,"ng-template",16),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function PJe(i,r){}function BJe(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function GJe(i,r){if(1&i&&(A(0,"div",17),T(1,PJe,0,0,"ng-template",18),T(2,BJe,2,1,"ng-template",8),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function VJe(i,r){}function UJe(i,r){if(1&i&&T(0,VJe,0,0,"ng-template",16),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function zJe(i,r){if(1&i){var t=Me();T(0,LJe,1,3,null,12),A(1,"kendo-list",13,14),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(3,GJe,3,5,"div",15),T(4,UJe,1,3,null,12)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function HJe(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",19),Q("resize",function(){return re(t),D().onResize()}),x()}}function KJe(i,r){}function jJe(i,r){if(1&i&&T(0,KJe,0,0,"ng-template",9),2&i){var t=D();y("templateContext",ln(1,Cu,t.valueTemplate.templateRef,t.dataItem))}}function WJe(i,r){1&i&&te(0),2&i&&at(D().getText())}function $Je(i,r){if(1&i){var t=Me();A(0,"div",13),Q("click",function(a){return a.stopImmediatePropagation()}),A(1,"span",14),z(2,"span",15),A(3,"input",16),Q("ngModelChange",function(a){return re(t),D(2).filterText=a})("keydown",function(a){return re(t),D(2).keydown(a)})("input",function(a){return re(t),D(2).handleFilter(a)})("focus",function(){return re(t),D(2).onFilterFocus()})("blur",function(){return re(t),D(2).blurFilterInput()}),x()()()}if(2&i){var e=D(2);k(1),y("ngClass",e.filterInputClasses),k(2),y("filterInput",e.isFocused&&!e.touchEnabled)("dir",e.direction)("ngModel",e.filterText),ie("aria-owns",e.ariaOwns)("aria-activedescendant",e.ariaActivedescendant)("aria-label",e.noDataLabel)}}var qre=function(r){return{"k-disabled":r}};function qJe(i,r){if(1&i&&(A(0,"div",17)(1,"div",18),te(2),x()()),2&i){var t=D(2);y("ngClass",t.optionLabelSizeClass),k(1),y("ngClass",ot(4,qre,t.isDisabledDefaultItem))("index",-1),k(1),Nt(" ",t.getDefaultItemText()," ")}}function XJe(i,r){}function ZJe(i,r){if(1&i&&(A(0,"div",17)(1,"div",18),T(2,XJe,0,0,"ng-template",9),x()()),2&i){var t=D(2);y("ngClass",t.optionLabelSizeClass),k(1),y("ngClass",ot(4,qre,t.isDisabledDefaultItem))("index",-1),k(1),y("templateContext",ln(6,Cu,t.itemTemplate.templateRef,t.defaultItem))}}function YJe(i,r){}function QJe(i,r){if(1&i&&T(0,YJe,0,0,"ng-template",9),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function JJe(i,r){}function eet(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function tet(i,r){if(1&i&&(A(0,"div",19),T(1,JJe,0,0,"ng-template",20),T(2,eet,2,1,"ng-template",4),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function net(i,r){}function iet(i,r){if(1&i&&T(0,net,0,0,"ng-template",9),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function ret(i,r){if(1&i){var t=Me();T(0,$Je,4,7,"ng-template",4),T(1,qJe,3,6,"ng-template",4),T(2,ZJe,3,9,"ng-template",4),T(3,QJe,1,3,null,3),A(4,"kendo-list",10,11),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(6,tet,3,5,"div",12),T(7,iet,1,3,null,3)}if(2&i){var e=D();y("ngIf",e.filterable),k(1),y("ngIf",e.defaultItem&&!e.itemTemplate),k(1),y("ngIf",e.defaultItem&&e.itemTemplate),k(1),y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("template",e.itemTemplate)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function aet(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",21),Q("resize",function(){return re(t),D().onResize()}),x()}}function oet(i,r){}function set(i,r){1&i&&T(0,oet,0,0,"ng-template")}function uet(i,r){}function cet(i,r){if(1&i&&T(0,uet,0,0,"ng-template",12),2&i){var t=D(2).$implicit,e=D();y("templateContext",ln(1,Cu,e.groupTemplate.templateRef,t))}}function det(i,r){if(1&i&&te(0),2&i){var t=D(2).$implicit;Jl("",t.length," ",1===t.length?"item":"items"," selected")}}function het(i,r){if(1&i&&(A(0,"span",9),T(1,cet,1,4,null,10),T(2,det,1,2,"ng-template",11),x()),2&i){var t=D(2);k(1),y("ngIf",t.groupTemplate),k(1),y("ngIf",!t.groupTemplate)}}function fet(i,r){}function vet(i,r){if(1&i&&T(0,fet,0,0,"ng-template",12),2&i){var t=D(2).$implicit,e=D();y("templateContext",ln(1,Cu,e.template.templateRef,t))}}function pet(i,r){if(1&i&&te(0),2&i){var t=D(2),e=t.$implicit,n=t.index,a=D();at(a.tagProp(e,a.textField,n))}}function get(i,r){if(1&i&&(A(0,"span",9),T(1,vet,1,4,null,10),T(2,pet,1,1,"ng-template",11),x()),2&i){var t=D(2);k(1),y("ngIf",t.template),k(1),y("ngIf",!t.template)}}var met=function(r,t,e,n,a,o,s,l,u,c,d,h){return{"k-focus":r,"k-disabled":t,"k-chip-sm":e,"k-chip-md":n,"k-chip-lg":a,"k-rounded-sm":o,"k-rounded-md":s,"k-rounded-lg":l,"k-rounded-full":u,"k-chip-solid k-chip-solid-base":c,"k-chip-flat k-chip-flat-base":d,"k-chip-outline k-chip-outline-base":h}};function _et(i,r){if(1&i){var t=Me();A(0,"div",1)(1,"span",2),T(2,set,1,0,null,3),T(3,het,3,2,"ng-template",null,4,$n),T(5,get,3,2,"ng-template",null,5,$n),x(),A(7,"span",6)(8,"span",7)(9,"span",8),Q("mousedown",function(u){var c=re(t),d=c.$implicit,h=c.index;return D().deleteTag(u,d,h)}),x()()()()}if(2&i){var e=r.$implicit,n=r.index,a=Yt(4),o=Yt(6),s=D();y("ngClass",dR(7,met,[n===s.focused,s.isTagDisabled(e,n),"small"===s.size,"medium"===s.size,"large"===s.size,"small"===s.rounded,"medium"===s.rounded,"large"===s.rounded,"full"===s.rounded,"solid"===s.fillMode,"flat"===s.fillMode,"outline"===s.fillMode])),ie("id",s.itemId(e,n))("aria-hidden",s.tagAriaHidden(n)),k(2),y("ngIf",s.isGroupTag(e))("ngIfThen",a)("ngIfElse",o),k(6),ie("aria-hidden",n!==s.focused)}}var yet=["*"];function ket(i,r){if(1&i){var t=Me();A(0,"span",9),Q("mousedown",function(a){return re(t),D().clearAll(a)}),z(1,"span",10),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),ie("title",e.messageFor("clearTitle"))}}function Cet(i,r){1&i&&z(0,"span",11)}function bet(i,r){}function wet(i,r){if(1&i&&T(0,bet,0,0,"ng-template",17),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function Det(i,r){}function Eet(i,r){if(1&i&&T(0,Det,0,0,"ng-template",17),2&i){var t=D(3);y("templateContext",ln(1,Cu,t.customItemTemplate.templateRef,t.text))}}function Tet(i,r){1&i&&te(0),2&i&&at(D(3).text)}function Aet(i,r){if(1&i&&(A(0,"div",18)(1,"div",19),T(2,Eet,1,4,null,20),T(3,Tet,1,1,"ng-template",null,21,$n),z(5,"span",22),x()()),2&i){var t=Yt(4),e=D(2);y("ngClass",e.customItemSizeClass),k(1),y("multipleSelection",!0)("index",-1),k(1),y("ngIf",e.customItemTemplate)("ngIfElse",t)}}function xet(i,r){}function Met(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function Ret(i,r){if(1&i&&(A(0,"div",23),T(1,xet,0,0,"ng-template",24),T(2,Met,2,1,"ng-template",7),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function Oet(i,r){}function Iet(i,r){if(1&i&&T(0,Oet,0,0,"ng-template",17),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function Net(i,r){if(1&i){var t=Me();T(0,wet,1,3,null,12),T(1,Aet,6,5,"div",13),A(2,"kendo-list",14,15),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(4,Ret,3,5,"div",16),T(5,Iet,1,3,null,12)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("ngIf",e.allowCustom&&e.text),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("height",e.listHeight)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("show",e.isOpen)("multipleSelection",!0)("virtual",e.virtual)("checkboxes",e.checkboxes),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function Fet(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",25),Q("resize",function(){return re(t),D().onResize()}),x()}}var mae,_ae,d1={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652188959,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},fe=function(r){return null!=r},ro=function(){var t,e,r="";for(t=0;t<32;t++)e=16*Math.random()|0,(8===t||12===t||16===t||20===t)&&(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16);return r},Sa=function(r){return Array.isArray(r)},av=function(r){return fe(r)&&"object"==typeof r},Yre=function(r){return"string"==typeof r&&0===r.length},h1=function(r){return Sa(r)&&r.every(function(t){return av(t)})},YP=function(r,t,e){var n=t.map(function(a){return fe(a)&&fe(rt(a,e))?rt(a,e):a});return r.reduce(function(a,o){var s=fe(o)&&fe(rt(o,e))?rt(o,e):o,l=n.indexOf(s);return-1!==l&&a.push(l),a},[])},rt=function(r,t){return fe(r)?fe(t)&&av(r)?kr(t)(r):r:null},Qre=function(r,t,e){if(!fe(r))return!1;var n=String(r);return e&&(n=n.toLowerCase()),0===n.indexOf(t)},am=function(r){return r.className.includes("ng-untouched")},ov=function(r){},Ktt=function(r,t){var e=r.matches||r.msMatchesSelector||r.webkitMatchesSelector;return!!e&&e.call(r,t)},EC=function(r,t,e){return r.nativeElement.contains(t)||e&&e.popupElement.contains(t)},Un=function(r,t){return{small:"k-".concat(r,"-sm"),medium:"k-".concat(r,"-md"),large:"k-".concat(r,"-lg")}[t]},vr=function(r){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[r]},aa=function(r,t){return{solid:"k-".concat(r,"-solid"),flat:"k-".concat(r,"-flat"),outline:"k-".concat(r,"-outline")}[t]},ah=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.valueChange=new O,this.onBlur=new O,this.onFocus=new O,this.onClick=new O,this.onNavigate=new O,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=t.rtl?"rtl":"ltr",this.renderer=e}return v(r,[{key:"userInput",get:function(){return this._userInput},set:function(e){this._userInput=e||""}},{key:"value",get:function(){return this.input.nativeElement.value}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()}},{key:"ariaExpanded",get:function(){return"combobox"===this.role?this.popupOpen:null}},{key:"ngOnInit",value:function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngOnChanges",value:function(e){if(this.input&&(e.userInput||e.suggestedText)){var a=this.input.nativeElement.selectionStart,o=(e.userInput&&e.userInput.previousValue?this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"":this._previousValue).length===a;this.writeInputValue(this.suggestedText?function(r,t){return r.concat(t.substr(t.toLowerCase().indexOf(r.toLowerCase())+r.length))}(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):o?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(a,a),this._previousValue=this.userInput}}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"writeInputValue",value:function(e){Ze()&&this.renderer.setProperty(this.input.nativeElement,"value",e)}},{key:"setInputSelection",value:function(e,n){if(Ze()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,n)}catch(a){}}},{key:"handleInput",value:function(e){var n=e.target.value;n!==this.userInput&&(this._previousValue=n,this.valueChange.emit(n))}},{key:"handleFocus",value:function(e){this.onFocus.emit(e)}},{key:"handleBlur",value:function(e){this.onBlur.emit(e)}},{key:"handleKeydown",value:function(e){[J.ArrowUp,J.ArrowDown,J.ArrowLeft,J.ArrowRight,J.Enter,J.Escape,J.Delete,J.Backspace,J.Home,J.End].indexOf(e.keyCode)>-1&&this.onNavigate.emit(e)}},{key:"focus",value:function(){Ze()&&this.input.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.input.nativeElement.blur()}},{key:"setInputSize",value:function(){var e=function(u){return u?u.length:0},n=this.input.nativeElement,a=e(this.placeholder),o=e(this.value),s=Math.max(a,o,1);this.renderer.setAttribute(n,"size",s.toString())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-searchbar"]],viewQuery:function(t,e){var n;1&t&&ge(XQe,7),2&t&&P(n=B())&&(e.input=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-searchbar",e.searchBarClass)},inputs:{id:"id",listId:"listId",tagListId:"tagListId",activeDescendant:"activeDescendant",noDataLabel:"noDataLabel",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",popupOpen:"popupOpen",role:"role",userInput:"userInput",suggestedText:"suggestedText",placeholder:"placeholder"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},features:[Ie],decls:2,vars:21,consts:[["autocomplete","off","aria-haspopup","listbox",3,"id","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope","input","keydown"],["input",""]],template:function(t,e){1&t&&(A(0,"input",0,1),Q("input",function(a){return e.handleInput(a)})("keydown",function(a){return e.handleKeydown(a)}),x()),2&t&&(_r("k-input-inner"),y("id",e.id)("disabled",e.disabled)("readonly",e.readonly)("placeholder",e.placeholder)("kendoEventsOutsideAngular",ln(18,ZQe,e.handleFocus,e.handleBlur))("scope",e),ie("tabIndex",e.tabIndex)("dir",e.direction)("role",e.role)("aria-disabled",e.disabled)("aria-readonly",e.readonly)("aria-expanded",e.ariaExpanded)("aria-owns",e.listId)("aria-describedby",e.tagListId)("aria-activedescendant",e.activeDescendant)("aria-label",e.noDataLabel))},directives:[qi],encapsulation:2}),i}(),TC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListItemTemplate",""],["","kendoComboBoxItemTemplate",""],["","kendoAutoCompleteItemTemplate",""],["","kendoMultiSelectItemTemplate",""]]}),i}(),sv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListHeaderTemplate",""],["","kendoComboBoxHeaderTemplate",""],["","kendoDropDownTreeHeaderTemplate",""],["","kendoMultiColumnComboBoxHeaderTemplate",""],["","kendoAutoCompleteHeaderTemplate",""],["","kendoMultiSelectHeaderTemplate",""],["","kendoMultiSelectTreeHeaderTemplate",""]]}),i}(),lv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListFooterTemplate",""],["","kendoComboBoxFooterTemplate",""],["","kendoDropDownTreeFooterTemplate",""],["","kendoMultiColumnComboBoxFooterTemplate",""],["","kendoAutoCompleteFooterTemplate",""],["","kendoMultiSelectFooterTemplate",""],["","kendoMultiSelectTreeFooterTemplate",""]]}),i}(),AC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListGroupTemplate",""],["","kendoComboBoxGroupTemplate",""],["","kendoMultiColumnComboBoxGroupTemplate",""],["","kendoAutoCompleteGroupTemplate",""],["","kendoMultiSelectGroupTemplate",""]]}),i}(),xC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListFixedGroupTemplate",""],["","kendoComboBoxFixedGroupTemplate",""],["","kendoMultiColumnComboBoxFixedGroupTemplate",""],["","kendoAutoCompleteFixedGroupTemplate",""],["","kendoMultiSelectFixedGroupTemplate",""]]}),i}(),ao=function(){var i=function(){function r(){p(this,r),this.onSelect=new O,this.onChange=new O,this.onFocus=new O,this.total=0,this.selectedIndices=[]}return v(r,[{key:"getTotal",value:function(){return this.total}},{key:"isSelected",value:function(e){return fe(this.selectedIndices.find(function(n){return n===e}))}},{key:"isFocused",value:function(e){return e===this.focused}},{key:"focus",value:function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))}},{key:"select",value:function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:fe(e)}))}},{key:"add",value:function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))}},{key:"unselect",value:function(e){if(this.isSelected(e)){var n=this.selectedIndices.indexOf(e);this.selectedIndices.splice(n,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e})}}},{key:"change",value:function(e){var n=fe(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:n})}},{key:"resetSelection",value:function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]}},{key:"selected",get:function(){return this.selectedIndices.slice()}},{key:"focused",get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Jt=function(){return function(i){i[i.Undefined=0]="Undefined",i[i.Open=1]="Open",i[i.Close=2]="Close",i[i.Enter=3]="Enter",i[i.Tab=4]="Tab",i[i.Esc=5]="Esc",i[i.Delete=6]="Delete",i[i.Backspace=7]="Backspace",i[i.Home=8]="Home",i[i.End=9]="End",i[i.Up=10]="Up",i[i.Down=11]="Down",i[i.Left=12]="Left",i[i.Right=13]="Right"}(Jt||(Jt={})),Jt}(),Do=function(){var i=function(){function r(){p(this,r),this.grouped=!1,this.groupIndices=[]}return v(r,[{key:"data",get:function(){return this.grouped?this._flatData:this._data},set:function(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))}},{key:"itemsCount",get:function(){return fe(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(function(n){return!n.header}):this.data).length:0}},{key:"isGrouped",value:function(e){return fe(e)&&0!==e.length&&fe(e[0])&&function(r,t){return!!fe(r)&&t.every(function(e){return r.hasOwnProperty(e)})}(e[0],["aggregates","field","items","value"])}},{key:"getGroupIndices",value:function(e){for(var n=[],a=0;a<=e.length-1;a++)n[a]=(n[a-1]||0)+e[a].items.length;return n}},{key:"filter",value:function(e){var n=[];if(this.isGrouped(this.data))for(var a=0;a<=this.groupIndices.length-1;a++){var o=this.data[a].items.filter(e);o&&(n=n.concat(o))}else n=this.data.filter(e);return n}},{key:"indexOf",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=function(s){return s===e};return this.grouped&&(a=function(s){return s.value===e}),this.findIndex(a,n)}},{key:"findIndex",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=-1;if(this.grouped){var o=this._flatData.filter(function(u){return!u.header&&u.offsetIndex>=n});a=o.findIndex(e),a=o[a]?o[a].offsetIndex:-1}else{var s=this.data.slice(n),l=s.findIndex(e);a=-1!==l?l+n:-1}return a}},{key:"closestGroup",value:function(e){for(var n=e;n>=0;n--)if(this._flatData[n].header)return this._flatData[n]}},{key:"find",value:function(e){var n=this.findIndex(e);return this.itemAt(n)}},{key:"flatIndex",value:function(e){if(0===this.itemsCount)return-1;if(!this.grouped)return e;var n=this._flatData.find(function(a){return!a.header&&a.offsetIndex===e});return n?n.index:-1}},{key:"itemAt",value:function(e){var n;if(0===this.itemsCount)return n;if(this.grouped){var a=this._flatData.find(function(o){return!o.header&&o.offsetIndex===e});a&&(n=a.value)}else n=this.data[e];return n}},{key:"groupAt",value:function(e){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(n){return n.header&&n.index===e})}},{key:"groupField",value:function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null}},{key:"itemGroup",value:function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var n=this.groupField();if(n)return rt(e,n)}}},{key:"flatten",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=[];fe(n)&&s.push({header:!0,index:o+a,offsetIndex:o,value:n});for(var l=0;l=a?n:this.firstFocusableIndex(l,a,o,-1*s)}},{key:"clampIndex",value:function(e,n,a){return!fe(e)||ea?a:e}},{key:"firstFocusableIndex",value:function(e,n,a,o){for(;n<=e&&e<=a;){if(!this.isDisabled(e))return e;e+=o}}},{key:"isDisabled",value:function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Eo),oe(ao))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),uv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListNoDataTemplate",""],["","kendoDropDownTreeNoDataTemplate",""],["","kendoComboBoxNoDataTemplate",""],["","kendoMultiColumnComboBoxNoDataTemplate",""],["","kendoAutoCompleteNoDataTemplate",""],["","kendoMultiSelectNoDataTemplate",""],["","kendoMultiSelectTreeNoDataTemplate",""]]}),i}(),cv=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),sm=v(function i(){p(this,i)}),iae={pageSize:50,itemHeight:28},v1=function(r,t){var e=Object.assign({},iae,t);return!0===r?e:r?Object.assign({pageSize:iae.pageSize},r):null},qc=new Dt("dropdowns-touch-enabled"),JP=function(){var i=v(function r(t){p(this,r),this.element=t});return i.\u0275fac=function(t){return new(t||i)(m(_e))},i.\u0275dir=X({type:i,selectors:[["li","role","option"],["li","role","group"]]}),i}(),bu=function(){var i=function(){function r(t){p(this,r),this.viewContainerRef=t}return v(r,[{key:"templateContext",set:function(e){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ei))},i.\u0275dir=X({type:i,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),i}(),p1=function(){var i=function(){function r(t){p(this,r),this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=t}return v(r,[{key:"focusedClassName",get:function(){return this.selectionService.isFocused(this.index)}},{key:"selectedClassName",get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)}},{key:"onClick",value:function(e){e.stopPropagation(),(!this.checkboxes.enabled||this.checkboxes.checkOnClick)&&(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ao))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownsSelectable",""]],hostVars:9,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(ie("index",e.index),Qe("height",e.height,"px")("min-height",e.height,"px"),ue("k-focus",e.focusedClassName)("k-selected",e.selectedClassName))},inputs:{index:"index",checkboxes:"checkboxes",height:"height",multipleSelection:"multipleSelection"}}),i}(),lm=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.dataService=t,this.wrapper=e,this.selectionService=n,this.disabledItemsService=a,this.cdr=o,this.zone=s,this.renderer=l,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",this.onClick=new O,this.pageChange=new O,this.listResize=new O,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this._size="medium",this.selectSubscription=xn(this.selectionService.onSelect.pipe(We(function(c){return c.indices[0]})),this.selectionService.onFocus).pipe(Nn(function(c){return u.zone.onStable.pipe(It(1),We(function(){return c}))})).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}return v(r,[{key:"data",get:function(){return this._data},set:function(e){this._data=e[0]&&e[0].header?e.slice(0):e}},{key:"size",get:function(){return this._size},set:function(e){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,Un("list",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,Un("list",e)),this._size=e)}},{key:"pageSize",get:function(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)}},{key:"scrollHeight",get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight}},{key:"overflowY",get:function(){if(fe(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"}},{key:"checkboxClasses",get:function(){return"".concat(this.size?Un("checkbox",this.size):""," ").concat(this.rounded?vr(this.rounded):"")}},{key:"ngOnChanges",value:function(e){yn("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),yn("virtual",e,!1)&&this.setOverflow(),yn("type",e,!1)&&this.prepareClasses()}},{key:"ngAfterViewInit",value:function(){var e=this;this.setComponentClasses(),this.zone.runOutsideAngular(function(){e.scrollSubscription=li(e.content.nativeElement,"scroll").pipe(ff(100),At(e.prefetchData.bind(e)),At(e.findCurrentGroup.bind(e))).subscribe(function(){e.lastScrollTop=e.content.nativeElement.scrollTop})}),this.setOverflow()}},{key:"ngAfterViewChecked",value:function(){this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,this.scrollToItem(this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused)),this.dataService.grouped&&this.findCurrentGroup()}},{key:"ngOnDestroy",value:function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}},{key:"onCheckedChange",value:function(e,n){var a=e.target.checked;a&&!this.selectionService.isSelected(n)&&this.selectionService.add(n),!a&&this.selectionService.isSelected(n)&&this.selectionService.unselect(n)}},{key:"prepareClasses",value:function(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")}},{key:"isChecked",value:function(e){return this.selectionService.isSelected(this.virtual?e+this.virtual.skip:e)}},{key:"firstVisibleItem",value:function(){var e=this,n=this.content.nativeElement,a=n.getBoundingClientRect(),o=Array.prototype.slice.call(n.querySelectorAll(".k-disabled"));o.forEach(function(l){return e.renderer.setStyle(l,"pointer-events","auto")});var s=document.elementFromPoint(a.left+1,a.top+1);return o.forEach(function(l){return e.renderer.setStyle(l,"pointer-events","none")}),function(r,t){for(var e=r;null!==e&&1===e.nodeType;){if(Ktt(e,"li"))return e;e=e.parentElement||e.parentNode}return null}(s)}},{key:"findCurrentGroup",value:function(){if(this.dataService.grouped){var n,e=this.firstVisibleItem();e?"group"===e.getAttribute("role")?(n=parseInt(e.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(n).value):(n=parseInt(e.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(n))):this.currentGroup=void 0,this.cdr.detectChanges()}else this.currentGroup=void 0}},{key:"prefetchData",value:function(){if(this.virtual){var e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),n=this.content.nativeElement.scrollTop,a=Math.trunc(n/this.virtual.itemHeight),o=n>this.lastScrollTop,u=this.lastLoaded-this.pageSize+e>=a-(this.pageSize-(this.lastLoaded-this.startFrom));o&&a+e>=this.lastLoaded&&this.lastLoadedn.virtual.total&&(e--,a=n.virtual.total),e<0&&(e=0),n.startFrom=e,n.lastLoaded=a,n.pageChange.emit({skip:e,take:n.pageSize})})}},{key:"index",value:function(e,n){return e>0?this.dataService.groupIndices[e-1]+n:n}},{key:"getText",value:function(e){return rt(e,this.textField)}},{key:"getValue",value:function(e){return rt(e,this.valueField)}},{key:"isDisabled",value:function(e){return fe(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)}},{key:"isAltRow",value:function(e){return"dropdowngrid"===this.type&&e%2!=0}},{key:"scrollToItem",value:function(e){var n=e;if(this.dataService.grouped&&(n=this.dataService.flatIndex(e),n+=this.firstGroupHeaderInTargetedPage(n)?-1:0),this.virtual&&n>-1)this.scrollToIndex(n);else{var o=this.items.toArray();fe(o[n])&&-1!==n&&this.scroll(o[n].element)}}},{key:"scrollToIndex",value:function(e){var n=this.content.nativeElement,a=n.scrollTop,o=e*this.virtual.itemHeight,l=n.clientHeight,u=o+this.virtual.itemHeight;a>o?a=o:u>a+l&&(a=u-l),n.scrollTop=a}},{key:"scroll",value:function(e){if(e){var n=e.nativeElement,a=this.content.nativeElement,o=n.offsetTop,l=a.scrollTop,u=a.clientHeight,c=o+n.offsetHeight;l>o?l=o:c>l+u&&(l=c-u),a.scrollTop=l}}},{key:"hasScrollbar",value:function(){return!!(fe(this.items)&&this.items.length&&fe(this.list)&&fe(this.content))&&(fe(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)}},{key:"setOverflow",value:function(){if(this.virtual){var e=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",e)}}},{key:"hasVirtualScrollbar",value:function(){return this.virtualContainer&&(this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight)>this.content.nativeElement.offsetHeight}},{key:"positionItems",value:function(){var e=this;this.items.forEach(function(n,a){e.renderer.setStyle(n.element.nativeElement,"transform","translateY(".concat((a+e.startFrom)*e.virtual.itemHeight,"px"))})}},{key:"firstGroupHeaderInTargetedPage",value:function(e){return!fe(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e}},{key:"setComponentClasses",value:function(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,Un("list",this.size))),fe(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Do),m(_e),m(ao),m(Eo),m(nt),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-list"]],viewQuery:function(t,e){var n;1&t&&(ge(YQe,7),ge(QQe,7),ge(JQe,5),ge(JP,5)),2&t&&(P(n=B())&&(e.content=n.first),P(n=B())&&(e.list=n.first),P(n=B())&&(e.virtualContainer=n.first),P(n=B())&&(e.items=n))},inputs:{selected:"selected",focused:"focused",textField:"textField",valueField:"valueField",height:"height",template:"template",groupTemplate:"groupTemplate",fixedGroupTemplate:"fixedGroupTemplate",show:"show",id:"id",optionPrefix:"optionPrefix",multipleSelection:"multipleSelection",virtual:"virtual",type:"type",checkboxes:"checkboxes",data:"data",size:"size",rounded:"rounded"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize"},features:[Ie],decls:9,vars:15,consts:[[3,"class","ngStyle",4,"ngIf"],["unselectable","on"],["content",""],["role","listbox"],["list",""],[4,"ngIf"],[3,"resize",4,"ngIf"],["class","k-height-container","role","presentation",4,"ngIf"],[3,"ngStyle"],[3,"ngIf"],[3,"templateContext"],["ngFor","",3,"ngForOf"],["role","option","kendoDropDownsSelectable","",3,"checkboxes","height","index","multipleSelection","ngClass"],["type","checkbox","class","k-checkbox",3,"ngClass","checked","change",4,"ngIf"],["type","checkbox",1,"k-checkbox",3,"ngClass","checked","change"],[1,"k-list-item-text"],["role","group",3,"class","k-table-alt-row","ngStyle",4,"ngIf"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","class","ngClass",4,"ngIf"],["role","group",3,"ngStyle"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","ngClass"],[3,"resize"],["role","presentation",1,"k-height-container"],["virtualContainer",""]],template:function(t,e){1&t&&(T(0,iJe,3,9,"div",0),A(1,"div",1,2)(3,"ul",3,4),T(5,uJe,1,1,null,5),T(6,yJe,1,1,null,5),T(7,kJe,1,0,"kendo-resize-sensor",6),x(),T(8,CJe,4,2,"div",7),x()),2&t&&(y("ngIf",e.dataService.grouped),k(1),_r(e.listContentClass),Qe("overscroll-behavior","none")("max-height",e.height,"px"),k(2),_r(e.listClass),ie("id",e.id)("aria-hidden",!e.show),k(2),y("ngIf",!e.dataService.grouped&&e.show),k(1),y("ngIf",e.dataService.grouped),k(1),y("ngIf",!e.virtual),k(1),y("ngIf",e.virtual))},directives:[Gr,qe,Vi,bu,gn,JP,p1,Ft],encapsulation:2}),i}(),g1=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,inputs:{noDataText:"noDataText",clearTitle:"clearTitle",checkAllText:"checkAllText",selectButtonText:"selectButtonText"},features:[j]}),i}(),oh=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(g1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListLocalizedMessages",""],["","kendoDropDownTreeLocalizedMessages",""],["","kendoComboBoxLocalizedMessages",""],["","kendoMultiColumnComboBoxLocalizedMessages",""],["","kendoAutoCompleteLocalizedMessages",""],["","kendoMultiSelectLocalizedMessages",""],["","kendoMultiSelectTreeLocalizedMessages",""]],features:[de([{provide:g1,useExisting:ke(function(){return i})}]),j]}),i}(),Xtt={multi:!0,provide:jn,useExisting:ke(function(){return eB})},eB=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.localization=t,this.dataService=e,this.popupService=n,this.selectionService=a,this.navigationService=o,this.disabledItemsService=s,this._zone=l,this.cdr=u,this.renderer=c,this.hostElement=d,this.touchEnabled=h,this.highlightFirst=!0,this.focusableId="k-".concat(ro()),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new O,this.filterChange=new O,this.open=new O,this.opened=new O,this.close=new O,this.closed=new O,this.onFocus=new O,this.onBlur=new O,this.widgetClasses=!0,this.listBoxId=ro(),this.optionPrefix=ro(),this.onChangeCallback=ov,this.onTouchedCallback=ov,this.popupMouseDownHandler=function(f){return f.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new Ot,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",jt(d1),this.direction=t.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}return v(r,[{key:"width",get:function(){var e=0;Ze()&&(e=this.wrapper.offsetWidth);var n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"height",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"listContainerClasses",get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e}},{key:"suggestion",get:function(){if(this.text&&this.suggestedText){var e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&e?this.suggestedText:void 0}this.suggestedText=void 0}},{key:"appendTo",get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e}},{key:"clearButtonVisiblity",get:function(){if(this.touchEnabled)return"visible"}},{key:"toggle",value:function(e){var n=this;Promise.resolve(null).then(function(){var a=fe(e)?e:!n._open;n._toggle(a)})}},{key:"isOpen",get:function(){return this._open}},{key:"togglePopup",value:function(e){this.disabled||this.readonly||this.isOpen===e||this.triggerPopupEvents(e)||this._toggle(e)}},{key:"activeDescendant",get:function(){if(!this.isOpen||!fe(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+rt(e,this.valueField)}},{key:"noDataLabel",get:function(){if(0===this.data.length)return this.messageFor("noDataText")}},{key:"data",get:function(){var e=this.virtual;if(e){var n=e.skip||0,a=n+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(n,a)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=rt(this.dataService.itemAt(0),this.valueField))}},{key:"value",get:function(){return this._value||""},set:function(e){this.verifySettings(e),this._value=e||"",this.text=this.value,this.cdr.markForCheck()}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=v1(e)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper,Un("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper,Un("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper,vr(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper,aa("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper,aa("input",n)),this._fillMode=n}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-focus"),this._isFocused=e}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()}),this.setComponentClasses()}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize})}},{key:"reset",value:function(){this.value=""}},{key:"messageFor",value:function(e){return this.localization.get(e)}},{key:"clearValue",value:function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this.onChangeCallback=e}},{key:"registerOnTouched",value:function(e){this.onTouchedCallback=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"focusItemAt",value:function(e){var n=e>=0&&e1&&void 0!==arguments[1]?arguments[1]:0;a=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),n):-1,this.disabledItemsService.isIndexDisabled(a)?a+1=0)a=rt(this.dataService.itemAt(n),this.valueField);else{var o=this.suggest&&this.suggestedText&&this.data.length&&rt(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();a=this.isOpen&&o?this.suggestedText:this.searchbar.value}this.change(a)}},{key:"handleEscape",value:function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null}},{key:"searchBarChange",value:function(e){var n=fe(this.text)?this.text.length:0;this.backspacePressed=e.length0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)}},{key:"handleFocus",value:function(){var e=this;this.isFocused=!0,ut(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()})}},{key:"handleBlur",value:function(){var a,o,e=this,n=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0,-1!==n?(a=this.dataService.itemAt(n),o=rt(a,this.valueField)||""):o=this.searchbar.value;var s=o===this.searchbar.value,l=o.toLowerCase()===this.searchbar.value.toLowerCase();!s&&l&&this.selectionService.resetSelection([]),this.isFocused=!1;var u=this.value!==this.text;ut(this.onBlur)||ut(this.close)||am(this.wrapper)||u?this._zone.run(function(){u&&e.change(e.searchbar.value),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)}},{key:"pageChange",value:function(e){this.virtual.skip=e.skip}},{key:"change",value:function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)}},{key:"subscribeEvents",value:function(){var e=this;!Ze()||(this.valueChangeSubscription=this.valueChangeSubject.subscribe(function(n){var a=e.value!==n;e.value=n,e.text=n,a&&e.emitChange(n)}),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=xn(this.navigationService.up,this.navigationService.down).subscribe(function(n){return e.navigate(n.index)}),this.closeSubscription=this.navigationService.close.subscribe(function(){return e.togglePopup(!1)}),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this._zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){e.isFocused&&!EC(e.hostElement,n.target,e.popupRef)&&e._zone.run(function(){return e.blur()})})})}},{key:"unsubscribeEvents",value:function(){!Ze()||(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}},{key:"handleItemChange",value:function(e){var n=e.indices.length?e.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),fe(n)){var a=rt(this.dataService.itemAt(n),this.valueField);this.change(a)}}},{key:"handleItemFocus",value:function(e){var n=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&n>=0)&&(this.suggestedText=rt(this.dataService.itemAt(n),this.valueField))}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:n,vertical:"top"},anchorAlign:{horizontal:n,vertical:"bottom"}});var s=this.popupRef.popupElement,l=this.width,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"firstFocusableIndex",value:function(e){var n=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=a}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=rt(this.dataService.itemAt(0),this.textField))}},{key:"value",get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()}},{key:"valuePrimitive",get:function(){return fe(this._valuePrimitive)?this._valuePrimitive:!fe(this.valueField)},set:function(e){this._valuePrimitive=e}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=v1(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Un("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Un("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,vr(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,aa("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,aa("input",n)),this._fillMode=n}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"clearButtonVisiblity",get:function(){if(this.touchEnabled)return"visible"}},{key:"popupWidth",get:function(){var e=0;Ze()&&(e=this.wrapper.nativeElement.offsetWidth);var n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"popupHeight",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setComponentClasses()}},{key:"createValueStream",value:function(){var e=this,n=this.valueSubject.pipe(Ue(function(c){var d=rt(e.value,e.valueField),h=rt(c,e.valueField),f=rt(c,e.textField);return!(!fe(e.value)&&!fe(h)||(fe(f)&&(f=f.toString()),d===h&&e.text===f&&(e.clearFilter(),1)))}),We(function(c){var d=rt(c,e.valueField);return{dataItem:c,text:rt(c,e.textField),value:e.valuePrimitive?d:c}})),a=function wYe(i,r){return function(t){return[Ue(i,r)(t),Ue(SYe(i,r))(t)]}}(function(){return e.allowCustom})(this.customValueSubject.pipe(VL(300))),o=a[0].pipe(At(function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()}),Ue(function(){var c=e.text!==rt(e.value,e.valueField);return e.loading=c,e.disabled=c,c||e.clearFilter(),c}),this.valueNormalizer,We(function(c){return{custom:!0,dataItem:c,text:e.text,value:c}})),s=a[1].pipe(We(function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}})),l=this.clearValueSubject.pipe(We(function(){return{dataItem:void 0,text:void 0,value:void 0}}));this.valueSubscription&&this.valueSubscription.unsubscribe();var u=xn(n,o,s,l);this.valueSubscription=u.pipe(cl(function(){var c=void 0!==rt(e.dataItem,e.valueField);return e.dataItem=void 0,e.value=void 0,e.text=void 0,e.loading=!1,e.disabled=!1,c&&e.selectionChange.emit(void 0),e.emitValueChange(),e.createValueStream(),lt(null)})).subscribe(function(c){var d=rt(e.dataItem,e.valueField)!==rt(c.dataItem,e.valueField);e.dataItem=c.dataItem,e.value=c.value,e.text=c.text,e.loading=!1,e.disabled=!1,e.clearFilter(),c.custom&&(e.selectionService.focused=-1),d&&e.selectionChange.emit(c.custom?void 0:e.dataItem),e.emitValueChange()})}},{key:"attachStreams",value:function(){var e=this;!Ze()||(this.subs.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()})),this.subs.add(xn(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(Ue(function(n){return fe(n.index)})).subscribe(function(n){return e.navigate(n.index)})),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(function(){return e.togglePopup(!1)})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(At(function(n){e.isOpen&&n.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(xn(this.selectionService.onChange,this.selectionService.onSelect.pipe(Ue(function(n){return!e.isOpen}))).pipe(At(function(n){e._filtering=!1,e.togglePopup(!1)}),We(function(n){return e.dataService.itemAt(n.indices[0])})).subscribe(function(n){e.change(n)})),this.subs.add(this.selectionService.onSelect.pipe(Ue(function(n){return e.isOpen}),At(function(n){return e._filtering=!1}),We(function(n){return e.dataService.itemAt(n.indices[0])})).subscribe(function(n){var a=rt(n,e.valueField)!==rt(e.dataItem,e.valueField);e.updateState({dataItem:n}),a&&e.selectionChange.emit(n)})))}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.subs.unsubscribe(),fe(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("valueNormalizer",e)&&this.createValueStream(),Ki(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"focusItemAt",value:function(e){var n=e>=0&&e1&&void 0!==arguments[1]?arguments[1]:0;a=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),n):-1,this.disabledItemsService.isIndexDisabled(a)?a+10||(this.suggestedText=null,this.selectionService.focused=-1)}},{key:"handleNavigationOpen",value:function(){this.restoreItemFocus(),this.togglePopup(!0)}},{key:"searchBarChange",value:function(e){this.backspacePressed=e.length<(this.text?this.text.length:0),this.text=e,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==e?(this.filterText=e,this.filterChange.emit(e)):this.search(e)}},{key:"handleFocus",value:function(){var e=this;this.isFocused=!0,ut(this.onFocus)&&this.zone.run(function(){return e.onFocus.emit()})}},{key:"pageChange",value:function(e){this.virtual.skip=e.skip}},{key:"change",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n?this.customValueSubject.next(e):this.valueSubject.next(e)}},{key:"emitValueChange",value:function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem}},{key:"selectClick",value:function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)}},{key:"listContainerClasses",get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])}},{key:"preventEventDefault",value:function(e){e.preventDefault()}},{key:"focusedItemText",get:function(){var e=this.selectionService.focused;if(!fe(e)||-1===e)return null;var n=rt(this.dataService.itemAt(e),this.textField);return fe(n)?n.toString():""}},{key:"restoreItemFocus",value:function(){!(fe(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))}},{key:"useSuggestion",value:function(){if(!this.suggest||!fe(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),n=rt(e,this.textField);return!!fe(n)&&this.searchbar.value.toLowerCase()===n.toLowerCase()}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:n,vertical:"bottom"},popupAlign:{horizontal:n,vertical:"top"}});var s=this.popupRef.popupElement,l=this.popupWidth,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.popupHeight,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"clearFilter",value:function(){!this.filterable||!this.filterText||(this.filterText="",this.filterChange.emit(this.filterText))}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this.zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){var o=EC(e.wrapper,n.target,e.popupRef);e.isFocused&&!o?e.zone.run(function(){return e.blur()}):e.isOpen&&!o&&e.zone.run(function(){return e.togglePopup(!1)})})})}},{key:"attachSelectClickHandler",value:function(){this.selectClickDisposeHandler=this.renderer.listen(this.select.nativeElement,dW?"pointerdown":"click",this.selectClick.bind(this))}},{key:"setComponentClasses",value:function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,Un("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,aa("input",this.fillMode))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Y),m(Cr),m(ao),m(To),m(Eo),m(Do),m(be),m(nt),m(Ee),m(qc,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-combobox"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,TC,5),he(n,sv,5),he(n,lv,5),he(n,uv,5),he(n,AC,5),he(n,xC,5)),2&t&&(P(a=B())&&(e.template=a.first),P(a=B())&&(e.headerTemplate=a.first),P(a=B())&&(e.footerTemplate=a.first),P(a=B())&&(e.noDataTemplate=a.first),P(a=B())&&(e.groupTemplate=a.first),P(a=B())&&(e.fixedGroupTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(im,7,ei),ge(rm,7),ge(ah,7),ge(c1,5),ge(IJe,7)),2&t&&(P(n=B())&&(e.container=n.first),P(n=B())&&(e.popupTemplate=n.first),P(n=B())&&(e.searchbar=n.first),P(n=B())&&(e.optionsList=n.first),P(n=B())&&(e.select=n.first))},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-combobox",e.widgetClasses)("k-input",e.widgetClasses)("k-disabled",e.isDisabled)("k-loading",e.isLoading))},inputs:{focusableId:"focusableId",allowCustom:"allowCustom",data:"data",value:"value",textField:"textField",valueField:"valueField",valuePrimitive:"valuePrimitive",valueNormalizer:"valueNormalizer",placeholder:"placeholder",popupSettings:"popupSettings",listHeight:"listHeight",iconClass:"iconClass",loading:"loading",suggest:"suggest",clearButton:"clearButton",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",selectionChange:"selectionChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoComboBox"],features:[de([Ztt,Do,ao,To,Eo,Y,{provide:Et,useValue:"kendo.combobox"},{provide:sm,useExisting:ke(function(){return i})},{provide:Ui,useExisting:ke(function(){return i})}]),Ie],decls:12,vars:20,consts:function(){return[["kendoComboBoxLocalizedMessages","","noDataText",$localize(Rre||(Rre=le([":kendo.combobox.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND"]))),"clearTitle",$localize(Ore||(Ore=le([":kendo.combobox.clearTitle|The title of the clear button:clear"]))),"selectButtonText",$localize(Ire||(Ire=le([":kendo.combobox.selectButtonText|The text set as aria-label on the select button:Select"])))],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-clear-value","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["unselectable","on","type","button",1,"k-input-button","k-button","k-icon-button",3,"ngClass","kendoEventsOutsideAngular"],["select",""],[1,"k-button-icon","k-icon",3,"ngClass"],["popupTemplate",""],[3,"ngIf"],["container",""],["aria-hidden","true",1,"k-clear-value",3,"kendoEventsOutsideAngular","click"],[1,"k-icon","k-i-x"],[4,"ngIf"],[3,"size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"kendo-searchbar",1,2),Q("onNavigate",function(a){return e.handleNavigate(a)})("valueChange",function(a){return e.searchBarChange(a)})("onBlur",function(){return e.handleBlur()})("onFocus",function(){return e.handleFocus()}),x(),T(3,NJe,2,6,"span",3),A(4,"button",4,5),z(6,"span",6),x(),T(7,zJe,5,16,"ng-template",null,7,$n),T(9,HJe,1,0,"ng-template",8),Wt(10,null,9)),2&t&&(k(1),y("role","combobox")("id",e.focusableId)("listId",e.listBoxId)("activeDescendant",e.activeDescendant)("noDataLabel",e.noDataLabel)("userInput",e.text)("suggestedText",e.getSuggestion())("disabled",e.disabled)("readonly",e.readonly)("tabIndex",e.tabIndex)("popupOpen",e.isOpen)("placeholder",e.placeholder),k(2),y("ngIf",e.clearButton&&!e.loading&&!e.disabled&&!e.readonly&&(null==e.text?null:e.text.length)),k(1),y("ngClass",e.selectButtonClasses)("kendoEventsOutsideAngular",ot(18,DC,e.preventEventDefault)),ie("aria-label",e.messageFor("selectButtonText")),k(2),y("ngClass",e.buttonClasses),k(3),y("ngIf",e.isOpen))},directives:[ah,lm,Gr,oh,qe,qi,Ft,bu],encapsulation:2}),i}(),nB=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListValueTemplate",""],["","kendoDropDownTreeValueTemplate",""]]}),i}(),C1=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.zone=e}return v(r,[{key:"ngOnChanges",value:function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})}},{key:"nextTick",value:function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(be))},i.\u0275dir=X({type:i,selectors:[["","filterInput",""]],inputs:{focused:["filterInput","focused"]},features:[Ie]}),i}(),ent={multi:!0,provide:jn,useExisting:ke(function(){return js})},js=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.wrapper=t,this.localization=e,this.popupService=n,this.selectionService=a,this.navigationService=o,this.disabledItemsService=s,this.dataService=l,this._zone=u,this.renderer=c,this.cdr=d,this.touchEnabled=h,this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new O,this.filterChange=new O,this.selectionChange=new O,this.open=new O,this.opened=new O,this.close=new O,this.closed=new O,this.onFocus=new O,this.onBlur=new O,this.hostClasses=!0,this.focusableId="k-".concat(ro()),this.role="listbox",this.groupIndices=[],this.listBoxId=ro(),this.optionPrefix=ro(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(f){},this.onChangeCallback=function(f){},this.word="",this.last="",this.filterFocused=new O,this.filterBlurred=new O,this.hostElementFocused=new O,this.hostElementBlurred=new O,this.selectionSubscription=new Je,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",jt(d1),this.direction=e.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}return v(r,[{key:"width",get:function(){var e=Ze()?this.wrapper.nativeElement.offsetWidth:0,n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"height",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"widgetTabIndex",get:function(){if(!this.disabled){var e=Number(this.tabIndex);return isNaN(e)?0:e}}},{key:"ariaExpanded",get:function(){return this.isOpen}},{key:"ariaOwns",get:function(){if(this.isOpen)return this.listBoxId}},{key:"ariaActivedescendant",get:function(){if(fe(this.dataItem)&&this.isOpen)return this.optionPrefix+"-"+rt(this.dataItem,this.valueField)}},{key:"noDataLabel",get:function(){if(0===this.dataService.itemsCount)return this.messageFor("noDataText")}},{key:"appendTo",get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e}},{key:"data",get:function(){var e=this.virtual;if(e){var n=e.skip||0,a=n+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(n,a)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()}},{key:"value",get:function(){return this._value},set:function(e){fe(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=v1(e)}},{key:"valuePrimitive",get:function(){return fe(this._valuePrimitive)?this._valuePrimitive:!fe(this.valueField)},set:function(e){this._valuePrimitive=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Un("picker",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Un("picker",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,vr(n)),this._rounded=e}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,aa("picker",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,aa("picker",n)),this._fillMode=n}},{key:"blurComponent",value:function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())}},{key:"blurFilterInput",value:function(){this.filterBlurred.emit()}},{key:"focusComponent",value:function(e){var n=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,ut(this.onFocus)&&this._zone.run(function(){n.onFocus.emit()})))}},{key:"onResize",value:function(){if(this._open){var e=this.popupRef.popupElement,n=this.width,o=n.max;e.style.minWidth=n.min,e.style.width=o}}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"hostTabIndex",get:function(){return this.widgetTabIndex}},{key:"isReadonly",get:function(){return this.readonly}},{key:"isAriaExpanded",get:function(){return this.ariaExpanded}},{key:"hostAriaOwns",get:function(){return this.ariaOwns}},{key:"hostAriaActivedescendant",get:function(){return this.ariaActivedescendant}},{key:"hostNoDataLabel",get:function(){return this.noDataLabel}},{key:"keydown",value:function(e){var n=fe(this.defaultItem)?-1:0,a=isNaN(this.selectionService.focused)?this.firstFocusableIndex(n):this.selectionService.focused,o=0;if(!(this.disabled||this.readonly||this.filterable&&this.isFocused&&this.isOpen&&(e.keyCode===J.Home||e.keyCode===J.End))){var u=fe(this.selectionService.selected[0]),c=fe(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);(!u||c)&&(e.keyCode===J.ArrowDown||e.keyCode===J.ArrowRight?o=-1:(e.keyCode===J.ArrowUp||e.keyCode===J.ArrowLeft)&&(o=1));var d=e,h=this.navigationService.process({current:a+o,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:d});h!==Jt.Undefined&&h!==Jt.Tab&&h!==Jt.Backspace&&h!==Jt.Delete&&(h!==Jt.Left&&h!==Jt.Right||!this.filterable)&&h!==Jt.Enter&&d.preventDefault()}}},{key:"keypress",value:function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)}},{key:"click",value:function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()}),this.assignAriaDescribedBy(),this.setComponentClasses()}},{key:"isEmpty",value:function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)}},{key:"onFilterFocus",value:function(){this.filterFocused.emit()}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),Ki(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"focusItemAt",value:function(e){var a=(fe(this.defaultItem)?-1:0)<=e&&e0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(h1(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=function(r,t,e){var n=function(r,t){return Sa(r)&&r.filter(function(e){return av(e)&&fe(rt(e,t))})}(r,e)||[],a=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2?arguments[2]:void 0;return r.map(function(n){return t.find(function(a){return rt(a,e)===n})}).filter(function(n){return void 0!==n})}(r,t,e)||[];return a.concat(n)}(e,a,this.valueField)),this.selectedDataItems.length0)this.handleBackspace();else if(!(this.disabled||n&&!a)){var s=e,l=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,u=this.navigationService.process({current:l,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:s});u!==Jt.Undefined&&(u===Jt.Enter&&this.isOpen||u!==Jt.Enter)&&e.preventDefault()}}},{key:"handleRemoveTag",value:function(e){var n=e.tag,a=new oae(n);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(a),!a.isDefaultPrevented()&&(n instanceof Array?this.removeGroupTag(n):this.removeSingleTag(n),this.cdr.detectChanges()))}},{key:"clearAll",value:function(e){var n=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter();var a=this.selectionService.selected;this.value=this.value.filter(function(o,s){return n.disabledItemsService.isIndexDisabled(a[s])}),this.emitValueChange()}},{key:"addCustomValue",value:function(e){this.customValueSubject.next(e)}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"ngDoCheck",value:function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.markForCheck()}),this.setState(this.value),this.setComponentClasses(),this.initialized=!0}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("valueNormalizer",e)&&this.createCustomValueStream(),Ki(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)}},{key:"ngAfterViewInit",value:function(){this.searchbar.setInputSize()}},{key:"ngOnDestroy",value:function(){this._toggle(!1),this.unsubscribeEvents()}},{key:"toggle",value:function(e){var n=this;Promise.resolve(null).then(function(){var a=fe(e)?e:!n._open;n._toggle(a),n.cdr.markForCheck()})}},{key:"isOpen",get:function(){return this._open}},{key:"reset",value:function(){this.text="",this.value=[]}},{key:"messageFor",value:function(e){return this.localization.get(e)}},{key:"writeValue",value:function(e){this.value=e||[]}},{key:"registerOnChange",value:function(e){this.onChangeCallback=e}},{key:"registerOnTouched",value:function(e){this.onTouchedCallback=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"onTagMapperChange",value:function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"subscribeEvents",value:function(){var e=this;if(Ze()){var n=function(){return e.isOpen},a=function(){return!e.isOpen},o=function(){return!e.isOpen&&void 0!==e.focusedTagIndex};[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(Ue(n)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe(Ue(n)).subscribe(function(s){return e.handleUp(s.index)}),this.navigationService.home.pipe(Ue(function(){return a})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Ue(function(){return a})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Ue(o)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Ue(o)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe(function(s){return e.handleDownKey(s.index)})].forEach(function(s){return e.observableSubscriptions.add(s)})}}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this._zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){(e.isFocused||e.isOpen)&&!EC(e.wrapper,n.target,e.popupRef)&&e._zone.run(function(){e.blur(),e.isOpen&&e.togglePopup(!1)})})})}},{key:"unsubscribeEvents",value:function(){!Ze()||(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}},{key:"removeGroupTag",value:function(e){var n=this,a=this.dataService.data;this.dataService.grouped&&(a=a.filter(function(s){return!s.header}).map(function(s){return s.value}));var o=new Set(e.map(function(s){return rt(s,n.valueField)}));this.value=this.value.filter(function(s){var l=YP([s],a,n.valueField)[0],u=n.disabledItemsService.isIndexDisabled(l);return!o.has(rt(s,n.valueField))||u}),this.emitValueChange()}},{key:"removeSingleTag",value:function(e){var n=this,a=this.dataService.data;this.dataService.grouped&&(a=a.filter(function(l){return!l.header}).map(function(l){return l.value}));var o=YP([e],a,this.valueField)[0];this.disabledItemsService.isIndexDisabled(o)||(!function(r){return!isNaN(r)}(o)?(this.value=this.value.filter(function(u){return rt(u,n.valueField)!==rt(e,n.valueField)}),this.emitValueChange()):(this.selectionService.unselect(o),this.selectionService.focused=o,this.togglePopup(!1)))}},{key:"disabledItemsMapper",value:function(){var e=this,n=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(a,o,s){return e.disabledItemsService.isIndexDisabled(n[s])&&a.push(s),a},[]))}},{key:"createCustomValueStream",value:function(){var e=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(At(function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()}),this.valueNormalizer,cl(function(){return e.loading=!1,e.disabled=!1,e.autoClose&&e.togglePopup(!1),(e.autoClose||!e.filterable)&&e.clearFilter(),e.nextTick(function(){e.searchbar.focus()}),e.createCustomValueStream(),lt(null)})).subscribe(function(n){if(e.loading=!1,e.disabled=!1,fe(n)){var a=e.valuePrimitive?rt(n,e.valueField):n,o=e.dataService.indexOf(a),s=-1===o;-1===e.value.indexOf(a)?(e.tags=e.tagMapper([].concat(Ae(e.selectedDataItems),[n])),s?e.value=[].concat(Ae(e.value),[a]):e.selectionService.add(o)):!s&&e.selectionService.isSelected(o)?(e.selectionService.unselect(o),e.selectionService.focused=o):e.value=e.value.filter(function(l){return rt(l,e.valueField)!==a}),e.emitValueChange()}e.autoClose&&e.togglePopup(!1),(e.autoClose||!e.filterable)&&e.clearFilter(),e.nextTick(function(){e.searchbar.focus()})})}},{key:"handleItemChange",value:function(e){this.change(e),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()}},{key:"handleEnter",value:function(e){var n=this.selectionService,a=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),-1!==a?(n.isSelected(a)?(n.unselect(a),n.focused=a):n.add(a),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)}},{key:"handleClose",value:function(){this.closePopup(),this.searchbar.focus()}},{key:"handleEnd",value:function(){this.focusedTagIndex=this.tags.length-1}},{key:"handleHome",value:function(){this.focusedTagIndex=0}},{key:"handleUp",value:function(e){this.selectionService.focused=e}},{key:"handleBackspace",value:function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())}},{key:"handleDelete",value:function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)}},{key:"handleLeftKey",value:function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--}},{key:"handleDownKey",value:function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()}},{key:"handleRightKey",value:function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex1&&void 0!==arguments[1]?arguments[1]:0;e=e.toLowerCase();var s=this.dataService.findIndex(function(l){return o=rt(n.dataService.grouped?l.value:l,n.textField),o=fe(o)?o.toString().toLowerCase():"",e&&o.startsWith(e)},a);return this.disabledItemsService.isIndexDisabled(s)?s+1>this.dataService.itemsCount?-1:this.findIndex(e,s+1):s}},{key:"searchTextAndFocus",value:function(e){var n=this.findIndex(e);this.selectionService.focused=n}},{key:"closePopup",value:function(){this.togglePopup(!1),this.focusedTagIndex=void 0}},{key:"openPopup",value:function(){this.togglePopup(!0),this.focusedTagIndex=void 0}},{key:"togglePopup",value:function(e){this.disabled||this.readonly||this.isOpen===e||this.triggerPopupEvents(e)||this._toggle(e)}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:n,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:n,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});var s=this.popupRef.popupElement,l=this.width,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){e.togglePopup(!1)})}},{key:"emitValueChange",value:function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)}},{key:"resolveDataItemFromTags",value:function(e){var n=this;if(this.tags&&this.tags.length&&fe(e))return this.tags.reduce(function(o,s){var l=Sa(s)?s:[s];return o.push.apply(o,Ae(l)),o},[]).find(function(o){return rt(o,n.valueField)===rt(e,n.valueField)})}},{key:"firstFocusableIndex",value:function(e){var n=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(e)){var a=e+1;return a input, kendo-label > textarea, kendo-label > select")}(this.elementRef.nativeElement);if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-".concat(qn())),void(this.control=e);this.control=this.kendoInput}}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngAfterViewInit",value:function(){this.labelDirective.setAriaLabelledby()}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"textFor",value:function(e){return this.localization.get(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-label"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Ui,7),2&t&&P(a=B())&&(e.kendoInput=a.first)},viewQuery:function(t,e){var n;1&t&&ge(b1,7),2&t&&P(n=B())&&(e.labelDirective=n.first)},hostVars:1,hostBindings:function(t,e){2&t&&ie("dir",e.direction)},inputs:{text:"text",for:"for",optional:"optional"},exportAs:["kendoLabel"],features:[de([Y,{provide:Et,useValue:"kendo.label"}])],ngContentSelectors:yae,decls:5,vars:5,consts:function(){return[["kendoLabelLocalizedMessages","","optional",$localize(_ae||(_ae=le([":kendo.label.optional|The text for the optional segment of a Label component:Optional"])))],[3,"for"],["class","k-label-optional",4,"ngIf"],[1,"k-label-optional"]]},template:function(t,e){1&t&&(kn(),Wt(0,0),A(1,"label",1),te(2),T(3,Wnt,2,1,"span",2),x(),dn(4)),2&t&&(k(1),ue("k-label-empty",!e.text),y("for",e.control),k(1),Nt(" ",e.text,""),k(1),y("ngIf",e.optional))},directives:[hB,b1,qe],encapsulation:2}),i}(),wae=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,w1],eit,w1]}),i}(),Ke=function(r){return r?new Date(r.getTime()):null},OC=function(r,t){var e=Ke(r);return 0===t&&23===e.getHours()&&e.setHours(e.getHours()+2),e},rs=function(r,t){var e=Ke(r);return e.setDate(e.getDate()+t),OC(e,r.getHours())},Ao=function(r,t,e){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,l=new Date(r,t,e,n,a,o,s);return r>-1&&r<100&&l.setFullYear(l.getFullYear()-1900),OC(l,n)},Ii=function(r){return Ao(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0)},vi=function(r,t){return!r&&!t||r&&t&&r.getTime()===t.getTime()},Ml=function(r){var t=Ao(r.getFullYear(),r.getMonth()+1,1,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return rs(t,-1)},Kr=function(r,t){var e=Ke(r),a=(12+(e.getMonth()+t)%12)%12;return e.setMonth(e.getMonth()+t),function(r,t){return r.getMonth()!==t?Ml(Kr(r,-1)):r}(OC(e,r.getHours()),a)},Dae=function(r,t){var e=r.getMonth(),n=Ao(t,e,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return n.getMonth()===e?n:Ml(Kr(n,-1))},xo=function(r,t){return OC(Dae(r,r.getFullYear()+t),r.getHours())},Ws=function(r,t){return xo(r,10*t)},IC=function(r,t){return xo(r,100*t)},D1=function(r,t){return Dae(r,t(r.getFullYear()))},hv=function(r){return D1(r,function(t){return t-t%100})},E1=function(r){return D1(r,function(t){return t-t%100+90})},oo=function(r){return D1(r,function(t){return t-t%10})},NC=function(r){return D1(r,function(t){return t-t%10+9})},Eae=function(r,t){var e=r.getDate(),n=Ao(r.getFullYear(),t,e,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return n.getDate()===e?n:Ml(Kr(n,-1))},FC=function(r){return Eae(r,11)},Tae=function(r,t){return(hv(t).getFullYear()-hv(r).getFullYear())/100},Aae=function(r,t){return(oo(t).getFullYear()-oo(r).getFullYear())/10},xae=function(r,t){return rs(r,7*t)},Mae=function(r){return Ao(r.getFullYear(),r.getMonth(),1,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())},LC=function(){return function(i){i[i.Forward=1]="Forward",i[i.Backward=-1]="Backward"}(LC||(LC={})),LC}(),Rae=function(r,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:LC.Forward,n=Ke(r),a=(t-n.getDay()+7*e)%7;return n.setDate(n.getDate()+a),OC(n,r.getHours())},Oae=function(r,t){return 12*(t.getFullYear()-r.getFullYear())+(t.getMonth()-r.getMonth())},Iae=function(r){return Eae(r,0)},Nae=function(r,t){return t.getFullYear()-r.getFullYear()},PC=function(){return function(i){i[i.Sunday=0]="Sunday",i[i.Monday=1]="Monday",i[i.Tuesday=2]="Tuesday",i[i.Wednesday=3]="Wednesday",i[i.Thursday=4]="Thursday",i[i.Friday=5]="Friday",i[i.Saturday=6]="Saturday"}(PC||(PC={})),PC}(),vB=function(r,t){var e=Ao(r.getFullYear(),0,1,-6),a=function(r,t){return t!==PC.Monday?rs(function(r,t){return Rae(r,t,LC.Backward)}(r,t),4):rs(r,4-(r.getDay()||7))}(r,t).getTime()-e.getTime(),o=Math.floor(a/864e5);return 1+Math.floor(o/7)},Fae=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PC.Monday;r=Ii(r);var e=rs(r,-7),n=rs(r,7),a=vB(r,t);return 0===a?vB(e,t)+1:53===a&&vB(n,t)>1?1:a},BC={schedule:function(r){var t=requestAnimationFrame,e=cancelAnimationFrame,n=BC.delegate;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);var a=t(function(o){e=void 0,r(o)});return new Je(function(){return null==e?void 0:e(a)})},requestAnimationFrame:function(i){function r(){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(){var i=BC.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,arguments)}),cancelAnimationFrame:function(i){function r(){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(){var i=BC.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,arguments)}),delegate:void 0},ait=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).scheduler=e,a.work=n,a}return v(t,[{key:"requestAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?$(q(t.prototype),"requestAsyncId",this).call(this,n,a,o):(n.actions.push(this),n._scheduled||(n._scheduled=BC.requestAnimationFrame(function(){return n.flush(void 0)})))}},{key:"recycleAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return $(q(t.prototype),"recycleAsyncId",this).call(this,n,a,o);n.actions.some(function(s){return s.id===a})||(BC.cancelAnimationFrame(a),n._scheduled=void 0)}}]),t}(D6),oit=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"flush",value:function(n){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;n=n||o.shift();do{if(s=n.execute(n.state,n.delay))break}while((n=o[0])&&n.id===a&&o.shift());if(this._active=!1,s){for(;(n=o[0])&&n.id===a&&o.shift();)n.unsubscribe();throw s}}}]),t}(E6),sit=new oit(ait),uit=["kendoCalendarView",""];function cit(i,r){1&i&&(A(0,"td",3),te(1,"\xa0"),x())}function dit(i,r){if(1&i&&(A(0,"tr",4)(1,"th",5),te(2),x()()),2&i){var t=D();k(1),y("colSpan",t.colSpan),k(1),at(t.title)}}function hit(i,r){if(1&i&&te(0),2&i){var t=D(3).$implicit,e=D();Nt(" ",e.getWeekNumber(e.firstDate(t))," ")}}function fit(i,r){}var sh=function(r){return{click:r}},Coe=function(r,t){return{$implicit:r,cellContext:t}};function vit(i,r){if(1&i&&(A(0,"td",9),T(1,hit,1,1,"ng-template",6),T(2,fit,0,0,"ng-template",10),x()),2&i){var t=D(2).$implicit,e=D();y("kendoEventsOutsideAngular",ot(5,sh,e.handleWeekNumberClick.bind(e,t))),k(1),y("ngIf",!e.weekNumberTemplateRef),k(1),y("ngIf",e.weekNumberTemplateRef)("ngTemplateOutlet",e.weekNumberTemplateRef)("ngTemplateOutletContext",ln(7,Coe,e.firstDate(t),e.getWeekNumberContext(t)))}}function pit(i,r){if(1&i&&T(0,vit,3,10,"td",8),2&i){var t=D().$implicit,e=D(),n=Yt(1);y("ngIf",e.firstDate(t))("ngIfElse",n)}}function git(i,r){1&i&&te(0),2&i&&at(D(2).$implicit.formattedValue)}function mit(i,r){}function _it(i,r){if(1&i&&T(0,mit,0,0,"ng-template",15),2&i){var t=D(2).$implicit;y("ngTemplateOutlet",D(2).templateRef)("ngTemplateOutletContext",ln(2,Coe,t.value,t))}}function yit(i,r){if(1&i&&(A(0,"td",12)(1,"span",13),T(2,git,1,1,"ng-template",6),T(3,_it,1,5,null,14),x()()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D().index,o=D();y("ngClass",o.getStyles(e))("title",e.title),ie("id",e.id)("data-cell-index",o.tableCellIndex(a,n))("aria-selected",e.isSelected||e.isRangeStart||e.isRangeMid||e.isRangeEnd)("aria-disabled",e.isDisabled),k(2),y("ngIf",!o.templateRef),k(1),y("ngIf",o.templateRef)}}function kit(i,r){if(1&i&&(Ge(0),T(1,yit,4,8,"td",11),Ve()),2&i){var t=r.$implicit,e=D(2),n=Yt(1);k(1),y("ngIf",e.shouldRenderCellContent(t))("ngIfElse",n)}}function Cit(i,r){if(1&i&&(A(0,"tr",4),T(1,pit,1,2,"ng-template",6),T(2,kit,2,2,"ng-container",7),x()),2&i){var t=r.$implicit,e=D();k(1),y("ngIf",e.weekNumber),k(1),y("kForOf",t)}}function bit(i,r){if(1&i&&(A(0,"caption",7),te(1),x()),2&i){var t=D().date,e=D();y("ngClass",e.getCaptionClass()),k(1),at(e.getCaptionTitle(t))}}function Sit(i,r){if(1&i&&(A(0,"th",11),te(1),x()),2&i){var t=r.$implicit;k(1),at(t)}}function wit(i,r){if(1&i&&(A(0,"thead",8)(1,"tr",9),T(2,Sit,2,1,"th",10),x()()),2&i){var t=D(2);k(2),y("ngForOf",t.weekNames)}}function Dit(i,r){if(1&i){var t=Me();A(0,"table",3),T(1,bit,2,2,"caption",4),T(2,wit,3,1,"thead",5),A(3,"tbody",6),Q("cellClick",function(s){return re(t),D().cellClick.emit(s)})("weekNumberCellClick",function(s){return re(t),D().weekNumberCellClick.emit(s)})("cellEnter",function(s){return re(t),D().cellEnter.emit(s)})("cellLeave",function(s){return re(t),D().cellLeave.emit(s)}),x()()}if(2&i){var e=r.date,n=r.className,a=D();y("ngClass",n),k(1),y("ngIf",a.showViewHeader),k(1),y("ngIf",a.isMonthView()),k(1),y("activeView",a.activeView)("isActive",a.isActive)("min",a.min)("max",a.max)("cellUID",a.cellUID)("focusedDate",a.focusedDate)("selectedDates",a.selectedDates)("selectionRange",a.selectionRange)("activeRangeEnd",a.activeRangeEnd)("weekNumber",a.weekNumber)("templateRef",a.cellTemplateRef)("weekNumberTemplateRef",a.weekNumberTemplateRef)("viewDate",e)}}function Eit(i,r){}var boe=function(r){return{date:r,className:"k-pointer-events-none"}};function Tit(i,r){if(1&i&&T(0,Eit,0,0,"ng-template",12),2&i){var t=D();y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,boe,t.nextAnimationDate))}}function Ait(i,r){}var xit=function(r){return{date:r}};function Mit(i,r){if(1&i&&T(0,Ait,0,0,"ng-template",12),2&i){var t=r.$implicit;D(),y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,xit,t))}}function Rit(i,r){}function Oit(i,r){if(1&i&&T(0,Rit,0,0,"ng-template",12),2&i){var t=D();y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,boe,t.prevAnimationDate))}}function Iit(i,r){1&i&&te(0),2&i&&at(D().title)}function Nit(i,r){}function Fit(i,r){if(1&i){var t=Me();A(0,"button",8),Q("click",function(){return re(t),D().prevButtonClick.emit()}),z(1,"span",9),x()}if(2&i){var e=D();y("disabled",e.isPrevDisabled)("title",e.prevButtonTitle),ie("aria-disabled",e.isPrevDisabled)}}function Lit(i,r){if(1&i){var t=Me();A(0,"button",10),Q("click",function(){return re(t),D().nextButtonClick.emit()}),z(1,"span",11),x()}if(2&i){var e=D();y("disabled",e.isNextDisabled)("title",e.nextButtonTitle),ie("aria-disabled",e.isNextDisabled)}}var Soe=function(r,t,e){return{$implicit:r,activeView:t,date:e}},Pit=function(r){return{focusin:r}},woe=["*"],Doe=["list"];function Bit(i,r){if(1&i&&te(0),2&i){var t=D().$implicit;at(D().service.navigationTitle(t))}}function Git(i,r){}function Vit(i,r){if(1&i&&(A(0,"li")(1,"span"),T(2,Bit,1,1,"ng-template",5),T(3,Git,0,0,"ng-template",6),x()()),2&i){var t=r.$implicit,e=r.index,n=D();ie("data-date-index",e),k(1),ue("k-calendar-navigation-marker",n.service.isRangeStart(t)),k(1),y("ngIf",!n.templateRef),k(1),y("ngIf",n.templateRef)("ngTemplateOutlet",n.templateRef)("ngTemplateOutletContext",va(7,Soe,n.service.navigationTitle(t),n.activeViewValue,t))}}function Uit(i,r){if(1&i&&(A(0,"th",11),te(1),x()),2&i){var t=r.$implicit;Qe("width",D(2).colWidth,"%"),k(1),at(t)}}function zit(i,r){if(1&i&&(A(0,"table",7)(1,"thead",8)(2,"tr",9),T(3,Uit,2,3,"th",10),x()()()),2&i){var t=D();k(3),y("ngForOf",t.weekNames)}}function Hit(i,r){1&i&&z(0,"col")}function Kit(i,r){if(1&i){var t=Me();A(0,"tbody",12),Q("cellClick",function(o){return re(t),D().cellClick.emit(o)})("weekNumberCellClick",function(o){return re(t),D().weekNumberCellClick.emit(o)}),x()}if(2&i){var e=r.$implicit,n=D();y("activeView",n.activeView)("isActive",n.isActive)("min",n.min)("max",n.max)("cellUID",n.cellUID)("focusedDate",n.focusedDate)("selectedDates",n.selectedDates)("weekNumber",n.weekNumber)("templateRef",n.cellTemplateRef)("weekNumberTemplateRef",n.weekNumberTemplateRef)("viewDate",e)}}function jit(i,r){if(1&i){var t=Me();A(0,"kendo-calendar-navigation",5),Q("valueChange",function(a){return re(t),D(2).handleNavigation(a)})("pageChange",function(){return re(t),D(2).onPageChange()}),x()}if(2&i){var e=D(2);y("activeView",e.activeViewEnum)("focusedDate",e.focusedDate)("min",e.min)("max",e.max)("templateRef",null==e.navigationItemTemplateRef?null:e.navigationItemTemplateRef.templateRef)}}function Wit(i,r){if(1&i){var t=Me();Ge(0),T(1,jit,1,5,"kendo-calendar-navigation",2),A(2,"kendo-calendar-viewlist",3),Q("todayButtonClick",function(o){return re(t),D().handleDateChange({selectedDates:[o],focusedDate:o})})("cellClick",function(o){return re(t),D().handleCellClick(o)})("weekNumberCellClick",function(o){return re(t),D().handleWeekNumberClick(o)})("activeDateChange",function(o){return re(t),D().handleActiveDateChange(o)})("pageChange",function(){return re(t),D().onPageChange()}),x(),A(3,"kendo-resize-sensor",4),Q("resize",function(){return re(t),D().onResize()}),x(),Ve()}if(2&i){var n,e=D();k(1),y("ngIf",e.navigation),k(1),y("activeView",e.activeViewEnum)("isActive",e.isActive)("cellTemplateRef",null==(n=e.activeCellTemplate())?null:n.templateRef)("headerTitleTemplateRef",null==e.headerTitleTemplateRef?null:e.headerTitleTemplateRef.templateRef)("weekNumberTemplateRef",null==e.weekNumberTemplateRef?null:e.weekNumberTemplateRef.templateRef)("cellUID",e.cellUID)("min",e.min)("max",e.max)("focusedDate",e.focusedDate)("weekNumber",e.weekNumber)("selectedDates",e.selectedDates)}}function $it(i,r){if(1&i){var t=Me();Ge(0),A(1,"kendo-multiviewcalendar",6,7),Q("activeViewChange",function(a){return re(t),D().handleActiveViewChange(a)})("navigate",function(a){return re(t),D().handleNavigate(a)})("valueChange",function(a){re(t);var o=Yt(2);return D().handleMultiViewCalendarValueChange(a,o.focusedDate)})("focus",function(){return re(t),D().handleFocus()})("blur",function(a){return re(t),D().handleBlur(a)})("keydown",function(a){return re(t),D().handleMultiViewCalendarKeydown(a)}),z(3,"kendo-multiviewcalendar-messages",8),x(),Ve()}if(2&i){var e=D();k(1),y("views",1)("min",e.min)("max",e.max)("isActive",e.isActive)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("weekNumber",e.weekNumber)("animateNavigation",e.animateNavigation)("cellTemplate",e.activeCellTemplate())("monthCellTemplate",e.monthCellTemplateRef)("yearCellTemplate",e.yearCellTemplateRef)("decadeCellTemplate",e.decadeCellTemplateRef)("centuryCellTemplate",e.centuryCellTemplateRef)("headerTitleTemplate",e.headerTitleTemplateRef)("weekNumberTemplate",e.weekNumberTemplateRef)("focusedDate",e.focusedDate)("selection",e.selection)("value",e.value)("disabledDates",e.disabledDates),k(2),y("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))}}var qit=["dateInput"],Xit=["spinup"],Zit=["spindown"];function Yit(i,r){if(1&i){var t=Me();A(0,"span",4),Q("mousedown",function(a){return a.preventDefault()}),A(1,"button",5,6),Q("mousedown",function(){re(t);var a=D();return a.arrowDirection=a.arrow.Up})("mouseleave",function(){re(t);var a=D();return a.arrowDirection=a.arrow.None})("click",function(){return re(t),D().handleButtonClick(1)}),z(3,"span",7),x(),A(4,"button",8,9),Q("click",function(){return re(t),D().handleButtonClick(-1)})("mousedown",function(){re(t);var a=D();return a.arrowDirection=a.arrow.Down})("mouseleave",function(){re(t);var a=D();return a.arrowDirection=a.arrow.None}),z(6,"span",10),x()()}if(2&i){var e=D();k(1),ue("k-active",e.arrowDirection===e.arrow.Up),y("title",e.localization.get("increment")),ie("aria-label",e.localization.get("increment")),k(3),ue("k-active",e.arrowDirection===e.arrow.Down),y("title",e.localization.get("decrement")),ie("aria-label",e.localization.get("decrement"))}}var Qit=function(r,t,e,n,a,o,s){return{click:r,focus:t,mousedown:e,touchstart:n,dragstart:a,drop:o,blur:s}},M1=["container"],pB=["popupTemplate"],gB=["toggleButton"];function Jit(i,r){}var Eoe=function(r){return{keydown:r}};function ert(i,r){if(1&i){var t=Me();A(0,"kendo-calendar",8,9),Q("valueChange",function(a){re(t);var o=D();return o.handleChange(o.mergeTime(a))}),z(2,"kendo-calendar-messages",10),x(),T(3,Jit,0,0,"ng-template")}if(2&i){var e=D();y("type",e.calendarType)("min",e.min)("max",e.max)("navigation",e.navigation)("animateNavigation",e.animateCalendarNavigation)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("weekNumber",e.weekNumber)("cellTemplate",e.cellTemplate)("monthCellTemplate",e.monthCellTemplate)("yearCellTemplate",e.yearCellTemplate)("decadeCellTemplate",e.decadeCellTemplate)("centuryCellTemplate",e.centuryCellTemplate)("weekNumberTemplate",e.weekNumberTemplate)("headerTitleTemplate",e.headerTitleTemplate)("navigationItemTemplate",e.navigationItemTemplate)("focusedDate",e.focusedDate)("value",e.value)("kendoEventsOutsideAngular",ot(25,Eoe,e.handleKeydown))("scope",e)("disabledDates",e.disabledDates),k(2),y("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))}}var Toe=function(r,t){return{click:r,mousedown:t}},cm={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652250169,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},zt=function(){return function(i){i[i.Left=0]="Left",i[i.Right=1]="Right",i[i.Up=2]="Up",i[i.Down=3]="Down",i[i.PrevView=4]="PrevView",i[i.NextView=5]="NextView",i[i.FirstInView=6]="FirstInView",i[i.LastInView=7]="LastInView",i[i.LowerView=8]="LowerView",i[i.UpperView=9]="UpperView"}(zt||(zt={})),zt}(),vt=function(){return function(i){i[i.month=0]="month",i[i.year=1]="year",i[i.decade=2]="decade",i[i.century=3]="century"}(vt||(vt={})),vt}(),Au=new Date(1980,0,1),Rl=new Date(1900,0,1),Ol=new Date(2099,11,31),so=(new Date(1980,0,1),new Date(1980,0,1,23,59,59),{start:null,end:null}),R1=function(r){return r&&(!r.touched||r.control&&"blur"===r.control.updateOn)},Art=function(r){return r.preventDefault()},St=function(r){return null!=r},Aoe=function(r){return null!=r},GC=function(r){return function(t,e){var n=Ke(t);return n[r](e),n}},xu=function(r,t){var e=Ke(r);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},Rrt=GC("setFullYear"),O1=GC("setHours"),I1=GC("setMinutes"),N1=GC("setSeconds"),F1=GC("setMilliseconds"),Ba=function(r,t){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=[],a=r;ar||e&&ee?Ke(e):r)},Il=function(){return Ii(new Date)},Gt=function(r){},Roe=function(r,t){return r.slice(t).concat(r.slice(0,t))},as=function(r){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=document.createElement(r);return a.className=e,Object.keys(n).map(function(o){return a.style[o]=n[o]}),"string"==typeof t?a.innerHTML=t||"":(t||[]).forEach(function(o){return o&&a.appendChild(o)}),a}},lh=function(r,t){return void 0!==r[t]},Ooe=function(r,t){return r[t]&&null!=r[t].currentValue},uh=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r&&r[r.length-1]},P1=function(r,t){var e=t||so,n=e.start,a=e.end;return!(!n||!a)&&nC.getFullYear();if(!n.isInRange(N,u,l)||V)return null;var U=n.isEqual(N,h.start),ee=n.isEqual(N,h.end),G=!U&&!ee&&P1(N,h);return{formattedValue:n.value(N),id:"".concat(a).concat(N.getTime()),isFocused:n.isEqual(N,o),isSelected:s&&c.some(function(I){return n.isEqual(N,I)}),isWeekend:!1,isRangeStart:U,isRangeMid:G,isRangeEnd:ee,isRangeSplitEnd:G&&n.isEqual(N,C),isRangeSplitStart:G&&n.isEqual(N,_),isToday:n.isEqual(N,w),title:n.cellTitle(N),value:N}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&oo(e).getFullYear()===oo(n).getFullYear()}},{key:"isInArray",value:function(e,n){if(!n.length)return!1;var a=e.getFullYear();return n[0].getFullYear()<=a&&a<=n[n.length-1].getFullYear()+99}},{key:"isInRange",value:function(e,n,a){var o=oo(e).getFullYear(),s=!n||oo(n).getFullYear()<=o,l=!a||o<=oo(a).getFullYear();return s&&l}},{key:"beginningOfPeriod",value:function(e){if(!e)return e;var n=oo(hv(e));return Ao(n.getFullYear(),0,1)}},{key:"lastDayOfPeriod",value:function(e){var n=E1(e),a=NC(n),o=FC(a);return Ml(o)}},{key:"isRangeStart",value:function(e){return e.getFullYear()%1e3==0}},{key:"move",value:function(e,n){var a=Krt[n];return a?a(e):e}},{key:"cellTitle",value:function(e){return oo(e).getFullYear().toString()}},{key:"navigationTitle",value:function(e){return e?hv(e).getFullYear().toString():""}},{key:"title",value:function(e){return e?"".concat(hv(e).getFullYear()," - ").concat(E1(e).getFullYear()):""}},{key:"rowLength",value:function(){return 4}},{key:"skip",value:function(e,n){return Tae(n,e)}},{key:"total",value:function(e,n){return Tae(e,n)+1}},{key:"value",value:function(e){return e?oo(e).getFullYear().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),jrt=[[]],$rt=(De(Du={},zt.Left,function(i){return xo(i,-1)}),De(Du,zt.Up,function(i){return xo(i,-5)}),De(Du,zt.Right,function(i){return xo(i,1)}),De(Du,zt.Down,function(i){return xo(i,5)}),De(Du,zt.PrevView,function(i){return Ws(i,-1)}),De(Du,zt.NextView,function(i){return Ws(i,1)}),De(Du,zt.FirstInView,function(i){return oo(i)}),De(Du,zt.LastInView,function(i){return NC(i)}),Du),EB=function(){var i=function(){function r(){p(this,r),this.dateRange=function(t,e){if(!St(t)||!St(e))return[];for(var n=[],a=t;a<=e;)n.push(a),a=xo(a,1);return n}}return v(r,[{key:"addToDate",value:function(e,n){return Ws(e,n)}},{key:"datesList",value:function(e,n){return Ba(0,n).map(function(a){return Ws(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate;if(!f)return jrt;var g=Ba(0,4),_=oo(f),C=NC(f),w=Il();return Ba(0,3).map(function(E){var M=xo(_,4*E);return g.map(function(R){var N=n.normalize(xo(M,R),u,l),V=N.getFullYear()>C.getFullYear();if(!n.isInRange(N,u,l)||V)return null;var U=n.isEqual(N,h.start),ee=n.isEqual(N,h.end),G=!U&&!ee&&P1(N,h);return{formattedValue:n.value(N),id:"".concat(a).concat(N.getTime()),isFocused:n.isEqual(N,o),isSelected:s&&c.some(function(I){return n.isEqual(N,I)}),isWeekend:!1,isRangeStart:U,isRangeMid:G,isRangeEnd:ee,isRangeSplitEnd:G&&n.isEqual(N,C),isRangeSplitStart:G&&n.isEqual(N,_),isToday:n.isEqual(N,w),title:n.cellTitle(N),value:N}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&e.getFullYear()===n.getFullYear()}},{key:"isInArray",value:function(e,n){if(!n.length)return!1;var a=e.getFullYear();return n[0].getFullYear()<=a&&a<=n[n.length-1].getFullYear()+9}},{key:"isInRange",value:function(e,n,a){var o=e.getFullYear(),s=!n||n.getFullYear()<=o,l=!a||o<=a.getFullYear();return s&&l}},{key:"beginningOfPeriod",value:function(e){if(!e)return e;var n=oo(e);return Ao(n.getFullYear(),0,1)}},{key:"lastDayOfPeriod",value:function(e){var n=NC(e),a=FC(n);return Ml(a)}},{key:"isRangeStart",value:function(e){return e.getFullYear()%100==0}},{key:"move",value:function(e,n){var a=$rt[n];return a?a(e):e}},{key:"cellTitle",value:function(e){return e.getFullYear().toString()}},{key:"navigationTitle",value:function(e){return e?oo(e).getFullYear().toString():""}},{key:"title",value:function(e){return e?"".concat(oo(e).getFullYear()," - ").concat(NC(e).getFullYear()):""}},{key:"rowLength",value:function(){return 4}},{key:"skip",value:function(e,n){return Aae(n,e)}},{key:"total",value:function(e,n){return Aae(e,n)+1}},{key:"value",value:function(e){return e?e.getFullYear().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),qrt=[[]],Zrt=(De(Eu={},zt.Left,function(i){return rs(i,-1)}),De(Eu,zt.Up,function(i){return xae(i,-1)}),De(Eu,zt.Right,function(i){return rs(i,1)}),De(Eu,zt.Down,function(i){return xae(i,1)}),De(Eu,zt.PrevView,function(i){return Kr(i,-1)}),De(Eu,zt.NextView,function(i){return Kr(i,1)}),De(Eu,zt.FirstInView,function(i){return Mae(i)}),De(Eu,zt.LastInView,function(i){return Ml(i)}),Eu),AB=function(){var i=function(){function r(t){p(this,r),this._intlService=t,this.dateRange=function(e,n){if(!St(e)||!St(n))return[];for(var a=[],o=e;o<=n;)a.push(o),o=rs(o,1);return a}}return v(r,[{key:"addToDate",value:function(e,n){return Kr(e,n)}},{key:"datesList",value:function(e,n){return Ba(0,n).map(function(a){return Kr(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate,g=e.isDateDisabled,_=void 0===g?function(){return!1}:g;if(!f)return qrt;var C=Mae(f),w=Ii(C),E=Ml(f),M=Ii(E),N=Rae(C,this._intlService.firstDay(),-1),V=Ba(0,7),U=Il();return Ba(0,6).map(function(ee){var ve=rs(N,7*ee);return V.map(function(G){var I=n.normalize(rs(ve,G),u,l),K=Ii(I),H=KM;if(Il)return null;var me=n.isEqual(I,h.start),ae=n.isEqual(I,h.end),Ce=!me&&!ae&&P1(I,h);return{formattedValue:n.value(I),id:"".concat(a).concat(I.getTime()),isFocused:n.isEqual(I,o),isSelected:s&&c.some(function(ye){return n.isEqual(I,ye)}),isWeekend:n.isWeekend(I),isRangeStart:me,isRangeMid:Ce,isRangeEnd:ae,isRangeSplitStart:Ce&&n.isEqual(I,C),isRangeSplitEnd:Ce&&n.isEqual(I,E),isToday:n.isEqual(I,U),title:n.cellTitle(I),value:I,isDisabled:_(I),isOtherMonth:H}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&Ii(e).getTime()===Ii(n).getTime()}},{key:"isInArray",value:function(e,n){if(0===n.length)return!1;var a=this.beginningOfPeriod(n[0]),o=this.beginningOfPeriod(Kr(n[n.length-1],1));return a<=e&&e0&&void 0!==arguments[0]?arguments[0]:{};return 7+(e.prependCell?1:0)}},{key:"skip",value:function(e,n){return Oae(n,e)}},{key:"total",value:function(e,n){return Oae(e,n)+1}},{key:"value",value:function(e){return e?e.getDate().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}},{key:"wideMonthNames",value:function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Yrt=[[]],tat=(De(Tu={},zt.Left,function(i){return Kr(i,-1)}),De(Tu,zt.Up,function(i){return Kr(i,function(r){return r>4?-5:r<2?-2:-7}(i.getMonth()))}),De(Tu,zt.Right,function(i){return Kr(i,1)}),De(Tu,zt.Down,function(i){return Kr(i,function(r){return r<7?5:r<10?7:2}(i.getMonth()))}),De(Tu,zt.PrevView,function(i){return xo(i,-1)}),De(Tu,zt.NextView,function(i){return xo(i,1)}),De(Tu,zt.FirstInView,function(i){return Iae(i)}),De(Tu,zt.LastInView,function(i){return FC(i)}),Tu),MB=function(){var i=function(){function r(t){p(this,r),this._intlService=t,this.dateRange=function(e,n){if(!St(e)||!St(n))return[];for(var a=[],o=e;o<=n;)a.push(o),o=Kr(o,1);return a}}return v(r,[{key:"addToDate",value:function(e,n){return xo(e,n)}},{key:"datesList",value:function(e,n){return Ba(0,n).map(function(a){return xo(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate;if(!f)return Yrt;var g=this.abbrMonthNames(),_=Iae(f),C=FC(f),w=_.getFullYear(),E=Ba(0,4),M=Il();return Ba(0,3).map(function(R){var N=Kr(_,4*R);return E.map(function(V){var U=n.normalize(Kr(N,V),u,l),ee=w2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),nat=(De(um={},vt.month,AB),De(um,vt.year,MB),De(um,vt.decade,EB),De(um,vt.century,wB),um),Nl=function(){var i=function(){function r(t){p(this,r),this.injector=t,this.viewChanged=new O,this.bottom=vt.month,this.top=vt.century}return v(r,[{key:"configure",value:function(e,n){this.bottom=e,this.top=n}},{key:"service",value:function(e){var n=nat[e];return n?this.injector.get(n):null}},{key:"moveDown",value:function(e){this.move(e,-1)}},{key:"moveUp",value:function(e){this.move(e,1)}},{key:"moveToBottom",value:function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})}},{key:"canMoveDown",value:function(e){return this.bottomthis.top?this.top:e}},{key:"move",value:function(e,n){var a=this.clamp(function(r,t){var e=vt[vt[r+t]];return void 0!==e?e:r}(e,n));a!==e&&this.viewChanged.emit({view:a})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),RB=function(){var i=function(){function r(t){p(this,r),this.intl=t}return v(r,[{key:"getWeekNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Roe(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(n):n}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),OB=function(r,t,e){for(;r&&r!==e&&!t(r);)r=r.parentNode;if(r!==e)return r},IB=function(r,t){for(;r&&!t(r);)r=r.parentNode;return r},Foe=function(){return!1},Ru=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.isDateDisabled=Foe}return v(r,[{key:"initialize",value:function(e){if("function"==typeof e)this.isDateDisabled=function(o){return e(Ii(o))};else if(function(r){return Array.isArray(r)&&r.length>0&&r.every(function(t){return"number"==typeof t})}(e)){var n=new Set(e);this.isDateDisabled=function(o){return n.has(o.getDay())}}else if(function(r){return Array.isArray(r)&&r.length>0&&r.every(function(t){return t instanceof Date})}(e)){var a=new Set(e.map(function(o){return Ii(o).getTime()}));this.isDateDisabled=function(o){return a.has(Ii(o).getTime())}}else this.isDateDisabled=Foe,this.notifyInvalidInput(e);this.notifyServiceChange()}},{key:"notifyInvalidInput",value:function(e){if(St(e)&&xt())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check ".concat("https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/"," for more information."))}},{key:"notifyServiceChange",value:function(){this.changes.next()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),aat=function(){function i(r,t,e,n){p(this,i),this.$implicit=r,this.kForOf=t,this.index=e,this.count=n}return v(i,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),i}(),V1=function(){var i=function(){function r(t,e,n){p(this,r),this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return v(r,[{key:"kForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngOnChanges",value:function(e){if("kForOf"in e){var n=e.kForOf.currentValue;if(this._differ||!n)return;try{this._differ=this._differs.find(n).create(this.kForTrackBy)}catch(a){throw new Error("Cannot find a differ supporting object '".concat(n,"' of type '").concat(function oat(i){return i.name||typeof i}(n),"'."))}}}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}}},{key:"_applyChanges",value:function(e){if(Ze()){var n=this._viewContainer.length,a=this.kForOf.length,o={};e.forEachOperation(function(d,h,f){null!==f&&(o[f]=d.item)});for(var s=n;sa;l--)this._viewContainer.remove(l-1);for(var u=0;u0&&lh(e,"views");(o||!this.isInDates(n)||s||!this.activeDate)&&(this.dates=this.service.datesList(a,this.getTake(this.skip)),this.activeDate=Ke(this.dates[0]),this.activeDateChange.emit(this.activeDate))}}},{key:"ngAfterViewInit",value:function(){1===this.views&&this.setTableMinWidth()}},{key:"ngOnDestroy",value:function(){this.intlSubscription.unsubscribe()}},{key:"initService",value:function(){this.service=this.bus.service(this.activeView)}},{key:"isMonthView",value:function(){return this.activeView===vt.month}},{key:"getCaptionTitle",value:function(e){return this.service.title(e)}},{key:"getCaptionClass",value:function(){return this.isMonthView()?"k-month-header":"k-meta-header"}},{key:"animateView",value:function(e){var n=this,a=this.element.nativeElement,o=a.querySelector("table"),s=parseFloat(getComputedStyle(a).width),l=parseFloat(getComputedStyle(o).width);this.renderer.setStyle(a,"width","".concat(s,"px")),this.renderer.setStyle(a,"overflow","visible"),e===zt.NextView?this.nextAnimationDate=Ke(this.dates[0]):this.prevAnimationDate=Ke(this.dates[this.dates.length-1]),this.cdr.detectChanges(),a.querySelectorAll("table").forEach(function(f){n.renderer.setStyle(f,"width","".concat(l,"px")),1===n.views&&n.renderer.setStyle(f,"min-width","".concat(s,"px"))});var u=o.getBoundingClientRect(),c=parseFloat(getComputedStyle(a).columnGap),d=e===zt.NextView?"translateX(0)":"translateX(-".concat(u.width+c,"px)"),h=e===zt.NextView?"translateX(-".concat(u.width+c,"px)"):"translateX(0)";this.animation?this.animation.cancel():(this.animation=a.animate([{transform:d},{transform:h}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=function(){n.renderer.removeStyle(a,"width"),n.renderer.removeStyle(a,"overflow"),a.querySelectorAll("table").forEach(function(f){n.renderer.removeStyle(f,"width")}),n.animation=null,n.nextAnimationDate=null,n.prevAnimationDate=null,n.cdr.detectChanges()})}},{key:"navigate",value:function(e){this.animateNavigation&&Ze()&&St(this.element.nativeElement.animate)&&this.animateView(e);var n=this.move(e),a=this.service.datesList(n,this.getTake(this.skip));return this.isListInRange(a)&&(this.dates=a),this.activeDate=Ke(this.dates[0]),this.focusedDate=Ke(n),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),Ke(n)}},{key:"canNavigate",value:function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))}},{key:"setTableMinWidth",value:function(){var e=this.element.nativeElement,n=e.querySelector("table");if(n){var a=parseFloat(getComputedStyle(e).width);this.renderer.setStyle(n,"min-width","".concat(a,"px"))}}},{key:"intlChange",value:function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()}},{key:"clampDate",value:function(e){return Mu(e,this.min,this.max)}},{key:"move",value:function(e){return this.service.move(this.dates[0]||this.focusedDate,e)}},{key:"isListInRange",value:function(e){var n=this.service.beginningOfPeriod(this.min),a=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return n<=e[0]&&e[e.length-1]u[0]?u[0]:uh(u)}else u=[n],l=n;else u=[n],l=n;return{selectedDates:u,rangePivot:l}}},{key:"isDateSelected",value:function(e,n){return e.some(function(a){return vi(a,n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Nl))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),z1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarCellTemplate",""]]}),i}(),H1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarMonthCellTemplate",""]]}),i}(),K1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarYearCellTemplate",""]]}),i}(),j1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarDecadeCellTemplate",""]]}),i}(),W1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarCenturyCellTemplate",""]]}),i}(),$1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarWeekNumberCellTemplate",""]]}),i}(),q1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarHeaderTitleTemplate",""]]}),i}(),UC=function(r){return function(t){return r&&t.value&&t.valuer?{maxError:{maxValue:r,value:t.value}}:null}},lat=function(){return null},X1=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-multiview-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[j]}),i}(),cat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(X1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoMultiViewCalendarLocalizedMessages",""]],features:[de([{provide:X1,useExisting:ke(function(){return i})}]),j]}),i}(),Goe="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",pat={multi:!0,provide:jn,useExisting:ke(function(){return fh})},gat={multi:!0,provide:tr,useExisting:ke(function(){return fh})},fh=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.bus=t,this.element=e,this.navigator=n,this.renderer=a,this.cdr=o,this.zone=s,this.disabledDatesService=l,this.selectionService=u,this.id=qn(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.isHeaderActive=!1,this.activeView=vt[vt.month],this.bottomView=vt[vt.month],this.topView=vt[vt.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new O,this.navigate=new O,this.cellEnter=new O,this.cellLeave=new O,this.valueChange=new O,this.blurEvent=new O,this.cellUID=qn(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=zt.PrevView,this.nextView=zt.NextView,this.selectedDates=[],this._min=new Date(Rl),this._max=new Date(Ol),this._focusedDate=Il(),this.resolvedPromise=Promise.resolve(),this.onControlChange=Gt,this.onControlTouched=Gt,this.onValidatorChange=Gt,this.minValidateFn=Gt,this.maxValidateFn=Gt,this.disabledDatesRangeValidateFn=Gt,this.subscriptions=new Je,this.setClasses(e.nativeElement)}return v(r,[{key:"focusedDate",get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||Il()}},{key:"min",get:function(){return this._min},set:function(e){this._min=e||new Date(Rl)}},{key:"max",get:function(){return this._max},set:function(e){this._max=e||new Date(Ol)}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(function(o){return St(o)}).map(function(o){return Ke(o)}):Ke(e);var n=[].concat(e).filter(function(o){return St(o)}).map(function(o){return Ke(o)});if(!G1(n,this.selectedDates)){var a=uh(n);this.rangePivot=Ke(a),this.focusedDate=Ke(a)||this.focusedDate,this.selectedDates=n}}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledDates",set:function(e){this.disabledDatesService.initialize(e)}},{key:"selectionRange",get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()}},{key:"cellTemplateRef",get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e}},{key:"monthCellTemplateRef",get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e}},{key:"yearCellTemplateRef",get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e}},{key:"decadeCellTemplateRef",get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e}},{key:"centuryCellTemplateRef",get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e}},{key:"weekNumberTemplateRef",get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e}},{key:"headerTitleTemplateRef",get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e}},{key:"activeViewEnum",get:function(){var e=vt[this.activeView];return et.end)return null;var n=function(r,t,e){if(!(r&&t&&e)||r>t)return[];for(var n=[],a=r;a<=t;)e(a)&&n.push(a),a=rs(a,1);return n}(t.start,t.end,r);return n.length?{disabledDatesInRange:n}:null}:lat}(this.disabledDatesService.isDateDisabled):Gt,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"ngAfterViewInit",value:function(){this.updateButtonState()}},{key:"focus",value:function(){!this.element||this.element.nativeElement.focus()}},{key:"blur",value:function(){!this.element||this.element.nativeElement.blur()}},{key:"handleHeaderFocus",value:function(){this.isHeaderActive=!0}},{key:"handleDateChange",value:function(e){var n=this,a=this.bus.canMoveDown(this.activeViewEnum),o=e.selectedDates.filter(function(l){return!n.disabledDatesService.isDateDisabled(l)});this.focusedDate=e.focusedDate||this.focusedDate;var s=!a&&G1(o,this.selectedDates);if(!this.disabled&&!s){if(a)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=o.map(function(l){return Ke(l)}),this.value=this.parseSelectionToValue(o),this.onControlChange(this.parseSelectionToValue(o)),this.valueChange.emit(this.parseSelectionToValue(o)))}}},{key:"handleTodayButtonClick",value:function(e){var n=e.focusedDate,a=this.bus.service(this.activeViewEnum).isInArray(n,this.viewList.dates),o=!this.bus.canMoveDown(this.activeViewEnum);!a&&o&&this.emitNavigate(n),this.handleDateChange(e)}},{key:"setActiveDate",value:function(e){this.activeDate=Ke(e),this.cdr.detectChanges()}},{key:"writeValue",value:function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()}},{key:"registerOnChange",value:function(e){this.onControlChange=e}},{key:"registerOnTouched",value:function(e){this.onControlTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.cdr.markForCheck()}},{key:"validate",value:function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)}},{key:"registerOnValidatorChange",value:function(e){this.onValidatorChange=e}},{key:"activeCellTemplate",value:function(){switch(this.activeViewEnum){case vt.month:return this.monthCellTemplateRef||this.cellTemplateRef;case vt.year:return this.yearCellTemplateRef;case vt.decade:return this.decadeCellTemplateRef;case vt.century:return this.centuryCellTemplateRef;default:return null}}},{key:"navigateView",value:function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)}},{key:"emitNavigate",value:function(e){this.navigate.emit({activeView:vt[this.activeViewEnum],focusedDate:e})}},{key:"emitCellEvent",value:function(e,n){ut(e)&&this.zone.run(function(){e.emit(n)})}},{key:"handleCellClick",value:function(e){this.performSelection(e.date,e.modifiers),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}},{key:"handleWeekNumberClick",value:function(e){var n=this;"single"!==this.selection&&this.zone.run(function(){n.handleDateChange({selectedDates:e,focusedDate:uh(e)})})}},{key:"setClasses",value:function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")}},{key:"verifyChanges",value:function(){if(xt()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max","."));if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview","."))}}},{key:"verifyValue",value:function(e){if(xt()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat(Goe," for possible resolution."));if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(function(a){return a instanceof Date}))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check ".concat(Goe," for possible resolution."))}}},{key:"updateButtonState",value:function(){var e=this;this.resolvedPromise.then(function(){e.isPrevDisabled=!e.viewList.canNavigate(e.prevView),e.isNextDisabled=!e.viewList.canNavigate(e.nextView),e.cdr.markForCheck()})}},{key:"parseSelectionToValue",value:function(e){return e=e||[],"single"===this.selection?Ke(uh(e)):e.map(function(n){return Ke(n)})}},{key:"performSelection",value:function(e,n){var a=this.selectionService.performSelection({date:e,modifiers:n,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=a.rangePivot,this.handleDateChange({selectedDates:a.selectedDates,focusedDate:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(_e),m(VC),m(Ee),m(nt),m(be),m(Ru),m(U1))},i.\u0275cmp=L({type:i,selectors:[["kendo-multiviewcalendar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,z1,5),he(n,H1,5),he(n,K1,5),he(n,j1,5),he(n,W1,5),he(n,$1,5),he(n,q1,5)),2&t&&(P(a=B())&&(e.cellTemplate=a.first),P(a=B())&&(e.monthCellTemplate=a.first),P(a=B())&&(e.yearCellTemplate=a.first),P(a=B())&&(e.decadeCellTemplate=a.first),P(a=B())&&(e.centuryCellTemplate=a.first),P(a=B())&&(e.weekNumberTemplate=a.first),P(a=B())&&(e.headerTitleTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(NB,5,_e),ge(Boe,5)),2&t&&(P(n=B())&&(e.headerElement=n.first),P(n=B())&&(e.viewList=n.first))},hostVars:6,hostBindings:function(t,e){1&t&&Q("focusout",function(a){return e.handleFocusout(a)})("focus",function(){return e.handleFocus()})("mouseenter",function(){return e.handleMouseEnter()})("mouseleave",function(){return e.handleMouseLeave()})("mousedown",function(a){return e.handleMousedown(a)})("click",function(){return e.handleClick()})("keydown",function(a){return e.keydown(a)}),2&t&&(ie("id",e.widgetId)("tabindex",e.calendarTabIndex)("aria-disabled",e.ariaDisabled)("aria-activedescendant",e.ariaActivedescendant),ue("k-disabled",e.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",isActive:"isActive",disabledDates:"disabledDates",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",views:"views",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange",blurEvent:"blur"},exportAs:["kendo-multiviewcalendar"],features:[de([Nl,pat,gat,Y,Ru,{provide:Et,useValue:"kendo.multiviewcalendar"},VC,U1]),Ie],decls:3,vars:28,consts:function(){return[["kendoMultiViewCalendarLocalizedMessages","","today",$localize(Lae||(Lae=le([":kendo.multiviewcalendar.today|The label for the today button in the calendar header:Today"]))),"prevButtonTitle",$localize(Pae||(Pae=le([":kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar:Navigate to previous view"]))),"nextButtonTitle",$localize(Bae||(Bae=le([":kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar:Navigate to next view"])))],[3,"activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","kendoEventsOutsideAngular","scope","todayButtonClick","prevButtonClick","nextButtonClick"],[3,"activeView","isActive","cellTemplateRef","weekNumberTemplateRef","cellUID","views","min","max","focusedDate","animateNavigation","showViewHeader","weekNumber","activeRangeEnd","selectionRange","selectedDates","cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange"]]},template:function(t,e){var n;1&t&&(Wt(0,0),A(1,"kendo-calendar-header",1),Q("todayButtonClick",function(o){return e.handleTodayButtonClick({selectedDates:[o],focusedDate:o})})("prevButtonClick",function(){return e.navigateView(e.prevView)})("nextButtonClick",function(){return e.navigateView(e.nextView)}),x(),A(2,"kendo-calendar-horizontal",2),Q("cellClick",function(o){return e.handleCellClick(o)})("weekNumberCellClick",function(o){return e.handleWeekNumberClick(o)})("cellEnter",function(o){return e.emitCellEvent(e.cellEnter,o)})("cellLeave",function(o){return e.emitCellEvent(e.cellLeave,o)})("activeDateChange",function(o){return e.setActiveDate(o)}),x()),2&t&&(k(1),y("activeView",e.activeViewEnum)("currentDate",e.activeDate)("min",e.min)("max",e.max)("rangeLength",e.views)("templateRef",null==e.headerTitleTemplateRef?null:e.headerTitleTemplateRef.templateRef)("isPrevDisabled",e.isPrevDisabled)("isNextDisabled",e.isNextDisabled)("showNavigationButtons",!0)("kendoEventsOutsideAngular",ot(26,Pit,e.handleHeaderFocus))("scope",e),k(1),y("activeView",e.activeViewEnum)("isActive",e.isActive||e.isHovered&&!e.isHeaderActive)("cellTemplateRef",null==(n=e.activeCellTemplate())?null:n.templateRef)("weekNumberTemplateRef",null==e.weekNumberTemplateRef?null:e.weekNumberTemplateRef.templateRef)("cellUID",e.cellUID)("views",e.views)("min",e.min)("max",e.max)("focusedDate",e.focusedDate)("animateNavigation",e.animateNavigation)("showViewHeader",e.showViewHeader)("weekNumber",e.weekNumber)("activeRangeEnd",e.activeRangeEnd)("selectionRange",e.selectionRange)("selectedDates",e.selectedDates))},directives:[NB,Boe,cat,qi],encapsulation:2,changeDetection:0}),i}(),_at=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0;p(this,i),this.total=r,this.rowHeight=t,this.detailRowHeight=e,this.offsets=[],this.heights=[];for(var n=0,a=0;athis.rowHeight&&this.updateRowHeight(t,-1*this.detailRowHeight)}},{key:"index",value:function(t){if(!(t<0)){var e=this.offsets.reduce(function(n,a,o){return void 0!==n?n:a===t?o:a>t?o-1:void 0},void 0);return void 0===e?this.total-1:e}}},{key:"offset",value:function(t){return this.offsets[t]}},{key:"totalHeight",value:function(){return this.heights.reduce(function(t,e){return t+e},0)}},{key:"updateRowHeight",value:function(t,e){this.heights[t]+=e,this.offsets=function(r,t,e){return[].concat(Ae(r.slice(0,t+1)),Ae(r.slice(t+1).map(function(n){return n+e})))}(this.offsets,t,e)}}]),i}(),Z1=function(r){return Math.max(r,0)},FB=v(function i(r){p(this,i),this.offset=r}),Y1=v(function i(r){p(this,i),this.skip=r}),yat=function(){function i(r){p(this,i),this.scrollObservable=r,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return v(i,[{key:"create",value:function(t,e,n,a){var o=this,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"vertical";this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+n,this.take=n,this.total=a,this.lastScroll=0,this.topOffset=s,this.bottomOffset=l,this.direction=u;var c=new I6(2),d=this.rowsForHeight(s),h=Z1(e-d);return c.next(new FB(this.rowOffset(h))),d&&c.next(new Y1(h)),this.subscription=new An(function(f){o.unsubscribe(),o.scrollSubscription=o.scrollObservable.subscribe(function(g){return o.onScroll(g,f)})}).subscribe(function(f){return c.next(f)}),c}},{key:"destroy",value:function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}},{key:"onScroll",value:function(t,e){var l="vertical"===this.direction?t.scrollTop:t.scrollLeft,u="vertical"===this.direction?t.offsetHeight:t.offsetWidth;if(this.lastScroll!==l){var c=this.lastScroll>=l;this.lastScroll=l;var d=this.rowHeightService.index(Z1(l-this.topOffset)),h=this.rowHeightService.index(Z1(l+u-this.bottomOffset));if(!c&&h>=this.lastLoaded&&this.lastLoadedi}}),x1),gv=function(){var i=function(){function r(t,e,n,a){p(this,r),this.container=e,this.renderer=n,this.zone=a,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new O,this.pageChange=new O,this.scrollChange=new O,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new Ot,this.scroller=t(this.dispatcher)}return v(r,[{key:"horizontalClass",get:function(){return"horizontal"===this.direction}},{key:"totalVertexLength",get:function(){var e="".concat(this.totalSize,"px");return"vertical"===this.direction?{height:e}:{width:e}}},{key:"containerOffsetSize",get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")}},{key:"containerScrollSize",get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")}},{key:"containerScrollPosition",get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")}},{key:"ngOnChanges",value:function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)}},{key:"ngOnInit",value:function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())}},{key:"ngAfterViewInit",value:function(){var e=this;this.zone.runOutsideAngular(function(){e.containerScrollSubscription=e.scroll$().pipe(We(function(n){return n.target})).subscribe(function(n){e.dispatcher.next(n),e.emitActiveIndex()})})}},{key:"ngOnDestroy",value:function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()}},{key:"getContainerProperty",value:function(e){return this.container.nativeElement[e]}},{key:"activeIndex",value:function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}},{key:"itemIndex",value:function(e){return this.rowHeightService.index(e)}},{key:"itemOffset",value:function(e){return this.rowHeightService.offset(e)}},{key:"isIndexVisible",value:function(e){if(!this.rowHeightService)return!1;var n=this.containerScrollPosition,a=n+this.containerOffsetSize,o=this.rowHeightService.offset(e),s=o+this.rowHeightService.height(e);return o>=n&&s<=a}},{key:"isListScrolled",value:function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)}},{key:"scrollTo",value:function(e){this.renderer.setProperty(this.container.nativeElement,"vertical"===this.direction?"scrollTop":"scrollLeft",e)}},{key:"scrollToIndex",value:function(e){var n=this;this.zone.runOutsideAngular(function(){n.resolvedPromise.then(function(){n.scrollTo(n.rowHeightService.offset(e))})})}},{key:"scrollToBottom",value:function(){this.scrollTo(this.totalSize)}},{key:"animateToIndex",value:function(e){var n=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var a=this.rowHeightService.offset(e),o=this.getContainerScrollDirection(a),s=this.scrollRange(a,o),l=s.start,u=s.end;if(l!==u){var c=this.scrollStep(l,u),d=bat[o](c),h=Sat[o](u),f=wat[o](d(u));this.zone.runOutsideAngular(function(){n.animationSubscription=zO(lt(l),aC(0,sit)).pipe(We(function(g){return g[0]}),HO(d),function lit(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return oi(function(t,e){var n=0;t.subscribe(Wn(e,function(a){var o=i(a,n++);(o||r)&&e.next(a),!o&&e.complete()}))})}(f),We(h)).subscribe(function(g){return n.scrollTo(g)})})}}},{key:"scrollRange",value:function(e,n){var a=this.containerScrollPosition;if(parseInt(e,10)===parseInt(a,10))return{start:e,end:e};var o=this.containerMaxScroll(),s=n===$s.Backward?1:-1,l=function(r,t,e){return Math.min(Math.abs(t-r),e)}(a,e,this.maxScrollDifference),u=Math.min(e,o);return{start:Math.min(Math.max(u+s*l,0),o),end:u}}},{key:"scrollStep",value:function(e,n){return Math.abs(n-e)/(this.scrollDuration/17)}},{key:"scroll$",value:function(){return Ze()?li(this.container.nativeElement,"scroll"):po}},{key:"initServices",value:function(){var e=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(function(n){n instanceof Y1?e.pageChange.emit(n):e.scrollChange.emit(n)})}},{key:"createRowHeightService",value:function(){return new _at(this.total,"vertical"===this.direction?this.itemHeight:this.itemWidth,0)}},{key:"emitActiveIndex",value:function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))}},{key:"containerMaxScroll",value:function(){return this.containerScrollSize-this.containerOffsetSize}},{key:"getContainerScrollDirection",value:function(e){return eFEB")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),i):null}}(),PB=function(r,t,e){var o,n=r.cells,a=r.rows;return function(){return Ze?(o||(o=function(r,t,e){return Q1([Q1('\n March 2017\n \n \n TODAY\n \n ',"k-calendar-header k-hstack"),e?zoe([Mat([LB([Uoe("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,Koe([r,r])],t,{left:"-10000px",position:"absolute"})}(function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return zoe([xat([LB([Uoe("1","k-calendar-th")],"k-calendar-tr")].concat(Hoe(r,function(){return LB(Hoe(t,function(e){return Aat(''.concat(e,""),"k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table")}(a,n),t,e)),o):null}},J1=function(r){return r.querySelector(".k-scrollable")},BB=function(r){return J1(r).classList.add("k-scrollable-horizontal"),r},joe=PB({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Woe=PB({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),$oe=PB({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),vh=function(r){return parseFloat(window.getComputedStyle(r).height)||r.offsetHeight},HC=function(r){var t=window.getComputedStyle(r);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||r.offsetWidth},hm=function(r){return r.querySelector("tbody")},KC=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"ensureHeights",value:function(){void 0===this.calendarHeight&&this.calculateHeights()}},{key:"calculateHeights",value:function(e){var n=this;!Ze()||(this.hostContainer=e,this.batch(joe(),function(a){var o=hm(a);n.calendarHeight=vh(a),n.monthViewHeight=vh(o),n.headerHeight=vh(o.children[0]),n.scrollableContentHeight=vh(J1(a))}),this.batch(BB(joe()),function(a){var o=hm(a);n.calendarWidth=HC(a),n.monthViewWidth=HC(o),n.scrollableContentWidth=HC(J1(a))}),this.batch(Woe(),function(a){n.yearViewHeight=vh(hm(a)),n.scrollableYearContentHeight=vh(J1(a))}),this.batch(BB(Woe()),function(a){n.yearViewWidth=HC(hm(a))}),this.batch($oe(),function(a){n.decadeViewHeight=vh(hm(a)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(BB($oe()),function(a){n.decadeViewWidth=HC(hm(a)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(Fat(),function(a){n.navigationItemHeight=vh(a.querySelector("li"))}))}},{key:"viewHeight",value:function(e){return this.viewDimension(e,"height")}},{key:"viewWidth",value:function(e){return this.viewDimension(e,"width")}},{key:"viewDimension",value:function(e,n){var a="height"===n?"ViewHeight":"ViewWidth";switch(e){case vt.month:return this["month".concat(a)];case vt.year:return this["year".concat(a)];case vt.decade:return this["decade".concat(a)];case vt.century:return this["century".concat(a)];default:return 1}}},{key:"batch",value:function(e,n){if(St(this.hostContainer)){var a=this.hostContainer.cloneNode();document.body.appendChild(a);try{n(a.appendChild(e))}catch(s){throw s}finally{document.body.removeChild(a)}}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),qoe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.bus=t,this.dom=e,this.intl=n,this.cdr=a,this.renderer=o,this.min=new Date(Rl),this.max=new Date(Ol),this.focusedDate=new Date,this.valueChange=new O,this.pageChange=new O,this.dates=[],this.take=30,this.indexToScroll=-1}return v(r,[{key:"getComponentClass",get:function(){return!0}},{key:"ngOnInit",value:function(){this.dom.ensureHeights();var e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}},{key:"ngOnChanges",value:function(e){if(this.service=this.bus.service(this.activeView),this.service){this.activeViewValue=vt[this.activeView];var n=Mu(this.focusedDate,this.min,this.max),a=this.service.total(this.min,this.max),o=this.total&&this.total!==a;this.skip=this.service.skip(n,this.min),this.total=a,(o||!this.service.isInArray(n,this.dates))&&(this.dates=this.service.datesList(n,this.getTake(this.skip))),(e.focusedDate||o)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe()}},{key:"ngAfterViewInit",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"ngAfterViewChecked",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"onPageChange",value:function(e){var n=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,n),this.getTake(n)),this.pageChange.emit()}},{key:"scrollChange",value:function(e){var a=this.list.nativeElement,o="translateY(".concat(e.offset,"px)");this.renderer.setStyle(a,"transform",o),this.renderer.setStyle(a,"-ms-transform",o)}},{key:"handleDateChange",value:function(e){var n=OB(e.target,function(s){return s.hasAttribute("data-date-index")},this.list.nativeElement);if(n){var a=parseInt(n.getAttribute("data-date-index"),10);this.valueChange.emit(Ke(this.dates[a]))}}},{key:"getTake",value:function(e){return Math.min(this.total-e,this.take)}},{key:"intlChange",value:function(){this.activeView===vt.month&&this.cdr.markForCheck()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(KC),m(fi),m(nt),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar-navigation"]],viewQuery:function(t,e){var n;1&t&&(ge(gv,5),ge(Doe,7)),2&t&&(P(n=B())&&(e.virtualization=n.first),P(n=B())&&(e.list=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-calendar-navigation",e.getComponentClass)},inputs:{activeView:"activeView",min:"min",max:"max",focusedDate:"focusedDate",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},features:[Ie],decls:5,vars:12,consts:[[1,"k-calendar-navigation-highlight"],[3,"skip","take","total","itemHeight","topOffset","bottomOffset","maxScrollDifference","pageChange","scrollChange"],[1,"k-reset",3,"kendoEventsOutsideAngular","scope"],["list",""],[4,"kFor","kForOf"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(z(0,"span",0),A(1,"kendo-virtualization",1),Q("pageChange",function(a){return e.onPageChange(a)})("scrollChange",function(a){return e.scrollChange(a)}),A(2,"ul",2,3),T(4,Vit,4,11,"li",4),x()()),2&t&&(k(1),y("skip",e.skip)("take",e.take)("total",e.total)("itemHeight",e.itemHeight)("topOffset",e.topOffset)("bottomOffset",e.bottomOffset)("maxScrollDifference",e.maxViewHeight),k(1),y("kendoEventsOutsideAngular",ot(10,sh,e.handleDateChange))("scope",e),k(2),y("kForOf",e.dates))},directives:[gv,qi,V1,qe,En],encapsulation:2,changeDetection:0}),i}(),Xoe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.bus=t,this.cdr=e,this.intl=n,this.dom=a,this.renderer=o,this.isActive=!0,this.min=new Date(Rl),this.max=new Date(Ol),this.selectedDates=[],this.cellClick=new O,this.weekNumberCellClick=new O,this.activeDateChange=new O,this.todayButtonClick=new O,this.pageChange=new O,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}return v(r,[{key:"weekNumber",get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e}},{key:"getComponentMonthClass",get:function(){return this.activeView===vt.month}},{key:"getComponentYearClass",get:function(){return this.activeView===vt.year}},{key:"getComponentDecadeClass",get:function(){return this.activeView===vt.decade}},{key:"getComponentCenturyClass",get:function(){return this.activeView===vt.century}},{key:"ngOnInit",value:function(){this.weekNames=this.getWeekNames(),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}},{key:"ngOnChanges",value:function(e){if(this.service=this.bus.service(this.activeView),this.service){this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=lh(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;var n=lh(e,"activeView"),a=this.focusedDate,o=Mu(this.service.viewDate(a,this.max,this.minViewsToRender),this.min,this.max),s=this.service.total(this.min,this.max),u=this.total&&this.total!==s||!this.service.isInArray(a,this.dates);this.skip=this.service.skip(o,this.min),this.total=s,this.animateToIndex=!n,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),u&&(this.dates=this.service.datesList(o,this.getTake(this.skip))),function(r,t){return r&&t&&r.getFullYear()===t.getFullYear()&&r.getMonth()===t.getMonth()}(this.activeDate,a)||(this.activeDate=Ke(a));var c=lh(e,"focusedDate")||n;(u||c||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(a,this.min))}}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe()}},{key:"ngAfterViewInit",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"ngAfterViewChecked",value:function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)}},{key:"onPageChange",value:function(e){var n=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,n),this.getTake(n)),this.pageChange.emit()}},{key:"scrollChange",value:function(e){var a=this.list.nativeElement,o="translateY(".concat(e.offset,"px)");this.renderer.setStyle(a,"transform",o),this.renderer.setStyle(a,"-ms-transform",o)}},{key:"setActiveDate",value:function(e){var n=this.service.addToDate(this.min,e);this.activeDate=n,this.activeDateChange.emit(n),this.cdr.detectChanges()}},{key:"isMonthView",value:function(){return this.activeView===vt.month}},{key:"isScrolled",value:function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))}},{key:"getBottomOffset",value:function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)}},{key:"getScrollableHeight",value:function(){return this.activeView===vt.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight}},{key:"getTake",value:function(e){return Math.min(this.total-e,this.take)}},{key:"getWeekNames",value:function(){var e=Roe(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e}},{key:"intlChange",value:function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(nt),m(fi),m(KC),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar-viewlist"]],viewQuery:function(t,e){var n;1&t&&(ge(gv,5),ge(Doe,7)),2&t&&(P(n=B())&&(e.virtualization=n.first),P(n=B())&&(e.list=n.first))},hostVars:12,hostBindings:function(t,e){2&t&&ue("k-vstack",e.getComponentClass)("k-calendar-view",e.getComponentClass)("k-calendar-monthview",e.getComponentMonthClass)("k-calendar-yearview",e.getComponentYearClass)("k-calendar-decadeview",e.getComponentDecadeClass)("k-calendar-centuryview",e.getComponentCenturyClass)},inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange"},features:[Ie],decls:8,vars:17,consts:[[3,"currentDate","min","max","activeView","templateRef","todayButtonClick"],["class","k-calendar-weekdays k-calendar-table","style","table-layout: auto;",4,"ngIf"],[3,"tabindex","skip","take","total","itemHeight","topOffset","bottomOffset","scrollOffsetSize","maxScrollDifference","pageChange","scrollChange","activeIndexChange"],["role","grid",1,"k-calendar-table"],["list",""],[4,"ngFor","ngForOf"],["class","k-calendar-tbody","kendoCalendarView","","role","rowgroup",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick",4,"kFor","kForOf"],[1,"k-calendar-weekdays","k-calendar-table",2,"table-layout","auto"],[1,"k-calendar-thead"],[1,"k-calendar-tr"],["class","k-calendar-th",3,"width",4,"ngFor","ngForOf"],[1,"k-calendar-th"],["kendoCalendarView","","role","rowgroup",1,"k-calendar-tbody",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick"]],template:function(t,e){1&t&&(A(0,"kendo-calendar-header",0),Q("todayButtonClick",function(a){return e.todayButtonClick.emit(a)}),x(),T(1,zit,4,1,"table",1),A(2,"kendo-virtualization",2),Q("pageChange",function(a){return e.onPageChange(a)})("scrollChange",function(a){return e.scrollChange(a)})("activeIndexChange",function(a){return e.setActiveDate(a)}),A(3,"table",3,4)(5,"colgroup"),T(6,Hit,1,0,"col",5),x(),T(7,Kit,1,11,"tbody",6),x()()),2&t&&(y("currentDate",e.activeDate)("min",e.min)("max",e.max)("activeView",e.activeView)("templateRef",e.headerTitleTemplateRef),k(1),y("ngIf",e.isMonthView()),k(1),y("tabindex",-1)("skip",e.skip)("take",e.take)("total",e.total)("itemHeight",e.viewHeight)("topOffset",e.viewOffset)("bottomOffset",e.bottomOffset)("scrollOffsetSize",e.viewOffset)("maxScrollDifference",e.viewHeight),k(4),y("ngForOf",e.cols),k(1),y("kForOf",e.dates))},directives:[NB,gv,Loe,qe,gn,V1],encapsulation:2,changeDetection:0}),i}(),Zoe=function(){var i=function(){function r(t,e){p(this,r),this.dom=t,this.zone=e}return v(r,[{key:"configure",value:function(e){var n=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(r){return function(t){return Math.floor(t/r)}}(n),this.powerByMagnitude=function(r){return function(t){return t*r}}(n)}},{key:"sync",value:function(e,n){var a=this;this.unsubscribe(),e&&n&&(this.navigator=e,this.view=n,this.zone.runOutsideAngular(function(){var o,s;a.navSubscription=e.scroll$().subscribe(function(l){s?s=!1:(o=!0,a.scrollSiblingOf(l.target))}),a.viewSubscription=n.scroll$().subscribe(function(l){o?o=!1:(s=!0,a.scrollSiblingOf(l.target))})}))}},{key:"scrollSiblingOf",value:function(e){var n=this.siblingComponent(e),a=this.calculateScroll(n,e.scrollTop);n.scrollTo(a)}},{key:"siblingComponent",value:function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator}},{key:"calculateScroll",value:function(e,n){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(n)}},{key:"destroy",value:function(){this.unsubscribe()}},{key:"unsubscribe",value:function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(KC),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Yoe=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarNavigationItemTemplate",""]]}),i}(),Xc=v(function i(){p(this,i),this.onFocus=new O,this.onBlur=new O,this.sameDateSelected=new O,this.dateCompletenessChange=new O}),Kat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(X1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-multiviewcalendar-messages"]],features:[de([{provide:X1,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),eT=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[j]}),i}(),jat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(eT);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarLocalizedMessages",""]],features:[de([{provide:eT,useExisting:ke(function(){return i})}]),j]}),i}(),Qoe="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",Joe=function(r){return r?r.virtualization:null},Zat={multi:!0,provide:jn,useExisting:ke(function(){return jC})},Yat={multi:!0,provide:tr,useExisting:ke(function(){return jC})},Qat={provide:Ui,useExisting:ke(function(){return jC})},jC=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h,f,g){p(this,r),this.bus=t,this.dom=e,this.element=n,this.navigator=a,this.renderer=o,this.cdr=s,this.ngZone=l,this.injector=u,this.scrollSyncService=c,this.disabledDatesService=d,this.localization=h,this.selectionService=f,this.pickerService=g,this.id=qn(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=vt[vt.month],this.bottomView=vt[vt.month],this.topView=vt[vt.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new O,this.navigate=new O,this.activeViewDateChange=new O,this.valueChange=new O,this.isActive=!1,this.cellUID=qn(),this.selectedDates=[],this._min=new Date(Rl),this._max=new Date(Ol),this._focusedDate=Il(),this.onControlChange=Gt,this.onControlTouched=Gt,this.onValidatorChange=Gt,this.minValidateFn=Gt,this.maxValidateFn=Gt,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,jt(cm),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}return v(r,[{key:"focusedDate",get:function(){return this._focusedDate},set:function(e){if(this.activeViewDate&&!vi(this._focusedDate,e)){var n=this.bus.service(this.activeViewEnum),a=n.lastDayOfPeriod(this.activeViewDate);n.isInRange(e,this.activeViewDate,a)||this.emitNavigate(e)}this._focusedDate=e||Il(),this.setAriaActivedescendant()}},{key:"min",get:function(){return this._min},set:function(e){this._min=e||new Date(Rl)}},{key:"max",get:function(){return this._max},set:function(e){this._max=e||new Date(Ol)}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(function(o){return St(o)}).map(function(o){return Ke(o)}):Ke(e);var n=[].concat(e).filter(function(o){return St(o)}).map(function(o){return Ke(o)});if(!G1(n,this.selectedDates)){var a=uh(n);this.rangePivot=Ke(a),this.focusedDate=Ke(a)||this.focusedDate,this.selectedDates=n}}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledDates",get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e}},{key:"type",get:function(){return this._type},set:function(e){this.renderer.removeClass(this.element.nativeElement,"k-calendar-".concat(this.type)),this.renderer.addClass(this.element.nativeElement,"k-calendar-".concat(e)),this._type=e}},{key:"cellTemplateRef",get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e}},{key:"monthCellTemplateRef",get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e}},{key:"yearCellTemplateRef",get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e}},{key:"decadeCellTemplateRef",get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e}},{key:"centuryCellTemplateRef",get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e}},{key:"weekNumberTemplateRef",get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e}},{key:"headerTitleTemplateRef",get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e}},{key:"navigationItemTemplateRef",get:function(){return this._navigationItemTemplateRef||this.navigationItemTemplate},set:function(e){this._navigationItemTemplateRef=e}},{key:"activeViewEnum",get:function(){var e=vt[this.activeView];return ethis.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max","."));if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview","."))}}},{key:"verifyValue",value:function(e){if(xt()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat(Qoe," for possible resolution."));if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(function(a){return a instanceof Date}))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check ".concat(Qoe," for possible resolution."))}}},{key:"bindEvents",value:function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"blur",this.handleBlur.bind(this)),this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",Art),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))}},{key:"emitBlur",value:function(e){this.pickerService&&this.pickerService.onBlur.emit(e)}},{key:"emitFocus",value:function(){this.pickerService&&this.pickerService.onFocus.emit()}},{key:"handleComponentClick",value:function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=Ke(this.focusedDate),this.detectChanges()),this.focus())}},{key:"handleKeydown",value:function(e){if("classic"!==this.type||!this.multiViewCalendar.isHeaderActive){var a=-1!==[J.ArrowUp,J.ArrowRight,J.ArrowDown,J.ArrowLeft].indexOf(e.keyCode);if(!(St(this.pickerService)&&a&&e.altKey)){St(this.pickerService)&&e.keyCode===J.Enter&&e.preventDefault();var o=Mu(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);vi(this.focusedDate,o)||(this.focusedDate=o,this.detectChanges(),e.preventDefault()),e.keyCode===J.Enter&&this.performSelection(this.focusedDate,e)}}}},{key:"detectChanges",value:function(){this.destroyed||this.cdr.detectChanges()}},{key:"emitSameDate",value:function(){this.pickerService&&this.pickerService.sameDateSelected.emit()}},{key:"setAriaActivedescendant",value:function(){if(St(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant"))){if("classic"===this.type)return void this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant");var e=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)}}},{key:"parseSelectionToValue",value:function(e){return e=e||[],"single"===this.selection?Ke(uh(e)):e.map(function(n){return Ke(n)})}},{key:"performSelection",value:function(e,n){var a=this.selectionService.performSelection({date:e,modifiers:n,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=a.rangePivot,this.handleDateChange({selectedDates:a.selectedDates,focusedDate:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(KC),m(_e),m(VC),m(Ee),m(nt),m(be),m(Jn),m(Zoe),m(Ru),m(Y),m(U1),m(Xc,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,z1,5),he(n,H1,5),he(n,K1,5),he(n,j1,5),he(n,W1,5),he(n,$1,5),he(n,q1,5),he(n,Yoe,5)),2&t&&(P(a=B())&&(e.cellTemplate=a.first),P(a=B())&&(e.monthCellTemplate=a.first),P(a=B())&&(e.yearCellTemplate=a.first),P(a=B())&&(e.decadeCellTemplate=a.first),P(a=B())&&(e.centuryCellTemplate=a.first),P(a=B())&&(e.weekNumberTemplate=a.first),P(a=B())&&(e.headerTitleTemplate=a.first),P(a=B())&&(e.navigationItemTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(qoe,5),ge(Xoe,5),ge(fh,5)),2&t&&(P(n=B())&&(e.navigationView=n.first),P(n=B())&&(e.monthView=n.first),P(n=B())&&(e.multiViewCalendar=n.first))},hostVars:7,hostBindings:function(t,e){2&t&&(ie("id",e.widgetId)("tabindex",e.calendarTabIndex)("aria-disabled",e.ariaDisabled),ue("k-week-number",e.weekNumber)("k-disabled",e.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",type:"type",animateNavigation:"animateNavigation",weekNumber:"weekNumber",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",valueChange:"valueChange"},exportAs:["kendo-calendar"],features:[de([Nl,Zat,Yat,Qat,Y,Ru,{provide:Et,useValue:"kendo.calendar"},VC,Zoe,U1]),Ie],decls:3,vars:2,consts:function(){return[["kendoCalendarLocalizedMessages","","today",$localize(Gae||(Gae=le([":kendo.calendar.today|The label for the today button in the calendar header:Today"]))),"prevButtonTitle",$localize(Vae||(Vae=le([":kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar:Navigate to previous view"]))),"nextButtonTitle",$localize(Uae||(Uae=le([":kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar:Navigate to next view"])))],[4,"ngIf"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange",4,"ngIf"],[3,"activeView","isActive","cellTemplateRef","headerTitleTemplateRef","weekNumberTemplateRef","cellUID","min","max","focusedDate","weekNumber","selectedDates","todayButtonClick","cellClick","weekNumberCellClick","activeDateChange","pageChange"],[3,"resize"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange"],[3,"views","min","max","isActive","activeView","bottomView","topView","weekNumber","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","headerTitleTemplate","weekNumberTemplate","focusedDate","selection","value","disabledDates","activeViewChange","navigate","valueChange","focus","blur","keydown"],["multiviewcalendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(t,e){1&t&&(Wt(0,0),T(1,Wit,4,12,"ng-container",1),T(2,$it,4,23,"ng-container",1)),2&t&&(k(1),y("ngIf","infinite"===e.type),k(1),y("ngIf","classic"===e.type))},directives:[qoe,Xoe,Gr,fh,Kat,jat,qe],encapsulation:2,changeDetection:0}),i}(),tT=function(){return function(r,t){return!St(r.value)&&t?{incompleteDate:!0}:null}},fm=function(){return function(i){i[i.Up=0]="Up",i[i.Down=1]="Down",i[i.None=2]="None"}(fm||(fm={})),fm}(),ese=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-dateinput-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[j]}),i}(),Jat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(ese);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDateInputLocalizedMessages",""]],features:[de([{provide:ese,useExisting:ke(function(){return i})}]),j]}),i}(),iot=/year|month|/,rot=/hour|minute|second|millisecond/,aot=/d|M|H|h|m|s/,nse=function(r){return r.replace(/^0*/,"")},uot=v(function i(){p(this,i),this.symbols=""}),cot=function(){function i(r,t,e,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:68;if(p(this,i),this.intl=r,this.formatPlaceholder=t,this.format=e,this.twoDigitYearMax=a,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=Ii(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},jt(cm),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),n)this.value=Ke(n);else{this.value=Ii(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,s=0;s0&&(this.setExisting(t,!0),this.value=n)}},{key:"parsePart",value:function(t,e,n){if(!e)return this.resetLeadingZero(),this.setExisting(t,!1),{value:null,switchToNext:!1};for(var a=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),s=o.symbols,l=!1,u="",c="",d="",h=0;h-1&&ee<12&&((g=Ke(this.value)).setMonth(ee),g.getMonth()!==ee&&(g=Ml(Kr(g,-1))))}"y"===t&&(g=Ao(parseInt(N,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&g.getDate()!==this.value.getDate()&&(g=Ml(Kr(g,-1))))}if(g){var ve=this.partPattern(o.partMap,t).pattern,G=this.intl.parseDate("".concat(u).concat(this.peek(N,ve)).concat(d),this.format),I=this.patternLength(ve)||ve.length,K=E+(nse(N)||e).length>=I,H=null===G||K;return this.shouldNormalizeCentury()&&(g=this.normalizeCentury(g)),this.value=g,this.setExisting(t,!0),{value:this.value,switchToNext:H}}}return _&&(g=this.intl.parseDate(u+_+d,this.format))?(this.value=g,this.setExisting(t,!0),{value:this.value,switchToNext:!1}):C&&(g=this.intl.parseDate(u+C+d,this.format))?(this.value=g,{value:this.value,switchToNext:!0}):(w&&this.setExisting(t,!1),{value:null,switchToNext:!1})}},{key:"resetLeadingZero",value:function(){var t=null!==this.leadingZero;return this.setLeadingZero(null),t}},{key:"setLeadingZero",value:function(t){this.leadingZero=t}},{key:"normalizeCentury",value:function(t){if(!St(t))return t;var e=function(r){return!St(r)||isNaN(r.getTime())?0:Number(r.getFullYear().toString().slice(-2))}(t),n=this.getNormalizedCenturyBase(e);return Rrt(t,n+e)}},{key:"incrementLeadingZero",value:function(t){var e=this.leadingZero||{};e[t]=(e[t]||0)+1,this.leadingZero=e}},{key:"isAbbrMonth",value:function(t,e){var n=this.partPattern(t,e);return"month"===n.type&&n.names}},{key:"partPattern",value:function(t,e){return t.filter(function(n){return-1!==n.pattern.indexOf(e)})[0]}},{key:"peek",value:function(t,e){var n=nse(t)+"0";return function(r){return new Array(Math.max(r,0)).fill("0").join("")}(e.length-n.length)+n}},{key:"matchMonth",value:function(t){if(this.typedMonthPart+=t.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(var e=0;e=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}},{key:"matchDayPeriod",value:function(t,e){var n=String(t).toLowerCase();if("a"===e&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""}},{key:"allFormatedMonths",value:function(){for(var t=this.intl.splitDateFormat(this.format),e=0;e0;)a.push(this.symbols[n[s].pattern[0]]||"_"),o.push(n[s]),l--;var u=new uot;return u.symbols=a.join(""),u.partMap=o,u}},{key:"merge",value:function(t,e){for(var n="",a="",o=e.symbols,s=o.length-1;s>=0;s--)if(-1===this.knownParts.indexOf(o[s])||this.getExisting(o[s]))n=t[s]+n,a=o[s]+a;else{for(var l=o[s];s>=0&&l===o[s];)s--;for(s++,n=this.leadingZero&&this.leadingZero[l]?"0"+n:this.dateFieldName(e.partMap[s])+n;a.lengththis.twoDigitYearMax?1900:2e3}}]),i}(),WC=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.cdr=t,this.intl=e,this.renderer=n,this.wrapper=a,this.ngZone=o,this.injector=s,this.localization=l,this.pickerService=u,this.focusableId="k-".concat(qn()),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new O,this.valueUpdate=new O,this.onFocus=new O,this.onBlur=new O,this.arrow=fm,this.arrowDirection=fm.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=Gt,this.maxValidator=Gt,this.incompleteValidator=Gt,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=Gt,this.onControlTouched=Gt,this.onValidatorChange=Gt,this._size=dh,this._rounded=ch,this._fillMode=hh,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}return v(r,[{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),(!this.autoCorrect||pv(e,this.min,this.max))&&(this._value=Ke(e),this.valueUpdate.emit(Ke(e)))}},{key:"size",get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,pr("input",this.size));var n=e||dh;"none"!==n&&this.renderer.addClass(this.wrapper.nativeElement,pr("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,os(this.rounded));var n=e||ch;"none"!==n&&this.renderer.addClass(this.wrapper.nativeElement,os(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,wr("input",this.fillMode));var n=e||hh;"none"!==n&&(this.renderer.addClass(this.wrapper.nativeElement,wr("input",n)),this.spinners&&this.spinup&&this.spindown&&(this.setSpinnerFill(this.spinup.nativeElement,n,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,n,this.fillMode))),this._fillMode=n}},{key:"wrapperClass",get:function(){return!0}},{key:"disabledClass",get:function(){return this.disabled}},{key:"inputElement",get:function(){return this.dateInput?this.dateInput.nativeElement:null}},{key:"inputValue",get:function(){return(this.inputElement||{}).value||""}},{key:"isActive",get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper&&!St(this.pickerService)){var n=this.wrapper.nativeElement;e?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus")}}},{key:"inputFormat",get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"}},{key:"displayFormat",get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"}},{key:"isEmpty",value:function(){return!this.currentValue||!String(this.currentValue).trim()}},{key:"containsElement",value:function(e){var n=this;return Boolean(IB(e,function(a){return a===n.wrapper.nativeElement}))}},{key:"ngOnChanges",value:function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?UC(this.min):Gt,this.maxValidator=this.rangeValidation?zC(this.max):Gt,this.incompleteValidator=this.incompleteDateValidation?tT():Gt,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var n=this.kendoDate&&vi(this.value,this.kendoDate.getDateObject());(e.format||!n||e.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(function(e){return e()})}},{key:"validate",value:function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)}},{key:"registerOnValidatorChange",value:function(e){this.onValidatorChange=e}},{key:"ngOnInit",value:function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(ra,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))}},{key:"ngAfterViewInit",value:function(){this.setComponentClasses()}},{key:"setDisabledState",value:function(e){this.disabled=e,this.cdr.markForCheck()}},{key:"writeValue",value:function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=Ke(e),this.updateElementValue(this.isActive)}},{key:"triggerChange",value:function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=Ke(e),this.notify())}},{key:"notify",value:function(){var e=this;this.ngZone.run(function(){e.onControlChange(Ke(e.value)),e.valueChange.emit(Ke(e.value))})}},{key:"registerOnChange",value:function(e){this.onControlChange=e}},{key:"registerOnTouched",value:function(e){this.onControlTouched=e}},{key:"focus",value:function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))}},{key:"blur",value:function(){var e=this.inputElement;e&&e.blur()}},{key:"handleButtonClick",value:function(e){this.arrowDirection=fm.None,this.modifyDateSegmentValue(e)}},{key:"modifyDateSegmentValue",value:function(e){var n=this.caret(),a=this.currentFormat[n[0]],o=(this.steps||{})[this.symbolsMap[a]]||1;if("S"===a&&!this.steps.millisecond){var s=function(r){var t=r&&r.match(/S+(\1)/);return t?t[0].length:0}(this.inputFormat);o=function(r){return Math.pow(10,3-r)}(s)}this.kendoDate.modifyPart(a,e*o),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(a),this.updateIncompleteValidationStatus()}},{key:"switchDateSegment",value:function(e){var n=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),n[0]0?n[0]:n[1]-1),this.resetSegmentValue=!0,!0;for(var a=this.currentFormat[n[0]],o=n[0]+e;o>0&&o=0&&ss&&(s+1!==n[0]||o+1!==n[1])?(this.caret(s+1,o+1),this.resetSegmentValue=!0,!0):o1&&void 0!==arguments[1]?arguments[1]:e,a=void 0!==e,o=[e,e],s=this.inputElement;if(!a||!this.disabled&&!this.readonly){try{void 0!==s.selectionStart&&(a&&(Ze()&&document.activeElement!==s&&s.focus(),s.setSelectionRange(e,n)),o=[s.selectionStart,s.selectionEnd])}catch(l){o=[]}return o}}},{key:"selectNearestSegment",value:function(e){for(var n=e,a=e-1;n=0;n++,a--){if(n=0&&"_"!==this.currentFormat[a])return void this.selectDateSegment(this.currentFormat[a])}}},{key:"verifyRange",value:function(){if(xt()&&!yB(this.min,this.max))throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max","."))}},{key:"verifyValue",value:function(e){if(xt()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json"," for possible resolution."))}},{key:"putDateInRange",value:function(){var e=this.kendoDate.getDateObject(),n=Mu(e,this.min,this.max);this.autoCorrect&&!vi(e,n)&&(this.kendoDate=this.getKendoDate(n))}},{key:"updateFormatSections",value:function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(function(e,n){var o=e.time;return{date:e.date||iot.test(n.type),time:o||rot.test(n.type)}},{date:!1,time:!1})}},{key:"intlChange",value:function(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)}},{key:"updateOnPaste",value:function(){var e=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value;St(e)&&this.kendoDate.shouldNormalizeCentury()&&(e=this.kendoDate.normalizeCentury(e));var n=+e!=+this.value;this.writeValue(e),n&&this.notify()}},{key:"bindEvents",value:function(){var e=this.wrapper.nativeElement,n=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(e,"DOMMouseScroll",n),this.renderer.listen(e,"mousewheel",n),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"paste",this.handlePaste.bind(this)),this.renderer.listen(e,"input",this.handleInput.bind(this)))}},{key:"handleMouseWheel",value:function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment((e.wheelDelta||-e.detail)>0?-1:1):this.modifyDateSegmentValue((e.wheelDelta||-e.detail)>0?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())}},{key:"handlePaste",value:function(){this.paste=!0}},{key:"handleKeydown",value:function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey)){if(e.keyCode===J.Tab)return void(this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault());if(e.keyCode===J.Backspace)return void(this.backspace=!0);switch(e.keyCode){case J.ArrowDown:this.modifyDateSegmentValue(-1);break;case J.ArrowUp:this.modifyDateSegmentValue(1);break;case J.ArrowRight:this.switchDateSegment(1);break;case J.ArrowLeft:this.switchDateSegment(-1);break;case J.Home:this.selectNearestSegment(0);break;case J.End:this.selectNearestSegment(this.inputValue.length);break;default:return}e.preventDefault()}}},{key:"handleInput",value:function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);var e=function(r,t,e,n){var a=n+r.length-e.length,o=r[a],s=r.substring(0,n+r.length-e.length),l=e.substring(0,n),u=[];if(s===l&&n>0)return u.push([t[n-1],l[n-1]]),u;if(0===s.indexOf(l)&&(0===l.length||t[l.length-1]!==t[l.length])){var c="";1===l.length&&u.push([t[0],l[0]]);for(var d=l.length;d=t&&r<=e},Lot=function(r,t,e){return!t&&!e||r>=t||r<=e},Cse=function(){var i=function(){function r(t){p(this,r),this.intl=t}return v(r,[{key:"apply",value:function(e,n){var a=e.getHours(),o=WB(a),s=WB(n.getHours());if(o&&s||!o&&!s)return e;var u=Bt(this.normalizedRange(),2),d=u[1],h=void 0===d?24:d;return jB(e,Math.min(Math.max(u[0],a+(s?-12:12)),h||24))}},{key:"configure",value:function(e){var n=e.min,o=e.max,s=void 0===o?this.max:o,l=e.part,u=void 0===l?this.part:l;this.min=void 0===n?this.min:n,this.max=s,this.part=u}},{key:"data",value:function(e){var n=this.part.names;if(!n)return[];var a=[],s=Bt(this.normalizedRange(),2),l=s[0],u=s[1],c=this.intl.dateFormatNames(n);return WB(l)&&a.push({text:c.am,value:jB(this.min,l)}),function(r){return null!==r&&(!r||r>11)}(u)&&a.push({text:c.pm,value:jB(this.min,Math.max(12,u))}),this.min.getHours()!==l?a.reverse():a}},{key:"isRangeChanged",value:function(e,n){return!1}},{key:"limitRange",value:function(e,n,a){return[e,n]}},{key:"total",value:function(){var n=Bt(this.normalizedRange(),2),a=n[0],o=n[1];return(a||o)&&(a>11||o<12)?1:2}},{key:"selectedIndex",value:function(e){if(!this.valueInList(e))return-1;var n=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?n:0===n?1:0}},{key:"valueInList",value:function(e){return(this.min.getHours()!==this.normalizedRange()[0]?Lot:Fot)(e.getHours(),this.min.getHours(),this.max.getHours())}},{key:"normalizedRange",value:function(){var e=this.min.getHours(),n=this.max.getHours();return[Math.min(e,n),Math.max(e,n)]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),$B=as("div"),Pot=as("ul"),Bot=as("li"),Got=as("span"),aT=(Ze()&&$B([Got("hour","k-title k-timeselector-title"),$B([$B([Pot([Bot("02","k-item")],"k-reset")],"k-time-container k-flex k-content k-calendar-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),De(fv={},"dayperiod",Cse),De(fv,"hour",lse),De(fv,"minute",hse),De(fv,"second",gse),De(fv,"millisecond",kse),new RegExp("".concat("hour","|").concat("minute","|").concat("second","|").concat("millisecond","|").concat("dayperiod","|literal")),new RegExp("".concat("hour","|").concat("minute","|").concat("second","|").concat("dayperiod","|literal")),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}()),gh=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),oT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[VC,wB,EB,AB,MB,RB],imports:[[bt,aT,Wg,gh,Fa,cr],aT,gh]}),i}(),Pse=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),sT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[KC,wB,EB,AB,MB,RB],imports:[[bt,aT,oT,Wg,gh,Pse,cr,yo],aT,gh]}),i}(),$C=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Wg,cr]]}),i}(),Bse=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(iT);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-datepicker-messages"]],features:[de([{provide:iT,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),lT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[{provide:vm,useValue:Py}],imports:[[bt,$C,sT,Wg,Fa,gh,cr],gh]}),i}(),mh="undefined"!=typeof Uint8Array&&ml.browser&&(!ml.browser.msie||ml.browser.version>9),tG=function(){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(t){for(var e=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=0,a=e.length,o=[];n>>2,f=(3&u)<<6|c;o.push(s<<2|l>>>4),64!=u&&o.push(h),64!=c&&o.push(f)}return o},encode:function(t){for(var e=0,n=t.length,a="";e>>4,d=(15&s)<<2|l>>>6,h=63&l;e-n==2?d=h=64:e-n==1&&(h=64),a+=i.charAt(o>>>2)+i.charAt(c)+i.charAt(d)+i.charAt(h)}return a}}}();function Ni(i){var r=0,t=0;null==i?i=mh?new Uint8Array(256):[]:t=i.length;var e=mh?function(I){if(I>=i.length){var K=new Uint8Array(Math.max(I+256,2*i.length));K.set(i,0),i=K}}:function(){},n=mh?function(){return new Uint8Array(i.buffer,0,t)}:function(){return i},a=mh?function(I){if("string"==typeof I)return ee(I);var K=I.length;e(r+K),i.set(I,r),(r+=K)>t&&(t=r)}:function(I){if("string"==typeof I)return ee(I);for(var K=0;Kt&&(t=r)}function c(){return l()<<8|l()}function d(I){u(I>>8),u(I)}function g(){return 65536*c()+c()}function _(I){d(I>>>16&65535),d(65535&I)}function C(){var I=g();return I>=2147483648?I-4294967296:I}function w(I){_(I<0?I+4294967296:I)}function V(I){return ve(I,l)}function ee(I){for(var K=0;K=t},readByte:l,writeByte:u,readShort:c,writeShort:d,readLong:g,writeLong:_,readFixed:function E(){return g()/65536},writeFixed:function M(I){_(Math.round(65536*I))},readShort_:function h(){var I=c();return I>=32768?I-65536:I},writeShort_:function f(I){d(I<0?I+65536:I)},readLong_:C,writeLong_:w,readFixed_:function R(){return C()/65536},writeFixed_:function N(I){w(Math.round(65536*I))},read:V,write:a,readString:function U(I){return String.fromCharCode.apply(String,V(I))},writeString:ee,times:ve,get:n,slice:mh?function(I,K){if(i.buffer.slice)return new Uint8Array(i.buffer.slice(I,I+K));var H=new Uint8Array(K);return H.set(new Uint8Array(i.buffer,I,K)),H}:function(I,K){return i.slice(I,I+K)},offset:function(K){return null!=K?(r=K,G):r},skip:function(K){r+=K},toString:function(){throw new Error("FIX CALLER. BinaryStream is no longer convertible to string!")},length:function(){return t},saveExcursion:function(K){var H=r;try{return K()}finally{r=H}},writeBase64:function(K){window.atob?ee(window.atob(K)):a(tG.decode(K))},base64:function(){return tG.encode(n())}};return G}function qC(i,r){return Object.prototype.hasOwnProperty.call(i,r)}function nG(i){return Object.keys(i).sort(function(r,t){return r-t}).map(parseFloat)}var Ou=function(){function i(r,t){p(this,i),this.definition=t,this.length=t.length,this.offset=t.offset,this.file=r,this.rawData=r.raw,this.parse(r.raw)}return v(i,[{key:"raw",value:function(){return this.rawData.slice(this.offset,this.length)}},{key:"parse",value:function(){}}]),i}();(function(){var i=function(){function s(l){p(this,s),this.raw=l}return v(s,[{key:"compound",get:function(){return!1}},{key:"render",value:function(){return this.raw.get()}}]),s}(),o=function(){function s(l){p(this,s),this.raw=l;for(var u=this.glyphIds=[],c=this.idOffsets=[];;){var d=l.readShort();if(c.push(l.offset()),u.push(l.readShort()),!(32&d))break;l.skip(1&d?4:2),128&d?l.skip(8):64&d?l.skip(4):8&d&&l.skip(2)}}return v(s,[{key:"compound",get:function(){return!0}},{key:"render",value:function(u){for(var c=Ni(this.raw.get()),d=0;d0;)a[s++]=e.readShort();break;case 12:e.readShort(),o.length=e.readLong(),o.language=e.readLong();for(var N=e.readLong();N-- >0;){s=e.readLong();for(var V=e.readLong(),U=e.readLong();s<=V;)a[s++]=U++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+o.format)}})})}();var rr={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function Qc(i,r){i=i.toLowerCase(),rr[i]=function(){return rr[r]},rr[i+"|bold"]=function(){return rr[r+"|bold"]},rr[i+"|italic"]=function(){return rr[r+"|italic"]},rr[i+"|bold|italic"]=function(){return rr[r+"|bold|italic"]}}Qc("Times New Roman","serif"),Qc("Courier New","monospace"),Qc("Arial","sans-serif"),Qc("Helvetica","sans-serif"),Qc("Verdana","sans-serif"),Qc("Tahoma","sans-serif"),Qc("Georgia","sans-serif"),Qc("Monaco","monospace"),Qc("Andale Mono","monospace");var nn={};nn._root=nn,"undefined"!=typeof Element&&Element.prototype&&Element,"undefined"!=typeof window&&window.kendo&&window;!function(){var i={}}();function db(i,r){return Object.prototype.hasOwnProperty.call(i,r)}var Wue={toString:function(r){return r}},jct=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){Wue=t}},{key:"toString",value:function(t,e){return Wue.toString(t,e)}}]),i}(),$ue=jct;!function mce(i,r,t){return(1461*(i+4800+((r-13)/12|0))/4|0)+(367*(r-1-12*((r-13)/12|0))/12|0)-(3*((i+4900+((r-13)/12|0))/100|0)/4|0)+t-32075}(1900,0,-1);function Li(i,r){var t="";if(null!=i)if(Array.isArray(i))for(var e=0;e\r','\n \n \n \n \n ');var Lce,Pce,Bce,Gce,Vce,Uce,zce,Hce,Kce,jce,Wce,$ce,qce,Xce,Zce,Yce,Qce,Jce,ede,tde,nde,ide,rde,ade,ode,sde,lde,ude,cde,dde,hde,fde,vde,pde,gde,mde,_de,yde,kde,Cde,bde,Sde,wde,Dde,Ede,Tde,Ade,xde,Mde,Rde,Ode,Ide,Nde,Fde,Lde,Pde,Bde,Gde,Vde,Ude,zde,Hde,Kde,jde,Wde,$de,qde,Xde,Zde,Oht=function(r){var e=r.criteria;return"\n\n").concat(Li(e,function(n){var a=xv.customOperator(n),o=xv.customValue(n);return"')}),"\n")},Iht=function(r){return'')},Nht=function(r){var t=r.type,e=r.value;return'')},Fht=function(r){var e=r.values;return"\n ").concat(Li(e,function(n){return'\n ')}),"\n ")};function xv(i){return function(r){var e=r.columns,n=r.generators;return'\n\n ').concat(Li(e,function(a){return'\n \n ').concat(n[a.filter](a),"\n \n ")}),"\n")}({ref:i.ref,columns:i.columns,generators:{custom:Oht,dynamic:Iht,top:Nht,value:Fht}})}function Wht(i,r){}function $ht(i,r){if(1&i&&T(0,Wht,0,0,"ng-template",1),2&i){var t=D();y("ngTemplateOutlet",t.toolbarTemplateRef)("ngTemplateOutletContext",t.context)}}xv.customOperator=function(i){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[i.operator.toLowerCase()]},xv.customValue=function(i){function r(t){return t.replace(/([*?])/g,"~$1")}switch(i.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return r(i.value)+"*";case"endswith":case"doesnotendwith":return"*"+r(i.value);case"contains":case"doesnotcontain":return"*"+r(i.value)+"*";default:return i.value}},xv.dynamicFilterType=function(i){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[i.toLowerCase()]||i},$ue.register({toString:kL});var qht=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"k-pager-first":!0}},Xht=function(){return{"k-icon":!0,"k-i-seek-w":!0}},Yde=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"":!0}},Zht=function(){return{"k-icon":!0,"k-i-arrow-w":!0}};function Yht(i,r){if(1&i&&(A(0,"option",7),te(1,"... "),x()),2&i){var t=D();y("selected",!1),ie("aria-label",t.pageLabel(t.start-1))}}var Qht=function(r){return{"k-link":!0,"k-state-selected":r}};function Jht(i,r){if(1&i&&(A(0,"option",8),te(1),x()),2&i){var t=r.$implicit,e=D();y("value",t.toString())("selected",t===e.currentPage)("ngClass",ot(6,Qht,e.currentPage===t)),ie("aria-label",e.pageLabel(t))("aria-current",e.currentPage===t?"page":void 0),k(1),Nt(" ",t," ")}}function eft(i,r){if(1&i&&(A(0,"option",9),te(1,"... "),x()),2&i){var t=D();y("selected",!1),ie("aria-label",t.pageLabel(t.end+1))}}function tft(i,r){if(1&i){var t=Me();A(0,"li")(1,"span",10),Q("click",function(){re(t);var a=D();return a.changePage(a.start-2)})("keydown.enter",function(){re(t);var a=D();return a.changePage(a.start-2)}),te(2,"..."),x()()}if(2&i){var e=D();k(1),ie("aria-label",e.pageLabel(e.start-1))}}var nft=function(r){return{"k-link":!0,"k-state-selected":r,"k-pager-nav":!0}};function ift(i,r){if(1&i){var t=Me();A(0,"li")(1,"span",11),Q("click",function(){var s=re(t).$implicit;return D().changePage(s-1)})("keydown.enter",function(){var s=re(t).$implicit;return D().changePage(s-1)}),te(2),x()()}if(2&i){var e=r.$implicit,n=D();k(1),y("ngClass",ot(3,nft,n.currentPage===e)),ie("aria-label",n.pageLabel(e)),k(1),Nt(" ",e," ")}}function rft(i,r){if(1&i){var t=Me();A(0,"li")(1,"span",10),Q("click",function(){re(t);var a=D();return a.changePage(a.end)})("keydown.enter",function(){re(t);var a=D();return a.changePage(a.end)}),te(2,"..."),x()()}if(2&i){var e=D();k(1),ie("aria-label",e.pageLabel(e.end+1))}}var aft=function(){return{"k-pager-numbers":!0,"k-reset":!0}},oft=function(){return{"k-pager-input":!0,"k-label":!0}},sft=function(r,t){return{keydown:r,focusout:t}},lft=function(){return{"k-icon":!0,"k-i-arrow-e":!0}},uft=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"k-pager-last":!0}},cft=function(){return{"k-icon":!0,"k-i-seek-e":!0}};function dft(i,r){if(1&i){var t=Me();A(0,"div",4),Q("focusin",function(a){return re(t),D().onInnerFocusIn(a,"start")}),x()}2&i&&(y("tabindex",D().focusTrapTabIndex),ie("aria-hidden",!0))}function hft(i,r){if(1&i&&Wt(0,5),2&i){var t=D();y("ngTemplateOutlet",t.template.templateRef)("ngTemplateOutletContext",t.templateContext)}}function fft(i,r){1&i&&z(0,"kendo-pager-prev-buttons")}function vft(i,r){1&i&&z(0,"kendo-pager-numeric-buttons",8),2&i&&y("buttonCount",D(2).settings.buttonCount)}function pft(i,r){1&i&&z(0,"kendo-pager-input")}function gft(i,r){1&i&&z(0,"kendo-pager-next-buttons")}function mft(i,r){1&i&&z(0,"kendo-pager-info")}function _ft(i,r){1&i&&z(0,"kendo-pager-page-sizes",9,10),2&i&&y("pageSizes",D(2).settings.pageSizes)}function yft(i,r){if(1&i&&(Ge(0),T(1,fft,1,0,"kendo-pager-prev-buttons",2),T(2,vft,1,1,"kendo-pager-numeric-buttons",6),T(3,pft,1,0,"kendo-pager-input",2),T(4,gft,1,0,"kendo-pager-next-buttons",2),T(5,mft,1,0,"kendo-pager-info",2),T(6,_ft,2,1,"kendo-pager-page-sizes",7),Ve()),2&i){var t=D();k(1),y("ngIf",t.settings.previousNext),k(1),y("ngIf","numeric"===t.settings.type),k(1),y("ngIf","input"===t.settings.type),k(1),y("ngIf",t.settings.previousNext),k(1),y("ngIf",t.settings.info),k(1),y("ngIf",t.settings.pageSizes)}}function kft(i,r){if(1&i){var t=Me();A(0,"div",4),Q("focusin",function(a){return re(t),D().onInnerFocusIn(a,"end")}),x()}2&i&&(y("tabindex",D().focusTrapTabIndex),ie("aria-hidden",!0))}function Cft(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",11),Q("resize",function(){return re(t),D().resizeHandler()}),x()}}var bft=["kendoGroupIndicator",""],Qde=function(){return{lastTarget:!0}};function Sft(i,r){if(1&i&&(Ge(0),A(1,"div",3),te(2),x(),Ve()),2&i){var t=D();k(1),y("context",wt(2,Qde)),k(1),Nt(" ",t.text," ")}}var wft=function(r){return{field:r}},Dft=function(r,t){return{field:r,type:"groupIndicator",hint:t}};function Eft(i,r){if(1&i){var t=Me();A(0,"div",3)(1,"div",4),Q("directionChange",function(s){return re(t),D().directionChange(s)})("remove",function(s){return re(t),D().remove(s)}),x()()}if(2&i){var e=r.$implicit,n=r.index,a=D();y("context",ot(5,wft,e.field)),k(1),y("enableDrag",!0)("context",ln(7,Dft,e.field,a.groupTitles[n]))("group",e)("groupTitle",a.groupTitles[n])}}function Tft(i,r){1&i&&(A(0,"div",3),te(1,"\xa0"),x()),2&i&&y("context",wt(1,Qde))}var Aft=["kendoGridColGroup",""];function xft(i,r){1&i&&z(0,"col"),2&i&&ue("k-group-col",!0)}function Mft(i,r){1&i&&z(0,"col"),2&i&&ue("k-hierarchy-col",!0)}function Rft(i,r){1&i&&z(0,"col"),2&i&&Qe("width",r.$implicit.width,"px")}var uV=["*"];function Oft(i,r){if(1&i){var t=Me();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function Ift(i,r){if(1&i&&z(0,"kendo-grid-string-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("menuTabbingService",t.menuTabbingService)}}function Nft(i,r){if(1&i){var t=Me();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function Fft(i,r){if(1&i&&z(0,"kendo-grid-numeric-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("format",t.format)("decimals",t.decimals)("spinners",t.spinners)("min",t.min)("max",t.max)("step",t.step)("menuTabbingService",t.menuTabbingService)}}function Lft(i,r){if(1&i){var t=Me();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function Pft(i,r){if(1&i&&z(0,"kendo-grid-date-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("activeView",t.activeView)("bottomView",t.bottomView)("topView",t.topView)("format",t.format)("formatPlaceholder",t.formatPlaceholder)("placeholder",t.placeholder)("min",t.min)("max",t.max)("weekNumber",t.weekNumber)("menuTabbingService",t.menuTabbingService)}}function Bft(i,r){if(1&i){var t=Me();A(0,"li")(1,"input",2,3),Q("change",function(){var s=re(t).$implicit,l=Yt(2);return D().onChange(s.value,l)})("keydown.shift.tab",function(o){return re(t),D().onShiftTab(o)}),x(),A(3,"label",4),te(4),x()()}if(2&i){var e=r.$implicit,n=D();k(1),y("columnLabel",n.columnLabel)("name",n.idPrefix)("checked",n.isSelected(e.value)),ie("id",n.radioId(e.value)),k(2),ie("for",n.radioId(e.value)),k(1),at(e.text)}}var Gft=["resetButton"],Vft=["filterButton"];function Uft(i,r){if(1&i&&(Ge(0),Wt(1,9),Ve()),2&i){var t=D();k(1),y("filterService",t.childService)("column",t.column)("filter",t.childFilter)("menuTabbingService",t.menuTabbingService)}}function zft(i,r){}function Hft(i,r){if(1&i&&T(0,zft,0,0,"ng-template",11),2&i){var t=D(2);y("ngTemplateOutlet",t.column.filterMenuTemplateRef)("ngTemplateOutletContext",t.templateContext)}}function Kft(i,r){if(1&i&&(Ge(0),T(1,Hft,1,2,null,10),Ve()),2&i){var t=D();k(1),y("ngIf",t.column.filterMenuTemplateRef)}}var Jde=["anchor"],ehe=["template"];function jft(i,r){if(1&i){var t=Me();A(0,"kendo-grid-filter-menu-container",4),Q("close",function(){return re(t),D().close()})("keydown.escape",function(){return re(t),D().close()})("keydown.enter",function(a){return a.stopImmediatePropagation()}),x()}if(2&i){var e=D();y("column",e.column)("filter",e.filter)}}var Wft=function(r){return{"k-grid-filter":!0,"k-state-active":r}};function $ft(i,r){1&i&&z(0,"span",3),2&i&&y("ngClass",D().iconClass)}function qft(i,r){if(1&i&&(A(0,"div",4),Wt(1,5),z(2,"div"),x()),2&i){var t=D();y("@state",t.contentState),k(1),y("ngTemplateOutlet",t.contentTemplate.templateRef)}}function Xft(i,r){if(1&i){var t=Me();A(0,"kendo-grid-columnmenu-lock",3),Q("keydown.tab",function(a){re(t);var o=D(2);return o.onTab(a,!o.showStick)}),x()}2&i&&y("service",D(2).service)}function Zft(i,r){if(1&i){var t=Me();A(0,"kendo-grid-columnmenu-stick",3),Q("keydown.tab",function(a){return re(t),D(2).onTab(a,!0)}),x()}2&i&&y("service",D(2).service)}function Yft(i,r){if(1&i&&(T(0,Xft,1,1,"kendo-grid-columnmenu-lock",2),T(1,Zft,1,1,"kendo-grid-columnmenu-stick",2)),2&i){var t=D();y("ngIf",t.showLock),k(1),y("ngIf",t.showStick)}}var Qft=["applyButton"];function Jft(i,r){if(1&i&&(A(0,"label",3),z(1,"input",4),A(2,"span",5),te(3),x()()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),y("checked",!t.hidden)("disabled",n.isDisabled(t)),ie("data-index",e),k(2),at(t.displayTitle)}}function evt(i,r){if(1&i){var t=Me();A(0,"div",6)(1,"button",7),Q("click",function(){return re(t),D().cancelChanges()}),te(2),x(),A(3,"button",8,9),Q("keydown.tab",function(a){return re(t),D().onTab(a)})("click",function(){return re(t),D().applyChanges()}),te(5),x()()}if(2&i){var e=D();y("ngClass",e.actionsClass),k(2),at(e.resetText),k(3),at(e.applyText)}}function tvt(i,r){if(1&i){var t=Me();A(0,"kendo-grid-columnlist",2),Q("apply",function(a){return re(t),D().onApply(a)}),x()}if(2&i){var e=D();y("applyText",e.localization.get("columnsApply"))("resetText",e.localization.get("columnsReset"))("columns",e.columns)("autoSync",!1)("allowHideAll",!1)("actionsClass",e.actionsClass)("isLast",e.isLast)("isExpanded",e.expanded)("service",e.service)}}function nvt(i,r){if(1&i){var t=Me();A(0,"kendo-grid-filter-menu-container",2),Q("keydown.shift.tab",function(a){return a.stopImmediatePropagation()})("close",function(){return re(t),D().close()}),x()}if(2&i){var e=D();y("column",e.service.column)("menuTabbingService",e.service.menuTabbingService)("filter",e.service.filter)("actionsClass",e.actionsClass)("isLast",e.isLast)("isExpanded",e.expanded)}}var ivt=function(r,t){return{service:r,column:t}};function rvt(i,r){if(1&i&&Wt(0,5),2&i){var t=D(),e=Yt(6);y("ngTemplateOutlet",t.column.columnMenuTemplateRef||t.columnMenuTemplate||e)("ngTemplateOutletContext",ln(2,ivt,t.service,t.column))}}function avt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-sort",10,11),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function ovt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-lock",10,12),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function svt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-stick",10,13),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function lvt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-position",14,15),2&i){var t=Yt(1),e=D(2);y("showLock",e.hasLock)("showStick",e.hasStick)("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedPosition)}}function uvt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-chooser",16,17),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedColumns)}}function cvt(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-filter",16,18),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedFilter)}}function dvt(i,r){if(1&i){var t=Me();A(0,"kendo-grid-columnmenu-container",6),Q("keydown.escape",function(){return re(t),D().close()})("keydown.enter",function(a){return a.stopImmediatePropagation()}),T(1,avt,2,2,"kendo-grid-columnmenu-sort",7),T(2,ovt,2,2,"kendo-grid-columnmenu-lock",7),T(3,svt,2,2,"kendo-grid-columnmenu-stick",7),T(4,lvt,2,5,"kendo-grid-columnmenu-position",8),T(5,uvt,2,3,"kendo-grid-columnmenu-chooser",9),T(6,cvt,2,3,"kendo-grid-columnmenu-filter",9),x()}if(2&i){var e=D();k(1),y("ngIf",e.hasSort),k(1),y("ngIf",e.hasLock&&!e.hasPosition),k(1),y("ngIf",e.hasStick&&!e.hasPosition),k(1),y("ngIf",e.hasPosition),k(1),y("ngIf",e.hasColumnChooser),k(1),y("ngIf",e.hasFilter)}}var hvt=function(r){return{"k-state-active":r}},fvt=["dropdown"],the=function(){return{width:"auto"}};function vvt(i,r){if(1&i){var t=Me();A(0,"kendo-dropdownlist",2,3),Q("valueChange",function(a){return re(t),D().onChange(a)})("keydown",function(a){return re(t),D().dropdownKeydown(a)}),x()}if(2&i){var e=D();y("data",e.operators)("value",e.value)("valuePrimitive",!0)("popupSettings",wt(4,the))}}function pvt(i,r){if(1&i){var t=Me();A(0,"button",4),Q("click",function(){return re(t),D().clearClick()})("keydown",function(a){return re(t),D().clearKeydown(a)}),z(1,"span",5),x()}2&i&&y("title",D().clearText)}var gvt=["kendoGridFilterCell",""];function mvt(i,r){if(1&i&&(Ge(0),Wt(1,3),Ve()),2&i){var t=D(2);k(1),y("column",t.column)("filter",t.filter)}}function _vt(i,r){}function yvt(i,r){if(1&i&&T(0,_vt,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",t.column.filterCellTemplateRef)("ngTemplateOutletContext",t.templateContext)}}function kvt(i,r){if(1&i&&(Ge(0),T(1,yvt,1,2,null,0),Ve()),2&i){var t=D(2);k(1),y("ngIf",t.column.filterCellTemplateRef)}}function Cvt(i,r){if(1&i&&(Ge(0)(1,1),T(2,mvt,2,2,"ng-container",2),T(3,kvt,2,1,"ng-container",2),Ve()()),2&i){var t=D();k(1),y("ngSwitch",t.hasTemplate),k(1),y("ngSwitchCase",!1),k(1),y("ngSwitchCase",!0)}}var bvt=["kendoGridFilterRow",""];function Svt(i,r){1&i&&z(0,"td",3),2&i&&ue("k-group-cell",!0)}function wvt(i,r){1&i&&z(0,"td",3),2&i&&ue("k-hierarchy-cell",!0)}function Dvt(i,r){if(1&i&&z(0,"td",4),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-grid-header-sticky",t.sticky),y("ngStyle",n.addStickyStyles(t))("ngClass",t.filterClass)("column",t)("filter",n.filter)("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",n.lockedColumnsCount+e),ie("aria-label",n.filterLabel(t))}}var Evt=["kendoGridHeader",""];function Tvt(i,r){1&i&&z(0,"th",6)}function Avt(i,r){1&i&&z(0,"th",7),2&i&&y("logicalRowIndex",D().index)("logicalColIndex",0)}function xvt(i,r){if(1&i&&z(0,"kendo-grid-filter-menu",16),2&i){var t=D(3).$implicit,e=D(2);y("column",e.getColumnComponent(t))("filter",e.filter)("tabIndex",e.tabIndex)}}function Mvt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",17),2&i){var t=D(3).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)("sort",e.sort)("filter",e.filter)("sortable",e.sortable)("tabIndex",e.tabIndex)}}function Rvt(i,r){}function Ovt(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D(3).$implicit;k(1),at(t.displayTitle)}}var zT=function(r,t,e,n){return{templateRef:r,columnIndex:t,column:e,$implicit:n}};function Ivt(i,r){if(1&i&&(Ge(0),T(1,xvt,1,3,"kendo-grid-filter-menu",13),T(2,Mvt,1,8,"kendo-grid-column-menu",14),T(3,Rvt,0,0,"ng-template",15),T(4,Ovt,2,1,"ng-container",11),Ve()),2&i){var t=D(2).$implicit,e=D(2);k(1),y("ngIf",e.showFilterMenu&&e.isFilterable(e.getColumnComponent(t))),k(1),y("ngIf",e.showColumnMenu(t)),k(1),y("templateContext",eu(4,zT,t.headerTemplateRef,t.leafIndex,t,t)),k(1),y("ngIf",!t.headerTemplateRef)}}function Nvt(i,r){}function Fvt(i,r){if(1&i&&(Ge(0),A(1,"span",24),te(2),x(),Ve()),2&i){var t=D(3).$implicit;k(2),at(t.displayTitle)}}function Lvt(i,r){if(1&i&&(A(0,"span",25),te(1),x()),2&i){var t=D(3).$implicit,e=D(2);k(1),at(e.sortOrder(e.getColumnComponent(t).field))}}function Pvt(i,r){if(1&i&&z(0,"kendo-grid-filter-menu",16),2&i){var t=D(3).$implicit,e=D(2);y("column",e.getColumnComponent(t))("filter",e.filter)("tabIndex",e.tabIndex)}}function Bvt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",17),2&i){var t=D(3).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)("sort",e.sort)("filter",e.filter)("sortable",e.sortable)("tabIndex",e.tabIndex)}}function Gvt(i,r){if(1&i){var t=Me();Ge(0),A(1,"span",18)(2,"span",19,20),Q("click",function(o){re(t);var s=Yt(3),l=D(2).$implicit,u=D(2);return u.onSortClick(u.getColumnComponent(l),o,s)}),T(4,Nvt,0,0,"ng-template",15),T(5,Fvt,3,1,"ng-container",11),z(6,"span",21),T(7,Lvt,2,1,"span",22),x(),z(8,"span",23),T(9,Pvt,1,3,"kendo-grid-filter-menu",13),T(10,Bvt,1,8,"kendo-grid-column-menu",14),x(),Ve()}if(2&i){var e=D(2).$implicit,n=D(2);k(4),y("templateContext",eu(8,zT,e.headerTemplateRef,e.leafIndex,e,e)),k(1),y("ngIf",!e.headerTemplateRef),k(1),y("ngClass",n.sortIcon(n.getColumnComponent(e).field)),ie("aria-label",n.sortableLabel),k(1),y("ngIf",n.showSortNumbering(n.getColumnComponent(e))),k(1),y("innerHtml",n.sortStatus(n.getColumnComponent(e)),BS),k(1),y("ngIf",n.showFilterMenu&&n.isFilterable(n.getColumnComponent(e))),k(1),y("ngIf",n.showColumnMenu(e))}}function Vvt(i,r){if(1&i&&(Ge(0),z(1,"input",26),Ve()),2&i){var t=D(4);k(1),ie("id",t.selectAllCheckboxId())("aria-label",t.selectAllCheckboxLabel)}}function Uvt(i,r){if(1&i&&z(0,"span",27),2&i){var t=D(2).$implicit,e=D(2);y("column",t)("columns",e.columns)}}var zvt=function(r,t,e,n){return{field:r,type:"column",column:t,hint:e,lastColumn:n}};function Hvt(i,r){if(1&i){var t=Me();A(0,"th",10),Q("keydown",function(c){re(t);var d=D().$implicit,h=D(2);return h.onHeaderKeydown(h.getColumnComponent(d),c)}),T(1,Ivt,5,9,"ng-container",11),T(2,Gvt,11,13,"ng-container",11),T(3,Vvt,2,2,"ng-container",11),T(4,Uvt,1,2,"span",12),x()}if(2&i){var e=D(),n=e.$implicit,a=e.index,o=e.last,s=D().index,l=D();ue("k-filterable",l.showFilterMenu&&l.isFilterable(l.getColumnComponent(n))||l.showColumnMenu(n))("k-first",l.isFirstOnRow(l.getColumnComponent(n),a))("k-grid-header-sticky",n.sticky),y("logicalRowIndex",s)("logicalColIndex",l.logicalColumnIndex(n))("headerLabelText",n.title||l.getColumnComponent(n).field)("colSpan",n.colspan)("rowSpan",n.rowspan(l.totalColumnLevels))("enableDrag",l.shouldActivate(n))("context",eu(22,zvt,l.getColumnComponent(n).field,n,n.title||l.getColumnComponent(n).field,o&&0===a))("ngClass",n.headerClass)("ngStyle",n.sticky?l.addStickyStyles(n):n.headerStyle),ie("aria-sort",l.sortState(l.getColumnComponent(n)))("rowspan",n.rowspan(l.totalColumnLevels))("colspan",n.colspan),k(1),y("ngIf",!l.isSortable(l.getColumnComponent(n))),k(1),y("ngIf",l.isSortable(l.getColumnComponent(n))),k(1),y("ngIf",l.isCheckboxColumn(n)&&!n.headerTemplateRef&&n.showSelectAll),k(1),y("ngIf",l.resizable)}}function Kvt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",30),2&i){var t=D(2).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)}}function jvt(i,r){}function Wvt(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D(2).$implicit;k(1),at(t.displayTitle)}}function $vt(i,r){if(1&i&&z(0,"span",27),2&i){var t=D(2).$implicit,e=D(2);y("column",t)("columns",e.columns)}}var qvt=function(r,t,e){return{type:"columnGroup",column:r,hint:t,lastColumn:e}};function Xvt(i,r){if(1&i&&(A(0,"th",28),T(1,Kvt,1,4,"kendo-grid-column-menu",29),T(2,jvt,0,0,"ng-template",15),T(3,Wvt,2,1,"ng-container",11),T(4,$vt,1,2,"span",12),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=t.last,o=D().index,s=D();ue("k-first",s.isFirstOnRow(s.getColumnComponent(e),n))("k-filterable",s.showColumnMenu(e))("k-grid-content-sticky",e.sticky),y("logicalRowIndex",o)("logicalColIndex",s.logicalColumnIndex(e))("rowSpan",e.rowspan(s.totalColumnLevels))("colSpan",e.colspan)("headerLabelText",e.title||s.getColumnComponent(e).field)("enableDrag",s.shouldActivate(e))("context",va(21,qvt,e,e.title,a&&0===n))("ngClass",e.headerClass)("ngStyle",e.headerStyle),ie("rowspan",e.rowspan(s.totalColumnLevels))("colspan",e.colspan),k(1),y("ngIf",s.showColumnMenu(e)),k(1),y("templateContext",eu(25,zT,e.headerTemplateRef,s.lockedColumnsCount+n,e,e)),k(1),y("ngIf",!e.headerTemplateRef),k(1),y("ngIf",s.resizable)}}function Zvt(i,r){if(1&i&&(Ge(0),T(1,Hvt,5,27,"th",8),T(2,Xvt,5,30,"th",9),Ve()),2&i){var t=r.$implicit,e=D(2);k(1),y("ngIf",!e.isColumnGroupComponent(t)),k(1),y("ngIf",e.isColumnGroupComponent(t))}}function Yvt(i,r){if(1&i&&(A(0,"tr",2),T(1,Tvt,1,0,"th",3),T(2,Avt,1,2,"th",4),T(3,Zvt,3,2,"ng-container",5),x()),2&i){var t=r.index,e=D();y("logicalRowIndex",t)("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount),k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsForLevel(t))("ngForTrackBy",e.trackByIndex)}}function Qvt(i,r){if(1&i&&z(0,"tr",31),2&i){var t=D();y("columns",t.leafColumns)("filter",t.filter)("groups",t.groups)("detailTemplate",t.detailTemplate)("lockedColumnsCount",t.lockedColumnsCount)("logicalRowIndex",t.totalColumnLevels+1)("logicalSlaveRow",t.lockedColumnsCount>0)("logicalCellsCount",t.columns.length)("logicalSlaveCellsCount",t.unlockedColumnsCount)}}var Jvt=["kendoGridCell",""];function ept(i,r){}function tpt(i,r){if(1&i&&T(0,ept,0,0,"ng-template",5),2&i){var t=D(3);y("ngTemplateOutlet",t.column.templateRef)("ngTemplateOutletContext",t.templateContext)}}function npt(i,r){if(1&i&&(Ge(0),te(1),Wa(2,"valueOf"),Ve()),2&i){var t=r.$implicit,e=D(4);k(1),Nt(" ",aw(2,1,e.dataItem,t.field,t.format)," ")}}function ipt(i,r){if(1&i&&(Ge(0),T(1,npt,3,5,"ng-container",6),Ve()),2&i){var t=D(3);k(1),y("ngForOf",t.childColumns)}}function rpt(i,r){if(1&i&&(Ge(0),te(1),Wa(2,"valueOf"),Ve()),2&i){var t=D(3);k(1),at(aw(2,1,t.dataItem,t.column.field,t.column.format))}}function apt(i,r){if(1&i&&(Ge(0),z(1,"input",7),Ve()),2&i){var t=D(3);k(1),y("kendoGridSelectionCheckbox",t.rowIndex),ie("id",t.selectionCheckboxId)("aria-label",t.selectionCheckboxLabel)}}function opt(i,r){if(1&i&&(Ge(0),T(1,tpt,1,2,null,4),T(2,ipt,2,1,"ng-container",4),T(3,rpt,3,5,"ng-container",4),T(4,apt,2,3,"ng-container",4),Ve()),2&i){var t=D(2);k(1),y("ngIf",t.column.templateRef),k(1),y("ngIf",t.isSpanColumn),k(1),y("ngIf",t.isBoundColumn),k(1),y("ngIf",t.isCheckboxColumn&&!t.isNew)}}function spt(i,r){}var lpt=function(r){return{$implicit:r}};function upt(i,r){if(1&i&&T(0,spt,0,0,"ng-template",5),2&i){var t=D(3);y("ngTemplateOutlet",t.loadingTemplate)("ngTemplateOutletContext",ot(2,lpt,t.column))}}function cpt(i,r){1&i&&z(0,"div",9)}function dpt(i,r){if(1&i&&(T(0,upt,1,4,null,4),T(1,cpt,1,0,"div",8)),2&i){var t=D(2);y("ngIf",t.loadingTemplate),k(1),y("ngIf",!t.loadingTemplate)}}function hpt(i,r){if(1&i&&(Ge(0),T(1,opt,5,4,"ng-container",2),T(2,dpt,2,2,"ng-template",null,3,$n),Ve()),2&i){var t=Yt(3),e=D();k(1),y("ngIf",!e.showLoading)("ngIfElse",t)}}function fpt(i,r){}function vpt(i,r){if(1&i&&T(0,fpt,0,0,"ng-template",5),2&i){var t=D(2);y("ngTemplateOutlet",t.column.editTemplateRef)("ngTemplateOutletContext",t.editTemplateContext)}}function ppt(i,r){if(1&i&&z(0,"kendo-numerictextbox",14),2&i){var t=D(3);y("format",t.format)("formControl",t.formGroup.get(t.column.field))}}function gpt(i,r){if(1&i&&z(0,"kendo-datepicker",14),2&i){var t=D(3);y("format",t.format)("formControl",t.formGroup.get(t.column.field))}}function mpt(i,r){if(1&i&&z(0,"input",15),2&i){var t=D(3);y("formControl",t.formGroup.get(t.column.field))}}function _pt(i,r){if(1&i&&z(0,"input",16),2&i){var t=D(3);y("formControl",t.formGroup.get(t.column.field))}}function ypt(i,r){1&i&&(Ge(0,0),T(1,ppt,1,2,"kendo-numerictextbox",11),T(2,gpt,1,2,"kendo-datepicker",11),T(3,mpt,1,1,"input",12),T(4,_pt,1,1,"input",13),Ve()),2&i&&(y("ngSwitch",D(2).column.editor),k(1),y("ngSwitchCase","numeric"),k(1),y("ngSwitchCase","date"),k(1),y("ngSwitchCase","boolean"))}function kpt(i,r){if(1&i&&(Ge(0),T(1,vpt,1,2,null,4),T(2,ypt,5,4,"ng-container",10),Ve()),2&i){var t=D();k(1),y("ngIf",t.column.editTemplateRef),k(1),y("ngIf",!t.column.editTemplateRef)}}var Cpt=["kendoGridGroupHeader",""];function bpt(i,r){1&i&&z(0,"td",3)}function Spt(i,r){if(1&i&&(Ge(0),T(1,bpt,1,0,"td",2),Ve()),2&i){var t=D();k(1),y("ngForOf",t.prefixGroupCell(t.item))}}function wpt(i,r){if(1&i&&(Ge(0),te(1),Wa(2,"valueOf"),Ve()),2&i){var t=D(3);k(1),Jl(" ",t.groupTitle(t.item),": ",aw(2,2,t.item.data,"value",t.formatForGroup(t.item))," ")}}function Dpt(i,r){}var Ept=function(r,t){return{"k-i-collapse":r,"k-i-expand":t}},Tpt=function(r,t,e,n,a,o,s,l){return{templateRef:r,group:t,aggregates:e,value:n,field:a,index:o,expanded:s,$implicit:l}};function Apt(i,r){if(1&i){var t=Me();Ge(0),A(1,"a",6),Q("click",function(){re(t);var a=D(2);return a.toggleGroup(a.item)}),x(),T(2,wpt,3,6,"ng-container",0),T(3,Dpt,0,0,"ng-template",7),Ve()}if(2&i){var e=D(2);k(1),y("ngClass",ln(5,Ept,e.isExpanded,!e.isExpanded)),ie("title",e.groupButtonTitle)("aria-label",e.groupButtonTitle),k(1),y("ngIf",!e.groupHeaderTemplate(e.item)),k(1),y("templateContext",function I5(i,r,t,e,n,a,o,s,l,u,c){var d=Ha()+i,h=Oe(),f=Es(h,d,t,e,n,a);return Es(h,d+4,o,s,l,u)||f?Zl(h,d+8,c?r.call(c,t,e,n,a,o,s,l,u):r(t,e,n,a,o,s,l,u)):q_(h,d+8)}(8,Tpt,e.groupHeaderTemplate(e.item),e.item.data,null==e.item.data?null:e.item.data.aggregates,null==e.item.data?null:e.item.data.value,null==e.item.data?null:e.item.data.field,e.item.index,e.isExpanded,e.item.data))}}function xpt(i,r){if(1&i&&(A(0,"td",4)(1,"p",5),T(2,Apt,4,17,"ng-container",0),x()()),2&i){var t=D();y("logicalRowIndex",t.logicalRowIndex)("logicalColIndex",0)("logicalSlaveCell",t.skipGroupDecoration)("groupItem",t.item)("colSpan",t.logicalColSpan()),ie("colspan",t.groupSpan(t.item))("role",t.ariaRole())("aria-expanded",t.isExpanded),k(2),y("ngIf",!t.skipGroupDecoration)}}function Mpt(i,r){}var Rpt=function(r,t,e,n,a,o){return{group:r,aggregates:t,value:e,field:n,index:a,$implicit:o}};function Opt(i,r){if(1&i&&T(0,Mpt,0,0,"ng-template",10),2&i){var t=D().$implicit,e=D(2);y("ngTemplateOutlet",t.groupHeaderColumnTemplateRef)("ngTemplateOutletContext",ay(2,Rpt,e.item.data,null==e.item.data?null:e.item.data.aggregates,null==e.item.data?null:e.item.data.value,null==e.item.data?null:e.item.data.field,e.item.index,e.item.data))}}function Ipt(i,r){if(1&i&&(A(0,"td",9),T(1,Opt,1,9,null,0),x()),2&i){var t=r.$implicit,e=r.index,n=D(2);y("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",e+1)("logicalSlaveCell",!1)("groupItem",n.item)("colSpan",1),k(1),y("ngIf",t.groupHeaderColumnTemplateRef)}}function Npt(i,r){if(1&i&&(Ge(0),T(1,Ipt,2,6,"td",8),Ve()),2&i){var t=D();k(1),y("ngForOf",t.groupHeaderColumns)}}var Fpt=["kendoGridTableBody",""];function Lpt(i,r){1&i&&z(0,"td",8)}function Ppt(i,r){if(1&i&&(Ge(0),T(1,Lpt,1,0,"td",7),Ve()),2&i){var t=D(2);k(1),y("ngForOf",t.groups)}}function Bpt(i,r){1&i&&z(0,"td",9),2&i&&y("logicalRowIndex",D(2).addRowLogicalIndex())("logicalColIndex",0)}function Gpt(i,r){if(1&i&&z(0,"td",10),2&i){var t=r.$implicit,e=r.index,n=D(2);Qe("left",t.sticky?"0":void 0),ue("k-grid-content-sticky",t.sticky),y("rowIndex",-1)("columnIndex",n.lockedColumnsCount+e)("isNew",!0)("column",t)("dataItem",n.newDataItem)("ngClass",t.cssClass)("ngStyle",t.sticky?n.addStickyColumnStyles(t):t.style)("logicalRowIndex",n.addRowLogicalIndex())("logicalColIndex",n.logicalColIndex(t))("colSpan",t.colspan),ie("colspan",t.colspan)}}function Vpt(i,r){if(1&i&&(Ge(0),A(1,"tr",4),T(2,Ppt,2,1,"ng-container",0),T(3,Bpt,1,2,"td",5),T(4,Gpt,1,15,"td",6),x(),Ve()),2&i){var t=D();k(1),y("logicalRowIndex",t.addRowLogicalIndex())("logicalSlaveRow",t.lockedColumnsCount>0)("logicalCellsCount",t.columns.length)("logicalSlaveCellsCount",t.unlockedColumnsCount),k(1),y("ngIf",!t.skipGroupDecoration),k(1),y("ngIf",null==t.detailTemplate?null:t.detailTemplate.templateRef),k(1),y("ngForOf",t.columns)("ngForTrackBy",t.trackByColumns)}}function Upt(i,r){}var zpt=function(r){return{templateRef:r}};function Hpt(i,r){if(1&i&&T(0,Upt,0,0,"ng-template",12),2&i){var t=D(2);y("templateContext",ot(1,zpt,null==t.noRecordsTemplate?null:t.noRecordsTemplate.templateRef))}}function Kpt(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D(2);k(1),Nt(" ",t.noRecordsText," ")}}function jpt(i,r){if(1&i&&(A(0,"tr",11)(1,"td"),T(2,Hpt,1,3,null,0),T(3,Kpt,2,1,"ng-container",0),x()()),2&i){var t=D();k(1),ie("colspan",t.colSpan),k(1),y("ngIf",null==t.noRecordsTemplate?null:t.noRecordsTemplate.templateRef),k(1),y("ngIf",!(null!=t.noRecordsTemplate&&t.noRecordsTemplate.templateRef))}}function Wpt(i,r){if(1&i&&z(0,"tr",17),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("columns",a.columns)("groups",a.groups)("item",e)("hasDetails",!(null==a.detailTemplate||!a.detailTemplate.templateRef))("skipGroupDecoration",a.skipGroupDecoration)("hasGroupHeaderColumn",a.hasGroupHeaderColumn)("groupHeaderColumns",a.groupHeaderColumns)("rowIndex",n+1)("totalColumnsCount",a.totalColumnsCount)("logicalRowIndex",a.logicalRowIndex(n))("logicalSlaveRow",a.lockedColumnsCount>0)("logicalCellsCount",a.columns.length)("logicalSlaveCellsCount",a.groupHeaderSlaveCellsCount)}}function $pt(i,r){1&i&&z(0,"td",8)}function qpt(i,r){if(1&i&&(Ge(0),T(1,$pt,1,0,"td",7),Ve()),2&i){var t=D(3);k(1),y("ngForOf",t.groups)}}function Xpt(i,r){if(1&i){var t=Me();A(0,"a",23),Q("click",function(){re(t);var o=D(3).$implicit;return D().toggleRow(o.index,o.data)}),x()}if(2&i){var e=D(3).$implicit,n=D();y("ngClass",n.detailButtonStyles(e)),ie("title",n.detailButtonTitle(e))("aria-label",n.detailButtonTitle(e))}}function Zpt(i,r){if(1&i&&(A(0,"td",21),T(1,Xpt,1,3,"a",22),x()),2&i){var t=D(2),e=t.index,n=t.$implicit,a=D();y("logicalRowIndex",a.logicalRowIndex(e))("logicalColIndex",0)("dataRowIndex",n.index)("dataItem",n.data)("detailExpandCell",!0),k(1),y("ngIf",a.detailTemplate.showIf(n.data,n.index))}}function Ypt(i,r){if(1&i&&z(0,"td",24),2&i){var t=r.$implicit,e=r.index,n=D(2),a=n.$implicit,o=n.index,s=D();ue("k-grid-content-sticky",t.sticky)("k-touch-action-none",s.isSelectable()&&s.selectable.drag)("k-touch-action-auto",!(s.isSelectable()&&s.selectable.drag))("k-grid-edit-cell",s.isEditingCell(a.index,t))("k-state-selected",s.isSelectable&&s.cellSelectionService.isCellSelected(a,t)),y("rowIndex",a.index)("columnIndex",s.lockedColumnsCount+e)("column",t)("dataItem",a.data)("isLoading",s.isLoading)("isVirtual",s.isVirtual)("loadingTemplate",s.cellLoadingTemplate)("logicalRowIndex",s.logicalRowIndex(o))("logicalColIndex",s.logicalColIndex(t))("dataRowIndex",a.index)("dataItem",a.data)("colIndex",e)("colSpan",t.colspan)("ngClass",t.cssClass)("ngStyle",t.sticky?s.addStickyColumnStyles(t):t.style),ie("data-kendo-grid-column-index",s.lockedColumnsCount+e)("aria-selected",s.isSelectable()?s.isAriaSelected(a,t):void 0)("colspan",t.colspan)}}var nhe=function(r,t){return{dataItem:r,index:t}};function Qpt(i,r){if(1&i&&(A(0,"tr",18),T(1,qpt,2,1,"ng-container",0),T(2,Zpt,2,6,"td",19),T(3,Ypt,1,28,"td",20),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();ue("k-grid-row-sticky",!!a.rowSticky&&a.rowSticky(ln(22,nhe,e.data,e.index)))("k-alt",a.isOdd(e))("k-master-row",null==a.detailTemplate?null:a.detailTemplate.templateRef)("k-grid-edit-row",a.isEditingRow(e.index))("k-state-selected",a.isSelectable()&&a.isRowSelected(e)),y("dataRowIndex",e.index)("dataItem",e.data)("logicalRowIndex",a.logicalRowIndex(n))("logicalSlaveRow",a.lockedColumnsCount>0)("logicalCellsCount",a.columns.length)("logicalSlaveCellsCount",a.unlockedColumnsCount)("ngClass",a.rowClass(ln(25,nhe,e.data,e.index))),ie("data-kendo-grid-item-index",e.index),k(1),y("ngIf",!a.skipGroupDecoration),k(1),y("ngIf",null==a.detailTemplate?null:a.detailTemplate.templateRef),k(1),y("ngForOf",a.columns)("ngForTrackBy",a.trackByColumns)}}function Jpt(i,r){1&i&&z(0,"td",30)}function egt(i,r){}var tgt=function(r,t,e){return{dataItem:r,rowIndex:t,$implicit:e}};function ngt(i,r){if(1&i&&(A(0,"tr",25),T(1,Jpt,1,0,"td",26),z(2,"td",27),A(3,"td",28),T(4,egt,0,0,"ng-template",29),x()()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();ue("k-alt",a.isOdd(e)),y("dataRowIndex",e.index)("dataItem",e.data)("logicalRowIndex",a.logicalRowIndex(n)+1)("logicalSlaveRow",!1)("logicalCellsCount",1),k(1),y("ngForOf",a.groups),k(2),y("logicalRowIndex",a.logicalRowIndex(n)+1)("logicalColIndex",0)("dataRowIndex",e.index)("dataItem",e.data)("colIndex",0)("colSpan",a.allColumnsSpan+1),ie("colspan",a.columnsSpan),k(1),y("ngTemplateOutlet",a.detailTemplate.templateRef)("ngTemplateOutletContext",va(17,tgt,e.data,e.index,e.data))}}function igt(i,r){1&i&&z(0,"td",30)}function rgt(i,r){if(1&i&&(Ge(0),T(1,igt,1,0,"td",26),Ve()),2&i){var t=D(3);k(1),y("ngForOf",t.groups)}}function agt(i,r){if(1&i&&z(0,"td",9),2&i){var t=D(2).index;y("logicalRowIndex",D().logicalRowIndex(t))("logicalColIndex",0)}}function ogt(i,r){}var sgt=function(r,t,e,n,a,o){return{templateRef:r,group:t,field:e,column:n,aggregates:a,$implicit:o}};function lgt(i,r){if(1&i&&(A(0,"td",33),T(1,ogt,0,0,"ng-template",12),x()),2&i){var s,t=r.$implicit,e=D(2),n=e.index,a=e.$implicit,o=D();y("logicalRowIndex",o.logicalRowIndex(n))("logicalColIndex",o.logicalColIndex(t)),ie("data-skip",o.skipGroupDecoration),k(1),y("templateContext",ay(4,sgt,t.groupFooterTemplateRef,a.data,t.field,t,null==(s=a.data)?null:s.aggregates,null==(s=a.data)?null:s.aggregates))}}function ugt(i,r){if(1&i&&(A(0,"tr",31),T(1,rgt,2,1,"ng-container",0),T(2,agt,1,2,"td",5),T(3,lgt,2,11,"td",32),x()),2&i){var t=D().index,e=D();y("logicalRowIndex",e.logicalRowIndex(t))("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount),k(1),y("ngIf",!e.skipGroupDecoration),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.footerColumns)("ngForTrackBy",e.trackByColumns)}}function cgt(i,r){if(1&i&&(Ge(0),T(1,Wpt,1,13,"tr",13),T(2,Qpt,4,28,"tr",14),T(3,ngt,5,21,"tr",15),T(4,ugt,4,8,"tr",16),Ve()),2&i){var t=r.$implicit,e=D();k(1),y("ngIf",e.isGroup(t)&&e.isParentGroupExpanded(t)&&e.showGroupHeader(t)),k(1),y("ngIf",e.isDataItem(t)&&(!t.group||e.isDataItemInExpandedGroup(t))),k(1),y("ngIf",e.isDataItem(t)&&(!t.group||e.isDataItemInExpandedGroup(t))&&(null==e.detailTemplate?null:e.detailTemplate.templateRef)&&e.detailTemplate.showIf(t.data,t.index)&&e.isExpanded(t)),k(1),y("ngIf",e.isFooter(t)&&t.group&&(e.isFooterItemInExpandedGroup(t)||e.showGroupFooters&&e.isParentGroupExpanded(t.group))&&!t.data.hideFooter)}}function dgt(i,r){if(1&i){var t=Me();A(0,"kendo-resize-sensor",34),Q("resize",function(){return re(t),D().resizeHandler()}),x()}}var hgt=["container"],fgt=["lockedContainer"],vgt=["lockedTable"],pgt=["table"],ggt=function(r,t,e,n){return{keydown:r,scroll:t,mousewheel:e,DOMMouseScroll:n}};function mgt(i,r){if(1&i&&(A(0,"div",11,12)(2,"div",3)(3,"table",13,14),z(5,"colgroup",6)(6,"tbody",15),x(),z(7,"kendo-resize-sensor"),x(),A(8,"div",9),z(9,"div"),x()()),2&i){var t=D();Qe("width",t.lockedWidth,"px"),y("kendoEventsOutsideAngular",eu(28,ggt,t.lockedKeydown,t.lockedScroll,t.lockedMousewheel,t.lockedMousewheel))("scope",t),k(3),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(2),y("groups",t.groups)("columns",t.lockedLeafColumns)("detailTemplate",t.detailTemplate),k(1),y("groups",t.groups)("isLocked",!0)("data",t.data)("noRecordsText","")("columns",t.lockedLeafColumns)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("showGroupFooters",t.showFooter)("skip",t.skip)("selectable",t.selectable)("trackBy",t.trackBy)("filterable",t.filterable)("rowClass",t.rowClass)("isLoading",t.loading)("isVirtual",t.isVirtual)("cellLoadingTemplate",t.cellLoadingTemplate),k(3),Qe("height",t.totalHeight,"px")}}function _gt(i,r){1&i&&z(0,"kendo-resize-sensor")}function ygt(i,r){1&i&&z(0,"kendo-resize-sensor")}function kgt(i,r){if(1&i&&(A(0,"div",16),z(1,"div"),x()),2&i){var t=D();k(1),Qe("width",t.totalWidth,"px")}}var bb=function(){return[]},Cgt=["kendoGridFooter",""];function bgt(i,r){1&i&&z(0,"td",4),2&i&&ue("k-group-cell",!0)}function Sgt(i,r){1&i&&z(0,"td",4),2&i&&ue("k-hierarchy-cell",!0)}function wgt(i,r){}function Dgt(i,r){if(1&i&&(A(0,"td",5),T(1,wgt,0,0,"ng-template",6),x()),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-grid-footer-sticky",t.sticky),y("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",n.logicalColumnIndex(t))("ngClass",t.footerClass)("ngStyle",t.sticky?n.addStickyStyles(t):t.footerStyle),k(1),y("templateContext",eu(7,zT,t.footerTemplateRef,n.lockedColumnsCount+e,t,t))}}var Egt=["kendoGridLoading",""];function Tgt(i,r){if(1&i&&(Ge(0),A(1,"span",1),te(2),x(),z(3,"div",2)(4,"div",3),Ve()),2&i){var t=D();k(2),at(t.loadingText)}}function Agt(i,r){}function xgt(i,r){if(1&i&&T(0,Agt,0,0,"ng-template",4),2&i){var t=D();y("ngTemplateOutlet",null==t.loadingTemplate?null:t.loadingTemplate.templateRef)}}var Mgt=["lockedHeader"],Rgt=["header"],Ogt=["ariaRoot"],Igt=["footer"];function Ngt(i,r){1&i&&z(0,"kendo-grid-toolbar",11)}function Fgt(i,r){if(1&i){var t=Me();A(0,"kendo-pager",12),Q("pageChange",function(a){return re(t),D().notifyPageChange("pager",a)}),x()}if(2&i){var e=D();y("tabindex",e.navigable?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("options",e.pageable),ie("role",e.navigable?"navigation":void 0)}}function Lgt(i,r){if(1&i){var t=Me();A(0,"kendo-grid-group-panel",13),Q("change",function(a){return re(t),D().groupChange.emit(a)}),x()}if(2&i){var e=D();y("text",e.groupableEmptyText)("groups",e.group)}}function Pgt(i,r){if(1&i&&(A(0,"div",25,26)(2,"table",27),z(3,"colgroup",22)(4,"thead",28),x()()),2&i){var t=D(3);Qe("width",t.lockedWidth,"px"),k(2),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(1),y("columns",t.lockedLeafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("resizable",t.resizable)("scrollable",!0)("columns",t.lockedColumns)("totalColumnLevels",t.totalColumnLevels)("sort",t.sort)("groups",t.group)("filter",t.filter)("filterable",t.filterable)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("sortable",t.sortable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0")}}function Bgt(i,r){if(1&i&&(A(0,"div",29),z(1,"div"),x()),2&i){var t=D(3);k(1),Qe("width",t.columnsContainer.unlockedWidth,"px")}}function Ggt(i,r){if(1&i&&(A(0,"div",17),T(1,Pgt,5,24,"div",18),A(2,"div",19,20)(4,"table",21),z(5,"colgroup",22)(6,"thead",23),x(),T(7,Bgt,2,2,"div",24),x()()),2&i){var t=D(2);Qe("padding",t.headerPadding),k(1),y("ngIf",t.isLocked),k(1),y("kendoGridResizableContainer",t.lockedLeafColumns.length>0)("lockedWidth",t.lockedWidth+t.scrollbarWidth+2),k(2),Qe("width",t.nonLockedWidth,"px"),y("virtualColumns",t.virtualColumns),k(1),y("columns",t.headerLeafColumns)("groups",t.isLocked?wt(29,bb):t.group)("detailTemplate",t.detailTemplate),k(1),y("resizable",t.resizable)("scrollable",!0)("columns",t.headerColumns)("totalColumnLevels",t.totalColumnLevels)("sort",t.sort)("filter",t.filter)("filterable",t.filterable)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("groups",t.isLocked?wt(30,bb):t.group)("sortable",t.sortable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("lockedColumnsCount",t.lockedLeafColumns.length)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0"),k(1),y("ngIf",t.virtualColumns)}}function Vgt(i,r){if(1&i&&(A(0,"div",37)(1,"table",27),z(2,"colgroup",35)(3,"tfoot",38),x()()),2&i){var t=D(3);Qe("width",t.lockedWidth,"px"),k(1),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(1),y("columns",t.lockedLeafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("scrollable",!0)("groups",t.group)("columns",t.lockedLeafColumns)("detailTemplate",t.detailTemplate)("logicalRowIndex",t.ariaRowCount)}}function Ugt(i,r){if(1&i&&(A(0,"div",30),T(1,Vgt,4,13,"div",31),A(2,"div",32,33)(4,"table",34),z(5,"colgroup",35)(6,"tfoot",36),x()()()),2&i){var t=D(2);Qe("padding",t.headerPadding),k(1),y("ngIf",t.lockedLeafColumns.length),k(1),y("kendoGridResizableContainer",t.lockedLeafColumns.length>0)("lockedWidth",t.lockedWidth+t.scrollbarWidth+3),k(2),Qe("width",t.nonLockedWidth,"px"),k(1),y("columns",t.nonLockedLeafColumns)("groups",t.isLocked?wt(16,bb):t.group)("detailTemplate",t.detailTemplate),k(1),y("logicalRowIndex",t.ariaRowCount)("scrollable",!0)("groups",t.isLocked?wt(17,bb):t.group)("columns",t.nonLockedLeafColumns)("lockedColumnsCount",t.lockedLeafColumns.length)("detailTemplate",t.detailTemplate)}}function zgt(i,r){if(1&i){var t=Me();Ge(0),T(1,Ggt,8,31,"div",14),A(2,"kendo-grid-list",15),Q("pageChange",function(a){return re(t),D().notifyPageChange("list",a)})("scrollBottom",function(){return re(t),D().notifyScrollBottom()})("contentScroll",function(a){return re(t),D().contentScroll.emit(a)}),x(),T(3,Ugt,7,18,"div",16),Ve()}if(2&i){var e=D();k(1),y("ngIf",!e.hideHeader),k(1),y("data",e.view)("rowHeight",e.rowHeight)("detailRowHeight",e.detailRowHeight)("total",e.totalCount)("take",e.pageSize)("groups",e.group)("groupable",e.groupable)("skip",e.skip)("trackBy",e.trackBy)("columns",e.columnsContainer)("selectable",e.selectable)("filterable",e.filterable)("detailTemplate",e.detailTemplate)("noRecordsTemplate",e.noRecordsTemplate)("rowClass",e.rowClass)("rowSticky",e.rowSticky)("loading",e.loading)("isVirtual",e.isVirtual)("cellLoadingTemplate",null==e.cellLoadingTemplate?null:e.cellLoadingTemplate.templateRef)("loadingTemplate",null==e.loadingTemplate?null:e.loadingTemplate.templateRef)("virtualColumns",e.virtualColumns)("enableDrag",e.marqueeSelection),k(1),y("ngIf",e.showFooter)}}function Hgt(i,r){if(1&i&&z(0,"thead",42),2&i){var t=D(2);y("resizable",t.resizable)("scrollable",!1)("columns",t.visibleColumns)("totalColumnLevels",t.totalColumnLevels)("groups",t.group)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("sort",t.sort)("sortable",t.sortable)("filter",t.filter)("filterable",t.filterable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0")}}function Kgt(i,r){if(1&i&&z(0,"tfoot",43),2&i){var t=D(2);y("scrollable",!1)("logicalRowIndex",t.ariaRowCount)("groups",t.group)("columns",t.leafColumns)("detailTemplate",t.detailTemplate)}}function jgt(i,r){if(1&i&&(Ge(0),A(1,"table"),z(2,"colgroup",35),T(3,Hgt,1,15,"thead",39),z(4,"tbody",40),T(5,Kgt,1,5,"tfoot",41),x(),Ve()),2&i){var t=D();k(1),Qe("table-layout",t.resizable?"fixed":null),k(1),y("columns",t.leafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("ngIf",!t.hideHeader),k(1),y("isLoading",t.loading)("groups",t.group)("data",t.view)("skip",t.skip)("columns",t.leafColumns)("selectable",t.selectable)("filterable",t.filterable)("noRecordsTemplate",t.noRecordsTemplate)("detailTemplate",t.detailTemplate)("showGroupFooters",t.showGroupFooters)("trackBy",t.trackBy)("rowClass",t.rowClass)("enableDrag",t.marqueeSelection),k(1),y("ngIf",t.showFooter)}}function Wgt(i,r){1&i&&z(0,"div",44),2&i&&y("loadingTemplate",D().loadingTemplate)}function $gt(i,r){if(1&i){var t=Me();A(0,"kendo-pager",45),Q("pageChange",function(a){return re(t),D().notifyPageChange("pager",a)}),x()}if(2&i){var e=D();y("tabindex",e.navigable?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("options",e.pageable),ie("role",e.navigable?"navigation":void 0)}}function qgt(i,r){1&i&&z(0,"kendo-grid-toolbar",46)}function Xgt(i,r){if(1&i){var t=Me();A(0,"span",4),te(1),x(),A(2,"kendo-grid-columnlist",5),Q("apply",function(a){return re(t),D().onApply(a)})("columnChange",function(a){return re(t),D().onChange(a)}),x()}if(2&i){var e=D();k(1),at(e.localization.get("columns")),k(1),y("columns",e.columns)("applyText",e.localization.get("columnsApply"))("resetText",e.localization.get("columnsReset"))("autoSync",e.autoSync)("allowHideAll",e.allowHideAll)}}var Zgt=/^\s*$/,He=function(r){return null!=r},Sb=function(r){return null==r},cV=function(r){return Array.isArray(r)},hs=function(r){return!!r},Dr=function(r){return Sb(r)||Zgt.test(r)},HT=function(r){return xn(lt(r),r.changes)},wb=function(){return"undefined"==typeof document},dV=function(r){return"string"==typeof r},ihe=function(r){return"number"==typeof r&&!isNaN(r)},hV=function(r){return dV(r)&&!Dr(r)&&r.startsWith("{0:")?r.slice(3,r.length-1):r},Db=function(r){return function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:this.activeRow,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.activeCol,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.activate(t,e,n)&&(this.virtualRow=t,this.virtualCol=e)}},{key:"activate",value:function(t,e,n){if(!n&&this.isActiveRange(t,e))return!1;var a=this.activeCol,o=this.activeRow;return this.activeCol=e,this.activeRow=t,this.changes.next({colIndex:e,prevColIndex:a,prevRowIndex:o,rowIndex:t}),!0}},{key:"isActiveRange",value:function(t,e){if(this.activeRow!==t)return!1;var n=this.cell,a=this.model.cellRange(n),o=a.start,s=a.end;return!Boolean(n)||o<=e&&e<=s}},{key:"assume",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.activeRow,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.activeCol;this.virtualRow=t,this.virtualCol=e,this.activeCol=e,this.activeRow=t}},{key:"announce",value:function(){this.changes.next({colIndex:this.activeCol,prevColIndex:this.activeCol,prevRowIndex:this.activeRow,rowIndex:this.activeRow})}},{key:"activateVirtualCell",value:function(t){var e=this.model.rowRange(t),n=this.model.cellRange(t),a=this.activeCol,o=this.activeRow;if(e.start<=o&&o<=e.end&&n.start<=a&&a<=n.end)return this.activeRow=t.rowIndex,this.activeCol=t.colIndex,!0}},{key:"isActive",value:function(t,e){return this.activeCol===e&&this.activeRow===t}},{key:"moveUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetRow(-t)}},{key:"moveDown",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetRow(t)}},{key:"moveLeft",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetCol(-t)}},{key:"moveRight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetCol(t)}},{key:"lastCellIndex",value:function(t){return this.metadata.columns.leafColumnsToRender.length-1+(!this.metadata.hasDetailTemplate||t&&t.groupItem?0:1)}},{key:"offsetCol",value:function(t){var e=this.model.findRow(this.virtualRow),n=this.lastCellIndex(e),a=this.virtualCol;this.virtualCol=Math.max(0,Math.min(a+t,n));var o=this.virtualCol,s=this.virtualRow,l=this.model.findCell(this.virtualCol,e);if(!l&&this.metadata.virtualColumns)return this.activate(s,o);if(l.colSpan>1&&l.colIndex<=a&&a0?Math.min(l.colIndex+l.colSpan,n):Math.max(0,l.colIndex+t);var u=this.model.findCell(o,e);this.virtualCol=l!==u?(l=u).colIndex:a}return this.activate(l.rowIndex,l.colIndex)}},{key:"offsetRow",value:function(t){var e=this.virtualCol;if(this.metadata&&this.metadata.isVirtual){var n=this.metadata.maxLogicalRowIndex,a=Math.max(0,Math.min(this.activeRow+t,n));this.metadata.hasDetailTemplate&&!this.model.findRow(a)&&(a=t>0?a+1:a-1,a=Math.max(0,Math.min(a,n))),this.metadata.hasDetailTemplate&&a===n&&this.model.lastRow.index!==n&&a--;var o=this.model.findRow(a);if(o){var s=this.model.findCell(this.virtualCol,o);s.rowIndex<=this.virtualRow&&t>0&&s.rowSpan>1&&(s=this.model.findCell(this.virtualCol,this.model.findRow(s.rowIndex+s.rowSpan-1+t))),a=s.rowIndex,e=s.colIndex}return this.virtualRow=a,this.activate(a,e)}var l=this.model.findRow(this.virtualRow+t)||this.model.nextRow(this.virtualRow,t);if(!l)return!1;var u=this.model.findCell(this.virtualCol,l);return u&&u.rowIndex<=this.virtualRow&&t>0&&u.rowSpan>1&&(u=this.model.findCell(this.virtualCol,this.model.findRow(u.rowIndex+u.rowSpan-1+t))),!u&&this.metadata.virtualColumns?this.activate(this.virtualRow+t,this.virtualCol):(this.virtualRow=u.rowIndex,this.activate(this.virtualRow,u.colIndex))}}]),i}(),ahe=function(){function i(){p(this,i),this.count=0,this.items={}}return v(i,[{key:"first",get:function(){var t;if(this.count>0)return this.forEach(function(e){return t=e,!0}),t}},{key:"last",get:function(){if(this.count>0){var t=Object.keys(this.items);return this.items[t[t.length-1]]}}},{key:"removeItem",value:function(t){this.items[t]&&(delete this.items[t],this.count--)}},{key:"setItem",value:function(t,e){this.items[t]||this.count++,this.items[t]=e}},{key:"getItem",value:function(t){return this.items[t]}},{key:"toArray",value:function(){var t=[];return this.forEach(function(e){t.push(e)}),t}},{key:"forEach",value:function(t){for(var e in this.items)if(this.items.hasOwnProperty(e)&&t(this.items[e]))return this.items[e]}},{key:"find",value:function(t){return this.forEach(t)}}]),i}(),omt=function(){function i(){p(this,i),this.rows=new ahe}return v(i,[{key:"firstRow",get:function(){return this.rows.first}},{key:"lastRow",get:function(){return this.rows.last}},{key:"registerCell",value:function(t){var e=this.rows.getItem(t.logicalRowIndex);if(e){var n=t.logicalColIndex,a={uid:t.uid,colIndex:n,rowIndex:e.index,colSpan:t.colSpan,rowSpan:t.rowSpan,detailExpandCell:t.detailExpandCell,dataItem:e.dataItem,dataRowIndex:e.dataRowIndex,focusGroup:t.focusGroup};return e.cells.setItem(n,a),t.groupItem&&(e.groupItem=t.groupItem),a}}},{key:"unregisterCell",value:function(t,e,n){var a=this.rows.getItem(e);if(a){var o=a.cells.getItem(t);o&&o.uid===n.uid&&a.cells.removeItem(t)}}},{key:"registerRow",value:function(t){var e={uid:t.uid,index:t.logicalRowIndex,dataItem:t.dataItem,dataRowIndex:t.dataRowIndex,cells:new ahe};this.rows.setItem(t.logicalRowIndex,e)}},{key:"updateRow",value:function(t){var e=this.rows.getItem(t.logicalRowIndex);e&&Object.assign(e,{dataItem:t.dataItem,dataRowIndex:t.dataRowIndex})}},{key:"unregisterRow",value:function(t,e){var n=this.rows.getItem(t);n&&n.uid===e.uid&&this.rows.removeItem(t)}},{key:"cellRange",value:function(t){return t?{start:t.colIndex,end:t.colIndex+(t.colSpan||1)-1}:{}}},{key:"rowRange",value:function(t){return t?{start:t.rowIndex,end:t.rowIndex+(t.rowSpan||1)-1}:{}}},{key:"nextRow",value:function(t,e){var n=this.rows.toArray(),a=this.rows.getItem(t),o=n.indexOf(a);return n[o+e]}},{key:"findRow",value:function(t){return this.rows.getItem(t)}},{key:"findCell",value:function(t,e){if(e){for(var n=e.index,a=e.cells.getItem(t),o=n;!a&&e;)e=this.rows.getItem(o),a=this.rowCell(t,e),o--;if(a&&n<=e.index+(a.rowSpan||1)-1)return a}}},{key:"rowCell",value:function(t,e){if(e&&e.cells.count){for(var a,n=e.cells.first,o=t;!a&&o>=n.colIndex;)a=e.cells.getItem(o),o--;if(a&&t<=a.colIndex+(a.colSpan||1)-1)return a}}}]),i}(),smt=/^(?:a|input|select|option|textarea|button|object)$/i,vV={},ohe=function(r){return String(r).trim().split(" ")},Rv=function(r,t){var e=ohe(t);return Boolean(ohe(r.className).find(function(n){return e.indexOf(n)>=0}))},Hu=function(r){return function(t){return Rv(t,r)}},Ta=function(r){return vV[r]||(vV[r]=function(t){return String(t.nodeName).toLowerCase()===r.toLowerCase()}),vV[r]},Va=function(r,t){for(;r&&!t(r);)r=r.parentNode;return r},pV=function(r,t,e){for(;r&&r!==e&&!t(r);)r=r.parentNode;if(r!==e)return r},gV=function(r){var t=r.getBoundingClientRect();return(t.width>0&&t.height>0||0!==t.x&&0!==t.y)&&"hidden"!==window.getComputedStyle(r).visibility},she=function(r){if(!r.tagName)return!1;var t=r.tagName.toLowerCase(),e=Boolean(r.getAttribute("tabIndex"));return!r.disabled&&smt.test(t)||e},Eb=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!she(r))return!1;var e=!t||gV(r),n="true"===r.getAttribute("aria-hidden"),a=r.getAttribute("tabIndex");return e&&!n&&"-1"!==a},Ku=function i(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(r){if(e&&t(r))return r;for(r=r.firstChild;r;){if(1===r.nodeType){var n=i(r,t);if(n)return n}r=r.nextSibling}}},umt=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=null;return Ku(r,function(a){return t(a)&&(n=a),!1},e),n},lhe=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ku(r,function(e){return Eb(e,t)},!1)},ju=function(){function i(){p(this,i),this.changes=new Ot,this.pageChange=new Ot}return v(i,[{key:"currentPage",get:function(){return this.skip/this.pageSize}},{key:"notifyChanges",value:function(t){this.total=t.total,this.pageSize=t.pageSize,this.skip=t.skip,this.changes.next(t)}},{key:"changePage",value:function(t){this.pageChange.next({skip:t*this.pageSize,take:this.pageSize})}},{key:"changePageSize",value:function(t){this.pageChange.next({skip:0,take:t})}},{key:"nextPage",value:function(){var t=this.currentPage+1;t*this.pageSize=0&&this.changePage(t)}}]),i}(),WT=function(){var i=function(){function r(){p(this,r),this.requests=new Ot}return v(r,[{key:"scrollTo",value:function(e){this.requests.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),mV=function i(r){return He(r)?{group:r.data,groupIndex:r.index,parentGroup:i(r.parentGroup)}:null},Fm=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.rowState=new Set}return v(r,[{key:"reset",value:function(){this.rowState.clear()}},{key:"ngOnDestroy",value:function(){this.reset()}},{key:"isExpanded",value:function(e){return this.userCallback?this.userCallback(e):!this.rowState.has(e.groupIndex)}},{key:"isInExpandedGroup",value:function(e){for(var n=!0;e&&n;)n=this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:mV(e.parentGroup)}),e=e.parentGroup;return n}},{key:"toggleRow",value:function(e){var n=mV(e.parentGroup),a=!this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:n});this.changes.next({group:e.data,expand:a,groupIndex:e.index,parentGroup:n}),!this.userCallback&&(a?this.rowState.delete(e.index):this.rowState.add(e.index))}},{key:"expandChildren",value:function(e){var n=this;this.rowState.forEach(function(a){return function(r,t){return t!==r&&r.startsWith(t)}(a,e)&&n.rowState.delete(a)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Ov=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),vmt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Ov),pmt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Ov),Tb=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.rowState=new Set}return v(r,[{key:"ngOnDestroy",value:function(){this.rowState.clear()}},{key:"isExpanded",value:function(e,n){return this.userCallback?this.userCallback({index:e,dataItem:n}):this.rowState.has(e)}},{key:"toggleRow",value:function(e,n){this.isExpanded(e,n)?this.collapseRow(e,n):this.expandRow(e,n)}},{key:"expandRow",value:function(e,n){!this.emitEvent({dataItem:n,index:e,expand:!0})&&!this.userCallback&&this.rowState.add(e)}},{key:"collapseRow",value:function(e,n){!this.emitEvent({dataItem:n,index:e,expand:!1})&&!this.userCallback&&this.rowState.delete(e)}},{key:"emitEvent",value:function(e){var n=new(e.expand?pmt:vmt)(e);return this.changes.next(n),n.isDefaultPrevented()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),_V=new Dt("focus-root-initial-active-state"),Eh=function(){var i=function(){function r(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,r),this.active=t,this.groups=new Set}return v(r,[{key:"registerGroup",value:function(e){this.active&&this.groups.add(e)}},{key:"unregisterGroup",value:function(e){this.active&&this.groups.delete(e)}},{key:"activate",value:function(){this.active&&this.groups.forEach(function(e){return e.activate()})}},{key:"deactivate",value:function(){this.active&&this.groups.forEach(function(e){return e.deactivate()})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(_V,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),gmt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).action="cellClose",Object.assign(Xe(n),e),n}return v(t)}(Ov),Iv=function(r){return-1===r||void 0===r},Pl=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.changes=new O,this.editedIndices=[],this.keepEditCell=!1,this.closingCell=!1,this.changedSource=new Ot,this.changed=this.changedSource.asObservable().pipe(Nn(function(){return e.ngZone.onStable.asObservable().pipe(It(1))}))}return v(r,[{key:"editRow",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.editedIndices.push({index:e,group:n}),this.onChanged()}},{key:"addRow",value:function(e){this.newItemGroup={group:e},this.onChanged()}},{key:"editCell",value:function(e,n,a){Iv(e)||!1===n.editable||!n.editTemplate&&!n.field||(this.preventCellClose(),this.closeCell()||(this.editRow(e,a),this.column=n,this.onChanged()))}},{key:"isEditing",value:function(){return this.editedIndices.length>0}},{key:"isEditingCell",value:function(){return this.isEditing()&&void 0!==this.column}},{key:"hasNewItem",get:function(){return He(this.newItemGroup)}},{key:"newDataItem",get:function(){return this.hasNewItem?this.newItemGroup.group.value:{}}},{key:"close",value:function(e){Iv(e)?this.newItemGroup=void 0:(this.editedIndices=this.editedIndices.filter(function(r){return function(t){return t.index!==r}}(e)),delete this.column,this.onChanged())}},{key:"closeCell",value:function(e){var n=this;if(this.column&&!this.closingCell)return this.ngZone.run(function(){var a=n.editedIndices[0],l=new gmt({column:n.column,formGroup:a.group,originalEvent:e,rowIndex:a.index});return n.closingCell=!0,n.changes.emit(l),n.closingCell=!1,l.isDefaultPrevented()||n.cancelCell(),l.isDefaultPrevented()})}},{key:"cancelCell",value:function(){this.column&&(this.editedIndices=[],delete this.column,this.onChanged())}},{key:"shouldCloseCell",value:function(){return this.column&&!this.keepEditCell}},{key:"preventCellClose",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){window.clearTimeout(e.keepCellTimeout),e.keepEditCell=!0,e.keepCellTimeout=window.setTimeout(function(){e.keepEditCell=!1},0)})}},{key:"context",value:function(e){return Iv(e)?this.newItemGroup:this.findByIndex(e)}},{key:"columnContext",value:function(e,n){return Iv(e)?this.newItemGroup:this.column&&n!==this.column?void 0:this.findByIndex(e)}},{key:"isEdited",value:function(e){return!(!Iv(e)||!He(this.newItemGroup))||!this.column&&He(this.findByIndex(e))}},{key:"hasEdited",value:function(e){return He(this.context(e))}},{key:"isEditedColumn",value:function(e,n){return!(!this.column||this.column!==n)&&He(this.findByIndex(e))}},{key:"beginEdit",value:function(e){this.changes.emit({action:"edit",rowIndex:e})}},{key:"beginAdd",value:function(){this.changes.emit({action:"add"})}},{key:"endEdit",value:function(e){var n=this.context(e);this.changes.emit({action:"cancel",rowIndex:e,formGroup:n.group,isNew:Iv(e)})}},{key:"save",value:function(e){var n=this.context(e);this.changes.emit({action:"save",rowIndex:e,formGroup:n.group,isNew:Iv(e)})}},{key:"remove",value:function(e){this.changes.emit({action:"remove",rowIndex:e})}},{key:"findByIndex",value:function(e){return this.editedIndices.find(function(r){return function(t){return t.index===r}}(e))}},{key:"onChanged",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.changedSource.next()})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),ymt=Ta("button"),kmt=Ta("input"),Cmt=/(button|checkbox|color|file|radio|reset|submit)/i,wmt=function(){function i(r,t){p(this,i),this.renderer=t,this.element=r.nativeElement,this.focusable=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ku(r,function(e){return Eb(e,t)})}(this.element,!1)||this.element}return v(i,[{key:"enabled",get:function(){return this.focusable&&!this.focusable.disabled}},{key:"visible",get:function(){return this.focusable&&gV(this.focusable)}},{key:"isNavigable",value:function(){return this.canFocus()&&function(r){return!r.disabled&&(ymt(r)||function(r){return kmt(r)&&Cmt.test(r.type)}(r))}(this.element)}},{key:"toggle",value:function(t){this.renderer.setAttribute(this.focusable,"tabIndex",t?"0":"-1")}},{key:"focus",value:function(){this.focusable&&this.focusable.focus()}},{key:"canFocus",value:function(){return this.visible&&this.enabled}},{key:"hasFocus",value:function(){var t=this;return document.activeElement!==this.element&&Va(document.activeElement,function(e){return e===t.element})}}]),i}(),td=new Dt("grid-cell-context"),Dmt={},co=function(){var i=function(){function r(t,e,n){p(this,r),this.cellContext=t,this.hostElement=e,this.renderer=n,this.active=!0,this._enabled=!0,this.cellContext&&(this.group=this.cellContext.focusGroup),this.group&&this.group.registerElement(this)}return v(r,[{key:"enabled",get:function(){return this._enabled},set:function(e){(e=""===e||Boolean(e))!==this.enabled&&(this._enabled=e,this.element&&this.element.toggle(this.active&&e))}},{key:"ngAfterViewInit",value:function(){this.element||(this.element=new wmt(this.hostElement,this.renderer)),this.group&&this.element&&this.toggle(this.group.isActive)}},{key:"ngOnDestroy",value:function(){this.group&&this.group.unregisterElement(this)}},{key:"toggle",value:function(e){this.element&&e!==this.active&&(this.element.toggle(this.enabled&&e),this.active=e)}},{key:"canFocus",value:function(){return this.enabled&&this.element&&this.element.canFocus()}},{key:"isNavigable",value:function(){return this.enabled&&this.element&&this.element.isNavigable()}},{key:"focus",value:function(){this.enabled&&this.element&&this.element.focus()}},{key:"hasFocus",value:function(){return this.enabled&&this.element&&this.element.hasFocus()}},{key:"registerElement",value:function(e){this.element=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(td,12),m(_e),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoGridFocusable",""],["","kendoGridEditCommand",""],["","kendoGridRemoveCommand",""],["","kendoGridSaveCommand",""],["","kendoGridCancelCommand",""],["","kendoGridSelectionCheckbox",""]],inputs:{enabled:["kendoGridFocusable","enabled"]}}),i}(),Emt=function(r,t){return Va(r,Ta("kendo-grid"))===t},Tmt=Ta("th"),Amt=Ta("td"),xmt=Ta(".k-grid-footer td"),uhe=function(r){return Amt(r)||Tmt(r)||xmt(r)},yV=function(r,t){var e=function(r,t){for(var e=Va(r,uhe);e&&!Emt(e,t);)e=Va(e.parentElement,uhe);return e}(r,t),n=Va(e,Ta("tr"));if(e&&n){var a=n.getAttribute("aria-rowindex");a=a?parseInt(a,10)-1:null;var o=e.getAttribute("aria-colindex");if(o=o?parseInt(o,10)-1:null,null!==a&&null!==o)return{colIndex:o,rowIndex:a,element:e}}},che=function(r){return function(r){return r===J.ArrowLeft||r===J.ArrowRight||r===J.ArrowUp||r===J.ArrowDown}(r)||r===J.PageUp||r===J.PageDown||r===J.Home||r===J.End},Omt=Ta("input"),dhe=function(){function i(r,t){p(this,i),this.firstItemIndex=r,this.lastItemIndex=t}return v(i,[{key:"containsRow",value:function(t){return t<0||t>=this.firstItemIndex&&t<=this.lastItemIndex}},{key:"intersects",value:function(t,e){return t<=this.firstItemIndex&&this.lastItemIndex<=e||this.firstItemIndex<=t&&t<=this.lastItemIndex||this.firstItemIndex<=e&&e<=this.lastItemIndex}}]),i}(),Ua=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.zone=t,this.domEvents=e,this.pagerContextService=n,this.scrollRequestService=a,this.groupsService=o,this.detailsService=s,this.focusRoot=l,this.editService=u,this.cd=c,this.localization=d,this.focusableParent=h,this.cellKeydown=new O,this.activeRowIndex=0,this.alive=!1,this.active=!0,this.mode=0,this.model=new omt,this.cursor=new amt(this.model),this.changes=this.cursor.changes}return v(r,[{key:"metadata",get:function(){return this.meta},set:function(e){this.meta=e,this.cursor.metadata=e}},{key:"enabled",get:function(){return this.alive}},{key:"activeCell",get:function(){if(0!==this.mode)return this.cursor.cell}},{key:"activeRow",get:function(){if(0!==this.mode)return Object.assign({},this.cursor.row,{cells:this.cursor.row.cells.toArray()})}},{key:"activeDataRow",get:function(){return Math.max(0,this.activeRowIndex-this.meta.headerRows)}},{key:"init",value:function(e){var n=this;this.alive=!0,this.focusRoot.active=!0,this.metadata=e;var a=function(){for(var u=arguments.length,c=new Array(u),d=0;do&&this.cursor.reset(0,0)}}},{key:"isCellFocusable",value:function(e){return this.alive&&this.active&&2!==this.mode&&this.cursor.isActive(e.logicalRowIndex,e.logicalColIndex)}},{key:"isCellFocused",value:function(e){return 1===this.mode&&this.isCellFocusable(e)}},{key:"navigateTo",value:function(e){if(this.alive){var n=yV(e,this.meta.gridElement.nativeElement);if(n){var a=this.mode,o=function(r,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!Va(t,function(o){return o===r});if(n)return!1;var a=Va(t,function(o){return o===t});return a&&(e||a!==r)}(n.element,document.activeElement),s=2===this.mode&&this.activeRowIndex===n.rowIndex&&e!==n.element;if(o)this.mode=2,this.cursor.reset(n.rowIndex,n.colIndex),this.activateRow();else if(!s){this.mode=1,this.deactivateElements();var l=this.cursor.isActive(n.rowIndex,n.colIndex);1===a&&l||this.cursor.reset(n.rowIndex,n.colIndex)}}}}},{key:"tryFocus",value:function(e){this.activateElements();var n=lhe(e);if(n){var a=yV(n,this.meta.gridElement.nativeElement);a&&(this.cursor.reset(a.rowIndex,a.colIndex),this.deactivateElements(),this.enterCell()),n.focus()}else this.deactivateElements();return!!n}},{key:"needsViewport",value:function(){return this.meta&&this.meta.isVirtual}},{key:"setViewport",value:function(e,n){if(this.viewport=new dhe(e,n),this.meta&&this.meta.isVirtual&&this.activeDataRow>-1){var a=this.activeDataRow,s=a-n;e-a>0?this.cursor.reset(e+this.meta.headerRows):s>0&&this.cursor.reset(n-this.meta.headerRows)}}},{key:"setColumnViewport",value:function(e,n){this.columnViewport=new dhe(e,n)}},{key:"focusCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.mode=1,this.cursor.reset(e,n),this.activeCell}},{key:"focusCellByElement",value:function(e){var n=yV(e,this.meta.gridElement.nativeElement);if(n)return this.focusCell(n.rowIndex,n.colIndex)}},{key:"focusNextCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.focusAdjacentCell(!0,e)}},{key:"focusPrevCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.focusAdjacentCell(!1,e)}},{key:"toggle",value:function(e){this.active=e,this.cursor.announce()}},{key:"hasFocus",value:function(){return 1===this.mode||2===this.mode}},{key:"autoFocusCell",value:function(e,n){return!this.meta.virtualColumns||n=this.meta.headerRows&&this.viewport&&!this.viewport.containsRow(n)&&n>-1&&this.scrollRequestService.scrollTo({row:n}),this.meta.virtualColumns&&e.colIndex>=this.meta.columns.lockedLeafColumns.length){var a=this.activeCell,o=this.model.cellRange(a),s=o.start,l=o.end;a||(this.virtualCell=!0),(!a&&0!==this.mode||a&&!this.columnViewport.intersects(s,l))&&this.scrollRequestService.scrollTo({column:e.colIndex-(this.metadata.hasDetailTemplate?1:0)})}}},{key:"onFocusOut",value:function(e){this.mode=gV(e.target)?0:1,this.deactivateElements(),this.cursor.announce()}},{key:"onWindowBlur",value:function(){this.mode=0,this.deactivateElements(),this.cursor.announce()}},{key:"onKeydown",value:function(e){1===this.mode?this.onCursorKeydown(e):2===this.mode&&this.onContentKeydown(e)}},{key:"onTabout",value:function(){this.cursor.cell.focusGroup.isNavigable()||(this.leaveCell(),this.cursor.reset())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Mv),oe(ju),oe(WT),oe(Fm),oe(Tb),oe(Eh),oe(Pl),oe(nt),oe(Y),oe(co,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Lm=function(){var i=function(){function r(t,e,n){p(this,r),this.domEvents=t,this.localDataChangesService=e,this.navigationService=n,this.changes=new O,this.lastSelectionStartIndex=0,this.currentSelection=[],this.selectAllChecked=!1,this.active=!1,this.dragging=!1,this.addSubscriptions()}return v(r,[{key:"enableMarquee",get:function(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;var n=this.settings.selectable,a="object"==typeof n&&He(n)&&"multiple"===n.mode&&!1!==n.enabled&&!n.checkboxOnly&&n.drag;return this.active&&a}},{key:"init",value:function(e){if(this.settings=e,this.currentSelection=[],e.selectable&&!1!==e.selectable.enabled){var n=this.getIterator();this._selectAllState=!0;for(var a=n.next();!a.done;){if(a.value&&"data"===a.value.type){var o={dataItem:a.value.data,index:a.value.index};e.rowSelected(o)?this.currentSelection[a.value.index]=o:this._selectAllState=void 0}a=n.next()}0===this.currentSelection.length&&(this._selectAllState=!1)}}},{key:"isSelected",value:function(e){if(this.settings&&this.active)return this.options.enabled&&He(this.currentSelection[e])}},{key:"handleClick",value:function(e,n){if(this.dragging)this.dragging=!1;else{var a,o=n.ctrlKey||n.metaKey;"single"===this.options.mode&&o&&this.isSelected(e.index)?a=this.toggle(e):"multiple"===this.options.mode&&(o&&!n.shiftKey?a=this.toggle(e):n.shiftKey&&(a=this.addAllTo(e,o))),He(a)||(a=this.select(e),this.currentSelection[e.index]={dataItem:e.data,index:e.index}),(a.selectedRows.length||a.deselectedRows.length)&&(a.ctrlKey=o,a.shiftKey=n.shiftKey,this.changes.emit(a))}}},{key:"toggle",value:function(e){var n=[],a=[];this.lastSelectionStartIndex=e.index;var o={dataItem:e.data,index:e.index};return this.isSelected(e.index)?a.push(o):n.push(o),{deselectedRows:a,selectedRows:n}}},{key:"toggleByIndex",value:function(e){var n=this.getIterator();this.selectAllChecked&&this.isSelected(e)&&(this.selectAllChecked=!1);for(var a=n.next();!a.done;){if(a.value&&"data"===a.value.type&&a.value.index===e){var o={data:a.value.data,index:a.value.index};return this.isSelected(e)||"multiple"===this.options.mode?this.toggle(o):this.select(o)}a=n.next()}}},{key:"select",value:function(e){var n=[],a=[];return this.lastSelectionStartIndex=e.index,this.isSelected(e.index)||a.push({dataItem:e.data,index:e.index}),this.currentSelection.forEach(function(o){o.index!==e.index&&n.push(o)}),{deselectedRows:n,selectedRows:a}}},{key:"deselect",value:function(e){for(var n=this.getIterator(),a=n.next();!a.done;){if(a.value&&"data"===a.value.type&&a.value.data===e){var o={dataItem:a.value.data,index:a.value.index};this.isSelected(o.index)&&this.changes.emit({ctrlKey:!1,deselectedRows:[o],selectedRows:[]})}a=n.next()}}},{key:"addAllTo",value:function(e,n){for(var a=[],o=[],s=Math.min(this.lastSelectionStartIndex,e.index),l=Math.max(this.lastSelectionStartIndex,e.index),u=this.getIterator(),c=u.next();!c.done;){if(c.value&&"data"===c.value.type){var d=c.value.index,h={dataItem:c.value.data,index:d};(dl)&&this.isSelected(d)&&!n&&o.push(h),d>=s&&d<=l&&!this.isSelected(d)&&a.push(h)}c=u.next()}return{deselectedRows:o,selectedRows:a}}},{key:"updateAll",value:function(e){this.selectAllChecked=e;for(var n=[],a=[],o=this.getIterator(),s=o.next();!s.done;){if(s.value&&"data"===s.value.type){var l=s.value.index,u={dataItem:s.value.data,index:l};this.isSelected(l)&&!e&&a.push(u),!this.isSelected(l)&&e&&n.push(u)}s=o.next()}(n.length||a.length)&&this.changes.emit({ctrlKey:!0,deselectedRows:a,selectedRows:n,shiftKey:!0})}},{key:"selectRange",value:function(e,n){for(var a=[],o=[],s=Math.min(e,n),l=Math.max(e,n),u=this.getIterator(),c=u.next();!c.done;){if(c.value&&"data"===c.value.type){var d=c.value.index,h={dataItem:c.value.data,index:d};(dl)&&this.isSelected(d)&&o.push(h),d>=s&&d<=l&&!this.isSelected(d)&&a.push(h)}c=u.next()}return{deselectedRows:o,selectedRows:a}}},{key:"selectAllState",get:function(){return this._selectAllState}},{key:"selected",get:function(){return this.currentSelection.map(function(e){return e.index}).filter(function(e){return"number"==typeof e})}},{key:"options",get:function(){var e={checkboxOnly:!1,enabled:!0,mode:"multiple"};return He(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}},{key:"ngOnDestroy",value:function(){this.removeSubscriptions()}},{key:"targetArgs",value:function(){return{index:this.mouseDownEventArgs.rowIndex,dataItem:this.mouseDownEventArgs.dataItem}}},{key:"addSubscriptions",value:function(){var e=this;this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(function(n){e.options.enabled&&!e.options.checkboxOnly&&"contextmenu"!==n.type&&e.active&&e.handleClick({index:n.rowIndex,data:n.dataItem},n.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(function(n){e.mouseDownEventArgs=n,e.options.enabled&&(!e.options.mode||"multiple"===e.options.mode)&&!e.options.checkboxOnly&&n.originalEvent.shiftKey&&e.active&&(n.originalEvent.preventDefault(),e.navigationService.focusCellByElement(n.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(function(n){e.active&&He(n.action)&&"remove"===n.action&&e.deselect(n.item)}))}},{key:"getIterator",value:function(){var e=this.settings.view.accessor();if(e)return e[zu]()}},{key:"removeSubscriptions",value:function(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Mv),oe(ed),oe(Ua))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),$T=function(){var i=function(){function r(t,e,n){p(this,r),this.domEvents=t,this.localDataChangesService=e,this.navigationService=n,this.changes=new O,this.mouseUpEvent=new O,this.currentSelection=[],this.active=!1,this.dragging=!1,this.dragSelectDeselect=!1,this.lastSelectionItem={itemKey:0,columnKey:0},this.lastSelectionItemRowIndex=0,this.lastSelectionItemColIndex=0,this.addSubscriptions()}return v(r,[{key:"enableMarquee",get:function(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;var n=this.settings.selectable,a="object"==typeof n&&He(n)&&"multiple"===n.mode&&n.cell&&!1!==n.enabled&&n.drag;return this.active&&a}},{key:"init",value:function(e){var n=this;if(this.settings=e,this.currentSelection=[],e.selectable&&!1!==e.selectable.enabled)for(var a=this.getIterator(),o=a.next();!o.done;)o.value&&"data"===o.value.type&&function(){var s={dataItem:o.value.data,index:o.value.index};e.columns.forEach(function(l){var u=e.cellSelected(s,l,l.leafIndex);u.selected&&n.currentSelection.push(u.item)})}(),o=a.next()}},{key:"isCellSelected",value:function(e,n){if(this.settings&&this.active){var a=this.settings.cellSelected({dataItem:e.data,index:e.index},n,n.leafIndex);return this.options.enabled&&a.selected}return!1}},{key:"handleClick",value:function(e,n){if(this.dragging)this.dragging=!1;else{var a,o=n.ctrlKey||n.metaKey;if("single"===this.options.mode&&o&&this.isCellSelected(e,e.column))a=this.toggle(e);else if("multiple"===this.options.mode)if(o&&!n.shiftKey)a=this.toggle(e);else if(n.shiftKey){var s=Math.min(this.lastSelectionItemRowIndex,e.index),l=Math.min(this.lastSelectionItemColIndex,e.column.leafIndex),u=Math.max(this.lastSelectionItemRowIndex,e.index),c=Math.max(this.lastSelectionItemColIndex,e.column.leafIndex);a=this.selectRange(s,l,u,c)}He(a)||(a=this.select(e),this.currentSelection=[this.lastSelectionItem]),(a.selectedCells.length||a.deselectedCells.length)&&(a.ctrlKey=o,a.shiftKey=n.shiftKey,this.changes.emit(a))}}},{key:"toggle",value:function(e){var n=[],a=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:e.data,index:e.index},e.column,e.column.leafIndex).item,this.lastSelectionItemRowIndex=e.index,this.lastSelectionItemColIndex=e.column.leafIndex,this.isCellSelected(e,e.column)?a.push(this.lastSelectionItem):n.push(this.lastSelectionItem),{deselectedCells:a,selectedCells:n}}},{key:"select",value:function(e){var n=this,a=[],o=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:e.data,index:e.index},e.column,e.column.leafIndex).item,this.lastSelectionItemRowIndex=e.index,this.lastSelectionItemColIndex=e.column.leafIndex,this.isCellSelected(e,e.column)||a.push(this.lastSelectionItem),this.currentSelection.forEach(function(s){(s.itemKey!==n.lastSelectionItem.itemKey||s.columnKey!==n.lastSelectionItem.columnKey)&&o.push(s)}),{deselectedCells:o,selectedCells:a}}},{key:"deselect",value:function(e){for(var s,n=this,a=this.getIterator(),o=a.next();!o.done;){if(o.value&&"data"===o.value.type&&o.value.data===e){s={dataItem:o.value.data,index:o.value.index};break}o=a.next()}if(s){var l=this.currentSelection.filter(function(c){var d=n.settings.cellSelected(s,null,null).item;return c.itemKey===d.itemKey});l.length&&this.changes.emit({ctrlKey:!1,deselectedCells:l,selectedCells:[]})}}},{key:"selectRange",value:function(e,n,a,o){for(var s=this,l=[],u=[],c=Math.min(e,a),d=Math.min(n,o),h=Math.max(e,a),f=Math.max(n,o),g=this.getIterator(),_=g.next();!_.done;)_.value&&"data"===_.value.type&&function(){var C=_.value.index,E={dataItem:_.value.data,index:C};s.settings.columns.forEach(function(M){var N=s.settings.cellSelected(E,M,M.leafIndex).item,V=s.isCellSelected(_.value,M),ve=c<=C&&C<=h&&d<=M.leafIndex&&M.leafIndex<=f;!ve&&V&&u.push(N),ve&&!V&&l.push(N)})}(),_=g.next();return{deselectedCells:u,selectedCells:l}}},{key:"options",get:function(){var e={checkboxOnly:!1,enabled:!0,mode:"multiple"};return He(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}},{key:"ngOnDestroy",value:function(){this.removeSubscriptions()}},{key:"addSubscriptions",value:function(){var e=this;this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(function(n){e.options.enabled&&!e.options.checkboxOnly&&"contextmenu"!==n.type&&e.active&&e.handleClick({index:n.rowIndex,data:n.dataItem,column:n.column},n.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(function(n){e.mouseDownEventArgs=n,e.options.enabled&&(!e.options.mode||"multiple"===e.options.mode)&&!e.options.checkboxOnly&&n.originalEvent.shiftKey&&e.active&&(n.originalEvent.preventDefault(),e.navigationService.focusCellByElement(n.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(function(n){e.active&&He(n.action)&&"remove"===n.action&&e.deselect(n.item)}))}},{key:"getIterator",value:function(){var e=this.settings.view.accessor();if(e)return e[zu]()}},{key:"removeSubscriptions",value:function(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Mv),oe(ed),oe(Ua))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hhe={topLeft:{x:2,y:2},topRight:{x:-2,y:2},bottomLeft:{x:2,y:-2},bottomRight:{x:-2,y:-2}},fhe=function(){var i=function(){function r(t,e,n,a){p(this,r),this.draggable=t,this.selection=e,this.cellSelection=n,this.domEvents=a,this.selectionStarted=!1}return v(r,[{key:"webkitUserSelection",get:function(){return this.cellSelection.enableMarquee||this.selection.enableMarquee?"none":null}},{key:"userSelection",get:function(){return this.cellSelection.enableMarquee||this.selection.enableMarquee}},{key:"ngOnInit",value:function(){this.subscriptions=this.draggable.kendoPress.subscribe(this.start.bind(this)),this.subscriptions.add(this.draggable.kendoDrag.subscribe(this.moveMarquee.bind(this)))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe(),this.clean()}},{key:"start",value:function(e){e.originalEvent.target.classList.contains("k-checkbox")?this.pressArgs=null:(this.pressArgs=e,this.pressTarget=null)}},{key:"moveMarquee",value:function(e){this.pressTarget||(this.pressTarget=this.cellSelection.active?this.cellSelection.mouseDownEventArgs:this.selection.mouseDownEventArgs);var n=this.pressArgs;if(n){if(!this.selectionStarted){if(!(Math.sqrt(Math.pow(e.pageX-n.pageX,2)+Math.pow(e.pageY-n.pageY,2))>5))return;this.selectionStarted=!0,this.dragEndSubscription=xn(this.domEvents.cellMouseup.pipe(It(1)),this.draggable.kendoRelease.pipe(Dd(1),It(1))).subscribe(this.endSelection.bind(this))}this.initMarquee();var o=this.marqueeElement,s=this.getMarqueeQuadrant(e.pageX,e.pageY,n.pageX,n.pageY),l=Math.min(e.pageX,n.pageX),u=Math.min(e.pageY,n.pageY),c=Math.abs(e.pageX-n.pageX),d=Math.abs(e.pageY-n.pageY);s&&(l+=hhe[s].x,u+=hhe[s].y),o.style.left="".concat(l,"px"),o.style.top="".concat(u,"px"),o.style.width="".concat(c,"px"),o.style.height="".concat(d,"px")}}},{key:"endSelection",value:function(e){("mouseup"===e.type||"touchend"===e.type)&&(this.cellSelection.active?(this.cellSelection.dragging=!0,this.cellSelection.changes.emit(this.cellSelection.selectRange(this.pressTarget.rowIndex,this.pressTarget.column.leafIndex,e.rowIndex,e.column.leafIndex))):this.selection.active&&(this.selection.dragging=!0,this.selection.changes.emit(this.selection.selectRange(this.pressTarget.rowIndex,e.rowIndex)))),this.clean()}},{key:"clean",value:function(){this.marqueeElement&&(document.body.removeChild(this.marqueeElement),this.marqueeElement=null),this.dragEndSubscription&&this.dragEndSubscription.unsubscribe(),this.dragEndSubscription=null,this.pressTarget=null,this.pressArgs=null,this.selectionStarted=!1,this.cellSelection.active?this.cellSelection.dragging=!1:this.selection.dragging=!1}},{key:"initMarquee",value:function(){this.marqueeElement||(this.marqueeElement=function(){var r=document.createElement("div");r.className="k-marquee";var t=document.createElement("div");return t.className="k-marquee-color",r.appendChild(t),r}(),document.body.appendChild(this.marqueeElement))}},{key:"getMarqueeQuadrant",value:function(e,n,a,o){var s=ea,u=no;return s&&u?"topLeft":s&&c?"bottomLeft":l&&u?"topRight":l&&c?"bottomRight":null}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o),m(Lm),m($T),m(Mv))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectionMarquee",""]],hostVars:4,hostBindings:function(t,e){2&t&&(Qe("-webkit-user-select",e.webkitUserSelection),ue("user-select-none",e.userSelection))}}),i}(),kV=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return p(this,t),(n=r.call(this,a)).ngZone=e,n}return v(t,[{key:"subscribe",value:function(n,a,o){var l,s=this,u=function(h){return null},c=function(){return null};return n&&"object"==typeof n?(l=function(h){s.ngZone.run(function(){return n.next(h)})},n.error&&(u=function(h){s.ngZone.run(function(){return n.error(h)})}),n.complete&&(c=function(){s.ngZone.run(function(){return n.complete()})})):(l=function(h){s.ngZone.run(function(){return n(h)})},a&&(u=function(h){s.ngZone.run(function(){return a(h)})}),o&&(c=function(){s.ngZone.run(function(){return o()})})),$(q(t.prototype),"subscribe",this).call(this,l,u,c)}}]),t}(O),Pmt={name:"@progress/kendo-angular-grid",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652253736,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Nv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCellTemplate",""]]}),i}(),CV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupHeaderTemplate",""]]}),i}(),bV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupHeaderColumnTemplate",""]]}),i}(),qT=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditTemplate",""]]}),i}(),SV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupFooterTemplate",""]]}),i}(),wV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridHeaderTemplate",""]]}),i}(),DV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridFooterTemplate",""]]}),i}(),XT=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuTemplate",""]]}),i}(),Bmt=0,Bl=function(){var i=function(){function r(){p(this,r),this.prefix="k-grid".concat(Bmt++)}return v(r,[{key:"gridId",value:function(){return this.prefix}},{key:"cellId",value:function(e,n){return"".concat(this.prefix,"-r").concat(e,"c").concat(n)}},{key:"selectionCheckboxId",value:function(e){return"".concat(this.prefix,"-checkbox").concat(e)}},{key:"selectAllCheckboxId",value:function(){return"".concat(this.prefix,"-select-all")}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),EV=function(r){return r.isSpanColumn},vhe=function(r){return r.isCheckboxColumn},Ir=function(){var i=function(){function r(t,e){if(p(this,r),this.parent=t,this.matchesMedia=!0,this.orderIndex=0,this.isColumnGroup=!1,this.isSpanColumn=!1,this.resizable=!0,this.reorderable=!0,this.minResizableWidth=10,this._locked=!1,this.sticky=!1,this.lockable=!0,this.stickable=!0,this.columnMenu=!0,this.includeInChooser=!0,this.headerTemplates=new Ei,this.columnMenuTemplates=new Ei,this.idService=e,t&&e&&t.idService.gridId()===e.gridId()&&!function(r){return r.isColumnGroup||EV(r)}(t))throw new Error("Columns can be nested only inside ColumnGroupComponent")}return v(r,[{key:"leafIndex",get:function(){return this._leafIndex},set:function(e){this._leafIndex=e}},{key:"width",get:function(){return this._width},set:function(e){if("string"==typeof e){var n=this._width=parseInt(e,10);xt()&&console.warn('Expected numeric value for column width, but got a string "'.concat(e,'". Treating as ').concat(n,"px."))}else this._width=e}},{key:"locked",get:function(){return this._locked},set:function(e){this._locked=e}},{key:"level",get:function(){return this.parent&&EV(this.parent)?this.parent.level:this.parent?this.parent.level+1:0}},{key:"isLocked",get:function(){return this.parent?this.parent.isLocked:this.locked}},{key:"colspan",get:function(){return 1}},{key:"rowspan",value:function(e){return this.level0}}]),e}(Ir);return i.\u0275fac=function(t){return new(t||i)(m(Ir,13),m(Bl,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-span-column"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,Nv,4),he(n,qT,4),he(n,Pm,4)),2&t&&(P(a=B())&&(e.template=a),P(a=B())&&(e.editTemplate=a),P(a=B())&&(e.childColumns=a))},inputs:{editable:"editable",locked:"locked"},features:[de([{provide:Ir,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Wu=function(r){return r.reduce(function(t,e){return t.concat(ZT(e)?e.childrenArray:[e])},[])},ghe=function(r){return r.reduce(function(t,e){return t.concat(ZT(e)?[e].concat(e.childrenArray):[e])},[])},nd=function(r){return Wu(r).filter(function(t){return t.isVisible})},mhe=function(r){return function(t){return(t||[]).reduce(function(e,n){return e+(n[r]||0)},0)}},Vmt=mhe("width"),YT=mhe("colspan"),Umt=new RegExp("^[$A-Z_a-z][$A-Z_a-z0-9\\.]*$"),QT=function i(r){return r.reduce(function(t,e){return e.isColumnGroup?t=t.concat(i(function(r){return r.children.filter(function(t){return t!==r})}(e))):e.isSpanColumn?t=t.concat(e.childrenArray):t.push(e),t},[]).filter(function(t){return t.isVisible})},xV=function(r){for(var t=arguments.length,e=new Array(t>1?t-1:0),n=1;n",document.body.appendChild(i);var r=i.scrollLeft;i.scrollLeft=-1,RV=i.scrollLeft<0?i.scrollLeft:r,document.body.removeChild(i)}return RV}()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(nt))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),IV=function(r){return void 0!==r.items&&void 0!==r.field},qmt=function i(r){return r.reduce(function(t,e){return IV(e)?t.concat(i(e.items)):t.concat([e])},[])},Xmt=function(r,t){var e=r[0];return He(e)&&IV(e)?qmt(r)[t]:r[t]},Che=function(r,t){var e=t.footers,n=t.level,a=t.dataIndex,o=t.parentGroupIndex,s=t.groupIndex,l=t.parentGroup,u=r[0];return He(u)&&IV(u)?(function(r){return void 0!==r.offset&&void 0!==r.skipHeader}(u)&&(s=He(u.offset)?u.offset:s),new Jmt(r,e,n,a,o,s,l)):new Ymt(r,a,o,l)},Zmt=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,i),this.arr=r,this.idx=t,this.arr=r||[]}return v(i,[{key:zu,value:function(){return this}},{key:"next",value:function(){return this.idx1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(a){return a};p(this,i),this.dataIndex=t,this.resultMap=e;var n=r[zu];this._innerIterator=n?r[zu]():new Zmt(r)}return v(i,[{key:zu,value:function(){return this}},{key:"next",value:function(){return this.resultMap(this._innerIterator.next(),this.dataIndex++)}}]),i}(),Ymt=function(i){b(t,i);var r=S(t);function t(e,n,a,o){return p(this,t),r.call(this,e,n,function(s,l){return{done:s.done,value:{data:s.value,groupIndex:a,index:l,type:"data",group:o}}})}return v(t,[{key:"index",get:function(){return this.dataIndex}}]),t}(bhe),Jmt=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0;p(this,i),this.arr=r,this.outputFooters=t,this.level=e,this.dataIndex=n,this.parentIndex=a,this.groupIndex=o,this.parentGroup=s,this.currentGroupIndex="",this.arr=r||[],this._iterator=new bhe(this.arr,this.dataIndex)}return v(i,[{key:zu,value:function(){return this}},{key:"nextGroupItem",value:function(){return this.current=this._iterator.next().value,this._innerIterator=null,this.current?(this.currentGroupIndex=function(r,t){return"".concat(r&&r+"_").concat(t)}(this.parentIndex,this.groupIndex++),{done:!1,value:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}):(this.current=null,{done:!0,value:void 0})}},{key:"footerItem",value:function(){if(this.current){var t=this.current;return this.current=null,{done:!1,value:{data:t,groupIndex:this.currentGroupIndex,level:this.level,type:"footer",group:{data:t,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}}}return this.current=null,{done:!0,value:void 0}}},{key:"innerIterator",value:function(t){return this._innerIterator||(this._innerIterator=Che(t.items,{dataIndex:this.dataIndex,footers:this.outputFooters,level:this.level+1,parentGroupIndex:this.currentGroupIndex,parentGroup:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}})),this._innerIterator}},{key:"nextDataItem",value:function(t){var n=this.innerIterator(t).next();return He(n.value)&&!n.done&&"data"===n.value.type&&(this.dataIndex=n.value.index+1),n.done?void 0:n}},{key:"next",value:function(){return He(this.current)?this.nextDataItem(this.current)||(this.outputFooters?this.footerItem():this.nextGroupItem()):this.nextGroupItem()}},{key:"index",get:function(){return this.dataIndex+1}}]),i}(),e_t=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,i),this.source=r,this.skip=t,this.groupFooters=e,this.source=this.source?this.source:[],this.isObject=this.isGridDataResult(this.source)}return v(i,[{key:"isGridDataResult",value:function(t){return void 0!==t.total&&void 0!==t.data}},{key:"total",get:function(){return this.isObject?this.source.total:this.source.length}},{key:"data",get:function(){return this.isObject?this.source.data:this.source}},{key:"map",value:function(t){return this.data.map(t)}},{key:"filter",value:function(t){return this.data.filter(t)}},{key:"reduce",value:function(t,e){return this.data.reduce(t,e)}},{key:"forEach",value:function(t){this.data.forEach(t)}},{key:"some",value:function(t){return this.data.some(t)}},{key:zu,value:function(){return Che(this.data,{dataIndex:this.skip,footers:this.groupFooters,groupIndex:this.skip})}},{key:"toString",value:function(){return this.data.toString()}}]),i}(),t_t=function(){function i(r){p(this,i),this.accessor=r}return v(i,[{key:"total",get:function(){return this.accessor().total}},{key:"length",get:function(){return this.accessor().data.length}},{key:"first",get:function(){return this.accessor().data[0]}},{key:"last",get:function(){return this.accessor().data[this.length-1]}},{key:"at",value:function(t){return Xmt(this.accessor().data,t)}},{key:"map",value:function(t){return this.accessor().map(t)}},{key:"filter",value:function(t){return this.accessor().filter(t)}},{key:"reduce",value:function(t,e){return this.accessor().reduce(t,e)}},{key:"forEach",value:function(t){this.accessor().forEach(t)}},{key:"some",value:function(t){return this.accessor().some(t)}},{key:zu,value:function(){return this.accessor()[zu]()}},{key:"toString",value:function(){return this.accessor().toString()}}]),i}(),She=function(){function i(r,t,e){var n=this;p(this,i),this.keysX=new Map,this.totalKeysCount=0,r&&t&&e&&r.forEach(function(a){return n.add(a[t],a[e])})}return v(i,[{key:"size",get:function(){return this.totalKeysCount}},{key:"add",value:function(t,e){this.keysX.has(t)||this.keysX.set(t,new Set),this.has(t,e)||(this.keysX.get(t).add(e),this.totalKeysCount+=1)}},{key:"delete",value:function(t,e){this.has(t,e)&&(this.keysX.get(t).delete(e),this.totalKeysCount-=1)}},{key:"has",value:function(t,e){return this.keysX.has(t)&&this.keysX.get(t).has(e)}},{key:"clear",value:function(){this.keysX.clear(),this.totalKeysCount=0}},{key:"toArray",value:function(t,e){return Array.from(this.keysX).reduce(function(n,a){var o=Bt(a,2),s=o[0];return Array.from(o[1]).forEach(function(u){var c;return n.push((De(c={},t,s),De(c,e,u),c))}),n},[])}}]),i}(),Gm=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),whe=function(){var i=function(){function r(t,e){p(this,r),this.ctx=t,this.cd=e,this.selectedKeys=[],this.selectedKeysChange=new O,this.rowSelectionState=new Set,this.cellSelectionState=new She,this.init()}return v(r,[{key:"isCellSelectionMode",get:function(){return He(this.ctx.grid.selectable)&&this.ctx.grid.selectable.cell}},{key:"ngOnChanges",value:function(e){He(e.selectedKeys)&&this.lastSelectionState!==this.selectedKeys&&this.setState(this.selectedKeys)}},{key:"init",value:function(){var e=this;He(this.ctx.grid.rowSelected)||(this.ctx.grid.rowSelected=function(n){return e.rowSelectionState.has(e.getItemKey(n))}),He(this.ctx.grid.cellSelected)||(this.ctx.grid.cellSelected=function(n,a,o){var s=e.getSelectionItem(n,a,o);return{selected:e.cellSelectionState.has(s.itemKey,s.columnKey),item:s}}),this.selectionChangeSubscription=this.ctx.grid.selectionChange.subscribe(this.onSelectionChange.bind(this))}},{key:"destroy",value:function(){this.selectionChangeSubscription.unsubscribe()}},{key:"reset",value:function(){this.rowSelectionState.clear(),this.cellSelectionState.clear()}},{key:"getItemKey",value:function(e){if(this.selectionKey){if("string"==typeof this.selectionKey)return e.dataItem[this.selectionKey];if("function"==typeof this.selectionKey)return this.selectionKey(e)}return e.index}},{key:"getSelectionItem",value:function(e,n,a){var o={};return o.itemKey=this.getItemKey(e),He(n)||He(a)?(this.columnKey&&("string"==typeof this.columnKey&&(o.columnKey=e.dataItem[this.columnKey]),"function"==typeof this.columnKey&&(o.columnKey=this.columnKey(n,a))),{itemKey:o.itemKey,columnKey:o.columnKey?o.columnKey:a}):o}},{key:"onSelectionChange",value:function(e){var n=this;e.selectedRows?(e.deselectedRows.forEach(function(a){var o=n.getItemKey(a);n.rowSelectionState.delete(o)}),"single"===this.ctx.grid.selectableSettings.mode&&this.rowSelectionState.size>0&&this.reset(),e.selectedRows.forEach(function(a){var o=n.getItemKey(a);n.rowSelectionState.add(o)})):(e.deselectedCells.forEach(function(a){n.cellSelectionState.delete(a.itemKey,a.columnKey)}),"single"===this.ctx.grid.selectableSettings.mode&&this.cellSelectionState.size>0&&this.reset(),e.selectedCells.forEach(function(a){n.cellSelectionState.add(a.itemKey,a.columnKey)})),this.cd.markForCheck(),this.notifyChange()}},{key:"notifyChange",value:function(){this.lastSelectionState=this.stateToArray(),this.selectedKeysChange.emit(this.lastSelectionState)}},{key:"setState",value:function(e){this.reset(),this.isCellSelectionMode?this.cellSelectionState=new She(e,"itemKey","columnKey"):this.rowSelectionState=new Set(e)}},{key:"stateToArray",value:function(){return this.isCellSelectionMode?this.cellSelectionState.toArray("itemKey","columnKey"):Array.from(this.rowSelectionState)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gm),m(nt))},i.\u0275dir=X({type:i,selectors:[["kendo-grid-selection-base"]],inputs:{selectedKeys:"selectedKeys",selectionKey:["kendoGridSelectBy","selectionKey"],columnKey:"columnKey"},outputs:{selectedKeysChange:"selectedKeysChange"},features:[Ie]}),i}(),NV=function(){function i(r){p(this,i),this.columns=r,this.allColumns=new Ei,this.leafColumns=new Ei,this.lockedColumns=new Ei,this.nonLockedColumns=new Ei,this.lockedLeafColumns=new Ei,this.nonLockedLeafColumns=new Ei,this.totalLevels=0,this.changes=new O,this.leafColumnsToRender=[],this.lockedColumnsToRender=[],this.nonLockedColumnsToRender=[],this.hasGroupHeaderColumn=!1,this.hasGroupFooter=!1,this.hasFooter=!1,this.unlockedWidth=0}return v(i,[{key:"refresh",value:function(){var t=this,e=this.totalLevels,n=new Array,a=new Array,o=new Array,s=new Array,l=new Array,u=new Array,c=new Array,d=new Array,h=new Array,f=!1,g=!1,_=!1,C=0,w=0;this.totalLevels=0,this.columns().forEach(function(M){var R=!0===M.isLocked?a:o,N=!0===M.isLocked?s:l,V=!0===M.isLocked?d:h;Bm(M)||(R.push(M),n.push(M),c.push.apply(c,nd([M])),V.push.apply(V,nd([M])),f=f||xV(function(U){return Boolean(U.groupHeaderColumnTemplateRef)},M),g=g||xV(function(U){return Boolean(U.groupFooterTemplateRef)},M),_=_||xV(function(U){return Boolean(U.footerTemplateRef)},M),M.isLocked||(C+=M.width||0),M.isSpanColumn?M.childColumns.forEach(function(U){U.leafIndex=w++}):M.leafIndex=w++),N.push(M),u.push(M),t.totalLevels=M.level>t.totalLevels?M.level:t.totalLevels}),this.hasGroupHeaderColumn=f,this.hasGroupFooter=g,this.hasFooter=_,this.leafColumnsToRender=c,this.lockedColumnsToRender=d,this.nonLockedColumnsToRender=h,this.unlockedWidth=C;var E=function(){for(var r=!1,t=0;t component.")}else e.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),l_t=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.call(this)}return v(t)}(Ov),VV=function(){var i=v(function r(){p(this,r),this.scroll=!1});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),c_t=function(r){return window.matchMedia(r).matches},The=function(){var i=function(){function r(){p(this,r),this.matchMedia=c_t}return v(r,[{key:"matchesMedia",value:function(e){return!e||this.matchMedia(function(r){return{xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[r]||r}(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),iA=function(){var i=function(){function r(){p(this,r),this.saveToExcel=new O,this.exportClick=new O}return v(r,[{key:"save",value:function(e){if(0===this.saveToExcel.observers.length){if(xt())throw new Error("Saving excel requires including the ExcelModule and adding the component.")}else this.saveToExcel.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),UV=function(){var i=function(){function r(t){p(this,r),this.templateRef=t,this._position="top"}return v(r,[{key:"position",get:function(){return this._position},set:function(e){this._position=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridToolbarTemplate",""]],inputs:{position:"position"}}),i}(),rA=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.changes=new Ot,this.elements=[],this.subscriptions=new Je,this.headerSubscription=new Je,this.bodySubscription=new Je,this.subscriptions.add(this.changes.subscribe(function(n){return e.scrollLeft(n)}))}return v(r,[{key:"registerEmitter",value:function(e,n){var a=this;this.unregister(n),this.elements.push({element:e,sourceType:n}),("body"===n||"header"===n)&&this.ngZone.runOutsideAngular(function(){var o=li(e,"scroll").pipe(We(function(l){return{scrollLeft:l.target.scrollLeft,sourceType:n}})),s=o.pipe(function I7e(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zl;return i=null!=i?i:N7e,oi(function(t,e){var n,a=!0;t.subscribe(Wn(e,function(o){var s=r(o);(a||!i(n,s))&&(a=!1,n=s,e.next(o))}))})}(function(l,u){return l.scrollLeft===u.scrollLeft}),Ue(function(l){return!a.source||a.source===l.sourceType}),At(function(l){return a.source=l.sourceType})).subscribe(function(l){return a.changes.next(l)});s.add(o.pipe(Ue(function(l){return a.source&&a.source!==l.sourceType})).subscribe(function(){return a.source=void 0})),"body"===n?a.bodySubscription.add(s):a.headerSubscription.add(s)})}},{key:"destroy",value:function(){this.subscriptions.unsubscribe(),this.headerSubscription.unsubscribe(),this.bodySubscription.unsubscribe()}},{key:"scrollLeft",value:function(e){var n=this,a=e.scrollLeft,o=e.sourceType;this.ngZone.runOutsideAngular(function(){n.elements.filter(function(s){return o!==s.sourceType}).forEach(function(s){return s.element.scrollLeft=a})})}},{key:"unregister",value:function(e){var n=this.elements.findIndex(function(a){return a.sourceType===e});n>-1&&("header"===e?(this.headerSubscription.unsubscribe(),this.headerSubscription=new Je):"body"===e&&(this.bodySubscription.unsubscribe(),this.bodySubscription=new Je),this.elements.splice(n,1))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),zV=function(){var i=function(){function r(){p(this,r),this.resizeSubscription=new Je(function(){}),this.dispatcher=new Ot,this.changes=this.dispatcher.asObservable().pipe(VL(100))}return v(r,[{key:"connect",value:function(e){this.resizeSubscription.add(e.subscribe(this.dispatcher))}},{key:"destroy",value:function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Ahe=function i(r){return r.parent?i(r.parent):!!r.locked},xhe=function(r,t){return Object.assign({columns:QT([r]),locked:Ahe(r)},t)},Rb=function(){var i=function(){function r(){p(this,r),this.changes=new O,this.tables=[],this.batch=null}return v(r,[{key:"start",value:function(e){this.trackColumns(e);var n=(this.column.isColumnGroup?[e]:[]).concat(QT([e]));this.changes.emit({columns:n,locked:Ahe(this.column),type:"start"})}},{key:"resizeColumns",value:function(e){var n=xhe(this.column,{deltaPercent:e,type:"resizeColumn"});this.changes.emit(n)}},{key:"resizeTable",value:function(e,n){var a=xhe(e,{delta:n,type:"resizeTable"});this.changes.emit(a)}},{key:"resizedColumn",value:function(e){this.resizedColumns.push(e)}},{key:"end",value:function(){this.changes.emit({columns:[],resizedColumns:this.resizedColumns,type:"end"})}},{key:"registerTable",value:function(e){var n=this;return this.tables.push(e),function(){n.tables.splice(n.tables.indexOf(e),1)}}},{key:"measureColumns",value:function(e){var a,n=this;null!==this.batch?(a=this.batch).push.apply(a,Ae(e)):this.autoFitBatch(e,function(){return n.end()})}},{key:"autoFit",value:function(){for(var e=this,n=arguments.length,a=new Array(n),o=0;o0&&e[0].column.isLocked,s=this.tables.filter(function(l){return l.locked===o}).map(function(l){return l.autoFit(e)});O7e.apply(void 0,Ae(s)).pipe(It(1)).subscribe(function(l){a.changes.emit({columns:e.map(function(u){return u.column}),type:"autoFitComplete",widths:l,locked:o}),n&&n()}),this.batch=null}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),aA=function(r){return!0===r||"string"==typeof r&&r.indexOf("row")>-1},f_t=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).originalEvent=e,n}return v(t)}(Ov),v_t="k-grid-filter-popup",Ob=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.popupService=t,this.renderer=e,this.ngZone=n,this.localization=o,this.onClose=new Ot,this.scrollSubscription=a.changes.subscribe(function(){return s.destroy()})}return v(r,[{key:"open",value:function(e,n,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:v_t,s=He(a)&&this.popupRef===a;if(this.destroy(),!s){var l=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:l},popupAlign:{vertical:"top",horizontal:l},anchor:e,popupClass:o,content:n,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.attachClose(e)}return this.popupRef}},{key:"destroy",value:function(){this.popupRef&&(this.detachClose(),this.popupRef.close(),this.popupRef=null)}},{key:"ngOnDestroy",value:function(){this.destroy(),this.scrollSubscription.unsubscribe()}},{key:"detachClose",value:function(){this.removeClick&&this.removeClick()}},{key:"attachClose",value:function(e){var n=this;this.detachClose(),this.ngZone.runOutsideAngular(function(){return n.removeClick=n.renderer.listen("document","click",function(a){if(!function(r,t){for(;r;){if(n.popupRef.popupElement===(s=r)||s===e)return!0;r=r.parentNode}var s;return!1}(a.target)){var o=new f_t(a);n.onClose.next(o),o.isDefaultPrevented()||n.destroy()}})})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Cr),oe(Ee),oe(be),oe(rA),oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Mhe=function(r){var t=!1;return function(){return t||(document.body.appendChild(r),t=!0),r}},Rhe=function(r){var t=function(r){return r.ownerDocument.documentElement}(r),e=t.clientTop,n=t.clientLeft,a=function(r){return r.ownerDocument.defaultView}(r),o=a.pageYOffset,s=a.pageXOffset,l=r.getBoundingClientRect();return{top:l.top+o-e,left:l.left+s-n}},Ohe=function(r,t){return 0!=(4&t.compareDocumentPosition(r))},m_t=function(r,t){return r===t||0!=(16&t.compareDocumentPosition(r))},Ihe=function(r,t){var e=Rhe(r);return{left:e.left+(t?0:r.offsetWidth),top:e.top,height:r.offsetHeight}},HV=function(){var i=function(){function r(){p(this,r),this.changes=new O,this.register=[],this.lastTarget=null}return v(r,[{key:"add",value:function(e){this.register.push(e)}},{key:"remove",value:function(e){this.register=this.register.filter(function(n){return n!==e})}},{key:"notifyDrag",value:function(e,n,a){var o=this.targetFor(n);this.lastTarget!==o&&(this.changes.next({draggable:e,mouseEvent:a,target:this.lastTarget,type:"leave"}),o&&this.changes.next({draggable:e,mouseEvent:a,target:o,type:"enter"}),this.lastTarget=o)}},{key:"notifyDrop",value:function(e,n){this.changes.next({draggable:e,mouseEvent:n,target:this.lastTarget,type:"drop"}),this.lastTarget=null}},{key:"targetFor",value:function(e){var n=m_t.bind(null,e);return this.register.find(function(a){return n(a.element.nativeElement)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Nhe=function(r,t){var e=r.querySelector(".k-icon");e.className=e.className.replace(/(plus|cancel)/,t?"plus":"cancel")},Fhe=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=r.querySelectorAll(".k-icon")[1],n=null===t?"":t?"k-i-lock":"k-i-unlock";e.className=e.className.replace(/(k-i-unlock|k-i-lock)/,"")+" ".concat(n)},oA=function(){var i=function(){function r(t){p(this,r),this.santizer=t}return v(r,[{key:"create",value:function(e){this.dom=document.createElement("div"),function(r){r.className="k-header k-drag-clue",r.style.position="absolute",r.style.zIndex="20000"}(this.dom);var n=this.santizer.sanitize(ki.HTML,e);this.dom.innerHTML='\n \n \n \n '.concat(n,"\n ")}},{key:"attach",value:function(){return Mhe(this.dom)}},{key:"remove",value:function(){var e;this.dom&&this.dom.parentNode&&(e=this.dom,setTimeout(function(){return document.body.removeChild(e)}),this.dom=null)}},{key:"show",value:function(){this.dom.style.display=""}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"enable",value:function(){Nhe(this.dom,!0)}},{key:"disable",value:function(){Nhe(this.dom,!1)}},{key:"removeLock",value:function(){Fhe(this.dom)}},{key:"toggleLock",value:function(e){Fhe(this.dom,e)}},{key:"move",value:function(e){this.dom.style.top=e.pageY+"px",this.dom.style.left=e.pageX+"px"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(vK))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),sA=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"create",value:function(){this.dom=document.createElement("div"),this.dom.className="k-grouping-dropclue",this.hide()}},{key:"attach",value:function(){return Mhe(this.dom)}},{key:"remove",value:function(){this.dom&&this.dom.parentElement&&(document.body.removeChild(this.dom),this.dom=null)}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"position",value:function(e){var n=e.left,a=e.top,o=e.height;this.dom.style.display="block",this.dom.style.height=o+"px",this.dom.style.top=a+"px",this.dom.style.left=n-this.dom.offsetWidth/2+"px"}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),KV=function(){var i=function(){function r(){p(this,r),this.changes=new O}return v(r,[{key:"reorder",value:function(e){this.changes.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),y_t=function(i){b(t,i);var r=S(t);function t(e){var n,a=e.column,o=e.newIndex,s=e.oldIndex;return p(this,t),(n=r.call(this)).column=a,n.newIndex=o,n.oldIndex=s,n}return v(t)}(Ov),k_t=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this.dataRows=r,this.headerRows=t,this.isVirtual=e,this.hasPager=n,this.hasDetailTemplate=a,this.gridElement=o,this.virtualColumns=s,this.columns=l}return v(i,[{key:"maxLogicalRowIndex",get:function(){return this.headerRows+(this.hasDetailTemplate?2*this.dataRows:this.dataRows)-1}}]),i}(),C_t={left:"0px",right:"0px"},fs=function(){var i=function(){function r(){p(this,r),this.visibilityChange=new O,this.lockedChange=new O,this.stickyChange=new O,this.columnRangeChange=new O,this.columnsContainer=new NV(function(){return[]})}return v(r,[{key:"lockedLeafColumns",get:function(){return this.columnsContainer.lockedLeafColumns}},{key:"nonLockedLeafColumns",get:function(){return this.columnsContainer.nonLockedLeafColumns}},{key:"isLocked",get:function(){return this.lockedLeafColumns.length>0}},{key:"totalLevels",get:function(){return this.columnsContainer.totalLevels}},{key:"hiddenColumns",get:function(){return this.list?this.list().filter(function(e){return!e.isVisible}):[]}},{key:"leafNamedColumns",get:function(){var e=Wu(this.list().filterSort(function(n){return!n.isColumnGroup})).filter(function(n){return n.matchesMedia&&n.displayTitle});return UE(e,[{field:"locked",dir:"desc"}])}},{key:"unlockedRootCount",get:function(){return this.list().rootColumns().filter(function(e){return!e.locked&&e.isVisible}).length}},{key:"stickyColumnsStyles",value:function(e){if(this.stickyColumns||(this.stickyColumns=this.list().rootColumns().filter(function(a){return a.sticky&&!a.locked&&a.isVisible})),0===this.stickyColumns.length)return C_t;var n=this.stickyColumns.reduce(function(a,o){return o.leafIndexe.leafIndex&&(a.right+=o.width),a},{left:0,right:0});return{left:"".concat(n.left,"px"),right:"".concat(n.right,"px")}}},{key:"init",value:function(e,n){this.columnsContainer=e,this.list=n,this.stickyColumns=null}},{key:"changeVisibility",value:function(e){this.stickyColumns=null,this.visibilityChange.emit(e)}},{key:"changeLocked",value:function(e){this.stickyColumns=null,this.lockedChange.emit(e)}},{key:"changeStuck",value:function(e){this.stickyColumns=null,this.stickyChange.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),lA=function(){function i(){p(this,i),this.changes=new Ot}return v(i,[{key:"sort",value:function(t){this.changes.next(t)}}]),i}(),b_t=v(function i(r){p(this,i),this.columns=r}),Lhe=v(function i(r){p(this,i),this.columns=r});function jV(i,r){return"data"===r.type&&r.isEditing?r.data:i}var w_t=v(function i(r){p(this,i),this.columns=r}),WV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCellLoadingTemplate",""]]}),i}(),$V=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLoadingTemplate",""]]}),i}(),qV=function(){var i=function(){function r(t){p(this,r),this.ctx=t,this.context={}}return v(r,[{key:"position",set:function(e){this.context.position=e}},{key:"toolbarTemplateRef",get:function(){return this.ctx.grid.toolbarTemplate?this.ctx.grid.toolbarTemplate.templateRef:void 0}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gm))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-toolbar"]],inputs:{position:"position"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&T(0,$ht,1,2,null,0),2&t&&y("ngIf",e.toolbarTemplateRef)},directives:[qe,En],encapsulation:2}),i}(),Bhe=function(r){return function(r){var t=r.buttonCount,n=r.info,o=r.type,l=r.pageSizes,u=void 0!==l&&l,c=r.previousNext,h=r.responsive,g=r.position;return{buttonCount:void 0===t?10:t,info:void 0===n||n,pageSizes:!0===u?[5,10,20]:u,previousNext:void 0===c||c,type:void 0===o?"numeric":o,responsive:void 0===h||h,position:void 0===g?"bottom":g}}(!0===r?{}:r)},Vm=function(){var i=function(){function r(t){p(this,r),this.root=t,this.active=!0,this.children=[],this.root.registerGroup(this)}return v(r,[{key:"focusableChildren",get:function(){return this.children.filter(function(e){return e.canFocus()})}},{key:"isActive",get:function(){return this.active}},{key:"ngOnDestroy",value:function(){this.root.unregisterGroup(this)}},{key:"registerElement",value:function(e){this.unregisterElement(e),this.children.push(e)}},{key:"unregisterElement",value:function(e){this.children=this.children.filter(function(n){return n!==e})}},{key:"isNavigable",value:function(){var e=this.focusableChildren;return 1===e.length&&e[0].isNavigable()}},{key:"canFocus",value:function(){return this.focusableChildren.length>0}},{key:"focus",value:function(){this.canFocus()&&!this.hasFocus()&&this.focusableChildren[0].focus()}},{key:"activate",value:function(){this.toggleState(!0)}},{key:"deactivate",value:function(){this.toggleState(!1)}},{key:"hasFocus",value:function(){return this.children.reduce(function(e,n){return e||n.hasFocus()},!1)}},{key:"toggleState",value:function(e){this.active!==e&&(this.active=e,this.children.forEach(function(n){return n.toggle(e)}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Eh))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Um=function(){var i=function(){function r(t,e,n){p(this,r),this.localization=t,this.pagerContext=e,this.cd=n,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize}return v(r,[{key:"currentPage",get:function(){return Math.floor((this.skip||0)/this.pageSize)+1}},{key:"totalPages",get:function(){return Math.ceil((this.total||0)/this.pageSize)}},{key:"textFor",value:function(e){return this.localization.get(e)}},{key:"changePage",value:function(e){return this.pagerContext.changePage(e),!1}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ju),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-element-base"]],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),XV=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a,o)).navigationService=s,l}return v(e,[{key:"disabled",get:function(){return 1===this.currentPage||!this.total}},{key:"onChanges",value:function(a){var s=a.skip,l=a.pageSize;this.total=a.total,this.skip=s,this.pageSize=l,this.cd.markForCheck()}}]),e}(Um);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ju),m(nt),m(Ua))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-prev-buttons"]],features:[j],decls:4,vars:16,consts:[["role","button",3,"kendoGridFocusable","title","ngClass","click","keydown.enter"],["role","note",3,"ngClass"]],template:function(t,e){1&t&&(A(0,"span",0),Q("click",function(){return 1!==e.currentPage&&e.changePage(0)})("keydown.enter",function(){return 1!==e.currentPage&&e.changePage(0)}),z(1,"span",1),x(),A(2,"span",0),Q("click",function(){return 1!==e.currentPage&&e.changePage(e.currentPage-2)})("keydown.enter",function(){return 1!==e.currentPage&&e.changePage(e.currentPage-2)}),z(3,"span",1),x()),2&t&&(y("kendoGridFocusable",!e.disabled)("title",e.textFor("pagerFirstPage"))("ngClass",ot(10,qht,e.disabled)),k(1),y("ngClass",wt(12,Xht)),ie("aria-label",e.textFor("pagerFirstPage")),k(1),y("kendoGridFocusable",!e.disabled)("title",e.textFor("pagerPreviousPage"))("ngClass",ot(13,Yde,e.disabled)),k(1),y("ngClass",wt(15,Zht)),ie("aria-label",e.textFor("pagerPreviousPage")))},directives:[co,Ft],encapsulation:2,changeDetection:0}),i}(),ZV=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,o,a)).pagerContext=o,s.numbersWrapClass=!0,s}return v(e,[{key:"buttons",get:function(){for(var a=[],o=this.start;o<=this.end;o++)a.push(o);return a}},{key:"end",get:function(){return Math.min(this.start+this.buttonCount-1,this.totalPages)}},{key:"start",get:function(){var a=this.currentPage,o=this.buttonCount;if(a>o){var s=a%o;return 0===s?a-o+1:a-s+1}return 1}},{key:"pageLabel",value:function(a){var o=this.textFor("pagerPage");return o?o+" "+a:a.toString()}},{key:"onSelectChange",value:function(a){var o=a.target,s=Number(o.value);Number.isNaN(s)?this.changePage("previousButtons"===o.value?this.start-2:this.end):this.changePage(s-1)}},{key:"onChanges",value:function(a){var s=a.skip,l=a.pageSize;this.total=a.total,this.skip=s,this.pageSize=l,this.cd.markForCheck()}}]),e}(Um);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(nt),m(ju))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-numeric-buttons"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-pager-numbers-wrap",e.numbersWrapClass)},inputs:{buttonCount:"buttonCount"},features:[j],decls:8,vars:8,consts:[["kendoGridFocusable","","tabindex","0",1,"k-dropdownlist","k-pager-nav",3,"change"],["class","k-link","value","previousButtons",3,"selected",4,"ngIf"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["value","nextButtons","class","k-link",3,"selected",4,"ngIf"],[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],["value","previousButtons",1,"k-link",3,"selected"],[3,"value","selected","ngClass"],["value","nextButtons",1,"k-link",3,"selected"],["kendoGridFocusable","","tabindex","0","role","button",1,"k-link","k-pager-nav",3,"click","keydown.enter"],["kendoGridFocusable","","tabindex","0","role","button",3,"ngClass","click","keydown.enter"]],template:function(t,e){1&t&&(A(0,"select",0),Q("change",function(a){return e.onSelectChange(a)}),T(1,Yht,2,2,"option",1),T(2,Jht,2,8,"option",2),T(3,eft,2,2,"option",3),x(),A(4,"ul",4),T(5,tft,3,1,"li",5),T(6,ift,3,5,"li",6),T(7,rft,3,1,"li",5),x()),2&t&&(k(1),y("ngIf",e.start>1),k(1),y("ngForOf",e.buttons),k(1),y("ngIf",e.end1),k(1),y("ngForOf",e.buttons),k(1),y("ngIf",e.end=600&&f<768?(d.renderer.addClass(h,"k-pager-md"),d.renderer.removeClass(h,"k-pager-sm")):d.clearResponsiveClasses()}}}return v(r,[{key:"options",set:function(e){this.settings=Bhe(e)}},{key:"isFocused",get:function(){return this._isFocused}},{key:"pagerAriaLabel",get:function(){return this.navigationService.enabled?this.pagerLabel:void 0}},{key:"pagerLabel",get:function(){var e=this.localizationService.get("pagerLabel")||"";return Ea(Ea(e,"currentPage",this.currentPage.toString()),"totalPages",this.totalPages.toString())}},{key:"focusTrapTabIndex",get:function(){return this.focusGroup.isActive?"0":"-1"}},{key:"onFocusIn",value:function(e){this.navigationService.enabled&&(e.target===this.element.nativeElement?(this._isFocused=!0,this.focusRoot.deactivate()):this.focusRoot.activate())}},{key:"onFocusOut",value:function(){this.navigationService.enabled&&(this._isFocused=!1)}},{key:"onEscape",value:function(){this.navigationService.enabled&&(this.focusRoot.deactivate(),this.element.nativeElement.focus())}},{key:"onEnter",value:function(e){this.navigationService.enabled&&e.target===this.element.nativeElement&&(this.focusRoot.activate(),this.focusFirstElement())}},{key:"navigateToPreviousPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage>1)&&this.pagerContext.prevPage()}},{key:"navigateToNextPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage1)&&this.pagerContext.changePage(0)}},{key:"navigateToLastPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage1&&void 0!==arguments[1])||arguments[1];return umt(r,function(e){return Eb(e,t)},!1)}(this.element.nativeElement,!0);e&&e.focus()}},{key:"updateCellContext",value:function(){this.cellContext&&(this.cellContext.focusGroup=this.focusGroup)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ju),m(Ua),m(_e),m(Ee),m(be),m(Y),m(td,8),m(Eh),m(Vm))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager"]],hostVars:7,hostBindings:function(t,e){1&t&&Q("focusin",function(a){return e.onFocusIn(a)})("focusout",function(){return e.onFocusOut()})("keydown.escape",function(){return e.onEscape()})("keydown.enter",function(a){return e.onEnter(a)})("keydown.arrowleft",function(a){return e.navigateToPreviousPage(a)})("keydown.pageup",function(a){return e.navigateToPreviousPage(a)})("keydown.arrowright",function(a){return e.navigateToNextPage(a)})("keydown.pagedown",function(a){return e.navigateToNextPage(a)})("keydown.home",function(a){return e.navigateToFirstPage(a)})("keydown.end",function(a){return e.navigateToLastPage(a)}),2&t&&(ie("aria-label",e.pagerAriaLabel),ue("k-pager-wrap",e.pagerWrapClass)("k-grid-pager",e.gridPagerClass)("k-state-focused",e.isFocused))},inputs:{total:"total",skip:"skip",pageSize:"pageSize",options:"options",template:"template"},outputs:{pageChange:"pageChange"},features:[de([{provide:_V,useValue:!0},{provide:Eh,deps:[_V],useClass:Eh},{provide:Vm,deps:[Eh],useClass:Vm}]),Ie],decls:5,vars:5,consts:[["class","k-sr-only",3,"tabindex","focusin",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"resize",4,"ngIf"],[1,"k-sr-only",3,"tabindex","focusin"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"buttonCount",4,"ngIf"],[3,"pageSizes",4,"ngIf"],[3,"buttonCount"],[3,"pageSizes"],["pageSizes",""],[3,"resize"]],template:function(t,e){1&t&&(T(0,dft,1,2,"div",0),T(1,hft,1,2,"ng-container",1),T(2,yft,7,6,"ng-container",2),T(3,kft,1,2,"div",0),T(4,Cft,1,0,"kendo-resize-sensor",3)),2&t&&(y("ngIf",e.navigationService.enabled),k(1),y("ngIf",null==e.template?null:e.template.templateRef),k(1),y("ngIf",!(null!=e.template&&e.template.templateRef)),k(1),y("ngIf",e.navigationService.enabled),k(1),y("ngIf",e.settings.responsive))},directives:[XV,ZV,QV,JV,eU,nU,Gr,qe,En],encapsulation:2}),i}(),Ib=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.service=e,this.context={},this.enter=new O,this.leave=new O,this.drop=new O,this.subscriptions=new Je}return v(r,[{key:"ngOnInit",value:function(){var e=this;this.service.add(this);var n=this.service.changes.pipe(Ue(function(a){return a.target===e}));this.subscriptions.add(n.pipe(Ue(function(a){return"leave"===a.type})).subscribe(function(a){e.leave.next(e.eventArgs(a))})),this.subscriptions.add(n.pipe(Ue(function(a){return"enter"===a.type})).subscribe(function(a){e.enter.next(e.eventArgs(a))})),this.subscriptions.add(n.pipe(Ue(function(a){return"drop"===a.type})).subscribe(function(a){e.drop.next(e.eventArgs(a))}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"eventArgs",value:function(e){return{target:this,mouseEvent:e.mouseEvent,draggable:e.draggable}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(HV))},i.\u0275dir=X({type:i,selectors:[["","kendoDropTarget",""]],inputs:{context:"context"},outputs:{enter:"enter",leave:"leave",drop:"drop"}}),i}(),Ghe=function(){var i=function(){function r(){p(this,r),this.directionChange=new O,this.remove=new O}return v(r,[{key:"groupIndicatorClass",get:function(){return!0}},{key:"dir",get:function(){return this.group.dir?this.group.dir:"asc"}},{key:"toggleDirection",value:function(){return this.directionChange.emit({dir:"asc"===this.dir?"desc":"asc",field:this.group.field}),!1}},{key:"removeDescriptor",value:function(){return this.remove.emit({dir:this.group.dir,field:this.group.field}),!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGroupIndicator",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-group-indicator",e.groupIndicatorClass)},inputs:{group:"group",groupTitle:"groupTitle"},outputs:{directionChange:"directionChange",remove:"remove"},attrs:bft,decls:5,vars:5,consts:[["href","#","tabindex","-1",1,"k-link",3,"click"],[1,"k-icon"],["tabindex","-1",1,"k-button","k-button-flat-base","k-button-flat","k-icon-button","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"click"],[1,"k-button-icon","k-icon","k-i-group-delete"]],template:function(t,e){1&t&&(A(0,"a",0),Q("click",function(){return e.toggleDirection()}),z(1,"span",1),te(2),x(),A(3,"a",2),Q("click",function(){return e.removeDescriptor()}),z(4,"span",3),x()),2&t&&(k(1),ue("k-i-sort-asc-sm","asc"===e.dir)("k-i-sort-desc-sm","desc"===e.dir),k(1),Nt(" ",e.groupTitle,""))},encapsulation:2,changeDetection:0}),i}(),cA=function(r){return function(t){return new RegExp("(^| )".concat(r,"( |$)")).test(t.className)}},T_t=KT(cA("k-i-group-delete"),cA("k-icon-button")),A_t=KT(cA("k-i-sort-asc-sm"),cA("k-i-sort-desc-sm")),x_t=fV(Db(T_t),Db(A_t),Db(Eb),Db(Ta("label"))),Vhe=function(r){return document.elementFromPoint(r.clientX,r.clientY)},rU=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.draggable=t,this.element=e,this.zone=n,this.service=a,this.hint=o,this.cue=s,this.nav=l,this.renderer=u,this.context={},this.drag=new O,this.subscriptions=new Je}return v(r,[{key:"enableDrag",set:function(e){this.enabled=e,this.updateTouchAction()}},{key:"hostClass",get:function(){return this.enabled}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.zone.runOutsideAngular(function(){return e.draggable.kendoPress.pipe(Ue(function(n){return e.enabled}),Ue(function(n){var a=n.originalEvent.target;return a===e.element.nativeElement||x_t(a)}),At(function(n){var a=n.originalEvent;n.isTouch||a.preventDefault(),e.nav.navigateTo(a.target)}),Nn(function(r){return function(t){return lt(t).pipe(Dd(150),Qr(r))}}(e.draggable.kendoRelease)),At(function(n){e.hint.create(e.context.hint),e.cue.create()}),Nn(function(n){return e.draggable.kendoDrag.pipe(At(function(a){a.isTouch&&a.originalEvent.preventDefault()}),At(e.hint.attach()),At(e.cue.attach()),Qr(e.draggable.kendoRelease),We(function(a){return{move:a,down:n}}))}),At(e.performDrag.bind(e)),xE(e.draggable.kendoRelease)).subscribe(e.drop.bind(e))}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"drop",value:function(e){this.hint.remove(),this.cue.remove(),this.service.notifyDrop(this,e)}},{key:"performDrag",value:function(e){var n=e.move;this.hint.move(n);var a=this.elementUnderCursor(n);a&&this.service.notifyDrag(this,a,n),this.drag.emit({draggable:this,mouseEvent:n})}},{key:"elementUnderCursor",value:function(e){this.hint.hide();var n=Vhe(e);return n&&/k-grouping-dropclue/.test(n.className)&&(n=function(r,t){r.style.display="none";var e=t();return r.style.display="block",e}(n,Vhe.bind(this,e))),this.hint.show(),n}},{key:"updateTouchAction",value:function(){!this.element||(this.enabled?this.renderer.addClass(this.element.nativeElement,"k-touch-action-none"):this.renderer.removeClass(this.element.nativeElement,"k-touch-action-none"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(_e),m(be),m(HV),m(oA),m(sA),m(Ua),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoDraggableColumn",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-draggable-header",e.hostClass)},inputs:{context:"context",enableDrag:"enableDrag"},outputs:{drag:"drag"}}),i}(),R_t=function(r){return Dr(r.field)},O_t=function(r){var e=r.field;return r.groups.some(function(n){return n.field===e})},B_t=KT(function(r){return r.target.field===r.field},fV(function(r){return r.target.lastTarget},function(r){var t=r.groups,e=r.field;return t.map(function(n){return n.field}).indexOf(e)===t.length-1})),Uhe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.hint=t,this.cue=e,this.groupInfoService=n,this.localization=a,this.cd=o,this.change=new O,this.groups=[],this.dropTargets=new Ei,this.groupTitles=[],this.subscription=new Je}return v(r,[{key:"groupHeaderClass",get:function(){return!0}},{key:"text",get:function(){return this.emptyText?this.emptyText:this.localization.get("groupPanelEmpty")},set:function(e){this.emptyText=e}},{key:"ngAfterViewInit",value:function(){this.subscription.add(HT(this.dropTargets).subscribe(this.attachTargets.bind(this)))}},{key:"ngOnInit",value:function(){var e=this;this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngDoCheck",value:function(){var e=this,n=this.groups.map(function(a){return e.groupInfoService.groupTitle(a)});(n.length!==this.groupTitles.length||n.some(function(a,o){return a!==e.groupTitles[o]}))&&(this.groupTitles=n,this.cd.markForCheck())}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.targetSubscription&&this.targetSubscription.unsubscribe()}},{key:"directionChange",value:function(e){var n=this.groups.findIndex(function(o){return o.field===e.field}),a=[].concat(Ae(this.groups.slice(0,n)),[e],Ae(this.groups.slice(n+1)));this.change.emit(a)}},{key:"insert",value:function(e,n){var a=this.groups.filter(function(o){return o.field!==e});(a.length||0===this.groups.length)&&this.change.emit([].concat(Ae(a.slice(0,n)),[{field:e}],Ae(a.slice(n))))}},{key:"remove",value:function(e){this.change.emit(this.groups.filter(function(n){return n.field!==e.field}))}},{key:"canDrop",value:function(e,n){var o="groupIndicator"===e.type?B_t:function(r){return KT(R_t,O_t,function(r){return function(t){return!r.isGroupable(t.field)}}(r))}(this.groupInfoService);return!o({field:e.field,groups:this.groups,target:n})}},{key:"attachTargets",value:function(){var e=this;this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Je;var n=this.dropTargets.reduce(function(s,l){return xn(s,l.enter)},wi([])),a=this.dropTargets.reduce(function(s,l){return xn(s,l.leave)},wi([])),o=this.dropTargets.reduce(function(s,l){return xn(s,l.drop)},wi([]));this.targetSubscription.add(n.pipe(At(function(s){return e.hint.removeLock()}),Ue(function(s){return e.canDrop(s.draggable.context,s.target.context)}),At(this.enter.bind(this)),xE(o.pipe(Qr(a.pipe(At(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}},{key:"enter",value:function(e){var n=e.draggable,a=e.target;this.hint.enable();var o=a.context.lastTarget||Ohe(n.element.nativeElement,a.element.nativeElement);this.localization.rtl&&(o=!o),this.cue.position(Ihe(a.element.nativeElement,o))}},{key:"leave",value:function(){this.hint.disable(),this.cue.hide()}},{key:"drop",value:function(e){var n=e.target,o=e.draggable.context.field,s=this.dropTargets.toArray().indexOf(n);this.insert(o,s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(oA),m(sA),m(tA),m(Y),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-group-panel"]],viewQuery:function(t,e){var n;1&t&&ge(Ib,5),2&t&&P(n=B())&&(e.dropTargets=n)},hostVars:4,hostBindings:function(t,e){2&t&&ue("k-grouping-header",e.groupHeaderClass)("k-grouping-header-flex",e.groupHeaderClass)},inputs:{text:"text",groups:"groups"},outputs:{change:"change"},decls:3,vars:3,consts:[[4,"ngIf"],["class","k-indicator-container","kendoDropTarget","",3,"context",4,"ngFor","ngForOf"],["class","k-indicator-container","kendoDropTarget","",3,"context",4,"ngIf"],["kendoDropTarget","",1,"k-indicator-container",3,"context"],["kendoDraggableColumn","","kendoGroupIndicator","","kendoDraggable","",3,"enableDrag","context","group","groupTitle","directionChange","remove"]],template:function(t,e){1&t&&(T(0,Sft,3,3,"ng-container",0),T(1,Eft,2,10,"div",1),T(2,Tft,2,2,"div",2)),2&t&&(y("ngIf",0===e.groups.length),k(1),y("ngForOf",e.groups),k(1),y("ngIf",0!==e.groups.length))},directives:[Ghe,qe,Ib,gn,rU,$o],encapsulation:2,changeDetection:0}),i}(),aU=function(){var i=function(){function r(){p(this,r),this.columns=[],this.groups=[]}return v(r,[{key:"columnsToRender",get:function(){return nd(this.columns)}},{key:"trackBy",value:function(e,n){return e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGridColGroup",""]],inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate"},attrs:Aft,decls:4,vars:4,consts:[[3,"k-group-col",4,"ngFor","ngForOf"],[3,"k-hierarchy-col",4,"ngIf"],[3,"width",4,"ngFor","ngForOf","ngForTrackBy"]],template:function(t,e){1&t&&(Ge(0),T(1,xft,1,2,"col",0),T(2,Mft,1,2,"col",1),T(3,Rft,1,2,"col",2),Ve()),2&t&&(k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsToRender)("ngForTrackBy",e.trackBy))},directives:[gn,qe],encapsulation:2}),i}(),G_t={allowUnsort:!0,mode:"single",showIndexes:!0,initialDirection:"asc",multiSortKey:"none"},dA=function(){for(var r=arguments.length,t=new Array(r),e=0;er?t.filters[r]:function(r,t,e){return(t=t||{filters:[],logic:"and"}).filters[r]=e,e}(r,t,{field:e,operator:n})},Hm=function(r){return[{text:r.get("filterAndLogic"),value:"and"},{text:r.get("filterOrLogic"),value:"or"}]},$he=function i(r){return He(r.filters)?r.filters.reduce(function(t,e){return t.concat(Hc(e)?i(e):[e])},[]):[]},j_t=function i(r,t){He(r)&&He(r.filters)&&(r.filters=r.filters.filter(function(e){return Hc(e)?(i(e,t),e.filters.length):e.field!==t}))},Nb=function(r,t){return $he(r||{}).filter(function(e){return e.field===t})},oU=function(r,t){return j_t(r,t),r},fA=function(r){return function(t){return Object.keys(r).map(function(e){return{text:t.get(e),value:r[e]}})}},Km=function(){var i=function(){function r(t){p(this,r),this.filterService=t,this.operatorList=new Ei}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"operators",get:function(){var e;return(null===(e=this._operators)||void 0===e?void 0:e.length)?this._operators:this.defaultOperators},set:function(e){this._operators=e}},{key:"ngAfterContentInit",value:function(){var e=this;this.operationListSubscription=HT(this.operatorList).pipe(We(function(n){return n.toArray()}),We(hA)).subscribe(function(n){e.operators=n})}},{key:"ngOnDestroy",value:function(){this.operationListSubscription&&this.operationListSubscription.unsubscribe()}},{key:"filterByField",value:function(e){return function(r,t){return Bt(Nb(r,t),1)[0]}(this.filter,e)}},{key:"filtersByField",value:function(e){return Nb(this.filter,e)}},{key:"removeFilter",value:function(e){return oU(this.filter,e)}},{key:"updateFilter",value:function(e){var n=this.filter||{filters:[],logic:"and"},s=Bt($he(n).filter(function(l){return l.field===e.field}),1)[0];return He(s)?Object.assign(s,e):n.filters.push(e),n}},{key:"applyFilter",value:function(e){this.filterService.filter(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-base-filter-cell"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Tn,4),2&t&&P(a=B())&&(e.operatorList=a)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filtercell",e.hostClasses)},inputs:{operators:"operators"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),$_t=function(r,t){return r.field!==t.field||r.operator!==t.operator||r.value!==t.value},sU=function i(r){if(r)return Hc(r)?{filters:i(r.filters),logic:r.logic}:Array.isArray(r)?r.map(i):function(r){return function(r){var t={};if(Object.assign(t,r),r.constructor!==Object){var e=r.constructor.prototype;Object.getOwnPropertyNames(e).forEach(function(n){"constructor"!==n&&e.hasOwnProperty(n)&&(t[n]=r[n])})}return t}(r)}(r)},qhe=function(r,t){return!!(He(r)&&!He(t)||!He(r)&&He(t))||He(r)&&He(t)&&function(r,t){if(r.length!==t.length)return!0;for(var e=0,n=r.length;e0?e.changeRequests.next(n):e.change.emit(n)}),this.subscribeChanges()}},{key:"ngOnChanges",value:function(e){yn("filterDelay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())}},{key:"ngOnDestroy",value:function(){this.unsubscribeChanges(),this.unsubscribeEvents()}},{key:"subscribeChanges",value:function(){var e=this;this.changeRequestsSubscription=this.changeRequests.pipe(function UL(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return oi(function(t,e){var n=null,a=null,o=null,s=function(){if(n){n.unsubscribe(),n=null;var c=a;a=null,e.next(c)}};function l(){var u=o+i,c=r.now();if(c2&&void 0!==arguments[2]?arguments[2]:"and",n=nyt((r||{}).filters||[],t);return He(n)?n.logic:e},lU=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.parentService=t,this.childService=e,this.localization=n,this.cd=a,this.close=new O,this.actionsClass="k-action-buttons k-button-group",this._templateContext={},this.menuTabbingService=o}return v(r,[{key:"filter",get:function(){return this._filter},set:function(e){this._filter=sU(e)}},{key:"childFilter",get:function(){return He(this._childFilter)||(this._childFilter={filters:Nb(this.filter,(this.column||{}).field),logic:iyt(this.filter,(this.column||{}).field)}),this._childFilter}},{key:"ngOnInit",value:function(){var e=this;this.subscription=this.childService.changes.subscribe(function(n){return e._childFilter=n}),this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngAfterViewChecked",value:function(){(!this.menuTabbingService.isColumnMenu||this.isLast&&this.isExpanded)&&(this.menuTabbingService.lastFocusable=this.disabled?this.resetButton.nativeElement:this.filterButton.nativeElement)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.menuTabbingService.lastFocusable=void 0}},{key:"disabled",get:function(){return!this.childFilter.filters.some(sfe)}},{key:"templateContext",get:function(){return this._templateContext.column=this.column,this._templateContext.filter=this.childFilter,this._templateContext.filterService=this.childService,this._templateContext.$implicit=this.childFilter,this._templateContext}},{key:"hasTemplate",get:function(){return He(this.column)&&He(this.column.filterMenuTemplateRef)}},{key:"submit",value:function(){var e=function(r){return r.filters=r.filters.filter(sfe),r}(this.childFilter);if(e.filters.length){var n=this.filter||{filters:[],logic:"and"};oU(n,this.column.field),n.filters.push(e),this.parentService.filter(n)}return this.close.emit(),!1}},{key:"reset",value:function(){var e=this.filter||{filters:[],logic:"and"};oU(e,this.column.field),this.parentService.filter(e),this.close.emit()}},{key:"onTab",value:function(e,n){this.menuTabbingService.firstFocusable&&(!this.menuTabbingService.isColumnMenu||this.isLast)&&(e.preventDefault(),"reset"===n?this.disabled?this.menuTabbingService.firstFocusable.focus():this.filterButton.nativeElement.focus():this.menuTabbingService.firstFocusable.focus())}},{key:"clearText",get:function(){return this.localization.get("filterClearButton")}},{key:"filterText",get:function(){return this.localization.get("filterFilterButton")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la,4),m(la),m(Y),m(nt),m(xb))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-menu-container"]],viewQuery:function(t,e){var n;1&t&&(ge(Gft,5),ge(Vft,5)),2&t&&(P(n=B())&&(e.resetButton=n.first),P(n=B())&&(e.filterButton=n.first))},inputs:{column:"column",isLast:"isLast",isExpanded:"isExpanded",menuTabbingService:"menuTabbingService",filter:"filter",actionsClass:"actionsClass"},outputs:{close:"close"},features:[de([la,xb])],decls:12,vars:7,consts:[[1,"k-filter-menu","k-group","k-reset","k-state-border-up",3,"submit","reset"],[1,"k-filter-menu-container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngClass"],["type","reset",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab"],["resetButton",""],["type","submit",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"disabled","keydown.tab"],["filterButton",""],["kendoFilterMenuHost","",3,"filterService","column","filter","menuTabbingService"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(A(0,"form",0),Q("submit",function(){return e.submit()})("reset",function(){return e.reset()}),A(1,"div",1),Ge(2,2),T(3,Uft,2,4,"ng-container",3),T(4,Kft,2,1,"ng-container",3),Ve(),A(5,"div",4)(6,"button",5,6),Q("keydown.tab",function(a){return e.onTab(a,"reset")}),te(8),x(),A(9,"button",7,8),Q("keydown.tab",function(a){return e.onTab(a,"filter")}),te(11),x()()()()),2&t&&(k(2),y("ngSwitch",e.hasTemplate),k(1),y("ngSwitchCase",!1),k(1),y("ngSwitchCase",!0),k(1),y("ngClass",e.actionsClass),k(3),at(e.clearText),k(1),y("disabled",e.disabled),k(2),at(e.filterText))},directives:[Zee,Fee,BE,kd,Gp,ofe,qe,En,Ft],encapsulation:2}),i}(),uU=function(){var i=function(){function r(t,e,n,a){p(this,r),this.filterService=t,this.popupService=e,this.localization=n,this.navigationService=a,this.tabIndex="-1"}return v(r,[{key:"hasFilters",get:function(){return Nb(this.filter,(this.column||{}).field).length>0}},{key:"filterLabel",get:function(){var e=this.localization.get("filterMenuTitle")||"";return Ea(e,"columnName",this.column.title||this.column.field)}},{key:"toggle",value:function(e,n){return this.popupRef=this.popupService.open(e,n,this.popupRef),this.popupRef||(this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()),!1}},{key:"close",value:function(){this.popupService.destroy(),this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la),m(Ob),m(Y),m(Ua))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-menu"]],viewQuery:function(t,e){var n;1&t&&(ge(Jde,7),ge(ehe,7,$e)),2&t&&(P(n=B())&&(e.anchor=n.first),P(n=B())&&(e.template=n.first))},inputs:{column:"column",filter:"filter",tabIndex:"tabIndex"},decls:5,vars:5,consts:[["href","#",3,"ngClass","tabindex","click","keydown.enter"],["anchor",""],[1,"k-icon","k-i-filter"],["template",""],[3,"column","filter","close","keydown.escape","keydown.enter"]],template:function(t,e){if(1&t){var n=Me();A(0,"a",0,1),Q("click",function(){re(n);var o=Yt(1),s=Yt(4);return e.toggle(o,s)})("keydown.enter",function(o){return o.stopImmediatePropagation()}),z(2,"span",2),x(),T(3,jft,1,2,"ng-template",null,3,$n)}2&t&&(y("ngClass",ot(3,Wft,e.hasFilters))("tabindex",e.tabIndex),ie("title",e.filterLabel))},directives:[lU,Ft],encapsulation:2}),i}(),cU=function(){var i=function(){function r(t){p(this,r),this.closeMenu=new O,this.menuTabbingService=t}return v(r,[{key:"close",value:function(){this.closeMenu.emit()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(xb))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Wm=function(){var i=function(){function r(){p(this,r),this.hostClass=!0}return v(r,[{key:"ngOnInit",value:function(){if(xt()&&!this.service)throw new Error("The service input of the predefined column menu components is mandatory.")}},{key:"close",value:function(){this.service.close()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-menu-item-base"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-columnmenu-item-wrapper",e.hostClass)},inputs:{service:"service"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),$m=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuItemContentTemplate",""]]}),i}(),Ah=function(){var i=function(){function r(){p(this,r),this.itemClick=new O,this.expand=new O,this.collapse=new O,this.contentState="collapsed"}return v(r,[{key:"iconClass",get:function(){return"k-i-".concat(this.icon)}},{key:"ngOnChanges",value:function(e){e.expanded&&this.updateContentState()}},{key:"onClick",value:function(e){this.itemClick.emit(e),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),this.expanded?this.expand.emit():this.collapse.emit())}},{key:"updateContentState",value:function(){this.contentState=this.expanded?"expanded":"collapsed"}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,$m,5),2&t&&P(a=B())&&(e.contentTemplate=a.first)},inputs:{icon:"icon",text:"text",selected:"selected",disabled:"disabled",expanded:"expanded"},outputs:{itemClick:"itemClick",expand:"expand",collapse:"collapse"},features:[Ie],decls:4,vars:8,consts:[["role","button",1,"k-columnmenu-item",3,"click","keydown.enter"],["class","k-icon",3,"ngClass",4,"ngIf"],["style","overflow:hidden;","class","k-columnmenu-item-content",4,"ngIf"],[1,"k-icon",3,"ngClass"],[1,"k-columnmenu-item-content",2,"overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(A(0,"div",0),Q("click",function(a){return e.onClick(a)})("keydown.enter",function(a){return e.onClick(a)}),T(1,$ft,1,1,"span",1),te(2),x(),T(3,qft,3,2,"div",2)),2&t&&(ue("k-state-selected",e.selected)("k-state-disabled",e.disabled),ie("aria-expanded",e.expanded),k(1),y("ngIf",e.icon),k(1),Nt(" ",e.text," "),k(1),y("ngIf",e.contentTemplate))},directives:[qe,Ft,En],encapsulation:2,data:{animation:[ef("state",[Cd("collapsed",Lt({display:"none"})),Cd("expanded",Lt({display:"block"})),iu("collapsed => expanded",[Lt({height:"0px",display:"block"}),Ai("100ms ease-in",Lt({height:"*"}))]),iu("expanded => collapsed",[Lt({height:"*"}),Ai("100ms ease-in",Lt({height:"0px"}))])])]}}),i}(),kA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.columnInfoService=a,s.changeDetector=o,s}return v(e,[{key:"text",get:function(){return this.localization.get(this.locked?"unlock":"lock")}},{key:"icon",get:function(){return this.locked?"unlock":"lock"}},{key:"disabled",get:function(){return!this.locked&&this.columnInfoService.unlockedRootCount<2}},{key:"toggleColumn",value:function(){this.toggleHierarchy(!this.locked),this.close(),this.changeDetector.markForCheck()}},{key:"toggleHierarchy",value:function(a){for(var o=this.service.column;o.parent;)o=o.parent;for(var s=[o],l=[];s.length;){var u=s.shift();u.locked=a,l.push(u),u.hasChildren&&s.push.apply(s,Ae(u.childrenArray))}this.columnInfoService.changeLocked(l)}},{key:"locked",get:function(){return this.service.column.locked}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-lock"]],features:[j],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleColumn()}),x()),2&t&&y("text",e.text)("icon",e.icon)("disabled",e.disabled)},directives:[Ah],encapsulation:2}),i}(),CA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.columnInfoService=a,s.changeDetector=o,s}return v(e,[{key:"text",get:function(){return this.localization.get(this.sticky?"unstick":"stick")}},{key:"icon",get:function(){return this.sticky?"unstick":"stick"}},{key:"disabled",get:function(){return!this.sticky&&this.columnInfoService.unlockedRootCount<2}},{key:"toggleColumn",value:function(){this.toggleHierarchy(!this.sticky),this.close(),this.changeDetector.markForCheck()}},{key:"toggleHierarchy",value:function(a){for(var o=this.service.column;o.parent;)o=o.parent;for(var s=[o],l=[];s.length;){var u=s.shift();u.sticky=a,l.push(u),u.hasChildren&&s.push.apply(s,Ae(u.childrenArray))}this.columnInfoService.changeStuck(l)}},{key:"sticky",get:function(){return this.service.column.sticky}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-stick"]],features:[j],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleColumn()}),x()),2&t&&y("text",e.text)("icon",e.icon)("disabled",e.disabled)},directives:[Ah],encapsulation:2}),i}(),bA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).localization=n,o.hostElement=a,o.expand=new O,o.collapse=new O,o.expanded=!1,o.actionsClass="k-columnmenu-actions",o._isLast=!1,o}return v(e,[{key:"isLast",get:function(){return this._isLast},set:function(a){this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem(),this._isLast=a}},{key:"onTab",value:function(a,o){this.isLast&&o&&(a.preventDefault(),a.stopImmediatePropagation(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}},{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.expand.emit()}},{key:"getLastFocusableItem",value:function(){var a=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item");return a[this.expanded?a.length-1:0]}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-position"]],inputs:{expanded:"expanded",showLock:"showLock",showStick:"showStick",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","set-column-position",3,"text","expanded","keydown.tab","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"service","keydown.tab",4,"ngIf"],[3,"service","keydown.tab"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("keydown.tab",function(a){return e.onTab(a,!e.expanded)})("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,Yft,2,2,"ng-template",1),x()),2&t&&y("text",e.localization.get("setColumnPosition"))("expanded",e.expanded)},directives:[Ah,kA,CA,$m,qe],encapsulation:2}),i}(),dU=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.ngZone=e,this.renderer=n,this.reset=new O,this.apply=new O,this.columnChange=new O,this.autoSync=!0,this.allowHideAll=!1,this.actionsClass="k-action-buttons",this.unlockedCount=0}return v(r,[{key:"className",get:function(){return!0}},{key:"columns",get:function(){return this._columns},set:function(e){this._columns=e.filter(function(n){return!1!==n.includeInChooser}),this.allColumns=e,this.updateColumnState()}},{key:"isDisabled",value:function(e){return!(this.allowHideAll||this.hasFiltered||e.hidden||this.columns.find(function(n){return n!==e&&!n.hidden}))||this.hasVisibleLocked&&!this.hasUnlockedFiltered&&1===this.unlockedCount&&!e.locked&&!e.hidden}},{key:"ngOnInit",value:function(){var e=this;!this.element||this.ngZone.runOutsideAngular(function(){e.domSubscriptions=e.renderer.listen(e.element.nativeElement,"click",function(n){if(Rv(n.target,"k-checkbox"))if(e.autoSync){var a=parseInt(n.target.getAttribute("data-index"),10),o=e.columns[a],s=!n.target.checked;Boolean(o.hidden)!==s&&e.ngZone.run(function(){o.hidden=s,e.columnChange.emit([o])})}else e.updateDisabled()})})}},{key:"ngOnChanges",value:function(e){!this.service||(e.isLast&&this.isLast&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement),e.isExpanded&&this.isExpanded&&this.isLast&&this.applyButton&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement))}},{key:"ngOnDestroy",value:function(){this.domSubscriptions&&this.domSubscriptions()}},{key:"cancelChanges",value:function(){var e=this;this.forEachCheckBox(function(n,a){n.checked=!e.columns[a].hidden}),this.updateDisabled(),this.reset.emit()}},{key:"applyChanges",value:function(){var e=this,n=[];this.forEachCheckBox(function(a,o){var s=e.columns[o],l=!a.checked;Boolean(s.hidden)!==l&&(s.hidden=l,n.push(s))}),this.updateDisabled(),this.apply.emit(n)}},{key:"onTab",value:function(e){this.isLast&&(e.preventDefault(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}},{key:"forEachCheckBox",value:function(e){for(var n=this.element.nativeElement.getElementsByClassName("k-checkbox"),a=n.length,o=0;o0,this.hasVisibleLocked=this.allColumns.filter(function(n){return n.locked&&!n.hidden}).length>0,this.unlockedCount=this.columns.filter(function(n){return!n.locked&&!n.hidden}).length;var e=this.allColumns.filter(function(n){return!1===n.includeInChooser&&!n.hidden});e.length?(this.hasFiltered=e.length>0,this.hasUnlockedFiltered=e.filter(function(n){return!n.locked}).length>0):(this.hasFiltered=!1,this.hasUnlockedFiltered=!1)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnlist"]],viewQuery:function(t,e){var n;1&t&&ge(Qft,5),2&t&&P(n=B())&&(e.applyButton=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-column-list-wrapper",e.className)},inputs:{columns:"columns",autoSync:"autoSync",allowHideAll:"allowHideAll",applyText:"applyText",resetText:"resetText",actionsClass:"actionsClass",isLast:"isLast",isExpanded:"isExpanded",service:"service"},outputs:{reset:"reset",apply:"apply",columnChange:"columnChange"},features:[Ie],decls:3,vars:2,consts:[[1,"k-column-list"],["class","k-column-list-item",4,"ngFor","ngForOf"],[3,"ngClass",4,"ngIf"],[1,"k-column-list-item"],["type","checkbox",1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"checked","disabled"],[1,"k-checkbox-label"],[3,"ngClass"],["type","button",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"click"],["type","button",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab","click"],["applyButton",""]],template:function(t,e){1&t&&(A(0,"div",0),T(1,Jft,4,4,"label",1),x(),T(2,evt,6,3,"div",2)),2&t&&(k(1),y("ngForOf",e.columns),k(1),y("ngIf",!e.autoSync))},directives:[gn,qe,Ft],encapsulation:2}),i}(),SA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this)).localization=n,l.columnInfoService=a,l.changeDetector=o,l.hostElement=s,l.expand=new O,l.collapse=new O,l.expanded=!1,l.isLast=!1,l.actionsClass="k-columnmenu-actions",l}return v(e,[{key:"columns",get:function(){return this.columnInfoService.leafNamedColumns}},{key:"onApply",value:function(a){this.close(),a.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(a))}},{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.expand.emit()}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-chooser"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","columns",3,"text","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"applyText","resetText","columns","autoSync","allowHideAll","actionsClass","isLast","isExpanded","service","apply"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,tvt,1,9,"ng-template",1),x()),2&t&&y("text",e.localization.get("columns"))("expanded",e.expanded)},directives:[Ah,dU,$m],encapsulation:2}),i}(),Lb=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).localization=n,o.hostElement=a,o.expand=new O,o.collapse=new O,o.expanded=!1,o.isLast=!1,o.actionsClass="k-columnmenu-actions",o}return v(e,[{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.expand.emit()}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-filter"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","filter",3,"text","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"column","menuTabbingService","filter","actionsClass","isLast","isExpanded","keydown.shift.tab","close"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,nvt,1,6,"ng-template",1),x()),2&t&&y("text",e.localization.get("filter"))("expanded",e.expanded)},directives:[Ah,lU,$m],encapsulation:2}),i}(),wA=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.hostElement=t,this.renderer=e,this.ngZone=n,this._isFirst=!1,this._isLast=!1,this.subs=new Je,this.onTab=function(o){o.keyCode===J.Tab&&(a.isFirst&&o.shiftKey&&o.target===a.columnMenuItems[0]&&(o.preventDefault(),a.menuItemComponent.service.menuTabbingService.lastFocusable.focus()),a.isLast&&!o.shiftKey)&&a.getLastColumnMenuItem()===o.target&&!a.menuItemComponent.expanded&&(o.preventDefault(),a.menuItemComponent.service.menuTabbingService.firstFocusable.focus())}}return v(r,[{key:"isFirst",get:function(){return this._isFirst},set:function(e){var n=this;if(e){var a=this.columnMenuItems[0];this.menuItemComponent.service.menuTabbingService.firstFocusable=a,this.ngZone.runOutsideAngular(function(){var o=n.renderer.listen(a,"keydown",n.onTab);n.subs.add(o)})}this._isFirst=e}},{key:"isLast",get:function(){return this._isLast},set:function(e){var n=this;if(this.columnMenuItems){if(e){var a=this.getLastColumnMenuItem();this.menuItemComponent.service.menuTabbingService.lastFocusable=a,this.ngZone.runOutsideAngular(function(){var o=n.renderer.listen(a,"keydown",n.onTab);n.subs.add(o)}),this.isExpandableItem()&&(this.menuItemComponent.isLast=!0)}this._isLast=e}}},{key:"ngAfterViewInit",value:function(){var e=this;this.columnMenuItems=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),[].slice.apply(this.columnMenuItems).forEach(function(n){return e.renderer.setAttribute(n,"tabindex","0")}),this.menuItemComponent instanceof Lb&&(this.menuItemComponent.service.menuTabbingService.isColumnMenu=!0)}},{key:"ngOnDestroy",value:function(){this.subs&&this.subs.unsubscribe()}},{key:"getLastColumnMenuItem",value:function(){return 1===this.columnMenuItems.length?this.columnMenuItems[0]:this.columnMenuItems[1]}},{key:"isExpandableItem",value:function(){return this.menuItemComponent instanceof Lb||this.menuItemComponent instanceof SA||this.menuItemComponent instanceof bA}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuItem",""]],inputs:{menuItemComponent:["kendoGridColumnMenuItem","menuItemComponent"]}}),i}(),hU=function(){var i=function(){function r(t,e){p(this,r),this.service=t,this.ngZone=e}return v(r,[{key:"ngAfterContentInit",value:function(){var e=this;!this.columnMenuItems.length||(this.columnMenuItems.first.isFirst=!0,this.columnMenuItems.last.isLast=!0,this.ngZone.onStable.pipe(It(1)).subscribe(function(){return e.service.menuTabbingService.firstFocusable.focus()}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(cU),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-container"]],contentQueries:function(t,e,n){var a;1&t&&he(n,wA,5),2&t&&P(a=B())&&(e.columnMenuItems=a)},ngContentSelectors:uV,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),fU=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.sortService=a,s.renderer=o,s}return v(e,[{key:"sortedAsc",get:function(){var a=this.descriptor;return a&&(!a.dir||"asc"===a.dir)}},{key:"sortedDesc",get:function(){var a=this.descriptor;return a&&"desc"===a.dir}},{key:"toggleSort",value:function(a){var o=this.service.column.field,s=dA(this.service.sortable),u=s.allowUnsort,c=this.descriptor,d="multiple"===s.mode?this.service.sort.filter(function(h){return h.field!==o}):[];if(c&&c.dir===a){if(!u)return}else d.push({field:o,dir:a});this.sortService.sort(d),this.close()}},{key:"descriptor",get:function(){var a=this;return[].concat(this.service.sort||[]).find(function(o){return o.field===a.service.column.field})}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(lA),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-sort"]],features:[j],decls:2,vars:4,consts:[["icon","sort-asc-sm",3,"text","selected","itemClick"],["icon","sort-desc-sm",3,"text","selected","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleSort("asc")}),x(),A(1,"kendo-grid-columnmenu-item",1),Q("itemClick",function(){return e.toggleSort("desc")}),x()),2&t&&(y("text",e.localization.get("sortAscending"))("selected",e.sortedAsc),k(1),y("text",e.localization.get("sortDescending"))("selected",e.sortedDesc))},directives:[Ah],encapsulation:2}),i}(),DA=function(){var i=function(){function r(t,e,n,a){p(this,r),this.popupService=t,this.localization=e,this.service=n,this.navigationService=a,this.standalone=!0,this.settings={},this.sortable=!0,this.tabIndex="-1",this.expandedFilter=!1,this.expandedColumns=!1,this.expandedPosition=!1,this.closeSubscription=n.closeMenu.subscribe(this.close.bind(this))}return v(r,[{key:"isActive",get:function(){var e=this;return this.hasFilter&&Nb(this.filter,this.column.field).length>0||!this.sortable&&this.hasSort&&this.sort.find(function(n){return n.field===e.column.field})}},{key:"hasFilter",get:function(){return zhe(this.settings,this.column)}},{key:"hasSort",get:function(){return Hhe(this.settings,this.column)}},{key:"hasColumnChooser",get:function(){return jhe(this.settings)}},{key:"hasLock",get:function(){return Khe(this.settings,this.column)}},{key:"hasStick",get:function(){return function(r,t){return r.stick&&t.stickable&&!(t.parent&&!t.parent.isSpanColumn)}(this.settings,this.column)}},{key:"hasPosition",get:function(){return function(r,t){return r.setColumnPosition&&(t.stickable||t.lockable)&&!(t.parent&&!t.parent.isSpanColumn)}(this.settings,this.column)}},{key:"ngOnChanges",value:function(){this.service.column=this.column,this.service.sort=this.sort,this.service.filter=this.filter,this.service.sortable=this.sortable}},{key:"ngOnDestroy",value:function(){this.close(),this.closeSubscription.unsubscribe()}},{key:"toggle",value:function(e,n,a){e&&(e.preventDefault(),e.stopImmediatePropagation()),this.expandedFilter=this.getExpandedState(this.settings.filter),this.expandedColumns=this.getExpandedState(this.settings.columnChooser),this.expandedPosition=this.getExpandedState(this.settings.setColumnPosition),this.popupRef=this.popupService.open(n,a,this.popupRef,"k-grid-columnmenu-popup"),this.popupRef||(this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus())}},{key:"close",value:function(){this.popupService.destroy(),this.popupRef=null,this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}},{key:"columnMenuTitle",get:function(){var e=this.localization.get("columnMenu")||"";return Ea(e,"columnName",this.column.title||this.column.field)}},{key:"getExpandedState",value:function(e){return"object"==typeof e&&e.expanded}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ob),m(Y),m(cU),m(Ua))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-menu"]],viewQuery:function(t,e){var n;1&t&&(ge(Jde,7),ge(ehe,7,$e)),2&t&&(P(n=B())&&(e.anchor=n.first),P(n=B())&&(e.template=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-column-menu-standalone",e.standalone)},inputs:{standalone:"standalone",column:"column",settings:"settings",sort:"sort",filter:"filter",sortable:"sortable",columnMenuTemplate:"columnMenuTemplate",tabIndex:"tabIndex"},features:[de([cU,xb]),Ie],decls:7,vars:5,consts:[["href","#",1,"k-grid-column-menu","k-grid-filter",3,"ngClass","tabindex","click","keydown.enter"],["anchor",""],[1,"k-icon","k-i-more-vertical"],["template",""],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"keydown.escape","keydown.enter"],[3,"kendoGridColumnMenuItem","service",4,"ngIf"],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"kendoGridColumnMenuItem","service"],["sortItem",""],["lockItem",""],["stickItem",""],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded"],["positionItem",""],[3,"kendoGridColumnMenuItem","service","expanded"],["chooserItem",""],["filterItem",""]],template:function(t,e){if(1&t){var n=Me();A(0,"a",0,1),Q("click",function(o){re(n);var s=Yt(1),l=Yt(4);return e.toggle(o,s,l)})("keydown.enter",function(o){return o.stopImmediatePropagation()}),z(2,"span",2),x(),T(3,rvt,1,5,"ng-template",null,3,$n),T(5,dvt,7,6,"ng-template",null,4,$n)}2&t&&(y("ngClass",ot(3,hvt,e.isActive))("tabindex",e.tabIndex),ie("title",e.columnMenuTitle))},directives:[hU,fU,kA,CA,bA,SA,Lb,Ft,En,qe,wA],encapsulation:2}),i}(),vU=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.clearText="Clear",this.operators=[],this.showOperators=!0,this.valueChange=new O,this.clear=new O}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"onChange",value:function(e){this.valueChange.emit(e)}},{key:"clearClick",value:function(){return this.clear.emit(),!1}},{key:"clearKeydown",value:function(e){(e.keyCode===J.Enter||e.keyCode===J.Space)&&this.clear.emit()}},{key:"dropdownKeydown",value:function(e){e.defaultPrevented||e.keyCode===J.Enter&&!this.dropdown.isOpen&&(this.dropdown.toggle(!0),e.preventDefault())}},{key:"ngOnInit",value:function(){var e=this;this.localization.changes.subscribe(function(){return e.clearText=e.localization.get("filterClearButton")})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-cell-operators"]],viewQuery:function(t,e){var n;1&t&&ge(fvt,5),2&t&&P(n=B())&&(e.dropdown=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filtercell-operator",e.hostClasses)},inputs:{operators:"operators",showButton:"showButton",showOperators:"showOperators",value:"value"},outputs:{valueChange:"valueChange",clear:"clear"},decls:2,vars:2,consts:[["kendoGridFocusable","","class","k-dropdown-operator","iconClass","k-i-filter","textField","text","valueField","value",3,"data","value","valuePrimitive","popupSettings","valueChange","keydown",4,"ngIf"],["type","button","kendoGridFocusable","","class","k-button k-button-solid-base k-button-solid k-button-md k-rounded-md k-button-rectangle k-icon-button",3,"title","click","keydown",4,"ngIf"],["kendoGridFocusable","","iconClass","k-i-filter","textField","text","valueField","value",1,"k-dropdown-operator",3,"data","value","valuePrimitive","popupSettings","valueChange","keydown"],["dropdown",""],["type","button","kendoGridFocusable","",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"title","click","keydown"],[1,"k-icon","k-button-icon","k-i-filter-clear"]],template:function(t,e){1&t&&(T(0,vvt,2,5,"kendo-dropdownlist",0),T(1,pvt,2,1,"button",1)),2&t&&(y("ngIf",e.showOperators),k(1),y("ngIf",e.showButton))},directives:[js,qe,co],encapsulation:2}),i}(),ayt=["isnull","isnotnull","isempty","isnotempty"],qm=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,n)).showOperators=!0,a}return v(e,[{key:"hostClasses",get:function(){return!0}},{key:"overrideBaseClasses",get:function(){return!1}},{key:"showButton",get:function(){var a=this.currentFilter;return He(a)&&(!Dr(a.value)||ayt.indexOf(String(a.operator))>=0)}},{key:"filterChange",value:function(a){this.applyFilter(a)}}]),e}(Yhe);return i.\u0275fac=function(t){return new(t||i)(m(la))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-wrapper-cell"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-filtercell-wrapper",e.hostClasses)("k-filtercell",e.overrideBaseClasses)},inputs:{showOperators:"showOperators"},features:[j],ngContentSelectors:uV,decls:2,vars:4,consts:[[3,"showOperators","operators","showButton","value","clear","valueChange"]],template:function(t,e){1&t&&(kn(),dn(0),A(1,"kendo-grid-filter-cell-operators",0),Q("clear",function(){return e.onClear()})("valueChange",function(a){return e.currentOperator=a}),x()),2&t&&(k(1),y("showOperators",e.showOperators)("operators",e.operators)("showButton",e.showButton)("value",e.currentOperator))},directives:[vU],encapsulation:2}),i}(),Pb=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).filterDelay=500,o.showOperators=!0,o}return v(e,[{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(Zhe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-string-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[j],decls:2,vars:8,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoTextBox","","kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","ngModel"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"input",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("filterDelay",e.filterDelay)("ngModel",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,TP,zc,co,$u,jf,Wf],encapsulation:2}),i}(),EA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).localization=a,o.filterDelay=500,o.showOperators=!0,o}return v(e,[{key:"messageFor",value:function(a){return this.localization.get(a)}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(efe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-numeric-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[j],decls:3,vars:17,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","step"],[3,"increment","decrement"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-numerictextbox",1),z(2,"kendo-numerictextbox-messages",2),x()()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("filterDelay",e.filterDelay)("autoCorrect",!0)("value",null==e.currentFilter?null:e.currentFilter.value)("format",e.format)("decimals",e.decimals)("spinners",e.spinners)("min",e.min)("max",e.max)("step",e.step),k(1),y("increment",e.messageFor("filterNumericIncrement"))("decrement",e.messageFor("filterNumericDecrement")))},directives:[qm,Jf,hie,co,$u],encapsulation:2}),i}(),TA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a)).cd=o,s}return v(e,[{key:"localizationChange",value:function(){$(q(e.prototype),"localizationChange",this).call(this),this.cd.markForCheck()}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(afe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-boolean-filter-cell"]],features:[j],decls:2,vars:11,consts:[[3,"column","filter","showOperators","defaultOperator"],["kendoFilterInput","","kendoGridFocusable","","textField","text","valueField","value",3,"columnLabel","defaultItem","data","popupSettings","valuePrimitive","value"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"kendo-dropdownlist",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("showOperators",!1)("defaultOperator",e.operator),k(1),y("columnLabel",e.columnLabel)("defaultItem",e.defaultItem)("data",e.items)("popupSettings",wt(10,the))("valuePrimitive",!0)("value",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,js,$u,co],encapsulation:2}),i}(),AA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).localization=a,o.showOperators=!0,o}return v(e,[{key:"messageFor",value:function(a){return this.localization.get(a)}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(ife);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-date-filter-cell"]],inputs:{showOperators:"showOperators"},features:[j],decls:3,vars:18,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoFilterInput","","kendoGridFocusable","",3,"columnLabel","value","format","formatPlaceholder","placeholder","activeView","bottomView","topView","min","max","weekNumber"],[3,"toggle","today"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-datepicker",1),z(2,"kendo-datepicker-messages",2),x()()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("value",null==e.currentFilter?null:e.currentFilter.value)("format",e.format)("formatPlaceholder",e.formatPlaceholder)("placeholder",e.placeholder)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("min",e.min)("max",e.max)("weekNumber",e.weekNumber),k(1),y("toggle",e.messageFor("filterDateToggle"))("today",e.messageFor("filterDateToday")))},directives:[qm,VB,Bse,$u,co],encapsulation:2}),i}(),lfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){return p(this,e),t.call(this,n,a)}return v(e,[{key:"componentType",value:function(){return Dr(this.column.filter)?Pb:function(r){return{boolean:TA,date:AA,numeric:EA,text:Pb}[r]}(this.column.filter)}}]),e}(Xhe);return i.\u0275fac=function(t){return new(t||i)(m(ei),m(Ts))},i.\u0275dir=X({type:i,selectors:[["","kendoFilterCellHost",""]],features:[j]}),i}(),pU=function(){var i=function(){function r(){p(this,r),this._templateContext={}}return v(r,[{key:"filter",get:function(){return this._filter},set:function(e){this._filter=sU(e)}},{key:"templateContext",get:function(){return this._templateContext.column=this.column,this._templateContext.filter=this.filter,this._templateContext.$implicit=this.filter,this._templateContext}},{key:"hasTemplate",get:function(){return He(this.column.filterCellTemplateRef)}},{key:"isFilterable",get:function(){return He(this.column)&&!Dr(this.column.field)&&this.column.filterable}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFilterCell",""]],inputs:{column:"column",filter:"filter"},attrs:gvt,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["kendoFilterCellHost","",3,"column","filter"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&T(0,Cvt,4,3,"ng-container",0),2&t&&y("ngIf",e.isFilterable)},directives:[qe,kd,Gp,lfe,En],encapsulation:2}),i}(),syt=0,Xm=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.focusGroup=t,this.element=e,this.columnInfoService=n,this.idService=a,this.navigationService=o,this.renderer=s,this.zone=l,this.cellContext=u,this.logicalSlaveCell=!1,this.colSpan=1,this.rowSpan=1,this.dataRowIndex=-1,this.detailExpandCell=!1,this.uid=function lyt(){return syt++}()}return v(r,[{key:"id",get:function(){if(!this.logicalSlaveCell&&this.columnInfoService.isLocked)return this.idService.cellId(this.logicalRowIndex,this.logicalColIndex)}},{key:"ariaColIndex",get:function(){if(!this.logicalSlaveCell&&-1!==this.logicalColIndex)return this.logicalColIndex+1}},{key:"ngOnInit",value:function(){var e=this;!this.navigationService.enabled||(this.navigationChange=this.navigationService.changes.subscribe(function(n){return e.onNavigationChange(n)}))}},{key:"ngDoCheck",value:function(){!this.navigationService.enabled||-1===this.logicalColIndex||(this.cellContext&&(this.cellContext.focusGroup=this.focusGroup),this.registerNoChanges())}},{key:"ngOnChanges",value:function(e){if(this.navigationService.enabled){var n=Object.keys(e);if((1!==n.length||"groupItem"!==n[0])&&-1!==this.logicalColIndex){var a=e.logicalColIndex,o=e.logicalRowIndex,s=a&&!a.isFirstChange()?a.previousValue:this.logicalColIndex,l=o&&!o.isFirstChange()?o.previousValue:this.logicalRowIndex;this.navigationService.unregisterCell(s,l,this),this.registerChanges(),this.updateElement()}}}},{key:"ngOnDestroy",value:function(){this.navigationChange&&this.navigationChange.unsubscribe(),this.navigationService.unregisterCell(this.logicalColIndex,this.logicalRowIndex,this)}},{key:"onNavigationChange",value:function(e){(this.logicalColIndex===e.colIndex&&this.logicalRowIndex===e.rowIndex||this.logicalColIndex===e.prevColIndex&&this.logicalRowIndex===e.prevRowIndex)&&this.updateElement()}},{key:"updateElement",value:function(){var e=this,n=this.element.nativeElement;this.renderer.setAttribute(n,"tabIndex",this.isFocusable()&&!this.logicalSlaveCell?"0":"-1"),this.isFocused()?(this.focusGroup.isNavigable()?this.focusGroup.focus():(!this.logicalSlaveCell&&this.navigationService.autoFocusCell(this.logicalColIndex,this.logicalColIndex+this.colSpan-1)&&this.microtask(function(){return e.isFocused()&&n.focus()}),this.renderer.addClass(n,"k-state-focused")),this.headerLabelText&&n.setAttribute("aria-label","")):(this.renderer.removeClass(n,"k-state-focused"),this.headerLabelText&&n.setAttribute("aria-label",this.headerLabelText))}},{key:"microtask",value:function(e){this.zone.runOutsideAngular(function(){return Promise.resolve(null).then(e)})}},{key:"registerChanges",value:function(){this.logicalSlaveCell||this.navigationService.registerCell(this)}},{key:"registerNoChanges",value:function(){this.logicalSlaveCell||this.navigationService.registerCellOnCurrentRow(this)}},{key:"isFocusable",value:function(){return this.navigationService.isCellFocusable(this)}},{key:"isFocused",value:function(){return this.navigationService.isCellFocused(this)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Vm),m(_e),m(fs),m(Bl),m(Ua),m(Ee),m(be),m(td,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLogicalCell",""]],hostVars:2,hostBindings:function(t,e){2&t&&ie("id",e.id)("aria-colindex",e.ariaColIndex)},inputs:{logicalColIndex:"logicalColIndex",logicalRowIndex:"logicalRowIndex",logicalSlaveCell:"logicalSlaveCell",colIndex:"colIndex",colSpan:"colSpan",rowSpan:"rowSpan",groupItem:"groupItem",dataRowIndex:"dataRowIndex",dataItem:"dataItem",detailExpandCell:"detailExpandCell",headerLabelText:"headerLabelText"},features:[de([{provide:Vm,deps:[Eh],useClass:Vm}]),Ie]}),i}(),gU=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.columnInfoService=e,this.columns=[],this.groups=[],this.filterRowClass=!0}return v(r,[{key:"addStickyStyles",value:function(e){var n=e.sticky?this.columnInfoService.stickyColumnsStyles(e):null;return Object.assign(Object.assign({},n),e.filterStyle)}},{key:"filterLabel",value:function(e){var n=this.localization.get("filterInputLabel")||"";return Ea(n,"columnName",e.title||e.field)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFilterRow",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filter-row",e.filterRowClass)},inputs:{columns:"columns",filter:"filter",groups:"groups",detailTemplate:"detailTemplate",logicalRowIndex:"logicalRowIndex",lockedColumnsCount:"lockedColumnsCount"},attrs:bvt,decls:3,vars:3,consts:[["role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["kendoGridFilterCell","","kendoGridLogicalCell","",3,"k-grid-header-sticky","ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf"],["role","presentation"],["kendoGridFilterCell","","kendoGridLogicalCell","",3,"ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex"]],template:function(t,e){1&t&&(T(0,Svt,1,2,"td",0),T(1,wvt,1,2,"td",1),T(2,Dvt,1,9,"td",2)),2&t&&(y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columns))},directives:[pU,gn,qe,Xm,Vi,Ft],encapsulation:2}),i}(),uyt=0,xA=function(){var i=function(){function r(t,e){p(this,r),this.idService=t,this.navigation=e,this.logicalSlaveRow=!1,this.logicalSlaveCellsCount=0,this.dataRowIndex=-1,this.uid=function cyt(){return uyt++}()}return v(r,[{key:"hostRole",get:function(){return this.logicalSlaveRow?"presentation":"row"}},{key:"ariaRowIndex",get:function(){return this.logicalRowIndex+1}},{key:"ariaOwns",get:function(){if(this.navigation.enabled&&!this.logicalSlaveRow&&0!==this.logicalSlaveCellsCount){for(var e=[],n=this.logicalCellsCount+this.logicalSlaveCellsCount,a=this.logicalCellsCount;a0||e>0}}()&&void 0===this.selectionService.selectAllState,a=!!n||this.el.nativeElement.checked,o=this.selectionService.options,s=o.enabled&&"multiple"===o.mode,l=ut(this.selectAllChange);(s||l)&&this.ngZone.run(function(){s&&e.selectionService.updateAll(a),l&&e.selectAllChange.emit(a?"checked":"unchecked")})}},{key:"setState",value:function(){var e=this.stateSet?this.stateToBool():this.selectionService.selectAllState,n=this.el.nativeElement;this.renderer.setProperty(n,"indeterminate",!He(e)),this.renderer.setProperty(n,"checked",!!He(e)&&e)}},{key:"stateToBool",value:function(){switch(this.state){case"checked":return!0;case"unchecked":return!1;default:return}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Lm),m(_e),m(Ee),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectAllCheckbox",""]],hostVars:1,hostBindings:function(t,e){2&t&&ie("type",e.type)},inputs:{state:"state"},outputs:{selectAllChange:"selectAllChange"},features:[Ie]}),i}(),_U=function(r){return r.nativeElement.parentElement.offsetWidth},ufe=function(r){return Wu(r).filter(function(t){return!t.isColumnGroup})},fyt=function(r){var t=r.originalEvent;t.stopPropagation(),t.preventDefault()},cfe=function(r){return!(!r.parent||!r.parent.isSpanColumn)},dfe=function(){var i=function(){function r(t,e,n,a,o,s,l){p(this,r),this.draggable=t,this.element=e,this.service=n,this.zone=a,this.cdr=o,this.localization=s,this.columnInfoService=l,this.columns=[],this.subscriptions=new Je,this.rtl=!1}return v(r,[{key:"visible",get:function(){return this.column.resizable?"block":"none"}},{key:"leftStyle",get:function(){return hs(this.rtl)?0:null}},{key:"rightStyle",get:function(){return hs(this.rtl)?null:0}},{key:"autoFit",value:function(){var e=this,n=ufe(this.columns),a=QT([this.column]).filter(function(s){return hs(s.resizable)}),o=a.map(function(s){var l=cfe(s),u=!!l&&s.parent.childColumns.last===s,c=function(r,t){for(var e=0,n=0,a=0;ethis.column.minResizableWidth?a:this.column.minResizableWidth-this.column.resizeStartWidth;this.updateWidth(this.column,o),this.service.resizeTable(this.column,s)}},{key:"sizeToFit",value:function(e){var a=e.widths,o=e.columns.indexOf(this.column),s=Math.max.apply(Math,Ae(a.map(function(u){return u[o]})))+1,l=s-this.column.resizeStartWidth;this.updateWidth(this.column,s),this.service.resizeTable(this.column,l)}},{key:"updateWidth",value:function(e,n){e.width=n,this.columnInfoService.hiddenColumns.forEach(function(a){Sb(a.width)&&He(a.implicitWidth)&&(a.width=a.implicitWidth)}),this.cdr.markForCheck()}},{key:"columnsForLevel",value:function(e){return nd(this.columns?this.columns.filter(function(n){return n.level===e}):[])}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(_e),m(Rb),m(be),m(nt),m(Y),m(fs))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnHandle",""]],hostVars:6,hostBindings:function(t,e){1&t&&Q("dblclick",function(){return e.autoFit()}),2&t&&Qe("display",e.visible)("left",e.leftStyle)("right",e.rightStyle)},inputs:{columns:"columns",column:"column"}}),i}(),MA=function(){for(var r=arguments.length,t=new Array(r),e=0;e=0},function(r){return r.draggable.context.column.reorderable},function(r){return!_he(r.draggable.context.column)},function(r){return r.draggable.element.nativeElement!==r.target.element.nativeElement},function(r){return Cyt(r.draggable.context.column,r.target.context.column)},Db(function(r){var t=r.draggable;return!hs(t.context.column.locked)&&function(r){return!hs(r.parent)}(t.context.column)&&t.context.lastColumn}),function(r){var t=r.draggable;return!1!==t.context.column.lockable||t.context.column.isLocked===r.target.context.column.isLocked}),Ayt=["alt","ctrl","shift","meta"],hfe=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c){p(this,r),this.popupService=t,this.hint=e,this.cue=n,this.reorderService=a,this.idService=o,this.sortService=s,this.localization=l,this.columnInfoService=u,this.cd=c,this.columns=[],this.groups=[],this.sort=new Array,this.sortable=!1,this.groupable=!1,this.lockedColumnsCount=0,this.resizable=!1,this.reorderable=!1,this.columnMenu=!1,this.totalColumnsCount=0,this.sortedFields={},this.dropTargets=new Ei,this.subscription=new Je}return v(r,[{key:"headerClass",get:function(){return!this.scrollable}},{key:"sortableLabel",get:function(){return this.localization.get("sortable")}},{key:"columnMenuSettings",get:function(){return this.columnMenu}},{key:"unlockedColumnsCount",get:function(){return this.totalColumnsCount-this.lockedColumnsCount-this.columns.length}},{key:"sortColumn",value:function(e){this.sortService.sort(e)}},{key:"getColumnComponent",value:function(e){return e}},{key:"onSortClick",value:function(e,n,a){var o=n.target;if(!e.headerTemplateRef||o===a||!Boolean(pV(o,she,a))){var l=this.matchModifier(n),u=this.toggleSort(e,l);this.sortColumn(u)}}},{key:"onHeaderKeydown",value:function(e,n){if(n.keyCode===J.ArrowDown&&n.altKey&&this.showFilterMenu){n.preventDefault(),n.stopImmediatePropagation();var a=this.filterMenus.find(function(l){return l.column===e});a.toggle(a.anchor.nativeElement,a.template)}if(n.keyCode===J.ArrowDown&&n.altKey&&this.showColumnMenu(e)){n.preventDefault(),n.stopImmediatePropagation();var o=this.columnMenus.find(function(l){return l.column===e});o.toggle(null,o.anchor.nativeElement,o.template)}if(this.sortable&&!n.defaultPrevented&&!1!==e.sortable&&n.keyCode===J.Enter&&He(e.field)){var s=this.matchModifier(n);this.sortService.sort(this.toggleSort(e,s))}}},{key:"showSortNumbering",value:function(e){return dA(this.sortable).showIndexes&&this.sort&&this.sort.filter(function(o){return He(o.dir)}).length>1&&this.sortOrder(e.field)>0}},{key:"sortOrder",value:function(e){return this.sort.filter(function(n){return He(n.dir)}).findIndex(function(n){return n.field===e})+1}},{key:"sortIcon",value:function(e){var n=this.sortDescriptor(e);return{"k-icon":He(n.dir),"k-i-sort-desc-sm":"desc"===n.dir,"k-i-sort-asc-sm":"asc"===n.dir}}},{key:"sortState",value:function(e){if(this.isSortable(e)){var n=this.sortDescriptor(e.field);if("asc"===n.dir)return"ascending";if("desc"===n.dir)return"descending"}}},{key:"sortStatus",value:function(e){if(this.sortedFields[e.field]&&this.isSortable(e)){var n="sortedDefault",a=this.sortDescriptor(e.field);return"asc"===a.dir?n="sortedAscending":"desc"===a.dir&&(n="sortedDescending"),this.localization.get(n)}}},{key:"toggleSort",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=dA(this.sortable,e.sortable),o=a.allowUnsort,s=a.mode,l=a.initialDirection,u=this.toggleDirection(e.field,o,l);return"single"!==s&&n?[].concat(Ae(this.sort.filter(function(c){return c.field!==e.field})),[u]):[u]}},{key:"matchModifier",value:function(e){var a=dA(this.sortable).multiSortKey;return"none"===a?Ayt.every(function(o){return!e["".concat(o,"Key")]}):"ctrl"===a?e.ctrlKey||e.metaKey:e["".concat(a,"Key")]}},{key:"ngAfterViewInit",value:function(){this.subscription.add(HT(this.dropTargets).subscribe(this.attachTargets.bind(this)))}},{key:"ngDoCheck",value:function(){this._leafColumns=nd(this.columns||[]).filter(function(e){return!Bm(e)})}},{key:"ngOnChanges",value:function(e){var n=this,a=e.sort;a&&!a.isFirstChange()&&a.currentValue.forEach(function(o){n.sortedFields[o.field]=!0})}},{key:"ngOnInit",value:function(){var e=this;this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngOnDestroy",value:function(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.popupService&&this.popupService.destroy(),this.subscription.unsubscribe()}},{key:"selectAllCheckboxId",value:function(){return this.idService.selectAllCheckboxId()}},{key:"selectAllCheckboxLabel",get:function(){return this.localization.get("selectAllCheckboxLabel")}},{key:"isFirstOnRow",value:function(e,n){var a=this;return 0===n&&!this.groups.length&&!this.detailTemplate&&function s(l){return l&&(a.columnsForLevel(l.level).indexOf(l)>0||s(l.parent))}(e.parent)}},{key:"logicalColumnIndex",value:function(e){var n=e.leafIndex;return He(n)?n+(He(this.detailTemplate)?1:0):-1}},{key:"showFilterMenu",get:function(){return!this.columnMenu&&function(r){return"string"==typeof r&&r.indexOf("menu")>-1}(this.filterable)}},{key:"showFilterRow",get:function(){return aA(this.filterable)}},{key:"showColumnMenu",value:function(e){return this.columnMenu&&e.columnMenu&&(this.columnMenuTemplate||e.columnMenuTemplates.length||function(r,t){return jhe(r)||Khe(r,t)||Hhe(r,t)||zhe(r,t)}(this.columnMenu,e))}},{key:"isFilterable",value:function(e){return!Dr(e.field)&&!0===e.filterable}},{key:"canDrop",value:function(e,n){return this.reorderable&&Tyt({draggable:e,target:n})}},{key:"shouldActivate",value:function(e){var n=this.reorderable&&e.reorderable;return!(!n&&!Ab(e))&&(this.groupable&&Ab(e)&&!1!==e.groupable||n)}},{key:"isSortable",value:function(e){return!Dr(e.field)&&hs(this.sortable)&&hs(e.sortable)}},{key:"isCheckboxColumn",value:function(e){return vhe(e)&&!e.templateRef}},{key:"trackByIndex",value:function(e,n){return e}},{key:"addStickyStyles",value:function(e){var n=this.columnInfoService.stickyColumnsStyles(e);return Object.assign(Object.assign({},e.style),n)}},{key:"toggleDirection",value:function(e,n,a){var o=this.sortDescriptor(e),s=function(r){return"asc"===r?["asc","desc"]:["desc","asc"]}(a),l=Bt(s,2),u=l[0],c=l[1],d=u;return o.dir===u?d=c:o.dir===c&&n&&(d=void 0),{dir:d,field:e}}},{key:"columnsForLevel",value:function(e){var n=this.columns?this.columns.filter(function(a){return a.level===e}):[];return Fv(nd(n))}},{key:"isColumnGroupComponent",value:function(e){return Bm(e)}},{key:"columnLevels",get:function(){return new Array((this.totalColumnLevels||0)+1)}},{key:"sortDescriptor",value:function(e){return this.sort.find(function(n){return n.field===e})||{field:e}}},{key:"leafColumns",get:function(){return this._leafColumns}},{key:"attachTargets",value:function(){var e=this;this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Je;var n=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.enter}))),a=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.leave}))),o=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.drop})));this.targetSubscription.add(n.pipe(At(function(s){var u=s.draggable;if("groupIndicator"!==u.context.type){var c=hs(s.target.context.column.isLocked),d=hs(u.context.column.isLocked);(e.lockedColumnsCount>0||c||d)&&e.hint.toggleLock(c)}}),Ue(function(s){return e.canDrop(s.draggable,s.target)}),Nn(this.trackMove.bind(this,a,o)),We(function(s){return MA(s,{before:e.calculateBefore(s),changeContainer:s.changeContainer})}),We(this.normalizeTarget.bind(this)),At(this.enter.bind(this)),Nn(function(s){return o.pipe(We(function(){return s}),Qr(a.pipe(At(e.leave.bind(e)))))})).subscribe(this.drop.bind(this)))}},{key:"normalizeTarget",value:function(e){var n=e.target,a=n.context.column.parent;if(a&&a.isSpanColumn){var o=this.dropTargets.toArray(),s=o.find(function(c){return c.context.column.parent===a}),l=o.indexOf(s);n=o[l+(e.before?0:a.childColumns.length-1)]}return MA(e,{target:n})}},{key:"trackMove",value:function(e,n,a){var o=a.target.context.column,s=this.columnsForLevel(o.level),l=s.indexOf(o),c=a.draggable.context.column.isLocked!==o.isLocked;return c&&(o.locked?l===s.length-1:0===l)?a.draggable.drag.pipe(Qr(e),Qr(n),We(function(d){return MA({changeContainer:!0},a,{mouseEvent:d.mouseEvent})})):lt(MA({changeContainer:c},a))}},{key:"calculateBefore",value:function(e){var n=e.draggable,o=e.mouseEvent,s=e.changeContainer,u=e.target.element.nativeElement,c=!1;return void 0!==s&&s?(c=Rhe(u).left+u.offsetWidth/2>o.pageX,this.localization.rtl&&(c=!c)):c=Ohe(n.element.nativeElement,u),c}},{key:"enter",value:function(e){var n=e.target,a=e.before;this.hint.enable(),this.localization.rtl&&(a=!a),this.cue.position(Ihe(n.element.nativeElement,a))}},{key:"leave",value:function(){this.hint.disable(),this.cue.hide()}},{key:"drop",value:function(e){this.reorderService.reorder({before:e.before,changeContainer:e.changeContainer,source:e.draggable.context.column,target:e.target.context.column})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ob),m(oA),m(sA),m(KV),m(Bl),m(lA),m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridHeader",""]],viewQuery:function(t,e){var n;1&t&&(ge(Ib,5),ge(uU,5),ge(DA,5)),2&t&&(P(n=B())&&(e.dropTargets=n),P(n=B())&&(e.filterMenus=n),P(n=B())&&(e.columnMenus=n))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-header",e.headerClass)},inputs:{totalColumnLevels:"totalColumnLevels",columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",filterable:"filterable",sort:"sort",filter:"filter",sortable:"sortable",groupable:"groupable",lockedColumnsCount:"lockedColumnsCount",resizable:"resizable",reorderable:"reorderable",columnMenu:"columnMenu",columnMenuTemplate:"columnMenuTemplate",totalColumnsCount:"totalColumnsCount",tabIndex:"tabIndex"},features:[Ie],attrs:Evt,decls:3,vars:2,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngFor","ngForOf"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["class","k-group-cell k-header","role","presentation",4,"ngFor","ngForOf"],["class","k-hierarchy-cell k-header","role","presentation","kendoGridLogicalCell","","aria-selected","false",3,"logicalRowIndex","logicalColIndex",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","presentation",1,"k-group-cell","k-header"],["role","presentation","kendoGridLogicalCell","","aria-selected","false",1,"k-hierarchy-cell","k-header",3,"logicalRowIndex","logicalColIndex"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","enableDrag","context","k-filterable","k-first","k-grid-header-sticky","ngClass","ngStyle","keydown",4,"ngIf"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","k-first","k-filterable","k-grid-content-sticky","ngClass","ngStyle",4,"ngIf"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","enableDrag","context","ngClass","ngStyle","keydown"],[4,"ngIf"],["kendoGridColumnHandle","","kendoDraggable","","class","k-column-resizer",3,"column","columns",4,"ngIf"],[3,"column","filter","tabIndex",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex",4,"ngIf"],[3,"templateContext"],[3,"column","filter","tabIndex"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex"],[1,"k-cell-inner"],[1,"k-link",3,"click"],["link",""],["role","note",3,"ngClass"],["class","k-sort-order",4,"ngIf"],["role","status",1,"k-sort-status",2,"position","absolute","left","-10000px",3,"innerHtml"],[1,"k-column-title"],[1,"k-sort-order"],["kendoGridSelectAllCheckbox","","kendoGridFocusable","",1,"k-checkbox","k-checkbox-md","k-rounded-md"],["kendoGridColumnHandle","","kendoDraggable","",1,"k-column-resizer",3,"column","columns"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","ngClass","ngStyle"],[3,"standalone","settings","column","columnMenuTemplate",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"]],template:function(t,e){1&t&&(Ge(0),T(1,Yvt,4,8,"tr",0),T(2,Qvt,1,9,"tr",1),Ve()),2&t&&(k(1),y("ngForOf",e.columnLevels),k(1),y("ngIf",e.showFilterRow))},directives:[uU,DA,gU,gn,xA,qe,Xm,Ib,$o,rU,Ft,Vi,Bb,mU,co,dfe],styles:[".k-column-resizer[_ngcontent-%COMP%] {\n cursor: col-resize;\n display: block;\n height: 1000%;\n position: absolute;\n top: 0;\n width: .5em;\n }"]}),i}(),Myt=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0;p(this,i),this.total=r,this.rowHeight=t,this.detailRowHeight=e,this.offsets=[],this.heights=[];for(var n=0,a=0;athis.rowHeight&&this.updateRowHeight(t,-1*this.detailRowHeight)}},{key:"isExpanded",value:function(t){return this.height(t)>this.rowHeight}},{key:"index",value:function(t){if(!(t<0)){var e=this.offsets.reduce(function(n,a,o){return void 0!==n?n:a===t?o:a>t?o-1:void 0},void 0);return void 0===e?this.total-1:e}}},{key:"offset",value:function(t){return this.offsets[t]}},{key:"totalHeight",value:function(){return this.heights.reduce(function(t,e){return t+e},0)}},{key:"updateRowHeight",value:function(t,e){this.total>0&&(this.heights[t]+=e,this.offsets=function(r,t,e){return[].concat(Ae(r.slice(0,t+1)),Ae(r.slice(t+1).map(function(n){return n+e})))}(this.offsets,t,e))}}]),i}(),RA=v(function i(r){p(this,i),this.offset=r}),yU=v(function i(r,t){p(this,i),this.skip=r,this.take=t}),ffe=v(function i(){p(this,i)}),Oyt=function(){function i(r){p(this,i),this.scrollObservable=r,this.firstLoaded=0}return v(i,[{key:"create",value:function(t,e,n,a){var o=this;this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+n,this.take=n,this.total=a,this.lastScrollTop=0;var s=new xi(new RA(this.rowHeightService.offset(e)));return this.subscription=An.create(function(l){o.unsubscribe(),o.scrollSubscription=o.scrollObservable.subscribe(function(u){return o.onScroll(u,l)})}).subscribe(function(l){return s.next(l)}),s}},{key:"destroy",value:function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}},{key:"onScroll",value:function(t,e){var n=t.scrollTop,a=t.offsetHeight,o=t.scrollHeight,s=t.clientHeight;if(this.lastScrollTop!==n){var l=this.lastScrollTop>=n;this.lastScrollTop=n;var u=this.rowHeightService.index(n),c=this.rowHeightService.offset(u),d=this.rowHeightService.index(n+a);if(!l)if(d>=this.lastLoaded&&this.lastLoaded0&&(c=this.rowHeightService.offset(u-=h)),this.firstLoaded=u,e.next(new RA(c));var f=this.firstLoaded+this.take;this.lastLoaded=Math.min(f,this.total),f=f>this.total?this.total-this.firstLoaded:this.take,e.next(new yU(this.firstLoaded,this.take))}else o-s-n<2&&e.next(new ffe);if(l&&u1&&void 0!==arguments[1]?arguments[1]:"td";return function(e){return e.querySelectorAll("".concat(t,":not(.k-group-cell):not(.k-hierarchy-cell)"))[r]}},OA=function(r){return r.offsetWidth},DU=function(){for(var r=arguments.length,t=new Array(r),e=0;e1&&void 0!==arguments[1]?arguments[1]:null;return r=null!=r?r:i,oi(function(t,e){var n=[],a=0;t.subscribe(Wn(e,function(o){var s=null;a++%r==0&&n.push([]);var u,l=In(n);try{for(l.s();!(u=l.n()).done;){var c=u.value;c.push(o),i<=c.length&&(s=null!=s?s:[]).push(c)}}catch(g){l.e(g)}finally{l.f()}if(s){var h,d=In(s);try{for(d.s();!(h=d.n()).done;){var f=h.value;Nh(n,f),e.next(f)}}catch(g){d.e(g)}finally{d.f()}}},function(){var s,o=In(n);try{for(o.s();!(s=o.n()).done;)e.next(s.value)}catch(u){o.e(u)}finally{o.f()}e.complete()},void 0,function(){n=null}))})}(a))})).subscribe(this.resize.bind(this)),this.autoFitSubscription=this.service.registerTable({autoFit:this.autoFitObservable.bind(this),locked:this.locked})}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.autoFitSubscription&&(this.autoFitSubscription(),this.autoFitSubscription=null)}},{key:"initState",value:function(){this.firstResize=!0,(!this.virtualColumns||this.locked)&&(this.originalWidth=OA(this.element.nativeElement))}},{key:"resize",value:function(e){if(!this.virtualColumns||this.locked){var n=e.reduce(function(o,s){return o+s},0);this.renderer.setStyle(this.element.nativeElement,"width",this.originalWidth+n+"px")}this.cdr.detectChanges()}},{key:"autoFitObservable",value:function(e){var n=this;return An.create(function(a){n.zone.runOutsideAngular(function(){n.renderer.addClass(n.element.nativeElement,"k-autofitting"),n.cdr.detectChanges();var o=e.map(n.measureColumn.bind(n));n.renderer.removeClass(n.element.nativeElement,"k-autofitting"),a.next(o)})})}},{key:"measureColumn",value:function(e){var n=this.element.nativeElement,a=DU(function(r){return function(t){return t.querySelectorAll("thead>tr")[r]}}(e.level),wU(e.headerIndex,"th"),OA)(n),o=0;(!e.isParentSpan||e.isParentSpan&&e.isLastInSpan)&&(o=DU(mfe("tbody>tr:not(.k-grouping-row):not(.k-grid-norecords)"),wU(e.index),OA)(n));var s=DU(mfe("tfoot>tr"),wU(e.index),OA)(n);return Math.max(a,o,s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Rb),m(be),m(nt))},i.\u0275dir=X({type:i,selectors:[["table"]],hostVars:2,hostBindings:function(t,e){2&t&&Qe("min-width",e.minWidth)},inputs:{locked:"locked",virtualColumns:"virtualColumns"}}),i}(),TU=function(){var i=function(){function r(t,e,n,a){p(this,r),this.el=t,this.renderer=e,this.resizeService=n,this.ctx=a,this.enabled=!1}return v(r,[{key:"lockedWidth",set:function(e){this._lockedWidth=e,this.enabled&&(this.attachResize(),this.resize())}},{key:"kendoGridResizableContainer",set:function(e){var n=e!==this.enabled;this.enabled=e,n&&(this.attachResize(),this.resize())}},{key:"ngOnDestroy",value:function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}},{key:"attachResize",value:function(){this.resizeSubscription&&!this.enabled&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=null),!this.resizeSubscription&&this.enabled&&(this.resizeSubscription=this.resizeService.changes.subscribe(this.resize.bind(this)))}},{key:"resize",value:function(){if(this.ctx.grid&&this.ctx.grid.wrapper){var n=Math.max(this.ctx.grid.wrapper.nativeElement.clientWidth-this._lockedWidth,0);this.renderer.setStyle(this.el.nativeElement,"width",this.enabled&&n>0?n+"px":"")}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(zV),m(Gm))},i.\u0275dir=X({type:i,selectors:[["","kendoGridResizableContainer",""]],inputs:{lockedWidth:"lockedWidth",kendoGridResizableContainer:"kendoGridResizableContainer"}}),i}(),_fe=function(r,t,e){for(var n=0,a=0;n0}},{key:"ngOnInit",value:function(){var e=this;this.init(),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowSync.bind(this))),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowNavigationLocked.bind(this))),this.subscriptions.add(xn(this.columns.changes,this.resizeService.changes).subscribe(function(){e.virtualColumns&&e.ngZone.run(function(){e.updateViewportColumns(),e.changeDetector.markForCheck()})})),this.subscriptions.add(this.localization.changes.subscribe(function(n){return e.rtl=n.rtl}))}},{key:"ngOnChanges",value:function(e){e.skip&&e.skip.firstChange&&e.skip.currentValue>0&&this.handleInitialScrollToSkip(),yn("skip",e)&&!this.rebind&&(this.skipScroll=!0,this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),Ki(["total","take"],e)&&this.init(),this.rebind=!1}},{key:"ngDoCheck",value:function(){this.virtualColumns&&(!this.viewportColumns||this.viewportWidthChange())&&this.updateViewportColumns()}},{key:"ngAfterViewInit",value:function(){this.skip&&this.isVirtual&&(this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),this.resetNavigationViewport(),this.attachContainerScroll(),this.initResizeService()}},{key:"ngAfterViewChecked",value:function(){var e=this.isLocked;e&&!this.hasLockedContainer&&this.syncRowsHeight(),this.hasLockedContainer=e}},{key:"syncRowsHeight",value:function(){this.lockedContainer&&Ehe(this.lockedTable.nativeElement,this.table.nativeElement)}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.resizeService&&this.resizeService.destroy(),this.cleanupScroller()}},{key:"init",value:function(){this.suspendService.scroll||(this.rowHeightService=new Myt(this.total,this.rowHeight,this.detailRowHeight),this.totalHeight=this.rowHeightService.totalHeight(),wb()||this.ngZone.runOutsideAngular(this.createScroller.bind(this)))}},{key:"lockedScroll",value:function(){if(!this.suspendService.scroll){var e=this.lockedContainer.nativeElement.scrollTop;e!==this.containerScrollTop&&(this.container.nativeElement.scrollTop=this.containerScrollTop=e)}}},{key:"lockedMousewheel",value:function(e){if(!e.ctrlKey){!function(r,t){var e=bfe(r),n=t.scrollTop;0===n&&00&&e.total>0})).subscribe(function(o){e.scrollTo({row:e.skip}),a.unsubscribe()})}},{key:"handleRowSync",value:function(){var e=this,n=function(){return He(e.lockedContainer)};return xn(this.changeNotification.changes,this.groupsService.changes.pipe(Ue(n),xE(e.ngZone.onStable.asObservable().pipe(It(1)))),this.editService.changed,this.resizeService.changes,this.columnResizingService.changes.pipe(Ue(function(o){return"end"===o.type})),this.supportService.changes).pipe(At(function(){return e.resetNavigationViewport()}),Ue(n)).subscribe(function(){var o=e.container.nativeElement.scrollTop,s=e.container.nativeElement.scrollLeft;e.syncRowsHeight(),e.syncContainerHeight(),e.lockedContainer.nativeElement.scrollTop=e.container.nativeElement.scrollTop=o,e.container.nativeElement.scrollLeft=s,e.resizeSensors.forEach(function(l){return l.acceptSize()})})}},{key:"handleRowNavigationLocked",value:function(){var e=this;return this.navigationService.changes.pipe(Ue(function(){return He(e.lockedContainer)}),Dd(10)).subscribe(function(n){if(e.lockedLeafColumns.length<=n.prevColIndex&&n.colIndex0?32:0)))}else if(0===a&&this.detailTemplate)this.container.nativeElement.scrollLeft=this.normalizeScrollLeft(0);else{var d=yfe(0,this.table.nativeElement.rows);if(d){var h=function(r,t){return _fe(r,t,function(e){return Rv(e,vfe)?0:parseInt(e.getAttribute("colSpan"),10)||1})}(a,d.cells);h&&(this.container.nativeElement.scrollLeft=this.elementScrollLeft(h))}}}},{key:"resetNavigationViewport",value:function(){if(this.container&&this.navigationService.enabled&&this.navigationService.needsViewport()&&0!==this.data.length){var e=this.container.nativeElement,n=e.scrollTop,o=n+e.offsetHeight,s=this.rowHeightService.index(n),l=this.rowHeightService.index(o),u=this.rowHeightService.offset(l);l>0&&u+this.rowHeight>o&&l--;var d=s,h=l;if(He(this.detailTemplate)){d*=2,h*=2,this.rowHeightService.offset(s)+this.rowHeighto)&&h++}this.navigationService.setViewport(d,h)}}},{key:"cleanupScroller",value:function(){this.scrollerSubscription&&this.scrollerSubscription.unsubscribe(),this.scroller&&this.scroller.destroy()}},{key:"initResizeService",value:function(){this.resizeService.connect(xn.apply(void 0,Ae(this.resizeSensors.map(function(e){return e.resize}))))}},{key:"syncContainerHeight",value:function(){var e=this;[AU(this.lockedContainer)].filter(He).map(function(n){n.style.height="";var a=e.container.nativeElement.offsetHeight;return function(r,t){return r.nativeElement.offsetWidth>t.nativeElement.clientWidth}(e.table,e.container)&&(a-=e.supportService.scrollbarWidth),{el:n,height:a}}).forEach(function(r){return function(t){return r.setStyle(t.el,"height","".concat(t.height,"px"))}}(this.renderer))}},{key:"updateViewportColumns",value:function(e){var n=this.columns.nonLockedLeafColumns.toArray(),a=e||this.calculateViewportColumns(),o=a.startIdx,s=a.endIdx,l=a.offset,u=Math.max(0,o-1),c=Math.min(s+1,n.length-1);if(u=u;d--)l-=n[d].width;var h=n.slice(u,c+1);if(this.viewportColumnsWidth=h.reduce(function(g,_){return g+_.width},0),u>0){var f=new Ir;f.width=l,h.unshift(f)}this.viewportColumns=new Ei,this.viewportColumns.reset(h),this.columnsStartIdx=u,this.columnsEndIdx=c,this.columnInfo.columnRangeChange.emit({start:u,end:c,offset:l}),e||this.updateColumnViewport(o,s)}},{key:"handleColumnScroll",value:function(){var e=this,a=this.container.nativeElement.scrollLeft;if(this.scrollLeft!==a){this.scrollLeft=a;var o=this.calculateViewportColumns();this.updateColumnViewport(o.startIdx,o.endIdx),(o.startIdx0?1:0),l=a+n+(this.detailTemplate?1:0),u=0;us&&(u=f,h=d-(g.width||0)),d>=l){c=f;break}}return!c&&f>0&&(c=o.length-1),{startIdx:u,endIdx:c,offset:h}}},{key:"viewportWidthChange",value:function(){return this.viewportColumns.toArray().reduce(function(n,a){return n+a.width},0)!==this.viewportColumnsWidth}},{key:"normalizeScrollLeft",value:function(e){return this.rtl?function hmt(i,r,t){var e=i;return t<0?e=-i:t>0&&(e=r.scrollWidth-r.offsetWidth-i),e}(e,this.container.nativeElement,this.supportService.rtlScrollLeft):e}},{key:"elementScrollLeft",value:function(e){return this.rtl?this.normalizeScrollLeft(this.container.nativeElement.scrollWidth-e.offsetLeft-e.offsetWidth):e.offsetLeft}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Cfe),m(Tb),m(nA),m(VV),m(Fm),m(be),m(Ee),m(rA),m(zV),m(Pl),m(OV),m(Ua),m(WT),m(Y),m(Rb),m(nt),m(Mb),m(fs))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-list"]],viewQuery:function(t,e){var n;1&t&&(ge(hgt,7),ge(fgt,5),ge(vgt,5),ge(pgt,7),ge(Gr,5)),2&t&&(P(n=B())&&(e.container=n.first),P(n=B())&&(e.lockedContainer=n.first),P(n=B())&&(e.lockedTable=n.first),P(n=B())&&(e.table=n.first),P(n=B())&&(e.resizeSensors=n))},hostVars:3,hostBindings:function(t,e){2&t&&(ie("role",e.hostRole),ue("k-grid-container",e.hostClass))},inputs:{data:"data",groups:"groups",total:"total",rowHeight:"rowHeight",stickyRowHeight:"stickyRowHeight",detailRowHeight:"detailRowHeight",take:"take",skip:"skip",columns:"columns",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",selectable:"selectable",groupable:"groupable",filterable:"filterable",rowClass:"rowClass",rowSticky:"rowSticky",loading:"loading",trackBy:"trackBy",virtualColumns:"virtualColumns",isVirtual:"isVirtual",cellLoadingTemplate:"cellLoadingTemplate",loadingTemplate:"loadingTemplate"},outputs:{contentScroll:"contentScroll",pageChange:"pageChange",scrollBottom:"scrollBottom"},features:[de([{provide:Cfe,useValue:Uyt}]),Ie],decls:13,vars:35,consts:[["class","k-grid-content-locked","role","presentation","tabindex","-1",3,"width","kendoEventsOutsideAngular","scope",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content","k-virtual-content",3,"kendoGridResizableContainer","lockedWidth"],["container",""],["role","presentation",1,"k-grid-table-wrap"],["role","presentation",1,"k-grid-table",3,"virtualColumns"],["table",""],["kendoGridColGroup","","role","presentation",3,"groups","columns","detailTemplate"],["kendoGridTableBody","","role","presentation",3,"skipGroupDecoration","data","groups","showGroupFooters","columns","allColumns","detailTemplate","noRecordsTemplate","lockedColumnsCount","totalColumnsCount","skip","selectable","trackBy","filterable","rowClass","rowSticky","virtualColumns","isLoading","isVirtual","cellLoadingTemplate"],[4,"ngIf"],["role","presentation",1,"k-height-container"],["class","k-width-container","role","presentation",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content-locked",3,"kendoEventsOutsideAngular","scope"],["lockedContainer",""],["role","presentation",1,"k-grid-table",3,"locked"],["lockedTable",""],["kendoGridTableBody","","role","presentation",3,"groups","isLocked","data","noRecordsText","columns","totalColumnsCount","detailTemplate","showGroupFooters","skip","selectable","trackBy","filterable","rowClass","isLoading","isVirtual","cellLoadingTemplate"],["role","presentation",1,"k-width-container"]],template:function(t,e){1&t&&(T(0,mgt,10,33,"div",0),A(1,"div",1,2)(3,"div",3)(4,"table",4,5),z(6,"colgroup",6)(7,"tbody",7),x(),T(8,_gt,1,0,"kendo-resize-sensor",8),x(),T(9,ygt,1,0,"kendo-resize-sensor",8),A(10,"div",9),z(11,"div"),x(),T(12,kgt,2,2,"div",10),x()),2&t&&(y("ngIf",e.isLocked),k(1),y("kendoGridResizableContainer",e.lockedLeafColumns.length>0)("lockedWidth",e.lockedWidth+1),k(3),Qe("width",e.nonLockedWidth,"px"),y("virtualColumns",e.virtualColumns),k(2),y("groups",e.isLocked?wt(34,bb):e.groups)("columns",e.nonLockedColumnsToRender)("detailTemplate",e.detailTemplate),k(1),y("skipGroupDecoration",e.isLocked)("data",e.data)("groups",e.groups)("showGroupFooters",e.showFooter)("columns",e.nonLockedColumnsToRender)("allColumns",e.nonLockedLeafColumns)("detailTemplate",e.detailTemplate)("noRecordsTemplate",e.noRecordsTemplate)("lockedColumnsCount",e.lockedLeafColumns.length)("totalColumnsCount",e.leafColumns.length)("skip",e.skip)("selectable",e.selectable)("trackBy",e.trackBy)("filterable",e.filterable)("rowClass",e.rowClass)("rowSticky",e.rowSticky)("virtualColumns",e.virtualColumns)("isLoading",e.loading)("isVirtual",e.isVirtual)("cellLoadingTemplate",e.cellLoadingTemplate),k(1),y("ngIf",e.isLocked),k(1),y("ngIf",e.isLocked||e.virtualColumns),k(2),Qe("height",e.totalHeight,"px"),k(1),y("ngIf",e.virtualColumns))},directives:[aU,SU,Gr,qe,qi,EU,TU],encapsulation:2}),i}(),Dfe=function(){var i=function(){function r(t){p(this,r),this.columnInfoService=t,this.columns=[],this.groups=[],this.lockedColumnsCount=0,this.logicalRowIndex=0}return v(r,[{key:"footerClass",get:function(){return!this.scrollable}},{key:"columnsToRender",get:function(){return nd(this.columns||[])}},{key:"logicalColumnIndex",value:function(e){var n=e.leafIndex;return He(n)?n+(He(this.detailTemplate)?1:0):-1}},{key:"addStickyStyles",value:function(e){var n=this.columnInfoService.stickyColumnsStyles(e);return Object.assign(Object.assign({},e.style),n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(fs))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFooter",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-footer",e.footerClass)},inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",lockedColumnsCount:"lockedColumnsCount",logicalRowIndex:"logicalRowIndex"},attrs:Cgt,decls:5,vars:9,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["kendoGridLogicalCell","","role","columnfooter","aria-selected","false",3,"logicalRowIndex","logicalColIndex","k-grid-footer-sticky","ngClass","ngStyle",4,"ngFor","ngForOf"],["role","presentation"],["kendoGridLogicalCell","","role","columnfooter","aria-selected","false",3,"logicalRowIndex","logicalColIndex","ngClass","ngStyle"],[3,"templateContext"]],template:function(t,e){1&t&&(Ge(0),A(1,"tr",0),T(2,bgt,1,2,"td",1),T(3,Sgt,1,2,"td",2),T(4,Dgt,2,12,"td",3),x(),Ve()),2&t&&(k(1),ue("k-footer-template",!0),y("logicalRowIndex",e.logicalRowIndex)("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.columns.length-e.lockedColumnsCount),k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsToRender))},directives:[xA,gn,qe,Xm,Ft,Vi,Bb],encapsulation:2}),i}(),Efe=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.hostClass=!0}return v(r,[{key:"loadingText",get:function(){return this.localization.get("loading")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridLoading",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-loading-mask",e.hostClass)},inputs:{loadingTemplate:"loadingTemplate"},attrs:Egt,decls:2,vars:2,consts:[[4,"ngIf"],[1,"k-loading-text"],[1,"k-loading-image"],[1,"k-loading-color"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(T(0,Tgt,5,1,"ng-container",0),T(1,xgt,1,1,null,0)),2&t&&(y("ngIf",!e.loadingTemplate),k(1),y("ngIf",e.loadingTemplate))},directives:[qe,En],encapsulation:2}),i}(),IA=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-grid-messages-base"]],inputs:{groupPanelEmpty:"groupPanelEmpty",noRecords:"noRecords",pagerLabel:"pagerLabel",pagerFirstPage:"pagerFirstPage",pagerLastPage:"pagerLastPage",pagerPreviousPage:"pagerPreviousPage",pagerNextPage:"pagerNextPage",pagerPage:"pagerPage",pagerItemsPerPage:"pagerItemsPerPage",pagerOf:"pagerOf",pagerItems:"pagerItems",pagerPageNumberInputTitle:"pagerPageNumberInputTitle",filter:"filter",filterInputLabel:"filterInputLabel",filterMenuTitle:"filterMenuTitle",filterMenuOperatorsDropDownLabel:"filterMenuOperatorsDropDownLabel",filterMenuLogicDropDownLabel:"filterMenuLogicDropDownLabel",filterEqOperator:"filterEqOperator",filterNotEqOperator:"filterNotEqOperator",filterIsNullOperator:"filterIsNullOperator",filterIsNotNullOperator:"filterIsNotNullOperator",filterIsEmptyOperator:"filterIsEmptyOperator",filterIsNotEmptyOperator:"filterIsNotEmptyOperator",filterStartsWithOperator:"filterStartsWithOperator",filterContainsOperator:"filterContainsOperator",filterNotContainsOperator:"filterNotContainsOperator",filterEndsWithOperator:"filterEndsWithOperator",filterGteOperator:"filterGteOperator",filterGtOperator:"filterGtOperator",filterLteOperator:"filterLteOperator",filterLtOperator:"filterLtOperator",filterIsTrue:"filterIsTrue",filterIsFalse:"filterIsFalse",filterBooleanAll:"filterBooleanAll",filterAfterOrEqualOperator:"filterAfterOrEqualOperator",filterAfterOperator:"filterAfterOperator",filterBeforeOperator:"filterBeforeOperator",filterBeforeOrEqualOperator:"filterBeforeOrEqualOperator",filterFilterButton:"filterFilterButton",filterClearButton:"filterClearButton",filterAndLogic:"filterAndLogic",filterOrLogic:"filterOrLogic",loading:"loading",gridLabel:"gridLabel",columnMenu:"columnMenu",setColumnPosition:"setColumnPosition",columns:"columns",lock:"lock",unlock:"unlock",stick:"stick",unstick:"unstick",sortable:"sortable",sortAscending:"sortAscending",sortDescending:"sortDescending",sortedAscending:"sortedAscending",sortedDescending:"sortedDescending",sortedDefault:"sortedDefault",columnsApply:"columnsApply",columnsReset:"columnsReset",detailExpand:"detailExpand",detailCollapse:"detailCollapse",filterDateToday:"filterDateToday",filterDateToggle:"filterDateToggle",filterNumericDecrement:"filterNumericDecrement",filterNumericIncrement:"filterNumericIncrement",selectionCheckboxLabel:"selectionCheckboxLabel",selectAllCheckboxLabel:"selectAllCheckboxLabel",groupCollapse:"groupCollapse",groupExpand:"groupExpand"},features:[j]}),i}(),Tfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(IA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLocalizedMessages",""]],features:[de([{provide:IA,useExisting:ke(function(){return i})}]),j]}),i}(),Afe=function(r,t){return Va(r,Hu("k-grid-edit-cell"))&&Va(r,Ta("kendo-grid"))===t},Gl=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h,f,g,_,C,w,E,M,R,N,V,U,ee,ve,G,I){var K=this;p(this,r),this.supportService=t,this.selectionService=e,this.cellSelectionService=n,this.wrapper=a,this.groupInfoService=o,this.groupsService=s,this.changeNotification=l,this.detailsService=u,this.editService=c,this.filterService=d,this.pdfService=h,this.responsiveService=f,this.renderer=g,this.excelService=_,this.ngZone=C,this.scrollSyncService=w,this.domEvents=E,this.columnResizingService=M,this.changeDetectorRef=R,this.columnReorderService=N,this.columnInfoService=V,this.navigationService=U,this.sortService=ee,this.scrollRequestService=ve,this.localization=G,this.ctx=I,this.data=[],this.scrollable="scrollable",this.selectable=!1,this.trackBy=jV,this.virtualColumns=!1,this.filterable=!1,this.sortable=!1,this.pageable=!1,this.groupable=!1,this.navigable=!1,this.autoSize=!1,this.resizable=!1,this.reorderable=!1,this.loading=!1,this.columnMenu=!1,this.hideHeader=!1,this.filterChange=new O,this.pageChange=new O,this.groupChange=new kV(this.ngZone),this.sortChange=new O,this.selectionChange=new O,this.dataStateChange=new O,this.groupExpand=new O,this.groupCollapse=new O,this.detailExpand=new O,this.detailCollapse=new O,this.edit=new O,this.cancel=new O,this.save=new O,this.remove=new O,this.add=new O,this.cellClose=new O,this.cellClick=new kV(this.ngZone),this.pdfExport=new O,this.excelExport=new O,this.columnResize=new kV(this.ngZone),this.columnReorder=new O,this.columnVisibilityChange=new O,this.columnLockedChange=new O,this.columnStickyChange=new O,this.scrollBottom=new O,this.contentScroll=new O,this.columns=new Ei,this.footer=new Ei,this.selectionDirective=!1,this.columnsContainer=new NV(function(){return K.columnList.filterHierarchy(function(H){return H.matchesMedia=K.matchesMedia(H),H.isVisible})}),this.view=new t_t(function(){return new e_t(K.data,K.skip,K.hasGroupFooters)}),this.shouldGenerateColumns=!0,this._sort=new Array,this._group=new Array,this._skip=0,this.cachedWindowWidth=0,this._rowSelected=null,this._cellSelected=null,this.rtl=!1,this._rowClass=function(){return null},jt(Pmt),this.ctx.grid=this,this.localizationSubscription=this.localization.changes.subscribe(function(H){K.rtl=H.rtl,K.direction=K.rtl?"rtl":"ltr"}),this.groupInfoService.registerColumnsContainer(function(){return K.columnList}),this.columnInfoService.init(this.columnsContainer,function(){return K.columnList}),this.columnVisibilityChangeSubscription=this.columnInfoService.visibilityChange.subscribe(function(H){K.columnVisibilityChange.emit(new b_t(H))}),this.columnLockedChangeSubscription=this.columnInfoService.lockedChange.subscribe(function(H){K.columnLockedChange.emit(new Lhe(H))}),this.columnStickyChangeSubscription=this.columnInfoService.stickyChange.subscribe(function(H){K.columnStickyChange.emit(new w_t(H))}),this.groupExpandCollapseSubscription=function(r,t,e,n){return r.changes.pipe(Ue(function(a){return He(a.group)})).subscribe(function(a){return a.expand?t.emit(n(a)):e.emit(n(a))})}(s,this.groupExpand,this.groupCollapse,function(H){return{group:H.group,groupIndex:H.groupIndex,parentGroup:H.parentGroup}}),this.detailsServiceSubscription=function(r,t,e,n){return r.changes.pipe(Ue(function(a){return He(a.dataItem)})).subscribe(function(a){return a.expand?t.emit(a):e.emit(a)})}(u,this.detailExpand,this.detailCollapse),this.filterSubscription=this.filterService.changes.subscribe(function(H){K.filterChange.emit(H)}),this.sortSubscription=this.sortService.changes.subscribe(function(H){K.sortChange.emit(H)}),this.attachStateChangesEmitter(),this.attachEditHandlers(),this.attachDomEventHandlers(),this.pdfSubscription=this.pdfService.exportClick.subscribe(this.emitPDFExportEvent.bind(this)),this.excelSubscription=this.excelService.exportClick.subscribe(this.saveAsExcel.bind(this)),this.columnsContainerChange(),this.handleColumnResize(),this.columnList=new PV(this.columns),this.columnReorderSubscription=this.columnReorderService.changes.subscribe(this.reorder.bind(this)),this.columnRangeChangeSubscription=this.columnInfoService.columnRangeChange.subscribe(this.onColumnRangeChange.bind(this))}return v(r,[{key:"skip",get:function(){return this._skip},set:function(e){"number"==typeof e&&e>=0&&(this._skip=e)}},{key:"sort",get:function(){return this._sort},set:function(e){cV(e)&&(this._sort=e)}},{key:"group",get:function(){return this._group},set:function(e){cV(e)&&(this._group=e)}},{key:"showTopToolbar",get:function(){return this.toolbarTemplate&&["top","both"].indexOf(this.toolbarTemplate.position)>-1}},{key:"showBottomToolbar",get:function(){return this.toolbarTemplate&&["bottom","both"].indexOf(this.toolbarTemplate.position)>-1}},{key:"isLocked",get:function(){return this.lockedLeafColumns.length>0}},{key:"showTopPager",get:function(){return!this.isVirtual&&!1!==this.pageable&&["top","both"].indexOf(this.pageable.position)>-1}},{key:"showBottomPager",get:function(){return!this.isVirtual&&!1!==this.pageable&&"top"!==this.pageable.position}},{key:"hasPager",get:function(){return this.showTopPager||this.showBottomPager}},{key:"showGroupPanel",get:function(){return this.groupable&&!1!==this.groupable.enabled}},{key:"groupableEmptyText",get:function(){return this.groupable.emptyText}},{key:"marqueeSelection",get:function(){return this.selectionService.enableMarquee||this.cellSelectionService.enableMarquee}},{key:"navigatable",get:function(){return this.navigable},set:function(e){this.navigable=e}},{key:"rowClass",get:function(){return this._rowClass},set:function(e){if(xt&&"function"!=typeof e)throw new Error("rowClass must be a function, but received ".concat(JSON.stringify(e),"."));this._rowClass=e}},{key:"rowSticky",get:function(){return this._rowSticky},set:function(e){if(xt&&He(e)&&"function"!=typeof e)throw new Error("rowSticky must be a function, but received ".concat(JSON.stringify(e),"."));He(e)&&(this._rowSticky=e)}},{key:"rowSelected",get:function(){return this._rowSelected},set:function(e){if(xt&&"function"!=typeof e)throw new Error("rowSelected must be a function, but received ".concat(JSON.stringify(e),"."));this._rowSelected=e}},{key:"cellSelected",get:function(){return this._cellSelected},set:function(e){if(xt&&"function"!=typeof e)throw new Error("cellSelected must be a function, but received ".concat(JSON.stringify(e),"."));this._cellSelected=e}},{key:"activeCell",get:function(){return this.navigationService.activeCell}},{key:"activeRow",get:function(){return this.navigationService.activeRow}},{key:"dir",get:function(){return this.direction}},{key:"hostClasses",get:function(){return!0}},{key:"lockedClasses",get:function(){return this.lockedLeafColumns.length>0}},{key:"virtualClasses",get:function(){return this.isVirtual}},{key:"noScrollbarClass",get:function(){return 0===this.scrollbarWidth}},{key:"detailTemplate",get:function(){return this._customDetailTemplate?this._customDetailTemplate:this.detailTemplateChildren?this.detailTemplateChildren.first:void 0},set:function(e){this._customDetailTemplate=e}},{key:"cellLoadingTemplate",get:function(){return this._cellLoadingTemplate?this._customDetailTemplate:this.cellLoadingTemplateChildren?this.cellLoadingTemplateChildren.first:void 0},set:function(e){this._cellLoadingTemplate=e}},{key:"loadingTemplate",get:function(){return this._loadingTemplate?this._loadingTemplate:this.loadingTemplateChildren?this.loadingTemplateChildren.first:void 0},set:function(e){this._loadingTemplate=e}},{key:"noRecordsTemplate",get:function(){return this._customNoRecordsTemplate?this._customNoRecordsTemplate:this.noRecordsTemplateChildren?this.noRecordsTemplateChildren.first:void 0},set:function(e){this._customNoRecordsTemplate=e}},{key:"pagerTemplate",get:function(){return this._customPagerTemplate?this._customPagerTemplate:this.pagerTemplateChildren?this.pagerTemplateChildren.first:void 0},set:function(e){this._customPagerTemplate=e}},{key:"toolbarTemplate",get:function(){return this._customToolbarTemplate?this._customToolbarTemplate:this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0},set:function(e){this._customToolbarTemplate=e}},{key:"scrollbarWidth",get:function(){return this.supportService.scrollbarWidth}},{key:"headerPadding",get:function(){if(wb())return"";var e=Math.max(0,this.scrollbarWidth)+"px",a=this.rtl?e:0;return"0 ".concat(this.rtl?0:e," 0 ").concat(a)}},{key:"hasGroupFooters",get:function(){return this.columnsContainer.hasGroupFooter}},{key:"showFooter",get:function(){return this.columnsContainer.hasFooter}},{key:"showGroupFooters",get:function(){return this.groupable&&this.groupable.showFooter}},{key:"ariaRowCount",get:function(){return this.totalColumnLevels+1+this.view.total}},{key:"ariaColCount",get:function(){return this.columnsContainer.leafColumnsToRender.length}},{key:"isVirtual",get:function(){return"virtual"===this.scrollable}},{key:"isScrollable",get:function(){return"none"!==this.scrollable}},{key:"visibleColumns",get:function(){return this.columnsContainer.allColumns}},{key:"lockedColumns",get:function(){return this.columnsContainer.lockedColumns}},{key:"nonLockedColumns",get:function(){return this.columnsContainer.nonLockedColumns}},{key:"lockedLeafColumns",get:function(){return this.columnsContainer.lockedLeafColumns}},{key:"stickyColumns",get:function(){return this.columns.filter(function(e){return e.sticky})}},{key:"nonLockedLeafColumns",get:function(){return this.columnsContainer.nonLockedLeafColumns}},{key:"leafColumns",get:function(){return this.columnsContainer.leafColumns}},{key:"totalColumnLevels",get:function(){return this.columnsContainer.totalLevels}},{key:"headerColumns",get:function(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedColumns}},{key:"headerLeafColumns",get:function(){return this.virtualColumns&&!this.pdfService.exporting?this.leafViewportColumns:this.nonLockedLeafColumns}},{key:"lockedWidth",get:function(){var e=32*this.group.length;return Wu(this.lockedLeafColumns.toArray()).reduce(function(n,a){return n+(a.width||0)},e)}},{key:"nonLockedWidth",get:function(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return this.virtualColumns?this.leafViewportColumns.reduce(function(e,n){return e+(n.width||0)},0):this.columnsContainer.unlockedWidth}},{key:"selectableSettings",get:function(){if(this.selectionService)return this.selectionService.options}},{key:"columnMenuTemplate",get:function(){var e=this.columnMenuTemplates.first;return e?e.templateRef:null}},{key:"totalCount",get:function(){return this.isVirtual||!He(this.pageSize)?this.view.total:this.pageSize}},{key:"expandRow",value:function(e){this.toggleDetailRowLegacy(e,!0)}},{key:"collapseRow",value:function(e){this.toggleDetailRowLegacy(e,!1)}},{key:"expandGroup",value:function(e){this.toggleGroupRowLegacy(e,!0)}},{key:"collapseGroup",value:function(e){this.toggleGroupRowLegacy(e,!1)}},{key:"resetGroupsState",value:function(){this.groupsService.reset()}},{key:"expandGroupChildren",value:function(e){this.groupsService.expandChildren(e)}},{key:"onDataChange",value:function(){this.autoGenerateColumns(),this.changeNotification.notify(),this.pdfService.dataChanged.emit(),He(this.defaultSelection)&&this.defaultSelection.reset(),this.initSelectionService(),this.updateNavigationMetadata()}},{key:"ngOnChanges",value:function(e){var n=this;yn("data",e)&&this.onDataChange(),this.lockedLeafColumns.length&&Ki(["pageSize","skip","sort","group"],e)&&this.changeNotification.notify(),Ki(["pageSize","scrollable","virtualColumns"],e)&&this.updateNavigationMetadata(),yn("virtualColumns",e)&&(this.viewportColumns=this.leafViewportColumns=null),yn("height",e,!1)&&this.renderer.setStyle(this.wrapper.nativeElement,"height","".concat(this.height,"px")),yn("filterable",e)&&this.lockedColumns.length&&this.syncHeaderHeight(this.ngZone.onStable.asObservable().pipe(It(1))),Ki(["columnMenu","sortable","filterable"],e,!1)&&(this.columnMenuOptions=this.columnMenu&&Object.assign({filter:Boolean(this.filterable),sort:Boolean(this.sortable)},this.columnMenu)),yn("scrollable",e)&&this.isScrollable&&this.ngZone.onStable.pipe(It(1)).subscribe(function(){return n.attachScrollSync()}),yn("selectable",e)&&this.shouldResetSelection(e.selectable)&&(this.defaultSelection?this.defaultSelection.reset():this.selectionDirective&&this.selectionDirective.reset()),yn("groupable",e,!0)&&(this.groupable=e.groupable.currentValue)}},{key:"ngAfterViewInit",value:function(){this.attachScrollSync(),this.attachElementEventHandlers(),this.updateNavigationMetadata(),this.applyAutoSize()}},{key:"ngAfterContentChecked",value:function(){this.columnsContainer.refresh(),this.verifySettings(),this.initSelectionService()}},{key:"ngAfterContentInit",value:function(){var e=this;this.shouldGenerateColumns=!this.columns.length,this.autoGenerateColumns(),this.columnList=new PV(this.columns),this.columnsChangeSubscription=this.columns.changes.subscribe(function(){return e.verifySettings()})}},{key:"ngOnInit",value:function(){this.navigable&&this.navigationService.init(this.navigationMetadata())}},{key:"ngOnDestroy",value:function(){this.selectionSubscription&&this.selectionSubscription.unsubscribe(),this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.groupExpandCollapseSubscription&&this.groupExpandCollapseSubscription.unsubscribe(),this.detailsServiceSubscription&&this.detailsServiceSubscription.unsubscribe(),this.editServiceSubscription&&this.editServiceSubscription.unsubscribe(),this.pdfSubscription&&this.pdfSubscription.unsubscribe(),this.filterSubscription&&this.filterSubscription.unsubscribe(),this.sortSubscription&&this.sortSubscription.unsubscribe(),this.columnsChangeSubscription&&this.columnsChangeSubscription.unsubscribe(),this.excelSubscription&&this.excelSubscription.unsubscribe(),this.columnsContainerChangeSubscription&&this.columnsContainerChangeSubscription.unsubscribe(),this.scrollSyncService&&this.scrollSyncService.destroy(),this.detachElementEventHandlers&&this.detachElementEventHandlers(),this.defaultSelection&&this.defaultSelection.destroy(),this.cellClickSubscription&&this.cellClickSubscription.unsubscribe(),this.footerChangeSubscription&&this.footerChangeSubscription.unsubscribe(),this.ngZone=null,this.columnResizingSubscription&&this.columnResizingSubscription.unsubscribe(),this.columnReorderSubscription&&this.columnReorderSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe(),this.columnVisibilityChangeSubscription&&this.columnVisibilityChangeSubscription.unsubscribe(),this.columnLockedChangeSubscription&&this.columnLockedChangeSubscription.unsubscribe(),this.columnStickyChangeSubscription&&this.columnStickyChangeSubscription.unsubscribe(),this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.columnRangeChangeSubscription.unsubscribe()}},{key:"attachScrollSync",value:function(){var e=this;wb()||(this.header&&this.scrollSyncService.registerEmitter(this.header.nativeElement,"header"),this.footer&&(this.footerChangeSubscription=HT(this.footer).subscribe(function(n){return n.map(function(a){return a.nativeElement}).filter(He).forEach(function(a){return e.scrollSyncService.registerEmitter(a,"footer")})})))}},{key:"ariaLabel",get:function(){return this.localization.get("gridLabel")}},{key:"editRow",value:function(e,n,a){if(this.editService.editRow(e,n),!He(a)||!a.skipFocus){var o='tr[data-kendo-grid-item-index="'.concat(e,'"]'),s=a&&a.columnIndex,l=isNaN(s)?o:"".concat(o,' td[data-kendo-grid-column-index="').concat(s,'"]');this.focusEditElement(l)}}},{key:"closeRow",value:function(e){this.editService.close(e)}},{key:"addRow",value:function(e){if(!(e instanceof uC)){var a=Object.keys(e).reduce(function(r){return function(t,e){return t[e]=new rP(r[e]),t}}(e),{});e=new uC(a)}this.editService.addRow(e),this.focusEditElement(".k-grid-add-row")}},{key:"editCell",value:function(e,n,a){var o=this.columnInstance(n);this.editService.editCell(e,o,a),this.focusEditElement(".k-grid-edit-cell")}},{key:"closeCell",value:function(){return!this.editService.closeCell()}},{key:"cancelCell",value:function(){this.editService.cancelCell()}},{key:"isEditing",value:function(){return this.editService.isEditing()}},{key:"isEditingCell",value:function(){return this.editService.isEditingCell()}},{key:"saveAsPDF",value:function(){this.pdfService.save(this)}},{key:"drawPDF",value:function(){var e=function(){var r,t,e=new Promise(function(n,a){r=function(s){return n(s),e},t=function(s){return a(s),e}});return e.resolve=r,e.reject=t,e}();return this.pdfService.draw(this,e),e}},{key:"saveAsExcel",value:function(){this.excelService.save(this)}},{key:"autoFitColumn",value:function(e){this.columnResizingService.autoFit(e)}},{key:"autoFitColumns",value:function(){var e,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.columns;a=n instanceof Ei?n.toArray():n,(e=this.columnResizingService).autoFit.apply(e,Ae(a))}},{key:"notifyPageChange",value:function(e,n){"list"===e&&!this.isVirtual||this.pageChange.emit(n)}},{key:"notifyScrollBottom",value:function(){var e=this;"none"!==this.scrollable&&ut(this.scrollBottom)&&this.ngZone.run(function(){return e.scrollBottom.emit({sender:e})})}},{key:"focusEditElement",value:function(e){var n=this;this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.ngZone.runOutsideAngular(function(){n.focusElementSubscription=n.ngZone.onStable.asObservable().pipe(It(1)).subscribe(function(){var a=n.wrapper.nativeElement;!n.setEditFocus(a.querySelector(e))&&n.isLocked&&n.setEditFocus(a.querySelector(".k-grid-content ".concat(e))),n.focusElementSubscription=null})})}},{key:"focus",value:function(){return this.assertNavigable(),this.navigationService.focusCell()}},{key:"focusCell",value:function(e,n){return this.assertNavigable(),this.navigationService.focusCell(e,n)}},{key:"focusNextCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertNavigable(),this.navigationService.focusNextCell(e)}},{key:"focusPrevCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertNavigable(),this.navigationService.focusPrevCell(e)}},{key:"scrollTo",value:function(e){this.scrollRequestService.scrollTo(e)}},{key:"reorderColumn",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{before:!1},o=Fv(this.allColumnsForLevel(e.level)),s=o[n];if(s){var l=s.isLocked&&!e.isLocked&&1===this.columnsContainer.nonLockedColumns.length;l||(ZT(s)&&!a.before&&(s=s.childColumns.last),this.reorder({before:a.before,source:e,target:s}))}}},{key:"isDetailExpanded",get:function(){return this.detailsService.userCallback},set:function(e){this.detailsService.userCallback=e}},{key:"isGroupExpanded",get:function(){return this.groupsService.userCallback},set:function(e){this.groupsService.userCallback=e,this.groupable=He(e)}},{key:"reorder",value:function(e){var n=this,a=e.target,o=e.source,s=e.before,l=e.changeContainer;this.ngZone.run(function(){var u=Fv(n.allColumnsForLevel(o.level)),c=u.indexOf(a);a.parent&&a.parent.isSpanColumn&&(c=u.indexOf(a.parent),s&&(a=a.parent));var d=u.indexOf(o);l&&(s&&0c&&c++);var h=new y_t({column:o,oldIndex:d,newIndex:c});n.columnReorder.emit(h),!h.isDefaultPrevented()&&(l&&n.columnLockedChange.emit(new Lhe([o])),n.updateColumnIndices({columnsForLevel:u,source:o,target:a,before:s}),o.locked!==a.locked&&(o.locked=a.locked),n.columnsContainer.refresh(),n.changeDetectorRef.markForCheck())})}},{key:"updateColumnIndices",value:function(e){var a=e.source,o=e.target,s=e.before,l=ghe(e.columnsForLevel),u=l.indexOf(a),c=0,d=0,h=1;a.isSpanColumn&&(h+=a.childColumns.length);for(var f=0;f0}),Nn(function(){return e.ngZone.onStable.asObservable().pipe(It(1))})))}},{key:"handleColumnResize",value:function(){var e=this,n=this.columnResizingService.changes;this.columnResizingSubscription=n.pipe(At(function(a){"start"===a.type?e.renderer.addClass(e.wrapper.nativeElement,"k-grid-column-resizing"):"end"===a.type&&e.renderer.removeClass(e.wrapper.nativeElement,"k-grid-column-resizing")}),Ue(function(a){return"start"===a.type}),Nn(function(){return n.pipe(Qr(n.pipe(Ue(function(a){return"triggerAutoFit"===a.type}))),Ue(function(a){return"end"===a.type}))})).subscribe(this.notifyResize.bind(this))}},{key:"notifyResize",value:function(e){var n=e.resizedColumns.filter(function(a){return hs(a.column.resizable)&&!a.column.isColumnGroup}).map(function(a){return{column:a.column,newWidth:a.column.width,oldWidth:a.oldWidth}});this.columnResize.emit(n)}},{key:"assertNavigable",value:function(){if(xt()&&!this.navigable)throw new Error('The Grid should be configured as [navigable]="true" to control focus')}},{key:"navigationMetadata",value:function(){var e=this.isVirtual,a=e?this.view.total:this.pageSize,o=this.editService.hasNewItem?1:0,s=aA(this.filterable)?1:0;return new k_t(a,this.totalColumnLevels+1+s+o,e,this.hasPager,He(this.detailTemplate),this.wrapper,this.virtualColumns,this.columnsContainer)}},{key:"updateNavigationMetadata",value:function(){this.navigationService.metadata=this.navigationMetadata()}},{key:"applyAutoSize",value:function(){var e=this,n=this.columns.filter(function(a){return e.autoSize?!1!==a.autoSize:a.autoSize});n.length>0&&this.ngZone.onStable.pipe(It(1)).subscribe(function(a){return e.autoFitColumns(n)})}},{key:"onColumnRangeChange",value:function(e){for(var n=this.viewportColumns=[],a=this.columnsContainer.nonLockedLeafColumns.toArray().slice(e.start,e.end+1),o=0;o0){for(var c=a[0],d=e.offset,h=n[0],f=0;h!==c;)d-=h.isColumnGroup?0:h.width,h=n[++f];if(d>0)for(var _,g=this.columnsContainer.totalLevels,C=0;C<=g;C++){var w=C0){var e=i.data[t];l5(i,r,Array.isArray(e)?e:e.update,sc()-ey-1,J_)}J_=0,ey=0}(Bn(),Oe(),i+20)}(1),k(2),y("ngIf",e.showTopToolbar),k(1),y("ngIf",e.showTopPager),k(1),y("ngIf",e.showGroupPanel),k(1),ie("aria-label",e.ariaLabel)("aria-rowcount",e.ariaRowCount)("aria-colcount",e.ariaColCount),k(2),y("ngIf",e.isScrollable),k(1),y("ngIf",!e.isScrollable),k(1),y("ngIf",e.loading),k(1),y("ngIf",e.showBottomPager),k(1),y("ngIf",e.showBottomToolbar))},directives:[qV,iU,Uhe,aU,hfe,wfe,Dfe,SU,Efe,Tfe,qe,EU,TU,$o,fhe],styles:[" .k-grid .k-grid-aria-root {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n overflow: hidden;\n }\n\n .k-grid .k-filter-row td {\n white-space: nowrap;\n }"],encapsulation:2}),i}(),xU=function(){var i=function(){function r(t,e,n){p(this,r),this.grid=t,this.changeDetector=e,this.localDataChangesService=n,this.state={skip:0},this.originalData=[],n&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(this.rebind.bind(this)))}return v(r,[{key:"skip",set:function(e){He(e)||(e=0),this.grid.skip=this.state.skip=e}},{key:"sort",set:function(e){this.grid.sort=this.state.sort=e}},{key:"filter",set:function(e){this.grid.filter=this.state.filter=e}},{key:"pageSize",set:function(e){this.grid.pageSize=this.state.take=e}},{key:"group",set:function(e){this.grid.group=this.state.group=e}},{key:"data",set:function(e){this.originalData=e||[],this.localDataChangesService&&(this.localDataChangesService.data=e),this.dataChanged=!0}},{key:"ngOnInit",value:function(){this.applyState(this.state),this.stateChangeSubscription=this.grid.dataStateChange.subscribe(this.onStateChange.bind(this))}},{key:"ngOnDestroy",value:function(){this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){Ki(["pageSize","skip","sort","group","filter"],e)&&this.rebind()}},{key:"ngDoCheck",value:function(){this.dataChanged&&this.updateGridData()}},{key:"onStateChange",value:function(e){this.applyState(e),this.rebind()}},{key:"rebind",value:function(){this.data=this.originalData,this.updateGridData(),this.notifyDataChange()}},{key:"notifyDataChange",value:function(){this.grid.onDataChange(),this.changeDetector&&this.changeDetector.markForCheck()}},{key:"process",value:function(e){return jte(this.originalData,e)}},{key:"applyState",value:function(e){var a=e.take,o=e.sort,s=e.group,l=e.filter;this.skip=e.skip,this.pageSize=a,this.sort=o,this.group=s,this.filter=l}},{key:"updateGridData",value:function(){this.grid.data=this.process(this.state),this.dataChanged=!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(nt),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridBinding",""]],inputs:{skip:"skip",sort:"sort",filter:"filter",pageSize:"pageSize",group:"group",data:["kendoGridBinding","data"]},features:[Ie]}),i}(),xfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).ctx=n,o}return v(e,[{key:"ngOnInit",value:function(){!1===this.ctx.grid.selectable&&(this.ctx.grid.selectable=!0),this.ctx.grid.selectionDirective=this}},{key:"ngOnDestroy",value:function(){$(q(e.prototype),"destroy",this).call(this)}}]),e}(whe);return i.\u0275fac=function(t){return new(t||i)(m(Gm),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectBy",""]],features:[j]}),i}(),Mfe=function(){var i=function(){function r(t){p(this,r),this.grid=t,this.expandedDetailKeysChange=new O,this.expandedDetailKeys=[],this.initiallyExpanded=!1,this.expandedState=new Set,this.subscriptions=new Je,this.grid.isDetailExpanded=this.isExpanded.bind(this),this.subscriptions.add(xn(this.grid.detailExpand.pipe(We(function(e){return Object.assign({expand:!0},e)})),this.grid.detailCollapse.pipe(We(function(e){return Object.assign({expand:!1},e)}))).subscribe(this.toggleState.bind(this)))}return v(r,[{key:"expandDetailsKey",get:function(){return this._expandBy},set:function(e){this._expandBy=dV(e)?kr(e):e}},{key:"expandDetailBy",get:function(){return this.expandDetailsKey},set:function(e){this.expandDetailsKey=e}},{key:"ngOnChanges",value:function(e){He(e.expandedDetailKeys)&&this.lastExpandedState!==this.expandedDetailKeys&&(this.expandedState=new Set(this.expandedDetailKeys))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"keyGetter",get:function(){return this._expandBy||kr(void 0)}},{key:"isExpanded",value:function(e){var n=this.keyGetter(e.dataItem),a=this.expandedState.has(n);return this.initiallyExpanded?!a:a}},{key:"toggleState",value:function(e){var n=this.keyGetter(e.dataItem);Boolean(this.initiallyExpanded)!==e.expand?this.expandedState.add(n):this.expandedState.delete(n),this.notifyChange()}},{key:"notifyChange",value:function(){this.lastExpandedState=Array.from(this.expandedState),this.expandedDetailKeysChange.emit(this.lastExpandedState)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl))},i.\u0275dir=X({type:i,selectors:[["","kendoGridExpandDetailsBy",""]],inputs:{expandDetailsKey:["kendoGridExpandDetailsBy","expandDetailsKey"],expandDetailBy:"expandDetailBy",expandedDetailKeys:"expandedDetailKeys",initiallyExpanded:"initiallyExpanded"},outputs:{expandedDetailKeysChange:"expandedDetailKeysChange"},exportAs:["kendoGridExpandDetailsBy"],features:[Ie]}),i}(),Zyt=function(r){for(var t=[];r;)t.push({field:r.group.field,value:r.group.value}),r=r.parentGroup;return t},Yyt=function(r){return{field:r.group.field,value:r.group.value,parentGroupKeys:Zyt(r.parentGroup)}},Rfe=function(){var i=function(){function r(t){p(this,r),this.grid=t,this.expandedGroupKeysChange=new O,this.groupsInitiallyExpanded=!1,this.subscriptions=new Je,this.grid.isGroupExpanded=this.isExpanded.bind(this),this.subscriptions.add(xn(this.grid.groupExpand.pipe(We(function(e){return Object.assign({expand:!0},e)})),this.grid.groupCollapse.pipe(We(function(e){return Object.assign({expand:!1},e)}))).subscribe(this.toggleState.bind(this)))}return v(r,[{key:"expandGroupBy",get:function(){return this._expandGroupBy},set:function(e){"function"==typeof e&&(this._expandGroupBy=e)}},{key:"expandedGroupKeys",get:function(){return this._expandedGroupKeys},set:function(e){this._expandedGroupKeys=(e||[]).slice()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"keyGetter",get:function(){return this.expandGroupBy||Yyt}},{key:"isExpanded",value:function(e){return this.getItemIndex(e)>-1?!this.groupsInitiallyExpanded:this.groupsInitiallyExpanded}},{key:"getItemIndex",value:function(e){return this.expandGroupBy?this.expandedGroupKeys.indexOf(this.keyGetter(e)):this.expandedGroupKeys.findIndex(function(n){for(var a=0,o=e.parentGroup;He(o);){if(!He(n.parentGroupKeys)||!He(n.parentGroupKeys[a])||o.group.value!==n.parentGroupKeys[a].value||o.group.field!==n.parentGroupKeys[a].field)return!1;o=o.parentGroup,a++}return n.value===e.group.value&&n.field===e.group.field})}},{key:"toggleState",value:function(e){var n=this.keyGetter(e);if(Boolean(this.groupsInitiallyExpanded)!==e.expand)this.expandedGroupKeys.push(n);else{var a=this.expandedGroupKeys.indexOf(n);this.expandedGroupKeys.splice(a,1)}this.expandedGroupKeysChange.emit(this.expandedGroupKeys.slice())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl))},i.\u0275dir=X({type:i,selectors:[["","kendoGridExpandGroupBy",""]],inputs:{expandGroupBy:["kendoGridExpandGroupBy","expandGroupBy"],expandedGroupKeys:"expandedGroupKeys",groupsInitiallyExpanded:"groupsInitiallyExpanded"},outputs:{expandedGroupKeysChange:"expandedGroupKeysChange"},exportAs:["kendoGridExpandGroupBy"]}),i}(),Ofe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(IA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-messages"]],features:[de([{provide:IA,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Qyt=fA({filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterEqOperator:"eq",filterNotEqOperator:"neq",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"}),Ife=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n)).localization=o,s.showOperators=!0,s.defaultOperators=Qyt(s.localization),s.column=a,s}return v(e,[{key:"valueField",get:function(){return this._valueField?this._valueField:this.column.field},set:function(a){this._valueField=a}},{key:"currentFilter",get:function(){return this.filterByField(this.column.field)}},{key:"currentOperator",get:function(){return this.currentFilter?this.currentFilter.operator:"contains"}}]),e}(Km);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Pm),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-autocomplete-filter-cell"]],inputs:{showOperators:"showOperators",column:"column",filter:"filter",data:"data",valueField:"valueField"},features:[j],decls:2,vars:7,consts:[[3,"column","filter","operators","showOperators"],["kendoFilterInput","",3,"data","valueField","value"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"kendo-autocomplete",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("showOperators",e.showOperators),k(1),y("data",e.data)("valueField",e.valueField)("value",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,eB,$u],encapsulation:2}),i}(),id=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Pm,phe,MV,DV,JT,co]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],Ly,cr]}),i}(),Jyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"contains",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-contains-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ekt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"doesnotcontain",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-not-contains-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),tkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"endswith",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-endswith-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),nkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"eq",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-eq-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ikt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isempty",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isempty-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),rkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnotempty",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnotempty-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),akt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnotnull",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnotnull-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),okt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnull",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnull-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),skt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"neq",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-neq-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),lkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"startswith",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-startswith-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ukt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"gt",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-gt-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ckt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"gte",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-gte-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),dkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"lt",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-lt-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),hkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"lte",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-lte-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),fkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"after",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"gt"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-after-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),vkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"after-eq",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"gte"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-after-eq-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),pkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"before-eq",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"lte"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-before-eq-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),gkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"before",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"lt"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-before-operator"]],features:[de([{provide:Tn,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),mkt=[vU,Jyt,ekt,tkt,nkt,ikt,rkt,akt,okt,skt,lkt,ukt,ckt,dkt,hkt,fkt,vkt,pkt,gkt],_kt=[bt,fP,dC,dB,cB,kC,lT,Fa,id],Zm=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[].concat(mkt)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(_kt),bt,fP,dC,dB,cB,kC,lT,Fa,id]}),i}(),MU=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[gU,pU,TV,vU,Pb,EA,Ife,TA,AA,Zm.exports()]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Zm],Zm]}),i}(),ykt=[bt,kC,wae,Hnt,yo,id],Nfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[iU,XV,JV,ZV,QV,eU,nU,GV,tU,YV]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(ykt)]}),i}(),Ffe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),NA=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[CV,bV,SV]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,id,Ffe]]}),i}(),FA=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Fb,AV,gA,mA,yA,jm,_A,Zm.exports()]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Zm],Zm]}),i}(),Lfe=function(){var i=function(){function r(t,e,n,a,o,s){p(this,r),this.localization=t,this.columnInfoService=e,this.popupService=n,this.ngZone=a,this.renderer=o,this.changeDetector=s,this.autoSync=!1,this.allowHideAll=!0}return v(r,[{key:"columns",get:function(){return this.columnInfoService.leafNamedColumns}},{key:"ngOnDestroy",value:function(){this.close()}},{key:"toggle",value:function(e,n){var a=this;if(this.popupRef)this.close();else{var o=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:e,content:n,positionMode:"absolute",anchorAlign:{vertical:"bottom",horizontal:o},popupAlign:{vertical:"top",horizontal:o}}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.ngZone.runOutsideAngular(function(){return a.closeClick=a.renderer.listen("document","click",function(s){Va(s.target,function(u){return u===a.popupRef.popupElement||u===e})||a.close()})})}}},{key:"onApply",value:function(e){this.close(),e.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e))}},{key:"onChange",value:function(e){this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e)}},{key:"close",value:function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.detachClose()}},{key:"detachClose",value:function(){this.closeClick&&(this.closeClick(),this.closeClick=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(Cr),m(be),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-chooser"]],inputs:{autoSync:"autoSync",allowHideAll:"allowHideAll"},decls:5,vars:1,consts:[["type","button",1,"k-button","k-button-flat-base","k-button-flat","k-icon-button","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"click"],["anchor",""],[1,"k-button-icon","k-icon","k-i-columns"],["template",""],[1,"k-column-chooser-title"],[3,"columns","applyText","resetText","autoSync","allowHideAll","apply","columnChange"]],template:function(t,e){if(1&t){var n=Me();A(0,"button",0,1),Q("click",function(){re(n);var o=Yt(1),s=Yt(4);return e.toggle(o,s)}),z(2,"span",2),x(),T(3,Xgt,3,6,"ng-template",null,3,$n)}2&t&&ie("title",e.localization.get("columns"))},directives:[dU],encapsulation:2}),i}(),RU=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Lfe,Lb,Ah,$m,fU,kA,CA,bA,SA,XT,hU,wA,DA]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,FA]]}),i}(),kkt=[bt,NA,MU,FA,id,Ffe,RU],Pfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[wV,mU]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(kkt)]}),i}(),Bfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).parent=n,o.isCheckboxColumn=!0,o}return v(e,[{key:"templateRef",get:function(){return this.template?this.template.templateRef:void 0}}]),e}(Ir);return i.\u0275fac=function(t){return new(t||i)(m(Ir,13),m(Bl,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-checkbox-column"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Nv,5),2&t&&P(a=B())&&(e.template=a.first)},inputs:{showSelectAll:"showSelectAll"},features:[de([{provide:Ir,useExisting:ke(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Gfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"none":""}},{key:"onClick",value:function(a){a.preventDefault(),this.editService.beginEdit(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(La);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(_e),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-edit-command",e.commandClass))},features:[j]}),i}(),Vfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"":"none"}},{key:"onClick",value:function(a){a.preventDefault(),this.isEdited&&this.editService.endEdit(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(La);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(_e),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCancelCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-cancel-command",e.commandClass))},features:[j]}),i}(),Ufe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"":"none"}},{key:"onClick",value:function(a){a.preventDefault(),this.isEdited&&this.editService.save(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(La);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(_e),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSaveCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-save-command",e.commandClass))},features:[j]}),i}(),zfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"none":""}},{key:"onClick",value:function(a){a.preventDefault(),this.editService.remove(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(La);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(_e),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridRemoveCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-remove-command",e.commandClass))},features:[j]}),i}(),Hfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l){var u;return p(this,e),(u=t.call(this,a,o,null,s,l)).editService=n,u}return v(e,[{key:"onClick",value:function(a){a.preventDefault(),this.editService.beginAdd()}},{key:"commandClass",get:function(){return!0}}]),e}(La);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(_e),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridAddCommand",""]],hostVars:2,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&ue("k-grid-add-command",e.commandClass)},features:[j]}),i}(),Ckt=[bt,fP,dC,id,NA,AP,lT,yo],Kfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[kU,Bfe,CU,Nv,BV,qT,Gfe,Vfe,Ufe,zfe,Hfe,WV,$V]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(Ckt)]}),i}(),bkt=[bt,id],jfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(bkt)]}),i}(),Wfe=function(){function i(r,t){p(this,i),this.grid=r,this.localDataChangesService=t}return v(i,[{key:"create",value:function(t){this.hasLocalData&&this.grid.skip?this.localDataChangesService.data.splice(this.grid.skip,0,t):this.data.unshift(t),this.dataChanged()}},{key:"update",value:function(t){}},{key:"remove",value:function(t){for(var e=this.data,n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.hasLocalData&&this.localDataChangesService.changes.emit(t)}},{key:"hasLocalData",get:function(){return Array.isArray(this.localDataChangesService.data)}},{key:"data",get:function(){if(this.hasLocalData)return this.localDataChangesService.data;var t=this.grid.data;if(Array.isArray(t))return t;if(xt())throw new Error("The default edit service of the editing directives works only when binding to plain array.Please provide an editService.");return[]}}]),i}(),$fe=function(){var i=function(){function r(t,e){p(this,r),this.grid=t,this.localDataChangesService=e,this.defaultEditService=this.createDefaultService()}return v(r,[{key:"editService",get:function(){return this.userEditService||this.defaultEditService},set:function(e){this.userEditService=e}},{key:"ngOnInit",value:function(){this.subscriptions=this.grid.add.subscribe(this.addHandler.bind(this)),this.subscriptions.add(this.grid.remove.subscribe(this.removeHandler.bind(this))),this.subscriptions.add(this.grid.cancel.subscribe(this.cancelHandler.bind(this))),this.subscriptions.add(this.grid.save.subscribe(this.saveHandler.bind(this))),this.subscriptions.add(this.grid.dataStateChange.subscribe(this.onStateChange.bind(this)))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"createDefaultService",value:function(){return new Wfe(this.grid,this.localDataChangesService)}},{key:"addHandler",value:function(){this.grid.addRow(this.createModel({isNew:!0}))}},{key:"saveHandler",value:function(e){var n=this.saveModel(e);n&&(e.isNew?this.editService.create(n):this.editService.update(n)),this.grid.closeRow(e.rowIndex)}},{key:"cancelHandler",value:function(e){this.closeEditor(e.rowIndex)}},{key:"removeHandler",value:function(e){var n=this,a=e.dataItem,o=function(u){u&&n.editService.remove(a)};if(this.removeConfirmation){var s=this.removeConfirmation(a);s instanceof Promise?s.then(o):s instanceof An?s.pipe(It(1)).subscribe(o):o(s)}else o(!0)}},{key:"onStateChange",value:function(){this.closeEditor()}},{key:"closeEditor",value:function(e){this.grid.closeRow(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditingDirectiveBase",""]],inputs:{editService:"editService",removeConfirmation:"removeConfirmation"}}),i}(),Skt=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"update",value:function(n){this.dataChanged()}}]),t}(Wfe),qfe=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e,[{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.subscriptions.add(this.grid.edit.subscribe(this.editHandler.bind(this)))}},{key:"createDefaultService",value:function(){return new Skt(this.grid,this.localDataChangesService)}},{key:"addHandler",value:function(){this.closeEditor(),$(q(e.prototype),"addHandler",this).call(this)}},{key:"editHandler",value:function(a){this.closeEditor(),this.rowIndex=a.rowIndex,this.grid.editRow(a.rowIndex,this.createModel(a))}},{key:"saveHandler",value:function(a){$(q(e.prototype),"saveHandler",this).call(this,a),this.clean()}},{key:"closeEditor",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rowIndex;$(q(e.prototype),"closeEditor",this).call(this,a),this.clean()}},{key:"clean",value:function(){delete this.rowIndex}}]),e}($fe);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["","kendoGridRowEditingDirectiveBase",""]],features:[j]}),i}(),Xfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).grid=n,o.localDataChangesService=a,o}return v(e,[{key:"editHandler",value:function(a){$(q(e.prototype),"editHandler",this).call(this,a),this.dataItem=a.dataItem,this.originalValues={},this.editService.assignValues(this.originalValues,this.dataItem)}},{key:"closeEditor",value:function(a){this.dataItem&&this.editService.assignValues(this.dataItem,this.originalValues),$(q(e.prototype),"closeEditor",this).call(this,a)}},{key:"createModel",value:function(a){if(a.isNew)return this.createNewItem()}},{key:"saveModel",value:function(a){return a.dataItem}},{key:"clean",value:function(){$(q(e.prototype),"clean",this).call(this),delete this.dataItem}}]),e}(qfe);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridTemplateEditing",""]],inputs:{createNewItem:["kendoGridTemplateEditing","createNewItem"]},features:[j]}),i}(),Zfe=function i(r){if(r.markAsTouched(),r.hasOwnProperty("controls")){var t=r.controls;for(var e in t)t.hasOwnProperty(e)&&i(t[e])}},Yfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).grid=n,o.localDataChangesService=a,o}return v(e,[{key:"createModel",value:function(a){return this.createFormGroup(a)}},{key:"saveModel",value:function(a){var o=a.dataItem,s=a.formGroup;if(s.dirty||a.isNew){if(s.valid)return this.editService.assignValues(o,s.value),o;Zfe(s)}}}]),e}(qfe);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridReactiveEditing",""]],inputs:{createFormGroup:["kendoGridReactiveEditing","createFormGroup"]},features:[j]}),i}(),Qfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a)).grid=n,s.localDataChangesService=a,s.cdr=o,s}return v(e,[{key:"createModel",value:function(a){return this.createFormGroup(a)}},{key:"saveModel",value:function(a){var o=a.dataItem,s=a.formGroup;if(s.dirty||a.isNew){if(s.valid)return this.editService.assignValues(o,s.value),o;Zfe(s)}}},{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.subscriptions.add(this.grid.cellClick.subscribe(this.cellClickHandler.bind(this))),this.subscriptions.add(this.grid.cellClose.subscribe(this.cellCloseHandler.bind(this)))}},{key:"removeHandler",value:function(a){$(q(e.prototype),"removeHandler",this).call(this,a),this.grid.cancelCell()}},{key:"cellClickHandler",value:function(a){!a.isEdited&&"contextmenu"!==a.type&&(this.grid.editCell(a.rowIndex,a.columnIndex,this.createFormGroup(a)),this.cdr.markForCheck())}},{key:"cellCloseHandler",value:function(a){var o=a.formGroup,s=a.dataItem;if(o.valid){if(o.dirty){if(a.originalEvent&&a.originalEvent.keyCode===J.Escape)return;this.editService.assignValues(s,o.value),this.editService.update(s)}}else a.preventDefault()}}]),e}($fe);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoGridInCellEditing",""]],inputs:{createFormGroup:["kendoGridInCellEditing","createFormGroup"]},features:[j]}),i}(),wkt=function(r){return r&&r.length&&r[0].field&&r[0].items},Jfe=function(r){return He(r)&&r.length>0},eve=function(r,t){return jte(r,t).data},tve=function(r,t){var e=[];return{group:r.split("_").reduce(function(n,a){var o=parseInt(a,10);return n.items?(e.push(n),n.items[o]):cV(n)?n[o]:n},t),parents:e}},OU=function i(r){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce(function(e,n){if(n.skipHeader||e++,n.items){var a=i(n.items,t);t&&a&&!n.hideFooter&&e++,e+=a}return e},0)},Tkt=function i(r,t,e){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!He(e))return r;for(var a=[],o=0,s=r.length;o0;if(t&&(t--,c&&t>=c))t-=c;else if(!d||c){var h=[],f=!0;if(d||e--,e){if(wkt(u)){var g=i(u,t,e,n);h.push.apply(h,Ae(g)),e-=OU(g,n)}else h.push.apply(h,Ae(u.slice(t,Math.min(t+e,u.length)))),e-=h.length;e&&n&&(f=!1,e--),t=0}a.push({aggregates:l.aggregates,field:l.field,hideFooter:f,items:h,offset:o,skipHeader:d,value:l.value})}}return a},nve=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){return p(this,e),t.call(this,n,a,o)}return v(e,[{key:"kendoGridGroupBinding",set:function(a){this.groups=null,this.grid.resetGroupsState(),this.data=a}},{key:"data",set:function(a){this.originalData=a||[],this.dataChanged=!0}},{key:"sort",set:function(a){var o=this.state.sort!==a;this.grid.sort=this.state.sort=a,o&&(this.groups=null,this.grid.resetGroupsState())}},{key:"filter",set:function(a){qhe(this.state.filter,a)&&(this.state.filter=a,this.grid.filter=sU(a),this.groups=null,this.grid.resetGroupsState())}},{key:"group",set:function(a){var o=Jfe(this.state.group)||Jfe(a),s=this.state.group!==a&&o;this.grid.group=this.state.group=a,s&&(this.groups=null,this.grid.resetGroupsState(),this.skip=0)}},{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.grid.groupExpand.subscribe(this.groupExpand.bind(this)),this.grid.groupCollapse.subscribe(this.groupCollapse.bind(this))}},{key:"ngAfterContentInit",value:function(){if(xt()&&this.grid.isGroupExpanded)throw new Error("Using the `kendoGridGroupBinding` directive in combination with the `kendoGridExpandGroupBy` directive or the `isGroupExpanded` callback is not supported. To use grouping with the `kendoGridGroupBinding` directive, set the Grid `groupable` property to `true`.")}},{key:"groupExpand",value:function(a){var o=a.groupIndex;this.grid.expandGroupChildren(o);var s=tve(o,this.groups),l=s.group,u=s.parents;if(!l.items.length){var c=this.state.group.filter(function(r,t){return function(e){return e.field!==t.field&&!r.some(function(n){return n.field===e.field})}}(u,l)),d=function(r,t){var e=t.map(function(n){return{field:n.field,operator:"eq",value:n.value}});return Ute(r,{filters:e,logic:"and"})}(this.originalData,u.concat(l));l.items=eve(d,{filter:this.state.filter,group:c,sort:this.state.sort})}this.grid.data=this.dataResult(this.state.skip,this.state.take)}},{key:"groupCollapse",value:function(a){var l=tve(a.groupIndex,this.groups).group;l&&(l.items=[]),this.grid.data=this.dataResult(this.state.skip,this.state.take)}},{key:"process",value:function(a){if(a.group&&a.group.length){var o=this.processGroups(a);return this.grid.skip-=function(r){for(var t=0;r;)r.skipHeader&&t++,r=r.items&&r.items[0]||null;return t}(o.data[0]),o}return this.groups=null,$(q(e.prototype),"process",this).call(this,a)}},{key:"processGroups",value:function(a){return(!this.groups||!this.groups.length)&&(this.groups=eve(this.originalData,{filter:a.filter,group:a.group,sort:a.sort})),this.dataResult(a.skip,a.take)}},{key:"dataResult",value:function(a,o){var s=this.grid.showGroupFooters;return{data:Tkt(this.groups,a,o,s),total:OU(this.groups,s)}}},{key:"applyState",value:function(a){var s=a.take,l=a.sort,u=a.group,c=a.filter;this.skip=a.skip,this.state.take=s,this.sort=l,this.group=u,this.filter=c}}]),e}(xU);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(nt),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupBinding",""]],inputs:{kendoGridGroupBinding:"kendoGridGroupBinding",sort:"sort",filter:"filter",group:"group"},features:[j]}),i}(),xkt=([Gl,UV,qV,rhe,xU,xfe,Ofe,nve,Xfe,Yfe,Qfe,Mfe,Rfe].concat(Ae(NA.exports()),Ae(id.exports()),Ae(Kfe.exports()),Ae(Pfe.exports()),Ae(jfe.exports()),Ae(Nfe.exports()),Ae(MU.exports()),Ae(FA.exports()),Ae(RU.exports())),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,NA,id,Kfe,Pfe,jfe,Nfe,MU,FA,yo,RU]]}),i}()),jkt=(Ta("KENDO-GRID-LIST"),Ta("TABLE"),function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.renderer=e,this.colors={"SEV: LOW":"#ff9800","SEV: MEDIUM":"#ff5d2a","SEV: HIGH":"#d50000",ENHANCEMENT:"#00c853",FEATURE:"#2e7d32",OTHER:"#1ca8dd","PASSED QA":"#57b45b",BUG:"#cf3257","NEEDS QA":"#bc007c",DOCUMENTATION:"#455a64",DEMO:"#673ab7",DELETED:"#f44336","IN PROGRESS":"#ffd600"}}return v(r,[{key:"labelClass",set:function(e){var n=this.matchColor(e);this.renderer.setStyle(this.element.nativeElement,"backgroundColor",n)}},{key:"matchColor",value:function(e){return this.colors[e.toUpperCase()]||this.colors.OTHER}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","appLabelClass",""]],inputs:{labelClass:"labelClass"}}),i}());var Ym={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},$kt=/[&<>"']/,qkt=/[&<>"']/g,Xkt=/[<>"']|&(?!#?\w+;)/,Zkt=/[<>"']|&(?!#?\w+;)/g,Ykt={"&":"&","<":"<",">":">",'"':""","'":"'"},dve=function(r){return Ykt[r]};function ua(i,r){if(r){if($kt.test(i))return i.replace(qkt,dve)}else if(Xkt.test(i))return i.replace(Zkt,dve);return i}var Qkt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function hve(i){return i.replace(Qkt,function(r,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var Jkt=/(^|[^\[])\^/g;function bi(i,r){i="string"==typeof i?i:i.source,r=r||"";var t={replace:function(n,a){return a=(a=a.source||a).replace(Jkt,"$1"),i=i.replace(n,a),t},getRegex:function(){return new RegExp(i,r)}};return t}var eCt=/[^\w:]/g,tCt=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function fve(i,r,t){if(i){var e;try{e=decodeURIComponent(hve(t)).replace(eCt,"").toLowerCase()}catch(n){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}r&&!tCt.test(t)&&(t=function aCt(i,r){LA[" "+i]||(LA[" "+i]=nCt.test(i)?i+"/":BA(i,"/",!0));var t=-1===(i=LA[" "+i]).indexOf(":");return"//"===r.substring(0,2)?t?r:i.replace(iCt,"$1")+r:"/"===r.charAt(0)?t?r:i.replace(rCt,"$1")+r:i+r}(r,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch(n){return null}return t}var LA={},nCt=/^[^:]+:\/*[^/]*$/,iCt=/^([^:]+:)[\s\S]*$/,rCt=/^([^:]+:\/*[^/]*)[\s\S]*$/,PA={exec:function(){}};function Vl(i){for(var t,e,r=1;r=0&&"\\"===s[u];)l=!l;return l?"|":" |"}).split(/ \|/),n=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>r)e.splice(r);else for(;e.length1;)1&r&&(t+=i),r>>=1,i+=i;return t+i}function mve(i,r,t,e){var n=r.href,a=r.title?ua(r.title):null,o=i[1].replace(/\\([\[\]])/g,"$1");if("!"!==i[0].charAt(0)){e.state.inLink=!0;var s={type:"link",raw:t,href:n,title:a,text:o,tokens:e.inlineTokens(o,[])};return e.state.inLink=!1,s}return{type:"image",raw:t,href:n,title:a,text:ua(o)}}var UU=function(){function i(r){p(this,i),this.options=r||Ym}return v(i,[{key:"space",value:function(t){var e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}},{key:"code",value:function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:BA(n,"\n")}}}},{key:"fences",value:function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],a=function sCt(i,r){var t=i.match(/^(\s+)(?:```)/);if(null===t)return r;var e=t[1];return r.split("\n").map(function(n){var a=n.match(/^\s+/);return null===a?n:Bt(a,1)[0].length>=e.length?n.slice(e.length):n}).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:a}}}},{key:"heading",value:function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var a=BA(n,"#");(this.options.pedantic||!a||/ $/.test(a))&&(n=a.trim())}var o={type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}},{key:"hr",value:function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}},{key:"blockquote",value:function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}},{key:"list",value:function(t){var e=this.rules.block.list.exec(t);if(e){var n,a,o,s,l,u,c,d,h,f,g,_,C=e[1].trim(),w=C.length>1,E={type:"list",raw:"",ordered:w,start:w?+C.slice(0,-1):"",loose:!1,items:[]};C=w?"\\d{1,9}\\".concat(C.slice(-1)):"\\".concat(C),this.options.pedantic&&(C=w?C:"[*+-]");for(var M=new RegExp("^( {0,3}".concat(C,")((?:[\t ][^\\n]*)?(?:\\n|$))"));t&&(_=!1,(e=M.exec(t))&&!this.rules.block.hr.test(t));){if(t=t.substring((n=e[0]).length),d=e[2].split("\n",1)[0],h=t.split("\n",1)[0],this.options.pedantic?(s=2,g=d.trimLeft()):(s=e[2].search(/[^ ]/),g=d.slice(s=s>4?1:s),s+=e[1].length),u=!1,!d&&/^ *$/.test(h)&&(n+=h+"\n",t=t.substring(h.length+1),_=!0),!_)for(var R=new RegExp("^ {0,".concat(Math.min(3,s-1),"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))")),N=new RegExp("^ {0,".concat(Math.min(3,s-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"));t&&(d=f=t.split("\n",1)[0],this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!R.test(d)&&!N.test(t));){if(d.search(/[^ ]/)>=s||!d.trim())g+="\n"+d.slice(s);else{if(u)break;g+="\n"+d}!u&&!d.trim()&&(u=!0),n+=f+"\n",t=t.substring(f.length+1)}E.loose||(c?E.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(a=/^\[[ xX]\] /.exec(g))&&(o="[ ] "!==a[0],g=g.replace(/^\[[ xX]\] +/,"")),E.items.push({type:"list_item",raw:n,task:!!a,checked:o,loose:!1,text:g}),E.raw+=n}E.items[E.items.length-1].raw=n.trimRight(),E.items[E.items.length-1].text=g.trimRight(),E.raw=E.raw.trimRight();var V=E.items.length;for(l=0;l1)return!0}catch(me){K.e(me)}finally{K.f()}return!1});!E.loose&&U.length&&ee&&(E.loose=!0,E.items[l].loose=!0)}return E}}},{key:"html",value:function(t){var e=this.rules.block.html.exec(t);if(e){var n={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(e[0]):ua(e[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}}},{key:"def",value:function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}}},{key:"table",value:function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:vve(e[1]).map(function(c){return{text:c}}),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var o,s,l,u,a=n.align.length;for(o=0;o/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):ua(e[0]):e[0]}}},{key:"link",value:function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var a=BA(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{var o=function oCt(i,r){if(-1===i.indexOf(r[1]))return-1;for(var t=i.length,e=0,n=0;n-1){var l=(0===e[0].indexOf("!")?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,l).trim(),e[3]=""}}var u=e[2],c="";if(this.options.pedantic){var d=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(u);d&&(u=d[1],c=d[3])}else c=e[3]?e[3].slice(1,-1):"";return u=u.trim(),/^$/.test(n)?u.slice(1):u.slice(1,-1)),mve(e,{href:u&&u.replace(this.rules.inline._escapes,"$1"),title:c&&c.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}},{key:"reflink",value:function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var a=(n[2]||n[1]).replace(/\s+/g," ");if(!(a=e[a.toLowerCase()])||!a.href){var o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return mve(n,a,n[0],this.lexer)}}},{key:"emStrong",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=this.rules.inline.emStrong.lDelim.exec(t);if(a&&(!a[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=a[1]||a[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){var l,u,s=a[0].length-1,c=s,d=0,h="*"===a[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,e=e.slice(-1*t.length+s);null!=(a=h.exec(e));)if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6]){if(u=l.length,a[3]||a[4]){c+=u;continue}if((a[5]||a[6])&&s%3&&!((s+u)%3)){d+=u;continue}if(!((c-=u)>0)){if(u=Math.min(u,u+c+d),Math.min(s,u)%2){var f=t.slice(1,s+a.index+u);return{type:"em",raw:t.slice(0,s+a.index+u+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}var g=t.slice(2,s+a.index+u-1);return{type:"strong",raw:t.slice(0,s+a.index+u+1),text:g,tokens:this.lexer.inlineTokens(g,[])}}}}}}},{key:"codespan",value:function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),a=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return a&&o&&(n=n.substring(1,n.length-1)),n=ua(n,!0),{type:"codespan",raw:e[0],text:n}}}},{key:"br",value:function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}},{key:"del",value:function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}}},{key:"autolink",value:function(t,e){var a,o,n=this.rules.inline.autolink.exec(t);if(n)return o="@"===n[2]?"mailto:"+(a=ua(this.options.mangle?e(n[1]):n[1])):a=ua(n[1]),{type:"link",raw:n[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}},{key:"url",value:function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var a,o;if("@"===n[2])o="mailto:"+(a=ua(this.options.mangle?e(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);a=ua(n[0]),o="www."===n[1]?"http://"+a:a}return{type:"link",raw:n[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}}},{key:"inlineText",value:function(t,e){var a,n=this.rules.inline.text.exec(t);if(n)return a=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):ua(n[0]):n[0]:ua(this.options.smartypants?e(n[0]):n[0]),{type:"text",raw:n[0],text:a}}}]),i}(),Ht={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:PA,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Ht.def=bi(Ht.def).replace("label",Ht._label).replace("title",Ht._title).getRegex(),Ht.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ht.listItemStart=bi(/^( *)(bull) */).replace("bull",Ht.bullet).getRegex(),Ht.list=bi(Ht.list).replace(/bull/g,Ht.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ht.def.source+")").getRegex(),Ht._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ht._comment=/|$)/,Ht.html=bi(Ht.html,"i").replace("comment",Ht._comment).replace("tag",Ht._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ht.paragraph=bi(Ht._paragraph).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.blockquote=bi(Ht.blockquote).replace("paragraph",Ht.paragraph).getRegex(),Ht.normal=Vl({},Ht),Ht.gfm=Vl({},Ht.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ht.gfm.table=bi(Ht.gfm.table).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.gfm.paragraph=bi(Ht._paragraph).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ht.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.pedantic=Vl({},Ht.normal,{html:bi("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ht._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:PA,paragraph:bi(Ht.normal._paragraph).replace("hr",Ht.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ht.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var _t={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:PA,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:PA,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(e="x"+e.toString(16)),r+="&#"+e+";";return r}_t._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",_t.punctuation=bi(_t.punctuation).replace(/punctuation/g,_t._punctuation).getRegex(),_t.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,_t.escapedEmSt=/\\\*|\\_/g,_t._comment=bi(Ht._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),_t.emStrong.lDelim=bi(_t.emStrong.lDelim).replace(/punct/g,_t._punctuation).getRegex(),_t.emStrong.rDelimAst=bi(_t.emStrong.rDelimAst,"g").replace(/punct/g,_t._punctuation).getRegex(),_t.emStrong.rDelimUnd=bi(_t.emStrong.rDelimUnd,"g").replace(/punct/g,_t._punctuation).getRegex(),_t._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,_t._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,_t._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,_t.autolink=bi(_t.autolink).replace("scheme",_t._scheme).replace("email",_t._email).getRegex(),_t._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,_t.tag=bi(_t.tag).replace("comment",_t._comment).replace("attribute",_t._attribute).getRegex(),_t._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,_t._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,_t._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,_t.link=bi(_t.link).replace("label",_t._label).replace("href",_t._href).replace("title",_t._title).getRegex(),_t.reflink=bi(_t.reflink).replace("label",_t._label).replace("ref",Ht._label).getRegex(),_t.nolink=bi(_t.nolink).replace("ref",Ht._label).getRegex(),_t.reflinkSearch=bi(_t.reflinkSearch,"g").replace("reflink",_t.reflink).replace("nolink",_t.nolink).getRegex(),_t.normal=Vl({},_t),_t.pedantic=Vl({},_t.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:bi(/^!?\[(label)\]\((.*?)\)/).replace("label",_t._label).getRegex(),reflink:bi(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_t._label).getRegex()}),_t.gfm=Vl({},_t.normal,{escape:bi(_t.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[];for(t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,function(c,d,h){return d+" ".repeat(h.length)});t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(c){return!!(a=c.call({lexer:e},t,n))&&(t=t.substring(a.raw.length),n.push(a),!0)}))){if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length),1===a.raw.length&&n.length>0?n[n.length-1].raw+="\n":n.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length),!(o=n[n.length-1])||"paragraph"!==o.type&&"text"!==o.type?n.push(a):(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length),!(o=n[n.length-1])||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title}):(o.raw+="\n"+a.raw,o.text+="\n"+a.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock&&function(){var c=1/0,d=t.slice(1),h=void 0;e.options.extensions.startBlock.forEach(function(f){"number"==typeof(h=f.call({lexer:this},d))&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}(),this.state.top&&(a=this.tokenizer.paragraph(s))){o=n[n.length-1],l&&"paragraph"===o.type?(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(a),l=s.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===o.type?(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(a);continue}if(t){var u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}return this.state.top=!0,n}},{key:"inline",value:function(t,e){this.inlineQueue.push({src:t,tokens:e})}},{key:"inlineTokens",value:function(t){var a,o,s,u,c,d,e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=t;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(h.length>0)for(;null!=(u=this.tokenizer.rules.inline.reflinkSearch.exec(l));)h.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,u.index)+"["+gve("a",u[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(u=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,u.index)+"["+gve("a",u[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(u=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,u.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(c||(d=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(g){return!!(a=g.call({lexer:e},t,n))&&(t=t.substring(a.raw.length),n.push(a),!0)}))){if(a=this.tokenizer.escape(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(t)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===a.type&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(a=this.tokenizer.link(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===a.type&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(t,l,d)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(t,_ve)){t=t.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(t,_ve))){t=t.substring(a.raw.length),n.push(a);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline&&function(){var g=1/0,_=t.slice(1),C=void 0;e.options.extensions.startInline.forEach(function(w){"number"==typeof(C=w.call({lexer:this},_))&&C>=0&&(g=Math.min(g,C))}),g<1/0&&g>=0&&(s=t.substring(0,g+1))}(),a=this.tokenizer.inlineText(s,lCt)){t=t.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(d=a.raw.slice(-1)),c=!0,(o=n[n.length-1])&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(t){var f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}return n}}],[{key:"rules",get:function(){return{block:Ht,inline:_t}}},{key:"lex",value:function(t,e){return new i(e).lex(t)}},{key:"lexInline",value:function(t,e){return new i(e).inlineTokens(t)}}]),i}(),zU=function(){function i(r){p(this,i),this.options=r||Ym}return v(i,[{key:"code",value:function(t,e,n){var a=(e||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(t,a);null!=o&&o!==t&&(n=!0,t=o)}return t=t.replace(/\n$/,"")+"\n",a?'
    '+(n?t:ua(t,!0))+"
    \n":"
    "+(n?t:ua(t,!0))+"
    \n"}},{key:"blockquote",value:function(t){return"
    \n".concat(t,"
    \n")}},{key:"html",value:function(t){return t}},{key:"heading",value:function(t,e,n,a){if(this.options.headerIds){var o=this.options.headerPrefix+a.slug(n);return"').concat(t,"\n")}return"").concat(t,"\n")}},{key:"hr",value:function(){return this.options.xhtml?"
    \n":"
    \n"}},{key:"list",value:function(t,e,n){var a=e?"ol":"ul";return"<"+a+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"\n"}},{key:"listitem",value:function(t){return"
  • ".concat(t,"
  • \n")}},{key:"checkbox",value:function(t){return" "}},{key:"paragraph",value:function(t){return"

    ".concat(t,"

    \n")}},{key:"table",value:function(t,e){return e&&(e="".concat(e,"")),"\n\n"+t+"\n"+e+"
    \n"}},{key:"tablerow",value:function(t){return"\n".concat(t,"\n")}},{key:"tablecell",value:function(t,e){var n=e.header?"th":"td";return(e.align?"<".concat(n,' align="').concat(e.align,'">'):"<".concat(n,">"))+t+"\n")}},{key:"strong",value:function(t){return"".concat(t,"")}},{key:"em",value:function(t){return"".concat(t,"")}},{key:"codespan",value:function(t){return"".concat(t,"")}},{key:"br",value:function(){return this.options.xhtml?"
    ":"
    "}},{key:"del",value:function(t){return"".concat(t,"")}},{key:"link",value:function(t,e,n){if(null===(t=fve(this.options.sanitize,this.options.baseUrl,t)))return n;var a='"+n+""}},{key:"image",value:function(t,e,n){if(null===(t=fve(this.options.sanitize,this.options.baseUrl,t)))return n;var a='').concat(n,'":">")}},{key:"text",value:function(t){return t}}]),i}(),yve=function(){function i(){p(this,i)}return v(i,[{key:"strong",value:function(t){return t}},{key:"em",value:function(t){return t}},{key:"codespan",value:function(t){return t}},{key:"del",value:function(t){return t}},{key:"html",value:function(t){return t}},{key:"text",value:function(t){return t}},{key:"link",value:function(t,e,n){return""+n}},{key:"image",value:function(t,e,n){return""+n}},{key:"br",value:function(){return""}}]),i}(),kve=function(){function i(){p(this,i),this.seen={}}return v(i,[{key:"serialize",value:function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(t,e){var n=t,a=0;if(this.seen.hasOwnProperty(n)){a=this.seen[t];do{n=t+"-"+ ++a}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=a,this.seen[n]=0),n}},{key:"slug",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}]),i}(),Jm=function(){function i(r){p(this,i),this.options=r||Ym,this.options.renderer=this.options.renderer||new zU,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new yve,this.slugger=new kve}return v(i,[{key:"parse",value:function(t){var a,o,s,l,u,c,d,h,f,g,_,C,w,E,M,R,N,V,U,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="",ee=t.length;for(a=0;a0&&"paragraph"===M.tokens[0].type?(M.tokens[0].text=V+" "+M.tokens[0].text,M.tokens[0].tokens&&M.tokens[0].tokens.length>0&&"text"===M.tokens[0].tokens[0].type&&(M.tokens[0].tokens[0].text=V+" "+M.tokens[0].tokens[0].text)):M.tokens.unshift({type:"text",text:V}):E+=V),E+=this.parse(M.tokens,w),f+=this.renderer.listitem(E,N,R);n+=this.renderer.list(f,_,C);continue;case"html":n+=this.renderer.html(g.text);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(g.tokens));continue;case"text":for(f=g.tokens?this.parseInline(g.tokens):g.text;a+1An error occurred:

    "+ua(l.message+"",!0)+"
    ";throw l}}en.options=en.setOptions=function(i){return Vl(en.defaults,i),function Wkt(i){Ym=i}(en.defaults),en},en.getDefaults=function cve(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},en.defaults=Ym,en.use=function(){for(var i=arguments.length,r=new Array(i),t=0;tAn error occurred:

    "+ua(e.message+"",!0)+"
    ";throw e}},en.Parser=Jm,en.parser=Jm.parse,en.Renderer=zU,en.TextRenderer=yve,en.Lexer=Qm,en.lexer=Qm.lex,en.Tokenizer=UU,en.Slugger=kve,en.parse=en;var uCt=en.setOptions,cCt=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"ngOnChanges",value:function(){var e=uCt({});this.convertedData=e.parse(this.data)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-markdown"]],inputs:{data:"data"},features:[Ie],decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(t,e){1&t&&z(0,"div",0),2&t&&y("innerHTML",e.convertedData,BS)},encapsulation:2}),i}();function dCt(i,r){1&i&&z(0,"app-loading-spinner")}function hCt(i,r){1&i&&(A(0,"div"),z(1,"img",8),x())}function fCt(i,r){if(1&i&&(A(0,"a",17),te(1),x()),2&i){var t=r.$implicit;k(1),Nt("#",t.number,"")}}var vCt=function(r,t){return{"issue-status":!0,"issue-open":r,"issue-closed":t}};function pCt(i,r){if(1&i&&(z(0,"span",18),te(1)),2&i){var t=r.$implicit;y("ngClass",ln(2,vCt,"open"===t.state,"open"!==t.state)),k(1),Nt(" ",t.title," ")}}function gCt(i,r){if(1&i&&(A(0,"span",20),te(1),x()),2&i){var t=r.$implicit;y("appLabelClass",t.name),k(1),Nt(" ",t.name," ")}}function mCt(i,r){1&i&&T(0,gCt,2,2,"span",19),2&i&&y("ngForOf",r.$implicit.labels)}function _Ct(i,r){if(1&i&&te(0),2&i){var t=r.$implicit;Nt(" ",t.milestone?t.milestone.title:""," ")}}var Cve=function(){return{width:"30px",height:"30px"}};function yCt(i,r){if(1&i&&z(0,"img",22),2&i){var t=D().$implicit;y("src",t.assignee?t.assignee.avatar_url:void 0,uc)("ngStyle",wt(2,Cve))}}function kCt(i,r){if(1&i&&(T(0,yCt,1,3,"img",21),te(1)),2&i){var t=r.$implicit;y("ngIf",t.assignee),k(1),Nt(" ",t.assignee?t.assignee.login:""," ")}}function CCt(i,r){if(1&i&&(A(0,"div",28)(1,"span",29),te(2,"Closed on"),x(),te(3),Wa(4,"date"),x()),2&i){var t=D().$implicit;k(3),Nt(" ",fc(4,1,t.closed_at)," ")}}function bCt(i,r){if(1&i&&(A(0,"div",28)(1,"span",29),te(2,"Assignee"),x(),z(3,"img",22),te(4),x()),2&i){var t=D().$implicit;k(3),y("src",t.assignee?t.assignee.avatar_url:void 0,uc)("ngStyle",wt(3,Cve)),k(1),Nt(" ",t.assignee?t.assignee.login:""," ")}}function SCt(i,r){if(1&i&&(A(0,"span",20),te(1),x()),2&i){var t=r.$implicit;y("appLabelClass",t.name),k(1),Nt(" ",t.name," ")}}var wCt=function(r,t){return{"badge-success":r,"badge-danger":t}};function DCt(i,r){if(1&i&&(A(0,"div",23)(1,"div",24)(2,"span",25),te(3),x(),A(4,"h3",26),te(5),A(6,"span",27),te(7),x()()()(),A(8,"div",23)(9,"div",28)(10,"span",29),te(11,"Created on"),x(),te(12),Wa(13,"date"),x(),T(14,CCt,5,3,"div",30),A(15,"div",28)(16,"span",29),te(17,"Milestone"),x(),te(18),x(),A(19,"div",28)(20,"span",29),te(21,"Author"),x(),te(22),x(),T(23,bCt,5,4,"div",30),x(),A(24,"div",23)(25,"div",28)(26,"h4",31),te(27,"Labels"),x(),T(28,SCt,2,2,"span",19),x(),A(29,"div",32)(30,"h4",31),te(31,"Description"),x(),z(32,"app-markdown",33),x()()),2&i){var t=r.$implicit;k(2),y("ngClass",ln(13,wCt,"open"===t.state,"closed"===t.state)),k(1),at(t.state),k(2),Nt(" ",t.title," "),k(2),Nt("#",t.number,""),k(5),Nt(" ",fc(13,11,t.created_at)," "),k(2),y("ngIf",t.closed_at),k(4),Nt(" ",t.milestone?t.milestone.title:""," "),k(4),Nt(" ",t.user.login," "),k(1),y("ngIf",t.assignee),k(5),y("ngForOf",t.labels),k(4),y("data",t.body)}}function ECt(i,r){if(1&i){var t=Me();A(0,"kendo-grid",9),Q("pageChange",function(a){return re(t),D().onPageChange(a)}),A(1,"kendo-grid-column",10),T(2,fCt,2,1,"ng-template",11),x(),A(3,"kendo-grid-column",12),T(4,pCt,2,5,"ng-template",11),x(),A(5,"kendo-grid-column",13),T(6,mCt,1,1,"ng-template",11),x(),A(7,"kendo-grid-column",14),T(8,_Ct,1,1,"ng-template",11),x(),A(9,"kendo-grid-column",15),T(10,kCt,2,2,"ng-template",11),x(),T(11,DCt,33,16,"ng-template",16),x()}if(2&i){var e=D();y("data",e.view)("pageSize",e.pageSize)("pageable",!0)("skip",e.skip)("scrollable","none")}}var bve,Sve,TCt=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.http=t,this.githubService=e,this.issuesProcessor=n,this.isLoading=!0,this.selectedPeriod=3,this.total=5,this.pageSize=10,this.skip=0,this.today=new Date,this.months=3,this.range=this.dateRange(),e.getGithubIssues({pages:5}).subscribe(function(o){o=o.reduce(function(s,l){return[].concat(Ae(s),Ae(l))},[]).filter(function(s){return!s.pull_request}),a.allIssues=o,a.applyPaging(a.issuesProcessor.filterByMonth(a.allIssues,a.months)),a.isLoading=!1},function(){return a.isLoading=!1})}return v(r,[{key:"get_id",get:function(){return"issues"}},{key:"get_class",get:function(){return"container-fluid"}},{key:"onFilterClick",value:function(e){this.selectedPeriod=e,this.skip=0,this.months=e,this.range=this.dateRange(),this.applyPaging(this.issuesProcessor.filterByMonth(this.allIssues,e))}},{key:"onPageChange",value:function(e){this.skip=e.skip,this.view=this.getView(e.skip,e.take)}},{key:"applyPaging",value:function(e){this.issues=e,this.view=this.getView(this.skip,this.pageSize)}},{key:"getView",value:function(e,n){return{data:this.issues.slice(e,e+n),total:this.issues.length}}},{key:"dateRange",value:function(){return{to:new Date,from:this.issuesProcessor.getMonthsRange(this.months)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(rO),m(Jp),m(hD))},i.\u0275cmp=L({type:i,selectors:[["app-issues"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.get_id),_r(e.get_class))},features:[de([Jp,hD])],decls:19,vars:17,consts:[["id","header",1,"row"],[1,"col-sm"],[1,"h2"],[1,"col-sm","text-sm-right","p-0","p-sm-3"],[3,"disabled","selection"],["kendoRippleContainer","","kendoButton","",3,"disabled","selected","click"],[4,"ngIf"],[3,"data","pageSize","pageable","skip","scrollable","pageChange",4,"ngIf"],["src","../../assets/noConnection.png"],[3,"data","pageSize","pageable","skip","scrollable","pageChange"],["field","number","title","ID","width","80"],["kendoGridCellTemplate",""],["field","title","title","Title"],["field","labels","title","Labels","media","sm"],["field","milestone","title","Milestone","width","200","media","xl"],["field","assignee","title","Assignee","width","200","media","xl"],["kendoGridDetailTemplate",""],["href","dataItem.html_url"],[3,"ngClass"],["class","badge",3,"appLabelClass",4,"ngFor","ngForOf"],[1,"badge",3,"appLabelClass"],["class","img-circle",3,"src","ngStyle",4,"ngIf"],[1,"img-circle",3,"src","ngStyle"],[1,"row","my-4"],[1,"col-sm-12"],[1,"badge",3,"ngClass"],[1,"h1"],[1,"text-muted"],[1,"col-sm-2"],[1,"small","d-block","text-muted"],["class","col-sm-2",4,"ngIf"],[1,"small","text-muted"],[1,"col-sm-8"],[3,"data"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"h4"),te(3,"Issues"),x(),A(4,"p",2),te(5),Wa(6,"date"),Wa(7,"date"),x()(),A(8,"div",3)(9,"kendo-buttongroup",4)(10,"button",5),Q("click",function(){return e.onFilterClick(3)}),te(11,"3 Months"),x(),A(12,"button",5),Q("click",function(){return e.onFilterClick(6)}),te(13,"6 Months"),x(),A(14,"button",5),Q("click",function(){return e.onFilterClick(12)}),te(15,"1 Year"),x()()()(),T(16,dCt,1,0,"app-loading-spinner",6),T(17,hCt,2,0,"div",6),T(18,ECt,12,5,"kendo-grid",7)),2&t&&(k(5),Jl("",fc(6,13,e.range.from)," - ",fc(7,15,e.range.to),""),k(4),y("disabled",e.isLoading)("selection","single"),k(1),y("disabled",e.isLoading)("selected",3===e.selectedPeriod),k(2),y("disabled",e.isLoading)("selected",6===e.selectedPeriod),k(2),y("disabled",e.isLoading)("selected",12===e.selectedPeriod),k(2),y("ngIf",e.isLoading),k(1),y("ngIf",!e.isLoading&&!e.view),k(1),y("ngIf",e.view))},directives:[HW,La,$y,qe,aN,Gl,Pm,Nv,Ft,gn,jkt,Vi,JT,cCt],pipes:[Cw],encapsulation:2}),i}();function ACt(i,r){1&i&&dn(0,0,["*ngIf","!actions"])}function xCt(i,r){if(1&i){var t=Me();A(0,"button",5),Q("click",function(o){var l=re(t).$implicit;return D(2).onButtonClick(l,o)}),te(1),x()}if(2&i){var e=r.$implicit;y("ngClass",D(2).buttonClass(e)),ie("aria-label",e.text),k(1),Nt(" ",e.text," ")}}function MCt(i,r){if(1&i&&(Ge(0),T(1,xCt,2,3,"button",4),Ve()),2&i){var t=D();k(1),y("ngForOf",t.actionsArray)}}function RCt(i,r){}var HU=["*"];function OCt(i,r){if(1&i&&(A(0,"kendo-dialog-titlebar",7),te(1),x()),2&i){var t=D();y("closeTitle",t.closeTitle)("id",t.titleId),k(1),at(t.title)}}function ICt(i,r){1&i&&dn(0,0,["*ngIf","!title"])}function NCt(i,r){1&i&&dn(0,1,["*ngIf","!contentTemplate"])}function FCt(i,r){}function LCt(i,r){1&i&&T(0,FCt,0,0,"ng-template",8),2&i&&y("ngTemplateOutlet",D().contentTemplate)}function PCt(i,r){1&i&&dn(0,2,["*ngIf","!actions"])}function BCt(i,r){if(1&i&&z(0,"kendo-dialog-actions",9),2&i){var t=D();y("actions",t.actions)("layout",t.actionsLayout)}}var GCt=[[["kendo-dialog-titlebar"]],"*",[["kendo-dialog-actions"]]],VCt=["kendo-dialog-titlebar","*","kendo-dialog-actions"],Si=function(r){return null!=r},Ave=function(r){return String(r).trim().split(" ")},nbt=/^(?:a|input|select|textarea|button|object)$/i,ri=function(){return function(i){i[i.esc=27]="esc",i[i.tab=9]="tab",i[i.enter=13]="enter",i[i.space=32]="space",i[i.ctrl=17]="ctrl",i[i.shift=16]="shift",i[i.left=37]="left",i[i.up=38]="up",i[i.right=39]="right",i[i.down=40]="down"}(ri||(ri={})),ri}(),xve="k-dialog-wrapper k-dialog-buttongroup k-dialog-action",e_=function(r,t){var e=Ave(t);return Boolean(Ave(r.className).find(function(n){return e.indexOf(n)>=0}))},abt=function(r){var t=r.getBoundingClientRect();return!(!t.width||!t.height)&&"hidden"!==window.getComputedStyle(r).visibility},Gb=function(r){return dbt(r)?obt(r):KU(r)?sbt(r):Array.isArray(r)?lbt(r):void 0},obt=function(r){var t=[];return Object.keys(r).forEach(function(e){var n=jU(e);r[e]&&n[0]&&t.push.apply(t,Ae(n))}),t},sbt=function(r){var t=[];return jU(r).forEach(function(n){t.push(n)}),t},lbt=function(r){var t=[];return r.forEach(function(e){var n=jU(e);n[0]&&t.push.apply(t,Ae(n))}),t},ubt=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),KU=function(r){return r instanceof String||"string"==typeof r},dbt=function(r){return Si(r)&&!Array.isArray(r)&&"object"==typeof r},t_=function(r){return r+(function(r){return"number"==typeof r&&isFinite(r)}(r)?"px":"")},jU=function(r){return r.trim().replace(/\s+/g," ").split(" ")},Ub=function(){var i=function(){function r(t){p(this,r),this.el=t,this.layout="stretched",this.action=new O,this.buttonGroupClassName=!0}return v(r,[{key:"actions",set:function(e){if(e instanceof $e)this.actionsTemplate=e;else{if(!Array.isArray(e))throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');this.actionsArray=e}}},{key:"className",get:function(){return"stretched"===this.layout}},{key:"onButtonClick",value:function(e,n){this.action.emit(e)}},{key:"buttonClass",value:function(e){var n=["k-button k-button-md k-rounded-md"],a=e.fillMode?e.fillMode:"solid",o=e.themeColor?e.themeColor:"base",s=e.cssClass?Gb(e.cssClass):[];return n.push("k-button-".concat(a," k-button-").concat(a,"-").concat(o)),s.length>0&&(n=n.concat(s)),n.join(" ")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-actions"]],hostVars:6,hostBindings:function(t,e){2&t&&ue("k-dialog-buttongroup",e.buttonGroupClassName)("k-actions",e.buttonGroupClassName)("k-actions-stretched",e.className)},inputs:{actions:"actions",layout:"layout"},outputs:{action:"action"},ngContentSelectors:HU,decls:4,vars:4,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"],["actionTemplate",""],["type","button",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",3,"ngClass","click"]],template:function(t,e){if(1&t&&(kn(),T(0,ACt,1,0,"ng-content",0),T(1,MCt,2,1,"ng-container",1),T(2,RCt,0,0,"ng-template",2,3,$n)),2&t){var n=Yt(3);y("ngIf",!e.actions),k(1),y("ngIf",e.actionsArray)("ngIfElse",n),k(1),y("ngTemplateOutlet",e.actionsTemplate)}},directives:[qe,gn,Ft,En],encapsulation:2}),i}(),WU=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),Ive=new Dt("Dialog LocalizationService"),Nve=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a,o)).dialogLocalization=s,l}return v(e,[{key:"get",value:function(a){return this.dialogLocalization?this.dialogLocalization.get(a):$(q(e.prototype),"get",this).call(this,a)}}]),e}(Y);return i.\u0275fac=function(t){return new(t||i)(oe(Et),oe(rg,8),oe(Td,8),oe(Ive,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),GA=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-dialog-messages-base"]],inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},features:[j]}),i}(),VA=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(GA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDialogLocalizedMessages",""],["","kendoWindowLocalizedMessages",""],["","kendoDialogTitleBarLocalizedMessages",""]],features:[de([{provide:GA,useExisting:ke(function(){return i})}]),j]}),i}(),zb=function(){var i=function(){function r(t,e,n){p(this,r),this.zone=t,this.hostElement=e,this.localizationService=n,this.close=new O}return v(r,[{key:"className",get:function(){return!0}},{key:"closeButtonTitle",get:function(){return this.closeTitle||this.localizationService.get("closeTitle")}},{key:"ngAfterViewInit",value:function(){var e=this;this.zone.onStable.pipe(It(1)).subscribe(function(){e.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",e.id)})}},{key:"onCloseClick",value:function(e){e.preventDefault();var n=new WU;this.close.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(be),m(_e),m(Y,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-titlebar"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-window-titlebar",e.className)("k-dialog-titlebar",e.className)},inputs:{id:"id",closeTitle:"closeTitle"},outputs:{close:"close"},features:[de([Nve,{provide:Y,useExisting:Nve},{provide:Et,useValue:"kendo.dialog"}])],ngContentSelectors:HU,decls:6,vars:2,consts:function(){return[["kendoDialogTitleBarLocalizedMessages","","closeTitle",$localize(bve||(bve=le([":kendo.dialog.closeTitle|The title of the close button:Close"])))],[1,"k-window-title","k-dialog-title"],[1,"k-window-actions","k-dialog-actions"],["role","button",1,"k-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base","k-icon-button","k-window-action","k-dialog-action","k-dialog-close",3,"click"],[1,"k-button-icon","k-icon","k-i-x"]]},template:function(t,e){1&t&&(kn(),Ge(0,0),A(1,"div",1),dn(2),x(),A(3,"div",2)(4,"button",3),Q("click",function(a){return e.onCloseClick(a)}),z(5,"span",4),x()(),Ve()),2&t&&(k(4),ie("title",e.closeButtonTitle)("aria-label",e.closeButtonTitle))},directives:[VA],encapsulation:2}),i}(),Fve={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440923,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},UA=v(function i(){p(this,i)}),$U=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.wrapper=t,this.renderer=e,this.cdr=a,this.ngZone=o,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new O,this.close=new O,this.tabIndex=0,this.subscriptions=[],this.domSubs=new Je,jt(Fve),this.direction=n.rtl?"rtl":"ltr",this.subscriptions.push(n.changes.subscribe(function(l){return s.direction=l.rtl?"rtl":"ltr"})),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}return v(r,[{key:"htmlAttributes",get:function(){return this._htmlAttributes},set:function(e){!function(r,t,e){for(var n in r)n&&t.setAttribute(e,n,r[n])}(e,this.renderer,this.wrapper.nativeElement);var n=this.wrapper.nativeElement,a=n.getAttribute("dir"),o=n.getAttribute("tabindex");this.direction!==a&&a&&(this.direction=a),this.tabIndex!==o&&o&&(this.tabIndex=o),this._htmlAttributes=e}},{key:"cssClass",get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e}},{key:"dir",get:function(){return this.direction}},{key:"ngAfterContentInit",value:function(){var e=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(function(){Si(e.titlebarContent.first)&&(e.titlebarContent.first.id=e.titleId,e.ngZone.onStable.pipe(It(1)).subscribe(function(){e.bubble("close",e.titlebarContent.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))}))}},{key:"ngAfterViewInit",value:function(){var e=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(function(){Si(e.titlebarView.first)&&(e.titlebarView.first.id=e.titleId,e.ngZone.onStable.pipe(It(1)).subscribe(function(){e.bubble("close",e.titlebarView.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))})),this.initDomEvents()}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()}},{key:"focus",value:function(){var e=this.wrapper.nativeElement;Si(e)&&e.focus()}},{key:"initDomEvents",value:function(){var e=this;!this.wrapper||this.ngZone.runOutsideAngular(function(){e.domSubs.add(e.renderer.listen(e.wrapper.nativeElement,"keydown",function(n){e.onKeyDown(n)}))})}},{key:"onKeyDown",value:function(e){var n=this,a=e.target,o=a.parentElement;(e_(a,xve)||e_(o,xve))&&e.keyCode===ri.esc&&this.ngZone.run(function(){n.close.emit(new UA)}),e_(a,"k-button")&&e_(o,"k-dialog-buttongroup")&&(e.keyCode===ri.left||e.keyCode===ri.right)&&this.ngZone.run(function(){n.handleActionButtonFocus(o,e.keyCode)}),e.keyCode===ri.tab&&this.ngZone.run(function(){n.keepFocusWithinComponent(a,e)})}},{key:"setServiceClasses",value:function(e,n){var a=this,o=this.wrapper.nativeElement;e&&Gb(e).forEach(function(s){a.renderer.removeClass(o,s)}),n&&Gb(n).forEach(function(s){a.renderer.addClass(o,s)})}},{key:"handleInitialFocus",value:function(){var e=this.wrapper.nativeElement,n=this.findPrimary(e);if(this.autoFocusedElement){var a=e.querySelector(this.autoFocusedElement);a&&a.focus()}else this.shouldFocusPrimary(n)?n.focus():e.focus()}},{key:"findPrimary",value:function(e){return function(r){for(var t=r.length-1;t>=0;t--)for(var e=r[t].classList,n=0;n0){a[o-1].focus();break}if(n===ri.right&&o1&&void 0!==arguments[1])||arguments[1];if(r.tagName){var e=r.tagName.toLowerCase(),n=r.getAttribute("tabIndex"),a=null!==n&&!isNaN(n)&&n>-1;return(nbt.test(e)?!r.disabled:a)&&(!t||abt(r))}return!1}(e)}},{key:"getAllFocusableChildren",value:function(e){return e.querySelectorAll(ubt)}},{key:"getFirstAndLastFocusable",value:function(e){var n=this.getAllFocusableChildren(e);return[n.length>0?n[0]:e,n.length>0?n[n.length-1]:e]}},{key:"generateTitleId",value:function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()}},{key:"generateContentId",value:function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()}},{key:"wrapperClass",get:function(){return!0}},{key:"styles",get:function(){var e={};return this.width&&(e.width=t_(this.width)),this.height&&(e.height=t_(this.height)),this.minWidth&&(e.minWidth=t_(this.minWidth)),this.maxWidth&&(e.maxWidth=t_(this.maxWidth)),this.minHeight&&(e.minHeight=t_(this.minHeight)),this.maxHeight&&(e.maxHeight=t_(this.maxHeight)),e}},{key:"bubble",value:function(e,n){var a=this;if(n){var s=n[e].subscribe(function(u){return a[e].emit(u)});this.subscriptions.push(s)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(_e),m(Ee),m(Y),m(nt),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog"]],contentQueries:function(t,e,n){var a;1&t&&he(n,zb,4),2&t&&P(a=B())&&(e.titlebarContent=a)},viewQuery:function(t,e){var n;1&t&&(ge(Ub,5),ge(zb,5)),2&t&&(P(n=B())&&(e.actionsView=n.first),P(n=B())&&(e.titlebarView=n))},hostVars:4,hostBindings:function(t,e){2&t&&(ie("dir",e.dir)("tabIndex",e.tabIndex),ue("k-dialog-wrapper",e.wrapperClass))},inputs:{actions:"actions",actionsLayout:"actionsLayout",autoFocusedElement:"autoFocusedElement",title:"title",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",height:"height",minHeight:"minHeight",maxHeight:"maxHeight"},outputs:{action:"action",close:"close"},exportAs:["kendoDialog"],features:[de([Y,{provide:Ive,useExisting:Y},{provide:Et,useValue:"kendo.dialog"}])],ngContentSelectors:VCt,decls:10,vars:10,consts:function(){return[["kendoDialogLocalizedMessages","","closeTitle",$localize(Sve||(Sve=le([":kendo.dialog.closeTitle|The title of the close button:Close"])))],[1,"k-overlay"],["role","dialog","aria-modal","true",1,"k-window","k-dialog",3,"ngStyle"],[3,"closeTitle","id",4,"ngIf"],[4,"ngIf"],[1,"k-content","k-window-content","k-dialog-content",3,"id"],[3,"actions","layout",4,"ngIf"],[3,"closeTitle","id"],[3,"ngTemplateOutlet"],[3,"actions","layout"]]},template:function(t,e){1&t&&(kn(GCt),Ge(0,0),z(1,"div",1),A(2,"div",2),T(3,OCt,2,3,"kendo-dialog-titlebar",3),T(4,ICt,1,0,"ng-content",4),A(5,"div",5),T(6,NCt,1,0,"ng-content",4),T(7,LCt,1,1,null,4),x(),T(8,PCt,1,0,"ng-content",4),T(9,BCt,1,2,"kendo-dialog-actions",6),x(),Ve()),2&t&&(k(1),y("@overlayAppear",void 0),k(1),y("ngStyle",e.styles)("@dialogSlideInAppear",void 0),k(1),y("ngIf",e.title),k(1),y("ngIf",!e.title),k(1),y("id",e.contentId),k(1),y("ngIf",!e.contentTemplate),k(1),y("ngIf",e.contentTemplate),k(1),y("ngIf",!e.actions),k(1),y("ngIf",e.actions))},directives:[zb,Ub,VA,Vi,qe,En],encapsulation:2,data:{animation:[ef("overlayAppear",[Cd("in",Lt({opacity:1})),iu("void => *",[Lt({opacity:.1}),Ai(".3s cubic-bezier(.2, .6, .4, 1)")])]),ef("dialogSlideInAppear",[Cd("in",Lt({transform:"translate(0, 0)"})),iu("void => *",[Lt({transform:"translate(0, -10%)"}),Ai(".3s cubic-bezier(.2, 1, .2, 1)")])])]}}),i}(),Lve=v(function i(){p(this,i)}),vbt=function(){var i=function(){function r(t){p(this,r),this.dialog=t}return v(r,[{key:"ngAfterViewInit",value:function(){var e=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(Ue(function(n){return!n.isDefaultPrevented()})).subscribe(function(){e.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(function(n){return e.dialog.dialog.instance.action.emit(n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Lve))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-content-base"]],viewQuery:function(t,e){var n;1&t&&(ge(zb,5),ge(Ub,5)),2&t&&(P(n=B())&&(e.dialogTitleBar=n.first),P(n=B())&&(e.dialogActions=n.first))},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Pve=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"container",get:function(){return r.container},set:function(e){r.container=e}}]),r}();return i.container=null,i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),gbt=function(){function i(r,t){p(this,i),this.getDialogRef=r,this.parentInjector=t}return v(i,[{key:"get",value:function(t,e){return t===Lve?this.getDialogRef():this.parentInjector.get(t,e)}}]),i}(),mbt=function(){var i=function(){function r(t,e){p(this,r),this.resolver=t,this.containerService=e}return v(r,[{key:"open",value:function(e){var n=this.resolver.resolveComponentFactory($U),a=e.appendTo||this.containerService.container;if(!a)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n ");return this.initializeDialog(e.content,n,a,{close:function(){},content:null,dialog:null,result:null},e)}},{key:"initializeDialog",value:function(e,n,a,o,s){var l=this.contentFrom(e,a,o),u=a.createComponent(n,void 0,void 0,l.nodes);o.dialog=u,u.changeDetectorRef.markForCheck(),this.applyOptions(u.instance,s);var c=new Ot,d=function(E){E instanceof WU&&(E=new UA),c.next(E||new UA),l.componentRef&&l.componentRef.destroy(),u.destroy()},h=xn(c,xn(u.instance.close,u.instance.action).pipe(We(function(w){return w instanceof WU?new UA:w}),Ue(function(w){if(s.preventAction){var E=function(r){return KU(r)||r instanceof $e}(e)?void 0:o;return!s.preventAction(w,E)}return!0}))).pipe(It(1),ax());if(h.subscribe(d),o.close=d,o.result=h,e&&xt()){var f=l.nodes[0]&&l.nodes[0].length>0,g=l.nodes[2]&&l.nodes[2].length>0;e.prototype instanceof vbt?(s.title&&f||s.actions&&g)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(f||g)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")}return o}},{key:"applyOptions",value:function(e,n){e.title=n.title,e.actions=n.actions,e.actionsLayout=n.actionsLayout||"stretched",e.width=n.width,e.minWidth=n.minWidth,e.maxWidth=n.maxWidth,e.height=n.height,e.minHeight=n.minHeight,e.maxHeight=n.maxHeight,e.autoFocusedElement=n.autoFocusedElement,e.closeTitle=n.closeTitle,e.cssClass=n.cssClass,e.htmlAttributes=n.htmlAttributes,n.content instanceof $e&&(e.contentTemplate=n.content)}},{key:"contentFrom",value:function(e,n,a){var o=n.injector.get(Ee),s=[],l=[],u=[],c=null;if("string"==typeof e)s=[o.createText(e)];else if(e&&!(e instanceof $e)){var d=new gbt(function(){return a},n.injector),h=this.resolver.resolveComponentFactory(e);c=n.createComponent(h,void 0,d),l=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),s=[c.location.nativeElement],u=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-actions")),a.content=c}return{componentRef:c,nodes:[l,s,u]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Ts),oe(Pve))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),kbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],bt]}),i}(),Cbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[Pve,mbt],imports:[[kbt]]}),i}();function bbt(i,r){1&i&&z(0,"app-loading-spinner")}function Sbt(i,r){1&i&&(A(0,"div"),z(1,"img",1),x())}function wbt(i,r){if(1&i){var t=Me();A(0,"kendo-dialog",44),Q("close",function(){return re(t),D(2).onProfileDialogClose()}),A(1,"p"),te(2,"Your profile has been successfully updated"),x(),A(3,"kendo-dialog-actions")(4,"button",6),Q("click",function(){return re(t),D(2).onProfileDialogClose()}),te(5,"OK"),x()()()}}function Dbt(i,r){if(1&i){var t=Me();A(0,"kendo-dialog",45),Q("close",function(){return re(t),D(2).onDeleteDialogClose()}),A(1,"p"),te(2,"Account deletetion cannot be undone!"),x(),A(3,"kendo-dialog-actions")(4,"button",46),Q("click",function(){return re(t),D(2).onDeleteDialogClose()}),te(5,"Cancel"),x(),A(6,"button",47),Q("click",function(){return re(t),D(2).onDeleteDialogClose()}),te(7,"Delete Account"),x()()()}}var Ebt=function(){return{"max-width":"100%"}};function Tbt(i,r){if(1&i){var t=Me();A(0,"div")(1,"div",2)(2,"div",3)(3,"h4"),te(4,"Account"),x(),A(5,"p",4),te(6),x()(),A(7,"div",5)(8,"button",6),Q("click",function(){return re(t),D().onSignOutClick()}),te(9,"Sign out"),x()()(),A(10,"div",2)(11,"div",7)(12,"div",8)(13,"h3",9),te(14,"Public Profile"),x(),A(15,"div",10)(16,"div",2)(17,"div",11),z(18,"img",12),x(),A(19,"div",13)(20,"div",14)(21,"kendo-textbox-container",15),z(22,"input",16),x()(),A(23,"div",14)(24,"kendo-textbox-container",17),z(25,"input",18),x()(),A(26,"div",14)(27,"kendo-textbox-container",19),z(28,"input",20),x()(),A(29,"div",21),z(30,"input",22),A(31,"label",23),te(32,"Keep my email address private"),x()(),A(33,"div",14)(34,"kendo-textbox-container",24),z(35,"input",25),x()(),A(36,"div",14)(37,"kendo-textbox-container",26),z(38,"input",27),x()(),A(39,"div",14)(40,"button",28),Q("click",function(){return re(t),D().onUpdateClick()}),te(41,"Update profile"),x()()()()()(),A(42,"div",29)(43,"h3",9),te(44,"Delete Account"),x(),A(45,"div",10)(46,"p"),te(47,"You will immediately lose access to your repositories and all other information associated with your account. "),A(48,"strong"),te(49,"This cannot be undone!"),x()(),A(50,"button",30),Q("click",function(){return re(t),D().onDeleteClick()}),te(51,"Delete Account"),x()()()(),A(52,"div",31)(53,"div",32)(54,"h3",9),te(55,"Notifications"),x(),A(56,"div",10)(57,"h4",33),te(58,"Automatically watch repositories?"),x(),A(59,"p",34),te(60,"When you are given push access to a repository, automatically receive notifications for it."),x(),A(61,"p"),z(62,"kendo-switch"),x(),A(63,"h4",33),te(64,"Receive updates to any conversations via email?"),x(),A(65,"p"),z(66,"kendo-switch",35),x(),A(67,"h4",33),te(68,"Receive updates to any repositories via email?"),x(),A(69,"p"),z(70,"kendo-switch",35),x()()(),A(71,"div",36)(72,"h3",9),te(73,"Update password"),x(),A(74,"div",10)(75,"div",14)(76,"kendo-textbox-container",37),z(77,"input",38),x()(),A(78,"div",14)(79,"kendo-textbox-container",39),z(80,"input",38),x()(),A(81,"div",14)(82,"kendo-textbox-container",40),z(83,"input",38),x()(),A(84,"div",14)(85,"button",41),te(86,"Change password"),x()()()()()(),T(87,wbt,6,0,"kendo-dialog",42),T(88,Dbt,8,0,"kendo-dialog",43),x()}if(2&i){var e=D();k(6),Jl("",e.user.login," - ",e.user.name,""),k(12),y("src",e.user.avatar_url,uc)("ngStyle",wt(13,Ebt)),k(4),y("value",e.user.login),k(3),y("value",e.user.name),k(3),y("value",e.user.email),k(7),y("value",e.user.company),k(3),y("value",e.user.location),k(28),y("checked",!0),k(4),y("checked",!0),k(17),y("ngIf",e.profileDialogVisible),k(1),y("ngIf",e.deleteDialogVisible)}}var Abt=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.githubService=t,this.router=e,this.isLoading=!0,this.user={},this.profileDialogVisible=!1,this.deleteDialogVisible=!1,t.getGithubUser("mbechev").subscribe(function(a){n.user=a,n.isLoading=!1},function(a){n.isLoading=!1})}return v(r,[{key:"get_id",get:function(){return"profile"}},{key:"get_class",get:function(){return"container-fluid"}},{key:"onProfileDialogClose",value:function(){this.profileDialogVisible=!1}},{key:"onSignOutClick",value:function(){this.router.navigate(["/signin"])}},{key:"onUpdateClick",value:function(){this.profileDialogVisible=!0}},{key:"onDeleteClick",value:function(){this.deleteDialogVisible=!0}},{key:"onDeleteDialogClose",value:function(){this.deleteDialogVisible=!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Jp),m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-profile"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.get_id),_r(e.get_class))},features:[de([Jp])],decls:3,vars:3,consts:[[4,"ngIf"],["src","../../assets/noConnection.png",1,"center"],[1,"row"],[1,"col-sm"],[1,"h2"],[1,"col-sm","text-sm-right"],["kendoButton","","kendoRippleContainer","",3,"click"],[1,"col-md-7"],["id","profile",1,"k-card"],[1,"k-card-header"],[1,"k-card-body"],[1,"col-md-3","text-xs-center"],[1,"img-circle","mx-auto","mb-3",3,"src","ngStyle"],[1,"col-md-9"],[1,"form-group"],["floatingLabel","Username",1,"custom-width"],["kendoTextBox","","type","text","id","username",3,"value"],["floatingLabel","Name",1,"custom-width"],["kendoTextBox","","type","text","id","name",3,"value"],["floatingLabel","Email",1,"custom-width"],["kendoTextBox","","type","email","id","email",3,"value"],["kendoRippleContainer","",1,"form-group"],["type","checkbox","id","chkboxonly","checked","",1,"k-checkbox"],["for","chkboxonly",1,"k-checkbox-label"],["floatingLabel","Company",1,"custom-width"],["kendoTextBox","","type","text","id","company",3,"value"],["floatingLabel","Location",1,"custom-width"],["kendoTextBox","","type","text","id","location",3,"value"],["kendoButton","","themeColor","primary","kendoRippleContainer","",3,"click"],["id","delete-account",1,"k-card"],["kendoButton","","themeColor","primary","kendoRippleContainer","",2,"background-color","red",3,"click"],[1,"col-md-5"],["id","notifications",1,"k-card"],[1,"h6"],[1,"text-muted"],[3,"checked"],["id","password",1,"k-card"],["floatingLabel","Old password",1,"custom-width"],["kendoTextBox","","type","password"],["floatingLabel","New password",1,"custom-width"],["floatingLabel","Confirm password",1,"custom-width"],["kendoButton","","themeColor","primary","kendoRippleContainer",""],["title","Thank you",3,"close",4,"ngIf"],["title","Are you sure you want to do this?",3,"close",4,"ngIf"],["title","Thank you",3,"close"],["title","Are you sure you want to do this?",3,"close"],["kendoRippleContainer","","kendoButton","",3,"click"],["kendoRippleContainer","","kendoButton","","themeColor","primary",3,"click"]],template:function(t,e){1&t&&(T(0,bbt,1,0,"app-loading-spinner",0),T(1,Sbt,2,0,"div",0),T(2,Tbt,89,14,"div",0)),2&t&&(y("ngIf",e.isLoading),k(1),y("ngIf",!e.isLoading&&!e.user.id),k(1),y("ngIf",e.user.id&&!e.isLoading))},directives:[qe,aN,La,$y,Vi,TP,b1,vZe,$U,Ub],encapsulation:2}),i}(),xbt=function(){var i=function(){function r(t){p(this,r),this.router=t}return v(r,[{key:"id",get:function(){return"login"}},{key:"appClass",get:function(){return"justify-content-center"}},{key:"onLoginClick",value:function(){this.router.navigate(["/dashboard"])}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-signin"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.id),_r(e.appClass))},decls:21,vars:0,consts:[[1,"signin-form","col-xl-3"],[1,"k-card"],[1,"k-card-block"],[1,"k-form"],["id","app-title",1,"mb-0"],["id","app-subtitle",1,"h4","mb-4"],[1,"k-hr"],[1,"form-group","mt-4"],["text","Email or Username"],[1,"form-group"],["text","Password"],[1,"text-xs-right","small"],["href","#"],[1,"form-group","mb-0","text-right"],["kendoButton","","themeColor","primary","kendoRippleContainer","",3,"click"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1",4),te(5,"Issues"),x(),A(6,"p",5),te(7,"Sample Dashboard"),x(),z(8,"hr",6),A(9,"div",7)(10,"kendo-floatinglabel",8),z(11,"kendo-textbox"),x()(),A(12,"div",9)(13,"kendo-floatinglabel",10),z(14,"kendo-textbox"),x(),A(15,"p",11)(16,"a",12),te(17,"Forgot it?"),x()()(),A(18,"div",13)(19,"button",14),Q("click",function(){return e.onLoginClick()}),te(20,"Log in"),x()()()()()())},directives:[bae,_ie,La,$y],encapsulation:2}),i}(),Mbt=[{path:"",pathMatch:"full",redirectTo:"/dashboard"},{path:"dashboard",component:x7e},{path:"issues",component:TCt},{path:"profile",component:Abt},{path:"signin",component:xbt}],Rbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[$j.forRoot(Mbt,{useHash:!0,relativeLinkResolution:"legacy"})],$j]}),i}();function Obt(i){return new T1e(i,"./assets/i18n/",".json")}Sy.PLATFORM_TARGET=Sy.PLATFORMS.WEB;var Ibt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i,bootstrap:[UAe]}),i.\u0275inj=Fe({providers:[],imports:[[Rbt,k1e.register("ngsw-worker.js",{enabled:true}),dK,e7e,xkt,Cbt,kC,wae,wRe,l2e,ZEe,xK,E1e.forRoot({loader:{provide:by,useFactory:Obt,deps:[xK]}}),ORe]]}),i}();(function SSe(){if(S4)throw new Error("Cannot enable prod mode after platform setup.");b4=!1})(),MDe().bootstrapModule(Ibt).catch(function(i){return console.error(i)})},386:function(Pv,i_,od){var Yu;!function($r,q,jA,$){"use strict";var ho,r_=["","webkit","Moz","MS","ms","o"],v=q.createElement("div"),ps=Math.round,b=Math.abs,Bv=Date.now;function Rh(Z,F,W){return setTimeout(a_(Z,W),F)}function Xe(Z,F,W){return!!Array.isArray(Z)&&(gs(Z,W[F],W),!0)}function gs(Z,F,W){var ce;if(Z)if(Z.forEach)Z.forEach(F,W);else if(Z.length!==$)for(ce=0;ce\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Zt=$r.console&&($r.console.warn||$r.console.log);return Zt&&Zt.call($r.console,ce,Ye),Z.apply(this,arguments)}}ho="function"!=typeof Object.assign?function(F){if(F===$||null===F)throw new TypeError("Cannot convert undefined or null to object");for(var W=Object(F),ce=1;ce-1}function Vv(Z){return Z.trim().split(/\s+/g)}function Ae(Z,F,W){if(Z.indexOf&&!W)return Z.indexOf(F);for(var ce=0;ceda[F]}):ce.sort()),ce}function Tr(Z,F){for(var W,ce,xe=F[0].toUpperCase()+F.slice(1),Ye=0;Ye1&&!W.firstMultiple?W.firstMultiple=An(F):1===xe&&(W.firstMultiple=!1);var Ye=W.firstInput,Zt=W.firstMultiple,Gi=Zt?Zt.center:Ye.center,or=F.center=u_(ce);F.timeStamp=Bv(),F.deltaTime=F.timeStamp-Ye.timeStamp,F.angle=Ot(Gi,or),F.distance=Hv(Gi,or),function ez(Z,F){var W=F.center,ce=Z.offsetDelta||{},xe=Z.prevDelta||{},Ye=Z.prevInput||{};(1===F.eventType||4===Ye.eventType)&&(xe=Z.prevDelta={x:Ye.deltaX||0,y:Ye.deltaY||0},ce=Z.offsetDelta={x:W.x,y:W.y}),F.deltaX=xe.x+(W.x-ce.x),F.deltaY=xe.y+(W.y-ce.y)}(W,F),F.offsetDirection=Yb(F.deltaX,F.deltaY);var da=Zb(F.deltaTime,F.deltaX,F.deltaY);F.overallVelocityX=da.x,F.overallVelocityY=da.y,F.overallVelocity=b(da.x)>b(da.y)?da.x:da.y,F.scale=Zt?function Jb(Z,F){return Hv(F[0],F[1],zv)/Hv(Z[0],Z[1],zv)}(Zt.pointers,ce):1,F.rotation=Zt?function Qb(Z,F){return Ot(F[1],F[0],zv)+Ot(Z[1],Z[0],zv)}(Zt.pointers,ce):0,F.maxPointers=W.prevInput?F.pointers.length>W.prevInput.maxPointers?F.pointers.length:W.prevInput.maxPointers:F.pointers.length,function Xb(Z,F){var xe,Ye,Zt,Gi,W=Z.lastInterval||F,ce=F.timeStamp-W.timeStamp;if(8!=F.eventType&&(ce>25||W.velocity===$)){var or=F.deltaX-W.deltaX,da=F.deltaY-W.deltaY,go=Zb(ce,or,da);Ye=go.x,Zt=go.y,xe=b(go.x)>b(go.y)?go.x:go.y,Gi=Yb(or,da),Z.lastInterval=F}else xe=W.velocity,Ye=W.velocityX,Zt=W.velocityY,Gi=W.direction;F.velocity=xe,F.velocityX=Ye,F.velocityY=Zt,F.direction=Gi}(W,F);var go=Z.element;o_(F.srcEvent.target,go)&&(go=F.srcEvent.target),F.target=go}(Z,W),Z.emit("hammer.input",W),Z.recognize(W),Z.session.prevInput=W}function An(Z){for(var F=[],W=0;W=b(F)?Z<0?2:4:F<0?8:16}function Hv(Z,F,W){W||(W=Gh);var ce=F[W[0]]-Z[W[0]],xe=F[W[1]]-Z[W[1]];return Math.sqrt(ce*ce+xe*xe)}function Ot(Z,F,W){return W||(W=Gh),180*Math.atan2(F[W[1]]-Z[W[1]],F[W[0]]-Z[W[0]])/Math.PI}xa.prototype={handler:function(){},init:function(){this.evEl&&De(this.element,this.evEl,this.domHandler),this.evTarget&&De(this.target,this.evTarget,this.domHandler),this.evWin&&De(Uv(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Ih(this.element,this.evEl,this.domHandler),this.evTarget&&Ih(this.target,this.evTarget,this.domHandler),this.evWin&&Ih(Uv(this.element),this.evWin,this.domHandler)}};var oi={mousedown:1,mousemove:2,mouseup:4},Wn="mousedown",$A="mousemove mouseup";function We(){this.evEl=Wn,this.evWin=$A,this.pressed=!1,xa.apply(this,arguments)}Aa(We,xa,{handler:function(F){var W=oi[F.type];1&W&&0===F.button&&(this.pressed=!0),2&W&&1!==F.which&&(W=4),this.pressed&&(4&W&&(this.pressed=!1),this.callback(this.manager,W,{pointers:[F],changedPointers:[F],pointerType:ld,srcEvent:F}))}});var c_={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},tz={2:sd,3:"pen",4:ld,5:"kinect"},d_="pointerdown",qA="pointermove pointerup pointercancel";function eS(){this.evEl=d_,this.evWin=qA,xa.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}$r.MSPointerEvent&&!$r.PointerEvent&&(d_="MSPointerDown",qA="MSPointerMove MSPointerUp MSPointerCancel"),Aa(eS,xa,{handler:function(F){var W=this.store,ce=!1,xe=F.type.toLowerCase().replace("ms",""),Ye=c_[xe],Zt=tz[F.pointerType]||F.pointerType,Gi=Zt==sd,or=Ae(W,F.pointerId,"pointerId");1&Ye&&(0===F.button||Gi)?or<0&&(W.push(F),or=W.length-1):12&Ye&&(ce=!0),!(or<0)&&(W[or]=F,this.callback(this.manager,Ye,{pointers:W,changedPointers:[F],pointerType:Zt,srcEvent:F}),ce&&W.splice(or,1))}});var nz={touchstart:1,touchmove:2,touchend:4,touchcancel:8},iz="touchstart",XA="touchstart touchmove touchend touchcancel";function ZA(){this.evTarget=iz,this.evWin=XA,this.started=!1,xa.apply(this,arguments)}function tS(Z,F){var W=qr(Z.touches),ce=qr(Z.changedTouches);return 12&F&&(W=jb(W.concat(ce),"identifier",!0)),[W,ce]}Aa(ZA,xa,{handler:function(F){var W=nz[F.type];if(1===W&&(this.started=!0),this.started){var ce=tS.call(this,F,W);12&W&&ce[0].length-ce[1].length==0&&(this.started=!1),this.callback(this.manager,W,{pointers:ce[0],changedPointers:ce[1],pointerType:sd,srcEvent:F})}}});var rz={touchstart:1,touchmove:2,touchend:4,touchcancel:8},nS="touchstart touchmove touchend touchcancel";function Kv(){this.evTarget=nS,this.targetIds={},xa.apply(this,arguments)}function az(Z,F){var W=qr(Z.touches),ce=this.targetIds;if(3&F&&1===W.length)return ce[W[0].identifier]=!0,[W,W];var xe,Ye,Zt=qr(Z.changedTouches),Gi=[],or=this.target;if(Ye=W.filter(function(da){return o_(da.target,or)}),1===F)for(xe=0;xe-1&&ce.splice(Zt,1)},2500)}}function ex(Z){for(var F=Z.srcEvent.clientX,W=Z.srcEvent.clientY,ce=0;ce-1&&this.requireFail.splice(W,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(F){return!!this.simultaneous[F.id]},emit:function(F){var W=this,ce=this.state;function xe(Ye){W.manager.emit(Ye,F)}ce<8&&xe(W.options.event+sS(ce)),xe(W.options.event),F.additionalEvent&&xe(F.additionalEvent),ce>=8&&xe(W.options.event+sS(ce))},tryEmit:function(F){if(this.canEmit())return this.emit(F);this.state=32},canEmit:function(){for(var F=0;FW.threshold&&Ye&W.direction},attrTest:function(F){return Io.prototype.attrTest.call(this,F)&&(2&this.state||!(2&this.state)&&this.directionTest(F))},emit:function(F){this.pX=F.deltaX,this.pY=F.deltaY;var W=lS(F.direction);W&&(F.additionalEvent=this.options.event+W),this._super.emit.call(this,F)}}),Aa(h_,Io,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ud]},attrTest:function(F){return this._super.attrTest.call(this,F)&&(Math.abs(F.scale-1)>this.options.threshold||2&this.state)},emit:function(F){1!==F.scale&&(F.additionalEvent=this.options.event+(F.scale<1?"in":"out")),this._super.emit.call(this,F)}}),Aa(f_,Pi,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(F){var W=this.options,ce=F.pointers.length===W.pointers,xe=F.distanceW.time;if(this._input=F,!xe||!ce||12&F.eventType&&!Ye)this.reset();else if(1&F.eventType)this.reset(),this._timer=Rh(function(){this.state=8,this.tryEmit()},W.time,this);else if(4&F.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(F){8===this.state&&(F&&4&F.eventType?this.manager.emit(this.options.event+"up",F):(this._input.timeStamp=Bv(),this.manager.emit(this.options.event,this._input)))}}),Aa(No,Io,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ud]},attrTest:function(F){return this._super.attrTest.call(this,F)&&(Math.abs(F.rotation)>this.options.threshold||2&this.state)}}),Aa(v_,Io,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Uh.prototype.getTouchAction.call(this)},attrTest:function(F){var ce,W=this.options.direction;return 30&W?ce=F.overallVelocity:6&W?ce=F.overallVelocityX:24&W&&(ce=F.overallVelocityY),this._super.attrTest.call(this,F)&&W&F.offsetDirection&&F.distance>this.options.threshold&&F.maxPointers==this.options.pointers&&b(ce)>this.options.velocity&&4&F.eventType},emit:function(F){var W=lS(F.offsetDirection);W&&this.manager.emit(this.options.event+W,F),this.manager.emit(this.options.event,F)}}),Aa(Bi,Pi,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[rS]},process:function(F){var W=this.options,ce=F.pointers.length===W.pointers,xe=F.distance@charset "UTF-8";:root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:37, 40, 48;--bs-body-bg-rgb:251, 251, 251;--bs-font-sans-serif:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--bs-font-monospace:Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-root-font-size:14px;--bs-body-font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#252830;--bs-body-bg:#fbfbfb}*,*:before,*:after{box-sizing:border-box}:root{font-size:var(--bs-root-font-size)}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}script{display:none!important}body{margin:0;font-family:Open Sans,sans-serif} - + \ No newline at end of file diff --git a/integration-pwa/main.9e8fd7988bd5c90e.js b/integration-pwa/main.4cf37b2e06b1f3e6.js similarity index 99% rename from integration-pwa/main.9e8fd7988bd5c90e.js rename to integration-pwa/main.4cf37b2e06b1f3e6.js index 31ce7c7f..799cea8f 100644 --- a/integration-pwa/main.9e8fd7988bd5c90e.js +++ b/integration-pwa/main.4cf37b2e06b1f3e6.js @@ -1 +1 @@ -(self.webpackChunkintegration_pwa=self.webpackChunkintegration_pwa||[]).push([[179],{869:function(Pv,i_,od){"use strict";var Yu={};od.r(Yu),od.d(Yu,{DEG_TO_RAD:function(){return uN},LRUCache:function(){return O9},MAX_NUM:function(){return hg},MIN_NUM:function(){return fg},TextMetrics:function(){return L9},append:function(){return Yy},arabicToRoman:function(){return LD},bindEvents:function(){return hN},createPromise:function(){return gf},defined:function(){return Vt},definitionId:function(){return PD},deg:function(){return Md},elementOffset:function(){return T9},elementPadding:function(){return x9},elementScale:function(){return R9},elementSize:function(){return Jy},elementStyles:function(){return zD},encodeBase64:function(){return GD},eventCoordinates:function(){return w9},eventElement:function(){return D9},hashKey:function(){return N9},isTransparent:function(){return mf},last:function(){return Zo},limitValue:function(){return VD},measureText:function(){return ek},mergeSort:function(){return UD},normalizeText:function(){return pN},now:function(){return Qy},objectKey:function(){return I9},promiseAll:function(){return E9},rad:function(){return lu},round:function(){return Ci},unbindEvents:function(){return fN},valueOrDefault:function(){return dN}});var $r={};function q(i){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(i)}function zA(i,r){for(;!Object.prototype.hasOwnProperty.call(i,r)&&null!==(i=q(i)););return i}function $(){return $="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(r,t,e){var n=zA(r,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(arguments.length<3?r:e):a.value}},$.apply(this,arguments)}function r_(i,r){for(var t=0;ti.length)&&(r=i.length);for(var t=0,e=new Array(r);t=i.length?{done:!0}:{done:!1,value:i[e++]}},e:function(u){throw u},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){t=t.call(i)},n:function(){var u=t.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&null!=t.return&&t.return()}finally{if(o)throw s}}}}function Aa(i){if(Array.isArray(i))return i}function Gv(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Gt(i,r){return Aa(i)||function a_(i,r){var t=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null!=t){var o,s,e=[],n=!0,a=!1;try{for(t=t.call(i);!(n=(o=t.next()).done)&&(e.push(o.value),!r||e.length!==r);n=!0);}catch(l){a=!0,s=l}finally{try{!n&&null!=t.return&&t.return()}finally{if(a)throw s}}return e}}(i,r)||Oh(i,r)||Gv()}function De(i,r,t){return r in i?Object.defineProperty(i,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[r]=t,i}function Ih(i){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)}function Ae(i){return function Qu(i){if(Array.isArray(i))return ho(i)}(i)||Ih(i)||Oh(i)||function Vv(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qr(i,r,t){return(qr=Bv()?Reflect.construct:function(n,a,o){var s=[null];s.push.apply(s,a);var u=new(Function.bind.apply(n,s));return o&&ps(u,o.prototype),u}).apply(null,arguments)}function Er(i){var r="function"==typeof Map?new Map:void 0;return Er=function(e){if(null===e||!function Hb(i){return-1!==Function.toString.call(i).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return qr(e,arguments,q(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ps(n,e)},Er(i)}function wn(i){return"function"==typeof i}function s_(i){var t=i(function(n){Error.call(n),n.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}od.r($r),od.d($r,{easeOutElastic:function(){return KLe},linear:function(){return HLe},swing:function(){return zLe}});var Uv=s_(function(i){return function(t){i(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(e,n){return"".concat(n+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t}});function Nh(i,r){if(i){var t=i.indexOf(r);0<=t&&i.splice(t,1)}}var i,Je=function(){function i(r){p(this,i),this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return v(i,[{key:"unsubscribe",value:function(){var t;if(!this.closed){this.closed=!0;var e=this._parentage;if(e)if(this._parentage=null,Array.isArray(e)){var a,n=In(e);try{for(n.s();!(a=n.n()).done;)a.value.remove(this)}catch(h){n.e(h)}finally{n.f()}}else e.remove(this);var s=this.initialTeardown;if(wn(s))try{s()}catch(h){t=h instanceof Uv?h.errors:[h]}var l=this._finalizers;if(l){this._finalizers=null;var c,u=In(l);try{for(u.s();!(c=u.n()).done;){var d=c.value;try{sd(d)}catch(h){t=null!=t?t:[],h instanceof Uv?t=[].concat(Ae(t),Ae(h.errors)):t.push(h)}}}catch(h){u.e(h)}finally{u.f()}}if(t)throw new Uv(t)}}},{key:"add",value:function(t){var e;if(t&&t!==this)if(this.closed)sd(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}},{key:"_hasParent",value:function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)}},{key:"_addParent",value:function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}},{key:"_removeParent",value:function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Nh(e,t)}},{key:"remove",value:function(t){var e=this._finalizers;e&&Nh(e,t),t instanceof i&&t._removeParent(this)}}]),i}();Je.EMPTY=((i=new Je).closed=!0,i);var Kb=Je.EMPTY;function jb(i){return i instanceof Je||i&&"closed"in i&&wn(i.remove)&&wn(i.add)&&wn(i.unsubscribe)}function sd(i){wn(i)?i():i.unsubscribe()}var ld={setTimeout:function(i){function r(t,e){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(i,r){for(var t=ld.delegate,e=arguments.length,n=new Array(e>2?e-2:0),a=2;a0}},{key:"_trySubscribe",value:function(a){return this._throwIfClosed(),$(q(e.prototype),"_trySubscribe",this).call(this,a)}},{key:"_subscribe",value:function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)}},{key:"_innerSubscribe",value:function(a){var o=this,u=this.observers;return this.hasError||this.isStopped?Kb:(this.currentObservers=null,u.push(a),new Je(function(){o.currentObservers=null,Nh(u,a)}))}},{key:"_checkFinalizedStatuses",value:function(a){var l=this.isStopped;this.hasError?a.error(this.thrownError):l&&a.complete()}},{key:"asObservable",value:function(){var a=new An;return a.source=this,a}}]),e}(An);return i.create=function(r,t){return new Zb(r,t)},i}(),Zb=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).destination=e,a.source=n,a}return v(t,[{key:"next",value:function(n){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.next)||void 0===o||o.call(a,n)}},{key:"error",value:function(n){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.error)||void 0===o||o.call(a,n)}},{key:"complete",value:function(){var n,a;null===(a=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===a||a.call(n)}},{key:"_subscribe",value:function(n){var a,o;return null!==(o=null===(a=this.source)||void 0===a?void 0:a.subscribe(n))&&void 0!==o?o:Kb}}]),t}(Ot);function Yb(i){return wn(null==i?void 0:i.lift)}function oi(i){return function(r){if(Yb(r))return r.lift(function(t){try{return i(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}function Wn(i,r,t,e,n){return new KA(i,r,t,e,n)}var KA=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u,c,d,h;return p(this,t),(h=r.call(this,e)).onFinalize=s,h.shouldUnsubscribe=l,h._next=n?function(f){try{n(f)}catch(g){e.error(g)}}:$((u=Xe(h),q(t.prototype)),"_next",u),h._error=o?function(f){try{o(f)}catch(g){e.error(g)}finally{this.unsubscribe()}}:$((c=Xe(h),q(t.prototype)),"_error",c),h._complete=a?function(){try{a()}catch(f){e.error(f)}finally{this.unsubscribe()}}:$((d=Xe(h),q(t.prototype)),"_complete",d),h}return v(t,[{key:"unsubscribe",value:function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var a=this.closed;$(q(t.prototype),"unsubscribe",this).call(this),!a&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}]),t}(tc);function We(i,r){return oi(function(t,e){var n=0;t.subscribe(Wn(e,function(a){e.next(i.call(r,a,n++))}))})}function Zs(i){return this instanceof Zs?(this.v=i,this):new Zs(i)}function XA(i,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t.apply(i,r||[]),a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(h){e[h]&&(n[h]=function(f){return new Promise(function(g,_){a.push([h,f,g,_])>1||s(h,f)})})}function s(h,f){try{!function l(h){h.value instanceof Zs?Promise.resolve(h.value.v).then(u,c):d(a[0][2],h)}(e[h](f))}catch(g){d(a[0][3],g)}}function u(h){s("next",h)}function c(h){s("throw",h)}function d(h,f){h(f),a.shift(),a.length&&s(a[0][0],a[0][1])}}function YA(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=i[Symbol.asyncIterator];return r?r.call(i):(i=function eS(i){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&i[r],e=0;if(t)return t.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&e>=i.length&&(i=void 0),{value:i&&i[e++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),t={},e("next"),e("throw"),e("return"),t[Symbol.asyncIterator]=function(){return this},t);function e(a){t[a]=i[a]&&function(o){return new Promise(function(s,l){!function n(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}(s,l,(o=i[a](o)).done,o.value)})}}}var ic=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r};function Vh(i){return wn(null==i?void 0:i.then)}function Wv(i){return wn(i[l_])}function iS(i){return Symbol.asyncIterator&&wn(null==i?void 0:i[Symbol.asyncIterator])}function rS(i){return new TypeError("You provided ".concat(null!==i&&"object"==typeof i?"an invalid object":"'".concat(i,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var Ua=function $v(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function rc(i){return wn(null==i?void 0:i[Ua])}function _s(){_s=function(){return i};var i={},r=Object.prototype,t=r.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",a=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function s(G,I,K){return Object.defineProperty(G,I,{value:K,enumerable:!0,configurable:!0,writable:!0}),G[I]}try{s({},"")}catch(G){s=function(K,H,se){return K[H]=se}}function l(G,I,K,H){var Ne,Ce,_e,Be,me=Object.create((I&&I.prototype instanceof d?I:d).prototype),ae=new U(H||[]);return me._invoke=(Ne=G,Ce=K,_e=ae,Be="suspendedStart",function(je,kt){if("executing"===Be)throw new Error("Generator is already running");if("completed"===Be){if("throw"===je)throw kt;return{value:void 0,done:!0}}for(_e.method=je,_e.arg=kt;;){var Xt=_e.delegate;if(Xt){var zn=R(Xt,_e);if(zn){if(zn===c)continue;return zn}}if("next"===_e.method)_e.sent=_e._sent=_e.arg;else if("throw"===_e.method){if("suspendedStart"===Be)throw Be="completed",_e.arg;_e.dispatchException(_e.arg)}else"return"===_e.method&&_e.abrupt("return",_e.arg);Be="executing";var On=u(Ne,Ce,_e);if("normal"===On.type){if(Be=_e.done?"completed":"suspendedYield",On.arg===c)continue;return{value:On.arg,done:_e.done}}"throw"===On.type&&(Be="completed",_e.method="throw",_e.arg=On.arg)}}),me}function u(G,I,K){try{return{type:"normal",arg:G.call(I,K)}}catch(H){return{type:"throw",arg:H}}}i.wrap=l;var c={};function d(){}function h(){}function f(){}var g={};s(g,n,function(){return this});var _=Object.getPrototypeOf,C=_&&_(_(ee([])));C&&C!==r&&t.call(C,n)&&(g=C);var w=f.prototype=d.prototype=Object.create(g);function E(G){["next","throw","return"].forEach(function(I){s(G,I,function(K){return this._invoke(I,K)})})}function M(G,I){function K(se,me,ae,Ne){var Ce=u(G[se],G,me);if("throw"!==Ce.type){var _e=Ce.arg,Be=_e.value;return Be&&"object"==typeof Be&&t.call(Be,"__await")?I.resolve(Be.__await).then(function(je){K("next",je,ae,Ne)},function(je){K("throw",je,ae,Ne)}):I.resolve(Be).then(function(je){_e.value=je,ae(_e)},function(je){return K("throw",je,ae,Ne)})}Ne(Ce.arg)}var H;this._invoke=function(se,me){function ae(){return new I(function(Ne,Ce){K(se,me,Ne,Ce)})}return H=H?H.then(ae,ae):ae()}}function R(G,I){var K=G.iterator[I.method];if(void 0===K){if(I.delegate=null,"throw"===I.method){if(G.iterator.return&&(I.method="return",I.arg=void 0,R(G,I),"throw"===I.method))return c;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var H=u(K,G.iterator,I.arg);if("throw"===H.type)return I.method="throw",I.arg=H.arg,I.delegate=null,c;var se=H.arg;return se?se.done?(I[G.resultName]=se.value,I.next=G.nextLoc,"return"!==I.method&&(I.method="next",I.arg=void 0),I.delegate=null,c):se:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,c)}function N(G){var I={tryLoc:G[0]};1 in G&&(I.catchLoc=G[1]),2 in G&&(I.finallyLoc=G[2],I.afterLoc=G[3]),this.tryEntries.push(I)}function V(G){var I=G.completion||{};I.type="normal",delete I.arg,G.completion=I}function U(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(N,this),this.reset(!0)}function ee(G){if(G){var I=G[n];if(I)return I.call(G);if("function"==typeof G.next)return G;if(!isNaN(G.length)){var K=-1,H=function se(){for(;++K=0;--se){var me=this.tryEntries[se],ae=me.completion;if("root"===me.tryLoc)return H("end");if(me.tryLoc<=this.prev){var Ne=t.call(me,"catchLoc"),Ce=t.call(me,"finallyLoc");if(Ne&&Ce){if(this.prev=0;--H){var se=this.tryEntries[H];if(se.tryLoc<=this.prev&&t.call(se,"finallyLoc")&&this.prev=0;--K){var H=this.tryEntries[K];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),V(H),c}},catch:function(I){for(var K=this.tryEntries.length-1;K>=0;--K){var H=this.tryEntries[K];if(H.tryLoc===I){var se=H.completion;if("throw"===se.type){var me=se.arg;V(H)}return me}}throw new Error("illegal catch attempt")},delegateYield:function(I,K,H){return this.delegate={iterator:ee(I),resultName:K,nextLoc:H},"next"===this.method&&(this.arg=void 0),c}},i}function ys(i){return XA(this,arguments,_s().mark(function r(){var t,e,n;return _s().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=i.getReader(),s.prev=1;case 2:return s.next=5,Zs(t.read());case 5:if(n=(e=s.sent).value,!e.done){s.next=12;break}return s.next=11,Zs(void 0);case 11:return s.abrupt("return",s.sent);case 12:return s.next=14,Zs(n);case 14:return s.next=16,s.sent;case 16:s.next=2;break;case 18:return s.prev=18,t.releaseLock(),s.finish(18);case 21:case"end":return s.stop()}},r,null,[[1,,18,21]])}))}function cd(i){return wn(null==i?void 0:i.getReader)}function vo(){vo=function(){return i};var i={},r=Object.prototype,t=r.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",a=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function s(G,I,K){return Object.defineProperty(G,I,{value:K,enumerable:!0,configurable:!0,writable:!0}),G[I]}try{s({},"")}catch(G){s=function(K,H,se){return K[H]=se}}function l(G,I,K,H){var Ne,Ce,_e,Be,me=Object.create((I&&I.prototype instanceof d?I:d).prototype),ae=new U(H||[]);return me._invoke=(Ne=G,Ce=K,_e=ae,Be="suspendedStart",function(je,kt){if("executing"===Be)throw new Error("Generator is already running");if("completed"===Be){if("throw"===je)throw kt;return{value:void 0,done:!0}}for(_e.method=je,_e.arg=kt;;){var Xt=_e.delegate;if(Xt){var zn=R(Xt,_e);if(zn){if(zn===c)continue;return zn}}if("next"===_e.method)_e.sent=_e._sent=_e.arg;else if("throw"===_e.method){if("suspendedStart"===Be)throw Be="completed",_e.arg;_e.dispatchException(_e.arg)}else"return"===_e.method&&_e.abrupt("return",_e.arg);Be="executing";var On=u(Ne,Ce,_e);if("normal"===On.type){if(Be=_e.done?"completed":"suspendedYield",On.arg===c)continue;return{value:On.arg,done:_e.done}}"throw"===On.type&&(Be="completed",_e.method="throw",_e.arg=On.arg)}}),me}function u(G,I,K){try{return{type:"normal",arg:G.call(I,K)}}catch(H){return{type:"throw",arg:H}}}i.wrap=l;var c={};function d(){}function h(){}function f(){}var g={};s(g,n,function(){return this});var _=Object.getPrototypeOf,C=_&&_(_(ee([])));C&&C!==r&&t.call(C,n)&&(g=C);var w=f.prototype=d.prototype=Object.create(g);function E(G){["next","throw","return"].forEach(function(I){s(G,I,function(K){return this._invoke(I,K)})})}function M(G,I){function K(se,me,ae,Ne){var Ce=u(G[se],G,me);if("throw"!==Ce.type){var _e=Ce.arg,Be=_e.value;return Be&&"object"==typeof Be&&t.call(Be,"__await")?I.resolve(Be.__await).then(function(je){K("next",je,ae,Ne)},function(je){K("throw",je,ae,Ne)}):I.resolve(Be).then(function(je){_e.value=je,ae(_e)},function(je){return K("throw",je,ae,Ne)})}Ne(Ce.arg)}var H;this._invoke=function(se,me){function ae(){return new I(function(Ne,Ce){K(se,me,Ne,Ce)})}return H=H?H.then(ae,ae):ae()}}function R(G,I){var K=G.iterator[I.method];if(void 0===K){if(I.delegate=null,"throw"===I.method){if(G.iterator.return&&(I.method="return",I.arg=void 0,R(G,I),"throw"===I.method))return c;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var H=u(K,G.iterator,I.arg);if("throw"===H.type)return I.method="throw",I.arg=H.arg,I.delegate=null,c;var se=H.arg;return se?se.done?(I[G.resultName]=se.value,I.next=G.nextLoc,"return"!==I.method&&(I.method="next",I.arg=void 0),I.delegate=null,c):se:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,c)}function N(G){var I={tryLoc:G[0]};1 in G&&(I.catchLoc=G[1]),2 in G&&(I.finallyLoc=G[2],I.afterLoc=G[3]),this.tryEntries.push(I)}function V(G){var I=G.completion||{};I.type="normal",delete I.arg,G.completion=I}function U(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(N,this),this.reset(!0)}function ee(G){if(G){var I=G[n];if(I)return I.call(G);if("function"==typeof G.next)return G;if(!isNaN(G.length)){var K=-1,H=function se(){for(;++K=0;--se){var me=this.tryEntries[se],ae=me.completion;if("root"===me.tryLoc)return H("end");if(me.tryLoc<=this.prev){var Ne=t.call(me,"catchLoc"),Ce=t.call(me,"finallyLoc");if(Ne&&Ce){if(this.prev=0;--H){var se=this.tryEntries[H];if(se.tryLoc<=this.prev&&t.call(se,"finallyLoc")&&this.prev=0;--K){var H=this.tryEntries[K];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),V(H),c}},catch:function(I){for(var K=this.tryEntries.length-1;K>=0;--K){var H=this.tryEntries[K];if(H.tryLoc===I){var se=H.completion;if("throw"===se.type){var me=se.arg;V(H)}return me}}throw new Error("illegal catch attempt")},delegateYield:function(I,K,H){return this.delegate={iterator:ee(I),resultName:K,nextLoc:H},"next"===this.method&&(this.arg=void 0),c}},i}function Pi(i){if(i instanceof An)return i;if(null!=i){if(Wv(i))return function aS(i){return new An(function(r){var t=i[l_]();if(wn(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(ic(i))return function oS(i){return new An(function(r){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=r.schedule(function(){t(),n?i.add(this.schedule(null,e)):this.unsubscribe()},e);if(i.add(a),!n)return a}function v_(i,r,t,e,n,a,o,s){var l=[],u=0,c=0,d=!1,h=function(){d&&!l.length&&!u&&r.complete()},f=function(C){return u2&&void 0!==arguments[2]?arguments[2]:1/0;return wn(r)?Bi(function(e,n){return We(function(a,o){return r(e,a,n,o)})(Pi(i(e,n)))},t):("number"==typeof r&&(t=r),oi(function(e,n){return v_(e,n,i,t)}))}function Fo(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return Bi(zl,i)}var po=new An(function(i){return i.complete()});function g_(i){return i&&wn(i.schedule)}function m_(i){return i[i.length-1]}function __(i){return wn(m_(i))?i.pop():void 0}function Z(i){return g_(m_(i))?i.pop():void 0}function F(i,r){return"number"==typeof m_(i)?i.pop():r}function W(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return oi(function(t,e){t.subscribe(Wn(e,function(n){return No(e,i,function(){return e.next(n)},r)},function(){return No(e,i,function(){return e.complete()},r)},function(n){return No(e,i,function(){return e.error(n)},r)}))})}function ce(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return oi(function(t,e){e.add(i.schedule(function(){return t.subscribe(e)},r))})}function or(i,r){if(!i)throw new Error("Iterable cannot be null");return new An(function(t){No(t,r,function(){var e=i[Symbol.asyncIterator]();No(t,r,function(){e.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function wi(i,r){return r?function go(i,r){if(null!=i){if(Wv(i))return function Me(i,r){return Pi(i).pipe(ce(r),W(r))}(i,r);if(ic(i))return function Zt(i,r){return new An(function(t){var e=0;return r.schedule(function(){e===i.length?t.complete():(t.next(i[e++]),t.closed||this.schedule())})})}(i,r);if(Vh(i))return function Ye(i,r){return Pi(i).pipe(ce(r),W(r))}(i,r);if(iS(i))return or(i,r);if(rc(i))return function Gi(i,r){return new An(function(t){var e;return No(t,r,function(){e=i[Ua](),No(t,r,function(){var n,a;try{var o=e.next();n=o.value,a=o.done}catch(s){return void t.error(s)}a?t.complete():t.next(n)},0,!0)}),function(){return wn(null==e?void 0:e.return)&&e.return()}})}(i,r);if(cd(i))return function da(i,r){return or(ys(i),r)}(i,r)}throw rS(i)}(i,r):Pi(i)}function xn(){for(var i=arguments.length,r=new Array(i),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},r=i.connector,t=void 0===r?function(){return new Ot}:r,e=i.resetOnError,n=void 0===e||e,a=i.resetOnComplete,o=void 0===a||a,s=i.resetOnRefCountZero,l=void 0===s||s;return function(u){var c=null,d=null,h=null,f=0,g=!1,_=!1,C=function(){null==d||d.unsubscribe(),d=null},w=function(){C(),c=h=null,g=_=!1},E=function(){var R=c;w(),null==R||R.unsubscribe()};return oi(function(M,R){f++,!_&&!g&&C();var N=h=null!=h?h:t();R.add(function(){0==--f&&!_&&!g&&(d=ix(E,l))}),N.subscribe(R),c||(c=new Bh({next:function(U){return N.next(U)},error:function(U){_=!0,C(),d=ix(w,n,U),N.error(U)},complete:function(){g=!0,C(),d=ix(w,o),N.complete()}}),wi(M).subscribe(c))})(u)}}function ix(i,r){if(!0===r)return i(),null;if(!1===r)return null;for(var t=arguments.length,e=new Array(t>2?t-2:0),n=2;n ".concat(t," ").concat(e," ").concat(r," <=Actual]")))}(r,i,null,"!=")}function pe(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function Fe(i){return{providers:i.providers||[],imports:i.imports||[]}}function sx(i){return iz(i,lS)||iz(i,az)}function iz(i,r){return i.hasOwnProperty(r)?i[r]:null}function rz(i){return i&&(i.hasOwnProperty(lx)||i.hasOwnProperty(wpe))?i[lx]:null}var ux,lS=mi({"\u0275prov":mi}),lx=mi({"\u0275inj":mi}),az=mi({ngInjectableDef:mi}),wpe=mi({ngInjectorDef:mi}),tn=function(){return(tn=tn||{})[tn.Default=0]="Default",tn[tn.Host=1]="Host",tn[tn.Self=2]="Self",tn[tn.SkipSelf=4]="SkipSelf",tn[tn.Optional=8]="Optional",tn}();function Dpe(){return ux}function dd(i){var r=ux;return ux=i,r}function oz(i,r,t){var e=sx(i);return e&&"root"==e.providedIn?void 0===e.value?e.value=e.factory():e.value:t&tn.Optional?null:void 0!==r?r:void sS(si(i),"Injector")}function hd(i){return{toString:i}.toString()}var Ys=function(){return(Ys=Ys||{})[Ys.OnPush=0]="OnPush",Ys[Ys.Default=1]="Default",Ys}(),Qs=function(){return function(i){i[i.Emulated=0]="Emulated",i[i.None=2]="None",i[i.ShadowDom=3]="ShadowDom"}(Qs||(Qs={})),Qs}(),Epe="undefined"!=typeof globalThis&&globalThis,Tpe="undefined"!=typeof window&&window,Ape="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,xpe="undefined"!=typeof global&&global,hi=Epe||xpe||Tpe||Ape,Xv={},yi=[],uS=mi({"\u0275cmp":mi}),cx=mi({"\u0275dir":mi}),dx=mi({"\u0275pipe":mi}),sz=mi({"\u0275mod":mi}),oc=mi({"\u0275fac":mi}),y_=mi({__NG_ELEMENT_ID__:mi}),Mpe=0;function L(i){return hd(function(){var t={},e={type:i.type,providersResolver:null,decls:i.decls,vars:i.vars,factory:null,template:i.template||null,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:i.exportAs||null,onPush:i.changeDetection===Ys.OnPush,directiveDefs:null,pipeDefs:null,selectors:i.selectors||yi,viewQuery:i.viewQuery||null,features:i.features||null,data:i.data||{},encapsulation:i.encapsulation||Qs.Emulated,id:"c",styles:i.styles||yi,_:null,setInput:null,schemas:i.schemas||null,tView:null},n=i.directives,a=i.features,o=i.pipes;return e.id+=Mpe++,e.inputs=dz(i.inputs,t),e.outputs=dz(i.outputs),a&&a.forEach(function(s){return s(e)}),e.directiveDefs=n?function(){return("function"==typeof n?n():n).map(lz)}:null,e.pipeDefs=o?function(){return("function"==typeof o?o():o).map(uz)}:null,e})}function lz(i){return Ma(i)||function fd(i){return i[cx]||null}(i)}function uz(i){return function zh(i){return i[dx]||null}(i)}var cz={};function Le(i){return hd(function(){var r={type:i.type,bootstrap:i.bootstrap||yi,declarations:i.declarations||yi,imports:i.imports||yi,exports:i.exports||yi,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null};return null!=i.id&&(cz[i.id]=i.type),r})}function dz(i,r){if(null==i)return Xv;var t={};for(var e in i)if(i.hasOwnProperty(e)){var n=i[e],a=n;Array.isArray(n)&&(a=n[1],n=n[0]),t[n]=e,r&&(r[n]=a)}return t}var X=L;function fa(i){return{type:i.type,name:i.name,factory:null,pure:!1!==i.pure,onDestroy:i.type.prototype.ngOnDestroy||null}}function Ma(i){return i[uS]||null}function ks(i,r){var t=i[sz]||null;if(!t&&!0===r)throw new Error("Type ".concat(si(i)," does not have '\u0275mod' property."));return t}function Hl(i){return Array.isArray(i)&&"object"==typeof i[1]}function el(i){return Array.isArray(i)&&!0===i[1]}function vx(i){return 0!=(8&i.flags)}function fS(i){return 2==(2&i.flags)}function vS(i){return 1==(1&i.flags)}function tl(i){return null!==i.template}function Lpe(i){return 0!=(512&i[2])}function Wh(i,r){return i.hasOwnProperty(oc)?i[oc]:null}var fz=function(){function i(r,t,e){p(this,i),this.previousValue=r,this.currentValue=t,this.firstChange=e}return v(i,[{key:"isFirstChange",value:function(){return this.firstChange}}]),i}();function Ie(){return vz}function vz(i){return i.type.prototype.ngOnChanges&&(i.setInput=Vpe),Gpe}function Gpe(){var i=gz(this),r=null==i?void 0:i.current;if(r){var t=i.previous;if(t===Xv)i.previous=r;else for(var e in r)t[e]=r[e];i.current=null,this.ngOnChanges(r)}}function Vpe(i,r,t,e){var n=gz(i)||function Upe(i,r){return i[pz]=r}(i,{previous:Xv,current:null}),a=n.current||(n.current={}),o=n.previous,s=this.declaredInputs[t],l=o[s];a[s]=new fz(l&&l.currentValue,r,o===Xv),i[e]=r}Ie.ngInherit=!0;var pz="__ngSimpleChanges__";function gz(i){return i[pz]||null}var yx=void 0;function kx(){return void 0!==yx?yx:"undefined"!=typeof document?document:void 0}function sr(i){return!!i.listen}var mz={createRenderer:function(r,t){return kx()}};function Tr(i){for(;Array.isArray(i);)i=i[0];return i}function pS(i,r){return Tr(r[i])}function Ss(i,r){return Tr(r[i.index])}function Cx(i,r){return i.data[r]}function ep(i,r){return i[r]}function Go(i,r){var t=r[i];return Hl(t)?t:t[0]}function _z(i){return 4==(4&i[2])}function bx(i){return 128==(128&i[2])}function vd(i,r){return null==r?null:i[r]}function yz(i){i[18]=0}function Sx(i,r){i[5]+=r;for(var t=i,e=i[3];null!==e&&(1===r&&1===t[5]||-1===r&&0===t[5]);)e[5]+=r,t=e,e=e[3]}var an={lFrame:Az(null),bindingsEnabled:!0};function Cz(){return an.bindingsEnabled}function Oe(){return an.lFrame.lView}function Bn(){return an.lFrame.tView}function re(i){return an.lFrame.contextLView=i,i[8]}function Fr(){for(var i=bz();null!==i&&64===i.type;)i=i.parent;return i}function bz(){return an.lFrame.currentTNode}function Kl(i,r){var t=an.lFrame;t.currentTNode=i,t.isParent=r}function wx(){return an.lFrame.isParent}function Dx(){an.lFrame.isParent=!1}function za(){var i=an.lFrame,r=i.bindingRootIndex;return-1===r&&(r=i.bindingRootIndex=i.tView.bindingStartIndex),r}function sc(){return an.lFrame.bindingIndex}function tp(){return an.lFrame.bindingIndex++}function lc(i){var r=an.lFrame,t=r.bindingIndex;return r.bindingIndex=r.bindingIndex+i,t}function rge(i,r){var t=an.lFrame;t.bindingIndex=t.bindingRootIndex=i,Ex(r)}function Ex(i){an.lFrame.currentDirectiveIndex=i}function Tx(i){var r=an.lFrame.currentDirectiveIndex;return-1===r?null:i[r]}function Dz(){return an.lFrame.currentQueryIndex}function Ax(i){an.lFrame.currentQueryIndex=i}function oge(i){var r=i[1];return 2===r.type?r.declTNode:1===r.type?i[6]:null}function Ez(i,r,t){if(t&tn.SkipSelf){for(var e=r,n=i;!(null!==(e=e.parent)||t&tn.Host||null===(e=oge(n))||(n=n[15],10&e.type)););if(null===e)return!1;r=e,i=n}var a=an.lFrame=Tz();return a.currentTNode=r,a.lView=i,!0}function mS(i){var r=Tz(),t=i[1];an.lFrame=r,r.currentTNode=t.firstChild,r.lView=i,r.tView=t,r.contextLView=i,r.bindingIndex=t.bindingStartIndex,r.inI18n=!1}function Tz(){var i=an.lFrame,r=null===i?null:i.child;return null===r?Az(i):r}function Az(i){var r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:i,child:null,inI18n:!1};return null!==i&&(i.child=r),r}function xz(){var i=an.lFrame;return an.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}var Mz=xz;function _S(){var i=xz();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function sge(i){var r=an.lFrame.contextLView=function lge(i,r){for(;i>0;)r=r[15],i--;return r}(i,an.lFrame.contextLView);return r[8]}function Ha(){return an.lFrame.selectedIndex}function pd(i){an.lFrame.selectedIndex=i}function lr(){var i=an.lFrame;return Cx(i.tView,i.selectedIndex)}function yS(i,r){for(var t=r.directiveStart,e=r.directiveEnd;t=e)break}else r[l]<0&&(i[18]+=65536),(s>11>16&&(3&i[2])===r){i[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}var w_=v(function i(r,t,e){p(this,i),this.factory=r,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=e});function bS(i,r,t){for(var e=sr(i),n=0;nr){o=a-1;break}}}for(;a>16}(i),e=r;t>0;)e=e[15],t--;return e}var Ix=!0;function wS(i){var r=Ix;return Ix=i,r}var Cge=0;function E_(i,r){var t=Fx(i,r);if(-1!==t)return t;var e=r[1];e.firstCreatePass&&(i.injectorIndex=r.length,Nx(e.data,i),Nx(r,null),Nx(e.blueprint,null));var n=DS(i,r),a=i.injectorIndex;if(Nz(n))for(var o=np(n),s=ip(n,r),l=s[1].data,u=0;u<8;u++)r[a+u]=s[o+u]|l[o+u];return r[a+8]=n,a}function Nx(i,r){i.push(0,0,0,0,0,0,0,0,r)}function Fx(i,r){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===r[i.injectorIndex+8]?-1:i.injectorIndex}function DS(i,r){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;for(var t=0,e=null,n=r;null!==n;){var a=n[1],o=a.type;if(null===(e=2===o?a.declTNode:1===o?n[6]:null))return-1;if(t++,n=n[15],-1!==e.injectorIndex)return e.injectorIndex|t<<16}return-1}function ES(i,r,t){!function bge(i,r,t){var e;"string"==typeof t?e=t.charCodeAt(0)||0:t.hasOwnProperty(y_)&&(e=t[y_]),null==e&&(e=t[y_]=Cge++);var n=255&e;r.data[i+(n>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:tn.Default,n=arguments.length>4?arguments[4]:void 0;if(null!==i){var a=Ege(t);if("function"==typeof a){if(!Ez(r,i,e))return e&tn.Host?Pz(n,t,e):Bz(r,t,e,n);try{var o=a(e);if(null!=o||e&tn.Optional)return o;sS(t)}finally{Mz()}}else if("number"==typeof a){var s=null,l=Fx(i,r),u=-1,c=e&tn.Host?r[16][6]:null;for((-1===l||e&tn.SkipSelf)&&(-1!==(u=-1===l?DS(i,r):r[l+8])&&zz(e,!1)?(s=r[1],l=np(u),r=ip(u,r)):l=-1);-1!==l;){var d=r[1];if(Uz(a,l,d.data)){var h=Dge(l,r,t,s,e,c);if(h!==Vz)return h}-1!==(u=r[l+8])&&zz(e,r[1].data[l+8]===c)&&Uz(a,l,r)?(s=d,l=np(u),r=ip(u,r)):l=-1}}}return Bz(r,t,e,n)}var Vz={};function wge(){return new rp(Fr(),Oe())}function Dge(i,r,t,e,n,a){var o=r[1],s=o.data[i+8],c=TS(s,o,t,null==e?fS(s)&&Ix:e!=o&&0!=(3&s.type),n&tn.Host&&a===s);return null!==c?T_(r,o,c,s):Vz}function TS(i,r,t,e,n){for(var a=i.providerIndexes,o=r.data,s=1048575&a,l=i.directiveStart,c=a>>20,h=n?s+c:i.directiveEnd,f=e?s:s+c;f=l&&g.type===t)return f}if(n){var _=o[l];if(_&&tl(_)&&_.type===t)return l}return null}function T_(i,r,t,e){var n=i[t],a=r.data;if(function pge(i){return i instanceof w_}(n)){var o=n;o.resolving&&function _pe(i,r){var t=r?". Dependency path: ".concat(r.join(" > ")," > ").concat(i):"";throw new gt(-200,"Circular dependency in DI detected for ".concat(i).concat(t))}(ha(a[t]));var s=wS(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?dd(o.injectImpl):null;Ez(i,e,tn.Default);try{n=i[t]=o.factory(void 0,a,i,e),r.firstCreatePass&&t>=e.directiveStart&&function fge(i,r,t){var e=r.type.prototype,a=e.ngOnInit,o=e.ngDoCheck;if(e.ngOnChanges){var s=vz(r);(t.preOrderHooks||(t.preOrderHooks=[])).push(i,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i,s)}a&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-i,a),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(i,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i,o))}(t,a[t],r)}finally{null!==l&&dd(l),wS(s),o.resolving=!1,Mz()}}return n}function Ege(i){if("string"==typeof i)return i.charCodeAt(0)||0;var r=i.hasOwnProperty(y_)?i[y_]:void 0;return"number"==typeof r?r>=0?255&r:wge:r}function Uz(i,r,t){return!!(t[r+(i>>5)]&1<=i.length?i.push(t):i.splice(r,0,t)}function AS(i,r){return r>=i.length-1?i.pop():i.splice(r,1)[0]}function R_(i,r){for(var t=[],e=0;e=0?i[1|e]=t:function Rge(i,r,t,e){var n=i.length;if(n==r)i.push(t,e);else if(1===n)i.push(e,i[0]),i[0]=t;else{for(n--,i.push(i[n-1],i[n]);n>r;)i[n]=i[n-2],n--;i[r]=t,i[r+1]=e}}(i,e=~e,r,t),e}function Gx(i,r){var t=up(i,r);if(t>=0)return i[1|t]}function up(i,r){return function $z(i,r,t){for(var e=0,n=i.length>>t;n!==e;){var a=e+(n-e>>1),o=i[a<r?n=a:e=a+1}return~(n<1&&void 0!==arguments[1]?arguments[1]:tn.Default;if(void 0===I_){var t="";throw new gt(203,t)}return null===I_?oz(i,void 0,r):I_.get(i,r&tn.Optional?null:void 0,r)}function oe(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn.Default;return(Dpe()||zge)(fn(i),r)}var Hge=oe;function zx(i){for(var r=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.substr(2):i;var n=si(r);if(Array.isArray(r))n=r.map(si).join(" -> ");else if("object"==typeof r){var a=[];for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):si(s)))}n="{".concat(a.join(", "),"}")}return"".concat(t).concat(e?"("+e+")":"","[").concat(n,"]: ").concat(i.replace(Gge,"\n "))}("\n"+i.message,n,t,e),i.ngTokenPath=n,i[MS]=null,i}var IS,NS,RS=N_(lp("Inject",function(i){return{token:i}}),-1),md=N_(lp("Optional"),8),F_=N_(lp("SkipSelf"),4);function dp(i){var r;return(null===(r=function Kx(){if(void 0===IS&&(IS=null,hi.trustedTypes))try{IS=hi.trustedTypes.createPolicy("angular",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(i){}return IS}())||void 0===r?void 0:r.createHTML(i))||i}function n3(i){var r;return(null===(r=function jx(){if(void 0===NS&&(NS=null,hi.trustedTypes))try{NS=hi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(i){}return NS}())||void 0===r?void 0:r.createHTML(i))||i}var $h=function(){function i(r){p(this,i),this.changingThisBreaksApplicationSecurity=r}return v(i,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),i}(),ime=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}($h),rme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}($h),ame=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}($h),ome=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}($h),sme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}($h);function Uo(i){return i instanceof $h?i.changingThisBreaksApplicationSecurity:i}function Wl(i,r){var t=o3(i);if(null!=t&&t!==r){if("ResourceURL"===t&&"URL"===r)return!0;throw new Error("Required a safe ".concat(r,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===r}function o3(i){return i instanceof $h&&i.getTypeName()||null}var fme=function(){function i(r){p(this,i),this.inertDocumentHelper=r}return v(i,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var e=(new window.DOMParser).parseFromString(dp(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(n){return null}}}]),i}(),vme=function(){function i(r){if(p(this,i),this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var e=this.inertDocument.createElement("body");t.appendChild(e)}}return v(i,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=dp(t),e;var n=this.inertDocument.createElement("body");return n.innerHTML=dp(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();Wx.hasOwnProperty(e)&&!u3.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(f3(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return e}}]),i}(),Dme=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Eme=/([^\#-~ |!])/g;function f3(i){return i.replace(/&/g,"&").replace(Dme,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(Eme,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}function v3(i,r){var t=null;try{FS=FS||function s3(i){var r=new vme(i);return function pme(){try{return!!(new window.DOMParser).parseFromString(dp(""),"text/html")}catch(i){return!1}}()?new fme(r):r}(i);var e=r?String(r):"";t=FS.getInertBodyElement(e);var n=5,a=e;do{if(0===n)throw new Error("Failed to sanitize html because the input is unstable");n--,e=a,a=t.innerHTML,t=FS.getInertBodyElement(e)}while(e!==a);return dp((new wme).sanitizeChildren(Xx(t)||t))}finally{if(t)for(var l=Xx(t)||t;l.firstChild;)l.removeChild(l.firstChild)}}function Xx(i){return"content"in i&&function Tme(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var ki=function(){return(ki=ki||{})[ki.NONE=0]="NONE",ki[ki.HTML=1]="HTML",ki[ki.STYLE=2]="STYLE",ki[ki.SCRIPT=3]="SCRIPT",ki[ki.URL=4]="URL",ki[ki.RESOURCE_URL=5]="RESOURCE_URL",ki}();function LS(i){var r=G_();return r?n3(r.sanitize(ki.HTML,i)||""):Wl(i,"HTML")?n3(Uo(i)):v3(kx(),rn(i))}function uc(i){var r=G_();return r?r.sanitize(ki.URL,i)||"":Wl(i,"URL")?Uo(i):P_(rn(i))}function G_(){var i=Oe();return i&&i[12]}var m3="__ngContext__";function Oa(i,r){i[m3]=r}function Yx(i){var r=function V_(i){return i[m3]||null}(i);return r?Array.isArray(r)?r:r.lView:null}function Jx(i){return i.ngOriginalError}function Hme(i){for(var r=arguments.length,t=new Array(r>1?r-1:0),e=1;e|^->||--!>|)/;var Jme=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(hi)}();function b3(i){return i.ownerDocument.defaultView}function ql(i){return i instanceof Function?i():i}var zo=function(){return(zo=zo||{})[zo.Important=1]="Important",zo[zo.DashCase=2]="DashCase",zo}();function tM(i,r){return undefined(i,r)}function z_(i){var r=i[3];return el(r)?r[3]:r}function nM(i){return T3(i[13])}function iM(i){return T3(i[4])}function T3(i){for(;null!==i&&!el(i);)i=i[4];return i}function fp(i,r,t,e,n){if(null!=e){var a,o=!1;el(e)?a=e:Hl(e)&&(o=!0,e=e[0]);var s=Tr(e);0===i&&null!==t?null==n?I3(r,t,s):qh(r,t,s,n||null,!0):1===i&&null!==t?qh(r,t,s,n||null,!0):2===i?V3(r,s,o):3===i&&r.destroyNode(s),null!=a&&function p_e(i,r,t,e,n){var a=t[7];a!==Tr(t)&&fp(r,i,e,a,n);for(var s=10;s0&&(i[t-1][4]=e[4]);var a=AS(i,10+r);!function r_e(i,r){H_(i,r,r[11],2,null,null),r[0]=null,r[6]=null}(e[1],e);var o=a[19];null!==o&&o.detachView(a[1]),e[3]=null,e[4]=null,e[2]&=-129}return e}}function M3(i,r){if(!(256&r[2])){var t=r[11];sr(t)&&t.destroyNode&&H_(i,r,t,3,null,null),function s_e(i){var r=i[13];if(!r)return sM(i[1],i);for(;r;){var t=null;if(Hl(r))t=r[13];else{var e=r[10];e&&(t=e)}if(!t){for(;r&&!r[4]&&r!==i;)Hl(r)&&sM(r[1],r),r=r[3];null===r&&(r=i),Hl(r)&&sM(r[1],r),t=r&&r[4]}r=t}}(r)}}function sM(i,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function d_e(i,r){var t;if(null!=i&&null!=(t=i.destroyHooks))for(var e=0;e=0?e[n=u]():e[n=-u].unsubscribe(),a+=2}else{var c=e[n=t[a+1]];t[a].call(c)}if(null!==e){for(var d=n+1;da?"":n[d+1].toLowerCase();var f=8&e?h:null;if(f&&-1!==H3(f,u,0)||2&e&&u!==h){if(nl(e))return!1;o=!0}}}}else{if(!o&&!nl(e)&&!nl(l))return!1;if(o&&nl(l))continue;o=!1,e=l|1&e}}return nl(e)||o}function nl(i){return 0==(1&i)}function k_e(i,r,t,e){if(null===r)return-1;var n=0;if(e||!t){for(var a=!1;n-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],e=0;e0?'="'+s+'"':"")+"]"}else 8&e?n+="."+o:4&e&&(n+=" "+o);else""!==n&&!nl(o)&&(r+=$3(a,n),n=""),e=o,a=a||!nl(e);t++}return""!==n&&(r+=$3(a,n)),r}var on={};function k(i){q3(Bn(),Oe(),Ha()+i,!1)}function q3(i,r,t,e){if(!e)if(3==(3&r[2])){var a=i.preOrderCheckHooks;null!==a&&kS(r,a,t)}else{var o=i.preOrderHooks;null!==o&&CS(r,o,0,t)}pd(t)}function VS(i,r){return i<<17|r<<2}function il(i){return i>>17&32767}function hM(i){return 2|i}function cc(i){return(131068&i)>>2}function fM(i,r){return-131069&i|r<<2}function vM(i){return 1|i}function aH(i,r){var t=i.contentQueries;if(null!==t)for(var e=0;e20&&q3(i,r,20,!1),t(e,n)}finally{pd(a)}}function sH(i,r,t){if(vx(r))for(var n=r.directiveEnd,a=r.directiveStart;a2&&void 0!==arguments[2]?arguments[2]:Ss,e=r.localNames;if(null!==e)for(var n=r.index+1,a=0;a0;){var t=i[--r];if("number"==typeof t&&t<0)return t}return 0})(s)!=l&&s.push(l),s.push(e,n,o)}}function pH(i,r){null!==i.hostBindings&&i.hostBindings(1,r)}function gH(i,r){r.flags|=2,(i.components||(i.components=[])).push(r.index)}function eye(i,r,t){if(t){if(r.exportAs)for(var e=0;e0&&AM(t)}}function AM(i){for(var r=nM(i);null!==r;r=iM(r))for(var t=10;t0&&AM(e)}var o=i[1].components;if(null!==o)for(var s=0;s0&&AM(l)}}function sye(i,r){var t=Go(r,i),e=t[1];(function lye(i,r){for(var t=r.length;t1&&void 0!==arguments[1]?arguments[1]:O_;if(e===O_){var n=new Error("NullInjectorError: No provider for ".concat(si(t),"!"));throw n.name="NullInjectorError",n}return e}}]),i}(),NM=new wt("Set Injector scope."),W_={},fye={},FM=void 0;function TH(){return void 0===FM&&(FM=new EH),FM}function AH(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e=arguments.length>3?arguments[3]:void 0,n=xH(i,r,t,e);return n._resolveInjectorDefTypes(),n}function xH(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e=arguments.length>3?arguments[3]:void 0;return new vye(i,t,r||TH(),e)}var vye=function(){function i(r,t,e){var n=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p(this,i),this.parent=e,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];t&&jl(t,function(l){return n.processProvider(l,r,t)}),jl([r],function(l){return n.processInjectorType(l,[],o)}),this.records.set(IM,mp(void 0,this));var s=this.records.get(NM);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof r?null:si(r))}return v(i,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O_,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn.Default;this.assertNotDestroyed();var a=Zz(this),o=dd(void 0);try{if(!(n&tn.SkipSelf)){var s=this.records.get(t);if(void 0===s){var l=bye(t)&&sx(t);s=l&&this.injectableDefInScope(l)?mp(LM(t),W_):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}var u=n&tn.Self?TH():this.parent;return u.get(t,e=n&tn.Optional&&e===O_?null:e)}catch(d){if("NullInjectorError"===d.name){var c=d[MS]=d[MS]||[];if(c.unshift(si(t)),a)throw d;return jge(d,t,"R3InjectorError",this.source)}throw d}finally{dd(o),Zz(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(n,a){return t.push(si(a))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new gt(205,!1)}},{key:"processInjectorType",value:function(t,e,n){var a=this;if(!(t=fn(t)))return!1;var o=rz(t),s=null==o&&t.ngModule||void 0,l=void 0===s?t:s,d=-1!==n.indexOf(l);if(void 0!==s&&(o=rz(s)),null==o)return!1;if(null!=o.imports&&!d){var h;n.push(l);try{jl(o.imports,function(E){a.processInjectorType(E,e,n)&&(void 0===h&&(h=[]),h.push(E))})}finally{}if(void 0!==h)for(var f=function(M){var R=h[M],N=R.ngModule,V=R.providers;jl(V,function(U){return a.processProvider(U,N,V||yi)})},g=0;g0)throw R_(r,"?"),new gt(204,!1);var e=function bpe(i){var r=i&&(i[lS]||i[az]);if(r){var t=function Spe(i){if(i.hasOwnProperty("name"))return i.name;var r=(""+i).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(i);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),r}return null}(i);return null!==e?function(){return e.factory(i)}:function(){return new i}}(i);throw new gt(204,!1)}function MH(i,r,t){var e=void 0;if(_p(i)){var n=fn(i);return Wh(n)||LM(n)}if(RH(i))e=function(){return fn(i.useValue)};else if(function _ye(i){return!(!i||!i.useFactory)}(i))e=function(){return i.useFactory.apply(i,Ae(zx(i.deps||[])))};else if(function mye(i){return!(!i||!i.useExisting)}(i))e=function(){return oe(fn(i.useExisting))};else{var a=fn(i&&(i.useClass||i.provide));if(!function kye(i){return!!i.deps}(i))return Wh(a)||LM(a);e=function(){return qr(a,Ae(zx(i.deps)))}}return e}function mp(i,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:i,value:r,multi:t?[]:void 0}}function RH(i){return null!==i&&"object"==typeof i&&Uge in i}function _p(i){return"function"==typeof i}function bye(i){return"function"==typeof i||"object"==typeof i&&i instanceof wt}var Jn=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"create",value:function(e,n){var a;if(Array.isArray(e))return AH({name:""},n,e,"");var o=null!==(a=e.name)&&void 0!==a?a:"";return AH({name:o},e.parent,e.providers,o)}}]),r}();return i.THROW_IF_NOT_FOUND=O_,i.NULL=new EH,i.\u0275prov=pe({token:i,providedIn:"any",factory:function(){return oe(IM)}}),i.__NG_ELEMENT_ID__=-1,i}();function Iye(i,r){yS(Yx(i)[1],Fr())}function j(i){for(var r=function GH(i){return Object.getPrototypeOf(i.prototype).constructor}(i.type),t=!0,e=[i];r;){var n=void 0;if(tl(i))n=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new gt(903,"");n=r.\u0275dir}if(n){if(t){e.push(n);var o=i;o.inputs=BM(i.inputs),o.declaredInputs=BM(i.declaredInputs),o.outputs=BM(i.outputs);var s=n.hostBindings;s&&Pye(i,s);var l=n.viewQuery,u=n.contentQueries;if(l&&Fye(i,l),u&&Lye(i,u),rx(i.inputs,n.inputs),rx(i.declaredInputs,n.declaredInputs),rx(i.outputs,n.outputs),tl(n)&&n.data.animation){var c=i.data;c.animation=(c.animation||[]).concat(n.data.animation)}}var d=n.features;if(d)for(var h=0;h=0;e--){var n=i[e];n.hostVars=r+=n.hostVars,n.hostAttrs=SS(n.hostAttrs,t=SS(t,n.hostAttrs))}}(e)}function BM(i){return i===Xv?{}:i===yi?[]:i}function Fye(i,r){var t=i.viewQuery;i.viewQuery=t?function(e,n){r(e,n),t(e,n)}:r}function Lye(i,r){var t=i.contentQueries;i.contentQueries=t?function(e,n,a){r(e,n,a),t(e,n,a)}:r}function Pye(i,r){var t=i.hostBindings;i.hostBindings=t?function(e,n){r(e,n),t(e,n)}:r}var WS=null;function yp(){if(!WS){var i=hi.Symbol;if(i&&i.iterator)WS=i.iterator;else for(var r=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:tn.Default,t=Oe();if(null===t)return oe(i,r);var e=Fr();return Gz(e,t,fn(i),r)}function Mp(){throw new Error("invalid")}function y(i,r,t){var e=Oe();return Ia(e,tp(),r)&&Ho(Bn(),lr(),e,i,r,e[11],t,!1),y}function HM(i,r,t,e,n){var o=n?"class":"style";DH(i,t,r.inputs[o],o,e)}function A(i,r,t,e){var n=Oe(),a=Bn(),o=20+i,s=n[11],l=n[o]=aM(s,r,function hge(){return an.lFrame.currentNamespace}()),u=a.firstCreatePass?function uke(i,r,t,e,n,a,o){var s=r.consts,u=vp(r,i,2,n,vd(s,a));return EM(r,t,u,vd(s,o)),null!==u.attrs&&jS(u,u.attrs,!1),null!==u.mergedAttrs&&jS(u,u.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,u),u}(o,a,n,0,r,t,e):a.data[o];Kl(u,!0);var c=u.mergedAttrs;null!==c&&bS(s,l,c);var d=u.classes;null!==d&&dM(s,l,d);var h=u.styles;return null!==h&&z3(s,l,h),64!=(64&u.flags)&&BS(a,n,l,u),0===function Ype(){return an.lFrame.elementDepthCount}()&&Oa(l,n),function Qpe(){an.lFrame.elementDepthCount++}(),vS(u)&&(wM(a,n,u),sH(a,u,n)),null!==e&&DM(n,u),A}function x(){var i=Fr();wx()?Dx():Kl(i=i.parent,!1);var r=i;!function Jpe(){an.lFrame.elementDepthCount--}();var t=Bn();return t.firstCreatePass&&(yS(t,i),vx(i)&&t.queries.elementEnd(i)),null!=r.classesWithoutHost&&function mge(i){return 0!=(16&i.flags)}(r)&&HM(t,r,Oe(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function _ge(i){return 0!=(32&i.flags)}(r)&&HM(t,r,Oe(),r.stylesWithoutHost,!1),x}function z(i,r,t,e){return A(i,r,t,e),x(),z}function Ge(i,r,t){var e=Oe(),n=Bn(),a=i+20,o=n.firstCreatePass?function cke(i,r,t,e,n){var a=r.consts,o=vd(a,e),s=vp(r,i,8,"ng-container",o);return null!==o&&jS(s,o,!0),EM(r,t,s,vd(a,n)),null!==r.queries&&r.queries.elementStart(r,s),s}(a,n,e,r,t):n.data[a];Kl(o,!0);var s=e[a]=e[11].createComment("");return BS(n,e,s,o),Oa(s,e),vS(o)&&(wM(n,e,o),sH(n,o,e)),null!=t&&DM(e,o),Ge}function Ve(){var i=Fr(),r=Bn();return wx()?Dx():Kl(i=i.parent,!1),r.firstCreatePass&&(yS(r,i),vx(i)&&r.queries.elementEnd(i)),Ve}function Wt(i,r,t){return Ge(i,r,t),Ve(),Wt}function xe(){return Oe()}function X_(i){return!!i&&"function"==typeof i.then}var KM=function o8(i){return!!i&&"function"==typeof i.subscribe};function Q(i,r,t,e){var n=Oe(),a=Bn(),o=Fr();return function l8(i,r,t,e,n,a,o,s){var l=vS(e),c=i.firstCreatePass&&bH(i),d=r[8],h=CH(r),f=!0;if(3&e.type||s){var g=Ss(e,r),_=s?s(g):g,C=h.length,w=s?function(me){return s(Tr(me[e.index]))}:e.index;if(sr(t)){var E=null;if(!s&&l&&(E=function dke(i,r,t,e){var n=i.cleanup;if(null!=n)for(var a=0;al?s[l]:null}"string"==typeof o&&(a+=2)}return null}(i,r,n,e.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=a,E.__ngLastListenerFn__=a,f=!1;else{a=jM(e,r,d,a,!1);var R=t.listen(_,n,a);h.push(a,R),c&&c.push(n,w,C,C+1)}}else a=jM(e,r,d,a,!0),_.addEventListener(n,a,o),h.push(a),c&&c.push(n,w,C,o)}else a=jM(e,r,d,a,!1);var V,N=e.outputs;if(f&&null!==N&&(V=N[n])){var U=V.length;if(U)for(var ee=0;ee0&&void 0!==arguments[0]?arguments[0]:1;return sge(i)}function hke(i,r){for(var t=null,e=function C_e(i){var r=i.attrs;if(null!=r){var t=r.indexOf(5);if(0==(1&t))return r[t+1]}return null}(i),n=0;n1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,e=Oe(),n=Bn(),a=vp(n,20+i,16,null,t||null);null===a.projection&&(a.projection=r),Dx(),64!=(64&a.flags)&&v_e(n,e,a)}function qS(i,r,t){return WM(i,"",r,"",t),qS}function WM(i,r,t,e,n){var a=Oe(),o=Cp(a,r,t,e);return o!==on&&Ho(Bn(),lr(),a,i,o,a[11],n,!1),WM}function _8(i,r,t,e,n){for(var a=i[t+1],o=null===r,s=e?il(a):cc(a),l=!1;0!==s&&(!1===l||o);){var c=i[s+1];pke(i[s],r)&&(l=!0,i[s+1]=e?vM(c):hM(c)),s=e?il(c):cc(c)}l&&(i[t+1]=e?hM(a):vM(a))}function pke(i,r){return null===i||null==r||(Array.isArray(i)?i[1]:i)===r||!(!Array.isArray(i)||"string"!=typeof r)&&up(i,r)>=0}var Pr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function y8(i){return i.substring(Pr.key,Pr.keyEnd)}function k8(i,r){var t=Pr.textEnd;return t===r?-1:(r=Pr.keyEnd=function yke(i,r,t){for(;r32;)r++;return r}(i,Pr.key=r,t),Rp(i,r,t))}function Rp(i,r,t){for(;r=0;t=k8(r,t))Vo(i,y8(r),!0)}function al(i,r,t,e){var n=Oe(),a=Bn(),o=lc(2);a.firstUpdatePass&&E8(a,i,o,e),r!==on&&Ia(n,o,r)&&A8(a,a.data[Ha()],n,n[11],i,n[o+1]=function xke(i,r){return null==i||("string"==typeof r?i+=r:"object"==typeof i&&(i=si(Uo(i)))),i}(r,t),e,o)}function ol(i,r,t,e){var n=Bn(),a=lc(2);n.firstUpdatePass&&E8(n,null,a,e);var o=Oe();if(t!==on&&Ia(o,a,t)){var s=n.data[Ha()];if(M8(s,e)&&!D8(n,a)){var u=e?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(t=ax(u,t||"")),HM(n,s,o,t,e)}else!function Ake(i,r,t,e,n,a,o,s){n===on&&(n=yi);for(var l=0,u=0,c=0=i.expandoStartIndex}function E8(i,r,t,e){var n=i.data;if(null===n[t+1]){var a=n[Ha()],o=D8(i,t);M8(a,e)&&null===r&&!o&&(r=!1),r=function Ske(i,r,t,e){var n=Tx(i),a=e?r.residualClasses:r.residualStyles;if(null===n)0===(e?r.classBindings:r.styleBindings)&&(t=Z_(t=$M(null,i,r,t,e),r.attrs,e),a=null);else{var s=r.directiveStylingLast;if(-1===s||i[s]!==n)if(t=$M(n,i,r,t,e),null===a){var u=function wke(i,r,t){var e=t?r.classBindings:r.styleBindings;if(0!==cc(e))return i[il(e)]}(i,r,e);void 0!==u&&Array.isArray(u)&&function Dke(i,r,t,e){i[il(t?r.classBindings:r.styleBindings)]=e}(i,r,e,u=Z_(u=$M(null,i,r,u[1],e),r.attrs,e))}else a=function Eke(i,r,t){for(var e=void 0,n=r.directiveEnd,a=1+r.directiveStylingLast;a0)&&(u=!0):c=t,n)if(0!==l){var f=il(i[s+1]);i[e+1]=VS(f,s),0!==f&&(i[f+1]=fM(i[f+1],e)),i[s+1]=function A_e(i,r){return 131071&i|r<<17}(i[s+1],e)}else i[e+1]=VS(s,0),0!==s&&(i[s+1]=fM(i[s+1],e)),s=e;else i[e+1]=VS(l,0),0===s?s=e:i[l+1]=fM(i[l+1],e),l=e;u&&(i[e+1]=hM(i[e+1])),_8(i,c,e,!0),_8(i,c,e,!1),function vke(i,r,t,e,n){var a=n?i.residualClasses:i.residualStyles;null!=a&&"string"==typeof r&&up(a,r)>=0&&(t[e+1]=vM(t[e+1]))}(r,c,i,e,a),o=VS(s,l),a?r.classBindings=o:r.styleBindings=o}(n,a,r,t,o,e)}}function $M(i,r,t,e,n){var a=null,o=t.directiveEnd,s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){var l=i[n],u=Array.isArray(l),c=u?l[1]:l,d=null===c,h=t[n+1];h===on&&(h=d?yi:void 0);var f=d?Gx(h,e):c===e?h:void 0;if(u&&!XS(f)&&(f=Gx(l,e)),XS(f)&&(s=f,o))return s;var g=i[n+1];n=o?il(g):cc(g)}if(null!==r){var _=a?r.residualClasses:r.residualStyles;null!=_&&(s=Gx(_,e))}return s}function XS(i){return void 0!==i}function M8(i,r){return 0!=(i.flags&(r?16:32))}function te(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Oe(),e=Bn(),n=i+20,a=e.firstCreatePass?vp(e,n,1,r,null):e.data[n],o=t[n]=rM(t[11],r);BS(e,t,o,a),Kl(a,!1)}function at(i){return Pt("",i,""),at}function Pt(i,r,t){var e=Oe(),n=Cp(e,i,r,t);return n!==on&&dc(e,Ha(),n),Pt}function Jl(i,r,t,e,n){var a=Oe(),o=function bp(i,r,t,e,n,a){var s=Xh(i,sc(),t,n);return lc(2),s?r+rn(t)+e+rn(n)+a:on}(a,i,r,t,e,n);return o!==on&&dc(a,Ha(),o),Jl}function qM(i,r,t,e,n,a,o,s,l,u,c){var d=Oe(),h=function Dp(i,r,t,e,n,a,o,s,l,u,c,d){var h=sc(),f=Es(i,h,t,n,o,l);return f=Ia(i,h+4,c)||f,lc(5),f?r+rn(t)+e+rn(n)+a+rn(o)+s+rn(l)+u+rn(c)+d:on}(d,i,r,t,e,n,a,o,s,l,u,c);return h!==on&&dc(d,Ha(),h),qM}function XM(i,r,t){var e=Oe();return Ia(e,tp(),r)&&Ho(Bn(),lr(),e,i,r,e[11],t,!0),XM}function ZM(i,r,t){var e=Oe();if(Ia(e,tp(),r)){var a=Bn(),o=lr();Ho(a,o,e,i,r,function SH(i,r,t){return(null===i||tl(i))&&(t=function qpe(i){for(;Array.isArray(i);){if("object"==typeof i[1])return i;i=i[0]}return null}(t[r.index])),t[11]}(Tx(a.data),o,e),t,!0)}return ZM}var Zh=void 0,qke=["en",[["a","p"],["AM","PM"],Zh],[["AM","PM"],Zh,Zh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Zh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Zh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Zh,"{1} 'at' {0}",Zh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function $ke(i){var t=Math.floor(Math.abs(i)),e=i.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===e?1:5}],Op={};function Ka(i){var r=function Xke(i){return i.toLowerCase().replace(/_/g,"-")}(i),t=$8(r);if(t)return t;var e=r.split("-")[0];if(t=$8(e))return t;if("en"===e)return qke;throw new Error('Missing locale data for the locale "'.concat(i,'".'))}function $8(i){return i in Op||(Op[i]=hi.ng&&hi.ng.common&&hi.ng.common.locales&&hi.ng.common.locales[i]),Op[i]}var st=function(){return(st=st||{})[st.LocaleId=0]="LocaleId",st[st.DayPeriodsFormat=1]="DayPeriodsFormat",st[st.DayPeriodsStandalone=2]="DayPeriodsStandalone",st[st.DaysFormat=3]="DaysFormat",st[st.DaysStandalone=4]="DaysStandalone",st[st.MonthsFormat=5]="MonthsFormat",st[st.MonthsStandalone=6]="MonthsStandalone",st[st.Eras=7]="Eras",st[st.FirstDayOfWeek=8]="FirstDayOfWeek",st[st.WeekendRange=9]="WeekendRange",st[st.DateFormat=10]="DateFormat",st[st.TimeFormat=11]="TimeFormat",st[st.DateTimeFormat=12]="DateTimeFormat",st[st.NumberSymbols=13]="NumberSymbols",st[st.NumberFormats=14]="NumberFormats",st[st.CurrencyCode=15]="CurrencyCode",st[st.CurrencySymbol=16]="CurrencySymbol",st[st.CurrencyName=17]="CurrencyName",st[st.Currencies=18]="Currencies",st[st.Directionality=19]="Directionality",st[st.PluralCase=20]="PluralCase",st[st.ExtraData=21]="ExtraData",st}(),Zke=["zero","one","two","few","many"],ZS="en-US",YS={marker:"element"},QS={marker:"ICU"},q8=ZS;function Q_(i,r){var t=i.data[r];return null===t||"string"==typeof t?null:t.hasOwnProperty("currentCaseLViewIndex")?t:t.value}function JS(i,r){var t=r[i.currentCaseLViewIndex];return null===t?t:t<0?~t:t}function J8(i){return i>>>17}function e5(i){return(131070&i)>>>1}var J_=0,ey=0;function n5(i,r,t,e){for(var o,n=t[11],a=null,s=0;s>>1,t),null,null,E,M,null)}else switch(l){case QS:var R=r[++s],N=r[++s];null===t[N]&&Oa(t[N]=i_e(n,R),t);break;case YS:var U=r[++s],ee=r[++s];null===t[ee]&&Oa(t[ee]=aM(n,U,null),t)}}}function i5(i,r,t,e,n){for(var a=0;a>>2;switch(3&c){case 1:var h=t[++u],f=t[++u],g=i.data[d];"string"==typeof g?TM(r[11],r[d],null,g,h,l,f):Ho(i,g,r,h,l,r[11],f,!1);break;case 0:var _=r[d];null!==_&&A3(r[11],_,l);break;case 2:dCe(i,Q_(i,d),r,l);break;case 3:r5(i,Q_(i,d),e,r)}}}else{var C=t[a+1];if(C>0&&3==(3&C)){var E=Q_(i,C>>>2);r[E.currentCaseLViewIndex]<0&&r5(i,E,e,r)}}a+=s}}function r5(i,r,t,e){var n=e[r.currentCaseLViewIndex];if(null!==n){var a=J_;n<0&&(n=e[r.currentCaseLViewIndex]=~n,a=-1),i5(i,e,r.update[n],t,a)}}function dCe(i,r,t,e){var n=function hCe(i,r){var t=i.cases.indexOf(r);if(-1===t)switch(i.type){case 1:var e=function Yke(i,r){var t=function W8(i){return Ka(i)[st.PluralCase]}(r)(parseInt(i,10)),e=Zke[t];return void 0!==e?e:"other"}(r,function eCe(){return q8}());-1===(t=i.cases.indexOf(e))&&"other"!==e&&(t=i.cases.indexOf("other"));break;case 0:t=i.cases.indexOf("other")}return-1===t?null:t}(r,e);if(JS(r,t)!==n&&(a5(i,r,t),t[r.currentCaseLViewIndex]=null===n?null:~n,null!==n)){var o=t[r.anchorIdx];o&&n5(i,r.create[n],t,o)}}function a5(i,r,t){var e=JS(r,t);if(null!==e)for(var n=r.remove[e],a=0;a0){var s=pS(o,t);null!==s&&V3(t[11],s)}else a5(i,Q_(i,~o),t)}}var ew=/\ufffd(\d+):?\d*\ufffd/gi,vCe=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function Ip(i,r,t,e,n,a){var o=i.length,s=o+1;i.push(null,null);for(var l=o+2,u=r.split(ew),c=0,d=0;d>20;if(_p(i)||!i.multi){var g=new w_(u,n,m),_=nR(l,r,n?d:d+f,h);-1===_?(ES(E_(c,s),o,l),tR(o,i,r.length),r.push(l),c.directiveStart++,c.directiveEnd++,n&&(c.providerIndexes+=1048576),t.push(g),s.push(g)):(t[_]=g,s[_]=g)}else{var C=nR(l,r,d+f,h),w=nR(l,r,d,d+f),M=w>=0&&t[w];if(n&&!M||!n&&!(C>=0&&t[C])){ES(E_(c,s),o,l);var R=function jCe(i,r,t,e,n){var a=new w_(i,t,m);return a.multi=[],a.index=r,a.componentProviders=0,y5(a,n,e&&!t),a}(n?KCe:HCe,t.length,n,e,u);!n&&M&&(t[w].providerFactory=R),tR(o,i,r.length,0),r.push(l),c.directiveStart++,c.directiveEnd++,n&&(c.providerIndexes+=1048576),t.push(R),s.push(R)}else tR(o,i,C>-1?C:w,y5(t[n?w:C],u,!n&&e));!n&&e&&M&&t[w].componentProviders++}}}function tR(i,r,t,e){var n=_p(r),a=function yye(i){return!!i.useClass}(r);if(n||a){var l=(a?fn(r.useClass):r).prototype.ngOnDestroy;if(l){var u=i.destroyHooks||(i.destroyHooks=[]);if(!n&&r.multi){var c=u.indexOf(t);-1===c?u.push(t,[e,l]):u[c+1].push(e,l)}else u.push(t,l)}}}function y5(i,r,t){return t&&i.componentProviders++,i.multi.push(r)-1}function nR(i,r,t,e){for(var n=t;n1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(e,n){return zCe(e,n?n(i):i,r)}}}var WCe=v(function i(){p(this,i)}),k5=v(function i(){p(this,i)}),qCe=function(){function i(){p(this,i)}return v(i,[{key:"resolveComponentFactory",value:function(t){throw function $Ce(i){var r=Error("No component factory found for ".concat(si(i),". Did you add it to @NgModule.entryComponents?"));return r.ngComponent=i,r}(t)}}]),i}(),Ts=function(){var i=v(function r(){p(this,r)});return i.NULL=new qCe,i}();function XCe(){return Np(Fr(),Oe())}function Np(i,r){return new ke(Ss(i,r))}var ke=function(){var i=v(function r(t){p(this,r),this.nativeElement=t});return i.__NG_ELEMENT_ID__=XCe,i}();function ZCe(i){return i instanceof ke?i.nativeElement:i}var ny=v(function i(){p(this,i)}),Ee=function(){var i=v(function r(){p(this,r)});return i.__NG_ELEMENT_ID__=function(){return function QCe(){var i=Oe(),t=Go(Fr().index,i);return function YCe(i){return i[11]}(Hl(t)?t:i)}()},i}(),JCe=function(){var i=v(function r(){p(this,r)});return i.\u0275prov=pe({token:i,providedIn:"root",factory:function(){return null}}),i}(),iy=v(function i(r){p(this,i),this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}),ebe=new iy("13.3.10"),rR={};function tw(i,r,t,e){for(var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var a=r[t.index];if(null!==a&&e.push(Tr(a)),el(a))for(var o=10;o-1&&(oM(t,n),AS(e,n))}this._attachedToViewContainer=!1}M3(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){dH(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){xM(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){!function RM(i,r,t){var e=r[10];e.begin&&e.begin();try{gp(i,r,i.template,t)}catch(n){throw wH(r,n),n}finally{e.end&&e.end()}}(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new gt(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function o_e(i,r){H_(i,r,r[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new gt(902,"");this._appRef=t}}]),i}(),tbe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e))._view=e,n}return v(t,[{key:"detectChanges",value:function(){kH(this._view)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),t}(ry),b5=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).ngModule=e,n}return v(t,[{key:"resolveComponentFactory",value:function(n){var a=Ma(n);return new aR(a,this.ngModule)}}]),t}(Ts);function S5(i){var r=[];for(var t in i)i.hasOwnProperty(t)&&r.push({propName:i[t],templateName:t});return r}var aR=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).componentDef=e,a.ngModule=n,a.componentType=e.type,a.selector=function E_e(i){return i.map(D_e).join(",")}(e.selectors),a.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],a.isBoundToModule=!!n,a}return v(t,[{key:"inputs",get:function(){return S5(this.componentDef.inputs)}},{key:"outputs",get:function(){return S5(this.componentDef.outputs)}},{key:"create",value:function(n,a,o,s){var E,M,l=(s=s||this.ngModule)?function ibe(i,r){return{get:function(e,n,a){var o=i.get(e,rR,a);return o!==rR||n===rR?o:r.get(e,n,a)}}}(n,s.injector):n,u=l.get(ny,mz),c=l.get(JCe,null),d=u.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",f=o?function cH(i,r,t){if(sr(i))return i.selectRootElement(r,t===Qs.ShadowDom);var n="string"==typeof r?i.querySelector(r):r;return n.textContent="",n}(d,o,this.componentDef.encapsulation):aM(u.createRenderer(null,this.componentDef),h,function nbe(i){var r=i.toLowerCase();return"svg"===r?"svg":"math"===r?"math":null}(h)),g=this.componentDef.onPush?576:528,_=function BH(i,r){return{components:[],scheduler:i||Jme,clean:cye,playerHandler:r||null,flags:0}}(),C=HS(0,null,null,1,0,null,null,null,null,null),w=K_(null,C,_,g,null,null,u,d,c,l);mS(w);try{var R=function LH(i,r,t,e,n,a){var o=t[1];t[20]=i;var l=vp(o,20,2,"#host",null),u=l.mergedAttrs=r.hostAttrs;null!==u&&(jS(l,u,!0),null!==i&&(bS(n,i,u),null!==l.classes&&dM(n,i,l.classes),null!==l.styles&&z3(n,i,l.styles)));var c=e.createRenderer(i,r),d=K_(t,lH(r),null,r.onPush?64:16,t[20],l,e,c,a||null,null);return o.firstCreatePass&&(ES(E_(l,t),o,r.type),gH(o,l),mH(l,t.length,1)),KS(t,d),t[20]=d}(f,this.componentDef,w,u,d);if(f)if(o)bS(d,f,["ng-version",ebe.full]);else{var N=function T_e(i){for(var r=[],t=[],e=1,n=2;e0&&dM(d,f,U.join(" "))}if(M=Cx(C,20),void 0!==a)for(var ee=M.projection=[],ve=0;ve1&&void 0!==arguments[1]?arguments[1]:Jn.THROW_IF_NOT_FOUND,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn.Default;return n===Jn||n===hc||n===IM?this:this._r3Injector.get(n,a,o)}},{key:"destroy",value:function(){var n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(function(a){return a()}),this.destroyCbs=null}},{key:"onDestroy",value:function(n){this.destroyCbs.push(n)}}]),t}(hc),oR=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).moduleType=e,null!==ks(e)&&function sbe(i){var r=new Set;!function t(e){var n=ks(e,!0),a=n.id;null!==a&&(function D5(i,r,t){if(r&&r!==t)throw new Error("Duplicate module registered for ".concat(i," - ").concat(si(r)," vs ").concat(si(r.name)))}(a,Fp.get(a),e),Fp.set(a,e));var u,l=In(ql(n.imports));try{for(l.s();!(u=l.n()).done;){var c=u.value;r.has(c)||(r.add(c),t(c))}}catch(d){l.e(d)}finally{l.f()}}(i)}(e),n}return v(t,[{key:"create",value:function(n){return new T5(this.moduleType,n)}}]),t}(w5);function Tt(i,r,t){var e=za()+i,n=Oe();return n[e]===on?Zl(n,e,t?r.call(t):r()):q_(n,e)}function ot(i,r,t,e){return x5(Oe(),za(),i,r,t,e)}function ln(i,r,t,e,n){return M5(Oe(),za(),i,r,t,e,n)}function va(i,r,t,e,n,a){return R5(Oe(),za(),i,r,t,e,n,a)}function eu(i,r,t,e,n,a,o){return function O5(i,r,t,e,n,a,o,s,l){var u=r+t;return Es(i,u,n,a,o,s)?Zl(i,u+4,l?e.call(l,n,a,o,s):e(n,a,o,s)):oy(i,u+4)}(Oe(),za(),i,r,t,e,n,a,o)}function ay(i,r,t,e,n,a,o,s,l){var u=za()+i,c=Oe(),d=Es(c,u,t,e,n,a);return Xh(c,u+4,o,s)||d?Zl(c,u+6,l?r.call(l,t,e,n,a,o,s):r(t,e,n,a,o,s)):q_(c,u+6)}function sR(i,r,t,e,n,a,o,s,l,u){var c=za()+i,d=Oe(),h=Es(d,c,t,e,n,a);return $S(d,c+4,o,s,l)||h?Zl(d,c+7,u?r.call(u,t,e,n,a,o,s,l):r(t,e,n,a,o,s,l)):q_(d,c+7)}function lR(i,r,t,e){return function I5(i,r,t,e,n,a){for(var o=r+t,s=!1,l=0;l=0;t--){var e=r[t];if(i===e.name)return e}}(r,t.pipeRegistry),t.data[n]=e,e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)):e=t.data[n];var a=e.factory||(e.factory=Wh(e.type)),o=dd(m);try{var s=wS(!1),l=a();return wS(s),function jye(i,r,t,e){t>=i.data.length&&(i.data[t]=null,i.blueprint[t]=null),r[t]=e}(t,Oe(),n,l),l}finally{dd(o)}}function fc(i,r,t){var e=i+20,n=Oe(),a=ep(n,e);return sy(n,e)?x5(n,za(),r,a.transform,t,a):a.transform(t)}function nw(i,r,t,e){var n=i+20,a=Oe(),o=ep(a,n);return sy(a,n)?M5(a,za(),r,o.transform,t,e,o):o.transform(t,e)}function iw(i,r,t,e,n){var a=i+20,o=Oe(),s=ep(o,a);return sy(o,a)?R5(o,za(),r,s.transform,t,e,n,s):s.transform(t,e,n)}function sy(i,r){return i[1].data[r].pure}var hbe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p(this,t),(e=r.call(this)).__isAsync=n,e}return v(t,[{key:"emit",value:function(n){$(q(t.prototype),"next",this).call(this,n)}},{key:"subscribe",value:function(n,a,o){var s,l,u,c=n,d=a||function(){return null},h=o;if(n&&"object"==typeof n){var f=n;c=null===(s=f.next)||void 0===s?void 0:s.bind(f),d=null===(l=f.error)||void 0===l?void 0:l.bind(f),h=null===(u=f.complete)||void 0===u?void 0:u.bind(f)}this.__isAsync&&(d=uR(d),c&&(c=uR(c)),h&&(h=uR(h)));var g=$(q(t.prototype),"subscribe",this).call(this,{next:c,error:d,complete:h});return n instanceof Je&&n.add(g),g}}]),t}(Ot);function uR(i){return function(r){setTimeout(i,void 0,r)}}var O=hbe;function fbe(){return this._results[yp()]()}var Ei=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,i),this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=yp(),e=i.prototype;e[t]||(e[t]=fbe)}return v(i,[{key:"changes",get:function(){return this._changes||(this._changes=new O)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){var n=this;n.dirty=!1;var a=ws(t);(this._changesDetected=!function xge(i,r,t){if(i.length!==r.length)return!1;for(var e=0;e0;)this.remove(this.length-1)}},{key:"get",value:function(n){var a=F5(this._lContainer);return null!==a&&a[n]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(n,a,o){var s=n.createEmbeddedView(a||{});return this.insert(s,o),s}},{key:"createComponent",value:function(n,a,o,s,l){var c,u=n&&!function M_(i){return"function"==typeof i}(n);if(u)c=a;else{var d=a||{};c=d.index,o=d.injector,s=d.projectableNodes,l=d.ngModuleRef}var h=u?n:new aR(Ma(n)),f=o||this.parentInjector;if(!l&&null==h.ngModule){var _=(u?f:this.parentInjector).get(hc,null);_&&(l=_)}var C=h.create(f,s,void 0,l);return this.insert(C.hostView,c),C}},{key:"insert",value:function(n,a){var o=n._lView,s=o[1];if(function Zpe(i){return el(i[3])}(o)){var l=this.indexOf(n);if(-1!==l)this.detach(l);else{var u=o[3],c=new N5(u,u[6],u[3]);c.detach(c.indexOf(n))}}var d=this._adjustIndex(a),h=this._lContainer;!function l_e(i,r,t,e){var n=10+e,a=t.length;e>0&&(t[n-1][4]=r),e1&&void 0!==arguments[1]?arguments[1]:0;return null==n?this.length+a:n}}]),t}(ei);function F5(i){return i[8]}function cR(i){return i[8]||(i[8]=[])}function L5(i,r){var t,e=r[i.index];if(el(e))t=e;else{var n;if(8&i.type)n=Tr(e);else{var a=r[11];n=a.createComment("");var o=Ss(i,r);qh(a,PS(a,o),n,function f_e(i,r){return sr(i)?i.nextSibling(r):r.nextSibling}(a,o),!1)}r[i.index]=t=yH(e,r,n,i),KS(r,t)}return new N5(t,i,r)}var Cbe=function(){function i(r){p(this,i),this.queryList=r,this.matches=null}return v(i,[{key:"clone",value:function(){return new i(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),i}(),bbe=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,i),this.queries=r}return v(i,[{key:"createEmbeddedView",value:function(t){var e=t.queries;if(null!==e){for(var n=null!==t.contentQueries?t.contentQueries[0]:e.length,a=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;p(this,i),this.predicate=r,this.flags=t,this.read=e}),Sbe=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,i),this.queries=r}return v(i,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;p(this,i),this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return v(i,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new i(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var a=0;a0)e.push(o[s/2]);else{for(var u=a[s+1],c=r[-l],d=10;d0&&(s=setTimeout(function(){o._callbacks=o._callbacks.filter(function(l){return l.timeoutId!==s}),e(o._didWork,o.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:a})}},{key:"whenStable",value:function(e,n,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,a),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,n,a){return[]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rSe=function(){var i=function(){function r(){p(this,r),this._applications=new Map,SR.addToWindow(this)}return v(r,[{key:"registerApplication",value:function(e,n){this._applications.set(e,n)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return SR.findTestabilityInTree(this,e,n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}(),aSe=function(){function i(){p(this,i)}return v(i,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),i}(),SR=new aSe,Yh=null,c4=new wt("AllowMultipleToken"),d4=new wt("PlatformOnDestroy");function sSe(i,r,t){var e=new oR(t);return Promise.resolve(e)}var h4=v(function i(r,t){p(this,i),this.name=r,this.token=t});function uSe(i){if(Yh&&!Yh.get(c4,!1))throw new gt(400,"");Yh=i;var t=i.get(v4),e=i.get(a4,null);return e&&e.forEach(function(n){return n()}),t}function f4(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],e="Platform: ".concat(r),n=new wt(e);return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=wR();if(!o||o.injector.get(c4,!1)){var s=[].concat(Ae(t),Ae(a),[{provide:n,useValue:!0}]);i?i(s):uSe(dSe(s,e))}return cSe()}}function cSe(i){var r=wR();if(!r)throw new gt(401,"");return r}function dSe(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return Jn.create({name:r,providers:[{provide:NM,useValue:"platform"},{provide:d4,useValue:function(){return Yh=null}}].concat(Ae(i))})}function wR(){var i;return null!==(i=null==Yh?void 0:Yh.get(v4))&&void 0!==i?i:null}var v4=function(){var i=function(){function r(t){p(this,r),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return v(r,[{key:"bootstrapModuleFactory",value:function(e,n){var a=this,u=function hSe(i,r){return"noop"===i?new iSe:("zone.js"===i?void 0:i)||new be({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})}(n?n.ngZone:void 0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),c=[{provide:be,useValue:u}];return u.run(function(){var d=Jn.create({providers:c,parent:a.injector,name:e.moduleType.name}),h=e.create(d),f=h.injector.get(U_,null);if(!f)throw new gt(402,"");return u.runOutsideAngular(function(){var _=u.onError.subscribe({next:function(w){f.handleError(w)}});h.onDestroy(function(){DR(a._modules,h),_.unsubscribe()})}),function fSe(i,r,t){try{var e=t();return X_(e)?e.catch(function(n){throw r.runOutsideAngular(function(){return i.handleError(n)}),n}):e}catch(n){throw r.runOutsideAngular(function(){return i.handleError(n)}),n}}(f,u,function(){var _=h.injector.get(mR);return _.runInitializers(),_.donePromise.then(function(){return function Jke(i){Po(i,"Expected localeId to be defined"),"string"==typeof i&&(q8=i.toLowerCase().replace(/_/g,"-"))}(h.injector.get(Ko,ZS)||ZS),a._moduleDoBootstrap(h),h})})})}},{key:"bootstrapModule",value:function(e){var n=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=p4({},a);return sSe(0,0,e).then(function(s){return n.bootstrapModuleFactory(s,o)})}},{key:"_moduleDoBootstrap",value:function(e){var n=e.injector.get(dy);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(o){return n.bootstrap(o)});else{if(!e.instance.ngDoBootstrap)throw new gt(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new gt(404,"");this._modules.slice().forEach(function(a){return a.destroy()}),this._destroyListeners.forEach(function(a){return a()});var n=this._injector.get(d4,null);null==n||n(),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}();function p4(i,r){return Array.isArray(r)?r.reduce(p4,i):Object.assign(Object.assign({},i),r)}var dy=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this._zone=t,this._injector=e,this._exceptionHandler=n,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){o._zone.run(function(){o.tick()})}});var s=new An(function(u){o._stable=o._zone.isStable&&!o._zone.hasPendingMacrotasks&&!o._zone.hasPendingMicrotasks,o._zone.runOutsideAngular(function(){u.next(o._stable),u.complete()})}),l=new An(function(u){var c;o._zone.runOutsideAngular(function(){c=o._zone.onStable.subscribe(function(){be.assertNotInAngularZone(),yR(function(){!o._stable&&!o._zone.hasPendingMacrotasks&&!o._zone.hasPendingMicrotasks&&(o._stable=!0,u.next(!0))})})});var d=o._zone.onUnstable.subscribe(function(){be.assertInAngularZone(),o._stable&&(o._stable=!1,o._zone.runOutsideAngular(function(){u.next(!1)}))});return function(){c.unsubscribe(),d.unsubscribe()}});this.isStable=xn(s,l.pipe(nx()))}return v(r,[{key:"bootstrap",value:function(e,n){var s,a=this;if(!this._initStatus.done)throw new gt(405,"");s=e instanceof k5?e:this._injector.get(Ts).resolveComponentFactory(e),this.componentTypes.push(s.componentType);var u=function lSe(i){return i.isBoundToModule}(s)?void 0:this._injector.get(hc),d=s.create(Jn.NULL,[],n||s.selector,u),h=d.location.nativeElement,f=d.injector.get(bR,null),g=f&&d.injector.get(rSe);return f&&g&&g.registerApplication(h,f),d.onDestroy(function(){a.detachView(d.hostView),DR(a.components,d),g&&g.unregisterApplication(h)}),this._loadComponent(d),d}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new gt(101,"");try{this._runningTick=!0;var o,a=In(this._views);try{for(a.s();!(o=a.n()).done;)o.value.detectChanges()}catch(d){a.e(d)}finally{a.f()}}catch(d){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(d)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var n=e;this._views.push(n),n.attachToAppRef(this)}},{key:"detachView",value:function(e){var n=e;DR(this._views,n),n.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(o4,[]).concat(this._bootstrapListeners).forEach(function(a){return a(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Jn),oe(U_),oe(mR))},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function DR(i,r){var t=i.indexOf(r);t>-1&&i.splice(t,1)}var m4=!0,_4=!1;function xt(){return _4=!0,m4}var nt=function(){var i=v(function r(){p(this,r)});return i.__NG_ELEMENT_ID__=gSe,i}();function gSe(i){return function mSe(i,r,t){if(fS(i)&&!t){var e=Go(i.index,r);return new ry(e,e)}return 47&i.type?new ry(r[16],r):null}(Fr(),Oe(),16==(16&i))}var b4=function(){function i(){p(this,i)}return v(i,[{key:"supports",value:function(t){return $_(t)}},{key:"create",value:function(t){return new CSe(t)}}]),i}(),kSe=function(r,t){return t},CSe=function(){function i(r){p(this,i),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||kSe}return v(i,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,a=0,o=null;e||n;){var s=!n||e&&e.currentIndex0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(a)}},{key:"getState",value:function(){return this._history.state}}]),e}(Jh);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:function(){return function FSe(){return new A4(oe(pa))}()},providedIn:"platform"}),i}();function x4(){return!!window.history.pushState}function RR(i,r){if(0==i.length)return r;if(0==r.length)return i;var t=0;return i.endsWith("/")&&t++,r.startsWith("/")&&t++,2==t?i+r.substring(1):1==t?i+r:i+"/"+r}function M4(i){var r=i.match(/#|\?|$/),t=r&&r.index||i.length;return i.slice(0,t-("/"===i[t-1]?1:0))+i.slice(t)}function vc(i){return i&&"?"!==i[0]?"?"+i:i}var Bp=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:function(){return function LSe(i){var r=oe(pa).location;return new R4(oe(Jh),r&&r.origin||"")}()},providedIn:"root"}),i}(),OR=new wt("appBaseHref"),R4=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;if(p(this,e),(o=t.call(this))._platformLocation=n,o._removeListenerFns=[],null==a&&(a=o._platformLocation.getBaseHrefFromDOM()),null==a)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return o._baseHref=a,o}return v(e,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(a){return RR(this._baseHref,a)}},{key:"path",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this._platformLocation.pathname+vc(this._platformLocation.search),s=this._platformLocation.hash;return s&&a?"".concat(o).concat(s):o}},{key:"pushState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));this._platformLocation.pushState(a,o,u)}},{key:"replaceState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));this._platformLocation.replaceState(a,o,u)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),e}(Bp);return i.\u0275fac=function(t){return new(t||i)(oe(Jh),oe(OR,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),PSe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this))._platformLocation=n,o._baseHref="",o._removeListenerFns=[],null!=a&&(o._baseHref=a),o}return v(e,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}},{key:"prepareExternalUrl",value:function(a){var o=RR(this._baseHref,a);return o.length>0?"#"+o:o}},{key:"pushState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.pushState(a,o,u)}},{key:"replaceState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.replaceState(a,o,u)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),e}(Bp);return i.\u0275fac=function(t){return new(t||i)(oe(Jh),oe(OR,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),IR=function(){var i=function(){function r(t,e){var n=this;p(this,r),this._subject=new O,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=M4(O4(a)),this._platformStrategy.onPopState(function(o){n._subject.emit({url:n.path(!0),pop:!0,state:o.state,type:o.type})})}return v(r,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+vc(n))}},{key:"normalize",value:function(e){return r.stripTrailingSlash(function GSe(i,r){return i&&r.startsWith(i)?r.substring(i.length):r}(this._baseHref,O4(e)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(a,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vc(n)),a)}},{key:"replaceState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(a,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vc(n)),a)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var n,a,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(a=(n=this._platformStrategy).historyGo)||void 0===a||a.call(n,e)}},{key:"onUrlChange",value:function(e){var n=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(a){n._notifyUrlChangeListeners(a.url,a.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(a){return a(e,n)})}},{key:"subscribe",value:function(e,n,a){return this._subject.subscribe({next:e,error:n,complete:a})}}]),r}();return i.normalizeQueryParams=vc,i.joinWithSlash=RR,i.stripTrailingSlash=M4,i.\u0275fac=function(t){return new(t||i)(oe(Bp),oe(Jh))},i.\u0275prov=pe({token:i,factory:function(){return function BSe(){return new IR(oe(Bp),oe(Jh))}()},providedIn:"root"}),i}();function O4(i){return i.replace(/\/index.html$/,"")}var _o=function(){return(_o=_o||{})[_o.Decimal=0]="Decimal",_o[_o.Percent=1]="Percent",_o[_o.Currency=2]="Currency",_o[_o.Scientific=3]="Scientific",_o}(),_r=function(){return(_r=_r||{})[_r.Format=0]="Format",_r[_r.Standalone=1]="Standalone",_r}(),Dn=function(){return(Dn=Dn||{})[Dn.Narrow=0]="Narrow",Dn[Dn.Abbreviated=1]="Abbreviated",Dn[Dn.Wide=2]="Wide",Dn[Dn.Short=3]="Short",Dn}(),$i=function(){return($i=$i||{})[$i.Short=0]="Short",$i[$i.Medium=1]="Medium",$i[$i.Long=2]="Long",$i[$i.Full=3]="Full",$i}(),Kt=function(){return(Kt=Kt||{})[Kt.Decimal=0]="Decimal",Kt[Kt.Group=1]="Group",Kt[Kt.List=2]="List",Kt[Kt.PercentSign=3]="PercentSign",Kt[Kt.PlusSign=4]="PlusSign",Kt[Kt.MinusSign=5]="MinusSign",Kt[Kt.Exponential=6]="Exponential",Kt[Kt.SuperscriptingExponent=7]="SuperscriptingExponent",Kt[Kt.PerMille=8]="PerMille",Kt[Kt.Infinity=9]="Infinity",Kt[Kt.NaN=10]="NaN",Kt[Kt.TimeSeparator=11]="TimeSeparator",Kt[Kt.CurrencyDecimal=12]="CurrencyDecimal",Kt[Kt.CurrencyGroup=13]="CurrencyGroup",Kt}();function cw(i,r){return xs(Ka(i)[st.DateFormat],r)}function dw(i,r){return xs(Ka(i)[st.TimeFormat],r)}function hw(i,r){return xs(Ka(i)[st.DateTimeFormat],r)}function As(i,r){var t=Ka(i),e=t[st.NumberSymbols][r];if(void 0===e){if(r===Kt.CurrencyDecimal)return t[st.NumberSymbols][Kt.Decimal];if(r===Kt.CurrencyGroup)return t[st.NumberSymbols][Kt.Group]}return e}function N4(i){if(!i[st.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(i[st.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function xs(i,r){for(var t=r;t>-1;t--)if(void 0!==i[t])return i[t];throw new Error("Locale data API: locale data undefined")}function FR(i){var t=Gt(i.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var QSe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,fy={},JSe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Br=function(){return(Br=Br||{})[Br.Short=0]="Short",Br[Br.ShortGMT=1]="ShortGMT",Br[Br.Long=2]="Long",Br[Br.Extended=3]="Extended",Br}(),$t=function(){return($t=$t||{})[$t.FullYear=0]="FullYear",$t[$t.Month=1]="Month",$t[$t.Date=2]="Date",$t[$t.Hours=3]="Hours",$t[$t.Minutes=4]="Minutes",$t[$t.Seconds=5]="Seconds",$t[$t.FractionalSeconds=6]="FractionalSeconds",$t[$t.Day=7]="Day",$t}(),pn=function(){return(pn=pn||{})[pn.DayPeriods=0]="DayPeriods",pn[pn.Days=1]="Days",pn[pn.Months=2]="Months",pn[pn.Eras=3]="Eras",pn}();function ewe(i,r,t,e){var n=function uwe(i){if(P4(i))return i;if("number"==typeof i&&!isNaN(i))return new Date(i);if("string"==typeof i){if(i=i.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(i)){var t=Gt(i.split("-").map(function(d){return+d}),3),n=t[1],o=t[2];return fw(t[0],(void 0===n?1:n)-1,void 0===o?1:o)}var u,l=parseFloat(i);if(!isNaN(i-l))return new Date(l);if(u=i.match(QSe))return function cwe(i){var r=new Date(0),t=0,e=0,n=i[8]?r.setUTCFullYear:r.setFullYear,a=i[8]?r.setUTCHours:r.setHours;i[9]&&(t=Number(i[9]+i[10]),e=Number(i[9]+i[11])),n.call(r,Number(i[1]),Number(i[2])-1,Number(i[3]));var o=Number(i[4]||0)-t,s=Number(i[5]||0)-e,l=Number(i[6]||0),u=Math.floor(1e3*parseFloat("0."+(i[7]||0)));return a.call(r,o,s,l,u),r}(u)}var c=new Date(i);if(!P4(c))throw new Error('Unable to convert "'.concat(i,'" into a date'));return c}(i);r=pc(t,r)||r;for(var s,o=[];r;){if(!(s=JSe.exec(r))){o.push(r);break}var l=(o=o.concat(s.slice(1))).pop();if(!l)break;r=l}var u=n.getTimezoneOffset();e&&(u=L4(e,u),n=function lwe(i,r,t){var e=t?-1:1,n=i.getTimezoneOffset();return function swe(i,r){return(i=new Date(i.getTime())).setMinutes(i.getMinutes()+r),i}(i,e*(L4(r,n)-n))}(n,e,!0));var c="";return o.forEach(function(d){var h=function owe(i){if(PR[i])return PR[i];var r;switch(i){case"G":case"GG":case"GGG":r=Ti(pn.Eras,Dn.Abbreviated);break;case"GGGG":r=Ti(pn.Eras,Dn.Wide);break;case"GGGGG":r=Ti(pn.Eras,Dn.Narrow);break;case"y":r=Mr($t.FullYear,1,0,!1,!0);break;case"yy":r=Mr($t.FullYear,2,0,!0,!0);break;case"yyy":r=Mr($t.FullYear,3,0,!1,!0);break;case"yyyy":r=Mr($t.FullYear,4,0,!1,!0);break;case"Y":r=mw(1);break;case"YY":r=mw(2,!0);break;case"YYY":r=mw(3);break;case"YYYY":r=mw(4);break;case"M":case"L":r=Mr($t.Month,1,1);break;case"MM":case"LL":r=Mr($t.Month,2,1);break;case"MMM":r=Ti(pn.Months,Dn.Abbreviated);break;case"MMMM":r=Ti(pn.Months,Dn.Wide);break;case"MMMMM":r=Ti(pn.Months,Dn.Narrow);break;case"LLL":r=Ti(pn.Months,Dn.Abbreviated,_r.Standalone);break;case"LLLL":r=Ti(pn.Months,Dn.Wide,_r.Standalone);break;case"LLLLL":r=Ti(pn.Months,Dn.Narrow,_r.Standalone);break;case"w":r=LR(1);break;case"ww":r=LR(2);break;case"W":r=LR(1,!0);break;case"d":r=Mr($t.Date,1);break;case"dd":r=Mr($t.Date,2);break;case"c":case"cc":r=Mr($t.Day,1);break;case"ccc":r=Ti(pn.Days,Dn.Abbreviated,_r.Standalone);break;case"cccc":r=Ti(pn.Days,Dn.Wide,_r.Standalone);break;case"ccccc":r=Ti(pn.Days,Dn.Narrow,_r.Standalone);break;case"cccccc":r=Ti(pn.Days,Dn.Short,_r.Standalone);break;case"E":case"EE":case"EEE":r=Ti(pn.Days,Dn.Abbreviated);break;case"EEEE":r=Ti(pn.Days,Dn.Wide);break;case"EEEEE":r=Ti(pn.Days,Dn.Narrow);break;case"EEEEEE":r=Ti(pn.Days,Dn.Short);break;case"a":case"aa":case"aaa":r=Ti(pn.DayPeriods,Dn.Abbreviated);break;case"aaaa":r=Ti(pn.DayPeriods,Dn.Wide);break;case"aaaaa":r=Ti(pn.DayPeriods,Dn.Narrow);break;case"b":case"bb":case"bbb":r=Ti(pn.DayPeriods,Dn.Abbreviated,_r.Standalone,!0);break;case"bbbb":r=Ti(pn.DayPeriods,Dn.Wide,_r.Standalone,!0);break;case"bbbbb":r=Ti(pn.DayPeriods,Dn.Narrow,_r.Standalone,!0);break;case"B":case"BB":case"BBB":r=Ti(pn.DayPeriods,Dn.Abbreviated,_r.Format,!0);break;case"BBBB":r=Ti(pn.DayPeriods,Dn.Wide,_r.Format,!0);break;case"BBBBB":r=Ti(pn.DayPeriods,Dn.Narrow,_r.Format,!0);break;case"h":r=Mr($t.Hours,1,-12);break;case"hh":r=Mr($t.Hours,2,-12);break;case"H":r=Mr($t.Hours,1);break;case"HH":r=Mr($t.Hours,2);break;case"m":r=Mr($t.Minutes,1);break;case"mm":r=Mr($t.Minutes,2);break;case"s":r=Mr($t.Seconds,1);break;case"ss":r=Mr($t.Seconds,2);break;case"S":r=Mr($t.FractionalSeconds,1);break;case"SS":r=Mr($t.FractionalSeconds,2);break;case"SSS":r=Mr($t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":r=pw(Br.Short);break;case"ZZZZZ":r=pw(Br.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=pw(Br.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":r=pw(Br.Long);break;default:return null}return PR[i]=r,r}(d);c+=h?h(n,t,u):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function fw(i,r,t){var e=new Date(0);return e.setFullYear(i,r,t),e.setHours(0,0,0),e}function pc(i,r){var t=function VSe(i){return Ka(i)[st.LocaleId]}(i);if(fy[t]=fy[t]||{},fy[t][r])return fy[t][r];var e="";switch(r){case"shortDate":e=cw(i,$i.Short);break;case"mediumDate":e=cw(i,$i.Medium);break;case"longDate":e=cw(i,$i.Long);break;case"fullDate":e=cw(i,$i.Full);break;case"shortTime":e=dw(i,$i.Short);break;case"mediumTime":e=dw(i,$i.Medium);break;case"longTime":e=dw(i,$i.Long);break;case"fullTime":e=dw(i,$i.Full);break;case"short":var n=pc(i,"shortTime"),a=pc(i,"shortDate");e=vw(hw(i,$i.Short),[n,a]);break;case"medium":var o=pc(i,"mediumTime"),s=pc(i,"mediumDate");e=vw(hw(i,$i.Medium),[o,s]);break;case"long":var l=pc(i,"longTime"),u=pc(i,"longDate");e=vw(hw(i,$i.Long),[l,u]);break;case"full":var c=pc(i,"fullTime"),d=pc(i,"fullDate");e=vw(hw(i,$i.Full),[c,d])}return e&&(fy[t][r]=e),e}function vw(i,r){return r&&(i=i.replace(/\{([^}]+)}/g,function(t,e){return null!=r&&e in r?r[e]:t})),i}function sl(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",e=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,a="";(i<0||n&&i<=0)&&(n?i=1-i:(i=-i,a=t));for(var o=String(i);o.length2&&void 0!==arguments[2]?arguments[2]:0,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s=nwe(i,a);if((t>0||s>-t)&&(s+=t),i===$t.Hours)0===s&&-12===t&&(s=12);else if(i===$t.FractionalSeconds)return twe(s,r);var l=As(o,Kt.MinusSign);return sl(s,r,l,e,n)}}function nwe(i,r){switch(i){case $t.FullYear:return r.getFullYear();case $t.Month:return r.getMonth();case $t.Date:return r.getDate();case $t.Hours:return r.getHours();case $t.Minutes:return r.getMinutes();case $t.Seconds:return r.getSeconds();case $t.FractionalSeconds:return r.getMilliseconds();case $t.Day:return r.getDay();default:throw new Error('Unknown DateType value "'.concat(i,'".'))}}function Ti(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_r.Format,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(n,a){return iwe(n,a,i,r,t,e)}}function iwe(i,r,t,e,n,a){switch(t){case pn.Months:return function HSe(i,r,t){var e=Ka(i),a=xs([e[st.MonthsFormat],e[st.MonthsStandalone]],r);return xs(a,t)}(r,n,e)[i.getMonth()];case pn.Days:return function zSe(i,r,t){var e=Ka(i),a=xs([e[st.DaysFormat],e[st.DaysStandalone]],r);return xs(a,t)}(r,n,e)[i.getDay()];case pn.DayPeriods:var o=i.getHours(),s=i.getMinutes();if(a){var l=function $Se(i){var r=Ka(i);return N4(r),(r[st.ExtraData][2]||[]).map(function(e){return"string"==typeof e?FR(e):[FR(e[0]),FR(e[1])]})}(r),u=function qSe(i,r,t){var e=Ka(i);N4(e);var a=xs([e[st.ExtraData][0],e[st.ExtraData][1]],r)||[];return xs(a,t)||[]}(r,n,e),c=l.findIndex(function(h){if(Array.isArray(h)){var f=Gt(h,2),g=f[0],_=f[1],C=o>=g.hours&&s>=g.minutes,w=o<_.hours||o===_.hours&&s<_.minutes;if(g.hours<_.hours){if(C&&w)return!0}else if(C||w)return!0}else if(h.hours===o&&h.minutes===s)return!0;return!1});if(-1!==c)return u[c]}return function USe(i,r,t){var e=Ka(i),a=xs([e[st.DayPeriodsFormat],e[st.DayPeriodsStandalone]],r);return xs(a,t)}(r,n,e)[o<12?0:1];case pn.Eras:return function KSe(i,r){return xs(Ka(i)[st.Eras],r)}(r,e)[i.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(t))}}function pw(i){return function(r,t,e){var n=-1*e,a=As(t,Kt.MinusSign),o=n>0?Math.floor(n/60):Math.ceil(n/60);switch(i){case Br.Short:return(n>=0?"+":"")+sl(o,2,a)+sl(Math.abs(n%60),2,a);case Br.ShortGMT:return"GMT"+(n>=0?"+":"")+sl(o,1,a);case Br.Long:return"GMT"+(n>=0?"+":"")+sl(o,2,a)+":"+sl(Math.abs(n%60),2,a);case Br.Extended:return 0===e?"Z":(n>=0?"+":"")+sl(o,2,a)+":"+sl(Math.abs(n%60),2,a);default:throw new Error('Unknown zone width "'.concat(i,'"'))}}}function awe(i){var r=fw(i,0,1).getDay();return fw(i,0,1+(r<=4?4:11)-r)}function F4(i){return fw(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))}function LR(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t,e){var n;if(r){var a=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();n=1+Math.floor((o+a)/7)}else{var s=F4(t),l=awe(s.getFullYear()),u=s.getTime()-l.getTime();n=1+Math.round(u/6048e5)}return sl(n,i,As(e,Kt.MinusSign))}}function mw(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t,e){return sl(F4(t).getFullYear(),i,As(e,Kt.MinusSign),r)}}var PR={};function L4(i,r){i=i.replace(/:/g,"");var t=Date.parse("Jan 01, 1970 00:00:00 "+i)/6e4;return isNaN(t)?r:t}function P4(i){return i instanceof Date&&!isNaN(i.valueOf())}var dwe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,vy="0";function _we(i){if(0===i.digits[0])return i;var r=i.digits.length-i.integerLen;return i.exponent?i.exponent+=2:(0===r?i.digits.push(0,0):1===r&&i.digits.push(0),i.integerLen+=2),i}function ywe(i){var e,n,a,o,s,r=Math.abs(i)+"",t=0;for((n=r.indexOf("."))>-1&&(r=r.replace(".","")),(a=r.search(/e/i))>0?(n<0&&(n=a),n+=+r.slice(a+1),r=r.substring(0,a)):n<0&&(n=r.length),a=0;r.charAt(a)===vy;a++);if(a===(s=r.length))e=[0],n=1;else{for(s--;r.charAt(s)===vy;)s--;for(n-=a,e=[],o=0;a<=s;a++,o++)e[o]=Number(r.charAt(a))}return n>22&&(e=e.splice(0,21),t=n-1,n=1),{digits:e,exponent:t,integerLen:n}}function kwe(i,r,t){if(r>t)throw new Error("The minimum number of digits after fraction (".concat(r,") is higher than the maximum (").concat(t,")."));var e=i.digits,n=e.length-i.integerLen,a=Math.min(Math.max(r,n),t),o=a+i.integerLen,s=e[o];if(o>0){e.splice(Math.max(i.integerLen,o));for(var l=o;l=5)if(o-1<0){for(var c=0;c>o;c--)e.unshift(0),i.integerLen++;e.unshift(1),i.integerLen++}else e[o-1]++;for(;n=h?w.pop():d=!1),_>=10?1:0},0);f&&(e.unshift(f),i.integerLen++)}function UR(i){var r=parseInt(i);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+i);return r}function U4(i,r){r=encodeURIComponent(r);var e,t=In(i.split(";"));try{for(t.s();!(e=t.n()).done;){var n=e.value,a=n.indexOf("="),s=Gt(-1==a?[n,""]:[n.slice(0,a),n.slice(a+1)],2),u=s[1];if(s[0].trim()===r)return decodeURIComponent(u)}}catch(c){t.e(c)}finally{t.f()}return null}var Nt=function(){var i=function(){function r(t,e,n,a){p(this,r),this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return v(r,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&($_(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var n=this._keyValueDiffer.diff(this._rawClass);n&&this._applyKeyValueChanges(n)}}},{key:"_applyKeyValueChanges",value:function(e){var n=this;e.forEachAddedItem(function(a){return n._toggleClass(a.key,a.currentValue)}),e.forEachChangedItem(function(a){return n._toggleClass(a.key,a.currentValue)}),e.forEachRemovedItem(function(a){a.previousValue&&n._toggleClass(a.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var n=this;e.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(si(a.item)));n._toggleClass(a.item,!0)}),e.forEachRemovedItem(function(a){return n._toggleClass(a.item,!1)})}},{key:"_applyClasses",value:function(e){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(a){return n._toggleClass(a,!0)}):Object.keys(e).forEach(function(a){return n._toggleClass(a,!!e[a])}))}},{key:"_removeClasses",value:function(e){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(a){return n._toggleClass(a,!1)}):Object.keys(e).forEach(function(a){return n._toggleClass(a,!1)}))}},{key:"_toggleClass",value:function(e,n){var a=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(o){n?a._renderer.addClass(a._ngEl.nativeElement,o):a._renderer.removeClass(a._ngEl.nativeElement,o)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(hy),m(Pp),m(ke),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),i}(),Swe=function(){function i(r,t,e,n){p(this,i),this.$implicit=r,this.ngForOf=t,this.index=e,this.count=n}return v(i,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),i}(),gn=function(){var i=function(){function r(t,e,n){p(this,r),this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return v(r,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var n=this,a=this._viewContainer;e.forEachOperation(function(c,d,h){if(null==c.previousIndex)a.createEmbeddedView(n._template,new Swe(c.item,n._ngForOf,-1,-1),null===h?void 0:h);else if(null==h)a.remove(null===d?void 0:d);else if(null!==d){var f=a.get(d);a.move(f,h),z4(f,c)}});for(var o=0,s=a.length;o1&&void 0!==arguments[1]?arguments[1]:"mediumDate",a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return ewe(e,n,o||this.locale,null!==(s=null!=a?a:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(l){throw ll()}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ko,16),m(Fwe,24))},i.\u0275pipe=fa({name:"date",type:i,pure:!0}),i}(),W4=function(){var i=function(){function r(t){p(this,r),this._locale=t}return v(r,[{key:"transform",value:function(e,n,a){if(!function jR(i){return!(null==i||""===i||i!=i)}(e))return null;a=a||this._locale;try{return function gwe(i,r,t){return function GR(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",l=!1;if(isFinite(i)){var u=ywe(i);o&&(u=_we(u));var c=r.minInt,d=r.minFrac,h=r.maxFrac;if(a){var f=a.match(dwe);if(null===f)throw new Error("".concat(a," is not a valid digit info"));var g=f[1],_=f[3],C=f[5];null!=g&&(c=UR(g)),null!=_&&(d=UR(_)),null!=C?h=UR(C):null!=_&&d>h&&(h=d)}kwe(u,d,h);var w=u.digits,E=u.integerLen,M=u.exponent,R=[];for(l=w.every(function(V){return!V});E0?R=w.splice(E,w.length):(R=w,w=[0]);var N=[];for(w.length>=r.lgSize&&N.unshift(w.splice(-r.lgSize,w.length).join(""));w.length>r.gSize;)N.unshift(w.splice(-r.gSize,w.length).join(""));w.length&&N.unshift(w.join("")),s=N.join(As(t,e)),R.length&&(s+=As(t,n)+R.join("")),M&&(s+=As(t,Kt.Exponential)+"+"+M)}else s=As(t,Kt.Infinity);return i<0&&!l?r.negPre+s+r.negSuf:r.posPre+s+r.posSuf}(i,function VR(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},e=i.split(";"),n=e[0],a=e[1],o=-1!==n.indexOf(".")?n.split("."):[n.substring(0,n.lastIndexOf(vy)+1),n.substring(n.lastIndexOf(vy)+1)],s=o[0],l=o[1]||"";t.posPre=s.substr(0,s.indexOf("#"));for(var u=0;u1&&void 0!==arguments[1])||arguments[1],o=t.findTestabilityInTree(n,a);if(null==o)throw new Error("Could not find testability for element.");return o},hi.getAllAngularTestabilities=function(){return t.getAllTestabilities()},hi.getAllAngularRootElements=function(){return t.getAllRootElements()},hi.frameworkStabilizers||(hi.frameworkStabilizers=[]),hi.frameworkStabilizers.push(function(a){var o=hi.getAllAngularTestabilities(),s=o.length,l=!1,u=function(d){l=l||d,0==--s&&a(l)};o.forEach(function(c){c.whenStable(u)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var a=t.getTestability(e);return null!=a?a:n?tu().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){!function oSe(i){SR=i}(new i)}}]),i}(),rDe=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"build",value:function(){return new XMLHttpRequest}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Cw=new wt("EventManagerPlugins"),bw=function(){var i=function(){function r(t,e){var n=this;p(this,r),this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(a){return a.manager=n}),this._plugins=t.slice().reverse()}return v(r,[{key:"addEventListener",value:function(e,n,a){return this._findPluginFor(n).addEventListener(e,n,a)}},{key:"addGlobalEventListener",value:function(e,n,a){return this._findPluginFor(n).addGlobalEventListener(e,n,a)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var n=this._eventNameToPlugin.get(e);if(n)return n;for(var a=this._plugins,o=0;o-1&&(o.splice(h,1),u+=d+".")}),u+=l,0!=o.length||0===l.length)return null;var c={};return c.domEventName=s,c.fullKey=u,c}},{key:"getEventFullKey",value:function(a){var o="",s=function mDe(i){var r=i.key;if(null==r){if(null==(r=i.keyIdentifier))return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===i.location&&aK.hasOwnProperty(r)&&(r=aK[r]))}return vDe[r]||r}(a);return" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),rK.forEach(function(l){l!=s&&(0,pDe[l])(a)&&(o+=l+".")}),o+=s}},{key:"eventCallback",value:function(a,o,s){return function(l){e.getEventFullKey(l)===a&&s.runGuarded(function(){return o(l)})}}},{key:"_normalizeKey",value:function(a){return"esc"===a?"escape":a}}]),e}(Y4);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),CDe=[{provide:cy,useValue:$4},{provide:a4,useValue:function _De(){Qwe.makeCurrent(),iDe.init()},multi:!0},{provide:pa,useFactory:function kDe(){return function Wpe(i){yx=i}(document),document},deps:[]}],bDe=f4(ASe,"browser",CDe),SDe=[{provide:NM,useValue:"root"},{provide:U_,useFactory:function yDe(){return new U_},deps:[]},{provide:Cw,useClass:hDe,multi:!0,deps:[pa,be,cy]},{provide:Cw,useClass:gDe,multi:!0,deps:[pa]},{provide:ww,useClass:ww,deps:[bw,gy,uy]},{provide:ny,useExisting:ww},{provide:Q4,useExisting:gy},{provide:gy,useClass:gy,deps:[pa]},{provide:bR,useClass:bR,deps:[be]},{provide:bw,useClass:bw,deps:[Cw,be]},{provide:$R,useClass:rDe,deps:[]}],oK=function(){var i=function(){function r(t){if(p(this,r),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return v(r,null,[{key:"withServerTransition",value:function(e){return{ngModule:r,providers:[{provide:uy,useValue:e.appId},{provide:Z4,useExisting:uy},nDe]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(i,12))},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:SDe,imports:[bt,xSe]}),i}();"undefined"!=typeof window&&window;var uK=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:function(t){return t?new(t||i):oe(cK)},providedIn:"root"}),i}(),cK=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this))._doc=n,a}return v(e,[{key:"sanitize",value:function(a,o){if(null==o)return null;switch(a){case ki.NONE:return o;case ki.HTML:return Wl(o,"HTML")?Uo(o):v3(this._doc,String(o)).toString();case ki.STYLE:return Wl(o,"Style")?Uo(o):o;case ki.SCRIPT:if(Wl(o,"Script"))return Uo(o);throw new Error("unsafe value used in a script context");case ki.URL:return o3(o),Wl(o,"URL")?Uo(o):P_(String(o));case ki.RESOURCE_URL:if(Wl(o,"ResourceURL"))return Uo(o);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(a," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(a){return function lme(i){return new ime(i)}(a)}},{key:"bypassSecurityTrustStyle",value:function(a){return function ume(i){return new rme(i)}(a)}},{key:"bypassSecurityTrustScript",value:function(a){return function cme(i){return new ame(i)}(a)}},{key:"bypassSecurityTrustUrl",value:function(a){return function dme(i){return new ome(i)}(a)}},{key:"bypassSecurityTrustResourceUrl",value:function(a){return function hme(i){return new sme(i)}(a)}}]),e}(uK);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:function(t){var e;return e=t?new t:function RDe(i){return new cK(i.get(pa))}(oe(Jn)),e},providedIn:"root"}),i}();function lt(){for(var i=arguments.length,r=new Array(i),t=0;t0){var a=e.slice(0,n),o=a.toLowerCase(),s=e.slice(n+1).trim();t.maybeSetNormalizedName(a,o),t.headers.has(o)?t.headers.get(o).push(s):t.headers.set(o,[s])}})}:function(){t.headers=new Map,Object.keys(r).forEach(function(e){var n=r[e],a=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(t.headers.set(a,n),t.maybeSetNormalizedName(e,a))})}:this.headers=new Map}return v(i,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(t){var e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var a=("a"===t.op?this.headers.get(e):void 0)||[];a.push.apply(a,Ae(n)),this.headers.set(e,a);break;case"d":var o=t.value;if(o){var s=this.headers.get(e);if(!s)return;0===(s=s.filter(function(l){return-1===o.indexOf(l)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),i}(),ODe=function(){function i(){p(this,i)}return v(i,[{key:"encodeKey",value:function(t){return fK(t)}},{key:"encodeValue",value:function(t){return fK(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),i}();function IDe(i,r){var t=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(function(n){var a=n.indexOf("="),s=Gt(-1==a?[r.decodeKey(n),""]:[r.decodeKey(n.slice(0,a)),r.decodeValue(n.slice(a+1))],2),l=s[0],u=s[1],c=t.get(l)||[];c.push(u),t.set(l,c)}),t}var NDe=/%(\d[a-f0-9])/gi,FDe={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function fK(i){return encodeURIComponent(i).replace(NDe,function(r,t){var e;return null!==(e=FDe[t])&&void 0!==e?e:r})}function vK(i){return"".concat(i)}var Up=function(){function i(){var r=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(p(this,i),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ODe,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=IDe(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];r.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return v(i,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var a=t[n];Array.isArray(a)?a.forEach(function(o){e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:a,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(a){return n+"="+t.encoder.encodeValue(a)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(vK(e.value)),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var a=t.map.get(e.param)||[],o=a.indexOf(vK(e.value));-1!==o&&a.splice(o,1),a.length>0?t.map.set(e.param,a):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),i}(),LDe=function(){function i(){p(this,i),this.map=new Map}return v(i,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"has",value:function(t){return this.map.has(t)}},{key:"keys",value:function(){return this.map.keys()}}]),i}();function pK(i){return"undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer}function gK(i){return"undefined"!=typeof Blob&&i instanceof Blob}function mK(i){return"undefined"!=typeof FormData&&i instanceof FormData}var QR=function(){function i(r,t,e,n){var a;if(p(this,i),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function PDe(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==e?e:null,a=n):a=e,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new Vp),this.context||(this.context=new LDe),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,a=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,l=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,u=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,d=t.params||this.params,h=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce(function(f,g){return f.set(g,t.setHeaders[g])},c)),t.setParams&&(d=Object.keys(t.setParams).reduce(function(f,g){return f.set(g,t.setParams[g])},d)),new i(n,a,s,{params:d,headers:c,context:h,reportProgress:u,responseType:o,withCredentials:l})}}]),i}(),Rr=function(){return(Rr=Rr||{})[Rr.Sent=0]="Sent",Rr[Rr.UploadProgress=1]="UploadProgress",Rr[Rr.ResponseHeader=2]="ResponseHeader",Rr[Rr.DownloadProgress=3]="DownloadProgress",Rr[Rr.Response=4]="Response",Rr[Rr.User=5]="User",Rr}(),JR=v(function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";p(this,i),this.headers=r.headers||new Vp,this.status=void 0!==r.status?r.status:t,this.statusText=r.statusText||e,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}),GDe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).type=Rr.ResponseHeader,e}return v(t,[{key:"clone",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}]),t}(JR),_K=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).type=Rr.Response,e.body=void 0!==n.body?n.body:null,e}return v(t,[{key:"clone",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}]),t}(JR),yK=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),n.error=e.error||null,n}return v(t)}(JR);function eO(i,r){return{body:r,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}var tO=function(){var i=function(){function r(t){p(this,r),this.handler=t}return v(r,[{key:"request",value:function(e,n){var s,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof QR)s=e;else{var l=void 0;l=o.headers instanceof Vp?o.headers:new Vp(o.headers);var u=void 0;o.params&&(u=o.params instanceof Up?o.params:new Up({fromObject:o.params})),s=new QR(e,n,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var c=lt(s).pipe(nu(function(h){return a.handler.handle(h)}));if(e instanceof QR||"events"===o.observe)return c;var d=c.pipe(Ue(function(h){return h instanceof _K}));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return d.pipe(We(function(h){if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return h.body}));case"blob":return d.pipe(We(function(h){if(null!==h.body&&!(h.body instanceof Blob))throw new Error("Response is not a Blob.");return h.body}));case"text":return d.pipe(We(function(h){if(null!==h.body&&"string"!=typeof h.body)throw new Error("Response is not a string.");return h.body}));default:return d.pipe(We(function(h){return h.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,n)}},{key:"get",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,n)}},{key:"head",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,n)}},{key:"jsonp",value:function(e,n){return this.request("JSONP",e,{params:(new Up).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,n)}},{key:"patch",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,eO(a,n))}},{key:"post",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,eO(a,n))}},{key:"put",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,eO(a,n))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(dK))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),kK=function(){function i(r,t){p(this,i),this.next=r,this.interceptor=t}return v(i,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),i}(),CK=new wt("HTTP_INTERCEPTORS"),VDe=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"intercept",value:function(e,n){return n.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),UDe=/^\)\]\}',?\n/,bK=function(){var i=function(){function r(t){p(this,r),this.xhrFactory=t}return v(r,[{key:"handle",value:function(e){var n=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new An(function(a){var o=n.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach(function(w,E){return o.setRequestHeader(w,E.join(","))}),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var s=e.detectContentTypeHeader();null!==s&&o.setRequestHeader("Content-Type",s)}if(e.responseType){var l=e.responseType.toLowerCase();o.responseType="json"!==l?l:"text"}var u=e.serializeBody(),c=null,d=function(){if(null!==c)return c;var E=o.statusText||"OK",M=new Vp(o.getAllResponseHeaders()),R=function zDe(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(o)||e.url;return c=new GDe({headers:M,status:o.status,statusText:E,url:R})},h=function(){var E=d(),M=E.headers,R=E.status,N=E.statusText,V=E.url,U=null;204!==R&&(U=void 0===o.response?o.responseText:o.response),0===R&&(R=U?200:0);var ee=R>=200&&R<300;if("json"===e.responseType&&"string"==typeof U){var ve=U;U=U.replace(UDe,"");try{U=""!==U?JSON.parse(U):null}catch(G){U=ve,ee&&(ee=!1,U={error:G,text:U})}}ee?(a.next(new _K({body:U,headers:M,status:R,statusText:N,url:V||void 0})),a.complete()):a.error(new yK({error:U,headers:M,status:R,statusText:N,url:V||void 0}))},f=function(E){var M=d(),N=new yK({error:E,status:o.status||0,statusText:o.statusText||"Unknown Error",url:M.url||void 0});a.error(N)},g=!1,_=function(E){g||(a.next(d()),g=!0);var M={type:Rr.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),"text"===e.responseType&&!!o.responseText&&(M.partialText=o.responseText),a.next(M)},C=function(E){var M={type:Rr.UploadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),a.next(M)};return o.addEventListener("load",h),o.addEventListener("error",f),o.addEventListener("timeout",f),o.addEventListener("abort",f),e.reportProgress&&(o.addEventListener("progress",_),null!==u&&o.upload&&o.upload.addEventListener("progress",C)),o.send(u),a.next({type:Rr.Sent}),function(){o.removeEventListener("error",f),o.removeEventListener("abort",f),o.removeEventListener("load",h),o.removeEventListener("timeout",f),e.reportProgress&&(o.removeEventListener("progress",_),null!==u&&o.upload&&o.upload.removeEventListener("progress",C)),o.readyState!==o.DONE&&o.abort()}})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe($R))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),nO=new wt("XSRF_COOKIE_NAME"),iO=new wt("XSRF_HEADER_NAME"),SK=v(function i(){p(this,i)}),HDe=function(){var i=function(){function r(t,e,n){p(this,r),this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return v(r,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=U4(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(pa),oe(cy),oe(nO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rO=function(){var i=function(){function r(t,e){p(this,r),this.tokenService=t,this.headerName=e}return v(r,[{key:"intercept",value:function(e,n){var a=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||a.startsWith("http://")||a.startsWith("https://"))return n.handle(e);var o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),n.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(SK),oe(iO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),KDe=function(){var i=function(){function r(t,e){p(this,r),this.backend=t,this.injector=e,this.chain=null}return v(r,[{key:"handle",value:function(e){if(null===this.chain){var n=this.injector.get(CK,[]);this.chain=n.reduceRight(function(a,o){return new kK(a,o)},this.backend)}return this.chain.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(hK),oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),jDe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"disable",value:function(){return{ngModule:r,providers:[{provide:rO,useClass:VDe}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.cookieName?{provide:nO,useValue:e.cookieName}:[],e.headerName?{provide:iO,useValue:e.headerName}:[]]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[rO,{provide:CK,useExisting:rO,multi:!0},{provide:SK,useClass:HDe},{provide:nO,useValue:"XSRF-TOKEN"},{provide:iO,useValue:"X-XSRF-TOKEN"}]}),i}(),wK=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[tO,{provide:dK,useClass:KDe},bK,{provide:hK,useExisting:bK}],imports:[[jDe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),i}(),zp=v(function i(){p(this,i)}),WDe=v(function i(){p(this,i)}),ul="*";function ef(i,r){return{type:7,name:i,definitions:r,options:{}}}function Ai(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:r,timings:i}}function Dw(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:i,options:r}}function Ft(i){return{type:6,styles:i,offset:null}}function Cd(i,r,t){return{type:0,name:i,styles:r,options:t}}function iu(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:i,animation:r,options:t}}function DK(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:i,animation:r,options:t}}function EK(i,r){return{type:12,timings:i,animation:r}}function TK(i){Promise.resolve(null).then(i)}var my=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,i),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+t}return v(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;TK(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(n){return n()}),e.length=0}}]),i}(),AK=function(){function i(r){var t=this;p(this,i),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;var e=0,n=0,a=0,o=this.players.length;0==o?TK(function(){return t._onFinish()}):this.players.forEach(function(s){s.onDone(function(){++e==o&&t._onFinish()}),s.onDestroy(function(){++n==o&&t._onDestroy()}),s.onStart(function(){++a==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(s,l){return Math.max(s,l.totalTime)},0)}return v(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(n){var a=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(a)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(e,n){return null===e||n.totalTime>e.totalTime?n:e},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(n){return n()}),e.length=0}}]),i}(),Mn=!1;function xK(i){return new gt(3e3,Mn)}function f0e(i){return new gt(3502,Mn)}function p0e(){return new gt(3300,Mn)}function g0e(i){return new gt(3504,Mn)}function w0e(){return"undefined"!=typeof window&&void 0!==window.document}function oO(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function bd(i){switch(i.length){case 0:return new my;case 1:return i[0];default:return new AK(i)}}function MK(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,u=null;if(e.forEach(function(c){var d=c.offset,h=d==l,f=h&&u||{};Object.keys(c).forEach(function(g){var _=g,C=c[g];if("offset"!==g)switch(_=r.normalizePropertyName(_,o),C){case"!":C=n[g];break;case ul:C=a[g];break;default:C=r.normalizeStyleValue(g,_,C,o)}f[_]=C}),h||s.push(f),u=f,l=d}),o.length)throw f0e();return s}function sO(i,r,t,e){switch(r){case"start":i.onStart(function(){return e(t&&lO(t,"start",i))});break;case"done":i.onDone(function(){return e(t&&lO(t,"done",i))});break;case"destroy":i.onDestroy(function(){return e(t&&lO(t,"destroy",i))})}}function lO(i,r,t){var e=t.totalTime,a=uO(i.element,i.triggerName,i.fromState,i.toState,r||i.phaseName,null==e?i.totalTime:e,!!t.disabled),o=i._data;return null!=o&&(a._data=o),a}function uO(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:i,triggerName:r,fromState:t,toState:e,phaseName:n,totalTime:a,disabled:!!o}}function jo(i,r,t){var e;return i instanceof Map?(e=i.get(r))||i.set(r,e=t):(e=i[r])||(e=i[r]=t),e}function RK(i){var r=i.indexOf(":");return[i.substring(1,r),i.substr(r+1)]}var cO=function(r,t){return!1},OK=function(r,t,e){return[]},IK=null;function dO(i){var r=i.parentNode||i.host;return r===IK?null:r}(oO()||"undefined"!=typeof Element)&&(w0e()?(IK=function(){return document.documentElement}(),cO=function(r,t){for(;t;){if(t===r)return!0;t=dO(t)}return!1}):cO=function(r,t){return r.contains(t)},OK=function(r,t,e){if(e)return Array.from(r.querySelectorAll(t));var n=r.querySelector(t);return n?[n]:[]});var tf=null,NK=!1;function FK(i){tf||(tf=function T0e(){return"undefined"!=typeof document?document.body:null}()||{},NK=!!tf.style&&"WebkitAppearance"in tf.style);var r=!0;return tf.style&&!function E0e(i){return"ebkit"==i.substring(1,6)}(i)&&!(r=i in tf.style)&&NK&&(r="Webkit"+i.charAt(0).toUpperCase()+i.substr(1)in tf.style),r}var LK=cO,PK=OK,BK=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"validateStyleProperty",value:function(e){return FK(e)}},{key:"matchesElement",value:function(e,n){return!1}},{key:"containsElement",value:function(e,n){return LK(e,n)}},{key:"getParentElement",value:function(e){return dO(e)}},{key:"query",value:function(e,n,a){return PK(e,n,a)}},{key:"computeStyle",value:function(e,n,a){return a||""}},{key:"animate",value:function(e,n,a,o,s){return new my(a,o)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hO=function(){var i=v(function r(){p(this,r)});return i.NOOP=new BK,i}(),VK="ng-enter",fO="ng-leave",Tw="ng-trigger",Aw=".ng-trigger",UK="ng-animating",vO=".ng-animating";function nf(i){if("number"==typeof i)return i;var r=i.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:pO(parseFloat(r[1]),r[2])}function pO(i,r){return"s"===r?1e3*i:i}function xw(i,r,t){return i.hasOwnProperty("duration")?i:function M0e(i,r,t){var n,a=0,o="";if("string"==typeof i){var s=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return r.push(xK()),{duration:0,delay:0,easing:""};n=pO(parseFloat(s[1]),s[2]);var l=s[3];null!=l&&(a=pO(parseFloat(l),s[4]));var u=s[5];u&&(o=u)}else n=i;if(!t){var c=!1,d=r.length;n<0&&(r.push(function $De(){return new gt(3100,Mn)}()),c=!0),a<0&&(r.push(function qDe(){return new gt(3101,Mn)}()),c=!0),c&&r.splice(d,0,xK())}return{duration:n,delay:a,easing:o}}(i,r,t)}function Hp(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(i).forEach(function(t){r[t]=i[t]}),r}function Sd(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r)for(var e in i)t[e]=i[e];else Hp(i,t);return t}function zK(i,r,t){return t?r+":"+t+";":""}function HK(i){for(var r="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(i,t);if("function"==typeof e)return void r.push(e);i=e}var n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return t.push(function c0e(i){return new gt(3015,Mn)}()),r;var a=n[1],o=n[2],s=n[3];r.push(WK(a,s)),"<"==o[0]&&!("*"==a&&"*"==s)&&r.push(WK(s,a))}(e,t,r)}):t.push(i),t}var Fw=new Set(["true","1"]),Lw=new Set(["false","0"]);function WK(i,r){var t=Fw.has(i)||Lw.has(i),e=Fw.has(r)||Lw.has(r);return function(n,a){var o="*"==i||i==n,s="*"==r||r==a;return!o&&t&&"boolean"==typeof n&&(o=n?Fw.has(i):Lw.has(i)),!s&&e&&"boolean"==typeof a&&(s=a?Fw.has(r):Lw.has(r)),o&&s}}var U0e=new RegExp("s*".concat(":self","s*,?"),"g");function qK(i,r,t,e){return new z0e(i).build(r,t,e)}var z0e=function(){function i(r){p(this,i),this._driver=r}return v(i,[{key:"build",value:function(t,e,n){var a=new j0e(e);this._resetContextStyleTimingState(a);var o=Wo(this,_y(t),a);return a.unsupportedCSSPropertiesFound.size&&Ae(a.unsupportedCSSPropertiesFound.keys()),o}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,e){var n=this,a=e.queryCount=0,o=e.depCount=0,s=[],l=[];return"@"==t.name.charAt(0)&&e.errors.push(function JDe(){return new gt(3006,Mn)}()),t.definitions.forEach(function(u){if(n._resetContextStyleTimingState(e),0==u.type){var c=u,d=c.name;d.toString().split(/\s*,\s*/).forEach(function(f){c.name=f,s.push(n.visitState(c,e))}),c.name=d}else if(1==u.type){var h=n.visitTransition(u,e);a+=h.queryCount,o+=h.depCount,l.push(h)}else e.errors.push(function e0e(){return new gt(3007,Mn)}())}),{type:7,name:t.name,states:s,transitions:l,queryCount:a,depCount:o,options:null}}},{key:"visitState",value:function(t,e){var n=this.visitStyle(t.styles,e),a=t.options&&t.options.params||null;if(n.containsDynamicStyles){var o=new Set,s=a||{};n.styles.forEach(function(u){if(Pw(u)){var c=u;Object.keys(c).forEach(function(d){KK(c[d]).forEach(function(h){s.hasOwnProperty(h)||o.add(h)})})}}),o.size&&(Rw(o.values()),e.errors.push(function t0e(i,r){return new gt(3008,Mn)}()))}return{type:0,name:t.name,style:n,options:a?{params:a}:null}}},{key:"visitTransition",value:function(t,e){e.queryCount=0,e.depCount=0;var n=Wo(this,_y(t.animation),e);return{type:1,matchers:B0e(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:af(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(a){return Wo(n,a,e)}),options:af(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,a=e.currentTime,o=0,s=t.steps.map(function(l){e.currentTime=a;var u=Wo(n,l,e);return o=Math.max(o,e.currentTime),u});return e.currentTime=o,{type:3,steps:s,options:af(t.options)}}},{key:"visitAnimate",value:function(t,e){var n=function $0e(i,r){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return _O(xw(i,r).duration,0,"");var e=i,n=e.split(/\s+/).some(function(s){return"{"==s.charAt(0)&&"{"==s.charAt(1)});if(n){var a=_O(0,0,"");return a.dynamic=!0,a.strValue=e,a}var o=xw(e,r);return _O(o.duration,o.delay,o.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var a,o=t.styles?t.styles:Ft({});if(5==o.type)a=this.visitKeyframes(o,e);else{var s=t.styles,l=!1;if(!s){l=!0;var u={};n.easing&&(u.easing=n.easing),s=Ft(u)}e.currentTime+=n.duration+n.delay;var c=this.visitStyle(s,e);c.isEmptyStep=l,a=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:a,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(s){"string"==typeof s?s==ul?n.push(s):e.errors.push(function n0e(i){return new gt(3002,Mn)}()):n.push(s)}):n.push(t.styles);var a=!1,o=null;return n.forEach(function(s){if(Pw(s)){var l=s,u=l.easing;if(u&&(o=u,delete l.easing),!a)for(var c in l)if(l[c].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:a,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,a=e.currentAnimateTimings,o=e.currentTime,s=e.currentTime;a&&s>0&&(s-=a.duration+a.delay),t.styles.forEach(function(l){"string"!=typeof l&&Object.keys(l).forEach(function(u){if(!n._driver.validateStyleProperty(u))return delete l[u],void e.unsupportedCSSPropertiesFound.add(u);var c=e.collectedStyles[e.currentQuerySelector],d=c[u],h=!0;d&&(s!=o&&s>=d.startTime&&o<=d.endTime&&(e.errors.push(function i0e(i,r,t,e,n){return new gt(3010,Mn)}()),h=!1),s=d.startTime),h&&(c[u]={startTime:s,endTime:o}),e.options&&function R0e(i,r,t){var e=r.params||{},n=KK(i);n.length&&n.forEach(function(a){e.hasOwnProperty(a)||t.push(function XDe(i){return new gt(3001,Mn)}())})}(l[u],e.options,e.errors)})})}},{key:"visitKeyframes",value:function(t,e){var n=this,a={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function r0e(){return new gt(3011,Mn)}()),a;var s=0,l=[],u=!1,c=!1,d=0,h=t.steps.map(function(M){var R=n._makeStyleAst(M,e),N=null!=R.offset?R.offset:function W0e(i){if("string"==typeof i)return null;var r=null;if(Array.isArray(i))i.forEach(function(e){if(Pw(e)&&e.hasOwnProperty("offset")){var n=e;r=parseFloat(n.offset),delete n.offset}});else if(Pw(i)&&i.hasOwnProperty("offset")){var t=i;r=parseFloat(t.offset),delete t.offset}return r}(R.styles),V=0;return null!=N&&(s++,V=R.offset=N),c=c||V<0||V>1,u=u||V0&&s0?R==_?1:g*R:l[R],V=N*E;e.currentTime=C+w.delay+V,w.duration=V,n._validateStyleAst(M,e),M.offset=N,a.styles.push(M)}),a}},{key:"visitReference",value:function(t,e){return{type:8,animation:Wo(this,_y(t.animation),e),options:af(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:af(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:af(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,a=t.options||{};e.queryCount++,e.currentQuery=t;var o=function H0e(i){var r=!!i.split(/\s*,\s*/).find(function(t){return":self"==t});return r&&(i=i.replace(U0e,"")),i=i.replace(/@\*/g,Aw).replace(/@\w+/g,function(t){return Aw+"-"+t.substr(1)}).replace(/:animating/g,vO),[i,r]}(t.selector),s=Gt(o,2),l=s[0],u=s[1];e.currentQuerySelector=n.length?n+" "+l:l,jo(e.collectedStyles,e.currentQuerySelector,{});var c=Wo(this,_y(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:u,animation:c,originalSelector:t.selector,options:af(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push(function l0e(){return new gt(3013,Mn)}());var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:xw(t.timings,e.errors,!0);return{type:12,animation:Wo(this,_y(t.animation),e),timings:n,options:null}}}]),i}(),j0e=v(function i(r){p(this,i),this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set});function Pw(i){return!Array.isArray(i)&&"object"==typeof i}function af(i){return i?(i=Hp(i)).params&&(i.params=function K0e(i){return i?Hp(i):null}(i.params)):i={},i}function _O(i,r,t){return{duration:i,delay:r,easing:t}}function yO(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:i,keyframes:r,preStyleProps:t,postStyleProps:e,duration:n,delay:a,totalTime:n+a,easing:o,subTimeline:s}}var kO=function(){function i(){p(this,i),this._map=new Map}return v(i,[{key:"get",value:function(t){return this._map.get(t)||[]}},{key:"append",value:function(t,e){var n,a=this._map.get(t);a||this._map.set(t,a=[]),(n=a).push.apply(n,Ae(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),i}(),Z0e=new RegExp(":enter","g"),Q0e=new RegExp(":leave","g");function ZK(i,r,t,e,n){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new J0e).buildKeyframes(i,r,t,e,n,a,o,s,l,u)}var J0e=function(){function i(){p(this,i)}return v(i,[{key:"buildKeyframes",value:function(t,e,n,a,o,s,l,u,c){var d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new kO;var h=new eEe(t,e,c,a,o,d,[]);h.options=u,h.currentTimeline.setStyles([s],null,h.errors,u),Wo(this,n,h);var f=h.timelines.filter(function(w){return w.containsAnimation()});if(Object.keys(l).length){for(var g,_=f.length-1;_>=0;_--){var C=f[_];if(C.element===e){g=C;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([l],null,h.errors,u)}return f.length?f.map(function(w){return w.buildKeyframes()}):[yO(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.get(e.element);if(n){var a=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,a,a.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var o=e.currentTimeline.currentTime,s=null!=n.duration?nf(n.duration):null,l=null!=n.delay?nf(n.delay):null;return 0!==s&&t.forEach(function(u){var c=e.appendInstructionToTimeline(u,s,l);o=Math.max(o,c.duration+c.delay)}),o}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Wo(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,a=e.subContextCount,o=e,s=t.options;if(s&&(s.params||s.delay)&&((o=e.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Bw);var l=nf(s.delay);o.delayNextStep(l)}t.steps.length&&(t.steps.forEach(function(u){return Wo(n,u,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,a=[],o=e.currentTimeline.currentTime,s=t.options&&t.options.delay?nf(t.options.delay):0;t.steps.forEach(function(l){var u=e.createSubContext(t.options);s&&u.delayNextStep(s),Wo(n,l,u),o=Math.max(o,u.currentTimeline.currentTime),a.push(u.currentTimeline)}),a.forEach(function(l){return e.currentTimeline.mergeTimelineCollectedStyles(l)}),e.transformIntoNewTimeline(o),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return xw(e.params?Mw(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),a=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),a.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,a=e.currentAnimateTimings;!a&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=a&&a.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,a=e.currentTimeline.duration,o=n.duration,l=e.createSubContext().currentTimeline;l.easing=n.easing,t.styles.forEach(function(u){l.forwardTime((u.offset||0)*o),l.setStyles(u.styles,u.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(a+o),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,a=e.currentTimeline.currentTime,o=t.options||{},s=o.delay?nf(o.delay):0;s&&(6===e.previousNode.type||0==a&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Bw);var l=a,u=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=u.length;var c=null;u.forEach(function(d,h){e.currentQueryIndex=h;var f=e.createSubContext(t.options,d);s&&f.delayNextStep(s),d===e.element&&(c=f.currentTimeline),Wo(n,t.animation,f),f.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,f.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(l),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,a=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),l=s*(e.currentQueryTotal-1),u=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=l-u;break;case"full":u=n.currentStaggerTime}var d=e.currentTimeline;u&&d.delayNextStep(u);var h=d.currentTime;Wo(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=a.currentTime-h+(a.startTime-n.currentTimeline.startTime)}}]),i}(),Bw={},eEe=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this._driver=r,this.element=t,this.subInstructions=e,this._enterClassName=n,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Bw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new YK(this._driver,t,0),s.push(this.currentTimeline)}return v(i,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var n=this;if(t){var a=t,o=this.options;null!=a.duration&&(o.duration=nf(a.duration)),null!=a.delay&&(o.delay=nf(a.delay));var s=a.params;if(s){var l=o.params;l||(l=this.options.params={}),Object.keys(s).forEach(function(u){(!e||!l.hasOwnProperty(u))&&(l[u]=Mw(s[u],l,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(a){n[a]=e[a]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=e||this.element,o=new i(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Bw,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var a={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new tEe(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,a,t.stretchStartingKeyframe);return this.timelines.push(o),a}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,a,o,s){var l=[];if(a&&l.push(this.element),t.length>0){t=(t=t.replace(Z0e,"."+this._enterClassName)).replace(Q0e,"."+this._leaveClassName);var c=this._driver.query(this.element,t,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),l.push.apply(l,Ae(c))}return!o&&0==l.length&&s.push(function u0e(i){return new gt(3014,Mn)}()),l}}]),i}(),YK=function(){function i(r,t,e,n){p(this,i),this._driver=r,this.element=t,this.startTime=e,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return v(i,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,e){return this.applyStylesToKeyframe(),new i(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(n){e._backFill[n]=e._globalTimelineStyles[n]||ul,e._currentKeyframe[n]=ul}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,a){var o=this;e&&(this._previousKeyframe.easing=e);var s=a&&a.params||{},l=function nEe(i,r){var e,t={};return i.forEach(function(n){"*"===n?(e=e||Object.keys(r)).forEach(function(a){t[a]=ul}):Sd(n,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(l).forEach(function(u){var c=Mw(l[u],s,n);o._pendingStyles[u]=c,o._localTimelineStyles.hasOwnProperty(u)||(o._backFill[u]=o._globalTimelineStyles.hasOwnProperty(u)?o._globalTimelineStyles[u]:ul),o._updateStyle(u,c)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(a){t._currentKeyframe[a]=e[a]}),Object.keys(this._localTimelineStyles).forEach(function(a){t._currentKeyframe.hasOwnProperty(a)||(t._currentKeyframe[a]=t._localTimelineStyles[a])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var a=e._styleSummary[n],o=t._styleSummary[n];(!a||o.time>a.time)&&e._updateStyle(n,o.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,a=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(d,h){var f=Sd(d,!0);Object.keys(f).forEach(function(g){var _=f[g];"!"==_?e.add(g):_==ul&&n.add(g)}),a||(f.offset=h/t.duration),o.push(f)});var s=e.size?Rw(e.values()):[],l=n.size?Rw(n.values()):[];if(a){var u=o[0],c=Hp(u);u.offset=0,c.offset=1,o=[u,c]}return yO(this.element,o,s,l,this.duration,this.startTime,this.easing,!1)}}]),i}(),tEe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return p(this,t),(u=r.call(this,e,n,l.delay)).keyframes=a,u.preStyleProps=o,u.postStyleProps=s,u._stretchStartingKeyframe=c,u.timings={duration:l.duration,delay:l.delay,easing:l.easing},u}return v(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var n=this.keyframes,a=this.timings,o=a.delay,s=a.duration,l=a.easing;if(this._stretchStartingKeyframe&&o){var u=[],c=s+o,d=o/c,h=Sd(n[0],!1);h.offset=0,u.push(h);var f=Sd(n[0],!1);f.offset=QK(d),u.push(f);for(var g=n.length-1,_=1;_<=g;_++){var C=Sd(n[_],!1);C.offset=QK((o+C.offset*s)/c),u.push(C)}s=c,o=0,l="",n=u}return yO(this.element,n,this.preStyleProps,this.postStyleProps,s,o,l,!0)}}]),t}(YK);function QK(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,r-1);return Math.round(i*t)/t}var CO=v(function i(){p(this,i)}),iEe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"normalizePropertyName",value:function(n,a){return mO(n)}},{key:"normalizeStyleValue",value:function(n,a,o,s){var l="",u=o.toString().trim();if(rEe[a]&&0!==o&&"0"!==o)if("number"==typeof o)l="px";else{var c=o.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&s.push(function QDe(i,r){return new gt(3005,Mn)}())}return u+l}}]),t}(CO),rEe=function(){return function aEe(i){var r={};return i.forEach(function(t){return r[t]=!0}),r}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","))}();function JK(i,r,t,e,n,a,o,s,l,u,c,d,h){return{type:0,element:i,triggerName:r,isRemovalTransition:n,fromState:t,fromStyles:a,toState:e,toStyles:o,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var bO={},e6=function(){function i(r,t,e){p(this,i),this._triggerName=r,this.ast=t,this._stateStyles=e}return v(i,[{key:"match",value:function(t,e,n,a){return function oEe(i,r,t,e,n){return i.some(function(a){return a(r,t,e,n)})}(this.ast.matchers,t,e,n,a)}},{key:"buildStyles",value:function(t,e,n){var a=this._stateStyles["*"],o=this._stateStyles[t],s=a?a.buildStyles(e,n):{};return o?o.buildStyles(e,n):s}},{key:"build",value:function(t,e,n,a,o,s,l,u,c,d){var h=[],f=this.ast.options&&this.ast.options.params||bO,_=this.buildStyles(n,l&&l.params||bO,h),C=u&&u.params||bO,w=this.buildStyles(a,C,h),E=new Set,M=new Map,R=new Map,N="void"===a,V={params:Object.assign(Object.assign({},f),C)},U=d?[]:ZK(t,e,this.ast.animation,o,s,_,w,V,c,h),ee=0;if(U.forEach(function(G){ee=Math.max(G.duration+G.delay,ee)}),h.length)return JK(e,this._triggerName,n,a,N,_,w,[],[],M,R,ee,h);U.forEach(function(G){var I=G.element,K=jo(M,I,{});G.preStyleProps.forEach(function(se){return K[se]=!0});var H=jo(R,I,{});G.postStyleProps.forEach(function(se){return H[se]=!0}),I!==e&&E.add(I)});var ve=Rw(E.values());return JK(e,this._triggerName,n,a,N,_,w,U,ve,M,R,ee)}}]),i}(),sEe=function(){function i(r,t,e){p(this,i),this.styles=r,this.defaultParams=t,this.normalizer=e}return v(i,[{key:"buildStyles",value:function(t,e){var n=this,a={},o=Hp(this.defaultParams);return Object.keys(t).forEach(function(s){var l=t[s];null!=l&&(o[s]=l)}),this.styles.styles.forEach(function(s){if("string"!=typeof s){var l=s;Object.keys(l).forEach(function(u){var c=l[u];c.length>1&&(c=Mw(c,o,e));var d=n.normalizer.normalizePropertyName(u,e);c=n.normalizer.normalizeStyleValue(u,d,c,e),a[d]=c})}}),a}}]),i}(),uEe=function(){function i(r,t,e){var n=this;p(this,i),this.name=r,this.ast=t,this._normalizer=e,this.transitionFactories=[],this.states={},t.states.forEach(function(a){n.states[a.name]=new sEe(a.style,a.options&&a.options.params||{},e)}),t6(this.states,"true","1"),t6(this.states,"false","0"),t.transitions.forEach(function(a){n.transitionFactories.push(new e6(r,a,n.states))}),this.fallbackTransition=function cEe(i,r,t){return new e6(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(o,s){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states)}return v(i,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,n,a){return this.transitionFactories.find(function(s){return s.match(t,e,n,a)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}]),i}();function t6(i,r,t){i.hasOwnProperty(r)?i.hasOwnProperty(t)||(i[t]=i[r]):i.hasOwnProperty(t)&&(i[r]=i[t])}var dEe=new kO,hEe=function(){function i(r,t,e){p(this,i),this.bodyNode=r,this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return v(i,[{key:"register",value:function(t,e){var n=[],o=qK(this._driver,e,n,[]);if(n.length)throw function v0e(i){return new gt(3503,Mn)}();this._animations[t]=o}},{key:"_buildPlayer",value:function(t,e,n){var a=t.element,o=MK(this._driver,this._normalizer,a,t.keyframes,e,n);return this._driver.animate(a,o,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var l,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[t],u=new Map;if(s?(l=ZK(this._driver,e,s,VK,fO,{},{},a,dEe,o)).forEach(function(h){var f=jo(u,h.element,{});h.postStyleProps.forEach(function(g){return f[g]=null})}):(o.push(p0e()),l=[]),o.length)throw g0e();u.forEach(function(h,f){Object.keys(h).forEach(function(g){h[g]=n._driver.computeStyle(f,g,ul)})});var c=l.map(function(h){var f=u.get(h.element);return n._buildPlayer(h,{},f)}),d=bd(c);return this._playersById[t]=d,d.onDestroy(function(){return n.destroy(t)}),this.players.push(d),d}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw function m0e(i){return new gt(3301,Mn)}();return e}},{key:"listen",value:function(t,e,n,a){var o=uO(e,"","","");return sO(this._getPlayer(t),n,o,a),function(){}}},{key:"command",value:function(t,e,n,a){if("register"!=n)if("create"!=n){var s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,a[0]||{});else this.register(t,a[0])}}]),i}(),n6="ng-animate-queued",SO="ng-animate-disabled",pEe="ng-star-inserted",mEe=[],i6={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_Ee={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ms="__ng_removed",wO=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";p(this,i),this.namespaceId=t;var e=r&&r.hasOwnProperty("value"),n=e?r.value:r;if(this.value=bEe(n),e){var a=Hp(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return v(i,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(a){null==n[a]&&(n[a]=e[a])})}}}]),i}(),yy="void",DO=new wO(yy),yEe=function(){function i(r,t,e){p(this,i),this.id=r,this.hostElement=t,this._engine=e,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Rs(t,this._hostClassName)}return v(i,[{key:"listen",value:function(t,e,n,a){var o=this;if(!this._triggers.hasOwnProperty(e))throw function _0e(i,r){return new gt(3302,Mn)}();if(null==n||0==n.length)throw function y0e(i){return new gt(3303,Mn)}();if(!function SEe(i){return"start"==i||"done"==i}(n))throw function k0e(i,r){return new gt(3400,Mn)}();var s=jo(this._elementListeners,t,[]),l={name:e,phase:n,callback:a};s.push(l);var u=jo(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Rs(t,Tw),Rs(t,Tw+"-"+e),u[e]=DO),function(){o._engine.afterFlush(function(){var c=s.indexOf(l);c>=0&&s.splice(c,1),o._triggers[e]||delete u[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw function C0e(i){return new gt(3401,Mn)}();return e}},{key:"trigger",value:function(t,e,n){var a=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(e),l=new EO(this.id,e,t),u=this._engine.statesByElement.get(t);u||(Rs(t,Tw),Rs(t,Tw+"-"+e),this._engine.statesByElement.set(t,u={}));var c=u[e],d=new wO(n,this.id),h=n&&n.hasOwnProperty("value");!h&&c&&d.absorbOptions(c.options),u[e]=d,c||(c=DO);var f=d.value===yy;if(f||c.value!==d.value){var w=jo(this._engine.playersByElement,t,[]);w.forEach(function(R){R.namespaceId==a.id&&R.triggerName==e&&R.queued&&R.destroy()});var E=s.matchTransition(c.value,d.value,t,d.params),M=!1;if(!E){if(!o)return;E=s.fallbackTransition,M=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:E,fromState:c,toState:d,player:l,isFallbackTransition:M}),M||(Rs(t,n6),l.onStart(function(){Kp(t,n6)})),l.onDone(function(){var R=a.players.indexOf(l);R>=0&&a.players.splice(R,1);var N=a._engine.playersByElement.get(t);if(N){var V=N.indexOf(l);V>=0&&N.splice(V,1)}}),this.players.push(l),w.push(l),l}if(!EEe(c.params,d.params)){var g=[],_=s.matchStyles(c.value,c.params,g),C=s.matchStyles(d.value,d.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(function(){rf(t,_),ru(t,C)})}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(n,a){delete n[t]}),this._elementListeners.forEach(function(n,a){e._elementListeners.set(a,n.filter(function(o){return o.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(n){return n.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,a=this._engine.driver.query(t,Aw,!0);a.forEach(function(o){if(!o[Ms]){var s=n._engine.fetchNamespacesByElement(o);s.size?s.forEach(function(l){return l.triggerLeaveAnimation(o,e,!1,!0)}):n.clearElementCache(o)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(o){return n.clearElementCache(o)})})}},{key:"triggerLeaveAnimation",value:function(t,e,n,a){var o=this,s=this._engine.statesByElement.get(t),l=new Map;if(s){var u=[];if(Object.keys(s).forEach(function(c){if(l.set(c,s[c].value),o._triggers[c]){var d=o.trigger(t,c,yy,a);d&&u.push(d)}}),u.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,l),n&&bd(u).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t),a=this._engine.statesByElement.get(t);if(n&&a){var o=new Set;n.forEach(function(s){var l=s.name;if(!o.has(l)){o.add(l);var c=e._triggers[l].fallbackTransition,d=a[l]||DO,h=new wO(yy),f=new EO(e.id,l,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:l,transition:c,fromState:d,toState:h,player:f,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,e){var n=this,a=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var o=!1;if(a.totalAnimations){var s=a.players.length?a.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else for(var l=t;l=l.parentNode;)if(a.statesByElement.get(l)){o=!0;break}}if(this.prepareLeaveAnimationListeners(t),o)a.markElementAsRemoved(this.id,t,!1,e);else{var c=t[Ms];(!c||c===i6)&&(a.afterFlush(function(){return n.clearElementCache(t)}),a.destroyInnerAnimations(t),a._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){Rs(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach(function(a){var o=a.player;if(!o.destroyed){var s=a.element,l=e._elementListeners.get(s);l&&l.forEach(function(u){if(u.name==a.triggerName){var c=uO(s,a.triggerName,a.fromState.value,a.toState.value);c._data=t,sO(a.player,u.phase,c,u.callback)}}),o.markedForDestroy?e._engine.afterFlush(function(){o.destroy()}):n.push(a)}}),this._queue=[],n.sort(function(a,o){var s=a.transition.ast.depCount,l=o.transition.ast.depCount;return 0==s||0==l?s-l:e._engine.driver.containsElement(a.element,o.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(n){return n.element===t})||e}}]),i}(),kEe=function(){function i(r,t,e){p(this,i),this.bodyNode=r,this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(n,a){}}return v(i,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(n){n.queued&&t.push(n)})}),t}},{key:"createNamespace",value:function(t,e){var n=new yEe(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList,a=this.namespacesByHostElement,o=n.length-1;if(o>=0){var s=!1;if(void 0!==this.driver.getParentElement)for(var l=this.driver.getParentElement(e);l;){var u=a.get(l);if(u){var c=n.indexOf(u);n.splice(c+1,0,t),s=!0;break}l=this.driver.getParentElement(l)}else for(var d=o;d>=0;d--)if(this.driver.containsElement(n[d].hostElement,e)){n.splice(d+1,0,t),s=!0;break}s||n.unshift(t)}else n.push(t);return a.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var a=this._namespaceLookup[t];a&&a.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var a=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(a.hostElement),delete n._namespaceLookup[t];var o=n._namespaceList.indexOf(a);o>=0&&n._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var a=Object.keys(n),o=0;o=0&&this.collectedLeaveElements.splice(s,1)}if(t){var l=this._fetchNamespace(t);l&&l.insertNode(e,n)}a&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rs(t,SO)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kp(t,SO))}},{key:"removeNode",value:function(t,e,n,a){if(Gw(e)){var o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,a):this.markElementAsRemoved(t,e,!1,a),n){var s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,a)}}else this._onRemovalComplete(e,a)}},{key:"markElementAsRemoved",value:function(t,e,n,a,o){this.collectedLeaveElements.push(e),e[Ms]={namespaceId:t,setForRemoval:a,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}},{key:"listen",value:function(t,e,n,a,o){return Gw(e)?this._fetchNamespace(t).listen(e,n,a,o):function(){}}},{key:"_buildInstruction",value:function(t,e,n,a,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,a,t.fromState.options,t.toState.options,e,o)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,Aw,!0);n.forEach(function(a){return e.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,vO,!0)).forEach(function(a){return e.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(n){n.queued?n.markedForDestroy=!0:n.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(n){return n.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return bd(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var n,e=this,a=t[Ms];if(a&&a.setForRemoval){if(t[Ms]=i6,a.namespaceId){this.destroyInnerAnimations(t);var o=this._fetchNamespace(a.namespaceId);o&&o.clearElementCache(t)}this._onRemovalComplete(t,a.setForRemoval)}(null===(n=t.classList)||void 0===n?void 0:n.contains(SO))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(s){e.markElementAsDisabled(s,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(h,f){return t._balanceNamespaceList(h,f)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;K--)this._namespaceList[K].drainQueuedTransitions(e).forEach(function(it){var ct=it.player,Et=it.element;if(G.push(ct),n.collectedEnterElements.length){var gi=Et[Ms];if(gi&&gi.setForMove){if(gi.previousTriggersValues&&gi.previousTriggersValues.has(it.triggerName)){var qu=gi.previousTriggersValues.get(it.triggerName),Oo=n.statesByElement.get(it.element);Oo&&Oo[it.triggerName]&&(Oo[it.triggerName].value=qu)}return void ct.destroy()}}var xh=!f||!n.driver.containsElement(f,Et),Lv=ee.get(Et),GA=C.get(Et),Dr=n._buildInstruction(it,a,GA,Lv,xh);if(Dr.errors&&Dr.errors.length)I.push(Dr);else{if(xh)return ct.onStart(function(){return rf(Et,Dr.fromStyles)}),ct.onDestroy(function(){return ru(Et,Dr.toStyles)}),void o.push(ct);if(it.isFallbackTransition)return ct.onStart(function(){return rf(Et,Dr.fromStyles)}),ct.onDestroy(function(){return ru(Et,Dr.toStyles)}),void o.push(ct);var Ub=[];Dr.timelines.forEach(function(Xu){Xu.stretchStartingKeyframe=!0,n.disabledNodes.has(Xu.element)||Ub.push(Xu)}),Dr.timelines=Ub,a.append(Et,Dr.timelines),l.push({instruction:Dr,player:ct,element:Et}),Dr.queriedElements.forEach(function(Xu){return jo(u,Xu,[]).push(ct)}),Dr.preStyleProps.forEach(function(Xu,Mh){var zb=Object.keys(Xu);if(zb.length){var Zu=c.get(Mh);Zu||c.set(Mh,Zu=new Set),zb.forEach(function(UA){return Zu.add(UA)})}}),Dr.postStyleProps.forEach(function(Xu,Mh){var zb=Object.keys(Xu),Zu=d.get(Mh);Zu||d.set(Mh,Zu=new Set),zb.forEach(function(UA){return Zu.add(UA)})})}});if(I.length){var se=[];I.forEach(function(it){se.push(function S0e(i,r){return new gt(3505,Mn)}())}),G.forEach(function(it){return it.destroy()}),this.reportError(se)}var me=new Map,ae=new Map;l.forEach(function(it){var ct=it.element;a.has(ct)&&(ae.set(ct,ct),n._beforeAnimationBuild(it.player.namespaceId,it.instruction,me))}),o.forEach(function(it){var ct=it.element;n._getPreviousPlayers(ct,!1,it.namespaceId,it.triggerName,null).forEach(function(gi){jo(me,ct,[]).push(gi),gi.destroy()})});var Ne=E.filter(function(it){return l6(it,c,d)}),Ce=new Map;a6(Ce,this.driver,R,d,ul).forEach(function(it){l6(it,c,d)&&Ne.push(it)});var Be=new Map;_.forEach(function(it,ct){a6(Be,n.driver,new Set(it),c,"!")}),Ne.forEach(function(it){var ct=Ce.get(it),Et=Be.get(it);Ce.set(it,Object.assign(Object.assign({},ct),Et))});var je=[],kt=[],Xt={};l.forEach(function(it){var ct=it.element,Et=it.player,gi=it.instruction;if(a.has(ct)){if(h.has(ct))return Et.onDestroy(function(){return ru(ct,gi.toStyles)}),Et.disabled=!0,Et.overrideTotalTime(gi.totalTime),void o.push(Et);var qu=Xt;if(ae.size>1){for(var Oo=ct,xh=[];Oo=Oo.parentNode;){var Lv=ae.get(Oo);if(Lv){qu=Lv;break}xh.push(Oo)}xh.forEach(function(Ub){return ae.set(Ub,qu)})}var GA=n._buildAnimation(Et.namespaceId,gi,me,s,Be,Ce);if(Et.setRealPlayer(GA),qu===Xt)je.push(Et);else{var Dr=n.playersByElement.get(qu);Dr&&Dr.length&&(Et.parentPlayer=bd(Dr)),o.push(Et)}}else rf(ct,gi.fromStyles),Et.onDestroy(function(){return ru(ct,gi.toStyles)}),kt.push(Et),h.has(ct)&&o.push(Et)}),kt.forEach(function(it){var ct=s.get(it.element);if(ct&&ct.length){var Et=bd(ct);it.setRealPlayer(Et)}}),o.forEach(function(it){it.parentPlayer?it.syncPlayerEvents(it.parentPlayer):it.destroy()});for(var zn=0;zn0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new my(t.duration,t.delay)}}]),i}(),EO=function(){function i(r,t,e){p(this,i),this.namespaceId=r,this.triggerName=t,this.element=e,this._player=new my,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return v(i,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(a){return sO(t,n,void 0,a)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){jo(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),i}();function bEe(i){return null!=i?i:null}function Gw(i){return i&&1===i.nodeType}function r6(i,r){var t=i.style.display;return i.style.display=null!=r?r:"none",t}function a6(i,r,t,e,n){var a=[];t.forEach(function(l){return a.push(r6(l))});var o=[];e.forEach(function(l,u){var c={};l.forEach(function(d){var h=c[d]=r.computeStyle(u,d,n);(!h||0==h.length)&&(u[Ms]=_Ee,o.push(u))}),i.set(u,c)});var s=0;return t.forEach(function(l){return r6(l,a[s++])}),o}function o6(i,r){var t=new Map;if(i.forEach(function(s){return t.set(s,[])}),0==r.length)return t;var n=new Set(r),a=new Map;function o(s){if(!s)return 1;var l=a.get(s);if(l)return l;var u=s.parentNode;return l=t.has(u)?u:n.has(u)?1:o(u),a.set(s,l),l}return r.forEach(function(s){var l=o(s);1!==l&&t.get(l).push(s)}),t}function Rs(i,r){var t;null===(t=i.classList)||void 0===t||t.add(r)}function Kp(i,r){var t;null===(t=i.classList)||void 0===t||t.remove(r)}function wEe(i,r,t){bd(t).onDone(function(){return i.processLeaveNode(r)})}function s6(i,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),i}();function TEe(i,r){var t=null,e=null;return Array.isArray(r)&&r.length?(t=TO(r[0]),r.length>1&&(e=TO(r[r.length-1]))):r&&(t=TO(r)),t||e?new AEe(i,t,e):null}var AEe=function(){var i=function(){function r(t,e,n){p(this,r),this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;var a=r.initialStylesByElement.get(t);a||r.initialStylesByElement.set(t,a={}),this._initialStyles=a}return v(r,[{key:"start",value:function(){this._state<1&&(this._startStyles&&ru(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(ru(this._element,this._initialStyles),this._endStyles&&(ru(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(rf(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rf(this._element,this._endStyles),this._endStyles=null),ru(this._element,this._initialStyles),this._state=3)}}]),r}();return i.initialStylesByElement=new WeakMap,i}();function TO(i){for(var r=null,t=Object.keys(i),e=0;e5&&void 0!==arguments[5]?arguments[5]:[],l=0==a?"both":"forwards",u={duration:n,delay:a,fill:l};o&&(u.easing=o);var c={},d=s.filter(function(f){return f instanceof u6});N0e(n,a)&&d.forEach(function(f){var g=f.currentSnapshot;Object.keys(g).forEach(function(_){return c[_]=g[_]})});var h=TEe(t,e=F0e(t,e=e.map(function(f){return Sd(f,!1)}),c));return new u6(t,e,u,h)}}]),i}(),REe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this))._nextAnimationId=0,o._renderer=n.createRenderer(a.body,{id:"0",encapsulation:Qs.None,styles:[],data:{animation:[]}}),o}return v(e,[{key:"build",value:function(a){var o=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(a)?Dw(a):a;return c6(this._renderer,null,o,"register",[s]),new OEe(o,this._renderer)}}]),e}(zp);return i.\u0275fac=function(t){return new(t||i)(oe(ny),oe(pa))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),OEe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this))._id=e,a._renderer=n,a}return v(t,[{key:"create",value:function(n,a){return new IEe(this._id,n,a||{},this._renderer)}}]),t}(WDe),IEe=function(){function i(r,t,e,n){p(this,i),this.id=r,this.element=t,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",e)}return v(i,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,a)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,a){this.delegate.setAttribute(t,e,n,a)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,a){this.delegate.setStyle(t,e,n,a)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)&&e==d6?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),i}(),FEe=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,n,a,o)).factory=e,s.namespaceId=n,s}return v(t,[{key:"setProperty",value:function(n,a,o){"@"==a.charAt(0)?"."==a.charAt(1)&&a==d6?this.disableAnimations(n,o=void 0===o||!!o):this.engine.process(this.namespaceId,n,a.substr(1),o):this.delegate.setProperty(n,a,o)}},{key:"listen",value:function(n,a,o){var s=this;if("@"==a.charAt(0)){var l=function LEe(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(n),u=a.substr(1),c="";if("@"!=u.charAt(0)){var d=function PEe(i){var r=i.indexOf(".");return[i.substring(0,r),i.substr(r+1)]}(u),h=Gt(d,2);u=h[0],c=h[1]}return this.engine.listen(this.namespaceId,l,u,c,function(f){s.factory.scheduleListenerCallback(f._data||-1,o,f)})}return this.delegate.listen(n,a,o)}}]),t}(h6),BEe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){return p(this,e),t.call(this,n.body,a,o)}return v(e,[{key:"ngOnDestroy",value:function(){this.flush()}}]),e}(Vw);return i.\u0275fac=function(t){return new(t||i)(oe(pa),oe(hO),oe(CO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),f6=new wt("AnimationModuleType"),v6=[{provide:zp,useClass:REe},{provide:CO,useFactory:function GEe(){return new iEe}},{provide:Vw,useClass:BEe},{provide:ny,useFactory:function VEe(i,r,t){return new NEe(i,r,t)},deps:[ww,Vw,be]}],p6=[{provide:hO,useFactory:function(){return new MEe}},{provide:f6,useValue:"BrowserAnimations"}].concat(v6),UEe=[{provide:hO,useClass:BK},{provide:f6,useValue:"NoopAnimations"}].concat(v6),zEe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"withConfig",value:function(e){return{ngModule:r,providers:e.disableAnimations?UEe:p6}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:p6,imports:[oK]}),i}();function jp(i){return new An(function(r){Pi(i()).subscribe(r)})}function ky(i,r){var t=wn(i)?i:function(){return i},e=function(a){return a.error(t())};return new An(r?function(n){return r.schedule(e,0,n)}:e)}var HEe=Array.isArray;function AO(i){return We(function(r){return function KEe(i,r){return HEe(r)?i.apply(void 0,Ae(r)):i(r)}(i,r)})}var jEe=["addListener","removeListener"],WEe=["addEventListener","removeEventListener"],$Ee=["on","off"];function li(i,r,t,e){if(wn(t)&&(e=t,t=void 0),e)return li(i,r,t).pipe(AO(e));var a=Gt(function ZEe(i){return wn(i.addEventListener)&&wn(i.removeEventListener)}(i)?WEe.map(function(l){return function(u){return i[l](r,u,t)}}):function qEe(i){return wn(i.addListener)&&wn(i.removeListener)}(i)?jEe.map(g6(i,r)):function XEe(i){return wn(i.on)&&wn(i.off)}(i)?$Ee.map(g6(i,r)):[],2),o=a[0],s=a[1];if(!o&&ic(i))return Bi(function(l){return li(l,r,t)})(Pi(i));if(!o)throw new TypeError("Invalid event target");return new An(function(l){var u=function(){for(var d=arguments.length,h=new Array(d),f=0;f1&&void 0!==arguments[1]?arguments[1]:JEe,t=r.connector;return oi(function(e,n){var a=t();wi(i(QEe(a))).subscribe(n),n.add(e.subscribe(a))})}function At(i,r,t){var e=wn(i)||r||t?{next:i,error:r,complete:t}:i;return e?oi(function(n,a){var o;null===(o=e.subscribe)||void 0===o||o.call(e);var s=!0;n.subscribe(Wn(a,function(l){var u;null===(u=e.next)||void 0===u||u.call(e,l),a.next(l)},function(){var l;s=!1,null===(l=e.complete)||void 0===l||l.call(e),a.complete()},function(l){var u;s=!1,null===(u=e.error)||void 0===u||u.call(e,l),a.error(l)},function(){var l,u;s&&(null===(l=e.unsubscribe)||void 0===l||l.call(e)),null===(u=e.finalize)||void 0===u||u.call(e)}))}):zl}var n1e=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),r.call(this)}return v(t,[{key:"schedule",value:function(n){return this}}]),t}(Je),zw={setInterval:function(i){function r(t,e){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(i,r){for(var t=zw.delegate,e=arguments.length,n=new Array(e>2?e-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=n;var o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,a)),this.pending=!0,this.delay=a,this.id=this.id||this.requestAsyncId(s,this.id,a),this}},{key:"requestAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return zw.setInterval(n.flush.bind(n,this),o)}},{key:"recycleAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&this.delay===o&&!1===this.pending)return a;zw.clearInterval(a)}},{key:"execute",value:function(n,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(n,a);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(n,a){var s,o=!1;try{this.work(n)}catch(l){o=!0,s=l||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s}},{key:"unsubscribe",value:function(){if(!this.closed){var n=this.id,a=this.scheduler,o=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Nh(o,this),null!=n&&(this.id=this.recycleAsyncId(a,n,null)),this.delay=null,$(q(t.prototype),"unsubscribe",this).call(this)}}}]),t}(n1e),xO={now:function(){return(xO.delegate||Date).now()},delegate:void 0},MO=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;p(this,i),this.schedulerActionCtor=r,this.now=t}return v(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.schedulerActionCtor(this,t).schedule(n,e)}}]),i}();MO.now=xO.now;var C6=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:MO.now;return p(this,t),(n=r.call(this,e,a)).actions=[],n._active=!1,n._scheduled=void 0,n}return v(t,[{key:"flush",value:function(n){var a=this.actions;if(this._active)a.push(n);else{var o;this._active=!0;do{if(o=n.execute(n.state,n.delay))break}while(n=a.shift());if(this._active=!1,o){for(;n=a.shift();)n.unsubscribe();throw o}}}}]),t}(MO),Wp=new C6(k6),i1e=Wp;function b6(i,r){return r?function(t){return sf(r.pipe(It(1),function r1e(){return oi(function(i,r){i.subscribe(Wn(r,Fh))})}()),t.pipe(b6(i)))}:Bi(function(t,e){return i(t,e).pipe(It(1),function a1e(i){return We(function(){return i})}(t))})}function o1e(i){return i instanceof Date&&!isNaN(i)}function Hw(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i1e,e=-1;return null!=r&&(g_(r)?t=r:e=r),new An(function(n){var a=o1e(i)?+i-t.now():i;a<0&&(a=0);var o=0;return t.schedule(function(){n.closed||(n.next(o++),0<=e?this.schedule(void 0,e):n.complete())},a)})}function Dd(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp,t=Hw(i,r);return b6(function(){return t})}var Cy="Service workers are disabled or not supported by this browser",Kw=function(){function i(r){if(p(this,i),this.serviceWorker=r,r){var e=li(r,"controllerchange").pipe(We(function(){return r.controller})),a=sf(jp(function(){return lt(r.controller)}),e);this.worker=a.pipe(Ue(function(c){return!!c})),this.registration=this.worker.pipe(Nn(function(){return r.getRegistration()}));var u=li(r,"message").pipe(We(function(c){return c.data})).pipe(Ue(function(c){return c&&c.type})).pipe(function t1e(i){return i?function(r){return y6(i)(r)}:function(r){return function e1e(i,r){var t=wn(i)?i:function(){return i};return wn(r)?y6(r,{connector:t}):function(e){return new _6(e,t)}}(new Ot)(r)}}());u.connect(),this.events=u}else this.worker=this.events=this.registration=function s1e(i){return jp(function(){return ky(new Error(i))})}(Cy)}return v(i,[{key:"postMessage",value:function(t,e){return this.worker.pipe(It(1),At(function(n){n.postMessage(Object.assign({action:t},e))})).toPromise().then(function(){})}},{key:"postMessageWithOperation",value:function(t,e,n){var a=this.waitForOperationCompleted(n),o=this.postMessage(t,e);return Promise.all([o,a]).then(function(s){return Gt(s,2)[1]})}},{key:"generateNonce",value:function(){return Math.round(1e7*Math.random())}},{key:"eventsOfType",value:function(t){return this.events.pipe(Ue("string"==typeof t?function(a){return a.type===t}:function(a){return t.includes(a.type)}))}},{key:"nextEventOfType",value:function(t){return this.eventsOfType(t).pipe(It(1))}},{key:"waitForOperationCompleted",value:function(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(Ue(function(e){return e.nonce===t}),It(1),We(function(e){if(void 0!==e.result)return e.result;throw new Error(e.error)})).toPromise()}},{key:"isEnabled",get:function(){return!!this.serviceWorker}}]),i}(),l1e=function(){var i=function(){function r(t){if(p(this,r),this.sw=t,this.subscriptionChanges=new Ot,!t.isEnabled)return this.messages=wd,this.notificationClicks=wd,void(this.subscription=wd);this.messages=this.sw.eventsOfType("PUSH").pipe(We(function(n){return n.data})),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(We(function(n){return n.data})),this.pushManager=this.sw.registration.pipe(We(function(n){return n.pushManager}));var e=this.pushManager.pipe(Nn(function(n){return n.getSubscription()}));this.subscription=xn(e,this.subscriptionChanges)}return v(r,[{key:"isEnabled",get:function(){return this.sw.isEnabled}},{key:"requestSubscription",value:function(e){var n=this;if(!this.sw.isEnabled)return Promise.reject(new Error(Cy));for(var a={userVisibleOnly:!0},o=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(o.length)),l=0;l1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:r,providers:[{provide:S6,useValue:e},{provide:RO,useValue:n},{provide:Kw,useFactory:d1e,deps:[RO,cy]},{provide:lw,useFactory:c1e,deps:[Jn,S6,RO,cy],multi:!0}]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[l1e,u1e]}),i}();function $p(i){return!!i&&(i instanceof An||wn(i.lift)&&wn(i.subscribe))}var f1e=Array.isArray,v1e=Object.getPrototypeOf,p1e=Object.prototype,g1e=Object.keys;function E6(i){if(1===i.length){var r=i[0];if(f1e(r))return{args:r,keys:null};if(function m1e(i){return i&&"object"==typeof i&&v1e(i)===p1e}(r)){var t=g1e(r);return{args:t.map(function(e){return r[e]}),keys:t}}}return{args:i,keys:null}}function T6(i,r){return i.reduce(function(t,e,n){return t[e]=r[n],t},{})}function OO(){for(var i=arguments.length,r=new Array(i),t=0;t0&&void 0!==arguments[0]?arguments[0]:1/0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xO;return p(this,t),(e=r.call(this))._bufferSize=n,e._windowTime=a,e._timestampProvider=o,e._buffer=[],e._infiniteTimeWindow=!0,e._infiniteTimeWindow=a===1/0,e._bufferSize=Math.max(1,n),e._windowTime=Math.max(1,a),e}return v(t,[{key:"next",value:function(n){var o=this._buffer,s=this._infiniteTimeWindow,l=this._timestampProvider,u=this._windowTime;this.isStopped||(o.push(n),!s&&o.push(l.now()+u)),this._trimBuffer(),$(q(t.prototype),"next",this).call(this,n)}},{key:"_subscribe",value:function(n){this._throwIfClosed(),this._trimBuffer();for(var a=this._innerSubscribe(n),o=this._infiniteTimeWindow,l=this._buffer.slice(),u=0;u5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=arguments.length>8?arguments[8]:void 0;p(this,r),this.store=t,this.currentLoader=e,this.compiler=n,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=l,this.extend=u,this.pending=!1,this._onTranslationChange=new O,this._onLangChange=new O,this._onDefaultLangChange=new O,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}return v(r,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var n=this;if(e!==this.defaultLang){var a=this.retrieveTranslations(e);void 0!==a?(null==this.defaultLang&&(this.defaultLang=e),a.pipe(It(1)).subscribe(function(o){n.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var n=this;if(e===this.currentLang)return lt(this.translations[e]);var a=this.retrieveTranslations(e);return void 0!==a?(this.currentLang||(this.currentLang=e),a.pipe(It(1)).subscribe(function(o){n.changeLang(e)}),a):(this.changeLang(e),lt(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var n;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}},{key:"getTranslation",value:function(e){var n=this;this.pending=!0;var a=this.currentLoader.getTranslation(e).pipe(x6(1),It(1));return this.loadingTranslations=a.pipe(We(function(o){return n.compiler.compileTranslations(o,e)}),x6(1),It(1)),this.loadingTranslations.subscribe({next:function(s){n.translations[e]=n.extend&&n.translations[e]?Object.assign(Object.assign({},s),n.translations[e]):s,n.updateLangs(),n.pending=!1},error:function(s){n.pending=!1}}),a}},{key:"setTranslation",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n=this.compiler.compileTranslations(n,e),this.translations[e]=(a||this.extend)&&this.translations[e]?I6(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var n=this;e.forEach(function(a){-1===n.langs.indexOf(a)&&n.langs.push(a)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,n,a){var o;if(n instanceof Array){var c,s={},l=!1,u=In(n);try{for(u.s();!(c=u.n()).done;){var d=c.value;s[d]=this.getParsedResult(e,d,a),$p(s[d])&&(l=!0)}}catch(g){u.e(g)}finally{u.f()}return l?OO(n.map(function(g){return $p(s[g])?s[g]:lt(s[g])})).pipe(We(function(g){var _={};return g.forEach(function(C,w){_[n[w]]=C}),_})):s}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,n),a)),void 0===o&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),a)),void 0===o){var f={key:n,translateService:this};void 0!==a&&(f.interpolateParams=a),o=this.missingTranslationHandler.handle(f)}return void 0!==o?o:n}},{key:"get",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(nu(function(s){return $p(s=a.getParsedResult(s,e,n))?s:lt(s)}));var o=this.getParsedResult(this.translations[this.currentLang],e,n);return $p(o)?o:lt(o)}},{key:"getStreamOnTranslationChange",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');return sf(jp(function(){return a.get(e,n)}),this.onTranslationChange.pipe(Nn(function(o){var s=a.getParsedResult(o.translations,e,n);return"function"==typeof s.subscribe?s:lt(s)})))}},{key:"stream",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');return sf(jp(function(){return a.get(e,n)}),this.onLangChange.pipe(Nn(function(o){var s=a.getParsedResult(o.translations,e,n);return $p(s)?s:lt(s)})))}},{key:"instant",value:function(e,n){if(!lf(e)||!e.length)throw new Error('Parameter "key" required');var a=this.getParsedResult(this.translations[this.currentLang],e,n);if($p(a)){if(e instanceof Array){var o={};return e.forEach(function(s,l){o[e[l]]=e[l]}),o}return e}return a}},{key:"set",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[a][e]=this.compiler.compile(n,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;if(void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage))return-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(L6),oe(by),oe(Ww),oe(jw),oe(IO),oe(LO),oe(FO),oe(BO),oe(PO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),_1e=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.loader||{provide:by,useClass:M6},e.compiler||{provide:Ww,useClass:F6},e.parser||{provide:jw,useClass:N6},e.missingTranslationHandler||{provide:IO,useClass:R6},L6,{provide:FO,useValue:e.isolate},{provide:LO,useValue:e.useDefaultLang},{provide:BO,useValue:e.extend},{provide:PO,useValue:e.defaultLanguage},P6]}}},{key:"forChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.loader||{provide:by,useClass:M6},e.compiler||{provide:Ww,useClass:F6},e.parser||{provide:jw,useClass:N6},e.missingTranslationHandler||{provide:IO,useClass:R6},{provide:FO,useValue:e.isolate},{provide:LO,useValue:e.useDefaultLang},{provide:BO,useValue:e.extend},{provide:PO,useValue:e.defaultLanguage},P6]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),y1e=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";p(this,i),this.http=r,this.prefix=t,this.suffix=e}return v(i,[{key:"getTranslation",value:function(t){return this.http.get("".concat(this.prefix).concat(t).concat(this.suffix))}}]),i}(),Sy=function(){function i(){p(this,i)}return v(i,null,[{key:"IS_WEB",get:function(){return i.PLATFORM_TARGET===i.PLATFORMS.WEB}},{key:"IS_MOBILE_NATIVE",get:function(){return i.PLATFORM_TARGET===i.PLATFORMS.MOBILE_NATIVE}}]),i}();Sy.PLATFORMS={WEB:"web",MOBILE_NATIVE:"mobile_native"},Sy.PLATFORM_TARGET=Sy.PLATFORMS.WEB;var xi=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._value=e,n}return v(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(n){var a=$(q(t.prototype),"_subscribe",this).call(this,n);return!a.closed&&n.next(this._value),a}},{key:"getValue",value:function(){var o=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),o}},{key:"next",value:function(n){$(q(t.prototype),"next",this).call(this,this._value=n)}}]),t}(Ot);function GO(){for(var i=arguments.length,r=new Array(i),t=0;t2&&void 0!==arguments[2]?arguments[2]:zl;return function(e){B6(r,function(){for(var n=i.length,a=new Array(n),o=n,s=n,l=function(d){B6(r,function(){var h=wi(i[d],r),f=!1;h.subscribe(Wn(e,function(g){a[d]=g,f||(f=!0,s--),s||e.next(t(a.slice()))},function(){--o||e.complete()}))},e)},u=0;u=2,!0))}function cl(i){return oi(function(r,t){var a,e=null,n=!1;e=r.subscribe(Wn(t,void 0,void 0,function(o){a=Pi(i(o,cl(i)(r))),e?(e.unsubscribe(),e=null,a.subscribe(t)):n=!0})),n&&(e.unsubscribe(),e=null,a.subscribe(t))})}function UO(i){return i<=0?function(){return po}:oi(function(r,t){var e=[];r.subscribe(Wn(t,function(n){e.push(n),i0&&void 0!==arguments[0]?arguments[0]:b1e;return oi(function(r,t){var e=!1;r.subscribe(Wn(t,function(n){e=!0,t.next(n)},function(){return e?t.complete():t.error(i())}))})}function b1e(){return new $w}function U6(i){return oi(function(r,t){var e=!1;r.subscribe(Wn(t,function(n){e=!0,t.next(n)},function(){e||t.next(i),t.complete()}))})}function qp(i,r){var t=arguments.length>=2;return function(e){return e.pipe(i?Ue(function(n,a){return i(n,a,e)}):zl,It(1),t?U6(r):V6(function(){return new $w}))}}function z6(i){return oi(function(r,t){try{r.subscribe(t)}finally{t.add(i)}})}var gc=v(function i(r,t){p(this,i),this.id=r,this.url=t}),zO=function(i){b(t,i);var r=S(t);function t(e,n){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return p(this,t),(a=r.call(this,e,n)).navigationTrigger=o,a.restoredState=s,a}return v(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(gc),wy=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).urlAfterRedirects=a,o}return v(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(gc),H6=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).reason=a,o}return v(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(gc),w1e=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).error=a,o}return v(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(gc),D1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),E1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),T1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s){var l;return p(this,t),(l=r.call(this,e,n)).urlAfterRedirects=a,l.state=o,l.shouldActivate=s,l}return v(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(gc),A1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),x1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),K6=function(){function i(r){p(this,i),this.route=r}return v(i,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),i}(),j6=function(){function i(r){p(this,i),this.route=r}return v(i,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),i}(),M1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),R1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),O1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),I1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),W6=function(){function i(r,t,e){p(this,i),this.routerEvent=r,this.position=t,this.anchor=e}return v(i,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),i}(),bn="primary",N1e=function(){function i(r){p(this,i),this.params=r||{}}return v(i,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),i}();function Xp(i){return new N1e(i)}var $6="ngNavigationCancelingError";function HO(i){var r=Error("NavigationCancelingError: "+i);return r[$6]=!0,r}function L1e(i,r,t){var e=t.path.split("/");if(e.length>i.length||"full"===t.pathMatch&&(r.hasChildren()||e.length0?i[i.length-1]:null}function ga(i,r){for(var t in i)i.hasOwnProperty(t)&&r(i[t],t)}function ou(i){return KM(i)?i:X_(i)?wi(Promise.resolve(i)):lt(i)}var G1e={exact:function J6(i,r,t){if(!cf(i.segments,r.segments)||!qw(i.segments,r.segments,t)||i.numberOfChildren!==r.numberOfChildren)return!1;for(var e in r.children)if(!i.children[e]||!J6(i.children[e],r.children[e],t))return!1;return!0},subset:ej},Y6={exact:function V1e(i,r){return au(i,r)},subset:function U1e(i,r){return Object.keys(r).length<=Object.keys(i).length&&Object.keys(r).every(function(t){return q6(i[t],r[t])})},ignored:function(){return!0}};function Q6(i,r,t){return G1e[t.paths](i.root,r.root,t.matrixParams)&&Y6[t.queryParams](i.queryParams,r.queryParams)&&!("exact"===t.fragment&&i.fragment!==r.fragment)}function ej(i,r,t){return tj(i,r,r.segments,t)}function tj(i,r,t,e){if(i.segments.length>t.length){var n=i.segments.slice(0,t.length);return!(!cf(n,t)||r.hasChildren()||!qw(n,t,e))}if(i.segments.length===t.length){if(!cf(i.segments,t)||!qw(i.segments,t,e))return!1;for(var a in r.children)if(!i.children[a]||!ej(i.children[a],r.children[a],e))return!1;return!0}var o=t.slice(0,i.segments.length),s=t.slice(i.segments.length);return!!(cf(i.segments,o)&&qw(i.segments,o,e)&&i.children[bn])&&tj(i.children[bn],r,s,e)}function qw(i,r,t){return r.every(function(e,n){return Y6[t](i[n].parameters,e.parameters)})}var uf=function(){function i(r,t,e){p(this,i),this.root=r,this.queryParams=t,this.fragment=e}return v(i,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Xp(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return K1e.serialize(this)}}]),i}(),Rn=function(){function i(r,t){var e=this;p(this,i),this.segments=r,this.children=t,this.parent=null,ga(t,function(n,a){return n.parent=e})}return v(i,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Xw(this)}}]),i}(),Dy=function(){function i(r,t){p(this,i),this.path=r,this.parameters=t}return v(i,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Xp(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return oj(this)}}]),i}();function cf(i,r){return i.length===r.length&&i.every(function(t,e){return t.path===r[e].path})}var nj=v(function i(){p(this,i)}),ij=function(){function i(){p(this,i)}return v(i,[{key:"parse",value:function(t){var e=new J1e(t);return new uf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e="/".concat(Ey(t.root,!0)),n=function $1e(i){var r=Object.keys(i).map(function(t){var e=i[t];return Array.isArray(e)?e.map(function(n){return"".concat(Zw(t),"=").concat(Zw(n))}).join("&"):"".concat(Zw(t),"=").concat(Zw(e))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function j1e(i){return encodeURI(i)}(t.fragment)):"";return"".concat(e).concat(n).concat(a)}}]),i}(),K1e=new ij;function Xw(i){return i.segments.map(function(r){return oj(r)}).join("/")}function Ey(i,r){if(!i.hasChildren())return Xw(i);if(r){var t=i.children[bn]?Ey(i.children[bn],!1):"",e=[];return ga(i.children,function(a,o){o!==bn&&e.push("".concat(o,":").concat(Ey(a,!1)))}),e.length>0?"".concat(t,"(").concat(e.join("//"),")"):t}var n=function H1e(i,r){var t=[];return ga(i.children,function(e,n){n===bn&&(t=t.concat(r(e,n)))}),ga(i.children,function(e,n){n!==bn&&(t=t.concat(r(e,n)))}),t}(i,function(a,o){return o===bn?[Ey(i.children[bn],!1)]:["".concat(o,":").concat(Ey(a,!1))]});return 1===Object.keys(i.children).length&&null!=i.children[bn]?"".concat(Xw(i),"/").concat(n[0]):"".concat(Xw(i),"/(").concat(n.join("//"),")")}function rj(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zw(i){return rj(i).replace(/%3B/gi,";")}function KO(i){return rj(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Yw(i){return decodeURIComponent(i)}function aj(i){return Yw(i.replace(/\+/g,"%20"))}function oj(i){return"".concat(KO(i.path)).concat(function W1e(i){return Object.keys(i).map(function(r){return";".concat(KO(r),"=").concat(KO(i[r]))}).join("")}(i.parameters))}var q1e=/^[^\/()?;=#]+/;function Qw(i){var r=i.match(q1e);return r?r[0]:""}var X1e=/^[^=?&#]+/,Y1e=/^[^&#]+/,J1e=function(){function i(r){p(this,i),this.url=r,this.remaining=r}return v(i,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rn([],{}):new Rn([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[bn]=new Rn(t,e)),n}},{key:"parseSegment",value:function(){var t=Qw(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Dy(Yw(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Qw(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var a=Qw(this.remaining);a&&this.capture(n=a)}t[Yw(e)]=Yw(n)}}},{key:"parseQueryParam",value:function(t){var e=function Z1e(i){var r=i.match(X1e);return r?r[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var a=function Q1e(i){var r=i.match(Y1e);return r?r[0]:""}(this.remaining);a&&this.capture(n=a)}var o=aj(e),s=aj(n);if(t.hasOwnProperty(o)){var l=t[o];Array.isArray(l)||(t[o]=l=[l]),l.push(s)}else t[o]=s}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Qw(this.remaining),a=this.remaining[n.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=bn);var s=this.parseChildren();e[o]=1===Object.keys(s).length?s[bn]:new Rn([],s),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),i}(),sj=function(){function i(r){p(this,i),this._root=r}return v(i,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=jO(t,this._root);return e?e.children.map(function(n){return n.value}):[]}},{key:"firstChild",value:function(t){var e=jO(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=WO(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return WO(t,this._root).map(function(e){return e.value})}}]),i}();function jO(i,r){if(i===r.value)return r;var e,t=In(r.children);try{for(t.s();!(e=t.n()).done;){var a=jO(i,e.value);if(a)return a}}catch(o){t.e(o)}finally{t.f()}return null}function WO(i,r){if(i===r.value)return[r];var e,t=In(r.children);try{for(t.s();!(e=t.n()).done;){var a=WO(i,e.value);if(a.length)return a.unshift(r),a}}catch(o){t.e(o)}finally{t.f()}return[]}var mc=function(){function i(r,t){p(this,i),this.value=r,this.children=t}return v(i,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),i}();function Zp(i){var r={};return i&&i.children.forEach(function(t){return r[t.value.outlet]=t}),r}var lj=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e)).snapshot=n,$O(Xe(a),e),a}return v(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(sj);function uj(i,r){var t=function eTe(i,r){var o=new Jw([],{},{},"",{},bn,r,null,i.root,-1,{});return new dj("",new mc(o,[]))}(i,r),e=new xi([new Dy("",{})]),n=new xi({}),a=new xi({}),o=new xi({}),s=new xi(""),l=new Yp(e,n,o,s,a,bn,r,t.root);return l.snapshot=t.root,new lj(new mc(l,[]),t)}var Yp=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this.url=r,this.params=t,this.queryParams=e,this.fragment=n,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=l}return v(i,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(We(function(t){return Xp(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(We(function(t){return Xp(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),i}();function cj(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=i.pathFromRoot,e=0;if("always"!==r)for(e=t.length-1;e>=1;){var n=t[e],a=t[e-1];if(n.routeConfig&&""===n.routeConfig.path)e--;else{if(a.component)break;e--}}return tTe(t.slice(e))}function tTe(i){return i.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var Jw=function(){function i(r,t,e,n,a,o,s,l,u,c,d){p(this,i),this.url=r,this.params=t,this.queryParams=e,this.fragment=n,this.data=a,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}return v(i,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Xp(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Xp(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(n){return n.toString()}).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}}]),i}(),dj=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).url=e,$O(Xe(a),n),a}return v(t,[{key:"toString",value:function(){return hj(this._root)}}]),t}(sj);function $O(i,r){r.value._routerState=i,r.children.forEach(function(t){return $O(i,t)})}function hj(i){var r=i.children.length>0?" { ".concat(i.children.map(hj).join(", ")," } "):"";return"".concat(i.value).concat(r)}function qO(i){if(i.snapshot){var r=i.snapshot,t=i._futureSnapshot;i.snapshot=t,au(r.queryParams,t.queryParams)||i.queryParams.next(t.queryParams),r.fragment!==t.fragment&&i.fragment.next(t.fragment),au(r.params,t.params)||i.params.next(t.params),function P1e(i,r){if(i.length!==r.length)return!1;for(var t=0;tn;){if(a-=n,!(e=e.parent))throw new Error("Invalid number of '../'");n=e.segments.length}return new YO(e,!1,n-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,i.numberOfDoubleDots)}(a,r,i),s=o.processChildren?tD(o.segmentGroup,o.index,a.commands):pj(o.segmentGroup,o.index,a.commands);return ZO(r.root,o.segmentGroup,s,e,n)}function eD(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function Ay(i){return"object"==typeof i&&null!=i&&i.outlets}function ZO(i,r,t,e,n){var a={};if(e&&ga(e,function(s,l){a[l]=Array.isArray(s)?s.map(function(u){return"".concat(u)}):"".concat(s)}),i===r)return new uf(t,a,n);var o=fj(i,r,t);return new uf(o,a,n)}function fj(i,r,t){var e={};return ga(i.children,function(n,a){e[a]=n===r?t:fj(n,r,t)}),new Rn(i.segments,e)}var vj=function(){function i(r,t,e){if(p(this,i),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=e,r&&e.length>0&&eD(e[0]))throw new Error("Root segment cannot have matrix parameters");var n=e.find(Ay);if(n&&n!==Z6(e))throw new Error("{outlets:{}} has to be the last command")}return v(i,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),i}(),YO=v(function i(r,t,e){p(this,i),this.segmentGroup=r,this.processChildren=t,this.index=e});function pj(i,r,t){if(i||(i=new Rn([],{})),0===i.segments.length&&i.hasChildren())return tD(i,r,t);var e=function cTe(i,r,t){for(var e=0,n=r,a={match:!1,pathIndex:0,commandIndex:0};n=t.length)return a;var o=i.segments[n],s=t[e];if(Ay(s))break;var l="".concat(s),u=e0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!mj(l,u,o))return a;e+=2}else{if(!mj(l,{},o))return a;e++}n++}return{match:!0,pathIndex:n,commandIndex:e}}(i,r,t),n=t.slice(e.commandIndex);if(e.match&&e.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},Cj):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};var a=(r.matcher||L1e)(t,i,r);if(!a)return Object.assign({},Cj);var o={};ga(a.posParams,function(l,u){o[u]=l.path});var s=a.consumed.length>0?Object.assign(Object.assign({},o),a.consumed[a.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:s,positionalParamSegments:null!==(e=a.posParams)&&void 0!==e?e:{}}}function iD(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&ETe(i,t,e)){var a=new Rn(r,DTe(i,r,e,new Rn(t,i.children)));return a._sourceSegment=i,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&TTe(i,t,e)){var o=new Rn(i.segments,wTe(i,r,t,e,i.children,n));return o._sourceSegment=i,o._segmentIndexShift=r.length,{segmentGroup:o,slicedSegments:t}}var s=new Rn(i.segments,i.children);return s._sourceSegment=i,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}function wTe(i,r,t,e,n,a){var l,o={},s=In(e);try{for(s.s();!(l=s.n()).done;){var u=l.value;if(rD(i,t,u)&&!n[Os(u)]){var c=new Rn([],{});c._sourceSegment=i,c._segmentIndexShift="legacy"===a?i.segments.length:r.length,o[Os(u)]=c}}}catch(d){s.e(d)}finally{s.f()}return Object.assign(Object.assign({},n),o)}function DTe(i,r,t,e){var n={};n[bn]=e,e._sourceSegment=i,e._segmentIndexShift=r.length;var o,a=In(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Os(s)!==bn){var l=new Rn([],{});l._sourceSegment=i,l._segmentIndexShift=r.length,n[Os(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return n}function ETe(i,r,t){return t.some(function(e){return rD(i,r,e)&&Os(e)!==bn})}function TTe(i,r,t){return t.some(function(e){return rD(i,r,e)})}function rD(i,r,t){return(!(i.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function bj(i,r,t,e){return!!(Os(i)===e||e!==bn&&rD(r,t,i))&&("**"===i.path||nD(r,i,t).matched)}function Sj(i,r,t){return 0===r.length&&!i.children[t]}var aD=v(function i(r){p(this,i),this.segmentGroup=r||null}),wj=v(function i(r){p(this,i),this.urlTree=r});function Oy(i){return ky(new aD(i))}function Dj(i){return ky(new wj(i))}function ATe(i){return ky(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(i,"'")))}var RTe=function(){function i(r,t,e,n,a){p(this,i),this.configLoader=t,this.urlSerializer=e,this.urlTree=n,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(hc)}return v(i,[{key:"apply",value:function(){var t=this,e=iD(this.urlTree.root,[],[],this.config).segmentGroup,n=new Rn(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,bn).pipe(We(function(s){return t.createUrlTree(nI(s),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(cl(function(s){if(s instanceof wj)return t.allowRedirects=!1,t.match(s.urlTree);throw s instanceof aD?t.noMatchError(s):s}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,bn).pipe(We(function(o){return e.createUrlTree(nI(o),t.queryParams,t.fragment)})).pipe(cl(function(o){throw o instanceof aD?e.noMatchError(o):o}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var a=t.segments.length>0?new Rn([],De({},bn,t)):t;return new uf(a,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,a){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(We(function(o){return new Rn([],o)})):this.expandSegment(t,n,e,n.segments,a,!0)}},{key:"expandChildren",value:function(t,e,n){for(var a=this,o=[],s=0,l=Object.keys(n.children);s=2;return function(e){return e.pipe(i?Ue(function(n,a){return i(n,a,e)}):zl,UO(1),t?U6(r):V6(function(){return new $w}))}}())}},{key:"expandSegment",value:function(t,e,n,a,o,s){var l=this;return wi(n).pipe(nu(function(u){return l.expandSegmentAgainstRoute(t,e,n,u,a,o,s).pipe(cl(function(d){if(d instanceof aD)return lt(null);throw d}))}),qp(function(u){return!!u}),cl(function(u,c){if(u instanceof $w||"EmptyError"===u.name)return Sj(e,a,o)?lt(new Rn([],{})):Oy(e);throw u}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,a,o,s,l){return bj(a,e,o,s)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(t,e,a,o,s):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,a,o,s):Oy(e):Oy(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,a,o,s){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,a,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,a,o,s)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,a){var o=this,s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Dj(s):this.lineralizeSegments(n,s).pipe(Bi(function(l){var u=new Rn(l,{});return o.expandSegment(t,u,e,l,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,a,o,s){var l=this,u=nD(e,a,o),d=u.consumedSegments,h=u.remainingSegments,f=u.positionalParamSegments;if(!u.matched)return Oy(e);var g=this.applyRedirectCommands(d,a.redirectTo,f);return a.redirectTo.startsWith("/")?Dj(g):this.lineralizeSegments(a,g).pipe(Bi(function(_){return l.expandSegment(t,e,n,_.concat(h),s,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,a,o){var s=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?lt(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(We(function(g){return n._loadedConfig=g,new Rn(a,{})})):lt(new Rn(a,{}));var u=nD(e,n,a),d=u.consumedSegments,h=u.remainingSegments;return u.matched?this.getChildConfig(t,n,a).pipe(Bi(function(g){var _=g.module,C=g.routes,w=iD(e,d,h,C),E=w.segmentGroup,M=w.slicedSegments,R=new Rn(E.segments,E.children);if(0===M.length&&R.hasChildren())return s.expandChildren(_,C,R).pipe(We(function(ee){return new Rn(d,ee)}));if(0===C.length&&0===M.length)return lt(new Rn(d,{}));var V=Os(n)===o;return s.expandSegment(_,R,C,M,V?bn:o,!0).pipe(We(function(ee){return new Rn(d.concat(ee.segments),ee.children)}))})):Oy(e)}},{key:"getChildConfig",value:function(t,e,n){var a=this;return e.children?lt(new JO(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?lt(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Bi(function(o){return o?a.configLoader.load(t.injector,e).pipe(We(function(s){return e._loadedConfig=s,s})):function xTe(i){return ky(HO("Cannot load children because the guard of the route \"path: '".concat(i.path,"'\" returned false")))}(e)})):lt(new JO([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var a=this,o=e.canLoad;if(!o||0===o.length)return lt(!0);var s=o.map(function(l){var c,u=t.get(l);if(function gTe(i){return i&&Ed(i.canLoad)}(u))c=u.canLoad(e,n);else{if(!Ed(u))throw new Error("Invalid CanLoad guard");c=u(e,n)}return ou(c)});return lt(s).pipe(My(),At(function(l){if(df(l)){var u=HO('Redirecting to "'.concat(a.urlSerializer.serialize(l),'"'));throw u.url=l,u}}),We(function(l){return!0===l}))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],a=e.root;;){if(n=n.concat(a.segments),0===a.numberOfChildren)return lt(n);if(a.numberOfChildren>1||!a.children[bn])return ATe(t.redirectTo);a=a.children[bn]}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,a){var o=this.createSegmentGroup(t,e.root,n,a);return new uf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return ga(t,function(a,o){if("string"==typeof a&&a.startsWith(":")){var l=a.substring(1);n[o]=e[l]}else n[o]=a}),n}},{key:"createSegmentGroup",value:function(t,e,n,a){var o=this,s=this.createSegments(t,e.segments,n,a),l={};return ga(e.children,function(u,c){l[c]=o.createSegmentGroup(t,u,n,a)}),new Rn(s,l)}},{key:"createSegments",value:function(t,e,n,a){var o=this;return e.map(function(s){return s.path.startsWith(":")?o.findPosParam(t,s,a):o.findOrReturn(s,n)})}},{key:"findPosParam",value:function(t,e,n){var a=n[e.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return a}},{key:"findOrReturn",value:function(t,e){var o,n=0,a=In(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s.path===t.path)return e.splice(n),s;n++}}catch(l){a.e(l)}finally{a.f()}return t}}]),i}();function nI(i){for(var r={},t=0,e=Object.keys(i.children);t0||o.hasChildren())&&(r[n]=o)}return function OTe(i){if(1===i.numberOfChildren&&i.children[bn]){var r=i.children[bn];return new Rn(i.segments.concat(r.segments),r.children)}return i}(new Rn(i.segments,r))}var Ej=v(function i(r){p(this,i),this.path=r,this.route=this.path[this.path.length-1]}),oD=v(function i(r,t){p(this,i),this.component=r,this.route=t});function NTe(i,r,t){var e=i._root;return Iy(e,r?r._root:null,t,[e.value])}function sD(i,r,t){var e=function LTe(i){if(!i)return null;for(var r=i.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(e?e.module.injector:t).get(i)}function Iy(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Zp(r);return i.children.forEach(function(o){PTe(o,a[o.value.outlet],t,e.concat([o.value]),n),delete a[o.value.outlet]}),ga(a,function(o,s){return Ny(o,t.getContext(s),n)}),n}function PTe(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=i.value,o=r?r.value:null,s=t?t.getContext(i.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var l=BTe(o,a,a.routeConfig.runGuardsAndResolvers);l?n.canActivateChecks.push(new Ej(e)):(a.data=o.data,a._resolvedData=o._resolvedData),Iy(i,r,a.component?s?s.children:null:t,e,n),l&&s&&s.outlet&&s.outlet.isActivated&&n.canDeactivateChecks.push(new oD(s.outlet.component,o))}else o&&Ny(r,s,n),n.canActivateChecks.push(new Ej(e)),Iy(i,null,a.component?s?s.children:null:t,e,n);return n}function BTe(i,r,t){if("function"==typeof t)return t(i,r);switch(t){case"pathParamsChange":return!cf(i.url,r.url);case"pathParamsOrQueryParamsChange":return!cf(i.url,r.url)||!au(i.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!XO(i,r)||!au(i.queryParams,r.queryParams);default:return!XO(i,r)}}function Ny(i,r,t){var e=Zp(i),n=i.value;ga(e,function(a,o){Ny(a,n.component?r?r.children.getContext(o):null:r,t)}),t.canDeactivateChecks.push(new oD(n.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,n))}var $Te=v(function i(){p(this,i)});function Tj(i){return new An(function(r){return r.error(i)})}var XTe=function(){function i(r,t,e,n,a,o){p(this,i),this.rootComponentType=r,this.config=t,this.urlTree=e,this.url=n,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return v(i,[{key:"recognize",value:function(){var t=iD(this.urlTree.root,[],[],this.config.filter(function(s){return void 0===s.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,bn);if(null===e)return null;var n=new Jw([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},bn,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new mc(n,e),o=new dj(this.url,a);return this.inheritParamsAndData(o._root),o}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,a=cj(n,this.paramsInheritanceStrategy);n.params=Object.freeze(a.params),n.data=Object.freeze(a.data),t.children.forEach(function(o){return e.inheritParamsAndData(o)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],a=0,o=Object.keys(e.children);a0?Z6(n).parameters:{};o=new Jw(n,u,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Rj(t),Os(t),t.component,t,xj(e),Mj(e)+n.length,Oj(t))}else{var c=nD(e,t,n);if(!c.matched)return null;l=c.remainingSegments,o=new Jw(s=c.consumedSegments,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Rj(t),Os(t),t.component,t,xj(e),Mj(e)+s.length,Oj(t))}var d=function YTe(i){return i.children?i.children:i.loadChildren?i._loadedConfig.routes:[]}(t),h=iD(e,s,l,d.filter(function(E){return void 0===E.redirectTo}),this.relativeLinkResolution),f=h.segmentGroup,g=h.slicedSegments;if(0===g.length&&f.hasChildren()){var _=this.processChildren(d,f);return null===_?null:[new mc(o,_)]}if(0===d.length&&0===g.length)return[new mc(o,[])];var C=Os(t)===a,w=this.processSegment(d,f,g,C?bn:a);return null===w?null:[new mc(o,w)]}}]),i}();function Aj(i){var n,r=[],t=new Set,e=In(i);try{var a=function(){var h=n.value;if(!function QTe(i){var r=i.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(h))return r.push(h),"continue";var g,f=r.find(function(_){return h.value.routeConfig===_.value.routeConfig});void 0!==f?((g=f.children).push.apply(g,Ae(h.children)),t.add(f)):r.push(h)};for(e.s();!(n=e.n()).done;)a()}catch(d){e.e(d)}finally{e.f()}var l,s=In(t);try{for(s.s();!(l=s.n()).done;){var u=l.value,c=Aj(u.children);r.push(new mc(u.value,c))}}catch(d){s.e(d)}finally{s.f()}return r.filter(function(d){return!t.has(d)})}function xj(i){for(var r=i;r._sourceSegment;)r=r._sourceSegment;return r}function Mj(i){for(var r=i,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function Rj(i){return i.data||{}}function Oj(i){return i.resolve||{}}function Ij(i){return[].concat(Ae(Object.keys(i)),Ae(Object.getOwnPropertySymbols(i)))}function iI(i){return Nn(function(r){var t=i(r);return t?wi(t).pipe(We(function(){return r})):lt(r)})}var rAe=v(function i(){p(this,i)}),aAe=function(){function i(){p(this,i)}return v(i,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),i}(),oAe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(aAe),rI=new wt("ROUTES"),Nj=function(){function i(r,t,e,n){p(this,i),this.injector=r,this.compiler=t,this.onLoadStartListener=e,this.onLoadEndListener=n}return v(i,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var o=this.loadModuleFactory(e.loadChildren).pipe(We(function(s){n.onLoadEndListener&&n.onLoadEndListener(e);var l=s.create(t);return new JO(X6(l.injector.get(rI,void 0,tn.Self|tn.Optional)).map(tI),l)}),cl(function(s){throw e._loader$=void 0,s}));return e._loader$=new _6(o,function(){return new Ot}).pipe(m6()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return ou(t()).pipe(Bi(function(n){return n instanceof w5?lt(n):wi(e.compiler.compileModuleAsync(n))}))}}]),i}(),sAe=v(function i(){p(this,i)}),lAe=function(){function i(){p(this,i)}return v(i,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),i}();function uAe(i){throw i}function cAe(i,r,t){return r.parse("/")}function Fj(i,r){return lt(null)}var dAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Na=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=a,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ot,this.errorHandler=uAe,this.malformedUriErrorHandler=cAe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Fj,afterPreactivation:Fj},this.urlHandlingStrategy=new lAe,this.routeReuseStrategy=new oAe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(hc),this.console=o.get($be);var h=o.get(be);this.isNgZoneEnabled=h instanceof be&&be.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function B1e(){return new uf(new Rn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Nj(o,s,function(g){return u.triggerEvent(new K6(g))},function(g){return u.triggerEvent(new j6(g))}),this.routerState=uj(this.currentUrlTree,this.rootComponentType),this.transitions=new xi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return v(r,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var n=this,a=this.events;return e.pipe(Ue(function(o){return 0!==o.id}),We(function(o){return Object.assign(Object.assign({},o),{extractedUrl:n.urlHandlingStrategy.extract(o.rawUrl)})}),Nn(function(o){var s=!1,l=!1;return lt(o).pipe(At(function(u){n.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:n.lastSuccessfulNavigation?Object.assign(Object.assign({},n.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Nn(function(u){var c=n.browserUrlTree.toString(),d=!n.navigated||u.extractedUrl.toString()!==c||c!==n.currentUrlTree.toString();if(("reload"===n.onSameUrlNavigation||d)&&n.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Lj(u.source)&&(n.browserUrlTree=u.extractedUrl),lt(u).pipe(Nn(function(N){var V=n.transitions.getValue();return a.next(new zO(N.id,n.serializeUrl(N.extractedUrl),N.source,N.restoredState)),V!==n.transitions.getValue()?po:Promise.resolve(N)}),function ITe(i,r,t,e){return Nn(function(n){return function MTe(i,r,t,e,n){return new RTe(i,r,t,e,n).apply()}(i,r,t,n.extractedUrl,e).pipe(We(function(a){return Object.assign(Object.assign({},n),{urlAfterRedirects:a})}))})}(n.ngModule.injector,n.configLoader,n.urlSerializer,n.config),At(function(N){n.currentNavigation=Object.assign(Object.assign({},n.currentNavigation),{finalUrl:N.urlAfterRedirects})}),function JTe(i,r,t,e,n){return Bi(function(a){return function qTe(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new XTe(i,r,t,e,n,a).recognize();return null===o?Tj(new $Te):lt(o)}catch(s){return Tj(s)}}(i,r,a.urlAfterRedirects,t(a.urlAfterRedirects),e,n).pipe(We(function(o){return Object.assign(Object.assign({},a),{targetSnapshot:o})}))})}(n.rootComponentType,n.config,function(N){return n.serializeUrl(N)},n.paramsInheritanceStrategy,n.relativeLinkResolution),At(function(N){if("eager"===n.urlUpdateStrategy){if(!N.extras.skipLocationChange){var V=n.urlHandlingStrategy.merge(N.urlAfterRedirects,N.rawUrl);n.setBrowserUrl(V,N)}n.browserUrlTree=N.urlAfterRedirects}var U=new D1e(N.id,n.serializeUrl(N.extractedUrl),n.serializeUrl(N.urlAfterRedirects),N.targetSnapshot);a.next(U)}));if(d&&n.rawUrlTree&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){var _=u.extractedUrl,C=u.source,w=u.restoredState,E=u.extras,M=new zO(u.id,n.serializeUrl(_),C,w);a.next(M);var R=uj(_,n.rootComponentType).snapshot;return lt(Object.assign(Object.assign({},u),{targetSnapshot:R,urlAfterRedirects:_,extras:Object.assign(Object.assign({},E),{skipLocationChange:!1,replaceUrl:!1})}))}return n.rawUrlTree=u.rawUrl,u.resolve(null),po}),iI(function(u){var g=u.extras;return n.hooks.beforePreactivation(u.targetSnapshot,{navigationId:u.id,appliedUrlTree:u.extractedUrl,rawUrlTree:u.rawUrl,skipLocationChange:!!g.skipLocationChange,replaceUrl:!!g.replaceUrl})}),At(function(u){var c=new E1e(u.id,n.serializeUrl(u.extractedUrl),n.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);n.triggerEvent(c)}),We(function(u){return Object.assign(Object.assign({},u),{guards:NTe(u.targetSnapshot,u.currentSnapshot,n.rootContexts)})}),function GTe(i,r){return Bi(function(t){var e=t.targetSnapshot,n=t.currentSnapshot,a=t.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?lt(Object.assign(Object.assign({},t),{guardsResult:!0})):function VTe(i,r,t,e){return wi(i).pipe(Bi(function(n){return function WTe(i,r,t,e,n){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return lt(!0);var o=a.map(function(s){var u,l=sD(s,r,n);if(function yTe(i){return i&&Ed(i.canDeactivate)}(l))u=ou(l.canDeactivate(i,r,t,e));else{if(!Ed(l))throw new Error("Invalid CanDeactivate guard");u=ou(l(i,r,t,e))}return u.pipe(qp())});return lt(o).pipe(My())}(n.component,n.route,t,r,e)}),qp(function(n){return!0!==n},!0))}(s,e,n,i).pipe(Bi(function(l){return l&&function pTe(i){return"boolean"==typeof i}(l)?function UTe(i,r,t,e){return wi(r).pipe(nu(function(n){return sf(function HTe(i,r){return null!==i&&r&&r(new M1e(i)),lt(!0)}(n.route.parent,e),function zTe(i,r){return null!==i&&r&&r(new O1e(i)),lt(!0)}(n.route,e),function jTe(i,r,t){var e=r[r.length-1],n=r.slice(0,r.length-1).reverse().map(function(o){return function FTe(i){var r=i.routeConfig?i.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:i,guards:r}:null}(o)}).filter(function(o){return null!==o}),a=n.map(function(o){return jp(function(){var s=o.guards.map(function(l){var c,u=sD(l,o.node,t);if(function _Te(i){return i&&Ed(i.canActivateChild)}(u))c=ou(u.canActivateChild(e,i));else{if(!Ed(u))throw new Error("Invalid CanActivateChild guard");c=ou(u(e,i))}return c.pipe(qp())});return lt(s).pipe(My())})});return lt(a).pipe(My())}(i,n.path,t),function KTe(i,r,t){var e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||0===e.length)return lt(!0);var n=e.map(function(a){return jp(function(){var s,o=sD(a,r,t);if(function mTe(i){return i&&Ed(i.canActivate)}(o))s=ou(o.canActivate(r,i));else{if(!Ed(o))throw new Error("Invalid CanActivate guard");s=ou(o(r,i))}return s.pipe(qp())})});return lt(n).pipe(My())}(i,n.route,t))}),qp(function(n){return!0!==n},!0))}(e,o,i,r):lt(l)}),We(function(l){return Object.assign(Object.assign({},t),{guardsResult:l})}))})}(n.ngModule.injector,function(u){return n.triggerEvent(u)}),At(function(u){if(df(u.guardsResult)){var c=HO('Redirecting to "'.concat(n.serializeUrl(u.guardsResult),'"'));throw c.url=u.guardsResult,c}var d=new T1e(u.id,n.serializeUrl(u.extractedUrl),n.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);n.triggerEvent(d)}),Ue(function(u){return!!u.guardsResult||(n.restoreHistory(u),n.cancelNavigationTransition(u,""),!1)}),iI(function(u){if(u.guards.canActivateChecks.length)return lt(u).pipe(At(function(c){var d=new A1e(c.id,n.serializeUrl(c.extractedUrl),n.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);n.triggerEvent(d)}),Nn(function(c){var d=!1;return lt(c).pipe(function eAe(i,r){return Bi(function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return lt(t);var a=0;return wi(n).pipe(nu(function(o){return function tAe(i,r,t,e){return function nAe(i,r,t,e){var n=Ij(i);if(0===n.length)return lt({});var a={};return wi(n).pipe(Bi(function(o){return function iAe(i,r,t,e){var n=sD(i,r,e);return ou(n.resolve?n.resolve(r,t):n(r,t))}(i[o],r,t,e).pipe(At(function(s){a[o]=s}))}),UO(1),Bi(function(){return Ij(a).length===n.length?lt(a):po}))}(i._resolve,i,r,e).pipe(We(function(a){return i._resolvedData=a,i.data=Object.assign(Object.assign({},i.data),cj(i,t).resolve),null}))}(o.route,e,i,r)}),At(function(){return a++}),UO(1),Bi(function(o){return a===n.length?lt(t):po}))})}(n.paramsInheritanceStrategy,n.ngModule.injector),At({next:function(){return d=!0},complete:function(){d||(n.restoreHistory(c),n.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),At(function(c){var d=new x1e(c.id,n.serializeUrl(c.extractedUrl),n.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);n.triggerEvent(d)}))}),iI(function(u){var g=u.extras;return n.hooks.afterPreactivation(u.targetSnapshot,{navigationId:u.id,appliedUrlTree:u.extractedUrl,rawUrlTree:u.rawUrl,skipLocationChange:!!g.skipLocationChange,replaceUrl:!!g.replaceUrl})}),We(function(u){var c=function nTe(i,r,t){var e=Ty(i,r._root,t?t._root:void 0);return new lj(e,r)}(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return Object.assign(Object.assign({},u),{targetRouterState:c})}),At(function(u){n.currentUrlTree=u.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),n.routerState=u.targetRouterState,"deferred"===n.urlUpdateStrategy&&(u.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,u),n.browserUrlTree=u.urlAfterRedirects)}),function(r,t,e){return We(function(n){return new fTe(t,n.targetRouterState,n.currentRouterState,e).activate(r),n})}(n.rootContexts,n.routeReuseStrategy,function(u){return n.triggerEvent(u)}),At({next:function(){s=!0},complete:function(){s=!0}}),z6(function(){var u;if(!s&&!l){var c="Navigation ID ".concat(o.id," is not equal to the current navigation id ").concat(n.navigationId);n.cancelNavigationTransition(o,c)}(null===(u=n.currentNavigation)||void 0===u?void 0:u.id)===o.id&&(n.currentNavigation=null)}),cl(function(u){if(l=!0,function F1e(i){return i&&i[$6]}(u)){var c=df(u.url);c||(n.navigated=!0,n.restoreHistory(o,!0));var d=new H6(o.id,n.serializeUrl(o.extractedUrl),u.message);a.next(d),c?setTimeout(function(){var f=n.urlHandlingStrategy.merge(u.url,n.rawUrlTree),g={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||Lj(o.source)};n.scheduleNavigation(f,"imperative",null,g,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{n.restoreHistory(o,!0);var h=new w1e(o.id,n.serializeUrl(o.extractedUrl),u);a.next(h);try{o.resolve(n.errorHandler(u))}catch(f){o.reject(f)}}return po}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(n){var a="popstate"===n.type?"popstate":"hashchange";"popstate"===a&&setTimeout(function(){var o,s={replaceUrl:!0},l=(null===(o=n.state)||void 0===o?void 0:o.navigationId)?n.state:null;if(l){var u=Object.assign({},l);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(s.state=u)}var c=e.parseUrl(n.url);e.scheduleNavigation(c,a,l,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){yj(e),this.config=e.map(tI),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.relativeTo,o=n.queryParams,s=n.fragment,l=n.queryParamsHandling,u=n.preserveFragment,c=a||this.routerState.root,d=u?this.currentUrlTree.fragment:s,h=null;switch(l){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}return null!==h&&(h=this.removeEmptyProps(h)),aTe(c,this.currentUrlTree,e,h,null!=d?d:null)}},{key:"navigateByUrl",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=df(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,n)}},{key:"navigate",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return fAe(e),this.navigateByUrl(this.createUrlTree(e,n),n)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var n;try{n=this.urlSerializer.parse(e)}catch(a){n=this.malformedUriErrorHandler(a,this.urlSerializer,e)}return n}},{key:"isActive",value:function(e,n){var a;if(a=!0===n?Object.assign({},dAe):!1===n?Object.assign({},hAe):n,df(e))return Q6(this.currentUrlTree,e,a);var o=this.parseUrl(e);return Q6(this.currentUrlTree,o,a)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(n,a){var o=e[a];return null!=o&&(n[a]=o),n},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(n){e.navigated=!0,e.lastSuccessfulId=n.id,e.currentPageId=n.targetPageId,e.events.next(new wy(n.id,e.serializeUrl(n.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,n.resolve(!0)},function(n){e.console.warn("Unhandled Navigation Error: ".concat(n))})}},{key:"scheduleNavigation",value:function(e,n,a,o,s){var l,u,c,d,h;if(this.disposed)return Promise.resolve(!1);s?(c=s.resolve,d=s.reject,h=s.promise):h=new Promise(function(C,w){c=C,d=w});var g,f=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),g=a&&a.\u0275routerPageId?a.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):g=0,this.setTransition({id:f,targetPageId:g,source:n,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:c,reject:d,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(function(C){return Promise.reject(C)})}},{key:"setBrowserUrl",value:function(e,n){var a=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(a)||n.extras.replaceUrl?this.location.replaceState(a,"",o):this.location.go(a,"",o)}},{key:"restoreHistory",value:function(e){var a,o,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-e.targetPageId,l="popstate"===e.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);l&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,n){var a=new H6(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(a),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":n}:{navigationId:e}}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function fAe(i){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};p(this,r),this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return v(r,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(n){n instanceof zO?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=n.navigationTrigger,e.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof wy&&(e.lastId=n.id,e.scheduleScrollEvent(n,e.router.parseUrl(n.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(n){n instanceof W6&&(n.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,n){this.router.triggerEvent(new W6(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hf=new wt("ROUTER_CONFIGURATION"),Uj=new wt("ROUTER_FORROOT_GUARD"),gAe=[IR,{provide:nj,useClass:ij},{provide:Na,useFactory:function CAe(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=new Na(null,i,r,t,e,n,X6(a));return s&&(u.urlHandlingStrategy=s),l&&(u.routeReuseStrategy=l),bAe(o,u),o.enableTracing&&u.events.subscribe(function(c){var d,h;null===(d=console.group)||void 0===d||d.call(console,"Router Event: ".concat(c.constructor.name)),console.log(c.toString()),console.log(c),null===(h=console.groupEnd)||void 0===h||h.call(console)}),u},deps:[nj,Ry,IR,Jn,s4,rI,hf,[sAe,new md],[rAe,new md]]},Ry,{provide:Yp,useFactory:function SAe(i){return i.routerState.root},deps:[Na]},Vj,Gj,pAe,{provide:hf,useValue:{enableTracing:!1}}];function mAe(){return new h4("Router",Na)}var zj=function(){var i=function(){function r(t,e){p(this,r)}return v(r,null,[{key:"forRoot",value:function(e,n){return{ngModule:r,providers:[gAe,Hj(e),{provide:Uj,useFactory:kAe,deps:[[Na,new md,new F_]]},{provide:hf,useValue:n||{}},{provide:Bp,useFactory:yAe,deps:[Jh,[new RS(OR),new md],hf]},{provide:oI,useFactory:_Ae,deps:[Na,qwe,hf]},{provide:Bj,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Gj},{provide:h4,multi:!0,useFactory:mAe},[sI,{provide:lw,multi:!0,useFactory:wAe,deps:[sI]},{provide:Kj,useFactory:DAe,deps:[sI]},{provide:o4,multi:!0,useExisting:Kj}]]}}},{key:"forChild",value:function(e){return{ngModule:r,providers:[Hj(e)]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Uj,8),oe(Na,8))},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}();function _Ae(i,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new oI(i,r,t)}function yAe(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new PSe(i,r):new R4(i,r)}function kAe(i){return"guarded"}function Hj(i){return[{provide:Age,multi:!0,useValue:i},{provide:rI,multi:!0,useValue:i}]}function bAe(i,r){i.errorHandler&&(r.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(r.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(r.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(r.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(r.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(r.canceledNavigationResolution=i.canceledNavigationResolution)}var sI=function(){var i=function(){function r(t){p(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ot}return v(r,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(NSe,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var a=null,o=new Promise(function(u){return a=u}),s=e.injector.get(Na),l=e.injector.get(hf);return"disabled"===l.initialNavigation?(s.setUpLocationChangeListener(),a(!0)):"enabled"===l.initialNavigation||"enabledBlocking"===l.initialNavigation?(s.hooks.afterPreactivation=function(){return e.initNavigation?lt(null):(e.initNavigation=!0,a(!0),e.resultOfPreactivationDone)},s.initialNavigation()):a(!0),o})}},{key:"bootstrapListener",value:function(e){var n=this.injector.get(hf),a=this.injector.get(Vj),o=this.injector.get(oI),s=this.injector.get(Na),l=this.injector.get(dy);e===l.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void 0===n.initialNavigation)&&s.initialNavigation(),a.setUpPreloading(),o.init(),s.resetRootComponentType(l.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function wAe(i){return i.appInitializer.bind(i)}function DAe(i){return i.bootstrapListener.bind(i)}var Kj=new wt("Router Initializer"),TAe=function(){return["./dashboard"]},AAe=function(){return["./issues"]},xAe=function(){return["./profile"]},MAe=function(){return["./signin"]};function RAe(i,r){if(1&i){var t=xe();A(0,"div",4)(1,"span",5),Q("click",function(){return re(t),D().toggleNav()}),z(2,"span",6),x(),A(3,"h1",7),te(4,"Issues"),x(),A(5,"p",8),te(6,"Sample Dashboard"),x(),z(7,"hr"),A(8,"p",9),te(9,"Project"),x(),A(10,"ul",10)(11,"li",11)(12,"a",12),te(13,"Dashboard"),x()(),A(14,"li",13)(15,"a",12),te(16,"Issues"),x()()(),A(17,"p",9),te(18,"Account"),x(),A(19,"ul",10)(20,"li",14)(21,"a",12),te(22,"My Profile"),x()(),A(23,"li",15)(24,"a",12),te(25,"Sign Out"),x()()(),A(26,"p",9),te(27,"Resources"),x(),A(28,"ul",10)(29,"li",16)(30,"a",17),te(31,"Download on Github"),x()(),A(32,"li",18)(33,"a",19),te(34,"Documentation"),x()()(),z(35,"hr",20),A(36,"div",21)(37,"p"),te(38),z(39,"br"),A(40,"a",22),te(41,"Progress Software Corporation"),x(),te(42," and/or its subsidiaries or affiliates."),x(),A(43,"p"),te(44,"All Rights Reserved."),x()()()}if(2&i){var e=D();y("@toggleNav",e.navState),k(12),y("routerLink",Tt(6,TAe)),k(3),y("routerLink",Tt(7,AAe)),k(6),y("routerLink",Tt(8,xAe)),k(3),y("routerLink",Tt(9,MAe)),k(14),Pt("Copyright \xa9 ",e.year,",")}}var OAe=function(){var i=function(){function r(t){p(this,r),this.router=t,this.year=(new Date).getFullYear(),this.navState=window.innerWidth<768?"collapsed":"expanded"}return v(r,[{key:"id",get:function(){return"app"}},{key:"appClass",get:function(){return"app container-fluid"}},{key:"onResize",value:function(e){this.navState=e.target.innerWidth<768?"collapsed":"expanded"}},{key:"showNav",value:function(){return"/signin"!==this.router.url}},{key:"toggleNav",value:function(){this.navState="expanded"===this.navState?"collapsed":"expanded"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-main-menu"]],hostVars:3,hostBindings:function(t,e){1&t&&Q("resize",function(a){return e.onResize(a)},!1,b3),2&t&&(ie("id",e.id),Ar(e.appClass))},decls:5,vars:1,consts:[[1,"row"],["id","top-bar",1,"top-bar","col-xs-12","bg-dark","d-md-none"],["id","nav","class","col-xs-3 bg-dark text-white py-5 k-vbox",4,"ngIf"],[1,"col-xs","p-4","py-md-5"],["id","nav",1,"col-xs-3","bg-dark","text-white","py-5","k-vbox"],["id","nav-toggle",1,"nav-toggle","d-md-none",3,"click"],[1,"k-icon","k-i-hamburger"],["id","app-title"],["id","app-subtitle"],[1,"h4","mt-5"],[1,"nav","nav-pills","flex-column"],["id","dashbaord",1,"nav-item"],["routerLinkActive","active",1,"nav-link",3,"routerLink"],["id","issues",1,"nav-item"],["id","profile",1,"nav-item"],["id","signout",1,"nav-item"],["id","source",1,"nav-item"],["href","https://github.com/telerik/kendo-angular/tree/master/examples/projects/integration-pwa","target","_blank","role","button",1,"nav-link"],["id","documentation",1,"nav-item"],["href","https://www.telerik.com/kendo-angular-ui/components","target","_blank","role","button",1,"nav-link"],[1,"k-flex"],["id","copy"],["href","http://www.progress.com"]],template:function(t,e){1&t&&(A(0,"div",0),z(1,"div",1),T(2,RAe,45,10,"div",2),A(3,"main",3),z(4,"router-outlet"),x()()),2&t&&(k(2),y("ngIf",e.showNav()))},directives:[qe,lD,Pj,eI],styles:["html,body{height:100%;font-family:Arial,Helvetica,sans-serif}span.active{background-color:gray}.col-xs{flex-basis:0;flex-grow:1;max-width:100%}.col-xs-12{flex:0 0 100%}.nav-toggle .k-i-hamburger{font-size:32px}\n"],encapsulation:2,data:{animation:[ef("toggleNav",[Cd("collapsed, void",Ft({transform:"translateX(-100%)"})),Cd("expanded",Ft({transform:"translateX(0)"})),iu("collapsed <=> expanded",[Ai(200),Ai(200)])])]}}),i}(),IAe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-maestro-app"]],decls:1,vars:0,template:function(t,e){1&t&&z(0,"app-main-menu")},directives:[OAe],encapsulation:2}),i}(),uD="https://api.github.com/repos/telerik/kendo-ui-core/issues",FAe=["6170ac11463601b547","224777b801f2e889077ca9"].join(""),Fy=new Vp({Authorization:"token ".concat(FAe)}),Jp=function(){var i=function(){function r(t){p(this,r),this.http=t}return v(r,[{key:"getGithubIssues",value:function(e){return OO(this.getIssuesUrls(e))}},{key:"getTotalIssuesCount",value:function(){return this.http.get("".concat(uD,"?since='").concat("2018-01-01T00:00:00","'"),{headers:Fy})}},{key:"getIssuesUrls",value:function(e){for(var n=e.pages,a=[],o=1;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{open:[],closed:[]},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{Enhancement:[],Others:[],"SEV: Low":[],"SEV: Medium":[],"SEV: High":[],Feature:[]},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{lowest:{close_rate:0,created_at:(new Date).toISOString()},highest:{close_rate:0,created_at:(new Date).toISOString()},average:0};p(this,i),this.active=r,this.open=t,this.closed=e,this.groupedIssues=n,this.issueTypes=a,this.typesDistribution=o,this.closeRate=s}),lI={"SEV: LOW":"#ff9800","SEV: MEDIUM":"#ff5d2a","SEV: HIGH":"#d50000",ENHANCEMENT:"#00c853",FEATURE:"#2e7d32",OTHER:"#1ca8dd","PASSED QA":"#57b45b",BUG:"#cf3257","NEEDS QA":"#bc007c",DOCUMENTATION:"#455a64",DEMO:"#673ab7",DELETED:"#f44336","IN PROGRESS":"#ffd600"},cD=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"process",value:function(e,n){var a=this.filterByMonth(r.mapIssues(e),n),o=this.groupIssues(a);return new jj(a,o.open.length,o.closed.length,o,this.groupLabels(a),this.distribution(a),this.closeRate(o))}},{key:"flatten",value:function(e){return e.reduce(function(n,a){return n.concat(a)})}},{key:"aggregate",value:function(e,n){return e.reduce(function(a,o){return a[o[n]]=(a[o[n]]||0)+1,a},{})}},{key:"closeRate",value:function(e){var n=this.aggregate(e.closed.map(function(s){return{created_at:new Date(s.created_at).setHours(0,0,0,0)}}),"created_at"),a=this.aggregate(e.open.map(function(s){return{created_at:new Date(s.created_at).setHours(0,0,0,0)}}),"created_at"),o=Object.keys(n).map(function(s){var l=n[s]||0;return{created_at:s,close_rate:l/(l+(a[s]||0))}});return{lowest:o.reduce(function(s,l){return s.close_ratel.close_rate?s:l}),average:e.closed.length/(e.open.length+e.closed.length)}}},{key:"groupIssues",value:function(e){return e.reduce(function(n,a){return n[a.state].push(a),n},{open:[],closed:[]})}},{key:"groupLabels",value:function(e){var n=this.aggregate(this.flatten(e.map(function(d){return d.labels})),"name"),a=n["SEV: Low"]/e.length,o=n["SEV: Medium"]/e.length,s=n["SEV: High"]/e.length,l=n.Enhancement/e.length,u=n.Feature/e.length,c=1-a-o-s-l-u;return[{type:"SEV: LOW",value:parseFloat(a.toFixed(2))},{type:"SEV: MEDIUM",value:parseFloat(o.toFixed(2))},{type:"SEV: HIGH",value:parseFloat(s.toFixed(2))},{type:"ENHANCEMENT",value:parseFloat(l.toFixed(2))},{type:"FEATURE",value:parseFloat(u.toFixed(2))},{type:"OTHER",value:parseFloat(c.toFixed(2))}]}},{key:"distribution",value:function(e){var n=this;return e.map(function(a){return{created_at:new Date(a.created_at).setHours(0,0,0,0),label:n.cleanupLabels(a.labels)}}).reduce(function(a,o){return a[o.label].push({date:new Date(o.created_at),value:1}),a},{Others:[],Enhancement:[],"SEV: Low":[],"SEV: Medium":[],"SEV: High":[],Feature:[]})}},{key:"cleanupLabels",value:function(e){var n=e.filter(function(a){return"SEV: Low"===a.name||"SEV: High"===a.name||"Feature"===a.name||"Enhancement"===a.name||"SEV: Medium"===a.name}).map(function(a){return a.name});return 0===n.length?"Others":n[0]}},{key:"filterByMonth",value:function(e,n){var a=this;return e.filter(function(o){return new Date(o.created_at).getTime()>a.getMonthsRange(n).getTime()})}},{key:"filterByUsername",value:function(e,n){return this.process(e,12).active.filter(function(a){return a.assignee===n})}},{key:"getMonthsRange",value:function(e){var n=new Date;return n.setMonth(n.getMonth()-e),n}}],[{key:"mapIssues",value:function(e){return e.reduce(function(n,a){return[].concat(Ae(n),Ae(a))},[]).filter(function(n){return!n.pull_request}).map(r.mapIssue)}},{key:"mapIssue",value:function(e){return{id:e.number,title:e.title,body:e.body,author:r.mapUser(e.user),assignees:e.assignees?e.assignees.map(r.mapUser):[],state:e.state,date:new Date(e.created_at),dateClosed:e.closed_at?new Date(e.closed_at):void 0,count:1,labels:e.labels.map(r.mapLabels),milestone:e.milestone,created_at:e.created_at,assignee:e.assignee?e.assignee.login:"none"}}},{key:"mapLabels",value:function(e){var n=e.name.toUpperCase();return e.color=n in lI?lI[n]:lI.OTHER,e}},{key:"mapUser",value:function(e){return{id:e.id,name:e.login,avatarUrl:e.avatar_url,avatarUrlThumb:e.avatar_url+"&size=60"}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),eg=(od(386),function(r,t){return function(e){return t(r(e))}}),dl=function(r,t,e){return r.addEventListener&&r.addEventListener(t,e)},$a=function(r,t,e){return r&&r.removeEventListener&&r.removeEventListener(t,e)},tg=function(){},uI=function(r){return r.preventDefault()},LAe=/touch/;function ng(i){return i.type.match(LAe)?{pageX:i.changedTouches[0].pageX,pageY:i.changedTouches[0].pageY,clientX:i.changedTouches[0].clientX,clientY:i.changedTouches[0].clientY,type:i.type,originalEvent:i,isTouch:!0}:{pageX:i.pageX,pageY:i.pageY,clientX:i.clientX,clientY:i.clientY,offsetX:i.offsetX,offsetY:i.offsetY,type:i.type,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,altKey:i.altKey,originalEvent:i}}var BAe=function(){var i=function(){function r(t){var e=this,n=t.press,a=void 0===n?tg:n,o=t.drag,s=void 0===o?tg:o,l=t.release,u=void 0===l?tg:l,c=t.mouseOnly,d=void 0!==c&&c;p(this,r),this._pressHandler=eg(ng,a),this._dragHandler=eg(ng,s),this._releaseHandler=eg(ng,u),this._ignoreMouse=!1,this._mouseOnly=d,this._touchstart=function(h){1===h.touches.length&&e._pressHandler(h)},this._touchmove=function(h){1===h.touches.length&&e._dragHandler(h)},this._touchend=function(h){0===h.touches.length&&1===h.changedTouches.length&&(e._releaseHandler(h),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(h){var f=h.which;f&&f>1||e._ignoreMouse||(dl(e.document,"mousemove",e._mousemove),dl(e.document,"mouseup",e._mouseup),e._pressHandler(h))},this._mousemove=function(h){e._dragHandler(h)},this._mouseup=function(h){$a(e.document,"mousemove",e._mousemove),$a(e.document,"mouseup",e._mouseup),e._releaseHandler(h)},this._pointerdown=function(h){h.isPrimary&&0===h.button&&(dl(e.document,"pointermove",e._pointermove),dl(e.document,"pointerup",e._pointerup),dl(e.document,"pointercancel",e._pointerup),dl(e.document,"contextmenu",uI),e._pressHandler(h))},this._pointermove=function(h){h.isPrimary&&e._dragHandler(h)},this._pointerup=function(h){h.isPrimary&&($a(e.document,"pointermove",e._pointermove),$a(e.document,"pointerup",e._pointerup),$a(e.document,"pointercancel",e._pointerup),$a(e.document,"contextmenu",uI),e._releaseHandler(h))}}return v(r,[{key:"document",get:function(){return this._element?this._element.ownerDocument:document}},{key:"bindTo",value:function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())}},{key:"_bindToCurrent",value:function(){var e=this._element;this._usePointers()?dl(e,"pointerdown",this._pointerdown):(dl(e,"mousedown",this._mousedown),this._mouseOnly||(dl(e,"touchstart",this._touchstart),dl(e,"touchmove",this._touchmove),dl(e,"touchend",this._touchend)))}},{key:"_unbindFromCurrent",value:function(){var e=this._element;if(this._usePointers())return $a(e,"pointerdown",this._pointerdown),$a(this.document,"pointermove",this._pointermove),$a(this.document,"pointerup",this._pointerup),$a(this.document,"contextmenu",uI),void $a(this.document,"pointercancel",this._pointerup);$a(e,"mousedown",this._mousedown),this._mouseOnly||($a(e,"touchstart",this._touchstart),$a(e,"touchmove",this._touchmove),$a(e,"touchend",this._touchend))}},{key:"_usePointers",value:function(){return!this._mouseOnly&&r.supportPointerEvent()}},{key:"update",value:function(e){var n=e.press,o=e.drag,s=void 0===o?tg:o,l=e.release,u=void 0===l?tg:l,c=e.mouseOnly,d=void 0!==c&&c;this._pressHandler=eg(ng,void 0===n?tg:n),this._dragHandler=eg(ng,s),this._releaseHandler=eg(ng,u),this._mouseOnly=d}},{key:"destroy",value:function(){this._unbindFromCurrent(),this._element=null}}],[{key:"supportPointerEvent",value:function(){return"undefined"!=typeof window&&window.PointerEvent}}]),r}();return i.default=i,i}(),cI=BAe;function GAe(i){return oi(function(r,t){var e=!1,n=null,a=null,o=!1,s=function(){if(null==a||a.unsubscribe(),a=null,e){e=!1;var c=n;n=null,t.next(c)}o&&t.complete()},l=function(){a=null,o&&t.complete()};r.subscribe(Wn(t,function(u){e=!0,n=u,a||Pi(i(u)).subscribe(a=Wn(t,s,l))},function(){o=!0,(!e||!a||a.closed)&&t.complete()}))})}function ff(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return GAe(function(){return Hw(i,r)})}var Ze=function(){return"undefined"!=typeof document},yn=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return!(void 0===t[r]||t[r].isFirstChange()&&e||t[r].previousValue===t[r].currentValue)},Ki=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.some(function(n){return yn(n,t,e)})},ut=function(r){return r&&r.observers.length>0},qn=function(){for(var r="",t=0;t<32;t++){var e=16*Math.random()|0;(8===t||12===t||16===t||20===t)&&(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16)}return r},$o=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.ngZone=e,this.enableDrag=!0,this.kendoPress=new O,this.kendoDrag=new O,this.kendoRelease=new O}return v(r,[{key:"ngOnInit",value:function(){this.toggleDraggable()}},{key:"ngOnChanges",value:function(e){yn("enableDrag",e)&&this.toggleDraggable()}},{key:"ngOnDestroy",value:function(){this.destroyDraggable()}},{key:"toggleDraggable",value:function(){var e=this;Ze()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new cI({drag:function(a){return e.kendoDrag.next(a)},press:function(a){return e.kendoPress.next(a)},release:function(a){return e.kendoRelease.next(a)}}),this.ngZone.runOutsideAngular(function(){return e.draggable.bindTo(e.element.nativeElement)})))}},{key:"destroyDraggable",value:function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoDraggable",""]],inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},features:[Ie]}),i}(),Ly=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),qi=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.ngZone=e,this.renderer=n,this.events={}}return v(r,[{key:"ngOnInit",value:function(){var e=this;if(this.element&&this.element.nativeElement){var n=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var a in n)n.hasOwnProperty(a)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,a,e.scope?n[a].bind(e.scope):n[a]))})}}},{key:"ngOnDestroy",value:function(){if(this.subscriptions){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:this.measure();this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0}},{key:"checkChanges",value:function(){!Ze()||0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))}},{key:"destroy",value:function(){this.resizeBatchService.cancel(this)}},{key:"checkSize",value:function(){if(this.parentElement){var t=this.measure(),e=t.width,n=t.height;if(e!==this.lastWidth||n!==this.lastHeight)return this.lastWidth=e,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}}},{key:"initSize",value:function(){var t=this.measure();this.lastWidth=t.width,this.lastHeight=t.height}},{key:"measure",value:function(){var t=0,e=0;return this.parentElement&&(e=this.parentElement.offsetHeight,t=this.parentElement.offsetWidth),{height:e,width:t}}}]),i}(),dD=function(r){var t=document.createElement("div");return t.style.cssText=r,t},hI="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",WAe=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e)).element=n,o.ngZone=a,o}return v(t,[{key:"checkChanges",value:function(){2!==this.state?$(q(t.prototype),"checkChanges",this).call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)}},{key:"destroy",value:function(){if($(q(t.prototype),"destroy",this).call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var n=this.element.nativeElement;n.removeChild(this.expand),n.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}}},{key:"checkSize",value:function(){if($(q(t.prototype),"checkSize",this).call(this))return this.reset(),!0}},{key:"init",value:function(){var n=this.parentElement=this.element.nativeElement.parentElement;"static"===function(r,t){return getComputedStyle(r,null).getPropertyValue("position")}(n)&&(n.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()}},{key:"render",value:function(){var n=this.element.nativeElement;n.style.cssText=hI,n.setAttribute("dir","ltr"),this.expand=dD(hI),this.expandChild=dD("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),n.appendChild(this.expand),this.shrink=dD(hI);var a=dD("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(a),n.appendChild(this.shrink)}},{key:"reset",value:function(){var n=this.expandChild;n.style.width="100000px",n.style.height="100000px";var a=this.expand;a.scrollLeft=1e5,a.scrollTop=1e5;var o=this.shrink;o.scrollLeft=1e5,o.scrollTop=1e5}},{key:"subscribe",value:function(){var n=this;this.ngZone.runOutsideAngular(function(){n.subscription=xn(li(n.shrink,"scroll"),li(n.expand,"scroll")).subscribe(function(){n.checkSize()})})}}]),t}(Xj),$Ae="undefined"!=typeof ResizeObserver,Yj=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e)).element=n,o.ngZone=a,o}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null}},{key:"init",value:function(){var n=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(function(){n.resizeObserver=new ResizeObserver(function(){n.checkSize()}),n.resizeObserver.observe(n.parentElement)})}}],[{key:"supported",value:function(){return $Ae}}]),t}(Xj),Qj=function(){var i=function(){function r(t){p(this,r),this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return v(r,[{key:"schedule",value:function(e,n){var a=this;this.scheduled.push({instance:e,method:n}),this.subscription||this.ngZone.runOutsideAngular(function(){a.subscription=wi(a.resolvedPromise).subscribe(a.flush)})}},{key:"isScheduled",value:function(e){return Boolean(this.scheduled.find(function(n){return n.instance===e}))}},{key:"cancel",value:function(e){for(var n=this.scheduled,a=n.length,o=0;o2&&void 0!==arguments[2]&&arguments[2],o=this.key(e),s=n;if(!a){if(this.dictionary.hasOwnProperty(o))return;s=this.defaultValue(o,n)}this.dictionary[o]=s}},{key:"notifyChanges",value:function(){this.changes.next({rtl:this.rtl})}},{key:"key",value:function(e){return this.prefix+"."+e}},{key:"defaultValue",value:function(e,n){if(!this.messageService)return n;var a=this.messageService.get(e);return void 0===a?n:a}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Dt),oe(rg,8),oe(Td,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),tW=["AgfZ","turOExC=","zNvUy3rPB24=","z3jVDxa=","ChvIBgLZAerHDgu=","zgf0yq==","DgLTzxn0yw1W","vM5SC2O=","rejpz2u=","DfvPvvq=","D01gsvi=","u0Xdu2y=","C2nYAxb0s2v5","Dg9mB2nHBgvtDhjPBMC=","r3bNtu8=","C2v0","ChjVzhvJDe5HBwu=","BgLJzw5ZAw5Nrg9JC1vYBa==","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","DMvYC2LVBG==","C1DHyu0=","ChjVzhvJDhm=","CNfLrgK=","uKP0uwG=","CgfYC2u=","y3DYvhq=","zxHWAxj5rgf0zq==","uMLXufK=","tM8GBgLJzw5ZzsbMB3vUzc4k","tNz1Awe=","z3jVDxbfBMq=","sK1Vvey=","zMLUza==","D2fYBG==","tfDRtxq=","CgfJA2fNzu5HBwu=","Dw5KzwzPBMvK","C3niBfO=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","ChjVzhvJDenVzgvZ","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","uhjVz3jLC3mG","tfLwDLa=","BgvUz3rO","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","uvPnu2m=","BMfTzq==","B2jQzwn0","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","zvn3tLG=","u2vLia==","s0PPBvO=","zxbwz0u=","zg9JC1vYBa==","z2v0","DhLWzq==","y29Kzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G"];!function(i,r){!function(n){for(;--n;)i.push(i.shift())}(++r)}(tW,391);var Se=function i(r,t){var e=tW[r-=0];void 0===i.IhMVZF&&(i.uAzrZg=function(o){for(var s=function(s){for(var h,f,u=String(s).replace(/=+$/,""),c="",d=0,g=0;f=u.charAt(g++);~f&&(h=d%4?64*h+f:f,d++%4)?c+=String.fromCharCode(255&h>>(-2*d&6)):0)f="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(f);return c}(o),l=[],u=0,c=s.length;u0&&(e.width-=function sxe(){if(!kI&&"undefined"!=typeof document){var i=document.createElement("div");i.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",i.innerHTML=" ",document.body.appendChild(i),kI=i.offsetWidth-i.scrollWidth,document.body.removeChild(i)}return kI}()),e}var hl=function(r){var t=r.getBoundingClientRect(),n=t.left,a=t.top;return!t.height&&!t.width&&(t=function(r){var t=r.style,e=t.display,n=t.left,a=t.position;r.style.display="",r.style.left="-10000px",r.style.position="absolute";var o=r.getBoundingClientRect();return r.style.display=e,r.style.left=n,r.style.position=a,o}(r)),{top:a,left:n,height:t.height,width:t.width}},CI=function(i,r){for(var t=[],e=i.parentNode;e&&(t.push(e),e!==r);)e=e.parentNode;return t};function pD(i){var r=fD(i),t=yI(i);return{x:t.pageXOffset||r.scrollLeft||0,y:t.pageYOffset||r.scrollTop||0}}var hW=function(i){return i===(i.ownerDocument||{}).body?pD(i):{x:i.scrollLeft,y:i.scrollTop}},bI=function(r){for(var t=r.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||fD(r)},fxe=function(i,r){return i?hW(i):function hxe(i){var r=bI(i);return r?hW(r):{x:0,y:0}}(r)},pxe=function(r,t){var e=yI(r),n=e.getComputedStyle(r),a=hl(r),o=t||bI(r),s=r.ownerDocument,u={top:0,left:0};if("fixed"!==n.position&&o!==s.body&&o!==s.documentElement){var c=e.getComputedStyle(o);(u=hl(o)).top+=parseInt(c.borderTopWidth,10),u.left+=parseInt(c.borderLeftWidth,10)}return{top:a.top-u.top,left:a.left-u.left,height:a.height,width:a.width}},SI=function(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,e=r?bI(r):null,n=pxe(i,e),a=n.top,o=n.left,s=n.height,l=n.width,u=fxe(e,i),c=u.x,d=u.y,h=i.ownerDocument,f=e===h.body||e===h.documentElement?1:t;return{top:a+d*f,left:o+c*f,height:s,width:l}};var vW=function(r,t,e){var n=0;return r+t>e&&(n=e-(r+t)),r<0&&(n=-r),n},pW=function(r){var t=r.offset,e=r.size,n=r.anchorSize,a=r.viewPortSize,o=r.anchorAlignPoint,s=r.elementAlignPoint,u=0,h=2*r.margin;if(s!==o&&"center"!==s&&"middle"!==s&&"center"!==o&&"middle"!==o){var f="top"===o||"left"===o;t<0&&f?t+(u=e+n+h)+e>a&&(u=0):t>=0&&!f&&(t+e>a&&(u+=-(n+e+h)),t+u<0&&(u=0))}return u},mxe=function(i){for(var r=[],t=i.parentNode.firstElementChild;t;)t!==i&&r.push(t),t=t.nextElementSibling;return r};!function Cxe(i){var r,t=!1}(function(i){if(!_W())return!1;var r=i?i.ownerDocument:document;if(!r||!r.body)return!1;var e=r.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='
    child
    '),r.body.appendChild(e);var n=10!==e.children[0].getBoundingClientRect().top;return r.body.removeChild(e),n});var _W=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},jxe=["container"];function Wxe(i,r){}var $xe=["*"],wI=function(r,t){return r||{height:0,left:t.left,top:t.top,width:0}},mD=function(){return"undefined"!=typeof window},Zxe=/auto|scroll/,Jxe=function(r){return function(r){return"".concat(r.style.overflow).concat(r.style.overflowX).concat(r.style.overflowY)}(r)||function(r){var t=window.getComputedStyle(r);return"".concat(t.overflow).concat(t.overflowX).concat(t.overflowY)}(r)},CW=1e3/60,nMe=function tMe(i){var r,t=!1;return function(){return t||(r=i.apply(void 0,arguments),t=!0),r}}(function(){if(!Ze()&&null!==document.body)return!1;var r=document.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='
    child
    '),document.body.appendChild(r);var t=10!==r.children[0].getBoundingClientRect().top;return document.body.removeChild(r),t}),zy=function(r,t){return r&&1!==t?{height:r.height/t,left:r.left/t,top:r.top/t,width:r.width/t}:r},bW=new wt("Popup Document Scale"),rMe=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],og=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"addOffset",value:function(e,n){return{left:e.left+n.left,top:e.top+n.top}}},{key:"addScroll",value:function(e,n){return function uW(i,r){return{top:i.top+r.y,left:i.left+r.x,height:i.height,width:i.width}}(e,n)}},{key:"align",value:function(e){return function(r){var t=r.anchorRect,e=r.anchorAlign,n=r.elementRect,a=r.elementAlign,o=r.margin,s=void 0===o?{}:o,l=e.horizontal,u=e.vertical,c=a.horizontal,d=a.vertical,h=s.horizontal||0,f=s.vertical||0,g=t.top,_=t.left;return"bottom"===u&&(g+=t.height),("center"===u||"middle"===u)&&(g+=Math.round(t.height/2)),"bottom"===d&&(g-=n.height,f*=-1),("center"===d||"middle"===d)&&(g-=Math.round(n.height/2),f*=-1),"right"===l&&(_+=t.width),("center"===l||"middle"===l)&&(_+=Math.round(t.width/2)),"right"===c&&(_-=n.width,h*=-1),("center"===c||"middle"===c)&&(_-=Math.round(n.width/2),h*=-1),{top:g+f,left:_+h}}(e)}},{key:"boundingOffset",value:function(e){return function(r){if(!r.getBoundingClientRect){var t=vD(r);return{bottom:t.height,left:0,right:t.width,top:0}}var e=r.getBoundingClientRect();return{bottom:e.bottom,left:e.left,right:e.right,top:e.top}}(e)}},{key:"getFontStyles",value:function(e){var n=this.getWindow();if(!n||!e)return[];var a=n.getComputedStyle(e);return rMe.map(function(o){return{key:o,value:a[o]}})}},{key:"getWindow",value:function(){return mD()?window:null}},{key:"hasOffsetParent",value:function(e){return!!e&&!!this.nativeElement(e).offsetParent}},{key:"offset",value:function(e){return e?hl(e):null}},{key:"offsetAtPoint",value:function(e,n){if(!e)return null;var a=this.nativeElement(e),o=a.style,s=o.left,l=o.top,u=o.transition;a.style.transition="none",a.style.left="".concat(n.left,"px"),a.style.top="".concat(n.top,"px");var c=hl(a);return a.style.left=s,a.style.top=l,a.style.transition=u,c}},{key:"nativeElement",value:function(e){return e?e.nativeElement||e:null}},{key:"position",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e&&n?SI(e,this.nativeElement(n),a):null}},{key:"removeScroll",value:function(e,n){return function fW(i,r){return{top:i.top-r.y,left:i.left-r.x,height:i.height,width:i.width}}(e,n)}},{key:"restrictToView",value:function(e){return function(r){var t=r.anchorRect,e=r.anchorAlign,n=r.elementRect,a=r.elementAlign,o=r.collisions,s=r.viewPort,l=r.margin,u=void 0===l?{}:l,c=n.top,d=n.left,h=n.height,f=n.width,g=s.height,_=s.width,C=u.horizontal||0,w=u.vertical||0,E=0,M=0,R="fit"===o.vertical,N="fit"===o.horizontal,V="flip"===o.vertical,U="flip"===o.horizontal;R&&(M+=vW(c,h,g)),N&&(E+=vW(d,f,_)),V&&(M+=pW({margin:w,offset:c,size:h,anchorSize:t.height,viewPortSize:g,anchorAlignPoint:e.vertical,elementAlignPoint:a.vertical})),U&&(E+=pW({margin:C,offset:d,size:f,anchorSize:t.width,viewPortSize:_,anchorAlignPoint:e.horizontal,elementAlignPoint:a.horizontal}));var ee=V&&0!==M,ve=U&&0!==E,G=R&&0!==M,I=N&&0!==E;return{flipped:ve||ee,fitted:G||I,flip:{horizontal:ve,vertical:ee},fit:{horizontal:I,vertical:G},offset:{left:E,top:M}}}(e)}},{key:"scrollPosition",value:function(e){return pD(this.nativeElement(e))}},{key:"scrollableParents",value:function(e){return function(r){var t=[];if(!Ze()||!mD())return t;for(var e=r.parentElement;e;)(Zxe.test(Jxe(e))||e.hasAttribute("data-scrollable"))&&t.push(e),e=e.parentElement;return t.push(window),t}(e)}},{key:"stackingElementOffset",value:function(e){var n=this.getRelativeContextElement(e);return n?hl(n):null}},{key:"stackingElementScroll",value:function(e){var n=this.getRelativeContextElement(e);return n?{x:n.scrollLeft,y:n.scrollTop}:{x:0,y:0}}},{key:"getRelativeContextElement",value:function(e){if(!e||!nMe())return null;for(var n=this.nativeElement(e).parentElement;n;){if("none"!==window.getComputedStyle(n).transform)return n;n=n.parentElement}return null}},{key:"useRelativePosition",value:function(e){return!!this.getRelativeContextElement(e)}},{key:"windowViewPort",value:function(e){return vD(this.nativeElement(e))}},{key:"zIndex",value:function(e,n){return function(r,t){if(!r||!Ze()||!mD())return null;var e=function(i,r){for(var n,a,t=CI(i),e=r;e&&(n=mxe(e),!(a=t.reduce(function(o,s){return o.concat(n.filter(function(l){return l===s}))},[])[0]));)e=e.parentElement;return a}(r,t);if(!e)return null;var n=[r].concat(CI(r,e)).reduce(function(a,o){var s=o.style.zIndex||window.getComputedStyle(o).zIndex,l=parseInt(s,10);return l>a?l:a},0);return n?n+1:null}(e,this.nativeElement(n))}},{key:"zoomLevel",value:function(){return Ze()&&mD()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}},{key:"isZoomed",value:function(){return this.zoomLevel()>1}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),SW=function(){var i=function(){function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;p(this,r),this._dom=t,this.scale=e}return v(r,[{key:"alignElement",value:function(e){var n=e.anchor,a=e.element,o=e.anchorAlign,s=e.elementAlign,l=e.margin,u=e.offset,d=this.scale||1,f="fixed"!==e.positionMode&&this._dom.hasOffsetParent(a)?this.relativeRect(n,a,u,d):this.absoluteRect(n,a,u,d),g=zy(this._dom.offset(a.nativeElement),d);return this._dom.align({anchorAlign:o,anchorRect:f,elementAlign:s,elementRect:g,margin:l})}},{key:"absoluteRect",value:function(e,n,a,o){var s=this.elementScrollPosition(e,n),l=wI(this._dom.offset(e),a),u=2*o,c=this._dom.stackingElementScroll(n);1!==o&&c&&(c.x/=u,c.y/=u);var d=this._dom.stackingElementOffset(n);return 1!==o&&d&&(d.left/=u,d.top/=u),this._dom.removeScroll(this._dom.addScroll(function(r,t){return t?{height:r.height,left:r.left-t.left,top:r.top-t.top,width:r.width}:r}(zy(l,o),d),c),s)}},{key:"elementScrollPosition",value:function(e,n){return e?{x:0,y:0}:this._dom.scrollPosition(n)}},{key:"relativeRect",value:function(e,n,a,o){var s=wI(this._dom.position(e,n,o),a);return zy(s,o)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(bW,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),wW=function(){var i=function(){function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;p(this,r),this._dom=t,this.scale=e}return v(r,[{key:"positionElement",value:function(e){var n=e.anchor,a=e.currentLocation,o=e.element,s=e.anchorAlign,l=e.elementAlign,u=e.collisions,c=e.margin,d=this._dom,h=this.scale||1,f=d.offsetAtPoint(o,a),g=zy(f,h),_=zy(d.offset(n),h),C=wI(_,a),w=e.viewPort||d.windowViewPort(o);w.width=w.width/h,w.height=w.height/h;var E=d.restrictToView({anchorAlign:s,anchorRect:C,collisions:u,elementAlign:l,elementRect:g,margin:c,viewPort:w}),M=d.addOffset(a,E.offset);return{flip:E.flip,flipped:E.flipped,offset:M}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(bW,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),DW=function(){var i=function(){function r(t,e){p(this,r),this._dom=t,this._zone=e}return v(r,[{key:"subscribe",value:function(e){var n=this;!Ze()||this._zone.runOutsideAngular(function(){n.subscription=li(n._dom.getWindow(),"resize").pipe(ff(CW)).subscribe(function(){return e()})})}},{key:"unsubscribe",value:function(){!this.subscription||this.subscription.unsubscribe()}},{key:"isUnsubscribed",value:function(){return this.subscription&&this.subscription.closed}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),EW=function(){var i=function(){function r(t,e){p(this,r),this._dom=t,this._zone=e}return v(r,[{key:"forElement",value:function(e){return this.unsubscribe(),this.element=e,this}},{key:"subscribe",value:function(e){var n=this;if(e&&Ze()&&this.element){var a=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(function(){var o=a.map(function(l){return li(l,"scroll").pipe(ff(CW))});n.subscription=xn.apply(void 0,Ae(o)).subscribe(function(u){var c=u.target,d=a.filter(function(g){return g===c}).length>0,h=c===document,f=c===window;(d||h||f)&&e(n.isVisible(n.element,c))})})}}},{key:"unsubscribe",value:function(){!this.subscription||this.subscription.unsubscribe()}},{key:"isVisible",value:function(e,n){var a=this._dom.boundingOffset(e),o=this._dom.boundingOffset(this._dom.nativeElement(n));return!(1=1||Math.abs(n-o)>=1}(this.currentOffset,o))&&(this.currentOffset=o,ut(this.positionChange)&&this._zone.run(function(){return e.positionChange.emit({offset:o,flip:a})})),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,a),this.resizeSensor.acceptSize()}}},{key:"position",value:function(){var e=this._alignService.alignElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})}},{key:"onScroll",value:function(e){var n=this,a=ut(this.anchorViewportLeave);e||!a?this.reposition():a&&this._zone.run(function(){n.anchorViewportLeave.emit()})}},{key:"copyFontStyles",value:function(){var e=this;!this.anchor||!this.copyAnchorStyles||this.domService.getFontStyles(this.domService.nativeElement(this.anchor)).forEach(function(n){return e.setContainerStyle(n.key,n.value)})}},{key:"updateFixedClass",value:function(){this._renderer["fixed"===this.positionMode?"addClass":"removeClass"](this.container.nativeElement,"k-animation-container-fixed")}},{key:"setContainerStyle",value:function(e,n){this._renderer.setStyle(this.container.nativeElement,e,n)}},{key:"unsubscribeReposition",value:function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(SW),m(og),m(wW),m(DW),m(EW),m(TW),m(Ee),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-popup"]],viewQuery:function(t,e){var n;1&t&&(ge(jxe,7),ge(Gr,7)),2&t&&(P(n=B())&&(e.contentContainer=n.first),P(n=B())&&(e.resizeSensor=n.first))},inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",popupClass:"popupClass",positionMode:"positionMode",offset:"offset",margin:"margin"},outputs:{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},exportAs:["kendo-popup"],features:[de([SW,TW,og,wW,DW,EW]),Ie],ngContentSelectors:$xe,decls:5,vars:4,consts:[[1,"k-popup",3,"ngClass"],["container",""],[3,"ngTemplateOutlet","ngIf"],[3,"rateLimit","resize"]],template:function(t,e){1&t&&(kn(),A(0,"div",0,1),dn(2),T(3,Wxe,0,0,"ng-template",2),A(4,"kendo-resize-sensor",3),Q("resize",function(){return e.onResize()}),x()()),2&t&&(y("ngClass",e.popupClass),k(3),y("ngTemplateOutlet",e.content)("ngIf",e.content),k(1),y("rateLimit",100))},directives:[Gr,Nt,En,qe],encapsulation:2}),i}(),cMe=function(r){r&&r.parentNode&&r.parentNode.removeChild(r)},EI=new wt("Popup Container"),kr=function(){var i=function(){function r(t,e,n,a){p(this,r),this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n,this.container=a}return v(r,[{key:"rootViewContainer",get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")}},{key:"rootViewContainerNode",get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.contentFrom(e.content),a=n.component,o=n.nodes,s=this.appendPopup(o,e.appendTo),l=s.instance;this.projectComponentInputs(s,e),s.changeDetectorRef.detectChanges(),a&&a.changeDetectorRef.detectChanges();var u=this.getComponentRootNode(s);return{close:function(){a&&a.destroy(),s.destroy(),cMe(u)},content:a,popup:s,popupAnchorViewportLeave:l.anchorViewportLeave,popupClose:l.close,popupElement:u,popupOpen:l.open,popupPositionChange:l.positionChange}}},{key:"appendPopup",value:function(e,n){var a=this.createComponent(xW,e,n);return n||this.rootViewContainerNode.appendChild(this.getComponentRootNode(a)),a}},{key:"getComponentRootNode",value:function(e){return e.location.nativeElement}},{key:"getComponentFactory",value:function(e){return this.componentFactoryResolver.resolveComponentFactory(e)}},{key:"createComponent",value:function(e,n,a){var o=this.getComponentFactory(e);if(a)return a.createComponent(o,void 0,this.injector,n);var s=o.create(this.injector,n);return this.applicationRef.attachView(s.hostView),s}},{key:"projectComponentInputs",value:function(e,n){return Object.getOwnPropertyNames(n).filter(function(a){return"content"!==a||n.content instanceof $e}).map(function(a){e.instance[a]=n[a]}),e}},{key:"contentFrom",value:function(e){if(!e||e instanceof $e)return{component:null,nodes:[[]]};var n=this.createComponent(e);return{component:n,nodes:[n?[n.location.nativeElement]:[]]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(dy),oe(Ts),oe(Jn),oe(EI,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Fa=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[kr],imports:[[bt,yo]]}),i}(),dMe=[[["","kendoButton",""]]],hMe=["[kendoButton]"],CMe=["button"],bMe=["popupTemplate"],MW=["*"];function SMe(i,r){1&i&&z(0,"span",8),2&i&&y("ngClass",D().kendoIconClass)}function wMe(i,r){1&i&&z(0,"span",9),2&i&&y("ngClass",D().customIconClass)}function DMe(i,r){if(1&i&&(A(0,"span",10),z(1,"span",11),x()),2&i){var t=D();k(1),y("ngClass",t.chipAvatarClass)}}function EMe(i,r){if(1&i&&(A(0,"span",12),te(1),x()),2&i){var t=D();k(1),Pt(" ",t.label," ")}}function TMe(i,r){1&i&&dn(0,0,["*ngIf","!label"])}function AMe(i,r){if(1&i){var t=xe();A(0,"span",13),Q("click",function(a){return re(t),D().onRemoveClick(a)}),z(1,"span",14),x()}if(2&i){var e=D();k(1),y("ngClass",e.removeIconClass)}}var xMe=["kendoDialItem",""];function MMe(i,r){}var RMe=function(r,t,e){return{$implicit:r,index:t,isFocused:e}};function OMe(i,r){if(1&i&&T(0,MMe,0,0,"ng-template",1),2&i){var t=D();y("ngTemplateOutlet",t.dialItemTemplate)("ngTemplateOutletContext",va(2,RMe,t.item,t.index,t.isFocused))}}function IMe(i,r){if(1&i&&(A(0,"span",4),te(1),x()),2&i){var t=D(2);k(1),at(t.item.label)}}function NMe(i,r){1&i&&z(0,"span",5),2&i&&y("ngClass",D(2).iconClasses)}function FMe(i,r){if(1&i&&(Ge(0),T(1,IMe,2,1,"span",2),T(2,NMe,1,1,"span",3),Ve()),2&i){var t=D();k(1),y("ngIf",t.item.label),k(1),y("ngIf",t.item.icon||t.item.iconClass)}}var LMe=["kendoDialList",""];function PMe(i,r){if(1&i&&(Ge(0),z(1,"li",1),Ve()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),y("item",n.dialItems[e])("index",e)("dialItemTemplate",n.dialItemTemplate)("isFocused",n.isFocused(e))("ngClass",t.cssClass)("ngStyle",t.cssStyle)("align",n.align)}}function BMe(i,r){}function GMe(i,r){if(1&i&&T(0,BMe,0,0,"ng-template",4),2&i){var t=D();y("ngTemplateOutlet",null==t.fabTemplate?null:t.fabTemplate.templateRef)}}function VMe(i,r){1&i&&z(0,"span",7),2&i&&y("ngClass",D(2).iconClasses)}function UMe(i,r){if(1&i&&(A(0,"span",8),te(1),x()),2&i){var t=D(2);k(1),at(t.text)}}function zMe(i,r){if(1&i&&(Ge(0),T(1,VMe,1,1,"span",5),T(2,UMe,2,1,"span",6),Ve()),2&i){var t=D();k(1),y("ngIf",t.icon||t.iconClass),k(1),y("ngIf",t.text)}}function HMe(i,r){if(1&i){var t=xe();A(0,"ul",9),Q("click",function(a){return re(t),D().onItemClick(a)}),x()}if(2&i){var e=D();y("ngClass",e.dialClass)("dialItems",e.dialItems)("dialItemTemplate",null==e.dialItemTemplate?null:e.dialItemTemplate.templateRef)("align",e.align),ie("aria-labelledby",e.id)}}var KMe=function(r,t){return{keydown:r,click:t}},ug={name:"@progress/kendo-angular-buttons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440722,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},qa=(Promise.resolve(null),function(r){return null!=r});function WMe(i){return 9===i.nodeType}function yD(i,r){if(i.closest)return i.closest(r);for(var t=Element.prototype.matches?function(n,a){return n.matches(a)}:function(n,a){return n.msMatchesSelector(a)},e=i;e&&!WMe(e);){if(t(e,r))return e;e=e.parentNode}}var TI={small:"sm",medium:"md",large:"lg"},RW={small:"sm",medium:"md",large:"lg",full:"full"},AI=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(TI[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(TI[n]):""};case"rounded":return{toRemove:"k-rounded-".concat(RW[e]),toAdd:"none"!==n?"k-rounded-".concat(RW[n]):""};case"fillMode":return{toRemove:"k-".concat(r,"-").concat(e),toAdd:"none"!==n?"k-".concat(r,"-").concat(n):""}}},OW=function(r,t,e,n,a){return{toRemove:"k-".concat(r,"-").concat(t,"-").concat(n),toAdd:"none"!==a?"k-".concat(r,"-").concat(e,"-").concat(a):""}},xI=function(){var i=function(){function r(){p(this,r),this.buttonClicked=new Ot,this.buttonClicked$=this.buttonClicked.asObservable()}return v(r,[{key:"click",value:function(e){this.buttonClicked.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Xa=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.service=n,this.ngZone=o,this.toggleable=!1,this.role="button",this.selectedChange=new O,this.click=new O,this.isDisabled=!1,this.isIcon=!1,this.isIconClass=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this._focused=!1,this.subs=new Je,jt(ug),this.direction=a.rtl?"rtl":"ltr",this.subs.add(a.changes.subscribe(function(l){return s.direction=l.rtl?"rtl":"ltr"})),this.element=t.nativeElement,this.renderer=e}return v(r,[{key:"togglable",get:function(){return this.toggleable},set:function(e){this.toggleable=e}},{key:"selected",get:function(){return this._selected||!1},set:function(e){this._selected=e}},{key:"tabIndex",get:function(){return this.element.tabIndex},set:function(e){this.element.tabIndex=e}},{key:"icon",set:function(e){var n=this;e?this.iconSetter(e,function(){n.isIcon=!0,n.addIcon("k-button-icon k-icon k-i-"+e)}):(this.isIcon=!1,this.updateIconNode())}},{key:"iconClass",set:function(e){var n=this;e?this.iconSetter(e,function(){n.isIconClass=!0,n.addIcon("k-button-icon "+e)}):(this.isIconClass=!1,this.updateIconNode())}},{key:"imageUrl",set:function(e){e?this.iconSetter(e,this.addImgIcon.bind(this)):this.removeImageNode()}},{key:"disabled",get:function(){return this.isDisabled},set:function(e){e&&Ze()&&function(r){var t=mI(r),e=gI(r);return t&&t.mozilla||e&&"firefox"===e.browser}(navigator.userAgent)&&this.blur(),this.isDisabled=e,this.renderer.setProperty(this.element,"disabled",e)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){var n=e||"base";this.handleThemeColor(n),this._themeColor=n}},{key:"isFocused",get:function(){return this._focused},set:function(e){this.toggleClass("k-focus",e),this._focused=e}},{key:"classButton",get:function(){return!0}},{key:"isToggleable",get:function(){return this.toggleable}},{key:"roleSetter",get:function(){return this.role}},{key:"classDisabled",get:function(){return this.isDisabled}},{key:"classActive",get:function(){return this.selected}},{key:"getDirection",get:function(){return this.direction}},{key:"onFocus",value:function(){this.isFocused=!0}},{key:"onBlur",value:function(){this.isFocused=!1}},{key:"primary",set:function(e){this.themeColor=e?"primary":"base"}},{key:"look",set:function(e){this.fillMode="default"===e?"solid":e}},{key:"ngOnInit",value:function(){var e=this,n="SPAN"===this.element.tagName;this.addTextSpan(),!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaPressed(this.toggleable),this.role&&this.setAttribute("role",this.role),this.ngZone.runOutsideAngular(function(){e.subs.add(e.renderer.listen(e.element,"click",e._onButtonClick.bind(e))),e.subs.add(e.renderer.listen(e.element,"keydown",function(a){n&&(a.keyCode===J.Space||a.keyCode===J.Enter)&&(e.click.emit(a),e._onButtonClick())}))})}},{key:"ngOnChanges",value:function(e){(yn("togglable",e)||yn("toggleable",e))&&this.toggleAriaPressed(this.toggleable)}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","fillMode"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngAfterViewChecked",value:function(){this.setIconTextClasses()}},{key:"ngOnDestroy",value:function(){this.imageNode=null,this.iconNode=null,this.iconSpanNode=null,this.renderer=null,this.subs.unsubscribe(),clearTimeout(this.deferTimeout)}},{key:"focus",value:function(){Ze()&&(this.element.focus(),this.isFocused=!0)}},{key:"blur",value:function(){Ze()&&(this.element.blur(),this.isFocused=!1)}},{key:"setAttribute",value:function(e,n){this.renderer.setAttribute(this.element,e,n)}},{key:"removeAttribute",value:function(e){this.renderer.removeAttribute(this.element,e)}},{key:"setSelected",value:function(e){var n=this,a=this.selected!==e;this.selected=e,this.setAttribute("aria-pressed",this.selected.toString()),this.toggleClass("k-selected",this.selected),a&&ut(this.selectedChange)&&this.ngZone.run(function(){n.selectedChange.emit(e)})}},{key:"toggleAriaPressed",value:function(e){!Ze()||(e?this.setAttribute("aria-pressed",this.selected.toString()):this.removeAttribute("aria-pressed"))}},{key:"hasText",value:function(){return Ze()&&this.element.textContent.trim().length>0}},{key:"addImgIcon",value:function(e){var n=this.renderer;this.iconSpanNode||(this.iconSpanNode=n.createElement("span"),n.setProperty(this.iconSpanNode,"className","k-button-icon k-icon")),this.imageNode?n.setProperty(this.imageNode,"src",e):Ze()&&(this.imageNode=n.createElement("img"),n.setProperty(this.imageNode,"src",e),n.setProperty(this.imageNode,"className","k-image"),n.setAttribute(this.imageNode,"role","presentation")),this.iconSpanNode.appendChild(this.imageNode),this.prependChild(this.iconSpanNode)}},{key:"addIcon",value:function(e){var n=this.renderer;this.iconNode?n.setProperty(this.iconNode,"className",e):Ze()&&(this.iconNode=n.createElement("span"),n.setProperty(this.iconNode,"className",e),n.setAttribute(this.iconNode,"role","presentation"),this.prependChild(this.iconNode))}},{key:"addTextSpan",value:function(){var e=this;if(Ze()&&this.hasText()){var n=this.renderer.createElement("span");this.renderer.addClass(n,"k-button-text"),Array.from(this.element.childNodes).forEach(function(o){return e.renderer.appendChild(n,o)}),this.renderer.appendChild(this.element,n)}}},{key:"prependChild",value:function(e){var n=this;this.defer(function(){n.renderer&&e!==n.element.firstChild&&n.renderer.insertBefore(n.element,e,n.element.firstChild)})}},{key:"defer",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.deferTimeout=setTimeout(e,0)})}},{key:"iconSetter",value:function(e,n){e&&n(e),this.setIconTextClasses()}},{key:"removeImageNode",value:function(){this.imageNode&&this.renderer.parentNode(this.imageNode)&&(this.renderer.removeChild(this.element,this.imageNode),this.renderer.removeChild(this.element,this.iconSpanNode),this.imageNode=null,this.iconSpanNode=null)}},{key:"removeIconNode",value:function(){this.iconNode&&this.renderer.parentNode(this.iconNode)&&(this.renderer.removeChild(this.element,this.iconNode),this.iconNode=null),this.iconSpanNode&&(this.renderer.removeChild(this.element,this.iconSpanNode),this.iconSpanNode=null)}},{key:"updateIconNode",value:function(){!this.isIcon&&!this.isIconClass&&this.removeIconNode()}},{key:"setIconTextClasses",value:function(){this.toggleClass("k-icon-button",(this.isIcon||this.isIconClass||this.imageNode)&&!this.hasText())}},{key:"toggleClass",value:function(e,n){n?this.renderer.addClass(this.element,e):this.renderer.removeClass(this.element,e)}},{key:"_onButtonClick",value:function(){var e=this;!this.disabled&&this.service&&this.ngZone.run(function(){e.service.click(e)}),this.togglable&&!this.service&&this.setSelected(!this.selected)}},{key:"handleClasses",value:function(e,n){var a=this.element,o=AI("button",n,this[n],e);"fillMode"===n&&this.handleThemeColor(this.themeColor,this[n],e),o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleThemeColor",value:function(e,n,a){var o=this.element,l=a||this.fillMode,u=OW("button",n||this.fillMode,l,this.themeColor,e);this.renderer.removeClass(o,u.toRemove),"none"!==l&&"none"!==a&&u.toAdd&&this.renderer.addClass(o,u.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(xI,8),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["button","kendoButton",""],["span","kendoButton",""]],hostVars:11,hostBindings:function(t,e){1&t&&Q("focus",function(){return e.onFocus()})("blur",function(){return e.onBlur()}),2&t&&(ie("role",e.roleSetter)("aria-disabled",e.classDisabled)("dir",e.getDirection),ue("k-button",e.classButton)("k-toggle-button",e.isToggleable)("k-disabled",e.classDisabled)("k-selected",e.classActive))},inputs:{toggleable:"toggleable",togglable:"togglable",selected:"selected",tabIndex:"tabIndex",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor",role:"role",primary:"primary",look:"look"},outputs:{selectedChange:"selectedChange",click:"click"},exportAs:["kendoButton"],features:[de([Y,{provide:Dt,useValue:"kendo.button"}]),Ie]}),i}(),PW=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),vf="tabindex",BW=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.service=t,this.element=n,this.selection="multiple",this.navigate=new O,this._tabIndex=0,this.currentTabIndex=0,this.subs=new Je,jt(ug),this.subs.add(e.changes.subscribe(function(o){return a.direction=o.rtl?"rtl":"ltr"}))}return v(r,[{key:"tabIndex",get:function(){return this._tabIndex},set:function(e){this._tabIndex=e,this.currentTabIndex=e}},{key:"wrapperClass",get:function(){return!0}},{key:"disabledClass",get:function(){return this.disabled}},{key:"stretchedClass",get:function(){return!!this.width}},{key:"getRole",get:function(){return this.isSelectionSingle()?"radiogroup":"group"}},{key:"dir",get:function(){return this.direction}},{key:"ariaDisabled",get:function(){return this.disabled}},{key:"wrapperWidth",get:function(){return this.width}},{key:"wrapperTabIndex",get:function(){return this.disabled?void 0:this.currentTabIndex}},{key:"keydown",value:function(e){this.disabled||this.navigateFocus(e)}},{key:"onFocus",value:function(){this.currentTabIndex=-1;var e=this.buttons.toArray().findIndex(function(a){return-1!==a.element.tabIndex}),n=-1===e?0:e;this.focus(this.buttons.filter(function(a,o){return o===n}))}},{key:"focusout",value:function(e){e.relatedTarget&&e.relatedTarget.parentNode!==this.element.nativeElement&&(this.defocus(this.buttons.toArray()),this.currentTabIndex=this.tabIndex)}},{key:"ngOnInit",value:function(){var e=this;this.subs.add(this.service.buttonClicked$.subscribe(function(n){var a;e.isSelectionSingle()?(a=!0,e.deactivate(e.buttons.filter(function(o){return o!==n}))):(e.defocus(e.buttons.toArray()),a=!n.selected),n.togglable&&n.setSelected(a),n.setAttribute(vf,"0")}))}},{key:"ngOnChanges",value:function(e){var n=this;yn("disabled",e)&&this.buttons.forEach(function(a){qa(n.disabled)&&(a.disabled=n.disabled)})}},{key:"ngAfterContentInit",value:function(){this.buttons.forEach(function(e){e.setAttribute(vf,e.selected?"0":"-1")})}},{key:"ngAfterViewChecked",value:function(){this.buttons.length&&(this.buttons.first.renderer.addClass(this.buttons.first.element,"k-group-start"),this.buttons.last.renderer.addClass(this.buttons.last.element,"k-group-end"))}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"navigateFocus",value:function(e){var n=this.buttons.toArray().findIndex(function(l){return-1!==l.element.tabIndex}),o=this.buttons.length-1,s=new PW;e.keyCode===J.ArrowRight&&n0&&(this.navigate.emit(s),s.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter(function(l,u){return u===n-1}))))}},{key:"deactivate",value:function(e){e.forEach(function(n){n.setSelected(!1),n.setAttribute(vf,"-1")})}},{key:"activate",value:function(e){e.forEach(function(n){n.setSelected(!0),n.setAttribute(vf,"0"),n.focus()})}},{key:"defocus",value:function(e){e.forEach(function(n){n.setAttribute(vf,"-1")})}},{key:"focus",value:function(e){e.forEach(function(n){n.setAttribute(vf,"0"),n.focus()})}},{key:"verifySettings",value:function(){if(xt()&&this.isSelectionSingle()&&this.buttons.filter(function(e){return e.selected}).length>1)throw new Error("Having multiple selected buttons with single selection mode is not supported")}},{key:"isSelectionSingle",value:function(){return"single"===this.selection}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(xI),m(Y),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-buttongroup"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Xa,4),2&t&&P(a=B())&&(e.buttons=a)},hostVars:12,hostBindings:function(t,e){1&t&&Q("keydown",function(a){return e.keydown(a)})("focus",function(){return e.onFocus()})("focusout",function(a){return e.focusout(a)}),2&t&&(ie("role",e.getRole)("dir",e.dir)("aria-disabled",e.ariaDisabled)("tabindex",e.wrapperTabIndex),Qe("width",e.wrapperWidth),ue("k-button-group",e.wrapperClass)("k-disabled",e.disabledClass)("k-button-group-stretched",e.stretchedClass))},inputs:{disabled:"disabled",selection:"selection",width:"width",tabIndex:"tabIndex"},outputs:{navigate:"navigate"},exportAs:["kendoButtonGroup"],features:[de([xI,Y,{provide:Dt,useValue:"kendo.buttongroup"}]),Ie],ngContentSelectors:hMe,decls:1,vars:0,template:function(t,e){1&t&&(kn(dMe),dn(0))},encapsulation:2}),i}(),kD=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),XMe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,kD]]}),i}(),CD=function(){var i=function(){function r(){p(this,r),this.onFocus=new O}return v(r,[{key:"isFocused",value:function(e){return e===this.focused}},{key:"focus",value:function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))}},{key:"resetFocus",value:function(){this.focused=-1}},{key:"focused",get:function(){return this.focusedIndex},set:function(e){this.focusedIndex=e,this.onFocus.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),MI=function(){var i=function(){function r(t,e,n){p(this,r),this.focusService=t,this.renderer=n,this.subs=new Je,this.element=e.nativeElement,this.subscribeEvents()}return v(r,[{key:"ngOnInit",value:function(){this.index===this.focusService.focused?this.renderer.addClass(this.element,"k-focus"):this.renderer.removeClass(this.element,"k-focus")}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"subscribeEvents",value:function(){var e=this;!Ze()||this.subs.add(this.focusService.onFocus.subscribe(function(n){e.index===n?(e.renderer.addClass(e.element,"k-focus"),e.element.focus()):e.renderer.removeClass(e.element,"k-focus")}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(CD),m(ke),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoButtonFocusable",""]],inputs:{index:"index"}}),i}(),jy=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),Wy=function(){return function(i){i[i.keydown=0]="keydown",i[i.keypress=1]="keypress",i[i.keyup=2]="keyup"}(Wy||(Wy={})),Wy}(),Vr=function(){return function(i){i[i.Undefined=0]="Undefined",i[i.Open=1]="Open",i[i.Close=2]="Close",i[i.Enter=3]="Enter",i[i.EnterPress=4]="EnterPress",i[i.EnterUp=5]="EnterUp",i[i.Tab=6]="Tab",i[i.Esc=7]="Esc",i[i.Navigate=8]="Navigate"}(Vr||(Vr={})),Vr}(),bD=new wt("navigation.config"),VW=function(){var i=function(){function r(t){p(this,r),this.navigate=new O,this.open=new O,this.close=new O,this.enter=new O,this.enterpress=new O,this.enterup=new O,this.tab=new O,this.esc=new O,this.useLeftRightArrows=t.useLeftRightArrows}return v(r,[{key:"process",value:function(e){var o,n=e.keyCode,a=e.keyEvent,s=Vr.Undefined;return a===Wy.keypress?this.isEnter(n)&&(s=Vr.EnterPress):a===Wy.keyup?this.isEnter(n)&&(s=Vr.EnterUp):e.altKey&&n===J.ArrowDown?s=Vr.Open:e.altKey&&n===J.ArrowUp?s=Vr.Close:this.isEnter(n)?s=Vr.Enter:n===J.Escape?s=Vr.Esc:n===J.Tab?s=Vr.Tab:n===J.ArrowUp||this.useLeftRightArrows&&n===J.ArrowLeft?(o=this.next({current:e.current,start:e.flipNavigation?e.min:e.max,end:e.flipNavigation?e.max:e.min,step:e.flipNavigation?1:-1}),s=Vr.Navigate):n===J.ArrowDown||this.useLeftRightArrows&&n===J.ArrowRight?(o=this.next({current:e.current,start:e.flipNavigation?e.max:e.min,end:e.flipNavigation?e.min:e.max,step:e.flipNavigation?-1:1}),s=Vr.Navigate):n===J.Home?(o=e.min,s=Vr.Navigate):n===J.End&&(o=e.max,s=Vr.Navigate),s!==Vr.Undefined&&this[Vr[s].toLowerCase()].emit(o),s}},{key:"isEnter",value:function(e){return e===J.Enter||e===J.Space}},{key:"next",value:function(e){return qa(e.current)?e.current!==e.end?e.current+e.step:e.end:e.start}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(bD))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),JMe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,kD,jy],jy]}),i}(),tRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,jy,kD],jy]}),i}(),UW=function(){var i=function(){function r(t,e,n,a){p(this,r),this.element=t,this.renderer=e,this.ngZone=n,this.localizationService=a,this.selected=!1,this.removable=!1,this.disabled=!1,this.remove=new O,this.contentClick=new O,this.tabIndex=0,this.hostClass=!0,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this.focused=!1,this.subs=new Je,jt(ug),this.direction=a.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){qa(e)&&(this._size=e),this.handleClasses(this._size,"size")}},{key:"rounded",get:function(){return this._rounded},set:function(e){qa(e)&&(this._rounded=e),this.handleClasses(this._rounded,"rounded")}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){qa(e)&&(this._fillMode=e),this.handleClasses(this._fillMode,"fillMode")}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){qa(e)&&(this._themeColor=e),this.handleThemeColor(this._themeColor)}},{key:"ariaChecked",get:function(){return this.selected}},{key:"hasIconClass",get:function(){return!!(this.icon||this.iconClass||this.avatarClass)}},{key:"disabledClass",get:function(){return this.disabled}},{key:"selectedClass",get:function(){return this.selected}},{key:"focusedClass",get:function(){return this.focused}},{key:"ngOnInit",value:function(){var e=this;this.subs.add(this.localizationService.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"ngAfterViewInit",value:function(){var e=this,n=this.element.nativeElement;["size","rounded","fillMode"].forEach(function(o){e.handleClasses(e[o],o)}),this.attachElementEventHandlers(n)}},{key:"kendoIconClass",get:function(){return this.verifyIconSettings([this.iconClass,this.avatarClass]),"k-i-".concat(this.icon)}},{key:"customIconClass",get:function(){return this.verifyIconSettings([this.icon,this.avatarClass]),"".concat(this.iconClass)}},{key:"chipAvatarClass",get:function(){return this.verifyIconSettings([this.icon,this.iconClass]),"".concat(this.avatarClass)}},{key:"removeIconClass",get:function(){return this.removeIcon?"".concat(this.removeIcon):"k-i-close-circle"}},{key:"focus",value:function(){Ze()&&this.element.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.element.nativeElement.blur()}},{key:"onRemoveClick",value:function(e){this.removable&&this.remove.emit({sender:this,originalEvent:e})}},{key:"attachElementEventHandlers",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.subs.add(n.renderer.listen(e,"focus",function(){n.renderer.addClass(e,"k-focus")})),n.subs.add(n.renderer.listen(e,"blur",function(){n.renderer.removeClass(e,"k-focus")})),n.subs.add(n.renderer.listen(e,"click",function(a){yD(a.target,".k-chip-remove-action")||n.ngZone.run(function(){n.contentClick.emit({sender:n,originalEvent:a})})}))})}},{key:"verifyIconSettings",value:function(e){if(xt()&&e.filter(function(n){return null!=n}).length>0)throw this.renderer.removeClass(this.element.nativeElement,"k-chip-has-icon"),new Error("Invalid configuration: Having multiple icons is not supported. Only a single icon on a chip can be displayed.")}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=AI("chip",n,this[n],e);"fillMode"===n&&this.handleThemeColor(this.themeColor,this[n],e),o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleThemeColor",value:function(e,n,a){var o=this.element.nativeElement,l=a||this.fillMode,u=OW("chip",n||this.fillMode,l,this.themeColor,e);this.renderer.removeClass(o,u.toRemove),"none"!==l&&"none"!==a&&u.toAdd&&this.renderer.addClass(o,u.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(be),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-chip"]],hostVars:14,hostBindings:function(t,e){2&t&&(ie("tabindex",e.tabIndex)("aria-checked",e.ariaChecked)("aria-disabled",e.disabledClass)("dir",e.direction),ue("k-chip",e.hostClass)("k-chip-has-icon",e.hasIconClass)("k-disabled",e.disabledClass)("k-selected",e.selectedClass)("k-focus",e.focusedClass))},inputs:{label:"label",icon:"icon",iconClass:"iconClass",avatarClass:"avatarClass",selected:"selected",removable:"removable",removeIcon:"removeIcon",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor"},outputs:{remove:"remove",contentClick:"contentClick"},features:[de([Y,{provide:Dt,useValue:"kendo.chip"}])],ngContentSelectors:MW,decls:8,vars:6,consts:[["class","k-chip-icon k-icon",3,"ngClass",4,"ngIf"],["class","k-chip-icon",3,"ngClass",4,"ngIf"],["class","k-chip-avatar k-avatar k-rounded-full",4,"ngIf"],[1,"k-chip-content"],["class","k-chip-label",4,"ngIf"],[4,"ngIf"],[1,"k-chip-actions"],["class","k-chip-action k-chip-remove-action",3,"click",4,"ngIf"],[1,"k-chip-icon","k-icon",3,"ngClass"],[1,"k-chip-icon",3,"ngClass"],[1,"k-chip-avatar","k-avatar","k-rounded-full"],[1,"k-avatar-image",3,"ngClass"],[1,"k-chip-label"],[1,"k-chip-action","k-chip-remove-action",3,"click"],[1,"k-icon",3,"ngClass"]],template:function(t,e){1&t&&(kn(),T(0,SMe,1,1,"span",0),T(1,wMe,1,1,"span",1),T(2,DMe,2,1,"span",2),A(3,"span",3),T(4,EMe,2,1,"span",4),T(5,TMe,1,0,"ng-content",5),x(),A(6,"span",6),T(7,AMe,2,1,"span",7),x()),2&t&&(y("ngIf",e.icon),k(1),y("ngIf",e.iconClass),k(1),y("ngIf",e.avatarClass),k(2),y("ngIf",e.label),k(1),y("ngIf",!e.label),k(2),y("ngIf",e.removable))},directives:[qe,Nt],encapsulation:2}),i}(),nRe=function(){var i=function(){function r(t,e,n){p(this,r),this.localizationService=t,this.renderer=e,this.element=n,this.hostClass=!0,this.selection="none",this.selectedChange=new O,this.remove=new O,this.role="listbox",this._size="medium",jt(ug),this.direction=t.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"single",get:function(){return"single"===this.selection}},{key:"multiple",get:function(){return"multiple"===this.selection}},{key:"onClick",value:function(e){var n=e.target,a=yD(n,".k-chip-remove-action"),o=yD(n,".k-chip"),s=this.chips.find(function(u){return o===u.element.nativeElement});a&&o&&this.remove.emit({sender:this,originalEvent:e,removedChip:s}),"none"!==this.selection&&o&&!a&&this.setSelection(s)}},{key:"ngOnInit",value:function(){var e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){var e=this;["size"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngAfterContentInit",value:function(){var e=this;this.chips.forEach(function(n){e.renderer.setAttribute(n.element.nativeElement,"role","option")})}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"selectedChips",value:function(){return this.chips.reduce(function(e,n,a){return n.selected?e.concat(a):e},[])}},{key:"setSelection",value:function(e){"single"===this.selection&&this.clearSelection(e),e.selected=!e.selected,this.selectedChange.emit(this.selectedChips())}},{key:"clearSelection",value:function(e){this.chips.forEach(function(n){e!==n&&(n.selected=!1)})}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=AI("chip-list",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-chiplist"],["kendo-chip-list"]],contentQueries:function(t,e,n){var a;1&t&&he(n,UW,4),2&t&&P(a=B())&&(e.chips=a)},hostVars:8,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(ie("dir",e.direction)("role",e.role),ue("k-chip-list",e.hostClass)("k-selection-single",e.single)("k-selection-multiple",e.multiple))},inputs:{selection:"selection",size:"size"},outputs:{selectedChange:"selectedChange",remove:"remove"},features:[de([Y,{provide:Dt,useValue:"kendo.chiplist"}])],ngContentSelectors:MW,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),rRe=([].concat([UW,nRe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}());function aRe(i,r){var t={horizontal:r?"right":"left",vertical:"bottom"};return"end"===i.horizontal&&(t.horizontal=r?"left":"right"),"bottom"===i.vertical&&(t.vertical="top"),"bottom"===i.vertical&&"end"===i.horizontal&&(t.horizontal=r?"left":"right",t.vertical="top"),t}function oRe(i,r){var t={horizontal:r?"right":"left",vertical:"top"};return"end"===i.horizontal&&(t.horizontal=r?"left":"right"),"bottom"===i.vertical&&(t.vertical="bottom"),"bottom"===i.vertical&&"end"===i.horizontal&&(t.horizontal=r?"left":"right",t.vertical="bottom"),t}var zW=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDialItemTemplate",""]]}),i}(),HW=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoFloatingActionButtonTemplate",""]]}),i}(),KW=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.localisationService=n,this.hostClass=!0,this.role="menuitem"}return v(r,[{key:"disabledClass",get:function(){return this.item.disabled}},{key:"title",get:function(){return this.item.label||this.itemTitle}},{key:"indexAttr",get:function(){return this.index}},{key:"iconClasses",get:function(){var e=[];return this.item.iconClass&&e.push("".concat(this.item.iconClass)),this.item.icon&&e.push("k-fab-item-icon k-icon k-i-".concat(this.item.icon)),e}},{key:"itemTitle",get:function(){var e=this.item.icon,n=this.item.itemTitle;return e&&n?n:e}},{key:"ngAfterViewInit",value:function(){this.renderer.addClass(this.element.nativeElement,this.getTextDirectionClass(this.localisationService.rtl,this.align.horizontal))}},{key:"getTextDirectionClass",value:function(e,n){return{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[e?"rtl":"ltr"]["end"===n?"end":"start"]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoDialItem",""]],hostVars:9,hostBindings:function(t,e){2&t&&(ie("role",e.role)("aria-disabled",e.disabledClass)("title",e.title)("aria-label",e.title)("data-fab-item-index",e.indexAttr),ue("k-fab-item",e.hostClass)("k-disabled",e.disabledClass))},inputs:{cssClass:"cssClass",cssStyle:"cssStyle",isFocused:"isFocused",index:"index",item:"item",dialItemTemplate:"dialItemTemplate",align:"align"},attrs:xMe,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","k-fab-item-text",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"k-fab-item-text"],[3,"ngClass"]],template:function(t,e){1&t&&(T(0,OMe,1,6,null,0),T(1,FMe,3,2,"ng-container",0)),2&t&&(y("ngIf",e.dialItemTemplate),k(1),y("ngIf",!e.dialItemTemplate))},directives:[qe,En,Nt],encapsulation:2}),i}(),jW=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.focusService=t,this.cdr=e,this.hostClass=!0,this.subscriptions=new Je,this.subscriptions.add(this.focusService.onFocus.subscribe(function(){return n.cdr.detectChanges()}))}return v(r,[{key:"bottomClass",get:function(){return"top"===this.align.vertical||"middle"===this.align.vertical}},{key:"topClass",get:function(){return"bottom"===this.align.vertical}},{key:"isFocused",value:function(e){return this.focusService.isFocused(e)}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(CD),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoDialList",""]],hostVars:6,hostBindings:function(t,e){2&t&&ue("k-fab-items",e.hostClass)("k-fab-items-bottom",e.bottomClass)("k-fab-items-top",e.topClass)},inputs:{dialItems:"dialItems",dialItemTemplate:"dialItemTemplate",align:"align"},attrs:LMe,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoButtonFocusable","","kendoDialItem","",3,"item","index","dialItemTemplate","isFocused","ngClass","ngStyle","align"]],template:function(t,e){1&t&&T(0,PMe,2,7,"ng-container",0),2&t&&y("ngForOf",e.dialItems)},directives:[KW,gn,MI,Nt,Vi],encapsulation:2}),i}(),cRe={provide:bD,useValue:{useLeftRightArrows:!1}},WW={small:"k-fab-sm",medium:"k-fab-md",large:"k-fab-lg"},$W={small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"},qW="k-fab-solid",SD="16px",YW="primary",fRe=function(){var i=function(){function r(t,e,n,a,o,s,l,u){var c=this;p(this,r),this.renderer=t,this.element=e,this.focusService=n,this.navigationService=a,this.ngZone=o,this.popupService=s,this.builder=l,this.localizationService=u,this.positionMode="fixed",this.dialItemAnimation=!0,this.tabIndex=0,this.dialItems=[],this.onBlur=new O,this.onFocus=new O,this.dialItemClick=new O,this.open=new O,this.close=new O,this.id="k-".concat(qn()),this._themeColor=YW,this._size="medium",this._rounded="full",this._disabled=!1,this._align={horizontal:"end",vertical:"bottom"},this._offset={x:SD,y:SD},this.subscriptions=new Je,this.rtl=!1,this.animationEnd=new O,this.initialSetup=!0,jt(ug),this.subscribeNavigationEvents(),this.subscriptions.add(this.localizationService.changes.subscribe(function(d){c.rtl=d.rtl,c.direction=c.rtl?"rtl":"ltr"}))}return v(r,[{key:"fixedClass",get:function(){return"fixed"===this.positionMode}},{key:"absoluteClass",get:function(){return"absolute"===this.positionMode}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){var n=e||YW;this.handleClasses(n,"themeColor"),this._themeColor=n}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"full";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign(this._align,e)}},{key:"offset",get:function(){return this._offset},set:function(e){this._offset=Object.assign(this._offset,e),this.offsetStyles()}},{key:"componentTabIndex",get:function(){return this.disabled?-1:this.tabIndex}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","themeColor"].forEach(function(n){return e.handleClasses(e[n],n)}),this.renderer.addClass(this.element.nativeElement,this.alignClass()),this.offsetStyles(),this.initialSetup=!1}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"isOpen",get:function(){return qa(this.popupRef)}},{key:"focus",value:function(){Ze()&&this.button.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.button.nativeElement.blur()}},{key:"toggleDial",value:function(e){var n=this;if(!this.disabled&&this.hasDialItems){var a=qa(e)?e:!this.isOpen;this.disabled||a===this.isOpen||(a?setTimeout(function(){return n.openDial()}):this.closeDial())}}},{key:"role",get:function(){return this.dialItems&&this.dialItems.length?"menubutton":"button"}},{key:"ariaExpanded",get:function(){return qa(this.isOpen)}},{key:"ariaHasPopup",get:function(){return qa(this.isOpen)}},{key:"iconClasses",get:function(){var e=[];return this.iconClass&&e.push("".concat(this.iconClass)),this.icon&&e.push("k-fab-icon k-icon k-i-".concat(this.icon)),e}},{key:"clickHandler",value:function(){var e=this;this.disabled||!this.hasDialItems||this.ngZone.run(function(){e.toggleDialWithEvents(!e.isOpen)})}},{key:"keyDownHandler",value:function(e){this.keyHandler(e)}},{key:"keyHandler",value:function(e,n){if(!this.disabled){var s=this.navigationService.process({altKey:e.altKey,current:this.focusService.focused||0,keyCode:e.keyCode,keyEvent:n,max:this.dialItems?this.dialItems.length-1:0,min:0,flipNavigation:"bottom"===this.align.vertical});s!==Vr.Undefined&&s!==Vr.Tab&&e.preventDefault()}}},{key:"onItemClick",value:function(e){var n=yD(e.target,".k-fab-item");if(n){var a=n.getAttribute("data-fab-item-index");this.emitItemClick(a)}}},{key:"focusHandler",value:function(){this.disabled||this.onFocus.emit()}},{key:"blurHandler",value:function(){this.onBlur.emit(),this.toggleDialWithEvents(!1)}},{key:"handleClasses",value:function(e,n){if(qa(this.button)&&(this[n]!==e||this.initialSetup)){var a=this.button.nativeElement,o={themeColor:"".concat(qW,"-").concat(this.themeColor),size:WW[this.size],rounded:$W[this.rounded]},s={themeColor:"none"!==e?"".concat(qW,"-").concat(e):"",size:WW[e],rounded:$W[e]};this.renderer.removeClass(a,o[n]),s[n]&&this.renderer.addClass(a,s[n])}}},{key:"onEnterPressed",value:function(){this.emitItemClick(this.focusService.focused)}},{key:"emitItemClick",value:function(e){var n=this.dialItems[e];n&&!n.disabled&&(this.dialItemClick.emit({item:n,index:e}),this.toggleDialWithEvents(!1))}},{key:"subscribeNavigationEvents",value:function(){this.subscriptions.add(this.navigationService.navigate.subscribe(this.onArrowKeyNavigate.bind(this))),this.subscriptions.add(this.navigationService.enter.subscribe(this.onNavigationEnterPress.bind(this))),this.subscriptions.add(xn(this.navigationService.close,this.navigationService.esc).subscribe(this.onNavigationClose.bind(this)))}},{key:"onArrowKeyNavigate",value:function(e){this.focusService.focus(e)}},{key:"onNavigationEnterPress",value:function(){var e=this;this.ngZone.run(function(){if(e.isOpen){var n=e.focusService.focused,a=e.dialItems[n];if(a&&a.disabled)return;if(qa(n)&&-1!==n)return void e.onEnterPressed()}!e.isOpen&&Ze()&&(e.toggleDialWithEvents(!0),e.button.nativeElement.focus())})}},{key:"onNavigationClose",value:function(){var e=this;this.isOpen&&this.ngZone.run(function(){e.toggleDialWithEvents(!1),Ze()&&e.button.nativeElement.focus()})}},{key:"alignClass",value:function(){return"k-pos-".concat(this.align.vertical,"-").concat(this.align.horizontal)}},{key:"toggleDialWithEvents",value:function(e){if(e!==this.isOpen){var n=new PW;e?this.open.emit(n):this.close.emit(n),!n.isDefaultPrevented()&&(e?this.openDial():this.closeDial())}}},{key:"openPopup",value:function(){var e=this;if(!this.isOpen){var n=this.icon&&!this.text,a=this.rtl,o=this.align;this.popupRef=this.popupService.open({anchor:this.element.nativeElement,animate:!1,content:this.popupTemplate,anchorAlign:aRe(o,a),popupAlign:oRe(o,a),popupClass:"k-fab-popup k-popup-transparent"});var s=this.popupRef.popupElement;this.renderer.setStyle(s,"box-shadow","none"),n&&this.subscriptions.add(this.popupRef.popupOpen.subscribe(function(){return e.positionPopup()})),this.ngZone.runOutsideAngular(function(){e.popupMouseDownListener=e.renderer.listen(s,"mousedown",function(l){l.preventDefault()})}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.toggleDialWithEvents(!1)})}}},{key:"closePopup",value:function(){this.isOpen&&(this.popupMouseDownListener&&this.popupMouseDownListener(),this.popupRef.close(),this.popupRef=null)}},{key:"openDial",value:function(){this.openPopup(),this.focusService.focus(0),this.dialItemAnimation&&this.isValidAnimation()&&this.playAnimation(!0)}},{key:"closeDial",value:function(){var e=this;this.dialItemAnimation&&this.isValidAnimation()?(this.playAnimation(!1),this.animationEnd.pipe(It(1)).subscribe(function(){return e.closePopup()})):this.closePopup()}},{key:"isValidAnimation",value:function(){var e=this.dialItemAnimation;return"boolean"==typeof e||0!==e.duration}},{key:"positionPopup",value:function(){if(!this.dialItemTemplate){var n=this.element.nativeElement.getBoundingClientRect().width,a=this.popupRef.popupElement,o=a.querySelector(".k-fab-item-icon");if(o){var l=n/2-o.getBoundingClientRect().width/2,u=a.getBoundingClientRect().left,c="end"===this.align.horizontal;a.style.left="".concat(this.rtl?c?l+u:u-l:c?u-l:l+u,"px")}}}},{key:"offsetStyles",value:function(){var e=this.element.nativeElement;this.renderer.setStyle(e,this.horizontalPosition,this.horizontalOffset),this.renderer.setStyle(e,this.verticalPosition,this.verticalOffset)}},{key:"hasDialItems",get:function(){return qa(this.dialItems)&&0!==this.dialItems.length}},{key:"verticalPosition",get:function(){return{top:"top",middle:"top",bottom:"bottom"}[this.align.vertical]}},{key:"verticalOffset",get:function(){return"middle"===this.align.vertical?this.offset.y===SD?"50%":"calc(50% + ".concat(this.offset.y,")"):this.offset.y}},{key:"horizontalPosition",get:function(){return{end:this.rtl?"left":"right",center:"left",start:this.rtl?"right":"left"}[this.align.horizontal]}},{key:"horizontalOffset",get:function(){return"center"===this.align.horizontal?this.offset.x===SD?"50%":"calc(50% + ".concat(this.offset.x,")"):this.offset.x}},{key:"playerFor",value:function(e,n){return this.builder.build(n).create(e)}},{key:"playAnimation",value:function(e){var n=this,a=this.durationSettings(),o={duration:a.duration,gap:a.gap,align:this.align},s=e?function sRe(i){var t=i.duration,e=i.gap;return Dw([DK(".k-fab-item",[Ft({opacity:0,transform:"translateY(".concat("bottom"===i.align.vertical?"8px":"-8px",")")}),EK(e,[Ai("".concat(t,"ms ease-in"),Ft({opacity:"*",transform:"translateY(0)"}))])],{optional:!0})])}(o):function lRe(i){var r="bottom"===i.align.vertical,t=i.duration,e=i.gap;return Dw([DK(".k-fab-item",[Ft({opacity:"*",transform:"translateY(0)"}),EK(-e,[Ai("".concat(t,"ms ease-in"),Ft({opacity:0,transform:"translateY(".concat(r?"8px":"-8px",")")}))])],{optional:!0})])}(o),l=this.playerFor(this.popupRef.popupElement,s);l.play(),l.onDone(function(){l&&(n.animationEnd.emit(),l.destroy(),l=null)})}},{key:"durationSettings",value:function(){return{duration:this.animationDuration(),gap:this.animationGap()}}},{key:"animationGap",value:function(){var e=this.dialItemAnimation;return"boolean"!=typeof e&&qa(e.gap)?e.gap:90}},{key:"animationDuration",value:function(){var e=this.dialItemAnimation;return"boolean"!=typeof e&&qa(e.duration)?e.duration:180}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(CD),m(VW),m(be),m(kr),m(zp),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-floatingactionbutton"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,zW,5),he(n,HW,5)),2&t&&(P(a=B())&&(e.dialItemTemplate=a.first),P(a=B())&&(e.fabTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(CMe,7),ge(bMe,7)),2&t&&(P(n=B())&&(e.button=n.first),P(n=B())&&(e.popupTemplate=n.first))},hostVars:5,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-pos-fixed",e.fixedClass)("k-pos-absolute",e.absoluteClass))},inputs:{themeColor:"themeColor",size:"size",rounded:"rounded",disabled:"disabled",align:"align",offset:"offset",positionMode:"positionMode",icon:"icon",iconClass:"iconClass",buttonClass:"buttonClass",dialClass:"dialClass",text:"text",dialItemAnimation:"dialItemAnimation",tabIndex:"tabIndex",dialItems:"dialItems"},outputs:{onBlur:"blur",onFocus:"focus",dialItemClick:"dialItemClick",open:"open",close:"close"},features:[de([CD,VW,cRe,Y,{provide:Dt,useValue:"kendo.floatingactionbutton"}])],decls:6,vars:17,consts:[["type","button",1,"k-fab","k-fab-solid",3,"tabIndex","ngClass","disabled","kendoEventsOutsideAngular","scope","focus","blur"],["button",""],[4,"ngIf"],["popupTemplate",""],[3,"ngTemplateOutlet"],[3,"ngClass",4,"ngIf"],["class","k-fab-text",4,"ngIf"],[3,"ngClass"],[1,"k-fab-text"],["kendoDialList","",3,"ngClass","dialItems","dialItemTemplate","align","click"]],template:function(t,e){1&t&&(A(0,"button",0,1),Q("focus",function(){return e.focusHandler()})("blur",function(){return e.blurHandler()}),T(2,GMe,1,1,null,2),T(3,zMe,3,2,"ng-container",2),x(),T(4,HMe,1,5,"ng-template",null,3,$n)),2&t&&(ue("k-disabled",e.disabled),y("tabIndex",e.componentTabIndex)("ngClass",e.buttonClass)("disabled",e.disabled)("kendoEventsOutsideAngular",ln(14,KMe,e.keyDownHandler,e.clickHandler))("scope",e),ie("id",e.id)("role",e.role)("aria-disabled",e.disabled)("aria-expanded",e.ariaExpanded)("aria-haspopup",e.ariaHasPopup),k(2),y("ngIf",e.fabTemplate),k(1),y("ngIf",!e.fabTemplate))},directives:[jW,Nt,qi,qe,En],encapsulation:2}),i}(),pRe=([].concat([fRe,zW,HW],[jW,KW]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,jy,cr]]}),i}()),gRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[XMe,kD,JMe,tRe,rRe,pRe]}),i}();function le(i,r){return r||(r=i.slice(0)),Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(r)}}))}function Qr(i){return oi(function(r,t){Pi(i).subscribe(Wn(t,function(){return t.complete()},Fh)),!t.closed&&r.subscribe(t)})}var mRe=["progressStatus"],_Re=["progressStatusWrap"];function yRe(i,r){if(1&i&&(A(0,"span",6),te(1),x()),2&i){var t=D();k(1),at(t.formattedLabelValue)}}function kRe(i,r){if(1&i&&(A(0,"span",6),te(1),x()),2&i){var t=D();k(1),at(t.formattedLabelValue)}}var t7,n7,bRe={name:"@progress/kendo-angular-progressbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650441158,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},QW=function(r,t,e){return Math.max(Math.min(e,t),r)},RI=function(r,t,e){return Math.max((e-r)/(t-r),1e-4)},OI=function(r,t,e){return r[t]&&void 0!==r[t].currentValue?r[t].currentValue:e},JW=function(){var i=function(){function r(t){var e=this;p(this,r),this.localization=t,this.widgetClasses=!0,this.roleAttribute="progressbar",this.max=100,this.min=0,this.value=0,this.orientation="horizontal",this.disabled=!1,this.reverse=!1,this.indeterminate=!1,this.displayValue=0,this.previousValue=0,jt(bRe),this.localizationChangeSubscription=t.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"})}return v(r,[{key:"isHorizontal",get:function(){return"horizontal"===this.orientation}},{key:"isVertical",get:function(){return"vertical"===this.orientation}},{key:"disabledClass",get:function(){return this.disabled}},{key:"reverseClass",get:function(){return this.reverse}},{key:"indeterminateClass",get:function(){return this.indeterminate}},{key:"dirAttribute",get:function(){return this.direction}},{key:"ariaMinAttribute",get:function(){return String(this.min)}},{key:"ariaMaxAttribute",get:function(){return String(this.max)}},{key:"ariaValueAttribute",get:function(){return this.indeterminate?void 0:String(this.displayValue)}},{key:"isCompleted",get:function(){return this.value===this.max}},{key:"statusWidth",get:function(){return"horizontal"===this.orientation?100*this._progressRatio:100}},{key:"statusHeight",get:function(){return"vertical"===this.orientation?100*this._progressRatio:100}},{key:"statusWrapperWidth",get:function(){return"horizontal"===this.orientation?100/this._progressRatio:100}},{key:"statusWrapperHeight",get:function(){return"vertical"===this.orientation?100/this._progressRatio:100}},{key:"_progressRatio",get:function(){return RI(this.min,this.max,this.displayValue)}},{key:"ngOnChanges",value:function(e){var n=OI(e,"min",this.min),a=OI(e,"max",this.max),o=OI(e,"value",this.value);if(e.min||e.max||e.value){if((e.min||e.max)&&function(r,t){if(xt&&r>t)throw new Error("The max value should be greater than the min.")}(n,a),e.value){(null==o||Number.isNaN(o))&&(this.value=n);var s=this.displayValue;this.displayValue=QW(this.min,this.max,o),this.previousValue=s}this.min=n,this.max=a,this.displayValue=QW(this.min,this.max,o)}}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["ng-component"]],hostVars:19,hostBindings:function(t,e){2&t&&(ie("dir",e.dirAttribute)("role",e.roleAttribute)("aria-valuemin",e.ariaMinAttribute)("aria-valuemax",e.ariaMaxAttribute)("aria-valuenow",e.ariaValueAttribute),ue("k-widget",e.widgetClasses)("k-progressbar",e.widgetClasses)("k-progressbar-horizontal",e.isHorizontal)("k-progressbar-vertical",e.isVertical)("k-state-disabled",e.disabledClass)("k-progressbar-reverse",e.reverseClass)("k-progressbar-indeterminate",e.indeterminateClass))},inputs:{max:"max",min:"min",value:"value",orientation:"orientation",disabled:"disabled",reverse:"reverse",indeterminate:"indeterminate"},features:[Ie],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),e7=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n)).localization=n,s.zone=a,s.renderer=o,s.label=!0,s.animation=!1,s.animationEnd=new O,s}return v(e,[{key:"showLabel",get:function(){return"boolean"==typeof this.label?this.label:(this.label&&!this.label.hasOwnProperty("visible")&&(this.label.visible=!0),this.label.visible)}},{key:"labelPosition",get:function(){return"boolean"==typeof this.label?"end":(this.label&&!this.label.hasOwnProperty("position")&&(this.label.position="end"),this.label.position)}},{key:"isPositionStart",get:function(){return"start"===this.labelPosition}},{key:"isPositionCenter",get:function(){return"center"===this.labelPosition}},{key:"isPositionEnd",get:function(){return"end"===this.labelPosition}},{key:"formattedLabelValue",get:function(){return function(r,t,e,n){var a=function(r){var t=r.toString().split(".");return 1===t.length?"".concat(t[0]):"".concat(t[0],".").concat(t[1].substr(0,3))}(r);if("boolean"!=typeof n){if("string"!=typeof n.format)return"function"==typeof n.format?n.format(r):a;switch(n.format){case"value":default:return a;case"percent":return"".concat(Math.floor(function(r,t,e){var n=Math.abs((e-t)/100);return Math.abs((r-t)/n)}(r,t,e)),"%")}}return a}(this.displayValue,this.min,this.max,this.label)}},{key:"ngOnChanges",value:function(a){$(q(e.prototype),"ngOnChanges",this).call(this,a),this.isAnimationInProgress&&function(r){var t=Boolean(r.animation);return t&&!(t&&r.animation.currentValue)}(a)&&(this.cancelCurrentAnimation=!0),function(r,t,e,n){return t&&"undefined"!=typeof requestAnimationFrame&&r.value&&e!==n}(a,this.animation,this.previousValue,this.displayValue)&&!a.value.firstChange&&this.startAnimation(this.previousValue)}},{key:"ngOnDestroy",value:function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame)}},{key:"startAnimation",value:function(a){var o=this;this.isAnimationInProgress=!0;var s=this.progressStatusElement.nativeElement,l=this.progressStatusWrapperElement.nativeElement,u=this.getAnimationOptions(a);this.zone.runOutsideAngular(function(){o.animationFrame&&cancelAnimationFrame(o.animationFrame),function d(){var h=(new Date).getTime()-u.startTime,f=Math.min(h/u.duration,1),g=u.startSize+u.deltaSize*f;if(o.renderValueChange(s,l,u.property,g,100/g*100),f<1){if(o.cancelCurrentAnimation)return void o.resetProgress(s,l,u.property);o.animationFrame=requestAnimationFrame(d)}else o.stopAnimation(a)}()})}},{key:"animationDuration",get:function(){return"boolean"==typeof this.animation?400:(this.animation&&!this.animation.hasOwnProperty("duration")&&(this.animation.duration=400),this.animation.duration)}},{key:"stopAnimation",value:function(a){var o=this;ut(this.animationEnd)&&this.zone.run(function(){o.animationEnd.emit({from:a,to:o.displayValue})}),this.zone.run(function(){o.isAnimationInProgress=!1})}},{key:"getAnimationOptions",value:function(a){var o="horizontal"===this.orientation,s=RI(this.min,this.max,a),l=o?100*s:100,u=o?100:100*s,c=o?"width":"height",d=(new Date).getTime(),f=o?this.statusWidth-l:this.statusHeight-u;return{property:c,startTime:d,startSize:o?l:u,deltaSize:f,duration:this.animationDuration*Math.abs(f/100)}}},{key:"renderValueChange",value:function(a,o,s,l,u){this.renderer.setStyle(a,s,l+"%"),this.renderer.setStyle(o,s,u+"%")}},{key:"resetProgress",value:function(a,o,s){var l=this,u=RI(this.min,this.max,this.value);this.renderValueChange(a,o,s,100*u,100/u),this.zone.run(function(){l.cancelCurrentAnimation=!1,l.isAnimationInProgress=!1})}}]),e}(JW);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-progressbar"]],viewQuery:function(t,e){var n;1&t&&(ge(mRe,5),ge(_Re,5)),2&t&&(P(n=B())&&(e.progressStatusElement=n.first),P(n=B())&&(e.progressStatusWrapperElement=n.first))},inputs:{label:"label",progressCssStyle:"progressCssStyle",progressCssClass:"progressCssClass",emptyCssStyle:"emptyCssStyle",emptyCssClass:"emptyCssClass",animation:"animation"},outputs:{animationEnd:"animationEnd"},exportAs:["kendoProgressBar"],features:[de([Y,{provide:Dt,useValue:"kendo.progressbar"}]),j,Ie],decls:7,vars:28,consts:[[1,"k-progress-status-wrap",3,"ngStyle","ngClass"],["class","k-progress-status",4,"ngIf"],[1,"k-state-selected",3,"ngStyle","ngClass"],["progressStatus",""],[1,"k-progress-status-wrap"],["progressStatusWrap",""],[1,"k-progress-status"]],template:function(t,e){1&t&&(A(0,"span",0),T(1,yRe,2,1,"span",1),x(),A(2,"div",2,3)(4,"span",4,5),T(6,kRe,2,1,"span",1),x()()),2&t&&(ue("k-progress-start",e.isPositionStart)("k-progress-center",e.isPositionCenter)("k-progress-end",e.isPositionEnd),y("ngStyle",e.emptyCssStyle)("ngClass",e.emptyCssClass),k(1),y("ngIf",e.showLabel),k(1),Qe("width",e.statusWidth,"%")("height",e.statusHeight,"%"),ue("k-complete",e.isCompleted),y("ngStyle",e.progressCssStyle)("ngClass",e.progressCssClass),k(2),Qe("width",e.statusWrapperWidth,"%")("height",e.statusWrapperHeight,"%"),ue("k-progress-start",e.isPositionStart)("k-progress-center",e.isPositionCenter)("k-progress-end",e.isPositionEnd),k(2),y("ngIf",e.showLabel))},directives:[Vi,Nt,qe],encapsulation:2}),i}(),NRe=[bt],FRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[NRe]}),i}(),LRe=["header"],PRe=["contentWrapper"];function BRe(i,r){1&i&&z(0,"span",6),2&i&&y("ngClass",D().iconClasses)}function GRe(i,r){1&i&&z(0,"img",7),2&i&&y("src",D().imageUrl,uc)}function VRe(i,r){if(1&i&&(Ge(0),A(1,"span",8),te(2),x(),Ve()),2&i){var t=D();k(2),at(t.title)}}function URe(i,r){}var zRe=function(r,t,e,n,a,o,s,l,u,c){return{title:r,id:t,icon:e,iconClass:n,imageUrl:a,selected:o,expanded:s,disabled:l,focused:u,content:c}},HRe=function(r){return{item:r}};function KRe(i,r){if(1&i&&T(0,URe,0,0,"ng-template",9),2&i){var t=D();y("ngTemplateOutlet",t.titleTemplate)("ngTemplateOutletContext",ot(13,HRe,lR(2,zRe,[t.title,t.id,t.icon,t.iconClass,t.imageUrl,t.selected,t.expanded,t.disabled,t.focused,t.content])))}}var jRe=function(r,t){return{"k-i-arrow-chevron-up k-panelbar-collapse":r,"k-i-arrow-chevron-down k-panelbar-expand":t}};function WRe(i,r){if(1&i&&z(0,"span",10),2&i){var t=D();y("ngClass",ln(1,jRe,t.expanded,!t.expanded))}}function $Re(i,r){if(1&i&&(A(0,"div",14),dn(1),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight)}}function qRe(i,r){}var i7=function(r,t,e,n,a,o){return{title:r,id:t,icon:e,imageUrl:n,disabled:a,content:o}},II=function(r){return{$implicit:r}};function XRe(i,r){if(1&i&&(A(0,"div",15),T(1,qRe,0,0,"ng-template",9),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngTemplateOutlet",t.contentTemplate.first.templateRef)("ngTemplateOutletContext",ot(13,II,ay(6,i7,t.title,t.id,t.icon,t.imageUrl,t.disabled,t.content)))}}function ZRe(i,r){if(1&i&&z(0,"kendo-panelbar-item",18),2&i){var t=D().$implicit,e=D(3);y("title",t.title)("id",t.id)("icon",t.icon)("iconClass",t.iconClass)("imageUrl",t.imageUrl)("selected",!!t.selected)("expanded",!!t.expanded)("disabled",!!t.disabled)("template",e.template)("items",t.children)("content",t.content)}}function YRe(i,r){if(1&i&&(Ge(0),T(1,ZRe,1,11,"kendo-panelbar-item",17),Ve()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.hidden)}}function QRe(i,r){if(1&i&&(A(0,"div",14),T(1,YRe,2,1,"ng-container",16),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngForOf",t.items)}}function JRe(i,r){}function eOe(i,r){1&i&&te(0),2&i&&at(D(3).content)}function tOe(i,r){if(1&i&&(A(0,"div",15),T(1,JRe,0,0,"ng-template",9),T(2,eOe,1,1,"ng-template",19),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ot(14,II,ay(7,i7,t.title,t.id,t.icon,t.imageUrl,t.disabled,t.content))),k(1),y("ngIf",!t.template)}}function nOe(i,r){if(1&i&&(A(0,"div",null,11),T(2,$Re,2,4,"div",12),T(3,XRe,2,15,"div",13),T(4,QRe,2,5,"div",12),T(5,tOe,3,16,"div",13),x()),2&i){var t=D();y("@toggle",t.state),ie("role","group")("aria-hidden",!t.disabled&&!t.expanded),k(2),y("ngIf",t.hasChildItems&&!(null!=t.items&&t.items.length)),k(1),y("ngIf",t.hasContent&&!t.content),k(1),y("ngIf",t.hasItems),k(1),y("ngIf",t.content)}}var r7=[[["kendo-panelbar-item"]]],a7=["kendo-panelbar-item"];function iOe(i,r){1&i&&dn(0,0,["*ngIf","contentChildItems && !items"])}function rOe(i,r){if(1&i&&z(0,"kendo-panelbar-item",4),2&i){var t=D().$implicit,e=D(2);y("title",t.title)("id",t.id)("icon",t.icon)("iconClass",t.iconClass)("imageUrl",t.imageUrl)("selected",!!t.selected)("expanded",!!t.expanded)("disabled",!!t.disabled)("template",e.templateRef)("items",t.children)("content",t.content)}}function aOe(i,r){if(1&i&&(Ge(0),T(1,rOe,1,11,"kendo-panelbar-item",3),Ve()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.hidden)}}function oOe(i,r){1&i&&T(0,aOe,2,1,"ng-container",2),2&i&&y("ngForOf",D().items)}function sOe(i,r){1&i&&(Ge(0),dn(1),Ve())}function lOe(i,r){1&i&&z(0,"div",2)}var _a=["*"];function uOe(i,r){if(1&i&&z(0,"kendo-splitter-bar",2),2&i){var t=D().index,e=D();y("index",t)("orientation",e.orientation)}}function cOe(i,r){if(1&i&&(Ge(0),T(1,uOe,1,2,"kendo-splitter-bar",1),Ve()),2&i){var t=r.last;k(1),y("ngIf",!t)}}var dOe=[[["kendo-splitter-pane"]]],hOe=["kendo-splitter-pane"],fOe=["kendoTabStripScrollableButton",""],vOe=["kendoTabStripTab",""];function pOe(i,r){if(1&i&&(A(0,"span",2),te(1),x()),2&i){var t=D();k(1),at(t.tab.title)}}function gOe(i,r){}function mOe(i,r){if(1&i&&(A(0,"span",2),T(1,gOe,0,0,"ng-template",3),x()),2&i){var t=D();k(1),y("ngTemplateOutlet",null==t.tab.tabTitle?null:t.tab.tabTitle.templateRef)}}function _Oe(i,r){if(1&i){var t=xe();A(0,"span",4),Q("click",function(){re(t);var a=D();return a.closeTab(a.index)}),z(1,"span",5),x()}if(2&i){var e=D();y("title",e.closeButtonTitle),ie("aria-label",e.closeButtonTitle),k(1),y("ngClass",e.closeButtonClasses)}}var yOe=["tablist"],kOe=["prevScrollButton"],COe=["nextScrollButton"],bOe=["tabHeaderContainer"];function SOe(i,r){1&i&&Wt(0)}function wOe(i,r){1&i&&Wt(0)}function DOe(i,r){if(1&i&&(Ge(0),T(1,SOe,1,0,"ng-container",5),T(2,wOe,1,0,"ng-container",5),Ve()),2&i){D();var t=Yt(4),e=Yt(6);k(1),y("ngTemplateOutlet",t),k(1),y("ngTemplateOutlet",e)}}function EOe(i,r){1&i&&Wt(0)}function TOe(i,r){1&i&&Wt(0)}function AOe(i,r){if(1&i&&(Ge(0),T(1,EOe,1,0,"ng-container",5),T(2,TOe,1,0,"ng-container",5),Ve()),2&i){D();var t=Yt(6),e=Yt(4);k(1),y("ngTemplateOutlet",t),k(1),y("ngTemplateOutlet",e)}}function xOe(i,r){if(1&i){var t=xe();A(0,"span",11,12),Q("tabScroll",function(a){return re(t),D(2).tabScroll.emit(a)})("onClick",function(a){return re(t),D(2).onScrollButtonClick(a)}),x()}if(2&i){var e=D(2);y("scrollable",e.scrollable)("tabPosition",e.tabPosition)("prev",!0)}}function MOe(i,r){if(1&i){var t=xe();Ge(0),A(1,"li",13,14),Q("tabClose",function(s){return re(t),D(2).tabClose.emit(s)})("click",function(s){var u=re(t).index;return D(2).onTabClick(s,u)}),x(),Ve()}if(2&i){var e=r.$implicit,n=r.index,a=D(2);k(1),y("ngClass",e.cssClass)("ngStyle",e.cssStyle)("tab",e)("index",n)("tabStripClosable",a.closable)("tabStripCloseIcon",a.closeIcon)("id","k-tabstrip-tab-"+n),ie("aria-controls","k-tabstrip-tabpanel-"+n)}}function ROe(i,r){if(1&i){var t=xe();A(0,"span",11,15),Q("tabScroll",function(a){return re(t),D(2).tabScroll.emit(a)})("onClick",function(a){return re(t),D(2).onScrollButtonClick(a)}),x()}if(2&i){var e=D(2);y("scrollable",e.scrollable)("tabPosition",e.tabPosition)("prev",!1)}}function OOe(i,r){if(1&i&&(A(0,"div",6),T(1,xOe,2,3,"span",7),A(2,"ul",8,9),T(4,MOe,3,8,"ng-container",10),x(),T(5,ROe,2,3,"span",7),x()),2&i){var t=D();y("ngClass",t.itemsWrapperClass),k(1),y("ngIf",t.hasScrollButtons),k(1),Qe("justify-content",t.tabsAlignmentStyles)("width",t.tabListWidth)("height",t.tabListHeight),k(2),y("ngForOf",t.tabs),k(1),y("ngIf",t.hasScrollButtons)}}function IOe(i,r){}function NOe(i,r){if(1&i&&(A(0,"div",18),T(1,IOe,0,0,"ng-template",19),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D(2);y("@state",e.selected&&a.animate?"active":"inactive")("ngClass",!a.keepTabContent||e.selected?"k-content k-state-active":"k-content")("tabIndex",0)("id","k-tabstrip-tabpanel-"+n),ie("aria-hidden",!e.selected)("aria-expanded",e.selected)("aria-labelledby","k-tabstrip-tab-"+n)("aria-disabled",e.disabled),k(1),y("ngTemplateOutlet",null==e.tabContent?null:e.tabContent.templateRef)}}function FOe(i,r){if(1&i&&T(0,NOe,2,9,"div",17),2&i){var t=r.$implicit,e=D(2);y("ngIf",t.selected||e.keepTabContent)}}function LOe(i,r){1&i&&T(0,FOe,1,1,"ng-template",16),2&i&&y("ngForOf",D().tabs)}function POe(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().onResize()}),x()}}var BOe=["kendoDrawerItem",""];function GOe(i,r){}function VOe(i,r){if(1&i&&T(0,GOe,0,0,"ng-template",2),2&i){var t=D();y("ngTemplateOutlet",t.itemTemplate)("ngTemplateOutletContext",ot(2,II,t.item))}}function UOe(i,r){if(1&i&&(Ge(0),z(1,"span",4),A(2,"span",5),te(3),x(),Ve()),2&i){var t=D(2);k(1),y("ngClass",t.iconClasses),k(2),at(t.item.text)}}function zOe(i,r){if(1&i&&(Ge(0),z(1,"span",4),Ve()),2&i){var t=D(2);k(1),y("ngClass",t.iconClasses)}}function HOe(i,r){if(1&i&&(T(0,UOe,4,2,"ng-container",3),T(1,zOe,2,1,"ng-container",3)),2&i){var t=D();y("ngIf",t.expanded),k(1),y("ngIf",t.mini&&!t.expanded)}}var KOe=["kendoDrawerList",""];function jOe(i,r){if(1&i&&z(0,"li",3),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("item",e)("index",n)("mini",a.mini)("expanded",a.expanded)("itemTemplate",a.itemTemplate)("ngClass",e.cssClass)("ngStyle",e.cssStyle),ie("data-kendo-drawer-index",n)}}function WOe(i,r){if(1&i&&(A(0,"li",4),te(1," \xa0 "),x()),2&i){var t=D().$implicit;y("ngClass",t.cssClass)("ngStyle",t.cssStyle)}}function $Oe(i,r){if(1&i&&(Ge(0),T(1,jOe,1,8,"li",1),T(2,WOe,2,2,"li",2),Ve()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.separator),k(1),y("ngIf",t.separator)}}function qOe(i,r){}function XOe(i,r){if(1&i&&T(0,qOe,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",null==t.headerTemplate?null:t.headerTemplate.templateRef)}}function ZOe(i,r){}function YOe(i,r){if(1&i&&T(0,ZOe,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",null==t.footerTemplate?null:t.footerTemplate.templateRef)}}function QOe(i,r){if(1&i){var t=xe();Ge(0),T(1,XOe,1,1,null,2),A(2,"ul",3),Q("select",function(a){return re(t),D(2).onSelect(a)}),x(),T(3,YOe,1,1,null,2),Ve()}if(2&i){var e=D(2);k(1),y("ngIf",e.headerTemplate),k(1),y("items",e.items)("mini",e.mini)("expanded",e.expanded)("itemTemplate",null==e.itemTemplate?null:e.itemTemplate.templateRef),k(1),y("ngIf",e.footerTemplate)}}function JOe(i,r){}function eIe(i,r){if(1&i&&T(0,JOe,0,0,"ng-template",4),2&i){var t=D(2);y("ngTemplateOutlet",null==t.drawerTemplate?null:t.drawerTemplate.templateRef)}}function tIe(i,r){if(1&i&&(A(0,"div",1),T(1,QOe,4,6,"ng-container",2),T(2,eIe,1,1,null,2),x()),2&i){var t=D();Qe("width",t.drawerWidth,"px"),k(1),y("ngIf",!t.drawerTemplate),k(1),y("ngIf",t.drawerTemplate)}}function nIe(i,r){if(1&i){var t=xe();A(0,"div",1),Q("click",function(){return re(t),D().closeDrawer()}),x()}}var iIe=["stepLink"],rIe=["kendoStepperStep",""];function aIe(i,r){}var NI=function(r,t){return{$implicit:r,index:t}};function oIe(i,r){if(1&i&&T(0,aIe,0,0,"ng-template",3),2&i){var t=D();y("ngTemplateOutlet",t.stepTemplate)("ngTemplateOutletContext",ln(2,NI,t.step,t.index))}}function sIe(i,r){}function lIe(i,r){if(1&i&&T(0,sIe,0,0,"ng-template",3),2&i){var t=D(3);y("ngTemplateOutlet",t.indicatorTemplate)("ngTemplateOutletContext",ln(2,NI,t.step,t.index))}}function uIe(i,r){1&i&&z(0,"span",9),2&i&&y("ngClass",D(4).indicatorIconClasses)}function cIe(i,r){if(1&i&&(A(0,"span",10),te(1),x()),2&i){var t=D(4);k(1),at(t.indicatorText)}}function dIe(i,r){if(1&i&&(Ge(0),T(1,uIe,1,1,"span",7),T(2,cIe,2,1,"span",8),Ve()),2&i){var t=D(3);k(1),y("ngIf",t.showIndicatorIcon),k(1),y("ngIf",!t.showIndicatorIcon)}}function hIe(i,r){if(1&i&&(A(0,"span",6),T(1,lIe,1,5,null,2),T(2,dIe,3,2,"ng-container",2),x()),2&i){var t=D(2);Qe("transition-duration",t.transitionDuration,"ms"),k(1),y("ngIf",t.indicatorTemplate),k(1),y("ngIf",!t.indicatorTemplate)}}function fIe(i,r){}function vIe(i,r){if(1&i&&T(0,fIe,0,0,"ng-template",3),2&i){var t=D(3);y("ngTemplateOutlet",t.labelTemplate)("ngTemplateOutletContext",ln(2,NI,t.step,t.index))}}function pIe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D(4);k(1),at(t.step.label)}}function gIe(i,r){1&i&&z(0,"span",16),2&i&&y("ngClass",D(4).validationIconClasses)}function mIe(i,r){if(1&i&&(A(0,"span",17),te(1),x()),2&i){var t=D(4);k(1),Pt("(",t.optionalText,")")}}function _Ie(i,r){if(1&i&&(Ge(0),T(1,pIe,2,1,"span",12),T(2,gIe,1,1,"span",13),T(3,mIe,2,1,"span",14),Ve()),2&i){var t=D(3);k(1),y("ngIf",t.showLabelText),k(1),y("ngIf",t.showLabelIcon),k(1),y("ngIf",t.step.optional)}}function yIe(i,r){if(1&i&&(A(0,"span",11),T(1,vIe,1,5,null,2),T(2,_Ie,4,3,"ng-container",2),x()),2&i){var t=D(2);k(1),y("ngIf",t.labelTemplate),k(1),y("ngIf",!t.labelTemplate)}}function kIe(i,r){if(1&i&&(Ge(0),T(1,hIe,3,4,"span",4),T(2,yIe,3,2,"span",5),Ve()),2&i){var t=D();k(1),y("ngIf",t.showIndicator),k(1),y("ngIf",t.showLabel)}}var CIe=["kendoStepperList",""];function bIe(i,r){if(1&i&&(Ge(0),z(1,"li",1),Ve()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),Qe("max-width",n.maxStepWidth,"%")("max-height",n.maxStepHeight,"%"),ue("k-step-first",0===e)("k-step-last",e===n.steps.length-1)("k-step-done",e0?this.titleTemplates.toArray()[0].templateRef:void 0}},{key:"headerHeight",value:function(){return this.element.nativeElement.offsetHeight-(this.contentWrapper?this.contentWrapper.nativeElement.offsetHeight:0)}},{key:"ngOnInit",value:function(){this.addLevelClass()}},{key:"ngAfterContentChecked",value:function(){var e=this;this.hasItems=this.items&&this.items.filter(function(n){return!n.hidden}).length>0,this.hasChildItems=this.contentItems.filter(function(n){return n!==e}).length>0||this.hasItems,this.hasContent=void 0!==this.contentTemplate&&this.contentTemplate.length>0||void 0!==this.content,this.validateConfiguration()}},{key:"ngAfterViewChecked",value:function(){var e=this;this.childrenItems=this.items?this.viewChildItems.toArray():this.contentItems.filter(function(n){return n!==e})}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"onItemAction",value:function(){this.disabled||this.eventService.onSelect(this)}},{key:"onItemClick",value:function(e){wD(e.target)||this.onItemAction()}},{key:"iconClasses",get:function(){return De({},(this.icon?"k-i-"+this.icon:null)||this.iconClass,!0)}},{key:"serialize",value:function(){return{content:this.content,disabled:this.disabled,expanded:this.expanded,focused:this.focused,icon:this.icon,iconClass:this.iconClass,id:this.id,imageUrl:this.imageUrl,selected:this.selected,title:this.title}}},{key:"subTreeViewItems",value:function(){var e=[];return this.viewChildItems.forEach(function(n){(e=e.concat(n.subTreeViewItems())).push(n)}),e}},{key:"validateConfiguration",value:function(){if(xt()&&this.content&&void 0!==this.contentTemplate&&this.contentTemplate.length>0)throw new Error("Invalid configuration: mixed template components and component property.")}},{key:"toggleAnimationState",value:function(e){!this.animate||(this.state=e&&this.eventService.expandMode!==vl.Single?"active":"activeWithoutAnimation")}},{key:"toggleExpandedChildAnimations",value:function(e){this.childrenItems&&this.childrenItems.forEach(function(n){n.expanded&&(n.toggleAnimationState(e),n.toggleExpandedChildAnimations(e))})}},{key:"addLevelClass",value:function(){this.level>=0&&this.renderer.addClass(this.element.nativeElement,"k-level-".concat(this.level))}},{key:"onWrapperFocusChange",value:function(e){this.wrapperFocused=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(i,13),m(LI),m(ke),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-panelbar-item"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,i,4),he(n,o7,4),he(n,s7,4)),2&t&&(P(a=B())&&(e.contentItems=a),P(a=B())&&(e.contentTemplate=a),P(a=B())&&(e.titleTemplates=a))},viewQuery:function(t,e){var n;1&t&&(ge(LRe,5),ge(PRe,5),ge(i,5)),2&t&&(P(n=B())&&(e.header=n.first),P(n=B())&&(e.contentWrapper=n.first),P(n=B())&&(e.viewChildItems=n))},hostVars:18,hostBindings:function(t,e){2&t&&(XM("id",e.itemId),ie("role",e.role)("title",e.titleAttribute)("aria-expanded",e.ariaExpanded)("aria-selected",e.ariaSelected)("aria-disabled",e.ariaDisabled),ue("k-item",e.kItemClass)("k-state-default",e.kStateDefaultClass)("k-state-disabled",e.kStateDisabledClass)("k-state-expanded",e.kStateExpandedClass)("k-panelbar-header",e.headerClass)("k-panelbar-item",e.childClass))},inputs:{title:"title",id:"id",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled",expanded:"expanded",selected:"selected",content:"content",items:"items",template:"template"},exportAs:["kendoPanelbarItem"],ngContentSelectors:a7,decls:8,vars:12,consts:[[3,"click"],["header",""],["class","k-icon k-panelbar-item-icon",3,"ngClass",4,"ngIf"],["class","k-image k-panelbar-item-icon","alt","",3,"src",4,"ngIf"],[4,"ngIf"],["class","k-icon k-panelbar-toggle",3,"ngClass",4,"ngIf"],[1,"k-icon","k-panelbar-item-icon",3,"ngClass"],["alt","",1,"k-image","k-panelbar-item-icon",3,"src"],[1,"k-panelbar-item-text"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-icon","k-panelbar-toggle",3,"ngClass"],["contentWrapper",""],["class","k-panel k-group k-panelbar-group",3,"overflow","height",4,"ngIf"],["class","k-content k-panelbar-content",3,"overflow","height",4,"ngIf"],[1,"k-panel","k-group","k-panelbar-group"],[1,"k-content","k-panelbar-content"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content"],[3,"ngIf"]],template:function(t,e){1&t&&(kn(r7),A(0,"span",0,1),Q("click",function(a){return e.onItemClick(a)}),T(2,BRe,1,1,"span",2),T(3,GRe,1,1,"img",3),T(4,VRe,3,1,"ng-container",4),T(5,KRe,1,15,null,4),T(6,WRe,1,4,"span",5),x(),T(7,nOe,6,7,"div",4)),2&t&&(ue("k-link",!0)("k-state-selected",!e.disabled&&e.selected)("k-state-focused",e.focused&&e.wrapperFocused),k(2),y("ngIf",e.icon||e.iconClass),k(1),y("ngIf",e.imageUrl),k(1),y("ngIf",!e.titleTemplate),k(1),y("ngIf",e.titleTemplate),k(1),y("ngIf",e.hasChildItems||e.hasContent),k(1),y("ngIf",e.keepContent||!e.disabled&&e.expanded&&(e.hasChildItems||e.hasContent)))},directives:[i,qe,Nt,En,gn],encapsulation:2,data:{animation:[ef("toggle",[Cd("inactive",Ft({display:"none"})),iu("* => active",[Ft({overflow:"hidden",display:"block",height:0}),Ai(200,Ft({height:ul}))]),iu("active => *",[Ft({overflow:"hidden",height:ul}),Ai(200,Ft({height:0,display:"none"}))])])]}}),i}(),p7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoPanelBarItemTemplate",""]]}),i}(),PI=function(){function i(r){p(this,i),this.prevented=!1,Object.assign(this,r)}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),tNe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(PI),nNe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(PI),iNe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(PI),g7=v(function i(){p(this,i)}),rNe=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.localization=n,this.expandMode=vl.Default,this.selectable=!0,this.animate=!0,this.height="400px",this.stateChange=new O,this.select=new O,this.expand=new O,this.collapse=new O,this.tabIndex=0,this.role="tree",this.hostClass=!0,this.activeDescendant="",this.isViewInit=!0,this.focused=!1,this._keepItemContent=!1,this.updateChildrenHeight=function(){var o=0,s=a.elementRef.nativeElement.offsetHeight,l=a.expandMode===vl.Full?"auto":"visible";a.childrenItems.forEach(function(u){o+=u.headerHeight()}),a.childrenItems.forEach(function(u){u.contentHeight=vl.Full===a.expandMode?s-o+"px":"auto",u.contentOverflow=l})},jt(fl),this.keyBindings=this.computedKeys,this.elementRef=t,this.eventService=e,this.eventService.children$.subscribe(function(o){return a.onItemAction(o)})}return v(r,[{key:"keepItemContent",get:function(){return this._keepItemContent},set:function(e){this._keepItemContent=e,this.eventService.onKeepContent(e)}},{key:"items",get:function(){return this._items},set:function(e){e&&(this._items=jIe(e))}},{key:"hostHeight",get:function(){return this.expandMode===vl.Full?this.height:"auto"}},{key:"overflow",get:function(){return this.expandMode===vl.Full?"hidden":"visible"}},{key:"dir",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"invertKeys",value:function(e,n){return this.localization.rtl?n:e}},{key:"computedKeys",get:function(){var n,e=this;return De(n={},J.Space,function(){return e.selectFocusedItem()}),De(n,J.Enter,function(){return e.selectFocusedItem()}),De(n,J.ArrowUp,function(){return e.focusPreviousItem()}),De(n,this.invertKeys(J.ArrowLeft,J.ArrowRight),function(){return e.collapseItem()}),De(n,J.ArrowDown,function(){return e.focusNextItem()}),De(n,this.invertKeys(J.ArrowRight,J.ArrowLeft),function(){return e.expandItem()}),De(n,J.End,function(){return e.focusLastItem()}),De(n,J.Home,function(){return e.focusFirstItem()}),n}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"ngOnInit",value:function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.keyBindings=e.computedKeys}),this.eventService.animate=this.animate,this.eventService.expandMode=this.expandMode}},{key:"ngAfterViewChecked",value:function(){var e=this;this.items?(this.childrenItems=this.viewChildItems.toArray(),this.allItems=this.viewItems):(this.childrenItems=this.contentChildItems.toArray(),this.allItems=this.contentItems.toArray()),this.isViewInit&&this.childrenItems.length&&(this.isViewInit=!1,setTimeout(function(){return e.updateChildrenHeight()})),this.validateConfiguration()}},{key:"ngOnChanges",value:function(e){(e.height||e.expandMode||e.items)&&this.childrenItems&&setTimeout(this.updateChildrenHeight),e.animate&&(this.eventService.animate=this.animate),e.expandMode&&(this.eventService.expandMode=this.expandMode)}},{key:"templateRef",get:function(){return this.template?this.template.templateRef:void 0}},{key:"onComponentClick",value:function(e){var n=this.visibleItems().some(function(a){return a.header.nativeElement.contains(e.target)});!wD(e.target)&&!this.focused&&n&&this.elementRef.nativeElement.focus()}},{key:"onComponentFocus",value:function(){if(this.eventService.onFocus(),this.focused=!0,this.allItems.length>0){var e=this.visibleItems();!e.filter(function(a){return a.focused}).length&&e.length>0&&(e[0].focused=!0,this.activeDescendant=e[0].itemId)}}},{key:"onComponentBlur",value:function(){this.eventService.onBlur(),this.focused=!1,this.activeDescendant=""}},{key:"onComponentKeyDown",value:function(e){if(e.target===this.elementRef.nativeElement){(e.keyCode===J.Space||e.keyCode===J.ArrowUp||e.keyCode===J.ArrowDown||e.keyCode===J.ArrowLeft||e.keyCode===J.ArrowRight||e.keyCode===J.Home||e.keyCode===J.End||e.keyCode===J.PageUp||e.keyCode===J.PageDown)&&e.preventDefault();var n=this.keyBindings[e.keyCode];n&&n()}}},{key:"emitEvent",value:function(e,n){var a;switch(e){case"select":a=new iNe;break;case"collapse":a=new tNe;break;default:a=new nNe}return a.item=n.serialize(),this[e].emit(a),a}},{key:"viewItems",get:function(){var e=[];return this.viewChildItems.toArray().forEach(function(n){e.push(n),e=e.concat(n.subTreeViewItems())}),e}},{key:"validateConfiguration",value:function(){if(xt()&&this.items&&this.contentItems&&this.contentItems.length>0)throw new Error("Invalid configuration: mixed template components and items property.")}},{key:"onItemAction",value:function(e){var n=this;if(e){var a=new Array,o=[];if(this.allItems.forEach(function(h){var f=h===e,g=f;h.selected===(f=n.selectable?f:h.selected)&&h.focused===g||(f&&n.emitEvent("select",h).isDefaultPrevented()?o.push(h):(h.selected=f,h.focused=g,n.activeDescendant=g?h.itemId:"",a.push(h)))}),this.expandMode===vl.Multiple)!e.hasChildItems&&!e.hasContent||o.includes(e)||(e.expanded?this.emitEvent("collapse",e).isDefaultPrevented():this.emitEvent("expand",e).isDefaultPrevented())||(e.expanded=!e.expanded,a.indexOf(e)<0&&a.push(e));else{var u,l=e.parent?e.parent.childrenItems:this.childrenItems,c=[];(e.hasChildItems||e.hasContent)&&!o.includes(e)&&(l.forEach(function(h){var f=h===e;if(h.expanded!==f){var g=h.expanded?n.emitEvent("collapse",h).isDefaultPrevented():n.emitEvent("expand",h).isDefaultPrevented();g?g&&h.expanded&&(u=h):(h.expanded=f,h.expanded&&c.push(h),a.indexOf(h)<0&&a.push(h))}else h.expanded===f&&f&&(n.emitEvent("collapse",h).isDefaultPrevented()||(h.expanded=!h.expanded,a.indexOf(h)<0&&a.push(h)))}),c.forEach(function(h){if(u&&h.id!==u.id&&(h.expanded=!1,xt())){var f=vl[n.expandMode].toLowerCase();console.warn("\n The ".concat(f," expandMode allows the expansion of only one item at a time.\n See https://www.telerik.com/kendo-angular-ui-develop/components/layout/panelbar/expand-modes/"))}}))}if(a.length>0){var d=new g7;d.items=a.map(function(h){return h.serialize()}),this.stateChange.emit(d)}}}},{key:"isVisible",value:function(e){return this.visibleItems().some(function(a){return a===e})}},{key:"getVisibleParent",value:function(e){var n=this.visibleItems();return e.parent?n.some(function(a){return a===e.parent})?e.parent:this.getVisibleParent(e.parent):e}},{key:"focusItem",value:function(e){var s,n=this.visibleItems(),a=n.findIndex(function(u){return u.focused}),o=n[a];if(-1===a){var l=this.allItems.find(function(u){return u.focused});l.focused=!1,o=this.getVisibleParent(l),a=n.findIndex(function(u){return u===o})}switch(e){case"lastItem":s=n[n.length-1];break;case"firstItem":s=n[0];break;case"nextItem":s=n[a0?a-1:n.length-1]}o&&s&&o!==s&&this.moveFocus(o,s)}},{key:"moveFocus",value:function(e,n){e.focused=!1,n.focused=!0,this.activeDescendant=n.itemId;var a=new Array(e.serialize(),n.serialize()),o=new g7;o.items=a,this.stateChange.emit(o)}},{key:"focusLastItem",value:function(){this.focusItem("lastItem")}},{key:"focusFirstItem",value:function(){this.focusItem("firstItem")}},{key:"focusNextItem",value:function(){this.focusItem("nextItem")}},{key:"focusPreviousItem",value:function(){this.focusItem("previousItem")}},{key:"expandItem",value:function(){var e=this.allItems.filter(function(a){return a.focused})[0];if(this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e.hasChildItems||e.hasContent)if(e.expanded){if(e.hasChildItems){var n=e.childrenItems.findIndex(function(a){return!a.disabled});n>-1&&this.moveFocus(e,e.childrenItems[n])}}else this.onItemAction(e)}},{key:"collapseItem",value:function(){var e=this.allItems.filter(function(n){return n.focused})[0];e.expanded?this.onItemAction(e):e.parent&&this.moveFocus(e,e.parent)}},{key:"selectFocusedItem",value:function(){var e=this.allItems.filter(function(n){return n.focused})[0];this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e&&e.onItemAction()}},{key:"visibleItems",value:function(){return this.flatVisibleItems(this.childrenItems)}},{key:"flatVisibleItems",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Array,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Array;return n.forEach(function(o){a.push(o),o.expanded&&o.hasChildItems&&e.flatVisibleItems(o.childrenItems,a)}),a}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(LI),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-panelbar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,p7,5),he(n,$y,5),he(n,$y,4)),2&t&&(P(a=B())&&(e.template=a.first),P(a=B())&&(e.contentItems=a),P(a=B())&&(e.contentChildItems=a))},viewQuery:function(t,e){var n;1&t&&ge($y,5),2&t&&P(n=B())&&(e.viewChildItems=n)},hostVars:10,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onComponentClick(a)})("focus",function(){return e.onComponentFocus()})("blur",function(){return e.onComponentBlur()})("keydown",function(a){return e.onComponentKeyDown(a)}),2&t&&(ie("tabIndex",e.tabIndex)("role",e.role)("aria-activedescendant",e.activeDescendant)("dir",e.dir),Qe("height",e.hostHeight)("overflow",e.overflow),ue("k-panelbar",e.hostClass))},inputs:{expandMode:"expandMode",selectable:"selectable",animate:"animate",height:"height",keepItemContent:"keepItemContent",items:"items"},outputs:{stateChange:"stateChange",select:"select",expand:"expand",collapse:"collapse"},exportAs:["kendoPanelbar"],features:[de([LI,Y,{provide:Dt,useValue:"kendo.panelbar"}]),Ie],ngContentSelectors:a7,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngIf"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content"]],template:function(t,e){1&t&&(kn(r7),T(0,iOe,1,0,"ng-content",0),T(1,oOe,1,1,"ng-template",1)),2&t&&(y("ngIf",e.contentChildItems&&!e.items),k(1),y("ngIf",null==e.items?null:e.items.length))},directives:[$y,qe,gn],encapsulation:2}),i}(),BI=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.cdr=n,this.resizable=!0,this.collapsible=!1,this.scrollable=!0,this.collapsed=!1,this.orientation="horizontal",this.overlayContent=!1,this.sizeChange=new O,this.collapsedChange=new O,this.ariaRole="group",this.hostClass=!0,this.forceExpand=!1,this.isResized=!1}return v(r,[{key:"order",get:function(){return this._order},set:function(e){this._order=e,this.setOrderStyles()}},{key:"size",get:function(){return this._size},set:function(e){this._size=e;var n=this.element.nativeElement;this.renderer.setStyle(n,"-ms-flex-preferred-size",e),this.renderer.setStyle(n,"flex-basis",e),this.staticPaneClass?this.renderer.addClass(n,"k-pane-static"):this.renderer.removeClass(n,"k-pane-static")}},{key:"containsSplitter",set:function(e){var n=this.element.nativeElement;e?this.renderer.addClass(n,"k-pane-flex"):this.renderer.removeClass(n,"k-pane-flex")}},{key:"isHidden",get:function(){return this.collapsed}},{key:"staticPaneClass",get:function(){return!this.forceExpand&&(!this.resizable&&!this.collapsible||this.fixedSize)}},{key:"scrollablePaneClass",get:function(){return this.scrollable}},{key:"fixedSize",get:function(){return this.size&&this.size.length>0}},{key:"ngAfterViewChecked",value:function(){var e=this.element.nativeElement;this.isHidden?(this.renderer.addClass(e,"k-state-hidden"),this.renderer.addClass(e,"hidden")):(this.renderer.removeClass(e,"k-state-hidden"),this.renderer.removeClass(e,"hidden"))}},{key:"computedSize",get:function(){return"vertical"===this.orientation?this.element.nativeElement.offsetHeight:this.element.nativeElement.offsetWidth}},{key:"toggleOverlay",value:function(e){this.overlayContent=e,this.cdr.detectChanges()}},{key:"detectChanges",value:function(){this.cdr.detectChanges()}},{key:"setOrderStyles",value:function(){var e=this.element.nativeElement;this.renderer.setStyle(e,"-ms-flex-order",this.order),this.renderer.setStyle(e,"order",this.order)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter-pane"]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("role",e.ariaRole),ue("k-pane",e.hostClass)("k-pane-static",e.staticPaneClass)("k-scrollable",e.scrollablePaneClass))},inputs:{order:"order",size:"size",min:"min",max:"max",resizable:"resizable",collapsible:"collapsible",scrollable:"scrollable",collapsed:"collapsed",orientation:"orientation",containsSplitter:"containsSplitter",overlayContent:"overlayContent"},outputs:{sizeChange:"sizeChange",collapsedChange:"collapsedChange"},exportAs:["kendoSplitterPane"],ngContentSelectors:_a,decls:2,vars:2,consts:[[4,"ngIf"],["class","k-splitter-overlay k-overlay",4,"ngIf"],[1,"k-splitter-overlay","k-overlay"]],template:function(t,e){1&t&&(kn(),T(0,sOe,2,0,"ng-container",0),T(1,lOe,1,0,"div",1)),2&t&&(y("ngIf",!e.collapsed),k(1),y("ngIf",e.overlayContent))},directives:[qe],encapsulation:2}),i}(),GI=function(){var i=function(){function r(t){p(this,r),this.zone=t,this.layoutChange=new O,this.containerSize=function(){}}return v(r,[{key:"tryToggle",value:function(e){var n=this.pane(e);n.collapsible&&(n.collapsed=!n.collapsed,n.collapsedChange.emit(n.collapsed),this.emit(this.layoutChange,{}),n.collapsed&&n.detectChanges());var a=this.panes.filter(function(s){return!s.collapsed}),o=a.every(function(s){return s.fixedSize});return a[a.length-1].forceExpand=!!o,n.collapsible}},{key:"toggleContentOverlay",value:function(e,n){this.pane(e).toggleOverlay(n),this.pane(e+1).toggleOverlay(n)}},{key:"dragState",value:function(e){var n=this,a=this.pane(e),o=this.pane(e+1),s=a.computedSize+o.computedSize,l=function(c){return n.toPixels(c)};return{prev:{index:e,initialSize:a.computedSize,min:l(a.min)||s-l(o.max)||0,max:l(a.max)||s-l(o.min)||s},next:{index:e+1,initialSize:o.computedSize,min:l(o.min)||s-l(a.max)||0,max:l(o.max)||s-l(a.min)||s}}}},{key:"setSize",value:function(e,n){var a=this,s=function(d,h){var C,f=a.pane(d.index),g=a.containerSize(),_=function(d,h,f){return Math.min(h,Math.max(d,f))}(d.min,d.max,d.initialSize+h);C=a.isPercent(f.size)?100*_/g+"%":_+"px",f.size=C,f.isResized=!0,a.emit(f.sizeChange,C)},l=this.pane(e.prev.index),u=this.pane(e.next.index);l.fixedSize&&u.fixedSize?(s(e.prev,n),s(e.next,-n)):u.collapsible||u.fixedSize?s(e.next,-n):s(e.prev,n),this.emit(this.layoutChange,{})}},{key:"isDraggable",value:function(e){var n=this.pane(e),a=this.pane(e+1);return n.resizable&&a.resizable&&!(n.collapsed||a.collapsed)}},{key:"isStatic",value:function(e){var n=this.pane(e),a=this.pane(e+1);return!(n.resizable&&a.resizable||n.collapsible||a.collapsible)}},{key:"pane",value:function(e){if(!this.panes)throw new Error("Panes not initialized");if(e<0||e>=this.panes.length)throw new Error("Index out of range");return this.panes[e]}},{key:"configure",value:function(e){var n=e.panes,a=e.orientation,o=e.containerSize;if(this.panes=n,this.panes.forEach(function(u,c){u.order=2*c,u.orientation=a}),xt()){var s=n.length&&!n.some(function(u){return!u.fixedSize}),l=n.length&&n.some(function(u){return u.isResized});if(s&&!l)throw new Error("\n The Splitter should have at least one pane without a set size.\n See ".concat("https://www.telerik.com/kendo-angular-ui/components/layout/splitter/panes/#toc-size"," for more information.\n "))}this.containerSize=o}},{key:"isPercent",value:function(e){return/%$/.test(e)}},{key:"toPixels",value:function(e){var n=parseFloat(e);return this.isPercent(e)&&(n=this.containerSize()*n/100),n}},{key:"emit",value:function(e,n){e.observers.length&&this.zone.run(function(){return e.emit(n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),oNe=function(r){var t=r.originalEvent;t.stopPropagation(),t.preventDefault()},VI=function(r){return Object.keys(r).filter(function(t){return r[t]}).join(" ")},UI=function(){var i=function(){function r(t,e,n,a){p(this,r),this.draggable=t,this.element=e,this.splitter=n,this.localization=a,this.orientation="horizontal",this.index=0,this.ariaRole="separator",this.focused=!1,this.subscriptions=new Je}return v(r,[{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"tabIndex",get:function(){return this.splitter.isStatic(this.index)?-1:0}},{key:"hostClasses",get:function(){var e="horizontal"===this.orientation,n=this.splitter.isDraggable(this.index),a=this.splitter.isStatic(this.index);return VI({"k-state-focused":this.focused,"k-splitbar":!0,"k-splitbar-horizontal":e,"k-splitbar-vertical":!e,"k-splitbar-draggable-horizontal":e&&n,"k-splitbar-draggable-vertical":!e&&n,"k-splitbar-static-horizontal":e&&a,"k-splitbar-static-vertical":!e&&a,"k-touch-action-none":n})}},{key:"order",get:function(){return 2*this.index+1}},{key:"collapseAny",value:function(){this.expandLast?this.toggleNext():this.tryToggleNearest()}},{key:"onFocusIn",value:function(){this.focused=!0}},{key:"onFocusOut",value:function(){this.focused=!1}},{key:"onKeyDown",value:function(e){var n=this,a=e&&e.keyCode,o="horizontal"===this.orientation,s=function(u){e.preventDefault();var c=n.splitter.dragState(n.index);n.splitter.setSize(c,u)};a===J.Enter?(e.preventDefault(),this.collapseAny()):o&&a===J.ArrowLeft?s(-10):o&&a===J.ArrowRight?s(10):o||a!==J.ArrowUp?!o&&a===J.ArrowDown&&s(10):s(-10)}},{key:"expandLast",get:function(){var e=this.splitter.panes;return 2===e.length&&e[1].collapsed}},{key:"ngOnInit",value:function(){var n,e=this,a=this.draggable.kendoPress.pipe(At(oNe),Ue(function(){return e.splitter.isDraggable(e.index)}),At(function(){return n=e.splitter.dragState(e.index)}),At(function(){return e.splitter.toggleContentOverlay(e.index,!0)}),Nn(function(r){return function(t){return lt(t).pipe(Dd(150),Qr(r))}}(this.draggable.kendoRelease)),Nn(function(r){return function(t){return r.kendoDrag.pipe(Qr(r.kendoRelease),We(function(e){return{originalX:t.pageX,originalY:t.pageY,pageX:e.pageX,pageY:e.pageY}}))}}(this.draggable))).subscribe(function(o){var s=o.pageX,u=o.originalX;e.splitter.setSize(n,"vertical"===e.orientation?o.pageY-o.originalY:"rtl"===e.direction?u-s:s-u)});this.subscriptions.add(a),this.subscriptions.add(this.draggable.kendoRelease.subscribe(function(){return e.splitter.toggleContentOverlay(e.index,!1)}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"togglePrevious",value:function(){this.splitter.tryToggle(this.index)}},{key:"toggleNext",value:function(){this.splitter.tryToggle(this.index+1)}},{key:"previousArrowClass",value:function(){var e=this.splitter.pane(this.index),n=this.splitter.pane(this.index+1),a=e.collapsible,o=e.collapsed,s="horizontal"===this.orientation;return VI({"k-icon":!0,"k-hidden":!a||n.isHidden,"k-collapse-prev":a,"k-i-arrow-60-left":a&&s&&!o,"k-i-arrow-60-right":a&&s&&o,"k-i-arrow-60-up":a&&!s&&!o,"k-i-arrow-60-down":a&&!s&&o})}},{key:"nextArrowClass",value:function(){var e=this.splitter.pane(this.index+1),n=this.splitter.pane(this.index),a=e.collapsible,o=e.collapsed,s="horizontal"===this.orientation;return VI({"k-icon":!0,"k-hidden":!a||n.isHidden,"k-collapse-next":a,"k-i-arrow-60-right":a&&s&&!o,"k-i-arrow-60-left":a&&s&&o,"k-i-arrow-60-down":a&&!s&&!o,"k-i-arrow-60-up":a&&!s&&o})}},{key:"tryToggleNearest",value:function(){var n=this.index+1;this.splitter.tryToggle(this.index)||this.splitter.tryToggle(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(ke),m(GI),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter-bar"]],hostVars:11,hostBindings:function(t,e){1&t&&Q("dblclick",function(){return e.collapseAny()})("focusin",function(){return e.onFocusIn()})("focusout",function(){return e.onFocusOut()})("keydown",function(a){return e.onKeyDown(a)}),2&t&&(ie("aria-orientation",e.orientation)("role",e.ariaRole)("tabindex",e.tabIndex),Ar(e.hostClasses),Qe("-ms-flex-order",e.order)("order",e.order),ue("k-state-focused",e.focused))},inputs:{orientation:"orientation",index:"index"},decls:3,vars:4,consts:[[3,"click"],[1,"k-resize-handle"]],template:function(t,e){1&t&&(A(0,"div",0),Q("click",function(){return e.togglePrevious()}),x(),z(1,"div",1),A(2,"div",0),Q("click",function(){return e.toggleNext()}),x()),2&t&&(Ar(e.previousArrowClass()),k(2),Ar(e.nextArrowClass()))},encapsulation:2}),i}(),uNe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.element=t,this.splitterService=e,this.localization=n,this.renderer=a,this.enclosingPane=o,this.orientation="horizontal",jt(fl),o&&(o.containsSplitter=!0),this.layoutChange=this.splitterService.layoutChange,this.configure=this.configure.bind(this)}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"horizontalHostClasses",get:function(){return"horizontal"===this.orientation}},{key:"verticalHostClasses",get:function(){return"vertical"===this.orientation}},{key:"dir",get:function(){return this.direction}},{key:"splitbars",set:function(e){var n=this;Mi(e)&&Mi(this.panes)&&[].concat(Ae(this.panes.toArray()),Ae(e.toArray())).sort(function(s,l){return s.order-l.order}).map(function(s){return s.element.nativeElement}).forEach(function(s){return n.renderer.appendChild(n.element.nativeElement,s)})}},{key:"ngAfterContentInit",value:function(){this.reconfigure()}},{key:"ngOnChanges",value:function(e){e.orientation&&!e.orientation.isFirstChange()&&this.reconfigure()}},{key:"ngOnDestroy",value:function(){this.enclosingPane&&(this.enclosingPane.containsSplitter=!1),this.unsubscribeChanges()}},{key:"reconfigure",value:function(){this.unsubscribeChanges(),this.configure(),this.paneChangesSubscription=this.panes.changes.subscribe(this.configure)}},{key:"unsubscribeChanges",value:function(){this.paneChangesSubscription&&(this.paneChangesSubscription.unsubscribe(),this.paneChangesSubscription=null)}},{key:"configure",value:function(){var e=this;this.splitterService.configure({panes:this.panes.toArray(),orientation:this.orientation,containerSize:function(){return"vertical"===e.orientation?e.element.nativeElement.clientHeight:e.element.nativeElement.clientWidth}})}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(GI),m(Y),m(Ee),m(BI,9))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter"]],contentQueries:function(t,e,n){var a;1&t&&he(n,BI,4),2&t&&P(a=B())&&(e.panes=a)},viewQuery:function(t,e){var n;1&t&&ge(UI,5),2&t&&P(n=B())&&(e.splitbars=n)},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-splitter",e.hostClasses)("k-splitter-flex",e.hostClasses)("k-splitter-horizontal",e.horizontalHostClasses)("k-splitter-vertical",e.verticalHostClasses))},inputs:{orientation:"orientation"},outputs:{layoutChange:"layoutChange"},exportAs:["kendoSplitter"],features:[de([GI,Y,{provide:Dt,useValue:"kendo.spliter"}]),Ie],ngContentSelectors:hOe,decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoDraggable","",3,"index","orientation",4,"ngIf"],["kendoDraggable","",3,"index","orientation"]],template:function(t,e){1&t&&(kn(dOe),dn(0),T(1,cOe,2,1,"ng-container",0)),2&t&&(k(1),y("ngForOf",e.panes))},directives:[UI,gn,qe,$o],encapsulation:2}),i}(),zI=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoTabContent",""]]}),i}(),m7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoTabTitle",""]]}),i}(),HI=function(){var i=function(){function r(){p(this,r),this.disabled=!1,this._tabContent=new Ei,this.focused=!1}return v(r,[{key:"tabContent",get:function(){return this._tabContent.first}},{key:"tabTitle",get:function(){return this._tabTitleDirective.first}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip-tab"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,zI,4),he(n,m7,4)),2&t&&(P(a=B())&&(e._tabContent=a),P(a=B())&&(e._tabTitleDirective=a))},inputs:{title:"title",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle",selected:"selected",closable:"closable",closeIcon:"closeIcon"},exportAs:["kendoTabStripTab"],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),cNe=v(function i(r,t){p(this,i),this.index=r,this.tab=t}),dNe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).index=e,a.title=n,a}return v(t)}(Is),_7=function(r){return r.enabled&&r.mouseScroll},KI=function(r){var t,e,n=-1,a=-1;return r.forEach(function(o,s){o.selected?(e=o,a=s):o.focused&&(t=o,n=s)}),n>=0?{tab:t,index:n}:{tab:e,index:a}},jI=function(r,t){var e=r.filter(function(n,a){return a===t});return e.length>0?e[0]:null},ko=function(r){return"top"===r||"bottom"===r},y7=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.ngZone=e}return v(r,[{key:"onKeyDown",value:function(e){if(function(r){var t=r.getAttribute("id");return!!(Mi(t)||t.indexOf("k-tabstrip-tab-")>=0)}(e.target)){var n=e.keyCode;if(!this.shouldHandleKey(n))return;e.preventDefault(),h7(n)||function(r){return c7(r)||d7(r)}(n)?this.onNavigate(n):n===J.Delete&&this.onDelete()}}},{key:"onTabSelect",value:function(e,n){var a=new dNe(n,e.title);if(this.owner.tabSelect.emit(a),!a.isDefaultPrevented()){if(e.selected)return void this.focusTabHeader(n);this.selectTab(e,n)}}},{key:"selectTab",value:function(e,n){(function(r){r.forEach(function(t){t.selected=!1})})(this.owner.tabs),this.focusTabHeader(n),e.selected=!0,this.owner.isScrollable&&this.owner.scrollToSelectedTab()}},{key:"onNavigate",value:function(e){var n=this,a=KI(this.owner.tabs),o=a.tab,s=a.index;be.isInAngularZone()||this.ngZone.run(function(){if(s<0)n.owner.selectTab(n.firstNavigatableIndex());else{o.focused=!1;var l=n.computeNextIndex(s,e);n.activateTab(l)}})}},{key:"onDelete",value:function(){var e=this,n=KI(this.owner.tabs),a=n.tab,o=n.index;(function(r,t){return void 0!==r.closable?r.closable:t})(a,this.owner.closable)&&!a.disabled&&this.ngZone.run(function(){e.owner.tabClose.emit({tab:a,index:o})})}},{key:"activateTab",value:function(e){var n=jI(this.owner.tabs,e);n.disabled?(this.focusTabHeader(e),n.focused=!0):this.onTabSelect(n,e)}},{key:"focusTabHeader",value:function(e){var n=function(r,t){var e=r.filter(function(n,a){return a===t});return e.length>0?e[0]:null}(this.owner.tabHeaderContainers,e);n.nativeElement.focus()}},{key:"shouldHandleKey",value:function(e){return!!(h7(e)||ko(this.owner.tabPosition)&&c7(e)||!ko(this.owner.tabPosition)&&d7(e)||e===J.Delete)}},{key:"computeNextIndex",value:function(e,n){switch(n){case this.invertKeys(J.ArrowLeft,J.ArrowRight):case this.invertKeys(J.ArrowUp,J.ArrowDown):return this.prevNavigatableIndex(e);case this.invertKeys(J.ArrowRight,J.ArrowLeft):case this.invertKeys(J.ArrowDown,J.ArrowUp):return this.nextNavigatableIndex(e);case J.Home:return this.firstNavigatableIndex();case J.End:return this.lastNavigatableIndex();default:return}}},{key:"invertKeys",value:function(e,n){return this.localization.rtl?n:e}},{key:"firstNavigatableIndex",value:function(){return 0}},{key:"lastNavigatableIndex",value:function(){return this.owner.tabs.length-1}},{key:"prevNavigatableIndex",value:function(e){return e-1<0?this.lastNavigatableIndex():e-1}},{key:"nextNavigatableIndex",value:function(e){return e+1>=this.owner.tabs.length?this.firstNavigatableIndex():e+1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),C7=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.position=0,this.scrollButtonActiveStateChange=new Ot,this.isDisabled=function(n){return e.owner["".concat(n,"ScrollButton")].host.nativeElement.classList.contains("k-disabled")}}return v(r,[{key:"tablistElement",get:function(){return this.owner.tablist.nativeElement}},{key:"tabstripSize",get:function(){var e=this.owner.wrapper.nativeElement,n=parseFloat(getComputedStyle(e).width),a=parseFloat(getComputedStyle(e).height);return ko(this.owner.tabPosition)?n:a}},{key:"tablistOverflowSize",get:function(){if(!Ze())return 0;var e=ko(this.owner.tabPosition),n=Math.floor(this.tablistElement[e?"scrollWidth":"scrollHeight"]-this.tablistElement.getBoundingClientRect()[e?"width":"height"]);return n<0?0:n}},{key:"tabsOverflow",get:function(){return this.tablistOverflowSize>0}},{key:"scrollButtonsSize",get:function(){if(!this.owner.hasScrollButtons)return 0;var e=this.owner.prevScrollButton.hostBoundingClientRect,n=ko(this.owner.tabPosition)?e.width:e.height,a=this.owner.nextScrollButton.hostBoundingClientRect;return n+(ko(this.owner.tabPosition)?a.width:a.height)}},{key:"toggleScrollButtonsState",value:function(){var e=this;if(this.owner.hasScrollButtons){var a=!this.isDisabled("prev"),o=!this.isDisabled("next"),s=this.position>0&&this.tablistOverflowSize>0,l=this.position0;s!==a&&this.ngZone.run(function(){return e.toggleButtonActiveState("prev",s)}),l!==o&&this.ngZone.run(function(){return e.toggleButtonActiveState("next",l)})}}},{key:"scrollToSelectedTab",value:function(){var e=this;if(this.tabsOverflow){var a=KI(this.owner.tabs).index;if(-1!==a&&(this.position+=this.getScrollOffset(a),ko(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState(),this.owner.hasScrollButtons)){var l=a===this.owner.tabs.length-1;0===a&&!this.isDisabled("prev")&&this.ngZone.run(function(){return e.toggleButtonActiveState("prev",!1)}),l&&!this.isDisabled("next")&&this.ngZone.run(function(){return e.toggleButtonActiveState("next",!1)})}}}},{key:"getScrollOffset",value:function(e){if(!Ze())return 0;var n=ko(this.owner.tabPosition);this.tablistElement["scroll".concat(n?"Left":"Top")]=this.position;var a=this.tablistElement.children[e].getBoundingClientRect(),o=this.tablistElement.getBoundingClientRect(),s=n?"right":"bottom",l=n?"left":"top",u=a[l],c=a[s],d=o[l],h=o[s],f=c<=h,g=u>=d;return f&&g?0:f?g?void 0:u-d:c-h}},{key:"onMouseScroll",value:function(e){e.preventDefault(),_7(this.owner.scrollable)&&(this.calculateListPosition(e.deltaY<0?"prev":"next",this.owner.scrollable.mouseScrollSpeed),ko(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState())}},{key:"scrollTabs",value:function(e){this.calculateListPosition(e,this.owner.scrollable.buttonScrollSpeed),ko(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position,behavior:"smooth"}):this.tablistElement.scrollTo({top:this.position,behavior:"smooth"}),this.toggleScrollButtonsState()}},{key:"calculateListPosition",value:function(e,n){var a=this.tablistOverflowSize+this.scrollButtonsSize;if("prev"===e&&this.position>0)this.position=this.position-n<=0?0:this.position-n;else if("next"===e&&this.positiona)return void(this.position=a);this.position+=n}}},{key:"restoreScrollPosition",value:function(){ko(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position}):this.tablistElement.scrollTo({top:this.position}),this.toggleScrollButtonsState()}},{key:"toggleButtonActiveState",value:function(e,n){this.scrollButtonActiveStateChange.next({buttonType:e,active:n})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),b7=function(r){return function(r){var t=r.enabled,n=r.scrollButtons,o=r.mouseScroll,l=r.buttonScrollSpeed,c=r.mouseScrollSpeed;return{enabled:void 0===t||t,scrollButtons:void 0===n?"auto":n,mouseScroll:void 0===o||o,buttonScrollSpeed:void 0===l?100:l,mouseScrollSpeed:void 0===c?10:c,prevButtonIcon:r.prevButtonIcon,nextButtonIcon:r.nextButtonIcon}}(!1===r?{enabled:!1}:r)},S7=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),w7=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.host=t,this.renderer=e,this.ngZone=n,this.btnClasses=!0,this.prev=!1,this.tabScroll=new O,this.onClick=new O,this.subs=new Je,this.clickHandler=function(o){a.emitScrollEvent(o).isDefaultPrevented()||a.onClick.emit(a.prev?"prev":"next")}}return v(r,[{key:"prevClass",get:function(){return this.prev}},{key:"nextClass",get:function(){return!this.prev}},{key:"hostBoundingClientRect",get:function(){return this.host.nativeElement.getBoundingClientRect()}},{key:"iconClass",get:function(){return this.scrollButtonIconClass[this.prev?"prevScrollButton":"nextScrollButton"]}},{key:"ngAfterViewInit",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.subs.add(e.renderer.listen(e.host.nativeElement,"click",e.clickHandler))})}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"toggle",value:function(e){this.renderer[e?"removeClass":"addClass"](this.host.nativeElement,"k-hidden")}},{key:"scrollButtonIconClass",get:function(){var e=ko(this.tabPosition)?"k-i-arrow-60-left":"k-i-arrow-60-up",n=ko(this.tabPosition)?"k-i-arrow-60-right":"k-i-arrow-60-down";return"object"==typeof this.scrollable?{prevScrollButton:void 0===this.scrollable.prevButtonIcon?e:this.scrollable.prevButtonIcon,nextScrollButton:void 0===this.scrollable.nextButtonIcon?n:this.scrollable.nextButtonIcon}:{prevScrollButton:e,nextScrollButton:n}}},{key:"emitScrollEvent",value:function(e){var n=new S7({originalEvent:e});return this.tabScroll.emit(n),n}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(be))},i.\u0275cmp=L({type:i,selectors:[["","kendoTabStripScrollableButton",""]],hostVars:16,hostBindings:function(t,e){2&t&&ue("k-button",e.btnClasses)("k-button-md",e.btnClasses)("k-icon-button",e.btnClasses)("k-rounded-md",e.btnClasses)("k-button-flat",e.btnClasses)("k-button-flat-base",e.btnClasses)("k-tabstrip-prev",e.prevClass)("k-tabstrip-next",e.nextClass)},inputs:{prev:"prev",tabPosition:"tabPosition",scrollable:"scrollable"},outputs:{tabScroll:"tabScroll",onClick:"onClick"},attrs:fOe,decls:1,vars:1,consts:[[1,"k-icon","k-button-icon",3,"ngClass"]],template:function(t,e){1&t&&z(0,"span",0),2&t&&y("ngClass",e.iconClass)},directives:[Nt],encapsulation:2}),i}(),D7=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.tabClose=new O,this.hostClasses=!0}return v(r,[{key:"activeClass",get:function(){return this.tab.selected}},{key:"disabledClass",get:function(){return this.tab.disabled}},{key:"focusedClass",get:function(){return this.tab.focused}},{key:"tabIndex",get:function(){return this.tab.selected||this.tab.focused?0:-1}},{key:"tabClosable",get:function(){return void 0!==this.tab.closable?this.tab.closable:this.tabStripClosable}},{key:"closeButtonClasses",get:function(){return Mi(this.tab.closeIcon)?this.tab.closeIcon:this.tabStripCloseIcon}},{key:"closeButtonTitle",get:function(){return this.localization.get("closeTitle")}},{key:"closeTab",value:function(e){var n=new cNe(e,this.tab);this.tabClose.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoTabStripTab",""]],hostVars:13,hostBindings:function(t,e){2&t&&(ie("aria-selected",e.activeClass)("aria-disabled",e.disabledClass)("tabindex",e.tabIndex),ue("k-item",e.hostClasses)("k-state-default",e.hostClasses)("k-state-active",e.activeClass)("k-state-disabled",e.disabledClass)("k-state-focused",e.focusedClass))},inputs:{tab:"tab",index:"index",tabStripClosable:"tabStripClosable",tabStripCloseIcon:"tabStripCloseIcon"},outputs:{tabClose:"tabClose"},attrs:vOe,decls:3,vars:3,consts:[["class","k-link",4,"ngIf"],["class","k-remove-tab k-button k-icon-button k-flat","role","button",3,"title","click",4,"ngIf"],[1,"k-link"],[3,"ngTemplateOutlet"],["role","button",1,"k-remove-tab","k-button","k-icon-button","k-flat",3,"title","click"],[3,"ngClass"]],template:function(t,e){1&t&&(T(0,pOe,2,1,"span",0),T(1,mOe,2,1,"span",0),T(2,_Oe,2,3,"span",1)),2&t&&(y("ngIf",!e.tab.tabTitle),k(1),y("ngIf",e.tab.tabTitle),k(1),y("ngIf",e.tabClosable))},directives:[qe,En,Nt],encapsulation:2}),i}(),TD=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-tabstrip-messages-base"]],inputs:{closeTitle:"closeTitle"},features:[j]}),i}(),E7=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(TD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoTabStripLocalizedMessages",""]],features:[de([{provide:TD,useExisting:ye(function(){return i})}]),j]}),i}(),T7=function(){var i=function(){function r(t,e,n,a,o,s){var l=this;p(this,r),this.localization=t,this.renderer=e,this.wrapper=n,this.tabstripService=a,this.scrollService=o,this.ngZone=s,this.animate=!0,this.tabPosition="top",this.keepTabContent=!1,this.closable=!1,this.closeIcon="k-icon k-i-x",this.tabSelect=new O,this.tabClose=new O,this.tabScroll=new O,this.hostClasses=!0,this.tabs=new Ei,this._scrollableSettings=b7(!1),this.subscriptions=new Je,this.subscriptionsArePresent=!1,jt(fl),this.tabstripService.owner=this,this.scrollService.owner=this,this.subscriptions.add(this.scrollService.scrollButtonActiveStateChange.subscribe(function(u){l.hasScrollButtons&&l.renderer["".concat(u.active?"remove":"add","Class")](l["".concat(u.buttonType,"ScrollButton")].host.nativeElement,"k-disabled")}))}return v(r,[{key:"height",get:function(){return this._height},set:function(e){this._height=e,this.renderer.setStyle(this.wrapper.nativeElement,"height",e)}},{key:"scrollable",get:function(){return this._scrollableSettings},set:function(e){this._scrollableSettings=b7(e),this.tablist&&(this.toggleScrollButtons(this.scrollService.tabsOverflow),this.attachWheelHandler(this.tablist.nativeElement))}},{key:"tabsAtTop",get:function(){return"top"===this.tabPosition}},{key:"tabsAtRight",get:function(){return"right"===this.tabPosition}},{key:"tabsAtBottom",get:function(){return"bottom"===this.tabPosition}},{key:"tabsAtLeft",get:function(){return"left"===this.tabPosition}},{key:"dir",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"tabStripScrollable",get:function(){return this._scrollableSettings.enabled}},{key:"ngAfterViewInit",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.toggleScrollButtons(!!e.scrollService.tabsOverflow),setTimeout(function(){e.scrollToSelectedTab()})}),this.initDomEvents()}},{key:"ngOnChanges",value:function(e){var n=this,a=e.tabPosition;if(a){var o="bottom"===a.previousValue||"bottom"===a.currentValue;this.ngZone.onStable.pipe(It(1)).subscribe(function(){o&&(n.subscriptionsArePresent&&(n.subscriptions.unsubscribe(),n.subscriptions=new Je,n.subscriptionsArePresent=!1),n.initDomEvents()),n.scrollService.restoreScrollPosition()})}}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"tabsAlignmentStyles",get:function(){return{start:"flex-start",end:"flex-end",center:"center",justify:"space-between"}[this.tabAlignment]}},{key:"tabListWidth",get:function(){return"top"===this.tabPosition||"bottom"===this.tabPosition?"100%":null}},{key:"tabListHeight",get:function(){return"left"===this.tabPosition||"right"===this.tabPosition?"100%":null}},{key:"isScrollable",get:function(){return this._scrollableSettings.enabled}},{key:"hasScrollButtons",get:function(){return function(r){return r.enabled&&"hidden"!==r.scrollButtons}(this._scrollableSettings)}},{key:"mouseScrollEnabled",get:function(){return _7(this._scrollableSettings)}},{key:"itemsWrapperClass",get:function(){return ko(this.tabPosition)?"k-hstack":"k-vstack"}},{key:"selectTab",value:function(e){var n=jI(this.tabs,e);!n||n.disabled||(this.tabstripService.selectTab(n,e),this.scrollToSelectedTab())}},{key:"onTabClick",value:function(e,n){if(!wD(e.target)){var a=e.target;if(!DD(a,"k-remove-tab")&&!DD(a.parentElement,"k-remove-tab")){var s=jI(this.tabs,n);this.tabstripService.onTabSelect(s,n),this.scrollToSelectedTab()}}}},{key:"onResize",value:function(){var e=this;this.toggleScrollButtons(!!this.scrollService.tabsOverflow),this.ngZone.runOutsideAngular(function(){e.scrollService.toggleScrollButtonsState()})}},{key:"scrollToSelectedTab",value:function(){this._scrollableSettings.enabled&&this.scrollService.scrollToSelectedTab()}},{key:"onScrollButtonClick",value:function(e){this.scrollService.scrollTabs(e)}},{key:"initDomEvents",value:function(){var e=this;if(this.wrapper&&!this.subscriptionsArePresent){var n=this.tablist.nativeElement;this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(n,"keydown",function(a){e.tabstripService.onKeyDown(a)}))}),this.subscriptions.add(this.renderer.listen(n,"focusout",function(){!function(r){r.forEach(function(t){t.focused=!1})}(e.tabs)})),this.isScrollable&&this.mouseScrollEnabled&&this.attachWheelHandler(n),this.subscriptionsArePresent=!0}}},{key:"toggleScrollButtons",value:function(e){var n=this;this.ngZone.onStable.pipe(It(1)).subscribe(function(){var a=n._scrollableSettings.scrollButtons,o=n.prevScrollButton&&n.nextScrollButton,s=o&&e,u="visible"===a;o&&!e&&"visible"!==a?(n.prevScrollButton.toggle(!1),n.nextScrollButton.toggle(!1)):(s||u)&&(n.prevScrollButton.toggle(!0),n.nextScrollButton.toggle(!0)),o&&u&&n.ngZone.runOutsideAngular(function(){n.scrollService.toggleScrollButtonsState()})})}},{key:"attachWheelHandler",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.subscriptions.add(n.renderer.listen(e,"wheel",function(a){var o=new S7({originalEvent:a});n.tabScroll.emit(o),o.isDefaultPrevented()||!n.scrollService.tabsOverflow||n.scrollService.onMouseScroll(a)}))})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee),m(ke),m(y7),m(C7),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip"]],contentQueries:function(t,e,n){var a;1&t&&he(n,HI,4),2&t&&P(a=B())&&(e.tabs=a)},viewQuery:function(t,e){var n;1&t&&(ge(yOe,5),ge(kOe,5),ge(COe,5),ge(bOe,5,ke)),2&t&&(P(n=B())&&(e.tablist=n.first),P(n=B())&&(e.prevScrollButton=n.first),P(n=B())&&(e.nextScrollButton=n.first),P(n=B())&&(e.tabHeaderContainers=n))},hostVars:15,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-tabstrip",e.hostClasses)("k-floatwrap",e.hostClasses)("k-tabstrip-top",e.tabsAtTop)("k-tabstrip-right",e.tabsAtRight)("k-tabstrip-bottom",e.tabsAtBottom)("k-tabstrip-left",e.tabsAtLeft)("k-tabstrip-scrollable",e.tabStripScrollable))},inputs:{height:"height",animate:"animate",tabAlignment:"tabAlignment",tabPosition:"tabPosition",keepTabContent:"keepTabContent",closable:"closable",scrollable:"scrollable",closeIcon:"closeIcon"},outputs:{tabSelect:"tabSelect",tabClose:"tabClose",tabScroll:"tabScroll"},exportAs:["kendoTabStrip"],features:[de([y7,C7,Y,{provide:Dt,useValue:"kendo.tabstrip"}]),Ie],decls:8,vars:3,consts:function(){return[["kendoTabStripLocalizedMessages","","closeTitle",$localize(t7||(t7=le([":kendo.tabstrip.closeTitle|The title for the **Close** button in the TabStrip tab.:Close"])))],[4,"ngIf"],["heading",""],["content",""],[3,"resize",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"k-tabstrip-items-wrapper",3,"ngClass"],["kendoTabStripScrollableButton","",3,"scrollable","tabPosition","prev","tabScroll","onClick",4,"ngIf"],["role","tablist",1,"k-reset","k-tabstrip-items"],["tablist",""],[4,"ngFor","ngForOf"],["kendoTabStripScrollableButton","",3,"scrollable","tabPosition","prev","tabScroll","onClick"],["prevScrollButton",""],["kendoTabStripTab","","role","tab",3,"ngClass","ngStyle","tab","index","tabStripClosable","tabStripCloseIcon","id","tabClose","click"],["tabHeaderContainer",""],["nextScrollButton",""],["ngFor","",3,"ngForOf"],["role","tabpanel",3,"ngClass","tabIndex","id",4,"ngIf"],["role","tabpanel",3,"ngClass","tabIndex","id"],[3,"ngTemplateOutlet"],[3,"resize"]]},template:function(t,e){1&t&&(Wt(0,0),T(1,DOe,3,2,"ng-container",1),T(2,AOe,3,2,"ng-container",1),T(3,OOe,6,10,"ng-template",null,2,$n),T(5,LOe,1,1,"ng-template",null,3,$n),T(7,POe,1,0,"kendo-resize-sensor",4)),2&t&&(k(1),y("ngIf",!e.tabsAtBottom),k(1),y("ngIf",e.tabsAtBottom),k(5),y("ngIf",e.isScrollable))},directives:[w7,D7,Gr,E7,qe,En,Nt,gn,Vi],encapsulation:2,data:{animation:[ef("state",[Cd("active",Ft({opacity:1})),iu("* => active",[Ft({opacity:0}),Ai("400ms ease-in")])])]}}),i}(),bNe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(TD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip-messages"]],features:[de([{provide:TD,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),A7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerTemplate",""]]}),i}(),x7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerItemTemplate",""]]}),i}(),M7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerHeaderTemplate",""]]}),i}(),R7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerFooterTemplate",""]]}),i}(),AD=function(){var i=function(){function r(){p(this,r),this.selectedIndices=[]}return v(r,[{key:"onSelect",value:function(e){this.selectedIndices=[e];var n=this.owner;n.autoCollapse&&!n.minimized&&n.toggle(!1)}},{key:"initSelection",value:function(){var e=this.owner.items;this.selectedIndices=[];for(var n=0;n=0}},{key:"label",get:function(){return this.item.text?this.item.text:null}},{key:"ngAfterViewInit",value:function(){var e=I7(this.element.nativeElement,".k-drawer-link");e&&this.renderer.removeAttribute(e,"tabindex")}},{key:"iconClasses",get:function(){var e=[];return this.item.icon&&e.push("k-icon ".concat(this.item.icon)),this.item.iconClass&&e.push("".concat(this.item.iconClass)),e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(AD),m(ke),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["","kendoDrawerItem",""]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("aria-disabled",e.disabledClass)("aria-selected",e.selectedClass)("aria-label",e.label),ue("k-state-disabled",e.disabledClass)("k-state-selected",e.selectedClass))},inputs:{item:"item",index:"index",itemTemplate:"itemTemplate",mini:"mini",expanded:"expanded",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle"},attrs:BOe,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"ngClass"],[1,"k-item-text"]],template:function(t,e){if(1&t&&(T(0,VOe,1,4,null,0),T(1,HOe,2,2,"ng-template",null,1,$n)),2&t){var n=Yt(2);y("ngIf",e.itemTemplate)("ngIfElse",n)}},directives:[qe,En,Nt],encapsulation:2}),i}(),F7=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.drawerService=t,this.renderer=e,this.ngZone=n,this.changeDetector=a,this.element=o,this.select=new O,this.subscriptions=new Je}return v(r,[{key:"ngOnInit",value:function(){this.initialSelection(),this.initDomEvents()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"initialSelection",value:function(){0===this.drawerService.selectedIndices.length&&this.drawerService.initSelection()}},{key:"initDomEvents",value:function(){var e=this;!this.element||this.ngZone.runOutsideAngular(function(){var n=e.element.nativeElement;e.subscriptions.add(e.renderer.listen(n,"click",e.clickHandler.bind(e))),e.subscriptions.add(e.renderer.listen(n,"keydown",e.keyDownHandler.bind(e)))})}},{key:"clickHandler",value:function(e){var n=this,a=this.getDrawerItemIndex(e.target),o=this.items[a];if(o){if(o.disabled)return void e.preventDefault();var s={index:a,item:o,originalEvent:e};this.ngZone.run(function(){var l=new PNe(s);n.select.emit(l),l.isDefaultPrevented()||(n.drawerService.onSelect(a),n.changeDetector.detectChanges())})}}},{key:"keyDownHandler",value:function(e){if(e.keyCode===J.Enter||e.keyCode===J.Space){this.clickHandler(e);var a=I7(this.element.nativeElement,":focus:not(.k-state-disabled) .k-drawer-link");return a&&a.click(),!1}}},{key:"getDrawerItemIndex",value:function(e){var n=v7(e,O7,this.element.nativeElement);if(n)return f7(n,O7)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(AD),m(Ee),m(be),m(nt),m(ke))},i.\u0275cmp=L({type:i,selectors:[["","kendoDrawerList",""]],inputs:{items:"items",itemTemplate:"itemTemplate",mini:"mini",expanded:"expanded"},outputs:{select:"select"},attrs:KOe,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoDrawerItem","","class","k-drawer-item","tabindex","0",3,"item","index","mini","expanded","itemTemplate","ngClass","ngStyle",4,"ngIf"],["class","k-drawer-item k-drawer-separator",3,"ngClass","ngStyle",4,"ngIf"],["kendoDrawerItem","","tabindex","0",1,"k-drawer-item",3,"item","index","mini","expanded","itemTemplate","ngClass","ngStyle"],[1,"k-drawer-item","k-drawer-separator",3,"ngClass","ngStyle"]],template:function(t,e){1&t&&T(0,$Oe,3,2,"ng-container",0),2&t&&y("ngForOf",e.items)},directives:[N7,gn,qe,Nt,Vi],encapsulation:2}),i}(),L7={type:"slide",duration:200},P7=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.element=t,this.builder=e,this.localizationService=n,this.drawerService=a,this.hostClasses=!0,this.mode="overlay",this.position="start",this.mini=!1,this.expanded=!1,this.width=240,this.miniWidth=50,this.autoCollapse=!0,this.animation=L7,this.expand=new O,this.collapse=new O,this.select=new O,this.expandedChange=new O,this.animationEnd=new O,this.rtl=!1,this._items=[],jt(fl),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(s){o.rtl=s.rtl,o.direction=o.rtl?"rtl":"ltr"}),this.drawerService.owner=this}return v(r,[{key:"startPositionClass",get:function(){return"start"===this.position}},{key:"endPositionClass",get:function(){return"end"===this.position}},{key:"overlayTransofrmStyles",get:function(){if("push"!==this.mode)return this.expanded||this.minimized?"translateX(0px)":"translateX(-100%)"}},{key:"flexStyles",get:function(){if("overlay"!==this.mode)return this.expanded||this.minimized?this.drawerWidth:0}},{key:"items",get:function(){return this._items},set:function(e){Mi(e)&&(this._items=e,this.drawerService.initSelection())}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"minimized",get:function(){return this.mini&&!this.expanded}},{key:"drawerWidth",get:function(){return this.minimized?this.miniWidth:this.width}},{key:"toggle",value:function(e){var n=this,a=this.expanded,o=Mi(e)?e:!a;o!==a&&(!0===o?this.setExpanded(!0):!1===o&&!this.animation&&this.setExpanded(!1),this.animation?(this.animationEnd.pipe(It(1)).subscribe(function(){n.onAnimationEnd(o)}),this.animate(o)):this[o?"expand":"collapse"].emit())}},{key:"onSelect",value:function(e){this.select.emit(Object.assign(e,{sender:this}))}},{key:"onAnimationEnd",value:function(e){e?this.expand.emit():(this.setExpanded(!1),this.collapse.emit())}},{key:"setExpanded",value:function(e){this.expanded=e,this.expandedChange.emit(e)}},{key:"animate",value:function(e){var n={mode:this.mode,mini:this.mini,miniWidth:this.miniWidth,width:this.width,rtl:this.rtl,position:this.position,animation:"boolean"!=typeof this.animation?this.animation:L7},a=e?function INe(i){var r=i.animation.duration,t=i.width,e=i.miniWidth,n=i.mode,a=i.mini,o=i.rtl,s=i.position;return a&&"push"===n?function SNe(i,r,t){return[Ft({overflow:"hidden",flexBasis:"".concat(t,"px")}),Ai("".concat(i,"ms ease-in"),Ft({flexBasis:"".concat(r,"px")}))]}(r,t,e):a||"push"!==n?a||"overlay"!==n?a&&"overlay"===n?function DNe(i,r,t){return[Ft({width:"".concat(t,"px")}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",width:"".concat(r,"px")}))]}(r,t,e):void 0:o?function ANe(i){return[Ft({transform:"translateX(100%)"}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",transform:"translateX(0)"}))]}(r):function xNe(i,r){return[Ft({transform:"translateX(".concat("end"!==r?"-100%":"100%",")")}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",transform:"translateX(0)"}))]}(r,s):function ENe(i,r){return[Ft({overflow:"hidden",flexBasis:"0px"}),Ai("".concat(i,"ms ease-in"),Ft({flexBasis:"".concat(r,"px")}))]}(r,t)}(n):function NNe(i){var r=i.animation.duration,t=i.width,e=i.miniWidth,n=i.mode,a=i.mini,o=i.rtl,s=i.position;return a&&"push"===n?function wNe(i,r,t){return[Ft({overflow:"hidden",flexBasis:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Ft({flexBasis:"".concat(t,"px")}))]}(r,t,e):a||"push"!==n?a||"overlay"!==n?a&&"overlay"===n?function MNe(i,r,t){return[Ft({width:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",width:"".concat(t,"px")}))]}(r,t,e):void 0:o?function ONe(i){return[Ft({transform:"translateX(0)"}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",transform:"translateX(100%)"}))]}(r):function RNe(i,r){var t="end"!==r?"-100%":"100%";return[Ft({transform:"translateX(0)"}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",transform:"translateX(".concat(t,")")}))]}(r,s):function TNe(i,r){return[Ft({flexBasis:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",flexBasis:"0px"}))]}(r,t)}(n);this.createPlayer(a,this.element.nativeElement).play()}},{key:"createPlayer",value:function(e,n){var a=this,s=this.builder.build(e).create(n);return s.onDone(function(){s&&(a.animationEnd.emit(),s.destroy(),s=null)}),s}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(zp),m(Y),m(AD))},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,A7,5),he(n,R7,5),he(n,M7,5),he(n,x7,5)),2&t&&(P(a=B())&&(e.drawerTemplate=a.first),P(a=B())&&(e.footerTemplate=a.first),P(a=B())&&(e.headerTemplate=a.first),P(a=B())&&(e.itemTemplate=a.first))},hostVars:13,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("transform",e.overlayTransofrmStyles)("flex-basis",e.flexStyles,"px"),ue("k-widget",e.hostClasses)("k-drawer",e.hostClasses)("k-drawer-start",e.startPositionClass)("k-drawer-end",e.endPositionClass))},inputs:{mode:"mode",position:"position",mini:"mini",expanded:"expanded",width:"width",miniWidth:"miniWidth",autoCollapse:"autoCollapse",items:"items",animation:"animation"},outputs:{expand:"expand",collapse:"collapse",select:"select",expandedChange:"expandedChange"},exportAs:["kendoDrawer"],features:[de([Y,AD,{provide:Dt,useValue:"kendo.drawer"}])],decls:1,vars:1,consts:[["class","k-drawer-wrapper",3,"width",4,"ngIf"],[1,"k-drawer-wrapper"],[4,"ngIf"],["kendoDrawerList","",1,"k-drawer-items",3,"items","mini","expanded","itemTemplate","select"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&T(0,tIe,3,4,"div",0),2&t&&y("ngIf",e.expanded||e.mini)},directives:[F7,qe,En],encapsulation:2}),i}(),BNe=function(){var i=function(){function r(t){var e=this;p(this,r),this.localizationService=t,this.rtl=!1,this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){e.rtl=n.rtl,e.direction=e.rtl?"rtl":"ltr"})}return v(r,[{key:"hostClass",get:function(){return!0}},{key:"overlayClass",get:function(){return"overlay"===this.drawer.mode}},{key:"miniClass",get:function(){return this.drawer.mini}},{key:"pushClass",get:function(){return"push"===this.drawer.mode}},{key:"isExpandedClass",get:function(){return this.drawer.expanded}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"overlay",get:function(){return Mi(this.drawer)&&this.drawer.expanded&&"overlay"===this.drawer.mode}},{key:"closeDrawer",value:function(){this.overlay&&this.drawer.autoCollapse&&this.drawer.toggle(!1)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer-container"]],contentQueries:function(t,e,n){var a;1&t&&he(n,P7,5),2&t&&P(a=B())&&(e.drawer=a.first)},hostVars:11,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-drawer-container",e.hostClass)("k-drawer-overlay",e.overlayClass)("k-drawer-mini",e.miniClass)("k-drawer-push",e.pushClass)("k-drawer-expanded",e.isExpandedClass))},features:[de([Y,{provide:Dt,useValue:"kendo.drawer.container"}])],ngContentSelectors:_a,decls:2,vars:1,consts:[["class","k-overlay",3,"click",4,"ngIf"],[1,"k-overlay",3,"click"]],template:function(t,e){1&t&&(kn(),T(0,nIe,1,0,"div",0),dn(1)),2&t&&y("ngIf",e.overlay)},directives:[qe],encapsulation:2}),i}(),GNe=function(){var i=v(function r(){p(this,r),this.hostClasses=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer-content"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-drawer-content",e.hostClasses)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),B7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperStepTemplate",""]]}),i}(),G7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperLabelTemplate",""]]}),i}(),V7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperIndicatorTemplate",""]]}),i}(),su={};su[J.ArrowLeft]="left",su[J.ArrowRight]="right",su[J.ArrowUp]="up",su[J.ArrowDown]="down",su[J.Home]="home",su[J.End]="end",su[J.Enter]="enter",su[J.Space]="enter";var WI=Object.assign({},su);WI[J.ArrowLeft]="right",WI[J.ArrowRight]="left";var UNe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),$I=function(){var i=function(){function r(t,e,n){p(this,r),this.localization=t,this.ngZone=e,this.changeDetector=n,this.currentStep=0,this.triggerValidation=new O,this.focusedStepChange=new O}return v(r,[{key:"handlers",get:function(){return this.localization.rtl?WI:su}},{key:"emit",value:function(e,n){var a=this.owner;return ut(a[e])&&a[e].emit(n),n.isDefaultPrevented()}},{key:"onActivate",value:function(e,n){var a=this,o=new UNe({index:e,step:this.owner.steps[e],originalEvent:n,sender:this.owner});this.ngZone.run(function(){a.emit("activate",o)||(a.currentStep=e,a.owner.currentStepChange.emit(e),a.changeDetector.detectChanges())})}},{key:"validateSteps",value:function(){this.triggerValidation.emit()}},{key:"keydown",value:function(e){var a=this.handlers[e.keyCode];!Mi(this.focusedStep||this.currentStep)||a&&(e.preventDefault(),this[a](e))}},{key:"left",value:function(){!this.isHorizontal||this.focusPrevStep()}},{key:"right",value:function(){!this.isHorizontal||this.focusNextStep()}},{key:"up",value:function(){this.isHorizontal||this.focusPrevStep()}},{key:"down",value:function(){this.isHorizontal||this.focusNextStep()}},{key:"home",value:function(){this.focusedStep=0,this.focusedStepChange.emit()}},{key:"end",value:function(){this.focusedStep=this.owner.steps.length-1,this.focusedStepChange.emit()}},{key:"enter",value:function(e){this.focusedStep!==this.currentStep&&(this.isStepDisabled(this.focusedStep)||this.owner.linear&&!1===this.isPrevOrNextStep(this.focusedStep)||this.onActivate(this.focusedStep,e))}},{key:"focus",value:function(e){this.focusedStep=e}},{key:"focusNextStep",value:function(){this.focusedStep0&&(this.focusedStep-=1,this.focusedStepChange.emit())}},{key:"isStepDisabled",value:function(e){return this.owner.steps[e].disabled}},{key:"isPrevOrNextStep",value:function(e){return e===this.currentStep+1||e===this.currentStep-1}},{key:"isHorizontal",get:function(){return"horizontal"===this.owner.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y),oe(be),oe(nt))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),U7="data-kendo-stepper-index",z7=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.service=t,this.localization=e,this.ngZone=n,this.isStepValid=void 0,this.shouldCheckValidity=void 0,jt(fl),this.subs=this.service.focusedStepChange.subscribe(function(){a.onFocusedStepChange()}),this.subs.add(this.service.triggerValidation.subscribe(function(){a.handleValidityChecks()}))}return v(r,[{key:"errorStepClass",get:function(){return!!Mi(this.isStepValid)&&!this.isStepValid}},{key:"successStepClass",get:function(){return!!Mi(this.isStepValid)&&this.isStepValid}},{key:"ngOnInit",value:function(){this.handleValidityChecks()}},{key:"ngOnChanges",value:function(e){e.current&&!e.current.firstChange&&this.handleValidityChecks()}},{key:"ngOnDestroy",value:function(){this.subs&&this.subs.unsubscribe()}},{key:"onFocusedStepChange",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.index===e.service.focusedStep&&e.stepLink.nativeElement.focus()})}},{key:"onFocus",value:function(){this.service.focus(this.index)}},{key:"tabIndexAttr",get:function(){return this.index===(this.service.focusedStep||this.service.currentStep)?0:-1}},{key:"indicatorIconClasses",get:function(){return this.step.icon?"k-icon k-i-".concat(this.step.icon):this.step.iconClass?"".concat(this.step.iconClass):this.shouldCheckValidity?this.validationIconClasses:void 0}},{key:"showIndicatorIcon",get:function(){return!!(this.shouldCheckValidity||this.step.icon||this.step.iconClass)}},{key:"showLabelIcon",get:function(){return!(!this.shouldCheckValidity||"label"!==this.type&&!this.step.icon&&!this.step.iconClass)}},{key:"showLabelText",get:function(){return"label"===this.type||"full"===this.type}},{key:"validationIconClasses",get:function(){return this.isStepValid?this.successIcon?"".concat(this.successIcon):"k-icon k-i-check":this.errorIcon?"".concat(this.errorIcon):"k-icon k-i-warning"}},{key:"indicatorText",get:function(){return this.step.text||this.index+1}},{key:"updateStepValidity",value:function(){return"boolean"==typeof this.step.isValid?this.step.isValid:"function"==typeof this.step.isValid?this.step.isValid(this.index):void 0}},{key:"showIndicator",get:function(){return"indicator"===this.type||"full"===this.type}},{key:"showLabel",get:function(){return"label"===this.type||"full"===this.type||this.step.optional}},{key:"optionalText",get:function(){return this.localization.get("optional")}},{key:"transitionDuration",get:function(){return this.service.owner.animationDuration}},{key:"_shouldCheckValidity",value:function(){if(Mi(this.step.validate)){if("boolean"==typeof this.step.validate)return this.step.validate;if("function"==typeof this.step.validate)return this.step.validate(this.index)}return Mi(this.step.isValid)&&this.index0&&(this._steps=e)}},{key:"ngOnInit",value:function(){this.applyHostStyling()}},{key:"ngOnChanges",value:function(e){e.steps&&!e.steps.firstChange&&this.applyHostStyling(),e.orientation&&(this.resetHostStyling(),this.applyHostStyling())}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"validateSteps",value:function(){this.stepperService.validateSteps()}},{key:"applyHostStyling",value:function(){var e="horizontal"===this.orientation?"grid-template-columns":"grid-template-rows",n="repeat(".concat(2*this.steps.length,", 1fr)");this.renderer.setStyle(this.elem.nativeElement,e,n)}},{key:"resetHostStyling",value:function(){this.renderer.removeStyle(this.elem.nativeElement,"grid-template-columns"),this.renderer.removeStyle(this.elem.nativeElement,"grid-template-rows")}},{key:"progressAnimation",get:function(){return{duration:this.animationDuration}}},{key:"animationDuration",get:function(){return"number"==typeof this.animation?this.animation:"boolean"==typeof this.animation&&this.animation?400:0}},{key:"stepsListStyling",get:function(){return"horizontal"===this.orientation?{"grid-column-start":1,"grid-column-end":-1}:{"grid-row-start":1,"grid-row-end":-1}}},{key:"progressBarStyling",get:function(){return"horizontal"===this.orientation?{"grid-column-start":2,"grid-column-end":2*this.steps.length}:{"grid-row-start":2,"grid-row-end":2*this.steps.length}}},{key:"onListKeydown",value:function(e){this.stepperService.keydown(e)}},{key:"onListClick",value:function(e){e.stepIdx!==e.currentStep?e.linear&&!1===this.stepperService.isPrevOrNextStep(e.stepIdx)||this.stepperService.onActivate(e.stepIdx,e.originalEvent):this.stepperService.focus(e.stepIdx)}},{key:"isHorizontal",get:function(){return"horizontal"===this.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(Y),m($I))},i.\u0275cmp=L({type:i,selectors:[["kendo-stepper"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,B7,5),he(n,G7,5),he(n,V7,5)),2&t&&(P(a=B())&&(e.stepTemplate=a.first),P(a=B())&&(e.labelTemplate=a.first),P(a=B())&&(e.indicatorTemplate=a.first))},hostVars:10,hostBindings:function(t,e){2&t&&(ie("role",e.ariaRole)("dir",e.direction),Qe("display",e.displayStyle),ue("k-widget",e.hostClasses)("k-stepper",e.hostClasses)("k-stepper-linear",e.linearClass))},inputs:{stepType:"stepType",linear:"linear",orientation:"orientation",currentStep:"currentStep",steps:"steps",successIcon:"successIcon",errorIcon:"errorIcon",animation:"animation"},outputs:{activate:"activate",currentStepChange:"currentStepChange"},exportAs:["kendoStepper"],features:[de([Y,$I,{provide:Dt,useValue:"kendo.stepper"}]),Ie],decls:3,vars:16,consts:function(){return[["kendoStepperLocalizedMessages","","optional",$localize(n7||(n7=le([":kendo.stepper.optional|The text for the optional segment of the step label:Optional"])))],["kendoStepperList","",1,"k-step-list",3,"stepType","linear","orientation","steps","currentStep","successIcon","errorIcon","indicatorTemplate","labelTemplate","stepTemplate","ngStyle","listKeydown","listClick"],[3,"animation","max","label","orientation","reverse","value","ngStyle",4,"ngIf"],[3,"animation","max","label","orientation","reverse","value","ngStyle"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"ol",1),Q("listKeydown",function(a){return e.onListKeydown(a)})("listClick",function(a){return e.onListClick(a)}),x(),T(2,SIe,1,8,"kendo-progressbar",2)),2&t&&(k(1),ue("k-step-list-horizontal",e.isHorizontal)("k-step-list-vertical",!e.isHorizontal),y("stepType",e.stepType)("linear",e.linear)("orientation",e.orientation)("steps",e.steps)("currentStep",e.currentStep)("successIcon",e.successIcon)("errorIcon",e.errorIcon)("indicatorTemplate",null==e.indicatorTemplate?null:e.indicatorTemplate.templateRef)("labelTemplate",null==e.labelTemplate?null:e.labelTemplate.templateRef)("stepTemplate",null==e.stepTemplate?null:e.stepTemplate.templateRef)("ngStyle",e.stepsListStyling),k(1),y("ngIf",e.steps.length>0))},directives:[H7,e7,K7,Vi,qe],encapsulation:2}),i}(),KNe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(xD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-stepper-messages"]],features:[de([{provide:xD,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),$7="primary",jNe=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.element=e,this.hostClass=!0,this.border=!1,this._themeColor=$7,this._size="medium",this._fillMode="solid",this._rounded="full",jt(fl)}return v(r,[{key:"borderClass",get:function(){return this.border}},{key:"flexBasis",get:function(){return this.width}},{key:"shape",set:function(e){this.rounded=function(r){return KIe[r]||"none"}(e)}},{key:"size",get:function(){return this._size},set:function(e){if(e!==this._size){var n=e||"medium";this.handleClasses("size",n),this._size=n}}},{key:"rounded",get:function(){return this._rounded},set:function(e){if(e!==this._rounded){var n=e||"full";this.handleClasses("rounded",n),this._rounded=n}}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){e!==this._themeColor&&(this._themeColor=e||$7,this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor))}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){e!==this.fillMode&&(this._fillMode=e||"solid",this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor))}},{key:"fill",set:function(e){this.fillMode=e}},{key:"avatarWidth",get:function(){return this.width}},{key:"avatarHeight",get:function(){return this.height}},{key:"ngOnInit",value:function(){this.verifyProperties()}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded"].forEach(function(a){e.handleClasses(a,e[a])}),this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor)}},{key:"iconClasses",value:function(){return this.icon?"k-icon k-i-".concat(this.icon):this.iconClass?"".concat(this.iconClass):void 0}},{key:"customAvatar",get:function(){return!(this.imageSrc||this.initials||this.icon||this.iconClass)}},{key:"verifyProperties",value:function(){if(xt()&&[this.icon||this.iconClass,this.imageSrc,this.initials].filter(function(a){return a}).length>1)throw new Error("\n Invalid property configuration given.\n The kendo-avatar component can accept only one of:\n icon, imageSrc or initials properties.\n ")}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(l7[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(l7[n]):""};case"rounded":return{toRemove:"k-rounded-".concat(u7[e]),toAdd:"none"!==n?"k-rounded-".concat(u7[n]):""}}}("avatar",e,this[e],n);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleFillModeAndThemeColorClasses",value:function(e,n){var a=this,o=this.element.nativeElement;Array.from(o.classList).filter(function(u){return u.startsWith("k-avatar-solid")||u.startsWith("k-avatar-outline")}).forEach(function(u){return a.renderer.removeClass(o,u)}),"none"!==e&&this.renderer.addClass(o,"k-avatar-".concat(e)),"none"!==e&&"none"!==n&&this.renderer.addClass(o,"k-avatar-".concat(e,"-").concat(n))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-avatar"]],hostVars:10,hostBindings:function(t,e){2&t&&(Qe("flex-basis",e.flexBasis)("width",e.avatarWidth)("height",e.avatarHeight),ue("k-avatar",e.hostClass)("k-avatar-bordered",e.borderClass))},inputs:{shape:"shape",size:"size",rounded:"rounded",themeColor:"themeColor",fillMode:"fillMode",fill:"fill",border:"border",iconClass:"iconClass",width:"width",height:"height",cssStyle:"cssStyle",initials:"initials",icon:"icon",imageSrc:"imageSrc"},ngContentSelectors:_a,decls:4,vars:4,consts:[[4,"ngIf"],[1,"k-avatar-image"],[3,"src","ngStyle"],[1,"k-avatar-text",3,"ngStyle"],[1,"k-avatar-icon",3,"ngStyle","ngClass"]],template:function(t,e){1&t&&(kn(),T(0,wIe,1,0,"ng-content",0),T(1,DIe,3,2,"ng-container",0),T(2,EIe,3,2,"ng-container",0),T(3,TIe,2,2,"ng-container",0)),2&t&&(y("ngIf",e.customAvatar),k(1),y("ngIf",e.imageSrc),k(1),y("ngIf",e.initials),k(1),y("ngIf",e.icon||e.iconClass))},directives:[qe,Vi,Nt],encapsulation:2}),i}(),WNe=function(){var i=function(){function r(t){var e=this;p(this,r),this.localizationService=t,this.hostClass=!0,this.orientation="vertical",this.width="285px",this.rtl=!1,jt(fl),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){e.rtl=n.rtl,e.direction=e.rtl?"rtl":"ltr"})}return v(r,[{key:"widthStyle",get:function(){return this.width}},{key:"vertical",get:function(){return"vertical"===this.orientation}},{key:"horizontal",get:function(){return"horizontal"===this.orientation}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-card"]],hostVars:11,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("width",e.widthStyle),ue("k-widget",e.hostClass)("k-card",e.hostClass)("k-card-vertical",e.vertical)("k-card-horizontal",e.horizontal))},inputs:{orientation:"orientation",width:"width"},features:[de([Y,{provide:Dt,useValue:"kendo.card.component"}])],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),$Ne=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-header"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-header",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),qNe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-body"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-body",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),XNe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-footer"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-footer",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),ZNe=function(){var i=function(){function r(){p(this,r),this.hostClass=!0,this.orientation="horizontal",this.layout="start",this.action=new O}return v(r,[{key:"stretchedClass",get:function(){return"stretched"===this.layout}},{key:"startClass",get:function(){return"start"===this.layout}},{key:"endClass",get:function(){return"end"===this.layout}},{key:"centerClass",get:function(){return"center"===this.layout}},{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}},{key:"actions",set:function(e){Array.isArray(e)?this.actionsArray=e:e instanceof $e&&(this.actionsTemplate=e)}},{key:"onClick",value:function(e){this.action.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-actions"]],hostVars:14,hostBindings:function(t,e){2&t&&ue("k-card-actions",e.hostClass)("k-card-actions-stretched",e.stretchedClass)("k-card-actions-start",e.startClass)("k-card-actions-end",e.endClass)("k-card-actions-center",e.centerClass)("k-card-actions-vertical",e.verticalClass)("k-card-actions-horizontal",e.horizontalClass)},inputs:{orientation:"orientation",layout:"layout",actions:"actions"},outputs:{action:"action"},ngContentSelectors:_a,decls:3,vars:3,consts:[[4,"ngIf"],["type","button","class","k-button",3,"k-primary","k-flat","click",4,"ngFor","ngForOf"],["type","button",1,"k-button",3,"click"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(kn(),T(0,AIe,1,0,"ng-content",0),T(1,MIe,2,1,"ng-container",0),T(2,OIe,1,1,null,0)),2&t&&(y("ngIf",!e.actionsArray&&!e.actionsTemplate),k(1),y("ngIf",e.actionsArray),k(1),y("ngIf",e.actionsTemplate))},directives:[qe,gn,En],encapsulation:2}),i}(),YNe=function(){var i=function(){function r(){p(this,r),this.hostClass=!0,this.orientation="horizontal"}return v(r,[{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardSeparator",""]],hostVars:8,hostBindings:function(t,e){2&t&&(Qe("color",e.color),ue("k-card-separator",e.hostClass)("k-separator-vertical",e.verticalClass)("k-separator-horizontal",e.horizontalClass))},inputs:{color:"color",orientation:"orientation"}}),i}(),QNe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardTitle",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-title",e.hostClass)}}),i}(),JNe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardSubtitle",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-subtitle",e.hostClass)}}),i}(),eFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardMedia",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-media",e.hostClass)}}),i}(),X7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoExpansionPanelTitleDirective",""]]}),i}(),iFe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),qI="k-hidden",aFe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.renderer=t,this.hostElement=e,this.ngZone=n,this.localizationService=a,this.builder=o,this.title="",this.subtitle="",this.disabled=!1,this.animation=!0,this.expandedChange=new O,this.action=new O,this.expand=new O,this.collapse=new O,this.hostClass=!0,this.tabindex=0,this.focused=!1,this.animationEnd=new O,this.subscriptions=new Je,this._expanded=!1,jt(fl),this.direction=a.rtl?"rtl":"ltr"}return v(r,[{key:"expanded",get:function(){return this._expanded},set:function(e){e!==this.expanded&&(this._expanded=e,this.expanded?this.removeContentHiddenClass():this.addContentHiddenClass())}},{key:"expandedClass",get:function(){return this.expanded&&!this.disabled}},{key:"focusClass",get:function(){return this.focused}},{key:"disabledClass",get:function(){return this.disabled}},{key:"onComponentBlur",value:function(){this.focused&&(this.focused=!1)}},{key:"onComponentFocus",value:function(){this.focused||(this.focused=!0)}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"title"),this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){this.initDomEvents(),this.expanded||this.renderer.addClass(this.content.nativeElement,qI)}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"initDomEvents",value:function(){var e=this;!this.hostElement||this.disabled||this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(e.hostElement.nativeElement,"keydown",e.keyDownHandler.bind(e)))})}},{key:"keyDownHandler",value:function(e){var n=this;e.keyCode!==J.Enter&&e.keyCode!==J.Space||DD(e.target,"k-expander")&&(e.preventDefault(),this.ngZone.run(function(){n.onHeaderAction()}))}},{key:"onHeaderClick",value:function(e){!wD(e.target)&&!this.disabled&&this.onHeaderAction()}},{key:"onHeaderAction",value:function(){this.focused=!0;var e=new iFe;if(e.action=this.expanded?"collapse":"expand",this.action.emit(e),!e.isDefaultPrevented()){if(this.setExpanded(!this.expanded),this.expanded&&this.removeContentHiddenClass(),this.animation)return void this.animateContent();this.expanded||this.addContentHiddenClass(),this.emitExpandCollapseEvent()}}},{key:"indicatorClasses",get:function(){return this.expanded?this.collapseIcon?this.collapseIcon:"k-icon k-i-arrow-chevron-up":this.expandIcon?this.expandIcon:"k-icon k-i-arrow-chevron-down"}},{key:"toggle",value:function(e){var n=this.expanded,a=Mi(e)?e:!n;if(a!==n){if(this.setExpanded(a),this.expanded&&this.removeContentHiddenClass(),this.animation)return void this.animateContent();this.expanded||this.addContentHiddenClass(),this.emitExpandCollapseEvent()}}},{key:"setExpanded",value:function(e){this._expanded=e,this.expandedChange.emit(e)}},{key:"animateContent",value:function(){var e=this,n="boolean"==typeof this.animation?200:this.animation,a=getComputedStyle(this.content.nativeElement).height,o=this.expanded?function tFe(i,r){return[Ft({overflow:"hidden",display:"block",height:0}),Ai("".concat(i,"ms ease-in"),Ft({height:"".concat(r)}))]}(n,a):function nFe(i,r){return[Ft({overflow:"hidden",height:"".concat(r)}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",height:0}))]}(n,a),s=this.createPlayer(o,this.content.nativeElement);this.animationEnd.pipe(It(1)).subscribe(function(){e.expanded||e.addContentHiddenClass(),e.emitExpandCollapseEvent()}),s.play()}},{key:"createPlayer",value:function(e,n){var a=this,s=this.builder.build(e).create(n);return s.onDone(function(){s&&(a.animationEnd.emit(),s.destroy(),s=null)}),s}},{key:"emitExpandCollapseEvent",value:function(){this[this.expanded?"expand":"collapse"].emit()}},{key:"addContentHiddenClass",value:function(){this.renderer.addClass(this.content.nativeElement,qI)}},{key:"removeContentHiddenClass",value:function(){this.renderer.removeClass(this.content.nativeElement,qI)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(be),m(Y),m(zp))},i.\u0275cmp=L({type:i,selectors:[["kendo-expansionpanel"]],contentQueries:function(t,e,n){var a;1&t&&he(n,X7,5),2&t&&P(a=B())&&(e.titleTemplate=a.first)},viewQuery:function(t,e){var n;1&t&&ge(IIe,7),2&t&&P(n=B())&&(e.content=n.first)},hostVars:11,hostBindings:function(t,e){1&t&&Q("blur",function(){return e.onComponentBlur()})("focus",function(){return e.onComponentFocus()}),2&t&&(ie("aria-disabled",e.disabledClass)("dir",e.direction)("tabindex",e.tabindex),ue("k-expander",e.hostClass)("k-expanded",e.expandedClass)("k-state-focus",e.focusClass)("k-state-disabled",e.disabledClass))},inputs:{title:"title",subtitle:"subtitle",disabled:"disabled",expanded:"expanded",expandIcon:"expandIcon",collapseIcon:"collapseIcon",animation:"animation"},outputs:{expandedChange:"expandedChange",action:"action",expand:"expand",collapse:"collapse"},exportAs:["kendoExpansionPanel"],features:[de([Y,{provide:Dt,useValue:"kendo.expansionpanel"}])],ngContentSelectors:_a,decls:9,vars:7,consts:[["role","button",3,"click"],[4,"ngIf"],[1,"k-expander-indicator"],[3,"ngClass"],[1,"k-expander-content-wrapper"],["content",""],[1,"k-expander-content"],["class","k-expander-title",4,"ngIf"],[1,"k-spacer"],["class","k-expander-sub-title",4,"ngIf"],[1,"k-expander-title"],[1,"k-expander-sub-title"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(kn(),A(0,"div",0),Q("click",function(a){return e.onHeaderClick(a)}),T(1,LIe,4,2,"ng-container",1),T(2,BIe,1,1,null,1),A(3,"span",2),z(4,"span",3),x()(),A(5,"div",4,5)(7,"div",6),dn(8),x()()),2&t&&(ue("k-expander-header",!0),ie("aria-expanded",e.expanded&&!e.disabled),k(1),y("ngIf",!e.titleTemplate),k(1),y("ngIf",e.titleTemplate),k(2),y("ngClass",e.indicatorClasses),k(3),ie("aria-hidden",!e.expanded))},directives:[qe,En,Nt],encapsulation:2}),i}(),XI=function(r){return r?+r:void 0},Z7=function(r,t){for(var e=0;e5&&void 0!==arguments[5]&&arguments[5],s=t.getBoundingClientRect(),l=(s.height-e.rows)/(n.height+e.rows),u=r.y-s.y,c=r.x-s.x,d=s.right-r.x,h=Math.floor((o?d:c)/(e.columns+n.width)),f=Math.min(h+1,a),g=Math.floor(u/(e.rows+n.height)),_=Math.min(g+1,l),C=Math.max(f,0),w=Math.max(_,0);return{row:w,col:C}},J7=["ew","ns","nwse"],e9=["ew","ns","nesw"],cg={ew:{width:9,overlapX:5},ns:{height:9,overlapY:5},nwse:{width:25,height:25,overlapX:18,overlapY:18},nesw:{width:25,height:25,overlapX:18,overlapY:18}},uFe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l,u,c){var d;return p(this,t),(d=r.call(this)).item=e,d.items=n,d.newIndex=a,d.oldIndex=o,d.newCol=s,d.oldCol=l,d.newRow=u,d.oldRow=c,d}return v(t)}(Is),cFe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u;return p(this,t),(u=r.call(this)).item=e,u.items=n,u.newRowSpan=a,u.oldRowSpan=o,u.newColSpan=s,u.oldColSpan=l,u}return v(t)}(Is),ZI=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.zone=t,this.renderer=e,this.localization=n,this.reorderable=new xi(null),this.resizable=new xi(null),this.reorder=new Ot,this.resize=new Ot,this.lastDragCursorOffset={x:0,y:0},this.localizationSubscription=this.localization.changes.subscribe(function(o){return a.rtl=o.rtl})}return v(r,[{key:"colStart",get:function(){return this.currentColStart}},{key:"rowStart",get:function(){return this.currentRowStart}},{key:"itemWrapper",get:function(){return this.draggedItemWrapper}},{key:"order",get:function(){return this.targetOrder}},{key:"ngOnDestroy",value:function(){this.localizationSubscription.unsubscribe()}},{key:"handlePress",value:function(e){var n=this,a=!!e.target.classList.contains("k-resize-handle"),o=FI(e.target,function(d){return d.classList.contains("k-tilelayout-item")},this.tileLayoutSettings.tileLayoutElement),s=FI(e.target,function(d){return d.classList.contains("k-tilelayout-item-header")},this.tileLayoutSettings.tileLayoutElement);if(o){this.zone.run(function(){n.draggedItemWrapper=o,n.draggedItem=n.tileLayoutSettings.items.find(function(d){return d.order===+o.style.order})});var l=!a&&this.reorderable.getValue()&&this.draggedItem.reorderable&&s;if(!l&&!a)return;e.preventDefault(),this.zone.run(function(){n.reordering=l,n.resizing=a});var u=this.draggedItemWrapper.getBoundingClientRect();if(this.zone.run(function(){n.offset={top:e.clientY-u.top,left:e.clientX-u.left,x:u.x,y:u.y,width:u.width,height:u.height},n.targetSize={rowSpan:n.draggedItem.rowSpan,colSpan:n.draggedItem.colSpan},n.cellSize={width:(u.width-(n.targetSize.colSpan-1)*n.tileLayoutSettings.gap.columns)/n.targetSize.colSpan,height:(u.height-(n.targetSize.rowSpan-1)*n.tileLayoutSettings.gap.rows)/n.targetSize.rowSpan},n.lastDragCursorOffset={x:e.clientX,y:e.clientY}}),Co(this.renderer,this.draggedItemWrapper,{left:u.left+window.pageXOffset+"px",top:u.top+window.pageYOffset+"px",width:u.width+"px",height:u.height+"px",zIndex:10}),Co(this.renderer,this.tileLayoutSettings.hintElement,{display:"flex",height:u.height-2+"px"}),this.zone.run(function(){return n.targetOrder=n.draggedItem.order}),Co(this.renderer,this.draggedItemWrapper,{position:"absolute"}),this.reorderable.getValue()&&!a){this.zone.run(function(){n.currentColStart=n.draggedItem.colStart,n.currentRowStart=n.draggedItem.rowStart});var c=this.draggedItem.elem.nativeElement.querySelector(".k-tilelayout-item-header");this.renderer.addClass(c,"k-cursor-grabbing")}else this.resizable&&a&&this.zone.run(function(){n.startingPoint={top:e.clientY,left:e.clientX},n.currentResizingColSpan=n.draggedItem.colSpan,n.currentResizingRowSpan=n.draggedItem.rowSpan,n.draggedItem.col&&(n.currentColStart=n.draggedItem.col.toString()),n.draggedItem.row&&(n.currentRowStart=n.draggedItem.row.toString()),n.direction=e.target.classList[1]})}}},{key:"handleDrag",value:function(e){this.draggedItemWrapper&&(this.reordering?this.reorderItems(e):this.resizing&&this.resizeItem(e),this.lastDragCursorOffset={x:e.clientX,y:e.clientY})}},{key:"handleRelease",value:function(e){var n=this;if(e.preventDefault(),this.reordering){var a=this.draggedItem.order,o=this.draggedItem.col,s=this.draggedItem.row,l=XI(this.currentColStart),u=XI(this.currentRowStart);if(Z7([this.targetOrder,l,u],[a,o,s])){var c=new uFe(this.draggedItem,this.tileLayoutSettings.items,this.targetOrder,a,XI(this.currentColStart),o,u,s);this.reorder.next(c),c.isDefaultPrevented()||(this.zone.run(this.targetOrder>a?function(){for(var w=function(R){n.tileLayoutSettings.items.find(function(N){return N.order===R}).order=R-1},E=a+1;E<=n.targetOrder;E++)w(E)}:function(){for(var w=function(R){n.tileLayoutSettings.items.find(function(N){return N.order===R}).order=R+1},E=n.targetOrder;E0?"right":l<0?"left":void 0,d=e.clientY-this.lastDragCursorOffset.y>0?"down":l<0?"up":void 0,h=this.draggedItemWrapper.getBoundingClientRect(),f=this.tileLayoutSettings.gap.columns,g=this.tileLayoutSettings.gap.rows;if(c&&this.draggedItem.col){var _=pf({x:"right"===c?h.right-f:h.left+f,y:e.clientY},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),w=this.getTargetCol(_.col,c);this.currentColStart=w.toString()}if(d&&this.draggedItem.row){var E=pf({x:e.clientX,y:"down"===d?h.bottom-g:h.top+g},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),R=this.getTargetRow(E.row,d);this.currentRowStart=R.toString()}}var N=sthis.targetOrder;this.zone.run(function(){return n.targetOrder=s}),N?this.tileLayoutSettings.tileLayoutElement.insertBefore(this.tileLayoutSettings.hintElement,this.tileLayoutSettings.tileLayoutElement.firstChild):V&&this.tileLayoutSettings.tileLayoutElement.appendChild(this.tileLayoutSettings.hintElement),Co(this.renderer,this.draggedItemWrapper,{top:e.pageY-this.offset.top+"px",left:e.pageX-this.offset.left+"px"})}},{key:"resizeItem",value:function(e){var n=this;Co(this.renderer,this.tileLayoutSettings.tileLayoutElement,{cursor:this.direction.split("k-cursor-")[1]});var a=this.rtl?this.offset.width+(this.offset.x-e.clientX):this.offset.width+(e.clientX-this.startingPoint.left),o=this.offset.height+(e.clientY-this.startingPoint.top),s=this.tileLayoutSettings.hintElement.getBoundingClientRect(),l=s.width,u=s.height,c=e.clientX-this.lastDragCursorOffset.x,d=e.clientY-this.lastDragCursorOffset.y,h=this.draggedItem.col?this.draggedItem.col:pf({x:this.rtl?s.right:s.x,y:s.y},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl).col,f=(this.tileLayoutSettings.columns-h)*(this.cellSize.width+this.tileLayoutSettings.gap.columns)+this.cellSize.width,g=function(){if(Co(n.renderer,n.draggedItemWrapper,{width:Math.min(Math.max(a,n.cellSize.width),f)+"px"}),n.rtl&&a>n.cellSize.width){var w=n.tileLayoutSettings.columns*(n.cellSize.width+n.tileLayoutSettings.gap.columns),E=n.tileLayoutSettings.tileLayoutElement.getBoundingClientRect().right-w;Co(n.renderer,n.draggedItemWrapper,{left:Math.max(e.clientX,E)+"px"})}var M=a-l,R=n.draggedItem.elem.nativeElement.getBoundingClientRect(),ee=pf({x:n.rtl?R.right:R.x,y:R.y},n.tileLayoutSettings.tileLayoutElement,n.tileLayoutSettings.gap,n.cellSize,n.tileLayoutSettings.columns,n.rtl),K=n.rtl?c>0:c<0;M>.3*n.cellSize.width&&(n.rtl?c<0:c>0)&&ee.col+n.currentResizingColSpan<=n.tileLayoutSettings.columns?n.currentResizingColSpan++:n.currentResizingColSpan>1&&K&&M<-.7*n.cellSize.width&&n.currentResizingColSpan--,Co(n.renderer,n.tileLayoutSettings.hintElement,{gridColumnEnd:"span ".concat(n.currentResizingColSpan)})};this.direction.indexOf("ew")>-1?g():(this.direction.indexOf("ns")>-1||g(),function(){Co(n.renderer,n.draggedItemWrapper,{height:Math.max(o,n.cellSize.height)+"px"});var w=o-u;w>.3*n.cellSize.height&&d>0?n.currentResizingRowSpan++:n.currentResizingRowSpan>1&&d<0&&w<-.7*n.cellSize.height&&n.currentResizingRowSpan--,Co(n.renderer,n.tileLayoutSettings.hintElement,{gridRowEnd:"span ".concat(n.currentResizingRowSpan)}),Co(n.renderer,n.tileLayoutSettings.hintElement,{height:"".concat(n.calculateHintHeight(),"px")})}())}},{key:"cleanUp",value:function(){if(this.targetOrder=this.currentResizingColSpan=this.currentColStart=this.currentResizingRowSpan=this.currentRowStart=void 0,this.resizing=this.reordering=!1,this.direction=null,this.draggedItemWrapper){var e=this.draggedItemWrapper.querySelector(".k-cursor-grab");e&&this.renderer.removeClass(e,"k-cursor-grabbing"),Co(this.renderer,this.draggedItemWrapper,{top:"",left:"",display:"",width:"",height:"",zIndex:"",position:""}),Co(this.renderer,this.tileLayoutSettings.hintElement,{display:"none",height:"auto"}),Co(this.renderer,this.tileLayoutSettings.tileLayoutElement,{cursor:"default"}),this.draggedItemWrapper=this.offset=this.draggedItem=this.resizing=this.reordering=this.currentResizingColSpan=this.currentResizingRowSpan=this.startingPoint=void 0,this.lastDragCursorOffset={x:0,y:0}}}},{key:"targetSpan",value:function(){var e=this.draggedItem.elem.nativeElement.getBoundingClientRect(),n=pf({x:this.rtl?e.right:e.x,y:e.y},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),a=pf({x:this.rtl?e.x+.3*this.cellSize.width:e.right-.3*this.cellSize.width,y:e.bottom-.3*this.cellSize.height},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl);return{targetColSpan:a.col-n.col+1,targetRowSpan:a.row-n.row+1}}},{key:"getTargetCol",value:function(e,n){return this.rtl?"left"===n?e-this.draggedItem.colSpan+1:e:"right"===n?e-this.draggedItem.colSpan+1:e}},{key:"getTargetRow",value:function(e,n){return"down"===n?e-this.draggedItem.rowSpan+1:e}},{key:"calculateHintHeight",value:function(){return this.currentResizingRowSpan*this.cellSize.height+(this.currentResizingRowSpan-1)*this.tileLayoutSettings.gap.rows-2}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Ee),oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),YI=function(){var i=function(){function r(t,e){p(this,r),this.hostEl=t,this.renderer=e,this.hostClass=!0}return v(r,[{key:"reorderable",set:function(e){var n=this.hostEl.nativeElement;e?(this.renderer.addClass(n,"k-touch-action-none"),this.renderer.removeClass(n,"k-touch-action-auto")):(this.renderer.addClass(n,"k-touch-action-auto"),this.renderer.removeClass(n,"k-touch-action-none"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item-header"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-tilelayout-item-header",e.hostClass)("k-card-header",e.hostClass)},inputs:{reorderable:"reorderable"},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),i9=function(){var i=function(){function r(t,e){p(this,r),this.el=t,this.renderer=e}return v(r,[{key:"ngOnInit",value:function(){this.sizeHandle()}},{key:"setHorizontalPosition",value:function(e){this.renderer.setStyle(e,this.rtl?"left":"right",-cg[this.resizeDirection].overlapX+"px")}},{key:"setBottom",value:function(e){this.renderer.setStyle(e,"bottom",-cg[this.resizeDirection].overlapY+"px")}},{key:"sizeHandle",value:function(){var e=this.el.nativeElement,n=cg[this.resizeDirection].width?"".concat(cg[this.resizeDirection].width,"px"):"100%",a=cg[this.resizeDirection].height?"".concat(cg[this.resizeDirection].height,"px"):"100%";this.renderer.setStyle(e,"width",n),this.renderer.setStyle(e,"height",a),"ew"===this.resizeDirection?this.setHorizontalPosition(e):("ns"===this.resizeDirection||this.setHorizontalPosition(e),this.setBottom(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoTileLayoutResizeHandle",""]],inputs:{resizeDirection:"resizeDirection",rtl:"rtl"}}),i}(),r9=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.elem=t,this.renderer=e,this.localization=n,this.draggingService=a,this.rowSpan=1,this.colSpan=1,this.reorderable=!0,this.resizable=!0,this.itemClass=!0,this.subs=new Je,this.subs.add(this.localization.changes.subscribe(function(s){o.rtl=s.rtl})),this.subs.add(this.draggingService.resizable.subscribe(function(s){o.resizeDirections=s&&o.resizable?o.rtl?e9:J7:void 0}))}return v(r,[{key:"order",get:function(){return this._order},set:function(e){this._order=e,this.renderer.setStyle(this.elem.nativeElement,"order","".concat(this._order))}},{key:"colEnd",get:function(){return"span ".concat(this.colSpan)}},{key:"rowEnd",get:function(){return"span ".concat(this.rowSpan)}},{key:"colStart",get:function(){return Mi(this.col)?this.col.toString():void 0}},{key:"rowStart",get:function(){return Mi(this.row)?this.row.toString():void 0}},{key:"reorderableHeader",get:function(){return this.reorderable&&this.draggingService.reorderable.getValue()}},{key:"ngAfterViewInit",value:function(){var e=this;this.subs.add(this.draggingService.reorderable.subscribe(function(n){var a;e.toggleCursorClass(n&&e.reorderable),(null===(a=e.headers)||void 0===a?void 0:a.first)&&(e.headers.first.reorderable=n&&e.reorderable)}))}},{key:"ngOnChanges",value:function(e){e.reorderable&&!e.reorderable.firstChange&&this.toggleCursorClass(e.reorderable.currentValue&&this.draggingService.reorderable.getValue()),e.resizable&&(this.resizeDirections=this.resizable&&this.draggingService.resizable.getValue()?this.rtl?e9:J7:void 0)}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"toggleCursorClass",value:function(e){var n=this.elem.nativeElement.querySelector(".k-tilelayout-item-header");!n||(e?this.renderer.addClass(n,"k-cursor-grab"):this.renderer.removeClass(n,"k-cursor-grab"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(Y),m(ZI))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,YI,4),2&t&&P(a=B())&&(e.headers=a)},hostVars:12,hostBindings:function(t,e){2&t&&(Qe("grid-column-end",e.colEnd)("grid-row-end",e.rowEnd)("grid-column-start",e.colStart)("grid-row-start",e.rowStart),ue("k-tilelayout-item",e.itemClass)("k-card",e.itemClass))},inputs:{title:"title",rowSpan:"rowSpan",colSpan:"colSpan",order:"order",col:"col",row:"row",reorderable:"reorderable",resizable:"resizable"},features:[Ie],ngContentSelectors:_a,decls:3,vars:2,consts:[[3,"reorderable",4,"ngIf"],[4,"ngIf"],[3,"reorderable"],[1,"k-card-title"],["kendoTileLayoutResizeHandle","",3,"class","rtl","resizeDirection",4,"ngFor","ngForOf"],["kendoTileLayoutResizeHandle","",3,"rtl","resizeDirection"]],template:function(t,e){1&t&&(kn(),T(0,GIe,3,2,"kendo-tilelayout-item-header",0),dn(1),T(2,UIe,2,1,"ng-container",1)),2&t&&(y("ngIf",e.title),k(2),y("ngIf",e.resizable))},directives:[YI,qe,gn,i9],encapsulation:2}),i}(),QI={column:"k-grid-flow-col",row:"k-grid-flow-row","column-dense":"k-grid-flow-col-dense","row-dense":"k-grid-flow-row-dense"},dFe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.elem=t,this.renderer=e,this.localization=n,this.draggingService=a,this.zone=o,this.columns=1,this.columnWidth="1fr",this.reorderable=!1,this.resizable=!1,this.rowHeight="1fr",this.autoFlow="column",this.reorder=new O,this.resize=new O,this.hostClass=!0,this.subs=new Je,this._gap={rows:16,columns:16},jt(fl)}return v(r,[{key:"gap",get:function(){return this._gap},set:function(e){this._gap="number"==typeof e?{rows:e,columns:e}:Object.assign(this._gap,e)}},{key:"gapStyle",get:function(){return"".concat(this.gap.rows,"px ").concat(this.gap.columns,"px")}},{key:"currentColStart",get:function(){return this.draggingService.colStart}},{key:"currentRowStart",get:function(){return this.draggingService.rowStart}},{key:"draggedItemWrapper",get:function(){return this.draggingService.itemWrapper}},{key:"targetOrder",get:function(){return this.draggingService.order}},{key:"ngOnInit",value:function(){var e=this;this.applyColStyling(),this.applyRowStyling(),this.draggingService.reorderable.next(this.reorderable),this.draggingService.resizable.next(this.resizable),ut(this.reorder)&&this.subs.add(this.draggingService.reorder.subscribe(function(n){return e.reorder.emit(n)})),ut(this.resize)&&this.subs.add(this.draggingService.resize.subscribe(function(n){return e.resize.emit(n)})),this.subs.add(this.draggingService.reorderable.subscribe(function(n){n&&!e.draggable&&e.initializeDraggable()})),this.subs.add(this.draggingService.resizable.subscribe(function(n){n&&!e.draggable&&e.initializeDraggable()})),this.subs.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngAfterViewInit",value:function(){var e=this;this.draggingService.tileLayoutSettings=this.draggingServiceConfig(),this.applyAutoFlow(null,QI[this.autoFlow]),this.items.changes.subscribe(function(){e.setItemsOrder(),e.draggingService.tileLayoutSettings.items=e.items.toArray()})}},{key:"ngAfterContentInit",value:function(){this.setItemsOrder()}},{key:"ngOnChanges",value:function(e){(e.columns||e.columnWidth)&&this.applyColStyling(),e.rowHeight&&this.applyRowStyling(),e.reorderable&&this.draggingService.reorderable.next(e.reorderable.currentValue),e.resizable&&this.draggingService.resizable.next(e.resizable.currentValue),(e.gap||e.autoFlow||e.columns)&&(this.draggingService.tileLayoutSettings=this.draggingServiceConfig(),e.autoFlow&&this.applyAutoFlow(QI[e.autoFlow.previousValue]||"",QI[e.autoFlow.currentValue]))}},{key:"ngOnDestroy",value:function(){this.draggable&&this.draggable.destroy(),this.subs.unsubscribe()}},{key:"handlePress",value:function(e){this.draggingService.handlePress(e.originalEvent)}},{key:"handleDrag",value:function(e){this.draggingService.handleDrag(e.originalEvent)}},{key:"handleRelease",value:function(e){this.draggingService.handleRelease(e.originalEvent)}},{key:"applyColStyling",value:function(){var e="number"==typeof this.columnWidth?"".concat(this.columnWidth,"px"):this.columnWidth,n="repeat(".concat(this.columns,", ").concat(e,")");this.renderer.setStyle(this.elem.nativeElement,"grid-template-columns",n)}},{key:"applyRowStyling",value:function(){var e="number"==typeof this.rowHeight?"".concat(this.rowHeight,"px"):this.rowHeight,n="".concat(e);this.renderer.setStyle(this.elem.nativeElement,"grid-auto-rows",n)}},{key:"draggingServiceConfig",value:function(){return{tileLayoutElement:this.elem?this.elem.nativeElement:void 0,hintElement:this.hint?this.hint.nativeElement:void 0,gap:this.gap,columns:this.columns,autoFlow:this.autoFlow,items:this.items?this.items.toArray():[]}}},{key:"initializeDraggable",value:function(){var e=this;this.draggable=new cI({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular(function(){return e.draggable.bindTo(e.elem.nativeElement)})}},{key:"applyAutoFlow",value:function(e,n){var a=this.elem.nativeElement;e&&this.renderer.removeClass(a,e),"none"!==this.autoFlow&&Mi(n)&&this.renderer.addClass(a,n)}},{key:"setItemsOrder",value:function(){this.items.forEach(function(e,n){Mi(e.order)||(e.order=n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(Y),m(ZI),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout"]],contentQueries:function(t,e,n){var a;1&t&&he(n,r9,4),2&t&&P(a=B())&&(e.items=a)},viewQuery:function(t,e){var n;1&t&&ge(zIe,5),2&t&&P(n=B())&&(e.hint=n.first)},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("gap",e.gapStyle)("padding",e.gapStyle),ue("k-widget",e.hostClass)("k-tilelayout",e.hostClass))},inputs:{columns:"columns",columnWidth:"columnWidth",gap:"gap",reorderable:"reorderable",resizable:"resizable",rowHeight:"rowHeight",autoFlow:"autoFlow"},outputs:{reorder:"reorder",resize:"resize"},features:[de([Y,ZI,{provide:Dt,useValue:"kendo.tilelayout.component"}]),Ie],ngContentSelectors:_a,decls:3,vars:14,consts:[[1,"k-layout-item-hint","k-layout-item-hint-reorder"],["hint",""]],template:function(t,e){1&t&&(kn(),dn(0),z(1,"div",0,1)),2&t&&(k(1),Qe("display","none")("order",e.targetOrder)("grid-column-end",null==e.draggedItemWrapper?null:e.draggedItemWrapper.style.gridColumnEnd)("grid-row-end",null==e.draggedItemWrapper?null:e.draggedItemWrapper.style.gridRowEnd)("grid-column-start",e.currentColStart)("grid-row-start",e.currentRowStart)("z-index","1"))},encapsulation:2}),i}(),hFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0,this.minHeight=0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item-body"]],hostVars:6,hostBindings:function(t,e){2&t&&(Qe("min-height",e.minHeight),ue("k-tilelayout-item-body",e.hostClass)("k-card-body",e.hostClass))},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),vFe=([].concat([jNe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),mFe=(Ae([WNe,$Ne,qNe,XNe,ZNe].concat([QNe,JNe,YNe,eFe])),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),yFe=[P7,BNe,GNe].concat([A7,M7,R7,x7]),kFe=([N7,F7].concat(Ae(yFe)),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),bFe=([].concat([aFe,X7]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}()),wFe=([].concat([rNe,$y,o7,p7,s7]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),EFe=([UI].concat([uNe,BI]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Ly]]}),i}()),AFe=[HNe,KNe].concat([B7,G7,V7]),xFe=([z7,H7,K7].concat(Ae(AFe)),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,FRe]]}),i}()),RFe=([].concat([T7,HI,zI,m7,D7,bNe,E7],[w7]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,yo]]}),i}()),IFe=([].concat([dFe,r9,YI,hFe,i9]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),JI={top:"start",middle:"center",bottom:"end",stretch:"stretch"},a9="k-justify-content",eN="k-align-items",GFe=function(){var i=function(){function r(t,e,n){p(this,r),this.renderer=t,this.element=e,this.localization=n,this.hostClass=!0,this.gap=0,this.orientation="horizontal",this._align={horizontal:"stretch",vertical:"stretch"},jt(fl)}return v(r,[{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}},{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"dir",get:function(){return this.direction}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign({},this._align,e),this.handleAlignClasses()}},{key:"ngAfterViewInit",value:function(){this.handleAlignClasses(),this.setGap()}},{key:"ngOnChanges",value:function(e){yn("gap",e)&&this.setGap(),yn("orientation",e)&&this.handleAlignClasses()}},{key:"handleAlignClasses",value:function(){var e=this.element.nativeElement;Mi(this.justifyClass)&&this.renderer.removeClass(e,this.justifyClass),Mi(this.alignClass)&&this.renderer.removeClass(e,this.alignClass),"horizontal"===this.orientation?(this.justifyClass="".concat(a9,"-").concat(this.align.horizontal),this.alignClass="".concat(eN,"-").concat(JI[this.align.vertical])):(this.justifyClass="".concat(a9,"-").concat(JI[this.align.vertical]),this.alignClass="".concat(eN,"-").concat(this.align.horizontal)),this.renderer.addClass(e,this.justifyClass),this.renderer.addClass(e,this.alignClass)}},{key:"setGap",value:function(){var e=function(r){return"number"==typeof r&&isFinite(r)}(this.gap)?"".concat(this.gap,"px"):this.gap;this.renderer.setStyle(this.element.nativeElement,"gap",e)}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-stacklayout"]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-stack-layout",e.hostClass)("k-hstack",e.horizontalClass)("k-vstack",e.verticalClass))},inputs:{align:"align",gap:"gap",orientation:"orientation"},exportAs:["kendoStackLayout"],features:[de([Y,{provide:Dt,useValue:"kendo.stacklayout"}]),Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),UFe=([].concat([GFe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),zFe=function(){var i=function(){function r(t,e,n){p(this,r),this.renderer=t,this.element=e,this.localization=n,this.hostClass=!0,this.gap=0,this._align={horizontal:"stretch",vertical:"stretch"},jt(fl)}return v(r,[{key:"dir",get:function(){return this.direction}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign({},this._align,e),this.handleAlignClasses()}},{key:"ngAfterViewInit",value:function(){this.handleAlignClasses(),this.handleGridTemplateStyling("rows"),this.handleGridTemplateStyling("cols"),this.setGap()}},{key:"ngOnChanges",value:function(e){yn("gap",e)&&this.setGap(),yn("rows",e)&&this.handleGridTemplateStyling("rows"),yn("cols",e)&&this.handleGridTemplateStyling("cols")}},{key:"handleAlignClasses",value:function(){var e=this.element.nativeElement;Mi(this.justifyClass)&&this.renderer.removeClass(e,this.justifyClass),Mi(this.alignClass)&&this.renderer.removeClass(e,this.alignClass),this.justifyClass="".concat("k-justify-items","-").concat(this.align.horizontal),this.alignClass="".concat(eN,"-").concat(JI[this.align.vertical]),this.renderer.addClass(e,this.justifyClass),this.renderer.addClass(e,this.alignClass)}},{key:"setGap",value:function(){var e=function(r){if("number"==typeof r||"string"==typeof r)return{cols:r,rows:r};var t={};return t.rows=r.rows?r.rows:0,t.cols=r.cols?r.cols:0,t}(this.gap),n=function(r){if(r.rows===r.cols)return"number"==typeof r.rows?"".concat(r.rows,"px"):r.rows;var t="".concat("number"==typeof r.rows?r.rows+"px":r.rows),e="".concat("number"==typeof r.cols?r.cols+"px":r.cols);return"".concat(t," ").concat(e)}(e);this.renderer.setStyle(this.element.nativeElement,"gap",n)}},{key:"handleGridTemplateStyling",value:function(e){if(Mi(this[e])){var n=function(r){var e,t=In(r);try{for(t.s();!(e=t.n()).done;){var n=e.value;if("number"!=typeof n&&"string"!=typeof n&&("object"!=typeof n||null===n))return!1}}catch(l){t.e(l)}finally{t.f()}return!0}(this[e]);if(!n&&xt()){var a="rows"===e?"GridLayoutRowSize":"GridLayoutColSize";throw new Error("The provided ".concat(e," value contains invalid elements. The array supports values of type number, string or ").concat(a,"."))}var o="rows"===e?"grid-template-rows":"grid-template-columns",s=function(r,t){var e=[];return r.forEach(function(n){if("number"==typeof n)e.push("".concat(n,"px"));else if("string"==typeof n)e.push(n);else if("rows"===t){var a=n.height;e.push(a?"number"==typeof a?"".concat(a,"px"):a:"0px")}else{var o=n.width;e.push(o?"number"==typeof o?"".concat(o,"px"):o:"0px")}}),e}(this[e],e);this.renderer.setStyle(this.element.nativeElement,o,s.join(" "))}}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-gridlayout"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-grid-layout",e.hostClass))},inputs:{rows:"rows",cols:"cols",gap:"gap",align:"align"},exportAs:["kendoGridLayout"],features:[de([Y,{provide:Dt,useValue:"kendo.gridlayout"}]),Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),HFe=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.element=e}return v(r,[{key:"ngOnInit",value:function(){this.setItemStyle()}},{key:"ngOnChanges",value:function(){this.setItemStyle()}},{key:"setItemStyle",value:function(){var e=this.row||"auto",n=this.col||"auto",a=this.rowSpan?"span ".concat(this.rowSpan):"auto",o=this.colSpan?"span ".concat(this.colSpan):"auto",s="".concat(e," / ").concat(n," / ").concat(a," / ").concat(o);this.renderer.setStyle(this.element.nativeElement,"grid-area",s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-gridlayout-item"]],inputs:{row:"row",col:"col",rowSpan:"rowSpan",colSpan:"colSpan"},features:[Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),jFe=([].concat([zFe,HFe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),WFe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[vFe,mFe,kFe,wFe,bFe,EFe,xFe,RFe,IFe,UFe,jFe]}),i}(),tN=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-loading-spinner"]],decls:1,vars:0,consts:[[1,"k-i-loading"]],template:function(t,e){1&t&&z(0,"div",0)},styles:[".k-i-loading[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;font-size:100px;color:#252830}"]}),i}(),Ad="arc",Xi="#000",Zn="bottom",Qt="center",pl="circle",xd="date",s9="12px sans-serif",c9=/\{\d+:?/,OD="height",iN="inside",Sn="left",Zi=Number.MAX_VALUE,Cr=-Number.MAX_VALUE,rN="none",aN="object",ID="outside",Gn="right",h9="roundedRect",oN="string",Fn="top",qo="value",Ln="#fff",ND="width",yt="x",Ct="y";function Jr(i){return Array.isArray(i)}function Za(i,r){for(var t=Jr(r)?r:[r],e=0;e1&&void 0!==arguments[1]?arguments[1]:0,t={top:0,right:0,bottom:0,left:0};return"number"==typeof i?t.top=t[Gn]=t[Zn]=t[Sn]=i:(t.top=i.top||r,t[Gn]=i[Gn]||r,t[Zn]=i[Zn]||r,t[Sn]=i[Sn]||r),t}var _9={compile:function(r){return r}},a2e=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){_9=t}},{key:"compile",value:function(t){return _9.compile(t)}}]),i}(),y9=a2e;function ea(){var r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.template?i.template=r=y9.compile(i.template):Ri(i.content)&&(r=i.content),r}var o2e=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,Xy={};function yc(i){if(Xy[i])return Xy[i];var r=[];return i.replace(o2e,function(t,e,n,a){r.push(Vt(e)?e:n||a)}),Xy[i]=function(t){for(var e=t,n=0;n1?e-1:0),a=1;a0?Math.ceil(r):Math.floor(r)}var mt=v(function i(){p(this,i)});function S9(i){var r=window.console;void 0!==r&&r.log&&r.log(i)}function Yy(i,r){return i.push.apply(i,r),i}var h2e={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"};function LD(i){for(var r=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],t="";i>0;)i>>6),r+=Ls(128|63&e)):e<65536?(r+=Ls(224|e>>>12),r+=Ls(128|e>>>6&63),r+=Ls(128|63&e)):e<1114111&&(r+=Ls(240|e>>>18),r+=Ls(128|e>>>12&63),r+=Ls(128|e>>>6&63),r+=Ls(128|63&e))}return r}(i);t>2,l=(3&n)<<4|a>>4,u=(15&a)<<2|o>>6,c=63&o;isNaN(a)?u=c=64:isNaN(o)&&(c=64),r=r+BD.charAt(s)+BD.charAt(l)+BD.charAt(u)+BD.charAt(c)}return r}function w9(i){return Vt((i.x||{}).location)?{x:i.x.location,y:i.y.location}:{x:i.pageX||i.clientX||0,y:i.pageY||i.clientY||0}}function D9(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.touch?i.touch.initialTouch:i.target}function mf(i){return""===i||null===i||"none"===i||"transparent"===i||!Vt(i)}function Zo(i){if(i)return i[i.length-1]}function VD(i,r,t){return Math.max(Math.min(i,t),r)}function UD(i,r){return i.length<2?i.slice():function e(n){if(n.length<=1)return n;var a=Math.floor(n.length/2),o=n.slice(0,a),s=n.slice(a);return function t(e,n){for(var a=[],o=0,s=0,l=0;o1&&void 0!==arguments[1]?arguments[1]:{};for(var t in r)for(var e=t.trim().split(" "),n=0;n0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return p(this,t),(e=r.call(this)).a=n,e.b=a,e.c=o,e.d=s,e.e=l,e.f=u,e}return v(t,[{key:"multiplyCopy",value:function(n){return new t(this.a*n.a+this.c*n.b,this.b*n.a+this.d*n.b,this.a*n.c+this.c*n.d,this.b*n.c+this.d*n.d,this.a*n.e+this.c*n.f+this.e,this.b*n.e+this.d*n.f+this.f)}},{key:"invert",value:function(){var n=this.a,a=this.b,o=this.c,s=this.d,l=this.e,u=this.f,c=n*s-a*o;return 0===c?null:new t(s/c,-a/c,-o/c,n/c,(o*u-s*l)/c,(a*l-n*u)/c)}},{key:"clone",value:function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)}},{key:"equals",value:function(n){return!!n&&this.a===n.a&&this.b===n.b&&this.c===n.c&&this.d===n.d&&this.e===n.e&&this.f===n.f}},{key:"round",value:function(n){return this.a=Ci(this.a,n),this.b=Ci(this.b,n),this.c=Ci(this.c,n),this.d=Ci(this.d,n),this.e=Ci(this.e,n),this.f=Ci(this.f,n),this}},{key:"toArray",value:function(n){var a=[this.a,this.b,this.c,this.d,this.e,this.f];if(Vt(n))for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:",";return this.toArray(n).join(a)}}],[{key:"translate",value:function(n,a){return new t(1,0,0,1,n,a)}},{key:"unit",value:function(){return new t(1,0,0,1,0,0)}},{key:"rotate",value:function(n,a,o){var s=new t;return s.a=Math.cos(lu(n)),s.b=Math.sin(lu(n)),s.c=-s.b,s.d=s.a,s.e=a-a*s.a+o*s.b||0,s.f=o-o*s.a-a*s.b||0,s}},{key:"scale",value:function(n,a){return new t(n,0,0,a,0,0)}}]),t}(mt);vN.IDENTITY=vN.unit();var ta=vN,_2e=/matrix\((.*)\)/;function M9(i){var r=getComputedStyle(i).transform;return"none"===r?ta.unit():function y2e(i){var r=i.match(_2e);if(null===r||2!==r.length)return ta.unit();var t=r[1].split(",").map(function(e){return parseFloat(e)});return qr(ta,Ae(t))}(r)}function R9(i){if(!i)return ta.unit();for(var r=M9(i),t=i.parentElement;t;){var e=M9(t);r=r.multiplyCopy(e),t=t.parentElement}return r.b=r.c=r.e=r.f=0,r}var k2e=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._size=e,n._length=0,n._map={},n}return v(t,[{key:"put",value:function(n,a){var o=this._map,s={key:n,value:a};o[n]=s,this._head?(this._tail.newer=s,s.older=this._tail,this._tail=s):this._head=this._tail=s,this._length>=this._size?(o[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++}},{key:"get",value:function(n){var a=this._map[n];if(a)return a===this._head&&a!==this._tail&&(this._head=a.newer,this._head.older=null),a!==this._tail&&(a.older&&(a.older.newer=a.newer,a.newer.older=a.older),a.older=this._tail,a.newer=null,this._tail.newer=a,this._tail=a),a.value}}]),t}(mt),O9=k2e,C2e=/\r?\n|\r|\t/g;function pN(i){return String(i).replace(C2e," ")}function I9(i){var r=[];for(var t in i)r.push(t+i[t]);return r.sort().join("")}function N9(i){for(var r=2166136261,t=0;t>>0}var gN,S2e={baselineMarkerSize:1};"undefined"!=typeof document&&((gN=document.createElement("div")).style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");var mN=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._cache=new O9(1e3),n.options=Object.assign({},S2e,e),n}return v(t,[{key:"measure",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==n)return{width:0,height:0,baseline:0};var s=I9(a),l=N9(n+s),u=this._cache.get(l);if(u)return u;var c={width:0,height:0,baseline:0},d=o.box||gN,h=this._baselineMarker().cloneNode(!1);for(var f in a){var g=a[f];void 0!==g&&(d.style[f]=g)}var _=!1!==o.normalizeText?pN(n):String(n);return d.textContent=_,d.appendChild(h),document.body.appendChild(d),_.length&&(c.width=d.offsetWidth-this.options.baselineMarkerSize,c.height=d.offsetHeight,c.baseline=h.offsetTop+this.options.baselineMarkerSize),c.width>0&&c.height>0&&this._cache.put(l,c),d.parentNode.removeChild(d),c}},{key:"_baselineMarker",value:function(){var n=document.createElement("div");return n.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",n}}]),t}(mt);mN.current=new mN;var L9=mN;function ek(i,r,t){return L9.current.measure(i,r,t)}var _f=Yu.append,tk=Yu.bindEvents,Te=Yu.defined,Rd=Yu.deg,nk=Yu.elementOffset,kc=Yu.elementSize,w2e=Yu.eventCoordinates,_l=Yu.eventElement,D2e=Yu.hashKey,Yi=Yu.last,Mt=Yu.limitValue,E2e=Yu.objectKey,br=Yu.rad,tt=Yu.round,ik=Yu.unbindEvents,qt=Yu.valueOrDefault,T2e=function(){function i(){p(this,i)}return v(i,null,[{key:"fetchFonts",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{depth:0},a=5;!t||n.depth>a||!document.fonts||Object.keys(t).forEach(function(o){var s=t[o];"dataSource"===o||"$"===o[0]||!s||("font"===o?e.push(s):"object"==typeof s&&(n.depth++,i.fetchFonts(s,e,n),n.depth--))})}},{key:"loadFonts",value:function(t,e){var n=[];if(t.length>0&&document.fonts){try{n=t.map(function(a){return document.fonts.load(a)})}catch(a){S9(a)}Promise.all(n).then(e,e)}else e()}},{key:"preloadFonts",value:function(t,e){var n=[];i.fetchFonts(t,n),i.loadFonts(n,e)}}]),i}(),A2e=T2e;function ze(i,r){var t=i.prototype;t.options=t.options?ne({},t.options,r):r}function _N(i){for(var r=Zi,t=Cr,e=0,n=i.length;e.5?h/(2-s-l):h/(s+l),s){case n:u=(a-o)/h+(a2&&void 0!==arguments[2]?arguments[2]:"0",e=i.toString(16);r>e.length;)e=t+e;return e}var yN=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this)).h=e,s.s=n,s.v=a,s.a=o,s}return v(t,[{key:"toRGB",value:function(){var s,l,u,n=this.h,a=this.s,o=this.v;if(0===a)s=l=u=o;else{n/=60;var c=Math.floor(n),d=n-c,h=o*(1-a),f=o*(1-a*d),g=o*(1-a*(1-d));switch(c){case 0:s=o,l=g,u=h;break;case 1:s=f,l=o,u=h;break;case 2:s=h,l=o,u=g;break;case 3:s=h,l=f,u=o;break;case 4:s=g,l=h,u=o;break;default:s=o,l=h,u=f}}return new Od(s,l,u,this.a)}},{key:"toHSL",value:function(){return this.toRGB().toHSL()}},{key:"toBytes",value:function(){return this.toRGB().toBytes()}}]),t}(KD),U9=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this)).h=e,s.s=n,s.l=a,s.a=o,s}return v(t,[{key:"toRGB",value:function(){var s,l,u,n=this.h/360,a=this.s/100,o=this.l/100;if(0===a)s=l=u=o;else{var c=o<.5?o*(1+a):o+a-o*a,d=2*o-c;s=kN(d,c,n+1/3),l=kN(d,c,n),u=kN(d,c,n-1/3)}return new Od(s,l,u,this.a)}},{key:"toHSV",value:function(){return this.toRGB().toHSV()}},{key:"toBytes",value:function(){return this.toRGB().toBytes()}}]),t}(KD);function kN(i,r,t){var e=t;return e<0&&(e+=1),e>1&&(e-=1),e<1/6?i+6*(r-i)*e:e<.5?r:e<2/3?i+(r-i)*(2/3-e)*6:i}function z9(i){return parseFloat(parseFloat(parseInt(i,16)/255).toFixed(3))}function Ps(i,r){var t,e;if(null==i||"none"===i)return null;if(i instanceof KD)return i;var n=i.toLowerCase();if(t=V9(n))return(n="transparent"===t[1]?new Od(1,1,1,0):Ps(vg[t[1]],r)).match=[t[1]],n;if((t=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?e=new Cc(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1):(t=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?e=new Cc(parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),1):(t=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?e=new Cc(parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),z9(t[4]+t[4])):(t=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?e=new Cc(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),z9(t[4])):(t=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(n))?e=new Cc(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),1):(t=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(n))?e=new Cc(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])):(t=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(n))?e=new Od(parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])/100,1):(t=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(n))&&(e=new Od(parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])/100,parseFloat(t[4]))),e)e.match=t;else if(!r)throw new Error("Cannot parse color: "+n);return e}var N2e=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;if(p(this,e),a=t.call(this),1===arguments.length)for(var o=e.formats,s=a.resolveColor(n),l=0;l255?255:a}},{key:"padDigit",value:function(a){return 1===a.length?"0"+a:a}},{key:"brightness",value:function(a){var o=Math.round;return this.r=o(this.normalizeByte(this.r*a)),this.g=o(this.normalizeByte(this.g*a)),this.b=o(this.normalizeByte(this.b*a)),this}},{key:"percBrightness",value:function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)}},{key:"isDark",value:function(){return this.percBrightness()<180}}],[{key:"fromBytes",value:function(a,o,s,l){return new Cc(a,o,s,null!=l?l:1)}},{key:"fromRGB",value:function(a,o,s,l){return new Od(a,o,s,null!=l?l:1)}},{key:"fromHSV",value:function(a,o,s,l){return new yN(a,o,s,null!=l?l:1)}},{key:"fromHSL",value:function(a,o,s,l){return new U9(a,o,s,null!=l?l:1)}}]),e}(mt);return i.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i.namedColors=vg,i}(),Bs=N2e,CN=function F2e(i){return new Bs(i).isDark()?Ln:Xi},H9={},L2e=function(){function i(r){p(this,i),this._index={},this._values=r?r.slice(0):[];for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};n.element=this,this.trigger("optionsChange",n)}},{key:"geometryChange",value:function(){this.trigger("geometryChange",{element:this})}},{key:"suspend",value:function(){return this._suspended=(this._suspended||0)+1,this}},{key:"resume",value:function(){return this._suspended=Math.max((this._suspended||0)-1,0),this}},{key:"_observerField",value:function(n,a){this[n]&&this[n].removeObserver(this),this[n]=a,a.addObserver(this)}}]),t}(mt),Gs=U2e;function z2e(i){return function(r){return this[i]!==r&&(this[i]=r,this.geometryChange()),this}}function H2e(i){return function(){return this[i]}}var WD=function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function K2e(i,r){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:n;return this.x*=n,this.y*=a,this.geometryChange(),this}},{key:"scaleCopy",value:function(n,a){return this.clone().scale(n,a)}},{key:"transform",value:function(n){var a=yf(n),o=this.x,s=this.y;return this.x=a.a*o+a.c*s+a.e,this.y=a.b*o+a.d*s+a.f,this.geometryChange(),this}},{key:"transformCopy",value:function(n){var a=this.clone();return n&&a.transform(n),a}},{key:"distanceTo",value:function(n){var a=this.x-n.x,o=this.y-n.y;return Math.sqrt(a*a+o*o)}},{key:"round",value:function(n){return this.x=Ci(this.x,n),this.y=Ci(this.y,n),this.geometryChange(),this}},{key:"toArray",value:function(n){var a=Vt(n);return[a?Ci(this.x,n):this.x,a?Ci(this.y,n):this.y]}},{key:"toString",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",o=this.x,s=this.y;return Vt(n)&&(o=Ci(o,n),s=Ci(s,n)),o+a+s}}],[{key:"create",value:function(n,a){if(Vt(n))return n instanceof t?n:1===arguments.length&&2===n.length?new t(n[0],n[1]):new t(n,a)}},{key:"min",value:function(){for(var n=hg,a=hg,o=0;o0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new kf,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(this,t),(e=r.call(this)).setOrigin(n),e.setSize(a),e.setCornerRadius(o),e}return v(t,[{key:"clone",value:function(){return new t(this.origin.clone(),this.size.clone())}},{key:"equals",value:function(n){return n&&n.origin.equals(this.origin)&&n.size.equals(this.size)}},{key:"setOrigin",value:function(n){return this._observerField("origin",Pe.create(n)),this.geometryChange(),this}},{key:"getOrigin",value:function(){return this.origin}},{key:"setCornerRadius",value:function(n){return this.cornerRadius=Array.isArray(n)?n:[n,n],this.geometryChange(),this}},{key:"getCornerRadius",value:function(){return this.cornerRadius}},{key:"setSize",value:function(n){return this._observerField("size",kf.create(n)),this.geometryChange(),this}},{key:"getSize",value:function(){return this.size}},{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}},{key:"topLeft",value:function(){return this.origin.clone()}},{key:"bottomRight",value:function(){return this.origin.clone().translate(this.width(),this.height())}},{key:"topRight",value:function(){return this.origin.clone().translate(this.width(),0)}},{key:"bottomLeft",value:function(){return this.origin.clone().translate(0,this.height())}},{key:"center",value:function(){return this.origin.clone().translate(this.width()/2,this.height()/2)}},{key:"bbox",value:function(n){var a=this.topLeft().transformCopy(n),o=this.topRight().transformCopy(n),s=this.bottomRight().transformCopy(n),l=this.bottomLeft().transformCopy(n);return t.fromPoints(a,o,s,l)}},{key:"transformCopy",value:function(n){return t.fromPoints(this.topLeft().transform(n),this.bottomRight().transform(n))}},{key:"expand",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return this.size.width+=2*n,this.size.height+=2*a,this.origin.translate(-n,-a),this}},{key:"expandCopy",value:function(n,a){return this.clone().expand(n,a)}},{key:"containsPoint",value:function(n){var a=this.origin,o=this.bottomRight();return!(n.x=this.x1&&n.x<=this.x2&&n.y>=this.y1&&n.y<=this.y2}},{key:"points",value:function(){return[new Ut(this.x1,this.y1),new Ut(this.x2,this.y1),new Ut(this.x2,this.y2),new Ut(this.x1,this.y2)]}},{key:"getHash",value:function(){return[this.x1,this.y1,this.x2,this.y2].join(",")}},{key:"overlaps",value:function(n){return!(n.y2=o*o&&w<=s*s}},{key:"getBBox",value:function(){var d,n=new et(Zi,Zi,Cr,Cr),a=tt(this.startAngle%360),o=tt((a+this.angle)%360),s=this.innerRadius,l=[0,90,180,270,a,o].sort(Y2e),u=l.indexOf(a),c=l.indexOf(o);d=a===o?l:u0&&void 0!==arguments[0]?arguments[0]:[];return p(this,t),(e=r.call(this)).length=0,e._splice(0,n.length,n),e}return v(t,[{key:"elements",value:function(n){return n?(this._splice(0,this.length,n),this._change(),this):this.slice(0)}},{key:"push",value:function(){var n=arguments,a=Q2e.apply(this,n);return this._add(n),a}},{key:"slice",value:function(){return W9.call(this)}},{key:"pop",value:function(){var n=this.length,a=J2e.apply(this);return n&&this._remove([a]),a}},{key:"splice",value:function(n,a){var o=W9.call(arguments,2),s=this._splice(n,a,o);return this._change(),s}},{key:"shift",value:function(){var n=this.length,a=tLe.apply(this);return n&&this._remove([a]),a}},{key:"unshift",value:function(){var n=arguments,a=nLe.apply(this,n);return this._add(n),a}},{key:"indexOf",value:function(n){for(var a=this.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:"";for(var o in p(this,t),(n=r.call(this)).prefix=a,e){var s=e[o];s=n._wrap(s,o),n[o]=s}return n}return v(t,[{key:"get",value:function(n){for(var a=n.split("."),o=this;a.length&&o;)o=o[a.shift()];return o}},{key:"set",value:function(n,a){this.get(n)!==a&&(this._set(n,this._wrap(a,n)),this.optionsChange({field:this.prefix+n,value:a}))}},{key:"_set",value:function(n,a){var o=n.indexOf(".")>=0,s=this,l=n;if(o){for(var u=l.split("."),c=this.prefix;u.length>1;){c+=(l=u.shift())+".";var d=s[l];d||((d=new t({},c)).addObserver(this),s[l]=d),s=d}l=u[0]}s._clear(l),s[l]=a}},{key:"_clear",value:function(n){var a=this[n];a&&a.removeObserver&&a.removeObserver(this)}},{key:"_wrap",value:function(n,a){var o=aLe.call(n),s=n;return null!==s&&Vt(s)&&"[object Object]"===o&&(!(n instanceof t)&&!(n instanceof mt)&&(s=new t(s,this.prefix+a+".")),s.addObserver(this)),s}}]),t}(Gs),X9=oLe,sLe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ta.unit();return p(this,t),(e=r.call(this))._matrix=n,e}return v(t,[{key:"clone",value:function(){return new t(this._matrix.clone())}},{key:"equals",value:function(n){return n&&n._matrix.equals(this._matrix)}},{key:"translate",value:function(n,a){return this._matrix=this._matrix.multiplyCopy(ta.translate(n,a)),this._optionsChange(),this}},{key:"scale",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=o;return s&&(s=Pe.create(s),this._matrix=this._matrix.multiplyCopy(ta.translate(s.x,s.y))),this._matrix=this._matrix.multiplyCopy(ta.scale(n,a)),s&&(this._matrix=this._matrix.multiplyCopy(ta.translate(-s.x,-s.y))),this._optionsChange(),this}},{key:"rotate",value:function(n,a){var o=Pe.create(a)||Pe.ZERO;return this._matrix=this._matrix.multiplyCopy(ta.rotate(n,o.x,o.y)),this._optionsChange(),this}},{key:"multiply",value:function(n){var a=yf(n);return this._matrix=this._matrix.multiplyCopy(a),this._optionsChange(),this}},{key:"matrix",value:function(n){return n?(this._matrix=n,this._optionsChange(),this):this._matrix}},{key:"_optionsChange",value:function(){this.optionsChange({field:"transform",value:this})}}]),t}(Gs),Z9=sLe;function Hn(i){return null===i?null:i instanceof Z9?i:new Z9(i)}var lLe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._initOptions(e),n}return v(t,[{key:"nodeType",get:function(){return"Rect"}},{key:"_initOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.clip,o=n.transform;o&&(n.transform=Hn(o)),a&&!a.id&&(a.id=PD()),this.options=new X9(n),this.options.addObserver(this)}},{key:"transform",value:function(n){if(!Vt(n))return this.options.get("transform");this.options.set("transform",Hn(n))}},{key:"parentTransform",value:function(){for(var a,n=this;n.parent;){var o=(n=n.parent).transform();o&&(a=o.matrix().multiplyCopy(a||ta.unit()))}if(a)return Hn(a)}},{key:"currentTransform",value:function(){var l,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parentTransform(),a=this.transform(),o=yf(a),s=yf(n);if(l=o&&s?s.multiplyCopy(o):o||s)return Hn(l)}},{key:"visible",value:function(n){return Vt(n)?(this.options.set("visible",n),this):!1!==this.options.get("visible")}},{key:"clip",value:function(n){var a=this.options;return Vt(n)?(n&&!n.id&&(n.id=PD()),a.set("clip",n),this):a.get("clip")}},{key:"opacity",value:function(n){return Vt(n)?(this.options.set("opacity",n),this):dN(this.options.get("opacity"),1)}},{key:"clippedBBox",value:function(n){var a=this._clippedBBox(n);if(a){var o=this.clip();return o?cn.intersect(a,o.bbox(n)):a}}},{key:"containsPoint",value:function(n,a){if(this.visible()){var o=this.currentTransform(a),s=n;return o&&(s=n.transformCopy(o.matrix().invert())),this._hasFill()&&this._containsPoint(s)||this._isOnPath&&this._hasStroke()&&this._isOnPath(s)}return!1}},{key:"_hasFill",value:function(){var n=this.options.fill;return n&&!mf(n.color)}},{key:"_hasStroke",value:function(){var n=this.options.stroke;return n&&n.width>0&&!mf(n.color)}},{key:"_clippedBBox",value:function(n){return this.bbox(n)}}]),t}(Gs),Id=lLe,ok=function(r){return function(t){b(n,t);var e=S(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"fill",value:function(o,s){var l=this.options;if(Vt(o)){if(o&&"Gradient"!==o.nodeType){var u={color:o};Vt(s)&&(u.opacity=s),l.set("fill",u)}else l.set("fill",o);return this}return l.get("fill")}},{key:"stroke",value:function(o,s,l){return Vt(o)?(this.options.set("stroke.color",o),Vt(s)&&this.options.set("stroke.width",s),Vt(l)&&this.options.set("stroke.opacity",l),this):this.options.get("stroke")}}]),n}(r)},dLe=ta.IDENTITY.toString(),qD=function(r){return function(t){b(n,t);var e=S(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"bbox",value:function(o){var u,s=yf(this.currentTransform(o)),l=s?s.toString():dLe;this._bboxCache&&this._matrixHash===l?u=this._bboxCache.clone():(u=this._bbox(s),this._bboxCache=u?u.clone():null,this._matrixHash=l);var c=this.options.get("stroke.width");return c&&u&&u.expand(c/2),u}},{key:"geometryChange",value:function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}}]),n}(r)};function Y9(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return 0===Ci(Math.abs(i-r),t)}function bN(i,r,t){return i0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this)).setCenter(n),e.radiusX=a.radiusX,e.radiusY=a.radiusY||a.radiusX,e.startAngle=a.startAngle,e.endAngle=a.endAngle,e.anticlockwise=a.anticlockwise||!1,e.xRotation=a.xRotation,e}return v(t,[{key:"clone",value:function(){return new t(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})}},{key:"setCenter",value:function(n){return this._observerField("center",Pe.create(n)),this.geometryChange(),this}},{key:"getCenter",value:function(){return this.center}},{key:"pointAt",value:function(n){var a=this.center,o=lu(n);return new Pe(a.x+this.radiusX*Math.cos(o),a.y+this.radiusY*Math.sin(o))}},{key:"curvePoints",value:function(){var h,n=this.startAngle,a=this.anticlockwise?-1:1,o=[this.pointAt(n)],s=this._arcInterval(),l=s.endAngle-s.startAngle,u=Math.ceil(l/45),c=l/u,d=n;this.xRotation&&(h=Hn().rotate(this.xRotation,this.center));for(var f=1;f<=u;f++){var g=d+a*c,_=this._intervalCurvePoints(d,g,h);o.push(_.cp1,_.cp2,_.p2),d=g}return o}},{key:"bbox",value:function(n){for(var a=this._arcInterval(),o=a.startAngle,s=a.endAngle,l=Q9(0,this.radiusX,this.radiusY,n),u=Md(l.x),c=Md(l.y),d=this.pointAt(s).transformCopy(n),h=e$(u,o),f=e$(c,o),g=this.pointAt(o).transformCopy(n),_=Pe.min(g,d),C=Pe.max(g,d);ha||o&&n===a)&&(a+=360),{startAngle:n,endAngle:a}}},{key:"_intervalCurvePoints",value:function(n,a,o){var s=this.pointAt(n),l=this.pointAt(a),u=this._derivativeAt(n),c=this._derivativeAt(a),d=(lu(a)-lu(n))/3,h=new Pe(s.x+d*u.x,s.y+d*u.y),f=new Pe(l.x-d*c.x,l.y-d*c.y);return o&&(s.transform(o),l.transform(o),h.transform(o),f.transform(o)),{p1:s,cp1:h,cp2:f,p2:l}}},{key:"_derivativeAt",value:function(n){var a=lu(n);return new Pe(-this.radiusX*Math.sin(a),this.radiusY*Math.cos(a))}},{key:"containsPoint",value:function(n){var C,a=this._arcInterval(),o=a.endAngle-a.startAngle,s=this.center,l=this.radiusX,u=this.radiusY,c=s.distanceTo(n),d=Math.atan2(n.y-s.y,n.x-s.x),h=l*u/Math.sqrt(XD(l,2)*XD(Math.sin(d),2)+XD(u,2)*XD(Math.cos(d),2)),f=this.pointAt(this.startAngle).round(10),g=this.pointAt(this.endAngle).round(10),_=function fLe(i,r,t,e){var n=r.x-i.x,a=e.x-t.x,o=r.y-i.y,s=e.y-t.y,l=i.x-t.x,u=i.y-t.y,c=n*s-a*o,d=(n*u-o*l)/c,h=(a*u-s*l)/c;if(d>=0&&d<=1&&h>=0&&h<=1)return new Pe(i.x+h*n,i.y+h*o)}(s,n.round(10),f,g);if(o<180)C=_&&bN(s.distanceTo(_),c)&&bN(c,h);else{var w=J9(s.x,s.y,l,u,n.x,n.y);360!==w&&(w=(360+w)%360);var E=a.startAngle<=w&&w<=a.endAngle;C=E&&bN(c,h)||!E&&(!_||_.equals(n))}return C}},{key:"_isOnPath",value:function(n,a){var o=this._arcInterval(),s=this.center,l=J9(s.x,s.y,this.radiusX,this.radiusY,n.x,n.y);return 360!==l&&(l=(360+l)%360),o.startAngle<=l&&l<=o.endAngle&&this.pointAt(l).distanceTo(n)<=a}}],[{key:"fromPoints",value:function(n,a,o,s,l,u,c){var d=function mLe(i){var r=i.x1,t=i.y1,e=i.x2,n=i.y2,a=i.rx,o=i.ry,s=i.largeArc,l=i.swipe,u=i.rotation,c=void 0===u?0:u,d=lu(c),h=Math.cos(d),f=Math.sin(d),g=h*(r-e)/2+f*(t-n)/2,_=-f*(r-e)/2+h*(t-n)/2,C=s!==l?1:-1,w=Math.pow(g,2),E=Math.pow(_,2),M=Math.pow(a,2),R=Math.pow(o,2),N=w/M+E/R;N>1&&(a*=N=Math.sqrt(w/M+E/R),M=Math.pow(a,2),o*=N,R=Math.pow(o,2));var V=C*Math.sqrt((M*R-M*E-R*w)/(M*E+R*w));isNaN(V)&&(V=0);var U=V*(a*_)/o,ee=o*g*-V/a,ve=h*U-f*ee+(r+e)/2,G=f*U+h*ee+(t+n)/2,I=(g-U)/a,K=(_-ee)/o,H=-(g+U)/a,se=-(_+ee)/o,me=(K>=0?1:-1)*Md(Math.acos(I/Math.sqrt(I*I+K*K))),ae=Ci((I*H+K*se)/(Math.sqrt(I*I+K*K)*Math.sqrt(H*H+se*se)),10),Ne=(I*se-K*H>=0?1:-1)*Md(Math.acos(ae));!l&&Ne>0&&(Ne-=360),l&&Ne<0&&(Ne+=360);var Ce=me+Ne,_e=Ce>=0?1:-1;return Ce=Math.abs(Ce)%360*_e,{center:new Pe(ve,G),startAngle:me,endAngle:Ce,radiusX:a,radiusY:o,xRotation:c}}({x1:n.x,y1:n.y,x2:a.x,y2:a.y,rx:o,ry:s,largeArc:l,swipe:u,rotation:c});return new t(d.center,{startAngle:d.startAngle,endAngle:d.endAngle,radiusX:d.radiusX,radiusY:d.radiusY,xRotation:d.xRotation,anticlockwise:0===u})}}]),t}(WD(Gs,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]));function J9(i,r,t,e,n,a){var o=Ci((n-i)/t,3),s=Ci((a-r)/e,3);return Ci(Md(Math.atan2(s,o)))}function e$(i,r){for(var t=i;t0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(this,t),(e=r.call(this)).real=n,e.img=a,e}return v(t,[{key:"add",value:function(n){return new t(Ci(this.real+n.real,10),Ci(this.img+n.img,10))}},{key:"addConstant",value:function(n){return new t(this.real+n,this.img)}},{key:"negate",value:function(){return new t(-this.real,-this.img)}},{key:"multiply",value:function(n){return new t(this.real*n.real-this.img*n.img,this.real*n.img+this.img*n.real)}},{key:"multiplyConstant",value:function(n){return new t(this.real*n,this.img*n)}},{key:"nthRoot",value:function(n){var a=Math.atan2(this.img,this.real),o=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),s=Math.pow(o,1/n);return new t(s*Math.cos(a/n),s*Math.sin(a/n))}},{key:"equals",value:function(n){return this.real===n.real&&this.img===n.img}},{key:"isReal",value:function(){return 0===this.img}}]),t}(mt),sk=_Le;function i$(i){return i<0?-1:1}function r$(i,r,t,e){if(0===i)return function yLe(i,r,t){var e=Math.sqrt(Math.pow(r,2)-4*i*t);return[(-r+e)/(2*i),(-r-e)/(2*i)]}(r,t,e);var u,c,d,h,f,g,_,n=(3*i*t-Math.pow(r,2))/(3*Math.pow(i,2)),a=(2*Math.pow(r,3)-9*i*r*t+27*Math.pow(i,2)*e)/(27*Math.pow(i,3)),o=Math.pow(n/3,3)+Math.pow(a/2,2),s=new sk(0,1),l=-r/(3*i);o<0?(u=new sk(-a/2,Math.sqrt(-o)).nthRoot(3),c=new sk(-a/2,-Math.sqrt(-o)).nthRoot(3)):(u=-a/2+Math.sqrt(o),u=new sk(i$(u)*Math.pow(Math.abs(u),1/3)),c=-a/2-Math.sqrt(o),c=new sk(i$(c)*Math.pow(Math.abs(c),1/3))),d=u.add(c),g=u.add(c).multiplyConstant(-.5),_=u.add(c.negate()).multiplyConstant(Math.sqrt(3)/2),h=g.add(s.multiply(_)),f=g.add(s.negate().multiply(_));var C=[];return d.isReal()&&C.push(Ci(d.real+l,10)),h.isReal()&&C.push(Ci(h.real+l,10)),f.isReal()&&C.push(Ci(f.real+l,10)),C}function YD(i,r,t,e,n){for(var s,a=n$(i,e),o=r$(a[0],a[1],a[2],a[3]-r[e]),l=0;l0?t.x-n:a-t.x)/(a-n)+o-t.y>=0}return e?1:0}function CLe(i){var r="_"+i;return function(t){return Vt(t)?(this._observerField(r,Pe.create(t)),this.geometryChange(),this):this[r]}}var QD=function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function bLe(i,r){for(var t=0;t1)&&(g=0);var _=Math.min(Math.max(h,f),1);return(_>1||_<0)&&(_=1),{min:g,max:_}}},{key:"_intersectionsTo",value:function(n,a){var o;return o=this.controlOut()&&n.controlIn()?function kLe(i,r,t){for(var a,e=n$(i,"x"),n=r$(e[0],e[1],e[2],e[3]-r.x),s=0,l=0;lr.y)&&((0===n[l]||1===n[l])&&t.bottomRight().x>r.x||00){var s=Zo(this.segments),l=new yl(o,a);this.suspend(),s.controlOut(n),this.resume(),this.segments.push(l)}return this}},{key:"arc",value:function(n,a,o,s,l){if(this.segments.length>0){var c=Zo(this.segments).anchor(),d=lu(n),h=new Pe(c.x-o*Math.cos(d),c.y-s*Math.sin(d)),f=new Sc(h,{startAngle:n,endAngle:a,radiusX:o,radiusY:s,anticlockwise:l});this._addArcSegments(f)}return this}},{key:"arcTo",value:function(n,a,o,s,l,u){if(this.segments.length>0){var d=Zo(this.segments).anchor(),h=Sc.fromPoints(d,Pe.create(n),a,o,s,l,u);this._addArcSegments(h)}return this}},{key:"_addArcSegments",value:function(n){this.suspend();for(var a=n.curvePoints(),o=1;o1){if(o[0]._isOnPathTo(o[1],n,l,"start"))return!0;for(var u=2;u<=s-2;u++)if(o[u-1]._isOnPathTo(o[u],n,l))return!0;if(o[s-2]._isOnPathTo(o[s-1],n,l,"end"))return!0}return!1}},{key:"_bbox",value:function(n){var s,a=this.segments,o=a.length;if(1===o){var l=a[0].anchor().transformCopy(n);s=new cn(l,kf.ZERO)}else if(o>0)for(var u=1;u0&&Zo(this.paths).lineTo(n,a),this}},{key:"curveTo",value:function(n,a,o){return this.paths.length>0&&Zo(this.paths).curveTo(n,a,o),this}},{key:"arc",value:function(n,a,o,s,l){return this.paths.length>0&&Zo(this.paths).arc(n,a,o,s,l),this}},{key:"arcTo",value:function(n,a,o,s,l,u){return this.paths.length>0&&Zo(this.paths).arcTo(n,a,o,s,l,u),this}},{key:"close",value:function(){return this.paths.length>0&&Zo(this.paths).close(),this}},{key:"_bbox",value:function(n){return JD(this.paths,!0,n)}},{key:"rawBBox",value:function(){return JD(this.paths,!1)}},{key:"_containsPoint",value:function(n){for(var a=this.paths,o=0;o2&&(l="l",c.splice(0,2))),d$[l])d$[l](i,{parameters:c,position:t,isRelative:u,previousCommand:e}),s&&"z"===s.toLowerCase()&&i.close();else if("m"!==l)throw new Error("Error while parsing SVG path. Unsupported command: "+l);e=l}),i}(new t(a),n)}}]),t}(ok(qD(Id))),SN=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createRing",value:function(n,a){var o=n.startAngle+180,s=n.angle+o;n.angle>0&&o===s&&(s+=.001);var l=new Pe(n.center.x,n.center.y),u=Math.max(n.radius,0),c=Math.max(n.innerRadius,0),d=new Sc(l,{startAngle:o,endAngle:s,radiusX:u,radiusY:u}),h=dt.fromArc(d,a).close();if(c){d.radiusX=d.radiusY=c;var f=d.pointAt(s);h.lineTo(f.x,f.y),h.arc(s,o,c,c,!0)}else h.lineTo(l.x,l.y);return h}}]),t}(mt);SN.current=new SN;var e0=SN,v$=Math.PI/2,NLe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(this,t),(e=r.call(this)).setCenter(n),e.setRadius(a),e}return v(t,[{key:"setCenter",value:function(n){return this._observerField("center",Pe.create(n)),this.geometryChange(),this}},{key:"getCenter",value:function(){return this.center}},{key:"equals",value:function(n){return n&&n.center.equals(this.center)&&n.radius===this.radius}},{key:"clone",value:function(){return new t(this.center.clone(),this.radius)}},{key:"pointAt",value:function(n){return this._pointAt(lu(n))}},{key:"bbox",value:function(n){for(var a=Q9(0,this.radius,this.radius,n),o=Pe.maxPoint(),s=Pe.minPoint(),l=0;l<4;l++){var u=this._pointAt(a.x+l*v$).transformCopy(n),c=this._pointAt(a.y+l*v$).transformCopy(n),d=new Pe(u.x,c.y);o=Pe.min(o,d),s=Pe.max(s,d)}return cn.fromPoints(o,s)}},{key:"_pointAt",value:function(n){var a=this.center,o=this.radius;return new Pe(a.x+o*Math.cos(n),a.y+o*Math.sin(n))}},{key:"containsPoint",value:function(n){var a=this.center,o=this.radius;return Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2)<=Math.pow(o,2)}},{key:"_isOnPath",value:function(n,a){var s=this.radius,l=this.center.distanceTo(n);return s-a<=l&&l<=s+a}}]),t}(WD(Gs,["radius"])),bo=NLe;function FLe(i){var r="_"+i;return function(t){return Vt(t)?(this._observerField(r,t),this.geometryChange(),this):this[r]}}function LLe(i,r){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:["geometry"],e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return LLe(e.prototype,t),e},GLe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new bo,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this,a)).geometry(n),Vt(e.options.stroke)||e.stroke("#000"),e}return v(t,[{key:"nodeType",get:function(){return"Circle"}},{key:"rawBBox",value:function(){return this._geometry.bbox()}},{key:"_bbox",value:function(n){return this._geometry.bbox(n)}},{key:"_containsPoint",value:function(n){return this.geometry().containsPoint(n)}},{key:"_isOnPath",value:function(n){return this.geometry()._isOnPath(n,this.options.stroke.width/2)}}]),t}(ok(qD(wN(Id)))),kl=GLe,DN=function(r,t){return function(e){b(a,e);var n=S(a);function a(){return p(this,a),n.apply(this,arguments)}return v(a,[{key:"traverse",value:function(s){for(var l=this[t],u=0;u=0&&(this.children.splice(a,1),n.parent=null,this.childrenChange("remove",[n],a)),this}},{key:"removeAt",value:function(n){if(0<=n&&na);l++);this.visual.insert(l,n)}},{key:"traverse",value:function(n){for(var a=this.children,o=a.length,s=0;s1?new t(n[0],n[1],n[2]):new t(n.offset,n.color,n.opacity)}}]),t}(function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function ZLe(i,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this)).stops=new qLe(e._createStops(n.stops)),e.stops.addObserver(Xe(e)),e._userSpace=n.userSpace,e.id=PD(),e}return v(t,[{key:"nodeType",get:function(){return"Gradient"}},{key:"userSpace",value:function(n){return Vt(n)?(this._userSpace=n,this.optionsChange(),this):this._userSpace}},{key:"_createStops",value:function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[],o=0;o=0&&this.stops.splice(a,1)}},{key:"optionsChange",value:function(n){this.trigger("optionsChange",{field:"gradient"+(n?"."+n.field:""),value:this})}},{key:"geometryChange",value:function(){this.optionsChange()}}]),t}(Gs),lk=tPe,iPe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).start(n.start||new Pe),e.end(n.end||new Pe(1,0)),e}return v(t)}(QD(lk,["start","end"])),t0=iPe,rPe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).center(n.center||new Pe),e._radius=Vt(n.radius)?n.radius:1,e._fallbackFill=n.fallbackFill,e}return v(t,[{key:"radius",value:function(n){return Vt(n)?(this._radius=n,this.geometryChange(),this):this._radius}},{key:"fallbackFill",value:function(n){return Vt(n)?(this._fallbackFill=n,this.optionsChange(),this):this._fallbackFill}}]),t}(QD(lk,["center"])),n0=rPe,uk="radial",sPe={glass:{type:"linear",rotation:0,stops:[{offset:0,color:Ln,opacity:0},{offset:.25,color:Ln,opacity:.3},{offset:1,color:Ln,opacity:0}]},sharpBevel:{type:uk,stops:[{offset:0,color:Ln,opacity:.55},{offset:.65,color:Ln,opacity:0},{offset:.95,color:Ln,opacity:.25}]},roundedBevel:{type:uk,stops:[{offset:.33,color:Ln,opacity:.06},{offset:.83,color:Ln,opacity:.2},{offset:.95,color:Ln,opacity:0}]},roundedGlass:{type:uk,supportVML:!1,stops:[{offset:0,color:Ln,opacity:0},{offset:.5,color:Ln,opacity:.3},{offset:.99,color:Ln,opacity:0}]},sharpGlass:{type:uk,supportVML:!1,stops:[{offset:0,color:Ln,opacity:.2},{offset:.15,color:Ln,opacity:.15},{offset:.17,color:Ln,opacity:.35},{offset:.85,color:Ln,opacity:.05},{offset:.87,color:Ln,opacity:.15},{offset:.99,color:Ln,opacity:0}]},bubbleShadow:{type:uk,center:[.5,.5],radius:.5}};function lPe(i,r){if(i.x1===r.x1&&i.y1===r.y1&&i.x2===r.x2&&i.y2===r.y2)return r;var t=Math.min(i.x1,r.x1),e=Math.max(i.x1,r.x1),n=Math.min(i.x2,r.x2),a=Math.max(i.x2,r.x2),o=Math.min(i.y1,r.y1),s=Math.max(i.y1,r.y1),l=Math.min(i.y2,r.y2),u=Math.max(i.y2,r.y2),c=[];return c[0]=new et(e,o,n,s),c[1]=new et(t,s,e,l),c[2]=new et(n,s,a,l),c[3]=new et(e,l,n,u),i.x1===t&&i.y1===o||r.x1===t&&r.y1===o?(c[4]=new et(t,o,e,s),c[5]=new et(n,l,a,u)):(c[4]=new et(n,o,a,s),c[5]=new et(t,l,e,u)),Xo(c,function(d){return d.height()>0&&d.width()>0})[0]}var k$=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=(n=r.call(this,e)).options;return a.width=parseInt(a.width,10),a.height=parseInt(a.height,10),n.gradients={},n}return v(t,[{key:"reflow",value:function(){var n=this.options,a=this.children,o=new et(0,0,n.width,n.height);this.box=o.unpad(n.margin);for(var s=0;sc&&(h.push({groupElements:w,groupSize:f,groupElementsSize:g}),C=Math.max(C,g),_+=u+f,f=0,g=0,w=[]),f=Math.max(f,R[s]),g>0&&(g+=l),g+=R[o],w.push(M)}return h.push({groupElements:w,groupSize:f,groupElementsSize:g}),{groups:h,groupsSize:_+=f,maxGroupElementsSize:C=Math.max(C,g)}}},{key:"elementSize",value:function(n){return{width:n.box.width(),height:n.box.height()}}},{key:"createVisual",value:function(){}}]),t}(Kn);ze(C$,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var AN=C$,dPe="12px sans-serif",fPe=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Pe,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(this,t),(n=r.call(this,o)).content(e),n.position(a),n.options.font||(n.options.font=dPe),Vt(n.options.fill)||n.fill("#000"),n}return v(t,[{key:"nodeType",get:function(){return"Text"}},{key:"content",value:function(n){return Vt(n)?(this.options.set("content",n),this):this.options.get("content")}},{key:"measure",value:function(){return ek(this.content(),{font:this.options.get("font")})}},{key:"rect",value:function(){var n=this.measure(),a=this.position().clone();return new cn(a,[n.width,n.height])}},{key:"bbox",value:function(n){var a=yf(this.currentTransform(n));return this.rect().bbox(a)}},{key:"rawBBox",value:function(){return this.rect().bbox()}},{key:"_containsPoint",value:function(n){return this.rect().containsPoint(n)}}]),t}(ok(QD(Id,["position"]))),xN=fPe,vPe=xN,b$=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).content=e,a.reflow(new et),a}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=a.size=ek(this.content,{font:a.font});this.baseline=o.baseline,this.box=new et(n.x1,n.y1,n.x1+o.width,n.y1+o.height)}},{key:"createVisual",value:function(){var n=this.options,a=n.font,o=n.color,s=n.opacity,l=n.cursor;this.visual=new vPe(this.content,this.box.toRect().topLeft(),{font:a,fill:{color:o,opacity:s},cursor:l})}}]),t}(Kn);ze(b$,{font:s9,color:Xi});var pPe=b$;function r0(i){var r=i.origin,t=i.bottomRight();return new et(r.x,r.y,t.x,t.y)}var gPe=/\n/m,mPe=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).content=e,o.data=a,o._initContainer(),!1!==o.options._autoReflow&&o.reflow(new et),o}return v(t,[{key:"_initContainer",value:function(){var n=this.options,a=String(this.content).split(gPe),o=new AN({vertical:!0,align:n.align,wrap:!1}),s=ne({},n,{opacity:1,animation:null});this.container=o,this.append(o);for(var l=0;l1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{};p(this,i),this._intlService=t.intlService,this.sender=t.sender||r,this.format=new SPe(t.intlService),this.chart=r,this.rtl=Boolean(t.rtl)}return v(i,[{key:"intl",get:function(){return this._intlService||M$.implementation},set:function(t){this._intlService=t,this.format.intl=t}},{key:"notify",value:function(t,e){this.chart&&this.chart.trigger(t,e)}},{key:"isPannable",value:function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t}}]),i}(),MN=wPe,DPe=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){RN=t}},{key:"create",value:function(t,e){if(RN)return RN.create(t,e)}}]),i}(),ON=DPe;function R$(i,r){var t=i.tickX,e=i.tickY,n=i.position,a=new dt({stroke:{width:r.width,color:r.color}});return i.vertical?a.moveTo(t,n).lineTo(t+r.size,n):a.moveTo(n,e).lineTo(n,e+r.size),Ns(a),a}function O$(i,r){var t=i.lineStart,e=i.lineEnd,n=i.position,a=new dt({stroke:{width:r.width,color:r.color,dashType:r.dashType}});return i.vertical?a.moveTo(t,n).lineTo(e,n):a.moveTo(n,t).lineTo(n,e),Ns(a),a}var I$=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new MN;return p(this,t),(n=r.call(this,e)).chartService=a,n.options.visible||(n.options=ne({},n.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),n.options.minorTicks=ne({},{color:n.options.line.color,width:n.options.line.width,visible:n.options.minorTickType!==rN},n.options.minorTicks,{size:n.options.minorTickSize,align:n.options.minorTickType}),n.options.majorTicks=ne({},{color:n.options.line.color,width:n.options.line.width,visible:n.options.majorTickType!==rN},n.options.majorTicks,{size:n.options.majorTickSize,align:n.options.majorTickType}),n.initFields(),n.options._deferLabels||n.createLabels(),n.createTitle(),n.createNotes(),n}return v(t,[{key:"initFields",value:function(){}},{key:"labelsRange",value:function(){return{min:this.options.labels.skip,max:this.labelsCount()}}},{key:"normalizeLabelRotation",value:function(n){var a=n.rotation;gl(a)&&(n.alignRotation=a.align,n.rotation=a.angle)}},{key:"createLabels",value:function(){var n=this.options,o=ne({},n.labels,{align:n.vertical?Gn:Qt,zIndex:n.zIndex}),s=Math.max(1,o.step);if(this.clearLabels(),o.visible){this.normalizeLabelRotation(o),"auto"===o.rotation&&(o.rotation=0,n.autoRotateLabels=!0);for(var l=this.labelsRange(),u=l.min;u0&&a.visible){var s=new dt({stroke:{width:a.width,color:a.color,dashType:a.dashType}});s.moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),n._alignLines&&Ns(s);var l=this._lineGroup=new sn;l.append(s),this.visual.append(l),this.createTicks(l)}}},{key:"getActualTickSize",value:function(){var n=this.options,a=0;return n.majorTicks.visible&&n.minorTicks.visible?a=Math.max(n.majorTicks.size,n.minorTicks.size):n.majorTicks.visible?a=n.majorTicks.size:n.minorTicks.visible&&(a=n.minorTicks.size),a}},{key:"createBackground",value:function(){var o=this.options.background;o&&(this._backgroundPath=dt.fromRect(this.box.toRect(),{fill:{color:o},stroke:null}),this.visual.append(this._backgroundPath))}},{key:"createPlotBands",value:function(){var n=this,a=this.options,o=a.plotBands||[],s=a.vertical,l=this.plotArea;if(0!==o.length){for(var u=this._plotbandGroup=new sn({zIndex:-1}),c=Xo(this.pane.axes,function(M){return M.options.vertical!==n.options.vertical})[0],d=0;d3&&void 0!==arguments[3]?arguments[3]:o,l=this.options,u=l.vertical,c=this.lineBox(),d=this.getActualTickSize()+l.margin;if(u){var f=c.x2;a?(f+=d,n.options.rotationOrigin=Sn):(f-=d+n.box.width(),n.options.rotationOrigin=Gn),h=n.box.move(f,o)}else{var g=c.y1;a?(g-=d+n.box.height(),n.options.rotationOrigin=Zn):(g+=d,n.options.rotationOrigin=Fn),h=new et(o,g,s,g+n.box.height())}n.reflow(h)}},{key:"autoRotateLabelAngle",value:function(n,a){return n.width()a?-90:-45}},{key:"autoRotateLabels",value:function(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(var n=this.getMajorTickPositions(),a=this.labels,o=Math.min(a.length,n.length-1),s=0,l=0;l0&&(!Te(u.max)||s<=u.max))return null;if(a0||ss&&l>0&&(h=Mt(a,o,s),d=Mt(a-c,o,s-c)),{min:d,max:h}}},{key:"valueRange",value:function(){return{min:this.seriesMin,max:this.seriesMax}}},{key:"lineDir",value:function(){var n=this.options;return(n.vertical?-1:1)*(n.reverse?-1:1)}},{key:"lineInfo",value:function(){var n=this.options.vertical,a=this.lineBox(),o=n?a.height():a.width(),s=n?Ct:yt,l=this.lineDir(),c=s+(1===l?1:2).toString();return{axis:s,axisOrigin:c,axisDir:l,lineBox:a,lineSize:o,lineStart:a[c]}}},{key:"pointOffset",value:function(n){var a=this.lineInfo(),o=a.axis,l=a.axisOrigin,u=a.lineBox;return(a.axisDir>0?n[o]-u[l]:u[l]-n[o])/a.lineSize}},{key:"scaleToDelta",value:function(n,a){var s=Mt(n,-.999,.999);return s>0?a*Math.min(1,s):a-a/(1+s)}},{key:"labelsBetweenTicks",value:function(){return!this.options.justified}},{key:"prepareUserOptions",value:function(){}}]),t}(Kn);ze(I$,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:Xi,visible:!0},title:{visible:!0,position:Qt},majorTicks:{align:ID,size:4,skip:0,step:1},minorTicks:{align:ID,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:ID,minorTickType:rN,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:Xi,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var ck=I$,a0="milliseconds",IN="seconds",NN="minutes",dk="hours",cu="days",hk="weeks",Sf="months",wc="years",gg=6e4,o0=60*gg,Dc=24*o0,LN=7*Dc,PN=31*Dc,BN=365*Dc,du={years:BN,months:PN,weeks:LN,days:Dc,hours:o0,minutes:gg,seconds:1e3,milliseconds:1};function GN(i,r){return i.getTime()-r-(i.getTimezoneOffset()-r.getTimezoneOffset())*gg}function zr(i,r){return new Date(i.getTime()+r)}function ni(i){var r;return i instanceof Date?r=i:i&&(r=new Date(i)),r}function s0(i,r){return 0===r&&23===i.getHours()&&(i.setHours(i.getHours()+2),!0)}function Ya(i,r,t,e){var n=i;if(i){var a=ni(i),o=a.getHours();t===wc?s0(n=new Date(a.getFullYear()+r,0,1),0):t===Sf?s0(n=new Date(a.getFullYear(),a.getMonth()+r,1),o):t===hk?(n=Ya(function TPe(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=0,e=i.getDay();if(!isNaN(e))for(;e!==r;)0===e?e=6:e--,t++;return zr(i,-t*Dc)}(a,e),7*r,cu),s0(n,o)):t===cu?s0(n=new Date(a.getFullYear(),a.getMonth(),a.getDate()+r),o):t===dk?n=function APe(i,r){var t=new Date(i);t.setMinutes(0,0,0);var e=(i.getTimezoneOffset()-t.getTimezoneOffset())*gg;return zr(t,e+r*o0)}(a,r):t===NN?(n=zr(a,r*gg)).getSeconds()>0&&n.setSeconds(0):t===IN?n=zr(a,1e3*r):t===a0&&(n=zr(a,r)),t!==a0&&n.getMilliseconds()>0&&n.setMilliseconds(0)}return n}function VN(i,r,t){return Ya(ni(i),0,r,t)}function N$(i,r,t){var e=ni(i);return e&&VN(e,r,t).getTime()===e.getTime()?e:Ya(e,1,r,t)}function wf(i,r){return i&&r?i.getTime()-r.getTime():-1}function hu(i,r){return i.getTime()-r}function ii(i){if(Jr(i)){for(var r=[],t=0;t0){var o=this.options.vertical?Ct:yt,s=n[o+1],l=n[o+2],u=a[0],c=Yi(a);(u.box[o+1]>l||u.box[o+2]l||c.box[o+2]=0;)c--;return n.slice(u,c+1)}},{key:"lineInfo",value:function(){var n=this.options,a=n.vertical,o=n.reverse,s=this.lineBox(),l=a?s.height():s.width(),u=a?Ct:yt,c=o?-1:1,h=u+(1===c?1:2).toString();return{axis:u,axisOrigin:h,axisDir:c,lineBox:s,lineSize:l,lineStart:s[h]}}},{key:"lineDir",value:function(){return this.options.reverse?-1:1}},{key:"getSlot",value:function(n,a,o){var s=this.options,l=s.reverse,u=s.justified,c=this.scaleOptions(),d=c.scale,h=c.box,f=c.min,g=this.lineInfo(),_=g.axis,C=g.lineStart,w=h.clone(),E=!Te(a),M=qt(n,0),R=qt(a,M);R=Math.max(R-1,M);var N=C+(M-f)*d,V=C+((R=Math.max(M,R))+1-f)*d;return E&&u&&(V=N),o&&(N=Mt(N,h[_+1],h[_+2]),V=Mt(V,h[_+1],h[_+2])),w[_+1]=l?V:N,w[_+2]=l?N:V,w}},{key:"limitSlot",value:function(n){var o=this.options.vertical?Ct:yt,s=this.lineBox(),l=n.clone();return l[o+1]=Mt(n[o+1],s[o+1],s[o+2]),l[o+2]=Mt(n[o+2],s[o+1],s[o+2]),l}},{key:"slot",value:function(n,a,o){var s=Math.floor(this.options.min||0),l=n,u=a;return"string"==typeof l?l=this.categoryIndex(l):un(l)&&(l-=s),"string"==typeof u?u=this.categoryIndex(u):un(u)&&(u-=s),$(q(t.prototype),"slot",this).call(this,l,u,o)}},{key:"pointCategoryIndex",value:function(n){var a=this.options,o=a.reverse,s=a.justified,u=a.vertical?Ct:yt,c=this.scaleOptions(),h=c.box,C=h[u+1],E=n[u];if(Eh[u+2])return null;var M=(o?c.max:c.min)+(E-C)/c.scale,R=M%1;return s?M=Math.round(M):0===R&&M>0&&M--,Math.floor(M)}},{key:"getCategory",value:function(n){var a=this.pointCategoryIndex(n);return null===a?null:this.options.categories[a]}},{key:"categoryIndex",value:function(n){return this.totalIndex(n)-Math.floor(this.options.min||0)}},{key:"categoryAt",value:function(n,a){var o=this.options;return(a?o.srcCategories:o.categories)[n]}},{key:"categoriesCount",value:function(){return(this.options.categories||[]).length}},{key:"translateRange",value:function(n){var a=this.options,o=this.lineBox(),s=a.vertical?o.height():o.width(),l=a.categories.length,c=tt(n/(s/l),10);return{min:c,max:l+c}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),s=this.totalRangeIndices(),u=this.scaleToDelta(n,s.max-s.min),h=s.min+o*u,f=s.max-(1-o)*u;return f-h<.1&&(f=h+.1),{min:h,max:f}}},{key:"zoomRange",value:function(n,a){var o=this.totalRange(),s=o.min,l=o.max,u=this.scaleRange(n,a);return{min:Mt(u.min,s,l),max:Mt(u.max,s,l)}}},{key:"labelsCount",value:function(){var n=this.labelsRange();return n.max-n.min}},{key:"labelsRange",value:function(){var n=this.options,a=n.justified,o=n.labels,s=this.totalRangeIndices(!0),l=s.min,u=s.max,c=Math.floor(l);return a?(l=Math.ceil(l),u=Math.floor(u)):(l=Math.floor(l),u=Math.ceil(u)),{min:(l>o.skip?o.skip+o.step*Math.ceil((l-o.skip)/o.step):o.skip)-c,max:(n.categories.length?u+(a?1:0):0)-c}}},{key:"createAxisLabel",value:function(n,a,o){var s=this.options,l=s.dataItems?s.dataItems[n]:null,u=qt(s.categories[n],"");o.dataItem=l;var c=this.axisLabelText(u,a,o);return new bf(u,c,n,l,a)}},{key:"shouldRenderNote",value:function(n){var a=this.totalRangeIndices();return Math.floor(a.min)<=n&&n<=Math.ceil(a.max)}},{key:"noteSlot",value:function(n){var o=n-Math.floor(this.options.min||0);return this.getSlot(o)}},{key:"arrangeNotes",value:function(){$(q(t.prototype),"arrangeNotes",this).call(this),this.hideOutOfRangeNotes()}},{key:"hideOutOfRangeNotes",value:function(){var n=this.notes,a=this.box;if(n&&n.length)for(var o=this.options.vertical?Ct:yt,s=a[o+1],l=a[o+2],u=0;u=.01)return{min:M,max:R}}},{key:"valueRange",value:function(){return this.range()}},{key:"totalIndex",value:function(n){var a=this.options,o=this._categoriesMap?this._categoriesMap.get(n):function MPe(i,r){if(i instanceof Date){for(var t=r.length,e=0;e=o;){h=h||a[u].slice(0);do{g=h.shift()}while(g&&r===u&&go&&(f=Math.ceil(d/o));break}u=Tc[l++]||Yi(Tc),d=n/du[u],h=null}}i.baseUnitStep=f,i.baseUnit=u}var K$=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"clone",value:function(){var n=new t(Object.assign({},this.options),this.chartService);return n.createLabels(),n}},{key:"categoriesHash",value:function(){var n=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+n}},{key:"initUserOptions",value:function(n){return n}},{key:"initFields",value:function(){$(q(t.prototype),"initFields",this).call(this);var n=this.chartService,a=n.intl,o=this.options,s=o.categories||[];if(s._parsed||((s=L$(a,s))._parsed=!0),o=ne({roundToBaseUnit:!0},o,{categories:s,min:ya(a,o.min),max:ya(a,o.max),weekStartDay:P$(o,a)}),n.panning&&n.isPannable(o.vertical?Ct:yt)&&(o.roundToBaseUnit=!1),o.userSetBaseUnit=o.userSetBaseUnit||o.baseUnit,o.userSetBaseUnitStep=o.userSetBaseUnitStep||o.baseUnitStep,this.options=o,o.srcCategories=s,s.length>0){var l=u0(s),u=o.maxDivisions;if(this.dataRange=new HN(l.min,l.max,function NPe(i){var r=(i.baseUnit||"").toLowerCase();return r!==l0&&!hn(r,Tc)&&function IPe(i){for(var n,a,r=i.categories,t=Te(r)?r.length:0,e=Zi,o=0;o0&&(a=(e=Math.min(e,l))>=BN?wc:e>=PN-3*Dc?Sf:e>=LN?hk:e>=Dc?cu:e>=o0?dk:e>=gg?NN:IN)}n=s}i.baseUnit=a||cu}(i),(r===l0||"auto"===i.baseUnitStep)&&H$(i),i}(o)),u){var c=this.dataRange.displayRange(),d=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:c.min,max:c.max,maxDateGroups:u}),h=this.dataRange.options;H$(d,h.baseUnit,h.baseUnitStep),this.divisionRange=new HN(l.min,l.max,d)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||cu,this.dataRange=this.divisionRange=new OPe(o);this.rangeLabels=[]}},{key:"tickIndices",value:function(n){var a=this.dataRange,o=this.divisionRange,s=o.valuesCount();if(!this.options.maxDivisions||!s)return $(q(t.prototype),"tickIndices",this).call(this,n);var l=[],u=o.values(),c=0;this.options.justified||(u=u.concat(o.dateAt(s)),c=.5);for(var d=0;d=1){var h=l.length-1;l.splice(d,0,l[h-1]+(l[h]-l[h-1])*n)}return l}},{key:"shouldRenderNote",value:function(n){var a=this.range(),o=this.options.categories||[];return wf(n,a.min)>=0&&wf(n,a.max)<=0&&o.length}},{key:"parseNoteValue",value:function(n){return ya(this.chartService.intl,n)}},{key:"noteSlot",value:function(n){return this.getSlot(n)}},{key:"translateRange",value:function(n){var a=this.options,o=a.baseUnit,s=a.weekStartDay,l=a.vertical,u=this.lineBox(),c=l?u.height():u.width(),d=this.range(),f=tt(n/(c/(d.max-d.min)),10);if(d.min&&d.max){var g=zr(a.min||d.min,f),_=zr(a.max||d.max,f);d={min:Ya(g,0,o,s),max:Ya(_,0,o,s)}}return d}},{key:"labelsRange",value:function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}}},{key:"pan",value:function(n){if(this.isEmpty())return null;var a=this.options,o=this.lineBox(),s=a.vertical?o.height():o.width(),l=this.dataRange.displayRange(),u=l.min,c=l.max,d=this.dataRange.total(),f=tt(n/(s/(c-u)),10)*(a.reverse?-1:1),g=zr(u,f),_=zr(c,f),C=this.limitRange(ii(g),ii(_),ii(d.min),ii(d.max),f);return C?(C.min=ni(C.min),C.max=ni(C.max),C.baseUnit=a.baseUnit,C.baseUnitStep=a.baseUnitStep||1,C.userSetBaseUnit=a.userSetBaseUnit,C.userSetBaseUnitStep=a.userSetBaseUnitStep,C):void 0}},{key:"pointsRange",value:function(n,a){if(this.isEmpty())return null;var o=$(q(t.prototype),"pointsRange",this).call(this,n,a),s=this.dataRange.displayRange(),l=this.dataRange.displayIndices(),u=hu(s.max,s.min)/(l.max-l.min),c=this.options;return{min:zr(s.min,o.min*u),max:zr(s.min,o.max*u),baseUnit:c.userSetBaseUnit||c.baseUnit,baseUnitStep:c.userSetBaseUnitStep||c.baseUnitStep}}},{key:"scaleRange",value:function(n,a){if(this.isEmpty())return{};var o=this.options,s=o.userSetBaseUnit===l0,l=this.dataRange.total(),u=this.dataRange.displayRange(),c=u.min,d=u.max,h=Math.abs(this.pointOffset(a)),g=this.scaleToDelta(n,d-c),_=Math.round(h*g),C=Math.round((1-h)*g),w=this.dataRange.options.baseUnit,E=new Date(c.getTime()+_),M=new Date(d.getTime()-C);if(s){var G,I,R=o.autoBaseUnitSteps,N=o.maxDateGroups,V=Yi(R[w])*N*du[w],U=hu(d,c),ee=hu(M,E),ve=Tc.indexOf(w);if(eeV&&w!==wc){var K=0;do{ve++,K=0,I=2*du[w=Tc[ve]];do{G=R[w][K],K++}while(K0&&(E=zr(c,-I),M=zr(d,I),E=zr(E,Mt(M,l.min,l.max)-M),M=zr(M,Mt(E,l.min,l.max)-E))}}return E&&M&&hu(M,E)>0?{min:E,max:M,baseUnit:o.userSetBaseUnit||o.baseUnit,baseUnitStep:o.userSetBaseUnitStep||o.baseUnitStep}:void 0}},{key:"zoomRange",value:function(n,a){var o=this.dataRange.total(),s=this.scaleRange(n,a);return s&&(s.mino.max&&(s.max=o.max)),s}},{key:"range",value:function(){return this.dataRange.displayRange()}},{key:"createLabels",value:function(){$(q(t.prototype),"createLabels",this).call(this),this.createRangeLabels()}},{key:"clearLabels",value:function(){$(q(t.prototype),"clearLabels",this).call(this),this.rangeLabels=[]}},{key:"arrangeLabels",value:function(){this.arrangeRangeLabels(),$(q(t.prototype),"arrangeLabels",this).call(this)}},{key:"arrangeRangeLabels",value:function(){var n=this.options,a=this.rangeLabels;if(0!==a.length){var o=this.lineBox(),s=n.vertical,l=n.rangeLabels.mirror||n.labels.mirror,u=a[0];if(u){var c=s?o.y1-u.box.height()/2:o.x1;this.positionLabel(u,l,c)}var d=a[1];if(d){var h=s?o.y2-d.box.height()/2:o.x2;this.positionLabel(d,l,h)}}}},{key:"autoRotateLabels",value:function(){$(q(t.prototype),"autoRotateLabels",this).call(this),this.autoRotateRangeLabels()}},{key:"hideOutOfRangeLabels",value:function(){$(q(t.prototype),"hideOutOfRangeLabels",this).call(this),this.hideOverlappingLabels()}},{key:"hideOverlappingLabels",value:function(){var n=this.rangeLabels,a=this.labels;if(0!==n.length){var s=n[0];if(s&&s.options.visible)for(var l=0;l0&&o(c,a[d]);--d);}function o(f,g){return!(g.options.visible&&!g.box.overlaps(f.box)||(g.options.visible=!1,0))}}},{key:"contentBox",value:function(){for(var n=$(q(t.prototype),"contentBox",this).call(this),a=this.rangeLabels,o=0;o2&&void 0!==arguments[2]?arguments[2]:{},s=this.options,l=s.dataItems&&!s.maxDivisions?s.dataItems[n]:null,u=this.divisionRange.dateAt(n),c=a.dateFormats[this.divisionRange.options.baseUnit];a.format=a.format||c,o.dataItem=l;var d=this.axisLabelText(u,a,o);if(d)return new bf(u,d,n,l,a)}},{key:"createRangeLabels",value:function(){var n=this,a=this.divisionRange,o=a.displayStart,s=a.displayEnd,l=this.options,u=Object.assign({},l.labels,l.rangeLabels,{align:Qt,zIndex:l.zIndex});if(!0===u.visible){this.normalizeLabelRotation(u),u.alignRotation=Qt,"auto"===u.rotation&&(u.rotation=0,l.autoRotateRangeLabels=!0),u.format=u.format||u.dateFormats[this.divisionRange.options.baseUnit];var d=function(_,C,w){if(w){var E=new bf(C,w,_,null,u);n.append(E),n.rangeLabels.push(E)}};d(0,o,this.axisLabelText(o,u,{index:0,count:2})),d(1,s,this.axisLabelText(s,u,{index:1,count:2}))}}},{key:"autoRotateRangeLabels",value:function(){var n=this,a=this.rangeLabels;if(this.options.autoRotateRangeLabels&&!this.options.vertical&&2===a.length){var o=function(u,c,d){var h=2*Math.abs(c[d+1]-c[d]),f=n.autoRotateLabelAngle(u.box,h);0!==f&&(u.options.rotation=f,u.reflow(new et))},s=this.getMajorTickPositions();o(a[0],s,0),o(a[1],s,s.length-2)}}},{key:"categoryIndex",value:function(n){return this.dataRange.valueIndex(n)}},{key:"slot",value:function(n,a,o){var s=this.dataRange,l=n,u=a;l instanceof Date&&(l=s.dateIndex(l)),u instanceof Date&&(u=s.dateIndex(u));var c=this.getSlot(l,u,o);if(c)return c.toRect()}},{key:"getSlot",value:function(n,a,o){var s=n,l=a;return typeof s===aN&&(s=this.categoryIndex(s)),typeof l===aN&&(l=this.categoryIndex(l)),$(q(t.prototype),"getSlot",this).call(this,s,l,o)}},{key:"valueRange",value:function(){var a=u0(this.options.srcCategories);return{min:ni(a.min),max:ni(a.max)}}},{key:"categoryAt",value:function(n,a){return this.dataRange.dateAt(n,a)}},{key:"categoriesCount",value:function(){return this.dataRange.valuesCount()}},{key:"rangeIndices",value:function(){return this.dataRange.displayIndices()}},{key:"labelsBetweenTicks",value:function(){return!this.divisionRange.options.justified}},{key:"prepareUserOptions",value:function(){this.isEmpty()||(this.options.categories=this.dataRange.values())}},{key:"getCategory",value:function(n){var a=this.pointCategoryIndex(n);return null===a?null:this.dataRange.dateAt(a)}},{key:"totalIndex",value:function(n){return this.dataRange.totalIndex(n)}},{key:"currentRangeIndices",value:function(){var n=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(n.min),max:this.dataRange.totalIndex(n.max)}}},{key:"totalRange",value:function(){return this.dataRange.total()}},{key:"totalCount",value:function(){return this.dataRange.totalCount()}},{key:"isEmpty",value:function(){return!this.options.srcCategories.length}},{key:"roundedRange",value:function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var n=this.options,a=u0(n.srcCategories);return new HN(a.min,a.max,Object.assign({},n,{justified:!1,roundToBaseUnit:!0,justifyEnd:n.justified})).displayRange()}}]),t}(Ec);ze(K$,{type:xd,labels:{dateFormats:U$},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var fk=K$;function j$(i,r){return tt(Math.floor(i/r)*r,10)}function c0(i,r){return tt(Math.ceil(i/r)*r,10)}function d0(i){return Math.max(Math.min(i,3e5),-3e5)}var KN=Math.pow(10,-9),W$=function(i){b(t,i);var r=S(t);function t(e,n,a,o){return p(this,t),r.call(this,Object.assign({},a,{seriesMin:e,seriesMax:n}),o)}return v(t,[{key:"initUserOptions",value:function(n){var a=function PPe(i,r,t){var e=t.narrowRange,n=function FPe(i,r,t){if(!i&&!r)return 0;var e;if(i>=0&&r>=0){var n=i===r?0:i;if(!1===t||!t&&(r-n)/r>.2)return 0;e=Math.max(0,n-(r-n)/2)}else e=i;return e}(i,r,e),a=function LPe(i,r,t){if(!i&&!r)return 1;var e;if(i<=0&&r<=0){var n=i===r?0:r,a=Math.abs((n-i)/n);if(!1===t||!t&&a>.2)return 0;e=Math.min(0,n-(i-n)/2)}else e=r;return e}(i,r,e),o=rk(n,a),s={majorUnit:o};return!1!==t.roundToMajorUnit&&(n<0&&$$(n,o,1/3)&&(n-=o),a>0&&$$(a,o,1/3)&&(a+=o)),s.min=j$(n,o),s.max=c0(a,o),s}(n.seriesMin,n.seriesMax,n);return this.totalOptions=function BPe(i,r){return{min:Te(r.min)?Math.min(i.min,r.min):i.min,max:Te(r.max)?Math.max(i.max,r.max):i.max,majorUnit:i.majorUnit}}(a,n),function VPe(i,r){var e,n,t=r;if(r){(function GPe(i,r){for(var t=0;t0?r.min=0:r.max=1),r.majorUnit?(i.min=j$(i.min,r.majorUnit),i.max=c0(i.max,r.majorUnit)):a&&(t=ne(i,r),i.majorUnit=rk(t.min,t.max))}i.minorUnit=(t.majorUnit||i.majorUnit)/5;var o=ne(i,t);return o.min>=o.max&&(e&&!n?o.max=o.min+o.majorUnit:!e&&n&&(o.min=o.max-o.majorUnit)),o}(a,n)}},{key:"initFields",value:function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax}},{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"startValue",value:function(){return 0}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"getDivisions",value:function(n){if(0===n)return 1;var a=this.options;return Math.floor(tt((a.max-a.min)/n,3))+1}},{key:"getTickPositions",value:function(n,a){var o=this.options,s=this.lineInfo(),l=s.axisDir,u=s.axisOrigin,c=s.lineBox,g=n*(s.lineSize/(o.max-o.min)),_=this.getDivisions(n),C=[],w=c[u],E=0;a&&(E=a/n);for(var M=0;M<_;M++)M%E!=0&&C.push(tt(w,3)),w+=g*l;return C}},{key:"getMajorTickPositions",value:function(){return this.getTickPositions(this.options.majorUnit)}},{key:"getMinorTickPositions",value:function(){return this.getTickPositions(this.options.minorUnit)}},{key:"getSlot",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=this.options,l=this.lineInfo(),u=l.axis,c=l.axisDir,d=l.lineBox,h=l.lineSize,f=l.lineStart,g=c*(h/(s.max-s.min)),_=qt(n,a||0),C=qt(a,n||0);o&&(_=Mt(_,s.min,s.max),C=Mt(C,s.min,s.max));var w=Math.min(_,C)-s.min,E=Math.max(_,C)-s.min,M=new et(d.x1,d.y1,d.x1,d.y1);return M[u+1]=d0(f+g*(c>0?w:E)),M[u+2]=d0(f+g*(c>0?E:w)),M}},{key:"getValue",value:function(n){var a=this.options,o=Number(a.max),s=Number(a.min),l=this.pointOffset(n);return l<0||l>1?null:tt(s+l*(o-s),10)}},{key:"translateRange",value:function(n){var a=this.options,o=a.vertical,s=a.reverse,l=a.max,u=a.min,c=this.lineInfo(),g=tt(n/(c.lineSize/(l-u)),10);return(o||s)&&!(o&&s)&&(g=-g),{min:u+g,max:l+g,offset:g}}},{key:"labelsCount",value:function(){return this.getDivisions(this.options.majorUnit)}},{key:"createAxisLabel",value:function(n,a,o){var s=this.options,l=tt(s.min+n*s.majorUnit,10),u=this.axisLabelText(l,a,o);return new bf(l,u,n,null,a)}},{key:"shouldRenderNote",value:function(n){var a=this.range();return a.min<=n&&n<=a.max}},{key:"pan",value:function(n){var a=this.translateRange(n);return this.limitRange(a.min,a.max,this.totalMin,this.totalMax,a.offset)}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a),l=Math.min(o,s),u=Math.max(o,s);if(this.isValidRange(l,u))return{min:l,max:u}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),l=this.scaleToDelta(n,this.options.max-this.options.min),c=(1-o)*l,d=tt(this.options.min+o*l,10),h=tt(this.options.max-c,10);return h-dKN}}]),t}(ck);function $$(i,r,t){var e=tt(Math.abs(i%r),10);return 0===e||e>r*(1-t)}ze(W$,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Xi},labels:{format:"#.####################"},zIndex:1});var Us=W$,X$=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t);var l=ni(e),u=ni(n),c=o.intl,d=a||{};d=function zPe(i,r,t){var e=t.min||i,n=t.max||r,a=t.baseUnit||(n&&e?function UPe(i){var r=dk;return i>=BN?r=wc:i>=PN?r=Sf:i>=LN?r=hk:i>=Dc&&(r=cu),r}(GN(n,e)):dk),o=du[a],s=t.weekStartDay||0,l=VN(ii(e)-1,a,s)||ni(n),u=N$(ii(n)+1,a,s),d=(t.majorUnit?t.majorUnit:void 0)||c0(rk(l.getTime(),u.getTime()),o)/o,h=zN(l,u,a),g=c0(h,d)-h,_=Math.floor(g/2),C=g-_;return t.baseUnit||delete t.baseUnit,t.baseUnit=t.baseUnit||a,t.min=t.min||Ya(l,-_,a,s),t.max=t.max||Ya(u,C,a,s),t.minorUnit=t.minorUnit||d/5,t.majorUnit=d,t}(l,u,d=ne(d||{},{min:ya(c,d.min),max:ya(c,d.max),axisCrossingValue:L$(c,d.axisCrossingValues||d.axisCrossingValue),weekStartDay:P$(d,c)})),(s=r.call(this,d,o)).intlService=c,s.seriesMin=l,s.seriesMax=u;var h=d.weekStartDay||0;return s.totalMin=ii(VN(ii(l)-1,d.baseUnit,h)),s.totalMax=ii(N$(ii(u)+1,d.baseUnit,h)),s}return v(t,[{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"getDivisions",value:function(n){var a=this.options;return Math.floor(zN(a.min,a.max,a.baseUnit)/n+1)}},{key:"getTickPositions",value:function(n){for(var a=this.options,o=this.lineInfo(),s=o.axisDir,l=o.lineSize,u=o.lineStart,c=this.getDivisions(n),h=l/hu(a.max,a.min),f=a.weekStartDay||0,g=[u],_=1;_0&&(c=Ya(c,l,s.baseUnit,s.weekStartDay||0)),a.format=a.format||a.dateFormats[s.baseUnit];var h=this.axisLabelText(c,a,o);return new bf(c,h,n,null,a)}},{key:"translateRange",value:function(n){var a=this.options,o=this.lineBox(),s=a.vertical,l=a.reverse,u=s?o.height():o.width(),c=this.range(),d=u/hu(c.max,c.min),h=tt(n/d,10);return(s||l)&&(!s||!l)&&(h=-h),{min:zr(a.min,h),max:zr(a.max,h),offset:h}}},{key:"shouldRenderNote",value:function(n){var a=this.range();return wf(n,a.min)>=0&&wf(n,a.max)<=0}},{key:"pan",value:function(n){var a=this.translateRange(n,!0),o=this.limitRange(ii(a.min),ii(a.max),this.totalMin,this.totalMax,a.offset);if(o)return{min:ni(o.min),max:ni(o.max)}}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a),l=Math.min(o,s),u=Math.max(o,s);return{min:ni(l),max:ni(u)}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),l=this.scaleToDelta(n,this.options.max-this.options.min),u=o*l,c=(1-o)*l,d=ni(ii(this.options.min)+u),h=ni(ii(this.options.max)-c);return h-d<1e3&&(h=ni(ii(d)+1e3)),{min:d,max:h}}},{key:"zoomRange",value:function(n,a){var o=this.scaleRange(n,a);return{min:ni(Mt(ii(o.min),this.totalMin,this.totalMax)),max:ni(Mt(ii(o.max),this.totalMin,this.totalMax))}}}]),t}(ck);ze(X$,{type:xd,majorGridLines:{visible:!0,width:1,color:Xi},labels:{dateFormats:U$}});var Z$=X$,J$=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t);var l=ne({majorUnit:10,min:e,max:n},a),u=l.majorUnit,c=function jPe(i,r){var t=tt(Cl(i,r),10)%1;return i<=0?r:0!==t&&(t<.3||t>.9)?Math.pow(r,Cl(i,r)+.2):Math.pow(r,Math.ceil(Cl(i,r)))}(n,u),d=function KPe(i,r,t){var e=t.majorUnit,n=i;return i<=0?n=r<=1?Math.pow(e,-2):1:t.narrowRange||(n=Math.pow(e,Math.floor(Cl(i,e)))),n}(e,n,l),h=function HPe(i,r,t,e){var n=t.min,a=t.max;return Te(t.axisCrossingValue)&&t.axisCrossingValue<=0&&jN(),Te(e.max)?e.max<=0&&jN():a=r,Te(e.min)?e.min<=0&&jN():n=i,{min:n,max:a}}(d,c,l,a);return l.max=h.max,l.min=h.min,l.minorUnit=a.minorUnit||tt(u-1,10),(s=r.call(this,l,o)).totalMin=Te(a.min)?Math.min(d,a.min):d,s.totalMax=Te(a.max)?Math.max(c,a.max):c,s.logMin=tt(Cl(h.min,u),10),s.logMax=tt(Cl(h.max,u),10),s.seriesMin=e,s.seriesMax=n,s.createLabels(),s}return v(t,[{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"startValue",value:function(){return this.options.min}},{key:"getSlot",value:function(n,a,o){var s=this.options,l=this.logMin,u=this.logMax,c=s.majorUnit,d=s.min,h=s.max,f=this.lineInfo(),g=f.axis,_=f.axisDir,C=f.lineBox,E=f.lineStart,M=_*(f.lineSize/(u-l)),R=qt(n,a||1),N=qt(a,n||1);if(R<=0||N<=0)return null;o&&(R=Mt(R,d,h),N=Mt(N,d,h)),R=Cl(R,c),N=Cl(N,c);var V=Math.min(R,N)-l,U=Math.max(R,N)-l,ee=new et(C.x1,C.y1,C.x1,C.y1);return ee[g+1]=d0(E+M*(_>0?V:U)),ee[g+2]=d0(E+M*(_>0?U:V)),ee}},{key:"getValue",value:function(n){var o=this.logMin,s=this.logMax,l=this.options.majorUnit,u=this.lineInfo(),f=u.lineSize,_=u.axisDir*(n[u.axis]-u.lineStart);return _<0||_>f?null:tt(Math.pow(l,o+_*((s-o)/f)),10)}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"translateRange",value:function(n){var a=this.options,o=this.logMin,s=this.logMax,l=a.reverse,u=a.vertical,c=a.majorUnit,d=this.lineBox(),h=u?d.height():d.width(),g=tt(n/(h/(s-o)),10);return(u||l)&&!(u&&l)&&(g=-g),{min:Math.pow(c,o+g),max:Math.pow(c,s+g),offset:g}}},{key:"labelsCount",value:function(){var n=Math.floor(this.logMax);return Math.floor(n-this.logMin)+1}},{key:"getMajorTickPositions",value:function(){var n=[];return this.traverseMajorTicksPositions(function(a){n.push(a)},{step:1,skip:0}),n}},{key:"createTicks",value:function(n){var a=this.options,o=a.majorTicks,s=a.minorTicks,l=a.vertical,u=a.labels.mirror,c=this.lineBox(),h={vertical:l};function f(g,_){h.tickX=u?c.x2:c.x2-_.size,h.tickY=u?c.y1-_.size:c.y1,h.position=g,n.append(R$(h,_))}return o.visible&&this.traverseMajorTicksPositions(f,o),s.visible&&this.traverseMinorTicksPositions(f,s),[]}},{key:"createGridLines",value:function(n){var a=this.options,o=a.minorGridLines,s=a.majorGridLines,l=a.vertical,u=n.lineBox(),c={lineStart:u[l?"x1":"y1"],lineEnd:u[l?"x2":"y2"],vertical:l},d=[],h=this.gridLinesVisual();function f(g,_){hn(g,d)||(c.position=g,h.append(O$(c,_)),d.push(g))}return s.visible&&this.traverseMajorTicksPositions(f,s),o.visible&&this.traverseMinorTicksPositions(f,o),h.children}},{key:"traverseMajorTicksPositions",value:function(n,a){for(var o=this.lineInfo(),s=o.lineStart,l=o.step,u=this.logMin,c=this.logMax,d=Math.ceil(u)+a.skip;d<=c;d+=a.step)n(tt(s+l*(d-u),10),a)}},{key:"traverseMinorTicksPositions",value:function(n,a){for(var o=this.options,s=o.min,l=o.max,u=o.minorUnit,c=o.majorUnit,d=this.lineInfo(),h=d.lineStart,f=d.step,g=this.logMin,_=this.logMax,w=Math.floor(g);w<_;w++)for(var E=this._minorIntervalOptions(w),M=a.skip;Ml)break;R>=s&&n(tt(h+f*(Cl(R,c)-g),10),a)}}},{key:"createAxisLabel",value:function(n,a,o){var s=Math.ceil(this.logMin+n),l=Math.pow(this.options.majorUnit,s),u=this.axisLabelText(l,a,o);return new bf(l,u,n,null,a)}},{key:"shouldRenderNote",value:function(n){var a=this.range();return a.min<=n&&n<=a.max}},{key:"pan",value:function(n){var a=this.translateRange(n);return this.limitRange(a.min,a.max,this.totalMin,this.totalMax,a.offset)}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a);return{min:Math.min(o,s),max:Math.max(o,s)}}},{key:"scaleRange",value:function(n,a){var o=this.options.majorUnit,s=Cl(this.options.min,o),l=Cl(this.options.max,o),u=Math.abs(this.pointOffset(a)),d=this.scaleToDelta(n,l-s),h=Math.pow(o,s+u*d),f=Math.pow(o,l-(1-u)*d);return f-h<1e-6&&(f=h+1e-6),{min:h,max:f}}},{key:"zoomRange",value:function(n,a){var o=this.scaleRange(n,a),s=this.totalMin,l=this.totalMax;return{min:Mt(o.min,s,l),max:Mt(o.max,s,l)}}},{key:"_minorIntervalOptions",value:function(n){var a=this.options,o=a.minorUnit,s=a.majorUnit,l=Math.pow(s,n);return{value:l,minorStep:(Math.pow(s,n+1)-l)/o}}},{key:"lineInfo",value:function(){var n=$(q(t.prototype),"lineInfo",this).call(this);return n.step=n.axisDir*(n.lineSize/(this.logMax-this.logMin)),n}}]),t}(ck);function jN(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function Cl(i,r){return Math.log(i)/Math.log(r)}ze(J$,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Xi},zIndex:1,_deferLabels:!0});var h0=J$,WPe={createGridLines:function(r){var o,s,t=this.options,e=Math.abs(this.box.center().y-r.lineBox().y1),n=[],a=!1;return t.majorGridLines.visible&&(o=this.majorGridLineAngles(r),a=!0,n=this.renderMajorGridLines(o,e,t.majorGridLines)),t.minorGridLines.visible&&(s=this.minorGridLineAngles(r,a),_f(n,this.renderMinorGridLines(s,e,t.minorGridLines,r,a))),n},renderMajorGridLines:function(r,t,e){return this.renderGridLines(r,t,e)},renderMinorGridLines:function(r,t,e,n,a){var o=this.radiusCallback&&this.radiusCallback(t,n,a);return this.renderGridLines(r,t,e,o)},renderGridLines:function(r,t,e,n){for(var a={stroke:{width:e.width,color:e.color,dashType:e.dashType}},o=this.box.center(),s=new bo([o.x,o.y],t),l=this.gridLinesVisual(),u=0;u3&&void 0!==arguments[3]&&arguments[3],l=this.options,u=l.categories.length,c=u/n||1,d=360/c,h=a||0,f=o||1,g=[],_=0,C=h;C3&&void 0!==arguments[3]&&arguments[3],l=this.options.min,u=this.getDivisions(n),c=[],d=a||0,h=o||1,f=d;f1&&void 0!==arguments[1]?arguments[1]:n,o=this.options,s=360-o.startAngle,l=this.getSlot(n,a),u=Math.min(n,a),c=Math.max(n,a);return o.reverse?(d=u,h=c):(d=360-c,h=360-u),new Sc([l.center.x,l.center.y],{startAngle:d=(d+s)%360,endAngle:h=(h+s)%360,radiusX:l.radius,radiusY:l.radius})}},{key:"getValue",value:function(n){var a=this.options,o=this.box.center(),u=Math.round(Rd(Math.atan2(n.y-o.y,n.x-o.x))),c=a.startAngle;return a.reverse||(u*=-1,c*=-1),(u+c+360)%360}},{key:"valueRange",value:function(){return{min:0,max:2*Math.PI}}}]),t}(ck);ze(qN,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:ti(10)},majorGridLines:{color:Xi,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),ne(qN.prototype,eq,{createPlotBands:$N.prototype.createPlotBands,majorAngles:$N.prototype.majorAngles,range:Us.prototype.range,labelsCount:Us.prototype.labelsCount,createAxisLabel:Us.prototype.createAxisLabel});var $Pe=qN,qPe={options:{majorGridLines:{visible:!0}},createPlotBands:function(){for(var r=this.options,t=r.majorGridLines.type,e=r.plotBands,n=void 0===e?[]:e,a=this.plotArea.polarAxis,o=a.majorAngles(),s=a.box.center(),l=this._plotbandGroup=new sn({zIndex:-1}),u=0;u0){var f=new bo([r.x,r.y],h);if(n.type===Ad)c.append(new kl(f,a));else{for(var g=new dt(a),_=0;_1){var c=(Rd(Math.atan2(r.y-a.y,r.x-a.x))+540)%360;n.sort(function(_,C){return f0(_,c)-f0(C,c)});var d=f0(n[0],n[1])/2,h=f0(c,n[0]),f=90-d;s=o*(Math.sin(br(180-h-f))/Math.sin(br(f)))}return this.axisType().prototype.getValue.call(this,new Ut(t.x1,t.y2-s))}};function f0(i,r){return 180-Math.abs(Math.abs(i-r)-180)}var tq=qPe,nq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"radarMajorGridLinePositions",value:function(){return this.getTickPositions(this.options.majorUnit)}},{key:"radarMinorGridLinePositions",value:function(){var n=this.options,a=0;return n.majorGridLines.visible&&(a=n.majorUnit),this.getTickPositions(n.minorUnit,a)}},{key:"axisType",value:function(){return Us}}]),t}(Us);ne(nq.prototype,tq);var XPe=nq,iq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"radarMajorGridLinePositions",value:function(){var n=[];return this.traverseMajorTicksPositions(function(a){n.push(a)},this.options.majorGridLines),n}},{key:"radarMinorGridLinePositions",value:function(){var n=[];return this.traverseMinorTicksPositions(function(a){n.push(a)},this.options.minorGridLines),n}},{key:"axisType",value:function(){return h0}}]),t}(h0);ne(iq.prototype,tq);var ZPe=iq,QPe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).closed=e,n}return v(t,[{key:"process",value:function(n){var a=n.slice(0),o=[],s=this.closed,l=a.length;if(l>2&&(this.removeDuplicates(0,a),l=a.length),l<2||2===l&&a[0].equals(a[1]))return o;var f,g,u=a[0],c=a[1],d=a[2];for(o.push(new yl(u));u.equals(a[l-1]);)s=!0,a.pop(),l--;if(2===l){var h=this.tangent(u,c,yt,Ct);return Yi(o).controlOut(this.firstControlPoint(h,u,c,yt,Ct)),o.push(new yl(c,this.secondControlPoint(h,u,c,yt,Ct))),o}if(s){var _=this.controlPoints(u=a[l-1],c=a[0],d=a[1]);f=_[1],g=_[0]}else{var C=this.tangent(u,c,yt,Ct);f=this.firstControlPoint(C,u,c,yt,Ct)}for(var w=f,E=0;E<=l-3;E++)if(this.removeDuplicates(E,a),E+3<=(l=a.length)){var M=this.controlPoints(u=a[E],c=a[E+1],d=a[E+2]);Yi(o).controlOut(w),w=M[1],o.push(new yl(c,M[0]))}if(s){var N=this.controlPoints(u=a[l-2],c=a[l-1],d=a[0]);Yi(o).controlOut(w),o.push(new yl(c,N[0])),Yi(o).controlOut(N[1]),o.push(new yl(d,g))}else{var V=this.tangent(c,d,yt,Ct);Yi(o).controlOut(w),o.push(new yl(d,this.secondControlPoint(V,c,d,yt,Ct)))}return o}},{key:"removeDuplicates",value:function(n,a){for(;a[n+1]&&(a[n].equals(a[n+1])||a[n+1].equals(a[n+2]));)a.splice(n+1,1)}},{key:"invertAxis",value:function(n,a,o){var s=!1;if(n.x===a.x)s=!0;else if(a.x===o.x)(a.y=u||(s=!0)}return s}},{key:"isLine",value:function(n,a,o){var s=this.lineFunction(n,a),l=this.calculateFunction(s,o.x);return n.x===a.x&&a.x===o.x||tt(l,1)===tt(o.y,1)}},{key:"lineFunction",value:function(n,a){var o=(a.y-n.y)/(a.x-n.x);return[n.y-o*n.x,o]}},{key:"controlPoints",value:function(n,a,o){var d,s=yt,l=Ct,u=!1,c=!1;if(this.isLine(n,a,o))d=this.tangent(n,a,yt,Ct);else{var h={x:this.isMonotonicByField(n,a,o,yt),y:this.isMonotonicByField(n,a,o,Ct)};h.x&&h.y?(d=this.tangent(n,o,yt,Ct),u=!0):(this.invertAxis(n,a,o)&&(s=Ct,l=yt),h[s]?d=0:(d=.01*(o[l]a[s]&&a[s]>n[s]||o[s]2&&void 0!==arguments[2])||arguments[2];return this._axis.slot(n,a,o)}},{key:"range",value:function(){return this._axis.range()}},{key:"valueRange",value:function(){return this._axis.valueRange()}}]),t}(mt),eBe=JPe;function oq(i,r){for(var t=0;t0&&(e=YN.sum(r)/t),e},first:function(r){for(var t=r.length,e=0;e1&&void 0!==arguments[1]?arguments[1]:[qo],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=0;s2&&void 0!==arguments[2]?arguments[2]:a,s={};if(a)for(var l=a.length,u=0;u=0){this.valueGetter=this.createValueGetter(a,o);var f=this.getStandardError(s,this.getAverage(s));this.globalRange=function(g){return{low:g-f,high:g+f}}}}},{key:"createValueGetter",value:function(n,a){var c,o=n.data,s=Qi.current,l=s.valueFields(n),u=Te(o[0])?o[0]:{};return Jr(u)?c=yc("["+(a?l.indexOf(a):0)+"]"):un(u)?c=yc():typeof u===aN&&(c=yc(s.sourceFields(n,l)[l.indexOf(a)])),c}},{key:"getErrorRange",value:function(n,a){var o,s,l;if(!Te(a))return null;if(this.globalRange)return this.globalRange(n);if(Jr(a))o=n-a[0],s=n+a[1];else if(un(l=parseFloat(a)))o=n-l,s=n+l;else{if(!(l=sBe.exec(a)))throw new Error("Invalid ErrorBar value: "+a);var u=n*(parseFloat(l[1])/100);o=n-Math.abs(u),s=n+Math.abs(u)}return{low:o,high:s}}},{key:"getStandardError",value:function(n,a){return this.getStandardDeviation(n,a,!0)/Math.sqrt(a.count)}},{key:"getStandardDeviation",value:function(n,a,o){for(var s=n.length,l=o?a.count-1:a.count,u=0,c=0;c2&&void 0!==arguments[2]?arguments[2]:{},e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=t.defaults=t.defaults||{},a=t.depth=t.depth||0,o=!1;if(t.excluded=t.excluded||[],a>5)return null;for(var s in i)if(!hn(s,t.excluded)&&i.hasOwnProperty(s)){var l=i[s];Ri(l)?(o=!0,e||(i[s]=qt(l(r),n[s]))):gl(l)&&(e||(t.defaults=n[s]),t.depth++,o=Mc(l,r,t,e)||o,t.depth--)}return o}function dF(i){for(var r=i.length,t=0,e=0;e0)return n.value/l}return n.value}},{key:"plotRange",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.categoryPoints[n.categoryIx];if(this.options.isStacked){for(var s=this.plotValue(n),l=s>=0,u=a,c=!1,d=0;d=0&&l||_<0&&!l)&&(u+=_,s+=_,c=!0,this.options.isStacked100&&(s=Math.min(s,1)))}}return c&&(u-=a),[u,s]}var C=n.series,w=this.seriesValueAxis(C),E=this.categoryAxisCrossingValue(w);return[E,p9(n.value)?n.value:E]}},{key:"stackLimits",value:function(n,a){for(var o=Zi,s=Cr,l=0;l0&&(this.errorTotals.positive[a]=Math.max(this.errorTotals.positive[a]||0,l)),{low:s,high:l}}},{key:"addValue",value:function(n,a){var o=a.categoryIx,s=a.series,l=a.seriesIx,u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]);var c=this.seriesPoints[l];c||(this.seriesPoints[l]=c=[]);var d=this.createPoint(n,a);d&&(Object.assign(d,a),d.owner=this,d.noteText=n.fields.noteText,Te(d.dataItem)||(d.dataItem=s.data[o]),this.addErrorBar(d,n,o)),this.points.push(d),c.push(d),u.push(d),this.updateRange(n.valueFields,a)}},{key:"evalPointOptions",value:function(n,a,o,s,l,u){var c={defaults:l._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},d=this._evalSeries[u];Te(d)||(this._evalSeries[u]=d=Mc(n,{},c,!0));var h=n;return d&&Mc(h=ne({},h),{value:a,category:o,index:s,series:l,dataItem:l.data[s]},c),h}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=n.value,l=this.valueAxisRanges[o];isFinite(s)&&null!==s&&((l=this.valueAxisRanges[o]=l||{min:Zi,max:Cr}).min=Math.min(l.min,s),l.max=Math.max(l.max,s))}},{key:"seriesValueAxis",value:function(n){var a=this.plotArea,o=n.axis,s=o?a.namedValueAxes[o]:a.valueAxis;if(!s)throw new Error("Unable to locate value axis with name "+o);return s}},{key:"reflow",value:function(n){var a=this,o=this.categorySlots=[],s=this.points,l=this.categoryAxis,u=0;this.traverseDataPoints(function(c,d){var h=d.categoryIx,g=a.seriesValueAxis(d.series),_=s[u++],C=o[h];if(C||(o[h]=C=a.categorySlot(l,h,g)),_){var w=a.plotRange(_,g.startValue()),E=a.valueSlot(g,w);if(E){var M=a.pointSlot(C,E);_.aboveAxis=a.aboveAxis(_,g),_.stackValue=w[1],a.options.isStacked100&&(_.percentage=a.plotValue(_)),a.reflowPoint(_,M)}else _.visible=!1}}),this.reflowCategories(o),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=n}},{key:"valueSlot",value:function(n,a){return n.getSlot(a[0],a[1],!this.options.clip)}},{key:"limitPoints",value:function(){for(var n=this.categoryPoints,a=n[0].concat(Yi(n)),o=0;o=o}},{key:"categoryAxisCrossingValue",value:function(n){var a=this.categoryAxis,o=n.options;return[].concat(o.axisCrossingValues||o.axisCrossingValue)[a.axisIndex||0]||0}},{key:"reflowPoint",value:function(n,a){n.reflow(a)}},{key:"reflowCategories",value:function(){}},{key:"pointSlot",value:function(n,a){var s=this.options.invertAxes,l=s?a:n,u=s?n:a;return new et(l.x1,u.y1,l.x2,u.y2)}},{key:"categorySlot",value:function(n,a){return n.getSlot(a)}},{key:"traverseDataPoints",value:function(n){for(var a=this.options.series,o=dF(a),s=a.length,l=0;l1&&(a=this.createSegment(c,s,o,a),this._addSegment(a)),c=[])}c.length>1&&(a=this.createSegment(c,s,o,a),this._addSegment(a))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(r){this._segments.push(r),r.parent=this},sortPoints:function(r){return r},seriesMissingValues:function(r){var t=r.missingValues;return!t&&this.options.isStacked?Ac:t||mg},getNearestPoint:function(r,t,e){for(var s,n=new Ut(r,t),a=this.seriesPoints[e],o=Zi,l=0;l0&&!1!==o.visible&&this.createStroke({stroke:ne({color:s,opacity:n.opacity,lineCap:"butt"},o)})}},{key:"strokeSegments",value:function(){var n=this._strokeSegments;return n||(n=this._strokeSegments=this.createStrokeSegments()),n}},{key:"createStrokeSegments",value:function(){return this.segmentsFromPoints(this.points())}},{key:"stackSegments",value:function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)}},{key:"createStackSegments",value:function(n){return this.segmentsFromPoints(this.toGeometryPoints(n)).reverse()}},{key:"segmentsFromPoints",value:function(n){return n.map(function(a){return new yl(a)})}},{key:"createStroke",value:function(n){var a=new dt(n);a.segments.push.apply(a.segments,this.strokeSegments()),this.visual.append(a)}},{key:"hasStackSegment",value:function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length}},{key:"createFill",value:function(n){var a=this.strokeSegments(),o=a.slice(0),s=this.hasStackSegment();if(s){var l=this.stackSegments();_f(o,l)}var u=new dt(n);u.segments.push.apply(u.segments,o),!s&&a.length>1&&this.fillToAxes(u),this.visual.append(u)}},{key:"fillToAxes",value:function(n){var a=this.parent,o=a.options.invertAxes,s=a.seriesValueAxis(this.series),l=a.categoryAxisCrossingValue(s),u=s.getSlot(l,l,!0),c=this.strokeSegments(),d=c[0].anchor(),h=Yi(c).anchor(),f=o?u.x1:u.y1;o?n.lineTo(f,h.y).lineTo(f,d.y):n.lineTo(h.x,f).lineTo(d.x,f)}}]),t}(Mg),Rg=PBe,wq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createStrokeSegments",value:function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))}},{key:"createStackSegments",value:function(n){return this.segmentsFromPoints(this.calculateStepPoints(n)).reverse()}}]),t}(Rg);ne(wq.prototype,fF);var BBe=wq,GBe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createStrokeSegments",value:function(){var n=new v0(this.options.closed),a=this.points();return n.process(a)}},{key:"createStackSegments",value:function(){for(var n=this.strokeSegments(),a=[],o=n.length-1;o>=0;o--){var s=n[o];a.push(new yl(s.anchor(),s.controlOut(),s.controlIn()))}return a}}]),t}(Rg),_F=GBe,VBe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createSegment",value:function(n,a,o,s){var c,d,u=(a.line||{}).style;return this.options.isStacked&&o>0&&s&&("gap"!==this.seriesMissingValues(a)?(d=s.linePoints,c=s):d=this._gapStackPoints(n,o,u)),new(u===pk?BBe:u===_g?_F:Rg)(n,a,o,c,d)}},{key:"reflow",value:function(n){$(q(t.prototype),"reflow",this).call(this,n);var a=this._stackPoints;if(a)for(var o=0;o0&&!C);if(C)o!==pk&&f>l&&!s[_][g-1]&&h.push(this._previousSegmentPoint(f,g,g-1,_)),h.push(C),o!==pk&&f+10&&!c;)c=l[--u][o];return c?c=l[u][a]:(c=this._createGapStackPoint(n),this._stackPoints.push(c)),c}},{key:"_createGapStackPoint",value:function(n){var a=this.pointOptions({},0),o=new Tf(0,a);return o.categoryIx=n,o.series={},o}},{key:"seriesMissingValues",value:function(n){return n.missingValues||Ac}},{key:"supportsPointInactiveOpacity",value:function(){return!1}}]),t}(mF),UBe=VBe,zBe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this)).axisRanges={},e}return v(t,[{key:"update",value:function(n){var a=this.axisRanges;for(var o in n){var s=n[o],l=a[o];a[o]=l=l||{min:Zi,max:Cr},l.min=Math.min(l.min,s.min),l.max=Math.max(l.max,s.max)}}},{key:"reset",value:function(n){this.axisRanges[n]=void 0}},{key:"query",value:function(n){return this.axisRanges[n]}}]),t}(mt),x0=zBe,Dq=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).textBox=new Yo(e,o.options,a),o.append(o.textBox),o}return v(t,[{key:"createVisual",value:function(){this.textBox.options.noclip=this.options.noclip}},{key:"reflow",value:function(n){var a=this.options,o=a.vertical,s=a.aboveAxis,l=this.children[0],u=l.options,c=l.box,d=l.options.padding,h=n;u.align=o?Qt:Sn,u.vAlign=o?Fn:Qt,a.position===D0?o?(u.vAlign=Fn,!s&&c.height()0&&a.height()>0&&this.createRect(this.visual)}},{key:"createRect",value:function(n){var a=this.options,o=a.border,s=Te(o.opacity)?o.opacity:a.opacity,l=this.box.toRect();l.size.width=Math.round(l.size.width);var u=this.rectVisual=dt.fromRect(l,{fill:{color:this.color,opacity:a.opacity},stroke:{color:this.getBorderColor(),width:o.width,opacity:s,dashType:o.dashType}}),c=this.box.width(),d=this.box.height();if((a.vertical?c:d)>6&&(Ns(u),(c<1||d<1)&&(u.options.stroke.lineJoin="round")),n.append(u),yF(a)){var f=this.createGradientOverlay(u,{baseColor:this.color},ne({end:a.vertical?void 0:[0,1]},a.overlay));n.append(f)}}},{key:"createHighlight",value:function(n){return Ns(dt.fromRect(this.box.toRect(),n))}},{key:"highlightVisual",value:function(){return this.rectVisual}},{key:"highlightVisualArgs",value:function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}}},{key:"getBorderColor",value:function(){var n=this.color,a=this.options.border,o=a._brightness||.8,s=a.color;return Te(s)||(s=new Bs(n).brightness(o).toHex()),s}},{key:"tooltipAnchor",value:function(){var c,d,n=this.options,a=this.box,o=this.aboveAxis,s=this.owner.pane.clipBox()||a,l=Sn,u=Fn;if(n.vertical)c=Math.min(a.x2,s.x2)+5,o?d=Math.max(a.y1,s.y1):(d=Math.min(a.y2,s.y2),u=Zn);else{var h=Math.max(a.x1,s.x1),f=Math.min(a.x2,s.x2);n.isStacked?(u=Zn,o?(l=Gn,c=f):c=h,d=Math.max(a.y1,s.y1)-5):(o?c=f+5:(c=h-5,l=Gn),d=Math.max(a.y1,s.y1))}return{point:new Ut(c,d),align:{horizontal:l,vertical:u}}}},{key:"overlapsBox",value:function(n){return this.box.overlaps(n)}},{key:"pointData",value:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}}}]),t}(Kn);ne(M0.prototype,wl),ne(M0.prototype,xg),M0.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var kF=M0;function Tq(i,r){i.forEach(r)}function Aq(i,r){for(var t=i.length,e=t-1;e>=0;e--)r(i[e],e-t-1)}var xq=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).forEach=e.rtl?Aq:Tq,n}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=a.vertical,s=a.gap,l=a.spacing,u=this.children,c=u.length,d=o?Ct:yt,h=c+s+l*(c-1),f=(o?n.height():n.width())/h,g=n[d+1]+f*(s/2);this.forEach(u,function(_,C){var w=(_.box||n).clone();w[d+1]=g,w[d+2]=g+f,_.reflow(w),C0&&o.options.set("stroke",{color:this.getBorderColor(),width:a.border.width,dashType:a.border.dashType,opacity:qt(a.border.opacity,a.opacity)}),Ns(o),n.append(o),yF(a)&&n.append(this.createGradientOverlay(o,{baseColor:this.color},ne({end:a.vertical?void 0:[0,1]},a.overlay)))}},{key:"createLines",value:function(n,a){this.drawLines(n,a,this.lines,a.line)}},{key:"drawLines",value:function(n,a,o,s){if(o)for(var l={stroke:{color:s.color||this.color,opacity:qt(s.opacity,a.opacity),width:s.width,dashType:s.dashType,lineCap:"butt"}},u=0;u{4:d}Open:{0:C}High:{1:C}Low:{2:C}Close:{3:C}"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),ne(O0.prototype,wl),ne(O0.prototype,xg);var CF=O0;function Oq(i){return ZN(i)===i.length}var Iq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflowCategories",value:function(n){for(var a=this.children,o=a.length,s=0;sd.close&&(f=n.fields.downColor||l.downColor||l.color),Ri(l.color)&&(f=h.color),h.vertical=!this.options.invertAxes;var g=new c(d,h);return g.color=f,g}},{key:"splitValue",value:function(n){return[n.low,n.open,n.close,n.high]}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=this.splitValue(n),l=this.valueAxisRanges[o];l=this.valueAxisRanges[o]=l||{min:Zi,max:Cr},l=this.valueAxisRanges[o]={min:Math.min.apply(Math,s.concat([l.min])),max:Math.max.apply(Math,s.concat([l.max]))}}},{key:"formatPointValue",value:function(n,a){var o=n.value;return this.chartService.format.auto(a,o.open,o.high,o.low,o.close,n.category)}},{key:"animationPoints",value:function(){return this.points}}]),t}(Rc);ne(Iq.prototype,A0);var bF=Iq,SF=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).createNote(),a}return v(t,[{key:"reflow",value:function(n){var u,c,o=this.value,l=this.owner.seriesValueAxis(this.options);this.boxSlot=c=l.getSlot(o.q1,o.q3),this.realBody=c,this.reflowBoxSlot(n),this.whiskerSlot=u=l.getSlot(o.lower,o.upper),this.reflowWhiskerSlot(n);var d=l.getSlot(o.median);if(o.mean){var h=l.getSlot(o.mean);this.meanPoints=this.calcMeanPoints(n,h)}this.whiskerPoints=this.calcWhiskerPoints(c,u),this.medianPoints=this.calcMedianPoints(n,d),this.box=u.clone().wrap(c),this.reflowNote()}},{key:"reflowBoxSlot",value:function(n){this.boxSlot.x1=n.x1,this.boxSlot.x2=n.x2}},{key:"reflowWhiskerSlot",value:function(n){this.whiskerSlot.x1=n.x1,this.whiskerSlot.x2=n.x2}},{key:"calcMeanPoints",value:function(n,a){return[[[n.x1,a.y1],[n.x2,a.y1]]]}},{key:"calcWhiskerPoints",value:function(n,a){var o=a.center().x;return[[[o-5,a.y1],[o+5,a.y1],[o,a.y1],[o,n.y1]],[[o-5,a.y2],[o+5,a.y2],[o,a.y2],[o,n.y2]]]}},{key:"calcMedianPoints",value:function(n,a){return[[[n.x1,a.y1],[n.x2,a.y1]]]}},{key:"renderOutliers",value:function(n){for(var a=this.value,o=a.outliers||[],s=3*Math.abs(a.q3-a.q1),l=[],u=n.markers||{},c=0;ca.q1-s?n.outliers:n.extremes).border);Te(h.color)||(h.color=Te(this.color)?this.color:new Bs(u.background).brightness(.8).toHex());var f=new Fd({type:u.type,width:u.size,height:u.size,rotation:u.rotation,background:u.background,border:h,opacity:u.opacity});f.value=d,l.push(f)}return this.reflowOutliers(l),l}},{key:"reflowOutliers",value:function(n){for(var a=this.owner.seriesValueAxis(this.options),o=this.box.center(),s=0;s{6:d}Lower:{0:C}Q1:{1:C}Median:{2:C}Mean:{5:C}Q3:{3:C}Upper:{4:C}"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:Ln,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:pl,background:Ln,border:{width:2,opacity:1},opacity:0}}),ne(SF.prototype,wl);var Nq=SF,jBe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflowBoxSlot",value:function(n){this.boxSlot.y1=n.y1,this.boxSlot.y2=n.y2}},{key:"reflowWhiskerSlot",value:function(n){this.whiskerSlot.y1=n.y1,this.whiskerSlot.y2=n.y2}},{key:"calcMeanPoints",value:function(n,a){return[[[a.x1,n.y1],[a.x1,n.y2]]]}},{key:"calcWhiskerPoints",value:function(n,a){var o=a.center().y;return[[[a.x1,o-5],[a.x1,o+5],[a.x1,o],[n.x1,o]],[[a.x2,o-5],[a.x2,o+5],[a.x2,o],[n.x2,o]]]}},{key:"calcMedianPoints",value:function(n,a){return[[[a.x1,n.y1],[a.x1,n.y2]]]}}]),t}(Nq),WBe=jBe,$Be=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"addValue",value:function(n,a){var w,o=a.categoryIx,s=a.category,l=a.series,u=a.seriesIx,c=this.children,d=this.options,h=n.valueFields,g=Oq(this.splitValue(h)),_=l.data[o],C=this.categoryPoints[o];C||(this.categoryPoints[o]=C=[]),g&&(w=this.createPoint(n,a));var E=c[o];E||(E=new R0({vertical:d.invertAxes,gap:d.gap,spacing:d.spacing,rtl:!d.invertAxes&&(this.chartService||{}).rtl}),this.append(E)),w&&(this.updateRange(h,a),E.append(w),w.categoryIx=o,w.category=s,w.series=l,w.seriesIx=u,w.owner=this,w.dataItem=_),this.points.push(w),C.push(w)}},{key:"pointType",value:function(){return this.options.invertAxes?WBe:Nq}},{key:"splitValue",value:function(n){return[n.lower,n.q1,n.median,n.q3,n.upper]}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=this.valueAxisRanges[o],l=this.splitValue(n).concat(this.filterOutliers(n.outliers));Te(n.mean)&&(l=l.concat(n.mean)),s=this.valueAxisRanges[o]=s||{min:Zi,max:Cr},s=this.valueAxisRanges[o]={min:Math.min.apply(Math,l.concat([s.min])),max:Math.max.apply(Math,l.concat([s.max]))}}},{key:"formatPointValue",value:function(n,a){var o=n.value;return this.chartService.format.auto(a,o.lower,o.q1,o.median,o.q3,o.upper,o.mean,n.category)}},{key:"filterOutliers",value:function(n){for(var a=(n||[]).length,o=[],s=0;s0||n.size<0&&a.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(n.size)),$(q(t.prototype),"addValue",this).call(this,n,a)):(this.points.push(null),this.seriesPoints[a.seriesIx].push(null))}},{key:"reflow",value:function(n){this.updateBubblesSize(n),$(q(t.prototype),"reflow",this).call(this,n)}},{key:"pointType",value:function(){return Fq}},{key:"createPoint",value:function(n,a){var o=a.series,l=a.pointIx*(zs/o.data.length),u={delay:l,duration:zs-l,type:yg},c=a.color||o.color;n.size<0&&o.negativeValues.visible&&(c=qt(o.negativeValues.color,c));var d=ne({labels:{animation:{delay:l,duration:zs-l}}},this.pointOptions(o,a.seriesIx),{markers:{type:pl,border:o.border,opacity:o.opacity,animation:u}});d=this.evalPointOptions(d,n,a),Ri(o.color)&&(c=d.color),d.markers.background=c;var h=new Fq(n,d);return h.color=c,this.append(h),h}},{key:"updateBubblesSize",value:function(n){for(var a=this.options.series,o=Math.min(n.width(),n.height()),s=0;s0&&a.options.set("stroke",{color:n.border.color||this.color,width:n.border.width,dashType:n.border.dashType,opacity:qt(n.border.opacity,n.opacity)}),this.bodyVisual=a,Ns(a),this.visual.append(a)}},{key:"createAnimation",value:function(){this.bodyVisual&&(this.animation=Vs.create(this.bodyVisual,this.options.animation))}},{key:"createHighlight",value:function(n){return dt.fromRect(this.box.toRect(),n)}},{key:"highlightVisual",value:function(){return this.bodyVisual}},{key:"highlightVisualArgs",value:function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}}]),t}(Kn);xk.prototype.tooltipAnchor=kF.prototype.tooltipAnchor,ze(xk,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}
    Target: {1}"}}),ne(xk.prototype,wl),ne(xk.prototype,xg);var JBe=xk,DF=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),function eGe(i){for(var r=i.series,t=0;t0}},{key:"createAnimation",value:function(){var n=this.points;this._setAnimationOptions();for(var a=0;a0&&a0&&void 0!==arguments[0]?arguments[0]:this.panes,a=0;a=0;s--)for(var l=0;l0&&(s=Math.max(s,o.width()-u.contentBox.width()))}if(0!==s)for(var c=0;c0){var d=xF(u),h=Math.max(c.y1-d.y1,c.y2-d.y2);o=Math.max(o,c.x1-d.x1);for(var f=0;f0&&a.y.length>0&&(this.alignAxes(a.x,a.y),this.shrinkAxisWidth(n),this.autoRotateAxisLabels(a),this.alignAxes(a.x,a.y),this.shrinkAxisWidth(n)&&this.alignAxes(a.x,a.y),this.shrinkAxisHeight(n),this.alignAxes(a.x,a.y),this.shrinkAxisHeight(n)&&this.alignAxes(a.x,a.y),this.fitAxes(n))}},{key:"autoRotateAxisLabels",value:function(n){for(var s,a=this.panes,o=fGe(a),l=0;l0&&n.y.length>0&&(this.alignAxes(n.x,n.y),this.shrinkAxisWidth(a))}}},{key:"reflowPaneAxes",value:function(n){var a=n.axes,o=a.length;if(o>0)for(var s=0;s-1){for(var a=i.split(".");a.length>1;)n=a.shift(),Te(e[n])||(e[n]={}),e=e[n];n=a.shift()}e[n]=t}var mGe=pGe,RF=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._defaults={},e}return v(t,[{key:"register",value:function(n,a){for(var o=0;os.to,a.reflow(n)),o&&(o.options.aboveAxis=s.to>s.from,o.reflow(n)),this.note&&this.note.reflow(n)}}]),t}(kF);OF.prototype.defaults=ne({},OF.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var _Ge=OF,qq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"pointType",value:function(){return _Ge}},{key:"pointValue",value:function(n){return n.valueFields}},{key:"formatPointValue",value:function(n,a){return null===n.value.from&&null===n.value.to?"":this.chartService.format.auto(a,n.value.from,n.value.to)}},{key:"plotRange",value:function(n){return n?[n.value.from,n.value.to]:0}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=n.from,l=n.to,u=this.valueAxisRanges[o];null!==n&&un(s)&&un(l)&&((u=this.valueAxisRanges[o]=u||{min:Zi,max:Cr}).min=Math.min(u.min,s),u.max=Math.max(u.max,s),u.min=Math.min(u.min,l),u.max=Math.max(u.max,l))}},{key:"aboveAxis",value:function(n){var a=n.value;return a.from=0}},{key:"plotRange",value:function(n){return[n.from,n.to]}},{key:"createSegments",value:function(){for(var n=this.options.series,a=this.seriesPoints,o=this.segments=[],s=0;s0){this.invertAxes=hn(n[0].type,[Sl,Pd,Dg,Sg,Eg,bg,Cg,wg]);for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:this.panes;this.createCategoryAxes(n),this.aggregateCategories(n),this.createCategoryAxesLabels(n),this.createCharts(n),this.createValueAxes(n)}},{key:"removeAxis",value:function(n){var a=n.options.name;$(q(t.prototype),"removeAxis",this).call(this,n),n instanceof Ec?delete this.namedCategoryAxes[a]:(this.valueAxisRangeTracker.reset(a),delete this.namedValueAxes[a]),n===this.categoryAxis&&delete this.categoryAxis,n===this.valueAxis&&delete this.valueAxis}},{key:"createCharts",value:function(n){for(var a=this.groupSeriesByPane(),o=0;o0)for(l=s.options.categories=s.options.categories.slice(0);u--;)l.push("");this.valueAxisRangeTracker.update(n.valueAxisRanges),$(q(t.prototype),"appendChart",this).call(this,n,a)}},{key:"seriesPaneName",value:function(n){var a=this.options,o=n.axis;return(Xo([].concat(a.valueAxis),function(h){return h.name===o})[0]||{}).pane||((a.panes||[{}])[0]||{}).name||"default"}},{key:"seriesCategoryAxis",value:function(n){var a=n.categoryAxis,o=a?this.namedCategoryAxes[a]:this.categoryAxis;if(!o)throw new Error("Unable to locate category axis with name "+a);return o}},{key:"stackableChartOptions",value:function(n,a){var o=n.stack;return{isStacked:o,isStacked100:o&&"100%"===o.type,clip:a.options.clip}}},{key:"groupSeriesByCategoryAxis",value:function(n){for(var a=[],o={},s=0;s0&&d.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,category:Og(c),value:Og(d)})}}},{key:"pointPane",value:function(n){for(var a=this.panes,o=0;or?l():e=setTimeout(l,r-o)};return n.cancel=function(){clearTimeout(e)},n}var LGe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._events={},e}return v(t,[{key:"bind",value:function(n,a,o){var s=arguments,l=this,u=rX(n),c=iX(a),d=u.length;if(void 0===a){for(var h in n)this.bind(h,n[h]);return this}for(var f=function(C){var w=u[C],E=c?a:a[w];if(E){if(o){var M=E;(E=function(){l.unbind(w,E),M.apply(l,s)}).original=M}(l._events[w]=l._events[w]||[]).push(E)}},g=0;g1&&void 0!==arguments[1]?arguments[1]:{},o=this._events[n];if(o){var s=o.length;a.sender=this,a._defaultPrevented=!1,a.preventDefault=PGe,a.isDefaultPrevented=BGe,o=o.slice();for(var l=0;l=0;s--)(o[s]===a||o[s].original===a)&&o.splice(s,1);else this._events[n]=[];return this}}]),t}(mt);function iX(i){return"function"==typeof i}function rX(i){return"string"==typeof i?[i]:i}function PGe(){this._defaultPrevented=!0}function BGe(){return!0===this._defaultPrevented}var VGe=["click","mouseenter","mouseleave","mousemove","resize"],UGe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).options=Object.assign({},n),a.element=e,a.element._kendoExportVisual=a.exportVisual.bind(Xe(a)),a._click=a._handler("click"),a._mouseenter=a._handler("mouseenter"),a._mouseleave=a._handler("mouseleave"),a._mousemove=a._handler("mousemove"),a._visual=new sn,Jy(e,a.options),a.bind(VGe,a.options),a._enableTracking(),a}return v(t,[{key:"draw",value:function(n){this._visual.children.push(n)}},{key:"clear",value:function(){this._visual.children=[]}},{key:"destroy",value:function(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()}},{key:"eventTarget",value:function(n){for(var o,a=D9(n);!o&&a&&(o=a._kendoNode,a!==this.element);)a=a.parentElement;if(o)return o.srcElement}},{key:"exportVisual",value:function(){return this._visual}},{key:"getSize",value:function(){return Jy(this.element)}},{key:"currentSize",value:function(n){if(!n)return this._size;this._size=n}},{key:"setSize",value:function(n){Jy(this.element,n),this.currentSize(n),this._resize()}},{key:"resize",value:function(n){var a=this.getSize(),o=this.currentSize();(n||(a.width>0||a.height>0)&&(!o||a.width!==o.width||a.height!==o.height))&&(this.currentSize(a),this._resize(a,n),this.trigger("resize",a))}},{key:"size",value:function(n){if(!n)return this.getSize();this.setSize(n)}},{key:"suspendTracking",value:function(){this._suspendedTracking=!0}},{key:"resumeTracking",value:function(){this._suspendedTracking=!1}},{key:"_enableTracking",value:function(){}},{key:"_resize",value:function(){}},{key:"_handler",value:function(n){var a=this;return function(o){var s=a.eventTarget(o);s&&!a._suspendedTracking&&a.trigger(n,{element:s,originalEvent:o,type:n})}}},{key:"_elementOffset",value:function(){var n=this.element,a=x9(n),o=T9(n);return{left:o.left+a.left,top:o.top+a.top}}},{key:"_surfacePoint",value:function(n){var a=this._elementOffset(),o=w9(n),s=o.x-a.left,l=o.y-a.top,u=R9(this.element).invert();return new Pe(s,l).transform(u)}}]),t}(LGe),PF=UGe,zGe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).childNodes=[],n.parent=null,e&&(n.srcElement=e,n.observe()),n}return v(t,[{key:"destroy",value:function(){this.srcElement&&this.srcElement.removeObserver(this);for(var n=this.childNodes,a=0;a0&&u.load(l);var c=this.element;c&&u.attachTo(c,a)}}},{key:"root",value:function(){for(var n=this;n.parent;)n=n.parent;return n}},{key:"attachTo",value:function(n,a){var o=document.createElement("div");lX(o,""+this.render()+"");var s=o.firstChild.firstChild;s&&(Vt(a)?n.insertBefore(s,n.childNodes[a]||null):n.appendChild(s),this.setElement(s))}},{key:"setElement",value:function(n){this.element&&(this.element._kendoNode=null),this.element=n,this.element._kendoNode=this;for(var a=this.childNodes,o=0;o")}},{key:"renderOffset",value:function(){return Mf("offset",this.srcElement.offset())}},{key:"mapStyle",value:function(){var n=this.srcElement;return[["stop-color",n.color()],["stop-opacity",n.opacity()]]}},{key:"optionsChange",value:function(n){"offset"===n.field?this.attr(n.field,n.value):("color"===n.field||"opacity"===n.field)&&this.css("stop-"+n.field,n.value)}}]),t}(Of),XGe=qGe,ZGe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).id=e.id,n.loadStops(),n}return v(t,[{key:"loadStops",value:function(){for(var n=this.srcElement.stops,a=this.element,o=0;o").concat(this.renderChildren(),"")}},{key:"mapCoordinates",value:function(){var n=this.srcElement,a=n.start(),o=n.end();return[["x1",a.x],["y1",a.y],["x2",o.x],["y2",o.y],this.mapSpace()]}}]),t}(dX),QGe=YGe,JGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}},{key:"mapCoordinates",value:function(){var n=this.srcElement,a=n.center(),o=n.radius();return[["cx",a.x],["cy",a.y],["r",o],this.mapSpace()]}}]),t}(dX),eVe=JGe,tVe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).srcElement=e,n.id=e.id,n.load([e]),n}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}}]),t}(Of),nVe=tVe,iVe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this)).definitionMap={},e}return v(t,[{key:"attachTo",value:function(n){this.element=n}},{key:"template",value:function(){return"".concat(this.renderChildren(),"")}},{key:"definitionChange",value:function(n){var a=n.definitions,o=n.action;"add"===o?this.addDefinitions(a):"remove"===o&&this.removeDefinitions(a)}},{key:"createDefinition",value:function(n,a){var o;return"clip"===n?o=nVe:"fill"===n&&(a instanceof t0?o=QGe:a instanceof n0&&(o=eVe)),new o(a)}},{key:"addDefinitions",value:function(n){for(var a in n)this.addDefinition(a,n[a])}},{key:"addDefinition",value:function(n,a){var o=this.element,s=this.definitionMap,l=a.id,u=s[l];if(u)u.count++;else{var c=this.createDefinition(n,a);s[l]={element:c,count:1},this.append(c),o&&c.attachTo(this.element)}}},{key:"removeDefinitions",value:function(n){for(var a in n)this.removeDefinition(n[a])}},{key:"removeDefinition",value:function(n){var a=this.definitionMap,o=n.id,s=a[o];s&&(s.count--,0===s.count&&(this.remove(this.childNodes.indexOf(s.element),1),delete a[o]))}}]),t}(Of),rVe=iVe,aVe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).options=e,n.defs=new rVe,n}return v(t,[{key:"attachTo",value:function(n){this.element=n,this.defs.attachTo(n.firstElementChild)}},{key:"clear",value:function(){P0.prototype.clear.call(this)}},{key:"template",value:function(){return this.defs.render()+this.renderChildren()}},{key:"definitionChange",value:function(n){this.defs.definitionChange(n)}}]),t}(Of),hX=aVe,fX={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},BF="solid",oVe={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},sVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){this.attr("d",this.renderData()),this.invalidate()}},{key:"optionsChange",value:function(n){switch(n.field){case"fill":n.value?this.allAttr(this.mapFill(n.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:n.value}));break;case"stroke":n.value?this.allAttr(this.mapStroke(n.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(n.value);break;default:var a=oVe[n.field];a&&this.attr(a,n.value)}$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"content",value:function(){this.element&&(this.element.textContent=this.srcElement.content())}},{key:"renderData",value:function(){return this.printPath(this.srcElement)}},{key:"printPath",value:function(n){var a=n.segments,o=a.length;if(o>0){for(var l,u,s=[],c=1;c")}}]),t}(Of),If=sVe,lVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderData",value:function(){return this.printPath(this.srcElement.toPath())}}]),t}(If),uVe=lVe,cVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){var n=this.center();this.attr("cx",n.x),this.attr("cy",n.y),this.attr("r",this.radius()),this.invalidate()}},{key:"center",value:function(){return this.srcElement.geometry().center}},{key:"radius",value:function(){return this.srcElement.geometry().radius}},{key:"template",value:function(){return"")}}]),t}(If),dVe=cVe,hVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}},{key:"optionsChange",value:function(n){"transform"===n.field&&this.transformChange(n.value),$(q(t.prototype),"optionsChange",this).call(this,n)}}]),t}(Of),fVe=hVe,vVe=/&/g,pVe=//g;function GF(i){return String(i).replace(vVe,"&").replace(pVe,"<").replace(_Ve,">").replace(gVe,""").replace(mVe,"'")}var yVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){this.allAttr(this.mapPosition()),this.invalidate()}},{key:"optionsChange",value:function(n){"src"===n.field&&this.allAttr(this.mapSource()),$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"mapPosition",value:function(){var n=this.srcElement.rect(),a=n.topLeft();return[["x",a.x],["y",a.y],["width",n.width()+"px"],["height",n.height()+"px"]]}},{key:"renderPosition",value:function(){return Rf(this.mapPosition())}},{key:"mapSource",value:function(n){var a=this.srcElement.src();return n&&(a=GF(a)),[["xlink:href",a]]}},{key:"renderSource",value:function(){return Rf(this.mapSource(!0))}},{key:"template",value:function(){return"")+""}}]),t}(If),kVe=yVe,CVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderData",value:function(){var n=this.srcElement.paths;if(n.length>0){for(var a=[],o=0;o")}}]),t}(If),wVe=SVe,VF=/&(?:[a-zA-Z]+|#\d+);/g;function UF(i){if(!i||"string"!=typeof i||!VF.test(i))return i;var r=UF._element;return VF.lastIndex=0,i.replace(VF,function(t){return r.innerHTML=t,r.textContent||r.innerText})}"undefined"!=typeof document&&(UF._element=document.createElement("span"));var DVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){var n=this.pos();this.attr("x",n.x),this.attr("y",n.y),this.invalidate()}},{key:"optionsChange",value:function(n){"font"===n.field?(this.attr("style",aX(this.mapStyle())),this.geometryChange()):"content"===n.field&&$(q(t.prototype),"content",this).call(this,this.srcElement.content()),$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"mapStyle",value:function(n){var a=$(q(t.prototype),"mapStyle",this).call(this,n),o=this.srcElement.options.font;return n&&(o=GF(o)),a.push(["font",o],["white-space","pre"]),a}},{key:"pos",value:function(){var n=this.srcElement.position(),a=this.srcElement.measure();return n.clone().setY(n.y+a.baseline)}},{key:"renderContent",value:function(){var n=this.srcElement.content();return pN(n=GF(n=UF(n)))}},{key:"renderTextAnchor",value:function(){var n;return(this.options||{}).rtl&&!(ml.browser.msie||ml.browser.edge)&&(n="end"),Mf("text-anchor",n)}},{key:"template",value:function(){return"").concat(this.renderContent(),"")}}]),t}(If),EVe=DVe;Oc.Arc=uVe,Oc.Circle=dVe,Oc.Group=fVe,Oc.Image=kVe,Oc.MultiPath=bVe,Oc.Path=If,Oc.Rect=wVe,Oc.Text=EVe;var xVe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n))._root=new hX(Object.assign({rtl:"rtl"===zD(e,"direction").direction},a.options)),lX(a.element,a._template()),a._rootElement=a.element.firstElementChild,function AVe(i){var r;try{r=i.getScreenCTM?i.getScreenCTM():null}catch(a){}if(r){var t=-r.e%1,e=-r.f%1,n=i.style;(0!==t||0!==e)&&(n.left=t+"px",n.top=e+"px")}}(a._rootElement),a._root.attachTo(a._rootElement),hN(a.element,{click:a._click,mouseover:a._mouseenter,mouseout:a._mouseleave,mousemove:a._mousemove}),a.resize(),a}return v(t,[{key:"type",get:function(){return"svg"}},{key:"destroy",value:function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,fN(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),$(q(t.prototype),"destroy",this).call(this)}},{key:"translate",value:function(n){var a="".concat(Math.round(n.x)," ").concat(Math.round(n.y)," ").concat(this._size.width," ").concat(this._size.height);this._offset=n,this._rootElement.setAttribute("viewBox",a)}},{key:"draw",value:function(n){$(q(t.prototype),"draw",this).call(this,n),this._root.load([n])}},{key:"clear",value:function(){$(q(t.prototype),"clear",this).call(this),this._root.clear()}},{key:"svg",value:function(){return""+this._template()}},{key:"exportVisual",value:function(){var n=this._visual,a=this._offset;if(a){var o=new sn;o.children.push(n),o.transform(Hn().translate(-a.x,-a.y)),n=o}return n}},{key:"_resize",value:function(){this._offset&&this.translate(this._offset)}},{key:"_template",value:function(){return"").concat(this._root.render(),"")}}]),t}(PF),MVe=xVe,Ic={};function V0(i,r){var t=r.segments;if(0!==t.length){var e=t[0],n=e.anchor();i.moveTo(n.x,n.y);for(var a=1;a0&&c.load(u,a,o),Vt(a)?this.insertAt(c,a):this.append(c)}}},{key:"load",value:function(n,a,o){this.loadElements(n,a,o),this.invalidate()}},{key:"setOpacity",value:function(n){if(this.srcElement){var a=this.srcElement.opacity();Vt(a)&&this.globalAlpha(n,a)}}},{key:"globalAlpha",value:function(n,a){var o=a;o&&n.globalAlpha&&(o*=n.globalAlpha),n.globalAlpha=o}},{key:"visible",value:function(){var n=this.srcElement;return!n||n&&!1!==n.options.visible}}]),t}(P0),gX=OVe,IVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderTo",value:function(n){if(this.visible()){n.save(),this.setTransform(n),this.setClip(n),this.setOpacity(n);for(var a=this.childNodes,o=0;o0;)(a=n.pop()).addObserver(this),"Group"===a.nodeType?Yy(n,a.children):this._insertShape(a)}},{key:"_insertShape",value:function(n){var a=n.bbox();if(a){var o=this.getSectors(a),s=o[0][0],l=o[1][0];if(this.inRoot(o))this.root.insert(n,a);else{var u=this.rootMap;u[s]||(u[s]={}),u[s][l]||(u[s][l]=new GVe(new cn([s*vu,l*vu],[vu,vu]))),u[s][l].insert(n,a)}}}},{key:"remove",value:function(n){if(n.removeObserver(this),"Group"===n.nodeType)for(var a=n.children,o=0;o1||n[1].length>1}},{key:"getSectors",value:function(n){for(var a=n.bottomRight(),o=Math.floor(a.x/vu),s=Math.floor(a.y/vu),l=[[],[]],u=Math.floor(n.origin.x/vu);u<=o;u++)l[0].push(u);for(var c=Math.floor(n.origin.y/vu);c<=s;c++)l[1].push(c);return l}}]),t}(mt);function zVe(i,r){return i._zIndexr._zIndex?-1:0}var kX=UVe,HVe=function(){function i(r){p(this,i),r.bind("mouseenter",this._mouseenter.bind(this)),r.bind("mouseleave",this._mouseleave.bind(this)),this.element=r.element}return v(i,[{key:"clear",value:function(){this._resetCursor()}},{key:"destroy",value:function(){this._resetCursor(),delete this.element}},{key:"_mouseenter",value:function(t){var e=this._shapeCursor(t);e?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(e)):this._resetCursor()}},{key:"_mouseleave",value:function(){this._resetCursor()}},{key:"_shapeCursor",value:function(t){for(var e=t.element;e&&!Vt(e.options.cursor);)e=e.parent;if(e)return e.options.cursor}},{key:"_getCursor",value:function(){if(this.element)return this.element.style.cursor}},{key:"_setCursor",value:function(t){this.element&&(this.element.style.cursor=t,this._current=t)}},{key:"_resetCursor",value:function(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)}}]),i}(),KVe=HVe,WVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderTo",value:function(n){n.save(),this.setTransform(n),this.setClip(n),this.setOpacity(n),n.beginPath(),this.renderPoints(n,this.srcElement),this.setLineDash(n),this.setLineCap(n),this.setLineJoin(n),this.setFill(n),this.setStroke(n),n.restore()}},{key:"setFill",value:function(n){var a=this.srcElement.options.fill,o=!1;return a&&("Gradient"===a.nodeType?(this.setGradientFill(n,a),o=!0):mf(a.color)||(n.fillStyle=a.color,n.save(),this.globalAlpha(n,a.opacity),n.fill(),n.restore(),o=!0)),o}},{key:"setGradientFill",value:function(n,a){var s,o=this.srcElement.rawBBox();if(a instanceof t0){var l=a.start(),u=a.end();s=n.createLinearGradient(l.x,l.y,u.x,u.y)}else if(a instanceof n0){var c=a.center();s=n.createRadialGradient(c.x,c.y,0,c.x,c.y,a.radius())}(function jVe(i,r){for(var t=0;t0)return n.strokeStyle=a.color,n.lineWidth=dN(a.width,1),n.save(),this.globalAlpha(n,a.opacity),n.stroke(),n.restore(),!0}},{key:"dashType",value:function(){var n=this.srcElement.options.stroke;if(n&&n.dashType)return n.dashType.toLowerCase()}},{key:"setLineDash",value:function(n){var a=this.dashType();if(a&&a!==BF){var o=fX[a];n.setLineDash?n.setLineDash(o):(n.mozDash=o,n.webkitLineDash=o)}}},{key:"setLineCap",value:function(n){var a=this.dashType(),o=this.srcElement.options.stroke;a&&a!==BF?n.lineCap="butt":o&&o.lineCap&&(n.lineCap=o.lineCap)}},{key:"setLineJoin",value:function(n){var a=this.srcElement.options.stroke;a&&a.lineJoin&&(n.lineJoin=a.lineJoin)}},{key:"renderPoints",value:function(n,a){V0(n,a)}}]),t}(gX),Nf=WVe,$Ve=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){V0(n,this.srcElement.toPath())}}]),t}(Nf),qVe=$Ve,XVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){var a=this.srcElement.geometry(),o=a.center;n.arc(o.x,o.y,a.radius,0,2*Math.PI)}}]),t}(Nf),ZVe=XVe,YVe=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this,e)).onLoad=a.onLoad.bind(Xe(a)),a.onError=a.onError.bind(Xe(a)),a.loading=gf();var o=a.img=new Image;return n&&!/^data:/i.test(e.src())&&(o.crossOrigin=n),o.src=e.src(),o.complete?a.onLoad():(o.onload=a.onLoad,o.onerror=a.onError),a}return v(t,[{key:"renderTo",value:function(n){"resolved"===this.loading.state()&&(n.save(),this.setTransform(n),this.setClip(n),this.drawImage(n),n.restore())}},{key:"optionsChange",value:function(n){"src"===n.field?(this.loading=gf(),this.img.src=this.srcElement.src()):$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"onLoad",value:function(){this.loading.resolve(),this.invalidate()}},{key:"onError",value:function(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))}},{key:"drawImage",value:function(n){var a=this.srcElement.rect(),o=a.topLeft();n.drawImage(this.img,o.x,o.y,a.width(),a.height())}}]),t}(Nf),QVe=YVe,JVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){for(var a=this.srcElement.paths,o=0;o"}},{key:"_enableTracking",value:function(){this._searchTree=new kX,this._cursor=new KVe(this),$(q(t.prototype),"_enableTracking",this).call(this)}},{key:"_trackMouse",value:function(n){if(!this._suspendedTracking){var a=this.eventTarget(n);if("click"!==n.type){var o=this._currentShape;o&&o!==a&&this.trigger("mouseleave",{element:o,originalEvent:n,type:"mouseleave"}),a&&o!==a&&this.trigger("mouseenter",{element:a,originalEvent:n,type:"mouseenter"}),this.trigger("mousemove",{element:a,originalEvent:n,type:"mousemove"}),this._currentShape=a}else a&&this.trigger("click",{element:a,originalEvent:n,type:"click"})}}}]),t}(PF),CX=aUe,bX=function(){return"undefined"!=typeof document},lUe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._items=[{name:"svg",type:MVe},{name:"canvas",type:CX}],e}return v(t,[{key:"create",value:function(n,a){var o=this._items,s=o[0];if(a&&a.type)for(var l=a.type.toLowerCase(),u=0;ua.x2&&(h=a.x2-o.x),sa.y2&&(f=a.y2-o.y),l=0;n--)t(r[n],n)},DUe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,Object.assign({},bUe,n)))._rect=e,a._fieldMap={},a}return v(t,[{key:"rect",value:function(n){return n?(this._rect=n,this):this._rect}},{key:"_initMap",value:function(){var n=this.options,a=this._fieldMap;"horizontal"===n.orientation?(a.sizeField="width",a.groupsSizeField="height",a.groupAxis="x",a.groupsAxis="y"):(a.sizeField="height",a.groupsSizeField="width",a.groupAxis="y",a.groupsAxis="x"),n.reverse?(this.forEach=wUe,this.justifyAlign=CUe):(this.forEach=SUe,this.justifyAlign=U0)}},{key:"reflow",value:function(){if(this._rect&&0!==this.children.length){this._initMap(),this.options.transform&&this.transform(null);for(var E,M,R,n=this.options,a=this._rect,o=this._initGroups(),s=o.groups,l=o.groupsSize,u=this._fieldMap,c=u.sizeField,d=u.groupsSizeField,h=u.groupAxis,f=u.groupsAxis,g=new Pe,_=new Pe,C=new kf,w=U0(l,a,n.alignContent,f,d),N=function(H,se){var me=M.elements[se];_[h]=E,_[f]=U0(H.size[d],R,n.alignItems,f,d),function kUe(i,r,t){var e=t.transform()||Hn(),n=e.matrix();n.e+=i.x-r.origin.x,n.f+=i.y-r.origin.y,e.matrix(n),t.transform(e)}(_,H,me),E+=H.size[c]+n.spacing},V=0;Va.size[c]){var U=a.size[c]/R.size[c],ee=R.topLeft().scale(U,U),G=U0(R.size[d]*U,a,n.alignContent,f,d),I=Hn();"x"===h?I.translate(a.origin.x-ee.x,G-ee.y):I.translate(G-ee.x,a.origin.y-ee.y),I.scale(U,U),this.transform(I)}}}},{key:"_initGroups",value:function(){for(var n=this.options,a=this.children,o=n.lineSpacing,s=n.wrap,l=n.spacing,u=this._fieldMap.sizeField,c=this._newGroup(),d=[],h=function(){d.push(c),f+=c.lineSize+o},f=-o,g=0;gthis._rect.size[u]?0===c.bboxes.length?(this._addToGroup(c,C,_),h(),c=this._newGroup()):(h(),c=this._newGroup(),this._addToGroup(c,C,_)):this._addToGroup(c,C,_))}return c.bboxes.length&&h(),{groups:d,groupsSize:f}}},{key:"_addToGroup",value:function(n,a,o){n.size+=a.size[this._fieldMap.sizeField]+this.options.spacing,n.lineSize=Math.max(a.size[this._fieldMap.groupsSizeField],n.lineSize),n.bboxes.push(a),n.elements.push(o)}},{key:"_newGroup",value:function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}}]),t}(sn),EUe=DUe,TUe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e)).chartService=n,a}return v(t,[{key:"render",value:function(){var n=this.children,a=this.options,o=a.vertical;this.visual=new EUe(null,{spacing:o?0:a.spacing,lineSpacing:o?a.spacing:0,orientation:o?"vertical":"horizontal",reverse:a.rtl,alignItems:o?"start":"center"});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(n=r.call(this,e)).chartService=a,hn(n.options.position,[Fn,Gn,Zn,Sn,z0])||(n.options.position=Gn),n.createContainers(),n.createLegendTitle(e.title),n.createItems(),n}return v(t,[{key:"createContainers",value:function(){var n=this.options,a=n.position,o=n.align,s=a,l=Qt;a===z0?s=Sn:hn(a,[Fn,Zn])?(s="start"===o?Sn:"end"===o?Gn:Qt,l=a):o&&("start"===o?l=Fn:"end"===o&&(l=Zn)),this.container=new Cf({margin:n.margin,padding:n.padding,background:n.background,border:n.border,vAlign:l,align:s,zIndex:n.zIndex,shrinkToFit:!0}),this.itemsContainer=this.hasTitle()?new Cf({vAlign:l,align:s,zIndex:n.zIndex,shrinkToFit:!0}):this.container,this.append(this.container)}},{key:"createItems",value:function(){var n=this.getService(),a=this.options,o=this.isVertical(),s=new AUe({vertical:o,spacing:a.spacing,rtl:n.rtl},n),l=a.items;a.reverse&&(l=l.slice(0).reverse());for(var u=l.length,c=0;c0}},{key:"reflow",value:function(n){var a=this.options,o=n.clone();this.hasItems()?(a.position===z0?(this.containerCustomReflow(o),this.box=o):this.containerReflow(o),this.hasTitle()&&this.title.reflow(new et(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=o}},{key:"containerReflow",value:function(n){var a=this.options,o=this.container,s=a.position,l=a.width,u=a.height,c=s===Fn||s===Zn?yt:Ct,d=this.isVertical(),h=n.clone(),f=n.clone();(s===Sn||s===Gn)&&(f.y1=h.y1=0),d&&u?(f.y2=f.y1+u,f.align(h,Ct,o.options.vAlign)):!d&&l&&(f.x2=f.x1+l,f.align(h,yt,o.options.align)),o.reflow(f);var g=(f=o.box).clone();(a.offsetX||a.offsetY)&&(f.translate(a.offsetX,a.offsetY),o.reflow(f)),g[c+1]=n[c+1],g[c+2]=n[c+2],this.box=g}},{key:"containerCustomReflow",value:function(n){var a=this.options,o=this.container,s=a.offsetX,l=a.offsetY,u=a.width,c=a.height,d=this.isVertical(),h=n.clone();d&&c?h.y2=h.y1+c:!d&&u&&(h.x2=h.x1+u),o.reflow(h),o.reflow(new et(s,l,s+(h=o.box).width(),l+h.height()))}},{key:"renderVisual",value:function(){this.hasItems()&&$(q(t.prototype),"renderVisual",this).call(this)}},{key:"createLegendTitle",value:function(n){var a=ne({},{color:Xi,position:Fn,align:Qt},n),o=a.text;if(n&&!1!==n.visible){if(Te(a)&&a.visible){var s=ea(a);s?o=s({text:o}):a.format&&(o=this.chartService.format.auto(a.format,o))}this.title=new Yo(o,a),this.createTitleLayout(),this.appendTitleLayoutContent()}}},{key:"createTitleLayout",value:function(){this.layout=new AN({vertical:!0,wrap:!1}),this.container.append(this.layout)}},{key:"hasTitle",value:function(){return Boolean(this.options.title&&!1!==this.options.title.visible)}},{key:"appendTitleLayoutContent",value:function(){this.options.title.position===Zn?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))}}]),t}(Kn);ze(AX,{position:Gn,items:[],offsetX:0,offsetY:0,margin:ti(5),padding:ti(5),border:{color:Xi,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:Sn,vAlign:Qt}});var OUe=AX,jF=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._registry=[],e}return v(t,[{key:"register",value:function(n,a){this._registry.push({type:n,seriesTypes:a})}},{key:"create",value:function(n,a,o){for(var u,s=this._registry,l=s[0],c=0;c0){l=d;break}}return new l.type(u,a,o)}}]),t}(mt);jF.current=new jF;var Nc=jF;function Fc(i){var r=document.createElement("div");return i&&(r.className=i),r}function xX(i){for(var r=i;r&&!Zy(r,"k-handle");)r=r.parentNode;return r}var MX=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t),s=r.call(this);var l=e.element;return s.options=ne({},s.options,a),s.chart=e,s.observer=o,s.chartElement=l,s.categoryAxis=n,s._dateAxis=s.categoryAxis instanceof fk,s.initOptions(),s.visible=s.options.visible&&l.offsetHeight,s.visible&&(s.createElements(),s.set(s._index(s.options.from),s._index(s.options.to)),s.bindEvents()),s}return v(t,[{key:"onPane",value:function(n){return this.categoryAxis.pane===n}},{key:"createElements",value:function(){var n=this.options,a=this.wrapper=Fc("k-selector");Oi(a,{top:n.offset.top,left:n.offset.left,width:n.width,height:n.height,direction:"ltr"});var o=this.selection=Fc("k-selection");this.leftMask=Fc("k-mask"),this.rightMask=Fc("k-mask"),a.appendChild(this.leftMask),a.appendChild(this.rightMask),a.appendChild(o),o.appendChild(Fc("k-selection-bg"));var s=this.leftHandle=Fc("k-handle k-left-handle"),l=this.rightHandle=Fc("k-handle k-right-handle");s.appendChild(Fc()),l.appendChild(Fc()),o.appendChild(s),o.appendChild(l),this.chartElement.appendChild(a);var u=Oi(o,["borderLeftWidth","borderRightWidth","height"]),c=Oi(s,"height").height,d=Oi(l,"height").height;n.selection={border:{left:u.borderLeftWidth,right:u.borderRightWidth}},Oi(s,{top:(u.height-c)/2}),Oi(l,{top:(u.height-d)/2}),a.style.cssText=a.style.cssText}},{key:"bindEvents",value:function(){!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),tk(this.wrapper,De({},E0,this._mousewheelHandler))),this._domEvents=ON.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})}},{key:"initOptions",value:function(){var n=this.options,o=this.categoryAxis.pane.chartsBox(),s=this.chart.chartService.intl;this._dateAxis&&ne(n,{min:ya(s,n.min),max:ya(s,n.max),from:ya(s,n.from),to:ya(s,n.to)});var l=Oi(this.chartElement,["paddingLeft","paddingTop"]),u=l.paddingLeft,c=l.paddingTop;this.options=ne({},{width:o.width(),height:o.height()+.1,padding:{left:u,top:c},offset:{left:o.x1+u,top:o.y1+c},from:n.min,to:n.max},n)}},{key:"destroy",value:function(){this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(ik(this.wrapper,De({},E0,this._mousewheelHandler)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)}},{key:"_rangeEventArgs",value:function(n){return{axis:this.categoryAxis.options,from:this._value(n.from),to:this._value(n.to)}}},{key:"_start",value:function(n){var a=this.options,o=_l(n);if(!this._state&&o){this.chart._unsetActivePoint(),this._state={moveTarget:xX(o)||o,startLocation:n.x?n.x.location:0,range:{from:this._index(a.from),to:this._index(a.to)}};var s=this._rangeEventArgs({from:this._index(a.from),to:this._index(a.to)});this.trigger(lF,s)&&(this._state=null)}}},{key:"_press",value:function(n){var a;(a=this._state?this._state.moveTarget:xX(_l(n)))&&Za(a,"k-handle-active")}},{key:"_move",value:function(n){if(this._state){var a=this._state,o=this.options,s=this.categoryAxis,l=a.range,u=a.moveTarget,c=s.options.reverse,d=this._index(o.from),h=this._index(o.to),f=this._index(o.min),g=this._index(o.max),_=a.startLocation-n.x.location,C={from:l.from,to:l.to},w=l.to-l.from,E=Oi(this.wrapper,"width").width/(s.categoriesCount()-1),M=Math.round(_/E)*(c?-1:1);if(u){var R=Zy(u,"k-left-handle"),N=Zy(u,"k-right-handle");Zy(u,"k-selection k-selection-bg")?(l.from=Math.min(Math.max(f,d-M),g-w),l.to=Math.min(l.from+w,g)):R&&!c||N&&c?(l.from=Math.min(Math.max(f,d-M),g-1),l.to=Math.max(l.from+1,l.to)):(R&&c||N&&!c)&&(l.to=Math.min(Math.max(f+1,h-M),g),l.from=Math.min(l.to-1,l.from)),(l.from!==C.from||l.to!==C.to)&&(this.move(l.from,l.to),this.trigger(Tk,this._rangeEventArgs(l)))}}}},{key:"_end",value:function(){if(this._state){var n=this._state.moveTarget;n&&function e2e(i,r){i&&i.className&&(i.className=i.className.replace(r,"").replace(JFe," "))}(n,"k-handle-active");var a=this._state.range;this.set(a.from,a.to),this.trigger(uF,this._rangeEventArgs(a)),delete this._state}}},{key:"_tap",value:function(n){var a=this.options,o=this.categoryAxis,s=this.chart._eventCoordinates(n),l=o.pointCategoryIndex(new Ut(s.x,o.box.y1)),u=this._index(a.from),c=this._index(a.to),d=this._index(a.min),h=this._index(a.max),f=c-u,_={},C=3===n.event.which,w=Math.round(u+f/2-l);this._state||C||(this.chart._unsetActivePoint(),o.options.justified||w--,_.from=Math.min(Math.max(d,u-w),h-f),_.to=Math.min(_.from+f,h),this._start(n),this._state&&(this._state.range=_,this.trigger(Tk,this._rangeEventArgs(_)),this._end()))}},{key:"_mousewheel",value:function(n){var a=this,o=lN(n);if(this._start({target:this.selection}),this._state){var s=this._state.range;n.preventDefault(),n.stopPropagation(),Math.abs(o)>1&&(o*=3),this.options.mousewheel.reverse&&(o*=-1),this.expand(o)&&this.trigger(Tk,{axis:this.categoryAxis.options,delta:o,originalEvent:n,from:this._value(s.from),to:this._value(s.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(function(){a._end()},150)}}},{key:"_gesturestart",value:function(n){var a=this.options;this._state={range:{from:this._index(a.from),to:this._index(a.to)}};var o=this._rangeEventArgs(this._state.range);this.trigger(lF,o)?this._state=null:n.preventDefault()}},{key:"_gestureend",value:function(){this._state&&(this.trigger(uF,this._rangeEventArgs(this._state.range)),delete this._state)}},{key:"_gesturechange",value:function(n){var a=this.chart,s=this.options,l=this.categoryAxis,u=this._state.range,c=a._toModelCoordinates(n.touches[0].x.location).x,d=a._toModelCoordinates(n.touches[1].x.location).x,h=Math.min(c,d),f=Math.max(c,d);n.preventDefault(),u.from=l.pointCategoryIndex(new Ut(h))||s.min,u.to=l.pointCategoryIndex(new Ut(f))||s.max,this.move(u.from,u.to),this.trigger(Tk,this._rangeEventArgs(u))}},{key:"_index",value:function(n){var a=n;return n instanceof Date&&(a=this.categoryAxis.categoryIndex(n)),a}},{key:"_value",value:function(n){var a=n;return this._dateAxis&&(a=this.categoryAxis.categoryAt(n))>this.options.max&&(a=this.options.max),a}},{key:"_slot",value:function(n){var a=this.categoryAxis,o=this._index(n);return a.getSlot(o,o,!0)}},{key:"move",value:function(n,a){var o=this.options,s=this.categoryAxis.options.reverse,l=o.offset,u=o.padding,c=o.selection.border,h=s?n:a,f="x"+(s?2:1),g=this._slot(s?a:n),_=tt(g[f]-l.left+u.left);Oi(this.leftMask,{width:_}),Oi(this.selection,{left:_}),g=this._slot(h);var C=tt(o.width-(g[f]-l.left+u.left));Oi(this.rightMask,{width:C});var w=o.width-C;w!==o.width&&(w+=c.right),Oi(this.rightMask,{left:w}),Oi(this.selection,{width:Math.max(o.width-(_+C)-c.right,0)})}},{key:"set",value:function(n,a){var o=this.options,s=this._index(o.min),l=this._index(o.max),u=Mt(this._index(n),s,l),c=Mt(this._index(a),u+1,l);o.visible&&this.move(u,c),o.from=this._value(u),o.to=this._value(c)}},{key:"expand",value:function(n){var a=this.options,o=this._index(a.min),s=this._index(a.max),l=a.mousewheel.zoom,u=this._index(a.from),c=this._index(a.to),d={from:u,to:c},h=ne({},d);if(this._state&&(d=this._state.range),l!==Gn&&(d.from=Mt(Mt(u-n,0,c-1),o,s)),l!==Sn&&(d.to=Mt(Mt(c+n,d.from+1,s),o,s)),d.from!==h.from||d.to!==h.to)return this.set(d.from,d.to),!0}},{key:"zoom",value:function(n,a){var o=this.options,s=this._index(o.min),l=this._index(o.max),u=this._index(o.from),c=this._index(o.to),d={from:u,to:c},h=ne({},d),g=yt+(this.categoryAxis.options.reverse?"2":"1"),_=this.categoryAxis.lineBox(),C=Math.abs(_[g]-a.x),w=_.width(),E=tt(C/w,2),M=tt(E*n),R=tt((1-E)*n);if(this._state&&(d=this._state.range),d.from=Mt(Mt(u-M,0,c-1),s,l),d.to=Mt(Mt(c+R,d.from+1,l),s,l),d.from!==h.from||d.to!==h.to)return this.set(d.from,d.to),!0}},{key:"trigger",value:function(n,a){return(this.observer||this.chart).trigger(n,a)}}]),t}(mt);ze(MX,{visible:!0,mousewheel:{zoom:"both"},min:Cr,max:Zi});var RX=MX,FUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"show",value:function(n){if(n&&n.tooltipAnchor&&(!this._current||this._current!==n)){var a=ne({},this.options,n.options.tooltip),o=n.tooltipAnchor();o?(this._current=n,$(q(t.prototype),"show",this).call(this,{point:n,anchor:o},a,n)):this.hide()}}},{key:"hide",value:function(){delete this._current,$(q(t.prototype),"hide",this).call(this)}}]),t}(EF),LUe=FUe,OX=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e.chartService,n)).plotArea=e,a.formatService=e.chartService.format,a}return v(t,[{key:"showAt",value:function(n,a){var o=Xo(n,function(c){var d=c.series.tooltip;return!(d&&!1===d.visible)});if(o.length>0){var s=o[0],l=this.plotArea.categoryAxis.getSlot(s.categoryIx),u=a?this._slotAnchor(a,l):this._defaultAnchor(s,l);this.show({anchor:u,shared:!0,points:n,category:s.category,categoryText:this.formatService.auto(this.options.categoryFormat,s.category),series:this.plotArea.series},this.options)}}},{key:"_slotAnchor",value:function(n,a){return this.plotArea.categoryAxis.options.vertical||(n.x=a.center().x),{point:n,align:{horizontal:"left",vertical:"center"}}}},{key:"_defaultAnchor",value:function(n,a){var o=n.owner.pane.chartsBox(),s=this.plotArea.categoryAxis.options.vertical,l=o.center(),u=a.center();return{point:s?new Ut(l.x,u.y):new Ut(u.x,l.y),align:{horizontal:"center",vertical:"center"}}}}]),t}(EF);ze(OX,{categoryFormat:"{0:d}"});var IX=OX,NX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.element,a=this.options;if(n.bbox()){this.origin=a.origin;var s=a.vertical?Ct:yt,l=this.fromScale=new Pe(1,1);l[s]=vk,n.transform(Hn().scale(l.x,l.y))}else this.abort()}},{key:"step",value:function(n){var a=Fs(this.fromScale.x,1,n),o=Fs(this.fromScale.y,1,n);this.element.transform(Hn().scale(a,o,this.origin))}},{key:"abort",value:function(){$(q(t.prototype),"abort",this).call(this),this.element.transform(null)}}]),t}(Vs);ze(NX,{duration:zs}),uu.current.register(Sl,NX);var FX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.center=this.element.bbox().center();this.element.transform(Hn().scale(vk,vk,n))}},{key:"step",value:function(n){this.element.transform(Hn().scale(n,n,this.center))}}]),t}(Vs);ze(FX,{easing:"easeOutElastic"}),uu.current.register(yg,FX);var LX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)}},{key:"step",value:function(n){this.element.opacity(n*this.fadeTo)}}]),t}(Vs);ze(LX,{duration:200,easing:"linear"}),uu.current.register(Ld,LX);var PX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this.element.transform(Hn().scale(vk,vk,this.options.center))}},{key:"step",value:function(n){this.element.transform(Hn().scale(n,n,this.options.center))}}]),t}(Vs);ze(PX,{easing:"easeOutElastic",duration:zs}),uu.current.register(Bd,PX);var BX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"render",value:function(){$(q(t.prototype),"render",this).call(this),this.renderSegments()}},{key:"createSegment",value:function(n,a,o){return new(a.style===_g?vF:Mg)(n,a,o)}},{key:"animationPoints",value:function(){return $(q(t.prototype),"animationPoints",this).call(this).concat(this._segments)}},{key:"createMissingValue",value:function(n,a){if(a===Ac){var o={x:n.x,y:n.y};return Qo(o.x)||(o.x=0),Qo(o.y)||(o.y=0),o}}}]),t}(I0);ne(BX.prototype,pF);var GX=BX,WF=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initFields",value:function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new x0,this.yAxisRangeTracker=new x0}},{key:"render",value:function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.panes,a=this.groupSeriesByPane(),o=0;o0&&this.appendChart(new I0(this,{series:n,clip:a.options.clip}),a)}},{key:"createScatterLineChart",value:function(n,a){n.length>0&&this.appendChart(new GX(this,{series:n,clip:a.options.clip}),a)}},{key:"createBubbleChart",value:function(n,a){n.length>0&&this.appendChart(new YBe(this,{series:n,clip:a.options.clip}),a)}},{key:"createXYAxis",value:function(n,a,o){for(var s=n.name,l=a?this.namedYAxes:this.namedXAxes,u=a?this.yAxisRangeTracker:this.xAxisRangeTracker,c=ne({reverse:!a&&this.chartService.rtl},n,{vertical:a}),d=Gd(c.type,w0),h=u.query(),f=d?{min:.1,max:1}:{min:0,max:1},g=u.query(s)||h||f,_=[c.min,c.max],C=this.series,w=0;w0&&h.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,x:Og(d),y:Og(h)})}},{key:"updateAxisOptions",value:function(n,a){var o=n.options.vertical,s=this.groupAxes(this.panes),l=(o?s.y:s.x).indexOf(n);VX(this.options,l,o,a),VX(this.originalOptions,l,o,a)}}]),t}(Vd);function VX(i,r,t,e){ne([].concat(t?i.yAxis:i.xAxis)[r],e)}ze(WF,{xAxis:{},yAxis:{}}),ne(WF.prototype,Mk);var PUe=WF,$F=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,a)).value=e,o.sector=n,o}return v(t,[{key:"render",value:function(){var n=this.options.labels,a=this.owner.chartService,o=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var s=ea(n),l=this.pointData();if(s?o=s(l):n.format&&(o=a.format.auto(n.format,o)),n.visible&&(o||0===o)){if(n.position===Qt||n.position===D0)n.color||(n.color=CN(this.options.color)),n.background||(n.background=this.options.color);else{var u=a.theme.seriesDefaults.labels;n.color=n.color||u.color,n.background=n.background||u.background}this.label=new Yo(o,ne({},n,{align:Qt,vAlign:"",animation:{type:Ld,delay:this.animationDelay}}),l),this.append(this.label)}}}},{key:"reflow",value:function(n){this.render(),this.box=n,this.reflowLabel()}},{key:"reflowLabel",value:function(){var n=this.options.labels,a=this.label,o=this.sector.clone(),s=n.distance,l=o.middle();if(a){var d,u=a.box.height(),c=a.box.width();if(n.position===Qt)o.radius=Math.abs((o.radius-u)/2)+u,d=o.point(l),a.reflow(new et(d.x,d.y-u/2,d.x,d.y));else if(n.position===D0)o.radius=o.radius-u/2,d=o.point(l),a.reflow(new et(d.x,d.y-u/2,d.x,d.y));else{var h;(d=o.clone().expand(s).point(l)).x>=o.center.x?(h=d.x+c,a.orientation=Gn):(h=d.x-c,a.orientation=Sn),a.reflow(new et(h,d.y-u,d.x,d.y))}}}},{key:"createVisual",value:function(){var n=this,a=this.sector,o=this.options;if($(q(t.prototype),"createVisual",this).call(this),this.value)if(o.visual){var s=(a.startAngle+180)%360,l=o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new Pe(a.center.x,a.center.y),radius:a.radius,innerRadius:a.innerRadius,startAngle:s,endAngle:s+a.angle,options:o,sender:this.getSender(),createVisual:function(){var c=new sn;return n.createSegmentVisual(c),c}});l&&this.visual.append(l)}else this.createSegmentVisual(this.visual)}},{key:"createSegmentVisual",value:function(n){var a=this.sector,o=this.options,s=o.border||{},u=o.color,c={color:u,opacity:o.opacity},d=this.createSegment(a,ne({fill:c,stroke:{opacity:o.opacity},zIndex:o.zIndex},s.width>0?{stroke:{color:s.color,width:s.width,opacity:s.opacity,dashType:s.dashType}}:{}));n.append(d),yF(o)&&n.append(this.createGradientOverlay(d,{baseColor:u,fallbackFill:c},ne({center:[a.center.x,a.center.y],innerRadius:a.innerRadius,radius:a.radius,userSpace:!0},o.overlay)))}},{key:"createSegment",value:function(n,a){return a.singleSegment?new kl(new bo(new Pe(n.center.x,n.center.y),n.radius),a):e0.current.createRing(n,a)}},{key:"createAnimation",value:function(){var a=this.sector.center;ne(this.options,{animation:{center:[a.x,a.y],delay:this.animationDelay}}),$(q(t.prototype),"createAnimation",this).call(this)}},{key:"createHighlight",value:function(n){var a=this.options.highlight||{},o=a.border||{};return this.createSegment(this.sector,ne({},n,{fill:{color:a.color,opacity:a.opacity},stroke:{opacity:o.opacity,width:o.width,color:o.color}}))}},{key:"highlightVisual",value:function(){return this.visual.children[0]}},{key:"highlightVisualArgs",value:function(){var n=this.sector;return{options:this.options,radius:n.radius,innerRadius:n.innerRadius,center:new Pe(n.center.x,n.center.y),startAngle:n.startAngle,endAngle:n.angle+n.startAngle,visual:this.visual}}},{key:"tooltipAnchor",value:function(){var n=this.sector.clone().expand(5),a=n.middle();return{point:n.point(a),align:VUe(a+180)}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}},{key:"pointData",value:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}}}]),t}(Kn),BUe=tt(br(30),10),GUe=tt(br(60),10);function VUe(i){var r=br(i),t=tt(Math.sin(r),10),e=tt(Math.cos(r),10);return{horizontal:Math.abs(t)>GUe?Qt:e<0?Gn:Sn,vertical:Math.abs(t)f-5?f-5:N,_.translate(w.x-C.x,w.y-C.y);for(var V=f-N,U=new Ut(V+_.x1+N,V+_.y1+N),ee=0;ee0&&(M.sort(this.labelComparator(!0)),this.leftLabelsReflow(M)),R.length>0&&(R.sort(this.labelComparator(!1)),this.rightLabelsReflow(R)),this.box=_}},{key:"leftLabelsReflow",value:function(n){var a=this.distanceBetweenLabels(n);this.distributeLabels(a,n)}},{key:"rightLabelsReflow",value:function(n){var a=this.distanceBetweenLabels(n);this.distributeLabels(a,n)}},{key:"distanceBetweenLabels",value:function(n){var a=Yi(this.points),o=a.sector,s=n.length-1,l=o.radius+a.options.labels.distance,u=[],c=n[0].box,d=tt(c.y1-(o.center.y-l-c.height()-c.height()/2));u.push(d);for(var h=0;h0&&(s>=0||l0){var u=Math.min(n[o],l);l-=u,n[o]-=u,n[a]+=u}return l}},{key:"reflowLabels",value:function(n,a){var h,o=Yi(this.points),s=o.sector,l=o.options.labels,u=a.length,c=l.distance,d=s.center.y-(s.radius+c)-a[0].box.height();n[0]+=2;for(var f=0;fc.center.x?(M=c.center.x-c.radius-4,g.lineTo(u.options.labels.align!==xc?M>E.x?M:w.x-8:M,w.y),g.lineTo(E.x,R.y)):(N.y=R.y,g.lineTo(N.x,N.y))),g.lineTo(R.x,R.y),this._connectorLines.push(g),this.visual.append(g)}}}}},{key:"renderVisual",value:function(){if($(q(t.prototype),"renderVisual",this).call(this),P9(this.options.series,function(u){return u.autoFit})){var n=this.targetBox,a=this.box.center(),o=this.visual.bbox();if(!o)return;var s=o.bottomRight(),l=Math.min((a.y-n.y1)/(a.y-o.origin.y),(n.y2-a.y)/(s.y-a.y),(a.x-n.x1)/(a.x-o.origin.x),(n.x2-a.x)/(s.x-a.x));l<1&&this.visual.transform(Hn().scale(l,l,[a.x,a.y]))}}},{key:"labelComparator",value:function(n){var a=n?-1:1;return function(o,s){return((o.parent.sector.middle()+270)%360-(s.parent.sector.middle()+270)%360)*a}}},{key:"hAlignLabel",value:function(n,a,o,s,l){var u=a.radius,c=a.center,d=c.x,h=c.y,f=Math.min(Math.abs(h-o),Math.abs(h-s));return f>u?n:d+Math.sqrt(u*u-f*f)*(l?1:-1)}},{key:"pointInCircle",value:function(n,a,o){return Math.pow(a.x-n.x,2)+Math.pow(a.y-n.y,2)u-5?u-5:f),_=0,w=0;w1)for(var n=function rze(i){for(var r=[],t=0;t1){var s=o[0].linePoints[0],l=Yi(o),u=Yi(l.linePoints);0===s.categoryIx&&u.categoryIx===u.categoriesCount-1&&Yi(o).linePoints.push(s)}}}},{key:"createSegment",value:function(n,a,o){var u=new(a.style===_g?vF:Mg)(n,a,o),c=this.seriesMissingValues(a);return(n.length===a.data.length||c===mg)&&(u.options.closed=!0),u}}]),t}(mF);ze(QX,{clip:!1,limitPoints:!1});var JX=QX,aze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"fillToAxes",value:function(){}}]),t}(_F),oze=aze,sze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"fillToAxes",value:function(){}}]),t}(Rg),lze=sze,uze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createSegment",value:function(n,a,o,s){var c,d,h,u=(a.line||{}).style;return this.options.isStacked&&o>0&&s&&(d=s.linePoints.slice(0),c=s),u===_g?(h=new oze(n,a,o,c,d)).options.closed=!0:(n.push(n[0]),h=new lze(n,a,o,c,d)),h}},{key:"seriesMissingValues",value:function(n){return n.missingValues||Ac}}]),t}(JX),cze=uze,eZ=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),r.call(this,e,null,n)}return v(t)}(WX);ze(eZ,{overlay:{gradient:"none"},labels:{distance:10}});var dze=eZ,tZ=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).forEach=e.rtl?Aq:Tq,n}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=this.children,s=a.gap,l=a.spacing,u=o.length,d=n.angle/(u+s+l*(u-1)),h=n.startAngle+d*(s/2);this.forEach(o,function(f){var g=n.clone();g.startAngle=h,g.angle=d,f.sector&&(g.radius=f.sector.radius),f.reflow(g),f.sector=g,h+=d+d*l})}}]),t}(Kn);ze(tZ,{gap:1,spacing:0});var hze=tZ,fze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflow",value:function(n){var a=this.options.reverse,o=this.children,s=o.length,l=a?s-1:0,u=a?-1:1;this.box=new et;for(var c=l;c>=0&&c1,a.isStacked100=l&&"100%"===l.type&&s.length>1,a.isStacked100&&(this._isStacked100=!0)}return a}},{key:"createAreaChart",value:function(n,a){if(0!==n.length){var o=new cze(this,this.chartOptions(n));this.appendChart(o,a)}}},{key:"createLineChart",value:function(n,a){if(0!==n.length){var o=new JX(this,this.chartOptions(n));this.appendChart(o,a)}}},{key:"createBarChart",value:function(n,a){if(0!==n.length){var o=n[0],s=this.chartOptions(n);s.gap=o.gap,s.spacing=o.spacing;var l=new pze(this,s);this.appendChart(l,a),this._hasBarCharts=!0}}},{key:"seriesCategoryAxis",value:function(){return this.categoryAxis}},{key:"_dispatchEvent",value:function(n,a,o){var s=n._eventCoordinates(a),l=new Ut(s.x,s.y),u=this.categoryAxis.getCategory(l),c=this.valueAxis.getValue(l);null!==u&&null!==c&&n.trigger(o,{element:_l(a),category:u,value:c})}},{key:"createCrosshairs",value:function(){}}]),t}(qX);ne(QF.prototype,Mk,{appendChart:xf.prototype.appendChart,aggregateSeries:xf.prototype.aggregateSeries,seriesSourcePoints:xf.prototype.seriesSourcePoints}),ze(QF,{categoryAxis:{categories:[]},valueAxis:{}});var gze=QF,JF=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).value=e,o.options.index=a.index,o}return v(t,[{key:"reflow",value:function(n){var a=this.points,o=this.children[0];this.box=new et(a[0].x,a[0].y,a[1].x,a[2].y),o&&o.reflow(new et(n.x1,a[0].y,n.x2,a[2].y))}},{key:"createVisual",value:function(){var o,n=this,a=this.options;$(q(t.prototype),"createVisual",this).call(this),(o=a.visual?a.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:a,sender:this.getSender(),createVisual:function(){return n.createPath()}}):this.createPath())&&this.visual.append(o)}},{key:"createPath",value:function(){var n=this.options,a=n.border;return dt.fromPoints(this.points,{fill:{color:n.color,opacity:n.opacity},stroke:{color:a.color,opacity:a.opacity,width:a.width}}).close()}},{key:"createHighlight",value:function(n){return dt.fromPoints(this.points,n)}},{key:"highlightVisual",value:function(){return this.visual.children[0]}},{key:"highlightVisualArgs",value:function(){var n=dt.fromPoints(this.points).close();return{options:this.options,path:n}}},{key:"tooltipAnchor",value:function(){var n=this.box;return{point:new Ut(n.center().x,n.y1),align:{horizontal:"center",vertical:"top"}}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}}]),t}(Kn);ze(JF,{color:Ln,border:{width:1}}),ne(JF.prototype,wl);var mze=JF,e2=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).plotArea=e,a.points=[],a.labels=[],a.legendItems=[],a.render(),a}return v(t,[{key:"formatPointValue",value:function(n,a){return this.chartService.format.auto(a,n.value)}},{key:"render",value:function(){var a=this.plotArea.options.seriesColors,o=void 0===a?[]:a,s=this.options.series[0],l=s.data;if(l)for(var u=zq(s),c=u.total,d=u.points,h=0;hd.percentage&&(d=l[h]);for(var f=c.percentage/d.percentage*a,g=(a-f)/2,_=0,C=0;C1&&void 0!==arguments[1]?arguments[1]:.05,e=Ps(r),n=1-t;return function(a){var o=e.toHSL(),s=100-o.l;return o.l+=Math.min((n-a)*s,s),o.toCss()}}(l)(n.value/this.valueRange.max));var c=new nZ(n,s);return c.color=l,this.append(c),c}},{key:"seriesAxes",value:function(n){var a=n.xAxis,o=n.yAxis,s=this.plotArea,l=a?s.namedXAxes[a]:s.axisX,u=o?s.namedYAxes[o]:s.axisY;if(!l)throw new Error("Unable to locate X axis with name "+a);if(!u)throw new Error("Unable to locate Y axis with name "+o);return{xAxis:l,yAxis:u}}},{key:"reflow",value:function(n){var a=this,o=this.points,s=!this.options.clip,l=0;this.traverseDataPoints(function(u,c){var d=o[l++],h=a.seriesAxes(c.series),f=h.xAxis,g=h.yAxis,_=f.categoryIndex(u.x),C=g.categoryIndex(u.y),w=f.getSlot(_,_,s),E=g.getSlot(C,C,s);if(d)if(w&&E){var M=a.pointSlot(w,E);d.reflow(M)}else d.visible=!1}),this.box=n}},{key:"pointSlot",value:function(n,a){return new et(n.x1,a.y1,n.x2,a.y2)}},{key:"traverseDataPoints",value:function(n){for(var a=this.options.series,o=0;o0&&void 0!==arguments[0]?arguments[0]:this.panes;this.bindCategories(),this.createAxes(n),this.createCharts(n),this.createAxisLabels()}},{key:"bindCategories",value:function(){for(var n=this.srcSeries||this.series,a=0;a0&&h.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,x:Og(d),y:Og(h)})}},{key:"updateAxisOptions",value:function(n,a){var o=n.options.vertical,s=this.groupAxes(this.panes),l=(o?s.y:s.x).indexOf(n);iZ(this.options,l,o,a),iZ(this.originalOptions,l,o,a)}},{key:"crosshairOptions",value:function(n){return Object.assign({},n.options.crosshair,{zIndex:0})}}]),t}(Vd);function iZ(i,r,t,e){ne([].concat(t?i.yAxis:i.xAxis)[r],e)}ze(n2,{xAxis:{},yAxis:{}}),ne(n2.prototype,Mk);var wze=n2,Jo="color",es="first",Qa="max",Lc="noteText";Nc.current.register(xf,[Sl,xc,_k,Dg,gk,Sg,kg,yk,Pd,bk,mk,wg,Ck,bg,Sk,Cg,kk,Eg]),Nc.current.register(PUe,[rF,aF,yg]),Nc.current.register(jX,[Bd]),Nc.current.register($Ue,[y0]),Nc.current.register(kze,[k0]),Nc.current.register(ize,[tF,nF,iF]),Nc.current.register(gze,[C0,b0,S0]),Nc.current.register(wze,[eF]),Qi.current.register([Sl,xc,_k,Dg,gk,Sg],[qo],[fu,Jo,Lc,lq,uq]),Qi.current.register([Ck,bg,kk,Eg],["from","to"],[fu,Jo,Lc]),Qi.current.register([Sk,Cg],[qo],[fu,Jo,Lc,"summary"]),Qi.current.register([tF,nF,iF],[yt,Ct],[Jo]),Qi.current.register([C0,b0,S0],[qo],[Jo]),Qi.current.register([k0],[qo],[fu,Jo,"visibleInLegend","visible"]),Af.current.register([Sl,xc,_k,Dg,gk,Sg,Sk,Cg],{value:Qa,color:es,noteText:es,errorLow:"min",errorHigh:Qa}),Af.current.register([Ck,bg,kk,Eg],{from:"min",to:Qa,color:es,noteText:es}),Af.current.register([C0,b0,S0],{value:Qa,color:es}),Qi.current.register([rF,aF,yg],[yt,Ct],[Jo,Lc,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Qi.current.register([yg],[yt,Ct,"size"],[Jo,fu,Lc]),Qi.current.register([eF],[yt,Ct,qo],[Jo,Lc]),Qi.current.register([kg,yk],["open","high","low","close"],[fu,Jo,"downColor",Lc]),Af.current.register([kg,yk],{open:Qa,high:Qa,low:"min",close:Qa,color:es,downColor:es,noteText:es}),Qi.current.register([mk,wg],["lower","q1","median","q3","upper","mean","outliers"],[fu,Jo,Lc]),Af.current.register([mk,wg],{lower:Qa,q1:Qa,median:Qa,q3:Qa,upper:Qa,mean:Qa,outliers:es,color:es,noteText:es}),Qi.current.register([Pd,bk],["current","target"],[fu,Jo,"visibleInLegend",Lc]),Af.current.register([Pd,bk],{current:Qa,target:Qa,color:es,noteText:es}),Qi.current.register([Bd,y0],[qo],[fu,Jo,"explode","visibleInLegend","visible"]);var a2=[fu,qo,yt,Ct],Ff="mousemove",rZ="contextmenu",aZ="mouseleave",oZ=function(i){b(t,i);var r=S(t);function t(e,n,a){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};p(this,t),(o=r.call(this)).observers=[],o.addObserver(s.observer),o.chartService=new MN(Xe(o),s),o.chartService.theme=a,o._initElement(e);var l=ne({},o.options,n);return o._originalOptions=ne({},l),o._theme=a,o._initTheme(l,a),o._initHandlers(),o._initSurface(),o.bindCategories(),A2e.preloadFonts(n,function(){o.fontLoaded=!0,o._destroyed||(o.trigger("init"),o._redraw(),o._attachEvents())}),o}return v(t,[{key:"_initElement",value:function(n){for(this._setElementClass(n),n.style.position="relative";n.firstChild;)n.removeChild(n.firstChild);this.element=n}},{key:"_setElementClass",value:function(n){Za(n,"k-chart")}},{key:"_initTheme",value:function(n,a){for(var o=[],s=n.series||[],l=0;l0||a.height>0;n||s&&(!o||a.width!==o.width||a.height!==o.height)?(this._size=a,this._resize(a,n),this.trigger("resize",a)):s&&this._selections&&P9(this._selections,function(l){return!l.visible})&&(this._destroySelections(),this._setupSelection())}},{key:"_resize",value:function(){this._noTransitionsRedraw()}},{key:"redraw",value:function(n){if(this.applyDefaults(this.options),this.applySeriesColors(),n){var a=this._model._plotArea,o=a.findPane(n);a.redraw(o)}else this._redraw()}},{key:"getAxis",value:function(n){return oq(n,this._plotArea.axes)}},{key:"findAxisByName",value:function(n){return this.getAxis(n)}},{key:"findPaneByName",value:function(n){for(var a=this._plotArea.panes,o=0;o=0){var c=this._plotArea.pointsByCategoryIndex(u);o.showAt(c)}}else l&&o.show(l)}},{key:"hideTooltip",value:function(){this._tooltip.hide()}},{key:"_initSurface",value:function(){var n=this.surface,a=this._surfaceWrap(),o=this.options.chartArea||{};o.width&&kc(a,{width:o.width}),o.height&&kc(a,{height:o.height}),n&&n.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=Ok.create(a,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))}},{key:"_surfaceWrap",value:function(){return this.element}},{key:"_redraw",value:function(){var n=this._getModel();this._size={width:n.options.width,height:n.options.height},this._destroyView(),this._model=n,this._plotArea=n._plotArea,n.renderVisual(),!1!==this.options.transitions&&n.traverse(function(a){a.animation&&a.animation.setup()}),this._initSurface(),this.surface.draw(n.visual),!1!==this.options.transitions&&n.traverse(function(a){a.animation&&a.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new hUe,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),uZ(this._plotArea.panes),this._navState||this._cancelDomEvents()}},{key:"exportVisual",value:function(n){var a;if(n&&(n.width||n.height||n.options)){var o=this.options,s=ne({},n.options,{chartArea:{width:n.width,height:n.height}});o2(this._originalOptions,s),this.options=ne({},this._originalOptions,s),this._initTheme(this.options,this._theme),this.bindCategories();var l=this._getModel();l.renderVisual(),uZ(l._plotArea.panes),a=l.visual,this.options=o}else a=this.surface.exportVisual();return a}},{key:"_sharedTooltip",value:function(){return this._plotArea instanceof xf&&this.options.tooltip&&this.options.tooltip.shared}},{key:"_createPannable",value:function(){var n=this.options;!1!==n.pannable&&(this._pannable=new fUe(this._plotArea,n.pannable))}},{key:"_createZoomSelection",value:function(){var n=this.options.zoomable,a=(n||{}).selection;!1!==n&&!1!==a&&(this._zoomSelection=new vUe(this,a))}},{key:"_createMousewheelZoom",value:function(){var n=this.options.zoomable,a=(n||{}).mousewheel;!1!==n&&!1!==a&&(this._mousewheelZoom=new yUe(this,a))}},{key:"_toggleDragZoomEvents",value:function(){var a=this.options.zoomable,s=(a||{}).mousewheel,l=!(this.options.pannable||!1!==a&&!1!==(a||{}).selection||this.requiresHandlers([sF,wk,Dk])),u=(!1===a||!1===s)&&!this.requiresHandlers([Ek,Tg,Ag]),c=this.element;this._dragZoomEnabled&&l&&u?(c.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):!this._dragZoomEnabled&&!(l&&u)&&(c.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!l,!u)}},{key:"_toggleDomEvents",value:function(n,a){var o=this.domEvents;!o||(o.toggleDrag&&o.toggleDrag(n),o.toggleZoom&&o.toggleZoom(a))}},{key:"_createTooltip",value:function(){var n=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(n):new LUe(this.chartService,n)}},{key:"_createSharedTooltip",value:function(n){return new IX(this._plotArea,n)}},{key:"applyDefaults",value:function(n,a){(function Mze(i,r){var e,n,a,t=(r||{}).axisDefaults||{};function o(l){var u=(l||{}).color||n.color,c=ne({},t,t[e],n,n[e],{line:{color:u},labels:{color:u},title:{color:u}},l);return delete c[e],c}for(var s=0;s1?a:a[0]})(n,a),function Rze(i,r){var t=i.series,e=t.length,n=i.seriesDefaults,a=ne({},i.seriesDefaults),o=r?ne({},r.seriesDefaults):{},s=ne({},o);lZ(a),lZ(s);for(var l=0;l=0&&this.observers.splice(a,1)}},{key:"requiresHandlers",value:function(n){for(var a=this.observers,o=0;o1&&void 0!==arguments[1]?arguments[1]:{};n===vq&&(a.anchor.point=this._toDocumentCoordinates(a.anchor.point)),a.sender=this;for(var o=this.observers,s=!1,l=0;l=.1){s=Math.round(10*s),this._gestureDistance=n.distance;var l={delta:s,axisRanges:Ik(this._plotArea.axes),originalEvent:n};if(this._zooming||!this.trigger(Ek,l)){var u=this._eventCoordinates(n);this._zooming||(this._zooming=!0),(l.axisRanges=a.updateRanges(s,u))&&!this.trigger(Tg,l)&&a.zoom()}}}}},{key:"_mouseout",value:function(n){if(n.element){var a=this._drawingChartElement(n.element,n);a&&a.leave&&a.leave(this,n.originalEvent)}}},{key:"_start",value:function(n){var a=this._eventCoordinates(n);this._stopChartHandlers(n)||!this._plotArea.backgroundContainsPoint(a)||(this.requiresHandlers([sF,wk,Dk])&&this._startNavigation(n,a,sF),this._pannable&&this._pannable.start(n)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(n)&&this.trigger(Ek,{axisRanges:Ik(this._plotArea.axes),originalEvent:n}))}},{key:"_move",value:function(n){var a=this._navState,o=this._pannable;if(!this._stopChartHandlers(n)){if(o){var s=o.move(n);s&&!this.trigger(wk,{axisRanges:s,originalEvent:n})&&o.pan()}else if(a){for(var l={},u=a.axes,c=0;c1,u=this._hasInactiveOpacity();return this._updateHoveredPoint(o,a),o&&s!==o&&o.hover?(this._activePoint=o,!this._sharedTooltip()&&!o.hover(this,a)&&(this._displayTooltip(o),u?this._displayInactiveOpacity(o,l):this._highlight.show(o))):!o&&u&&(l&&this._activeChartInstance&&(this._updateSeriesOpacity(o,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),o}},{key:"_displayTooltip",value:function(n){ne({},this.options.tooltip,n.options.tooltip).visible&&this._tooltip.show(n)}},{key:"_displayInactiveOpacity",value:function(n,a,o){var s=this._activeChartInstance=this._chartInstanceFromPoint(n);if(s)if(a)this._updateSeriesOpacity(n),this._applySeriesOpacity(s.children,null,!0),this._applySeriesOpacity(s.children,n.series),this._highlight.show(o||n);else{var l;if(!s.supportsPointInactiveOpacity())return void this._highlight.show(n);(l=this._getInactivePoints(n,s))&&l.length&&this._highlight.show(l,1-this._getInactiveOpacityForSeries(n.series))}}},{key:"_getInactivePoints",value:function(n,a){return this._getAllPointsOfType(a,n.constructor).filter(function(s){return s!==n})}},{key:"_getAllPointsOfType",value:function(n,a){for(var o=[],s=0;s0;return n||a}},{key:"_getInactiveOpacityForSeries",value:function(n){return n.highlight.inactiveOpacity||this.options.seriesDefaults.highlight.inactiveOpacity||n.opacity||1}},{key:"_getDefaultOpacityForSeries",value:function(n){return n.defaultOpacity||n.opacity||1}},{key:"_mouseover",value:function(n){var a=this._startHover(n.element,n.originalEvent);a&&a.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),tk(document,De({},Ff,this._mouseMoveTrackHandler)))}},{key:"_mouseMoveTracking",value:function(n){var a=this.options,o=this._tooltip,s=this._highlight,l=this._activePoint,u=this._eventCoordinates(n);if(this._plotArea.box.containsPoint(u)){if(l&&l.tooltipTracking&&l.series&&l.parent.getNearestPoint){var c=l.parent.getNearestPoint(u.x,u.y,l.seriesIx);c&&c!==l&&(this._activePoint=c,!c.hover(this,n))&&(ne({},a.tooltip,c.options.tooltip).visible&&o.show(c),s.show(c))}}else ik(document,De({},Ff,this._mouseMoveTrackHandler)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null}},{key:"_mousemove",value:function(n){var a=this._eventCoordinates(n),o=this._plotArea;if(this._trackCrosshairs(a),o.hover){var s=o.backgroundContainsPoint(a);s?(o.hovered=!0,this._plotArea.hover(this,n)):o.hovered&&!s&&(this.trigger(oF),o.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(a,n)}},{key:"_trackCrosshairs",value:function(n){for(var a=this._plotArea.crosshairs,o=0;o0&&!this.trigger(hq,_)?(s.visible&&c.showAt(f,n),d.show(f),this._sharedHighlight=!0):c.hide(),this._tooltipCategoryIx=h}else o&&this._sharedHighlight&&(d.hide(),c.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(d.hide(),c.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}}},{key:"hideElements",value:function(n){var a=this._plotArea;this._mousemove.cancel(),a.hideCrosshairs(),this._unsetActivePoint(n)}},{key:"_unsetActivePoint",value:function(n){var a=this._tooltip,o=this._highlight;this._activePoint=null,this._hoveredPoint=null,a&&!(n&&n.keepTooltipOpen)&&a.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,o&&o.hide()}},{key:"_deferRedraw",value:function(){this._redraw()}},{key:"_clearRedrawTimeout",value:function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)}},{key:"bindCategories",value:function(){for(var a=[].concat(this.options.categoryAxis),o=0;o0)for(var E=(d=Kq(n,p0(f.categoryField,_[0])))?Hq:p0,M=0;M0){d&&(u=function Ize(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wf,t=Oze(i,r),e=t.length,n=e>0?[t[0]]:[],a=1;a1,u):s.show(u)}},{key:"_shouldAttachMouseMove",value:function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([fq,oF])}},{key:"updateMouseMoveHandler",value:function(){ik(this.element,De({},Ff,this._mousemove)),this._shouldAttachMouseMove()&&tk(this.element,De({},Ff,this._mousemove))}},{key:"applyOptions",value:function(n,a){o2(this._originalOptions,n),this._originalOptions=ne(this._originalOptions,n),this.options=ne({},this._originalOptions),a&&(this._theme=a,this.chartService.theme=a),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()}},{key:"setOptions",value:function(n,a){this.applyOptions(n,a),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()}},{key:"setDirection",value:function(n){this.chartService.rtl=Boolean(n),this.surface&&"svg"===this.surface.type&&this._destroySurface()}},{key:"setIntlService",value:function(n){this.chartService.intl=n}},{key:"noTransitionsRedraw",value:function(){this._noTransitionsRedraw()}},{key:"destroy",value:function(){var n;this._destroyed=!0,ik(this.element,(De(n={},rZ,this._clickHandler),De(n,E0,this._mousewheelHandler),De(n,Ff,this._mousemove),De(n,aZ,this._mouseleaveHandler),n)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&ik(document,De({},Ff,this._mouseMoveTrackHandler)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()}},{key:"_destroySurface",value:function(){var n=this.surface;n&&(n.unbind("mouseenter",this._surfaceMouseenterHandler),n.unbind("mouseleave",this._surfaceMouseleaveHandler),n.destroy(),this.surface=null)}},{key:"_destroySelections",value:function(){var n=this._selections;if(n)for(;n.length>0;)n.shift().destroy()}},{key:"_destroyView",value:function(){var n=this._model;n&&(n.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)}}]),t}(mt);function sZ(i,r){if(i)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:wf,t=1,e=i.length;t0&&(_+=o.left+o.right),_}},{key:"_createSharedTooltip",value:function(n){return new Bze(this._plotArea,n)}}],[{key:"normalizeOptions",value:function(n){var a=fZ(n);return(a=Jr(a)?{seriesDefaults:{data:a}}:ne({},a)).series||(a.series=[{data:fZ(a.data)}]),ne(a,{seriesDefaults:{type:a.type}}),(hn(a.series[0].type,cZ)||hn(a.seriesDefaults.type,cZ))&&(a=ne({},{categoryAxis:{crosshair:{visible:!1}}},a)),a}}]),t}(s2);ze(vZ,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var Uze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this._initialOpacity=parseFloat(Oi(this.element,"opacity").opacity)}},{key:"step",value:function(n){Oi(this.element,{opacity:String(Fs(this._initialOpacity,0,n))})}},{key:"abort",value:function(){$(q(t.prototype),"abort",this).call(this),Oi(this.element,{display:"none",opacity:String(this._initialOpacity)})}},{key:"cancel",value:function(){$(q(t.prototype),"abort",this).call(this),Oi(this.element,{opacity:String(this._initialOpacity)})}}]),t}(Vs),zze=Uze;function u2(i,r){var t=document.createElement("div");return t.className=i,r&&(t.style.cssText=r),t}var pZ=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;p(this,t),(o=r.call(this)).options=ne({},o.options,a),o.container=e,o.chartService=n;var s=Oi(e,["paddingLeft","paddingTop"]);return o.chartPadding={top:s.paddingTop,left:s.paddingLeft},o.createElements(),e.appendChild(o.element),o}return v(t,[{key:"createElements",value:function(){var n=this.element=u2("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),a=this.tooltip=u2("k-tooltip k-chart-tooltip"),o=this.scroll=u2("k-scroll");a.innerHTML=" ",n.appendChild(a),n.appendChild(o)}},{key:"show",value:function(n,a,o){var s=this.element,l=this.options,u=this.scroll,c=this.tooltip,d=ni(ii(n)+ii(a-n)/2),h=.4*o.width(),f=o.center().x-h,w=(o.center().x-f)/(l.max-l.min),E=d-l.min,M=this.chartService.intl.format(l.format,n,a),R=ea(l);this.clearHideTimeout(),this._visible||(Oi(s,{visibility:"hidden",display:"block"}),this._visible=!0),R&&(M=R({from:n,to:a})),c.innerHTML=M,Oi(c,{left:o.center().x-c.offsetWidth/2,top:o.y1});var N=Oi(c,["marginTop","borderTopWidth","height"]);Oi(u,{width:h,left:f+E*w,top:o.y1+N.marginTop+N.borderTopWidth+N.height/2}),Oi(s,{visibility:"visible"})}},{key:"clearHideTimeout",value:function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()}},{key:"hide",value:function(){var n=this;this.clearHideTimeout(),this._hideTimeout=setTimeout(function(){n._visible=!1,n._hideAnimation=new zze(n.element),n._hideAnimation.setup(),n._hideAnimation.play()},this.options.hideDelay)}},{key:"destroy",value:function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll}}]),t}(mt);ze(pZ,{format:"{0:d} - {1:d}",hideDelay:500});var Hze=pZ,Ud="_navigator",Pc=Ud,jze=function(i){b(t,i);var r=S(t);function t(e){var n,a;p(this,t),(a=r.call(this)).chart=e;var o=a.options=ne({},a.options,e.options.navigator),s=o.select;return s&&(s.from=a.parseDate(s.from),s.to=a.parseDate(s.to)),Te(o.hint.visible)||(o.hint.visible=o.visible),a.chartObserver=new sN(Xe(a),(De(n={},wk,"_drag"),De(n,Dk,"_dragEnd"),De(n,Tg,"_zoom"),De(n,Ag,"_zoomEnd"),n)),e.addObserver(a.chartObserver),a}return v(t,[{key:"parseDate",value:function(n){return ya(this.chart.chartService.intl,n)}},{key:"clean",value:function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)}},{key:"destroy",value:function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()}},{key:"redraw",value:function(){this._redrawSelf(),this.initSelection()}},{key:"initSelection",value:function(){var n=this.chart,a=this.options,o=this.mainAxis(),s=o.roundedRange(),l=s.min,u=s.max,c=a.select,d=c.from,h=c.to,f=c.mousewheel,g=function Wze(i){return gZ.prototype=i,new gZ}(o);0!==o.categoriesCount()&&(this.clean(),g.box=o.box,this.selection=new RX(n,g,{min:l,max:u,from:d||l,to:h||u,mousewheel:qt(f,{zoom:"left"}),visible:a.visible},new sN(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),a.hint.visible&&(this.hint=new Hze(n.element,n.chartService,{min:l,max:u,template:ea(a.hint),format:a.hint.format})))}},{key:"setRange",value:function(){var o=this.chart._createPlotArea(!0).namedCategoryAxes[Pc].roundedRange(),s=o.min,l=o.max,u=this.options.select||{},c=u.from||s;cl&&(d=l),this.options.select=ne({},u,{from:c,to:d}),this.filterAxes()}},{key:"_redrawSelf",value:function(n){var a=this.chart._plotArea;a&&a.redraw(Yi(a.panes),n)}},{key:"redrawSlaves",value:function(){var n=this.chart,a=n._plotArea,o=a.panes.slice(0,-1);a.srcSeries=n.options.series,a.options.categoryAxis=n.options.categoryAxis,a.clearSeriesPointsCache(),a.redraw(o)}},{key:"_drag",value:function(n){var g,a=this.chart,o=this.selection,s=a._eventCoordinates(n.originalEvent),l=this.mainAxis(),u=l.roundedRange(),c=l.pane.box.containsPoint(s),h=n.axisRanges[a._plotArea.categoryAxis.options.name],f=this.options.select;if(h&&!c&&o){g=f.from&&f.to?ii(f.to)-ii(f.from):ii(o.options.to)-ii(o.options.from);var _=ni(Mt(ii(h.min),u.min,ii(u.max)-g)),C=ni(Mt(ii(_)+g,ii(u.min)+g,u.max));this.options.select={from:_,to:C},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),o.set(_,C),this.showHint(_,C)}}},{key:"_dragEnd",value:function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()}},{key:"readSelection",value:function(){var n=this.selection.options,o=n.to,s=this.options.select;s.from=n.from,s.to=o}},{key:"filterAxes",value:function(){for(var n=this.options.select,a=void 0===n?{}:n,s=this.chart.options.categoryAxis,l=a.from,u=a.to,c=0;c1&&(d*=3),f-h>1?(o.zoom(d,g),this.readSelection()):(a.options.min=l.from,l.from=a.scaleRange(-n.delta*this.chart._mousewheelZoomRate(),g).min),u&&(this.filterAxes(),this.redrawSlaves()),o.set(l.from,l.to),this.showHint(this.options.select.from,this.options.select.to)}}},{key:"_zoomEnd",value:function(n){this._dragEnd(n)}},{key:"showHint",value:function(n,a){this.hint&&this.hint.show(n,a,this.chart._plotArea.backgroundBox())}},{key:"_selectStart",value:function(n){return this.chart._selectStart(n)}},{key:"_select",value:function(n){return this.showHint(n.from,n.to),this.chart._select(n)}},{key:"_selectEnd",value:function(n){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(n)}},{key:"mainAxis",value:function(){var n=this.chart._plotArea;if(n)return n.namedCategoryAxes[Pc]}},{key:"select",value:function(n,a){var o=this.options.select;return n&&a&&(o.from=this.parseDate(n),o.to=this.parseDate(a),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(n,a)),{from:o.from,to:o.to}}}],[{key:"setup",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n.__navi){n.__navi=!0;var o=ne({},a.navigator,n.navigator),s=n.panes=[].concat(n.panes),l=ne({},o.pane,{name:Ud});o.visible||(l.visible=!1,l.height=.1),s.push(l),t.attachAxes(n,o),t.attachSeries(n,o,a)}}},{key:"attachAxes",value:function(n,a){var o=a.series||[],s=n.categoryAxis=[].concat(n.categoryAxis),l=n.valueAxis=[].concat(n.valueAxis),c=0===Ji(o,dq).length,d=ne({type:"date",pane:Ud,roundToBaseUnit:!c,justified:c,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:a.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),h=a.categoryAxis;s.push(ne({},d,{maxDateGroups:200},h,{name:Pc,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),ne({},d,h,{name:Pc+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),ne({},d,h,{name:Pc+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),l.push(ne({name:Pc,pane:Ud,majorGridLines:{visible:!1},visible:!1},a.valueAxis))}},{key:"attachSeries",value:function(n,a,o){for(var s=n.series=n.series||[],l=[].concat(a.series||[]),u=o.seriesColors,c=a.seriesDefaults,d=0;d3&&void 0!==arguments[3]?arguments[3]:{};return p(this,t),(o=r.call(this)).element=e,o.theme=a,o.contextService=new MN(Xe(o),s),o._originalOptions=ne({},o.options,n),o.options=ne({},o._originalOptions),o._initTheme(a),o.redraw(),o}return v(t,[{key:"destroy",value:function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement}},{key:"value",value:function(n){var a=this.pointers[0];if(0===arguments.length)return a.value();a.value(n),this._setValueOptions(n)}},{key:"_draw",value:function(){var n=this.surface;n.clear(),n.draw(this._visuals)}},{key:"exportVisual",value:function(){return this._visuals}},{key:"allValues",value:function(n){var a=this.pointers,o=[];if(0===arguments.length){for(var s=0;s0&&(s=MZ(s,o.width)),Jze.fromRect(s,{stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n.background}})}},{key:"_initSurface",value:function(){var n=this.options,a=this.surface,o=this._surfaceElement(),s=this._surfaceSize();kc(o,s),a&&a.options.type===n.renderAs?(this.surface.clear(),this.surface.resize()):(a&&a.destroy(),this.surface=e3e.create(o,{type:n.renderAs}))}},{key:"_surfaceSize",value:function(){var n=this.options,a=this._getSize();return n.gaugeArea&&ne(a,n.gaugeArea),a}},{key:"_surfaceElement",value:function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement}},{key:"getSize",value:function(){return this._getSize()}},{key:"_getSize",value:function(){var n=this.element,a=this._defaultSize(),o=n.offsetWidth,s=n.offsetHeight;return o||(o=a.width),s||(s=a.height),{width:o,height:s}}},{key:"_defaultSize",value:function(){return{width:200,height:200}}},{key:"_toggleTransitions",value:function(n){this.options.transitions=n;for(var a=0;a0&&n.visible){var s=new d2({stroke:{color:n.color,dashType:n.dashType,width:n.width}});s.moveTo(a.x1,a.y1).lineTo(a.x2,a.y2),o.append(s)}return o}},{key:"renderTicks",value:function(){var n=new Lk,a=this.options,o=a.majorTicks.visible?a.majorUnit:0,s={vertical:a.vertical,mirror:a.labels.mirror,lineBox:this.lineBox()};return IZ(n,this.getMajorTickPositions(),s,a.majorTicks),IZ(n,this.getMinorTickPositions(),s,ne({},{skipUnit:o/a.minorUnit},a.minorTicks)),n}}]),t}(Us);ze(NZ,{min:0,max:50,majorTicks:{size:15,align:zd,color:Xi,width:.5,visible:!0},minorTicks:{size:10,align:zd,color:Xi,width:.5,visible:!0},line:{width:.5},labels:{position:zd,padding:2},mirror:!1,_alignLines:!1});var n3e=NZ,FZ=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),a=r.call(this);var o=e.options,s=o.min,l=o.max,u=a.options=ne({},a.options,n);return u.fill=u.color,a.scale=e,u.value=Te(u.value)?Mt(u.value,s,l):s,a}return v(t,[{key:"value",value:function(n){var a=this.options,o=a.value;if(0===arguments.length)return o;var s=this.scale.options,l=s.min,u=s.max;a._oldValue=Te(a._oldValue)?a.value:l,a.value=Mt(n,l,u),this.elements&&this.repaint()}}]),t}(mt);ze(FZ,{color:Xi});var h2=FZ,LZ=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).options=ne({track:{visible:Te(n.track)}},a.options),a}return v(t,[{key:"reflow",value:function(){var g,_,C,n=this.options,a=this.scale,o=a.options,s=o.mirror,l=o.vertical,u=a.lineBox(),c=n.track.size||n.size,d=n.size/2,h=ti(n.margin),f=l?h[s?"left":"right"]:h[s?"bottom":"top"];f=s?-f:f,l?(C=new et(u.x1+f,u.y1,u.x1+f,u.y2),s?C.x1-=c:C.x2+=c,n.shape!==Fk&&(g=_=new et(u.x2+f,u.y1-d,u.x2+f,u.y2+d))):(C=new et(u.x1,u.y1-f,u.x2,u.y1-f),s?C.y2+=c:C.y1-=c,n.shape!==Fk&&(g=_=new et(u.x1-d,u.y1-f,u.x2+d,u.y1-f))),this.trackBox=C,this.pointerRangeBox=_,this.box=g||C.clone().pad(n.border.width)}},{key:"getElementOptions",value:function(){var n=this.options;return{fill:{color:n.color,opacity:n.opacity},stroke:Te(n.border)?{color:n.border.width?n.border.color||n.color:"",width:n.border.width,dashType:n.border.dashType,opacity:n.opacity}:null}}},{key:"_margin",value:function(){var o=this.scale.options,s=o.mirror,l=o.vertical,u=ti(this.options.margin);return l?u[s?"left":"right"]:u[s?"bottom":"top"]}}]),t}(h2);ze(LZ,{shape:Fk,track:{border:{width:1}},color:Xi,border:{width:1},opacity:1,margin:ti(3),animation:{type:Fk},visible:!0});var PZ=LZ,f2=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.options,a=n.margin,o=n.from,s=n.to,l=n.vertical,u=l?"x1":"y1";n.mirror===l?(o[u]-=a,s[u]-=a):(o[u]+=a,s[u]+=a);var c=this.fromScale=new Pe(o.x1,o.y1),d=this.toScale=new Pe(s.x1,s.y1);0!==n.duration&&(n.duration=Math.max(c.distanceTo(d)/n.duration*1e3,1))}},{key:"step",value:function(n){var a=Fs(this.fromScale.x,this.toScale.x,n),o=Fs(this.fromScale.y,this.toScale.y,n);this.element.transform(Hn().translate(a,o))}}]),t}(Vs);ze(f2,{easing:j0,duration:250}),uu.current.register(kZ,f2);var i3e=f2,Ng=Pe,r3e=dt,a3e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),a=r.call(this,e,n),Te(a.options.size)||(a.options.size=.6*a.scale.options.majorTicks.size),a}return v(t,[{key:"pointerShape",value:function(){var n=this.scale,a=this.options.size,o=a/2,s=n.options.mirror?-1:1;return n.options.vertical?[new Ng(0,0-o),new Ng(0-s*a,0),new Ng(0,0+o)]:[new Ng(0-o,0),new Ng(0,0+s*a),new Ng(0+o,0)]}},{key:"repaint",value:function(){var n=this.scale,a=this.options,o=new i3e(this.elements,ne(a.animation,{vertical:n.options.vertical,mirror:n.options.mirror,margin:this._margin(a.margin),from:n.getSlot(a._oldValue),to:n.getSlot(a.value)}));!1===a.animation.transitions&&(o.options.duration=0),o.setup(),o.play()}},{key:"render",value:function(){var n=this.scale,a=this.options,o=this.getElementOptions(),s=this.pointerShape(a.value);a.animation.type=kZ;var l=new r3e({stroke:o.stroke,fill:o.fill}).moveTo(s[0]).lineTo(s[1]).lineTo(s[2]).close(),u=n.getSlot(a.value);return l.transform(Hn().translate(u.x1,u.y1)),this.elements=l,l}}]),t}(PZ),o3e=a3e,v2=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.options,a=this.axis=n.vertical?Ct:yt,o=this.to=n.newPoints[0][a],s=this.from=n.oldPoints[0][a];0!==n.duration&&(n.duration=Math.max(Math.abs(o-s)/n.speed*1e3,1)),this._set(s)}},{key:"step",value:function(n){var a=Fs(this.from,this.to,n);this._set(a)}},{key:"_set",value:function(n){var a="set"+this.axis.toUpperCase(),o=this.options.newPoints;o[0][a](n),o[1][a](n)}}]),t}(Vs);ze(v2,{easing:j0,speed:250}),uu.current.register(Fk,v2);var s3e=v2,l3e=sn,BZ=dt,u3e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),a=r.call(this,e,n),Te(a.options.size)||(a.options.size=.3*a.scale.options.majorTicks.size),a}return v(t,[{key:"pointerShape",value:function(n){var a=this.scale,s=a.options,u=s.vertical,c=s.mirror===u?-1:1,d=this.options.size*c,h=a.getSlot(a.options.min),f=a.getSlot(n),g=u?Ct:yt,_=u?yt:Ct,C=this._margin()*c,w=new Pe;w[g]=h[g+"1"],w[_]=h[_+"1"];var E=new Pe;E[g]=f[g+"1"],E[_]=f[_+"1"],u?(w.translate(C,0),E.translate(C,0)):(w.translate(0,C),E.translate(0,C));var M=E.clone(),R=w.clone();return u?(M.translate(d,0),R.translate(d,0)):(M.translate(0,d),R.translate(0,d)),[w,E,M,R]}},{key:"repaint",value:function(){var n=this.scale,a=this.options,o=this.pointerShape(a.value),s=this.pointerPath,l=this.pointerShape(a._oldValue);s.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close();var u=new s3e(s,ne(a.animation,{reverse:n.options.reverse,vertical:n.options.vertical,oldPoints:[l[1],l[2]],newPoints:[o[1],o[2]]}));!1===a.animation.transitions&&(u.options.duration=0),u.setup(),u.play()}},{key:"render",value:function(){var n=new l3e,a=this.getElementOptions();this.options.track.visible&&n.append(this.renderTrack());var o=this.pointerPath=new BZ({stroke:a.stroke,fill:a.fill});return n.append(o),this.elements=n,n}},{key:"renderTrack",value:function(){var n=this.options.track,a=n.border||{},o=this.trackBox.clone().pad(a.width||0);return new BZ.fromRect(o.toRect(),{fill:{color:n.color,opacity:n.opacity},stroke:{color:a.width?a.color||n.color:"",width:a.width,dashType:a.dashType}})}}]),t}(PZ),c3e=u3e,f3e=sn,v3e=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflow",value:function(n){var a=this.pointers,o=n.origin.x,s=n.origin.y,l=new et(o,s,o+n.width(),s+n.height());this.scale.reflow(l),this._shrinkScaleWidth(l);for(var u=0;u0&&(a.box.shrink(o,0),a.box.alignTo(n,"center"),a.reflow(a.box))}}},{key:"_shrinkElements",value:function(){for(var n=this.scale,a=this.pointers,o=n.box.clone(),s=n.options.vertical?"y":"x",l=a[0].box,u=0;u0&&void 0!==arguments[0]?arguments[0]:new Sc,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this,a)).geometry(n),Vt(e.options.stroke)||e.stroke("#000"),e}return v(t,[{key:"nodeType",get:function(){return"Arc"}},{key:"_bbox",value:function(n){return this._geometry.bbox(n)}},{key:"rawBBox",value:function(){return this.geometry().bbox()}},{key:"toPath",value:function(){var n=new dt,a=this.geometry().curvePoints();if(a.length>0){n.moveTo(a[0].x,a[0].y);for(var o=1;o=360&&a.max%a.majorUnit==0&&(n-=1),n}},{key:"renderLabels",value:function(){var n=this.options,a=this.arc.clone(),o=a.getRadiusX(),s=this.tickAngles(a,n.majorUnit),l=n.rangeSize=n.rangeSize||.1*o,u=new q0,c=.05*o;Te(n.rangeDistance)?c=n.rangeDistance:n.rangeDistance=c;var d=n.labels,h=d.position===zd,f=Te(this.labelElements);h&&(o-=this.ticksSize(),this.hasRanges()&&!f&&(o-=l+c),a.setRadiusX(o).setRadiusY(o));for(var g=this.labels,_=g.length,C=ti(d.padding),w=(C.left+C.right)/2,E=(C.top+C.bottom)/2,M=0;M<_;M++){var R=g[M],N=R.box.width()/2,V=R.box.height()/2,U=s[M],ee=(U-180)*SZ,ve=a.pointAt(U),G=ve.x+Math.cos(ee)*(N+w)*(h?1:-1),I=ve.y+Math.sin(ee)*(V+E)*(h?1:-1);R.reflow(new et(G-N,I-V,G+N,I+V));var K=new Pe(R.box.x1,R.box.y1),H=void 0;if(f){var se=(H=this.labelElements.children[M]).bbox().origin,me=H.transform()||Hn();me.translate(K.x-se.x,K.y-se.y),H.transform(me)}else H=AZ(R,n.labels),u.append(H);this.bbox=cn.union(this.bbox,H.bbox())}return u}},{key:"repositionRanges",value:function(){var n=this.ranges.children;if(n.length>0){var a=this.options,o=a.rangeDistance,s=a.rangeSize,l=this.getRangeRadius();this.options.labels.position===zd&&(l+=s+o);for(var u=l+s/2,c=0;c=0;s--)s%o==0&&n.splice(s,1);return n}},{key:"tickAngles",value:function(n,a){var o=this.options,u=n.endAngle-n.startAngle,c=(o.max-o.min)/a,d=n.startAngle,h=u/c;o.reverse&&(d+=u,h=-h),u>=360&&o.max%a==0&&(c-=1);for(var f=[],g=0;g5||l!==f&&(c=this.getPlotBox(l,n,a),0<=c&&c<=2)||u!==f&&(h=this.getPlotBox(u,n,a),0<=h&&h<=2)||(f=c>0&&h>0?2*l:c<0&&h<0?2*u:tt((l+u)/2||1,3),d=this.getPlotBox(f,n,a),0<=d&&d<=2));)g=h,d>0?(u=f,h=d):(l=f,c=d)}},{key:"getPlotBox",value:function(n,a,o){var s=this.scale,l=this.pointers,u=o.getRadiusX(),c=o.clone();c.setRadiusX(u+n).setRadiusY(u+n),s.arc=c,s.reflow(a),this.plotBbox=s.bbox;for(var d=0;d=this.kCheckSumMinLength){var s=(o+this.getWeightedSum(n,a,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=s,this.addPattern(this.characterMap[s])}}},{key:"getWeightedSum",value:function(n,a,o){for(var s=0,l=0;la;)l=parseFloat((l-.1).toFixed(1)),s=this.getBaseUnit(l);if(s127?this.invalidCharacterError(r):this.addExtended(r.charCodeAt(0))},addExtended:function(r){for(var t,e=0;e=0;u--)o+=this.weightedValue(n[u],a-u,this.cCheckSumTotal);for(o=this.weightedValue(s=o%this.checkSumMod,1,this.kCheckSumTotal),u=a-1;u>=0;u--)o+=this.weightedValue(n[u],a-u+1,this.kCheckSumTotal);return[s,o%this.checkSumMod]}},{key:"_findCharacterByValue",value:function(n){for(var a in this.characterMap)if(this.characterMap[a].value===n)return a}},{key:"weightedValue",value:function(n,a,o){return(a%o||o)*n}},{key:"addPattern",value:function(n){for(var a,o=0;o=0&&this.isCode(l)&&n.index=n.value.length||this.encoding[this.shiftKey].is(n.value,n.index+1)))return this.encoding.addPattern(this.SHIFT),n.shifted=!0,!0}},{key:"_moveState",value:function(){return this.encoding.addPattern(this.MOVE),!0}}]),t}(X0),Fg={};Fg.A=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"A",shiftKey:"B",MOVE:101,START:103})}},{key:"isCode",value:function(n){return 0<=n&&n<96}},{key:"getValue",value:function(n){return n<32?n+64:n-32}}]),t}(QZ),Fg.B=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"B",shiftKey:"A",MOVE:100,START:104})}},{key:"isCode",value:function(n){return 32<=n&&n<128}},{key:"getValue",value:function(n){return n-32}}]),t}(QZ),Fg.C=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"C",MOVE:99,START:105})}},{key:"addStart",value:function(){this.encoding.addPattern(this.START)}},{key:"is",value:function(n,a){var o=k2(n,a,4);return(a+4<=n.length||2===n.length)&&y2.test(o)}},{key:"move",value:function(){this.encoding.addPattern(this.MOVE)}},{key:"pushState",value:function(n){for(var a;(a=k2(n.value,n.index,2))&&y2.test(a)&&2===a.length;)this.encoding.addPattern(parseInt(a,10)),n.index+=2}},{key:"getValue",value:function(n){return n}}]),t}(X0),Fg.FNC4=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e))._initSubStates(n),a}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"FNC4",dependentStates:["A","B"]})}},{key:"addStart",value:function(n){var a=n.value.charCodeAt(0)-128,o=this._getSubState(a);this.encoding[o].addStart()}},{key:"is",value:function(n,a){var o=n.charCodeAt(a);return this.isCode(o)}},{key:"isCode",value:function(n){return 128<=n&&n<256}},{key:"pushState",value:function(n){var l,a=this._initSubState(n),o=this.encoding,s=a.value.length;if(n.index+=s,s<3)for(;a.index0?this.getBySeparator(o,l):this.getByLength(o,l)).ai.length)d=l+h+c.id.length+c.ai.length;else if((d=o.indexOf(this.startAI,l+1))<0){if(l+c.ai.max+c.id.length+h=o.length)break;l=d,u.state!==this.startState&&(a[this.startState].move(u),u.state=this.startState),c.ai.length||a.addPattern(this.START)}n.index=n.value.length}},{key:"validate",value:function(n,a){var o=a.substr(n.id.length),s=n.ai;if(!s.type&&!y2.test(o))throw new Error("Application identifier "+n.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===s.type&&!z3e.test(o))throw new Error("Application identifier "+n.id+" is alphanumeric only but contains non alphanumeric character(s).");if(s.length&&s.length!==o.length)throw new Error("Application identifier "+n.id+" must be "+s.length+" characters long.");if(s.min&&s.min>o.length)throw new Error("Application identifier "+n.id+" must be at least "+s.min+" characters long.");if(s.max&&s.max=n.value.length);)if(n.shifted){var s=n.state;n.state=n.previousState,n.previousState=s,n.shifted=!1}else n.previousState=n.state,n.state=this.getNextState(n,a),this[n.state].move(n)}},{key:"addStart",value:function(n){this[n.state].addStart(n),this.position=1}},{key:"addCheckSum",value:function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)}},{key:"addStop",value:function(){this.addPattern(this.STOP)}},{key:"setBaseUnit",value:function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)}},{key:"addPattern",value:function(n){for(var o,a=this.characterMap[n].toString(),s=0;s2&&void 0!==arguments[2]?arguments[2]:j9;return p(this,t),(a=r.call(this)).options=ne({},a.options,n),a.element=e,a.onError=o,a._initElement(),a._initSurface(),a._setOptions(n),n&&Te(n.value)&&a.redraw(),a}return v(t,[{key:"destroy",value:function(){this._destroySurface()}},{key:"_initElement",value:function(){Za(this.element,"k-barcode")}},{key:"_initSurface",value:function(){var a=this.surface;(!a||a.options.type!==this.options.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}},{key:"_createSurface",value:function(){return Ok.create(this.surfaceElement,{type:this.options.renderAs})}},{key:"_destroySurface",value:function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}},{key:"_initSurfaceElement",value:function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}},{key:"_destroySurfaceElement",value:function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}},{key:"setOptions",value:function(n){this._setOptions(n),this._initSurface(),this.redraw()}},{key:"redraw",value:function(){var n=this._getSize();this.surface.clear(),this.surface.setSize({width:n.width,height:n.height}),this.createVisual(),this.surface.draw(this.visual)}},{key:"getSize",value:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}}},{key:"_resize",value:function(){this.redraw()}},{key:"createVisual",value:function(){this.visual=this._render()}},{key:"_render",value:function(){var f,g,n=this.options,a=n.value,o=n.text,s=ti(o.margin),l=this._getSize(),u=n.border||{},c=this.encoding,d=new et(0,0,l.width,l.height).unpad(u.width).unpad(n.padding),h=d.height(),C=new sn;this.contentBox=d,C.append(this._getBackground(l)),o.visible&&(h-=ek(a,{font:o.font}).height+s.top+s.bottom);try{f=c.encode(a,d.width(),h)}catch(w){return this.onError(w),C}return o.visible&&(g=a,n.checksum&&Te(c.checksum)&&(g+=" "+c.checksum),C.append(this._getText(g))),this.barHeight=h,this._bandsGroup=this._getBands(f.pattern,f.baseUnit),C.append(this._bandsGroup),C}},{key:"exportVisual",value:function(){return this._render()}},{key:"_getSize",value:function(){var a=tY(this.element,this.options.renderAs),o=new kf(300,100);return a.width>0&&(o.width=a.width),a.height>0&&(o.height=a.height),this.options.width&&(o.width=this.options.width),this.options.height&&(o.height=this.options.height),o}},{key:"value",value:function(n){if(!Te(n))return this.options.value;this.options.value=String(n),this.redraw()}},{key:"_getBands",value:function(n,a){for(var l,u,o=this.contentBox,s=o.x1,c=new sn,d=0;d1&&void 0!==arguments[1]?arguments[1]:new cn,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(this,t),(n=r.call(this,o)).src(e),n.rect(a),n}return v(t,[{key:"nodeType",get:function(){return"Image"}},{key:"src",value:function(n){return Vt(n)?(this.options.set("src",n),this):this.options.get("src")}},{key:"bbox",value:function(n){var a=yf(this.currentTransform(n));return this._rect.bbox(a)}},{key:"rawBBox",value:function(){return this._rect.bbox()}},{key:"_containsPoint",value:function(n){return this._rect.containsPoint(n)}},{key:"_hasFill",value:function(){return this.src()}}]),t}(wN(Id,["rect"])),C2=sHe,Lg=Object.assign;function nY(i,r){for(var t=[],e=0;e=this.matrix.length)&&(this.dir=-this.dir,this.startColumn-=8!==this.startColumn?2:3,this.column=this.startColumn,this.row=this.dir<0?this.matrix.length-1:0);return{row:this.row,column:this.column}}},{key:"getNextRemainderCell",value:function(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}}}]),t}(mt),iY=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).dataString=e,a.version=n,a}return v(t)}(mt),uHe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getEncodingResult",value:function(n,a){var o=function WHe(i){var t,r=[],e=0,n=i;for(r.push(cY(n,8,5,8,t)),t=r[0].mode,n=n.substr(r[0].modeString.length);n.length>0;){var a=cY(n,17,9,16,t);a.mode!==t?(t=a.mode,r.push(a),e++):r[e].modeString+=a.modeString,n=n.substr(a.modeString.length)}return r}(n),s=function $He(i){for(var r=0,e=0;e26?2:1}},{key:"getBitsCharacterCount",value:function(n){return this.bitsInCharacterCount[this.getVersionIndex(n||40)]}},{key:"getModeCountString",value:function(n,a){return this.modeIndicator+So(n,this.getBitsCharacterCount(a))}},{key:"encode",value:function(){}},{key:"getStringBitsLength",value:function(){}},{key:"getValue",value:function(){}}]),t}(mt),cHe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Lg(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})}},{key:"getValue",value:function(n){return parseInt(n,10)}},{key:"encode",value:function(n,a){var u,s=nY(n,3),l=this.getModeCountString(n.length,a);for(u=0;u>6*u&63|128,8)+s;s=(n>>6*o|255>>l<=0;n--)t[n]=i[n]^r[n];return t}function UHe(i,r){for(var t=[],e=0;e=0?r[n]:0))%255:w2[Hd[t[e+n]]^Hd[(i[e]+r[n])%255]];return t}function HHe(i,r){var t=[],e=i.length-1;do{t[e]=Hd[(i[e]+r)%255],e--}while(void 0!==i[e]);return t}function KHe(i,r){var s,l,t=T2[r-1],e=new Array(r).concat(i),n=new Array(e.length-t.length).concat(t),a=i.length,o=[];for(l=0;l=0;l--)o[r-1-l]=So(e[l],8);return o}function cY(i,r,t,e,n){var d,h,a=AHe.exec(i),o=a?a[0]:"",s=MHe.exec(i),l=s?s[0]:"",u=sY.exec(i),c=u?u[0]:"";return o&&(o.length>=r||i.length===o.length||o.length>=t&&!sY.test(i.charAt(o.length)))?(d="numeric",h=o):c&&(i.length===c.length||c.length>=e||n===aY)?(d=aY,h=o||l):(d="byte",h=c?c+lY.exec(i.substring(c.length))[0]:lY.exec(i)[0]),{mode:d,modeString:h}}function dY(i,r){var t=0,e=Vk.length-1,n=Math.floor(Vk.length/2);do{i1);return i<=Vk[t][r].totalDataCodewords?n+1:e+1}function hY(i,r,t){var e=Y0(r),n=r.length-1,a=i<=t);return n}(a,e);return s+So(l,n)}function Uk(i,r){return parseInt(i.charAt(r),10)}function fY(i,r){var e,n,t=i[0],a=0,o=r.length;for(e=0,n=8;e<=8;e++)6!==e&&Ja(i,Uk(r,o-1-a++),e,n);for(e=8,n=7;n>=0;n--)6!==n&&Ja(i,Uk(r,o-1-a++),e,n);for(a=0,n=t.length-1,e=8;n>=t.length-8;n--)Ja(i,Uk(r,o-1-a++),e,n);for(Ja(i,1,t.length-8,8),e=t.length-7,n=8;e=0&&n=5&&(r[i]+=3+n[i][a]-5),n[i][a]=1)}function i8e(i,r){var t=Math.floor(i/r*100),e=t%5,n=Math.abs(t-e-50),a=Math.abs(t+5-e-50);return 10*Math.min(n/5,a/5)}(function GHe(){var i,r;for(r=1;r<255;r++)(i=2*Hd[r-1])>255&&(i^=285),Hd[r]=i,w2[i]=r;Hd[r]=i=2*Hd[r-1]^285,Hd[-1]=0})(),function zHe(){for(var r=2;r<=68;r++)T2[r]=UHe(T2[r-1],[r,0])}();var zk=Math.round,o8e=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],mY=[[0,1],[1,1],[1,0]],s8e=function(i){b(t,i);var r=S(t);function t(e,n){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j9;return p(this,t),(a=r.call(this)).options=ne({},a.options,n),a.element=e,a.wrapper=a.element,a.onError=o,a._initElement(),a._initSurface(),a.setOptions(n),a}return v(t,[{key:"destroy",value:function(){this._destroySurface()}},{key:"_initElement",value:function(){Za(this.element,"k-qrcode")}},{key:"_initSurface",value:function(){var a=this.surface;(!a||a.options.type!==this.options.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}},{key:"_createSurface",value:function(){return Ok.create(this.surfaceElement,{type:this.options.renderAs})}},{key:"_destroySurface",value:function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}},{key:"_initSurfaceElement",value:function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}},{key:"_destroySurfaceElement",value:function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}},{key:"redraw",value:function(){var n=this._getSize();this.surface.clear(),this.surface.setSize({width:n,height:n}),this.createVisual(),this.surface.draw(this.visual)}},{key:"getSize",value:function(){var n=this.element,a=n.clientWidth,o=n.clientHeight,s={width:0,height:0};return a>0&&(s.width=a),o&&(s.height=o),s}},{key:"_resize",value:function(){this.redraw()}},{key:"createVisual",value:function(){this.visual=this._render()}},{key:"exportVisual",value:function(){return this._render()}},{key:"_render",value:function(){var a,u,c,d,f,n=this._value,o=this.options.border||{},s=this.options.padding||0,l=o.width||0;o.width=l;var g=new sn;try{n&&(c=function a8e(i,r,t){var e=function r8e(i){return i&&i.toLowerCase().indexOf("utf_8")>=0?new mHe:new uHe}(t),n=e.getEncodingResult(i,r),a=n.version,o=Vk[a-1][r],s=function BHe(i,r){for(var t=8*r,e=0,n=0,a=i;a.length=7&&vY(u,So(0,18)),fY(u,So(0,15)),function PHe(i,r){for(var e,n,a,t=new lHe(i[0]),o=0;o0;){for(var s=0;s=0&&o[d+1][h]===t[f][0]&&o[d+1][h-1]===t[f][0]&&(r[f]+=3),pY(f,n,r,0,o[d][h]),pY(f,n,r,1,o[h][d]),gY(f,r,t,o[d][h],a,0),gY(f,r,t,o[h][d],a,1);var _,g=c*c,C=Number.MAX_VALUE;for(s=0;s=7&&vY([d],function QHe(i){return hY(i,"1111100100101",18)}(a)),fY([d],function XHe(i){var t,e="";if(0===Y0(i))return"101010000010010";t=hY(Y0(i),"10100110111",15);for(var n=0;n0?s:200}return n}},{key:"_calculateBaseUnit",value:function(n,a){var o=Math.floor(n/a);if(o<1){var s=Math.ceil(1*a);this.onError(new Error("Insufficient size for QR Code: the current size is ".concat(n,"px and the minimum size is ").concat(s,"px.")))}else o*a>=n&&o-1>=1&&o--;return o}},{key:"_renderMatrix",value:function(n,a,o){for(var s=new Nd({fill:{color:this.options.color},stroke:null}),l=0;l0;){V=Gc(E),U=jd(E),ee=Kd.sqrt(gu(w*V)+gu(g*C-f*w*U)),K=J0(ee,G=f*C+g*w*U);var H=g*w*V/ee;I=0,0!=(ve=1-gu(H))&&(I=G-2*f*C/ve),M=E;var se=c/16*ve*(4+c*(4-3*ve));E=d+(1-se)*c*H*(K+se*ee*(I+se*G*(2*gu(I)-1))),N=c8e(E-M)<=this.DISTANCE_CONVERGENCE}var me=ve*(gu(l)-gu(u))/gu(u),ae=1+me/16384*(4096+me*(me*(320-175*me)-768)),Ne=me/1024*(256+me*(me*(74-47*me)-128)),Ce=Ne*ee*(I+Ne/4*(G*(2*gu(I)-1)-Ne/6*I*(4*gu(ee)-3)*(4*gu(I)-3))),_e=J0(w*V,g*C-f*w*U),Be=J0(g*V,-f*w+g*C*U);return{distance:tt(u*ae*(K-Ce),this.DISTANCE_PRECISION),azimuthFrom:Rd(_e),azimuthTo:Rd(Be)}}},{key:"toString",value:function(){return String(this.lat)+","+String(this.lng)}}],[{key:"fromLngLat",value:function(n){return new t(n[1],n[0])}},{key:"fromLatLng",value:function(n){return new t(n[0],n[1])}},{key:"create",value:function(n,a){if(Te(n))return n instanceof t?n.clone():1===arguments.length&&2===n.length?t.fromLatLng(n):new t(n,a)}}]),t}(mt),Wd=Math,M2=Wd.atan,kY=Wd.exp,CY=Wd.pow,bY=Wd.sin,SY=Wd.log,wY=Wd.tan,d8e=Pe,eE=Wd.PI,R2=eE/2,DY=eE/4,h8e=eE/180,f8e=x2.WGS84,EY=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).initProperties(),n._initOptions(e),n}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"initProperties",value:function(){ne(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})}},{key:"forward",value:function(n,a){var o=this,s=o.options,u=s.datum.a,c=s.centralMeridian,d=Mt(n.lat,-o.MAX_LAT,o.MAX_LAT),h=a?Mt(n.lng,-o.MAX_LNG,o.MAX_LNG):n.lng,f=br(h-c)*u,g=o._projectLat(d);return new d8e(f,g)}},{key:"_projectLat",value:function(n){var a=this.options.datum,o=a.e,s=a.a,l=br(n),u=wY(DY+l/2),c=o*bY(l),d=CY((1-c)/(1+c),o/2);return s*SY(u*d)}},{key:"inverse",value:function(n,a){var o=this,s=o.options,d=n.x/(h8e*s.datum.a)+s.centralMeridian,h=Mt(o._inverseY(n.y),-o.MAX_LAT,o.MAX_LAT);return a&&(d=Mt(d,-o.MAX_LNG,o.MAX_LNG)),new na(h,d)}},{key:"_inverseY",value:function(n){var h,a=this,o=a.options.datum,l=o.e,u=l/2,c=kY(-n/o.a),d=R2-2*M2(c);for(h=0;h<=a.INVERSE_ITERATIONS;h++){var f=l*bY(d),g=CY((1-f)/(1+f),u),_=R2-2*M2(c*g)-d;if(d+=_,Wd.abs(_)<=a.INVERSE_CONVERGENCE)break}return Rd(d)}}]),t}(mt);ze(EY,{centralMeridian:0,datum:f8e});var v8e=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),ne(this,{MAX_LAT:85.0511287798})}},{key:"_projectLat",value:function(n){var a=this.options.datum.a,o=br(n),s=wY(DY+o/2);return a*SY(s)}},{key:"_inverseY",value:function(n){var o=kY(-n/this.options.datum.a);return Rd(R2-2*M2(o))}}]),t}(EY),p8e=function(i){b(t,i);var r=S(t);function t(){var e;p(this,t);var a=Xe(e=r.call(this))._proj=new v8e,o=e.c=2*eE*a.options.datum.a;return e._tm=Hn().translate(.5,.5).scale(1/o,-1/o),e._itm=Hn().scale(o,-o).translate(-.5,-.5),e}return v(t,[{key:"toPoint",value:function(n,a,o){return this._proj.forward(n,o).transform(this._tm).scale(a||1)}},{key:"toLocation",value:function(n,a,o){var s=n.clone().scale(1/(a||1)).transform(this._itm);return this._proj.inverse(s,o)}}]),t}(mt),TY=Object.defineProperty,Pg=function(r){var t=document.createElement("div");return t.innerHTML=r,t.firstChild},Hk=function(r){for(;r.firstChild;)r.removeChild(r.firstChild)},AY=function(r,t){t.insertBefore(r,t.firstChild)},xY=function(r){return r.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()})},MY=function(r){return r&&String(r).endsWith("px")?r:String(r)+"px"},RY=function(r){var e,t=!1,n=[],a={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},o={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},s={tablet:/playbook|ipad|fire/i},l={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(var u in a)if(a.hasOwnProperty(u)&&(n=r.match(a[u]))){if("windows"===u&&"plugins"in navigator)return!1;(t={}).device=u,t.tablet=O2(u,s,!1),t.browser=O2(r,l,"default"),t.name=O2(u,o),t[t.name]=!0,t.majorVersion=n[2],t.minorVersion=(n[3]||"0").replace("_","."),e=t.minorVersion.replace(".","").substr(0,2),t.flatVersion=t.majorVersion+e+new Array(3-(e.length<3?e.length:2)).join("0");break}return t};function O2(i,r,t){for(var e in r)if(r.hasOwnProperty(e)&&r[e].test(i))return e;return void 0!==t?t:i}var I2=function(){var r={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},t=Pf();return t.touch&&(t.mobileOS.ios||t.mobileOS.android)?r={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:t.pointers?r={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:t.msPointers&&(r={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),r},Pf=function(){var r=RY(navigator.userAgent),t=function(r){var t=!1,e=[],n={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var a in n)if(n.hasOwnProperty(a)&&(e=r.match(n[a]))){(t={})[a]=!0,t[e[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||e[2],10);break}return t}(navigator.userAgent),e=t.chrome,n=t.crios,a=t.mozilla,o=t.safari,s={};s.mobileOS=r,s.touch="ontouchstart"in window,s.pointers=!e&&!n&&!a&&!o&&window.PointerEvent,s.msPointers=!e&&window.MSPointerEvent,s.mouseAndTouchPresent=s.touch&&!(s.mobileOS.ios||s.mobileOS.android),s.eventCapture=document.documentElement.addEventListener;var l=document.createElement("table"),u=s.transitions=!1,c=s.transforms=!1,d="string";return["Moz","webkit","O","ms"].forEach(function(h){var f=typeof l.style[h+"Transition"]===d;if(f||typeof l.style[h+"Transform"]===d){var g=h.toLowerCase();return c={css:"ms"!==g?"-"+g+"-":"",prefix:h,event:"o"===g||"webkit"===g?g:""},f&&((u=c).event=u.event?u.event+"TransitionEnd":"transitionend"),!1}}),l=null,s.transforms=c,s.transitions=u,s.delayedClick=function(){if(s.touch){if(s.mobileOS.ios)return!0;if(s.mobileOS.android){if(!s.browser.chrome)return!0;if(s.browser.version<32)return!1;var h=document.querySelector("meta[name=viewport]");return!(h?h.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},s},ui=function(r,t){return r.bind(t)},eo=function(r,t,e,n,a){S8e(r,t,e,n,a)},S8e=function(r,t,e,n,a){(Jr(t)?t:(t||"").split(" ")).forEach(function(s){w8e(r,s,e,n,a)})},w8e=function(r,t,e,n,a){var s,o=n;e&&Ri(e)&&!n?o=e:e&&function b8e(i){return"string"==typeof i}(e)&&Ri(o)&&(s=e),r.addEventListener(t,function(l){var u=l.target?l.target.closest(s):null;(!s||s&&l.target&&u)&&(TY(l,"currentTarget",{value:s?u:l.currentTarget}),TY(l,"delegateTarget",{value:r}),o(l))},Boolean(a))},wo=function(r,t,e,n,a){D8e(r,t,e,n,a)},D8e=function(r,t,e,n){(Jr(t)?t:(t||"").split(" ")).forEach(function(o){E8e(r,o,e,n)})},E8e=function(r,t,e,n){r.removeEventListener(t,e,Boolean(n))},Hs=function(r){var t=I2(navigator);return r.replace(/([^ ]+)/g,function e(o){return t[o]||o})},tE=function(r,t){var e=r.prototype;e.events?t.forEach(function(n){e.events.indexOf(n)<0&&e.events.push(n)}):e.events=t},Vc=function(){return Number(new Date)},OY=function(){},NY="function",A8e=function(){this._defaultPrevented=!0},x8e=function(){return!0===this._defaultPrevented},El=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._events={},e}return v(t,[{key:"destroy",value:function(){this.unbind()}},{key:"bind",value:function(n,a,o){var l,c,d,h,s=this,u="string"==typeof n?[n]:n||[],f=typeof a===NY;if(void 0===a){for(l in n)s.bind(l,n[l]);return s}var _=function(){var w=u[l];(h=f?a:a[w])&&(o&&(d=h,h=function(){s.unbind(w,h),d.apply(s,arguments)},h.original=d),(s._events[w]=s._events[w]||[]).push(h))};for(l=0,c=u.length;l=0;l--)(s[l]===a||s[l].original===a)&&s.splice(l,1);else o._events[n]=[];return o}},{key:"_setEvents",value:function(n){for(var a=(this.events||[]).length,o=0;o0?(Hk(this.element),function(r,t){var e=document.createElement("div");for(e.innerHTML=r;e.childNodes.length>0;)t.appendChild(e.childNodes[0])}(n.join(this.options.separator),this.element),this.showElement()):this.hideElement()}},{key:"hideElement",value:function(){this.element.style.display="none"}},{key:"showElement",value:function(){this.element.style.display=""}},{key:"_itemText",value:function(n){var a="",o=this._inZoomLevel(n.minZoom,n.maxZoom),s=this._inArea(n.extent);return o&&s&&(a+=n.text),a}},{key:"_inZoomLevel",value:function(n,a){var s=qt(n,-Number.MAX_VALUE),l=qt(a,Number.MAX_VALUE);return this._zoom>s&&this._zoom')}var N2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this)).element=e,a._initOptions(n);var o=nE("up"),s=nE("right"),l=nE("down"),u=nE("left");a.element.appendChild(o),a.element.appendChild(s),a.element.appendChild(l),a.element.appendChild(u),Za(a.element,"k-widget k-navigator"),eo(a.element,"click",".k-button",ui(a._click,Xe(a)));var c=a.element.parentNode.closest("[data-role]");return a._keyroot=c||a.element,a._tabindex(a._keyroot),a._keydownHandler=ui(a._keydown,Xe(a)),eo(a._keyroot,"keydown",a._keydownHandler),a}return v(t,[{key:"destroy",value:function(){this.dispose()}},{key:"dispose",value:function(){wo(this._keyroot,"keydown",this._keydownHandler)}},{key:"_tabindex",value:function(n){var a=n||this.wrapper||this.element,o=this.element,s="tabindex",l=a.getAttribute(s)||o.getAttribute(s);o.removeAttribute(s),a.setAttribute(s,isNaN(l)?0:l)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_pan",value:function(n,a){var o=this.options.panStep;this.trigger("pan",{x:n*o,y:a*o})}},{key:"_click",value:function(n){var a=0,o=0,s=n.currentTarget;s.matches(".k-navigator-n")?o=1:s.matches(".k-navigator-s")?o=-1:s.matches(".k-navigator-e")?a=1:s.matches(".k-navigator-w")&&(a=-1),this._pan(a,o),n.preventDefault()}},{key:"_keydown",value:function(n){switch(n.which){case pg_UP:this._pan(0,1),n.preventDefault();break;case pg_DOWN:this._pan(0,-1),n.preventDefault();break;case pg_RIGHT:this._pan(1,0),n.preventDefault();break;case pg_LEFT:this._pan(-1,0),n.preventDefault()}}}]),t}(El);function BY(i,r){return Pg('')}ze(N2,{name:"Navigator",panStep:1}),tE(N2,["pan"]);var F2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this)).element=e,a._initOptions(n);var o=BY("in","k-i-plus"),s=BY("out","k-i-minus");a.element.appendChild(o),a.element.appendChild(s),Za(a.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),a._clickHandler=a._click.bind(Xe(a)),eo(a.element,"click",".k-button",a._clickHandler);var l=a.element.parentNode.closest("[data-role]");return a._keyroot=l||a.element,a._tabindex(a._keyroot),a._keydownHandler=a._keydown.bind(Xe(a)),eo(a._keyroot,"keydown",a._keydownHandler),a}return v(t,[{key:"destroy",value:function(){this.element&&wo(this.element,"click",this._clickHandler),this._keyroot&&wo(this._keyroot,"keydown",this._keydownHandler)}},{key:"_tabindex",value:function(n){var a=n||this.wrapper||this.element,o=this.element,s="tabindex",l=a.getAttribute(s)||o.getAttribute(s);o.removeAttribute(s),a.setAttribute(s,isNaN(l)?0:l)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_change",value:function(n){this.trigger("change",{delta:n*this.options.zoomStep})}},{key:"_click",value:function(n){var o=1;Zy(n.currentTarget,"k-zoom-out")&&(o=-1),this._change(o),n.preventDefault()}},{key:"_keydown",value:function(n){switch(n.which){case pg_NUMPAD_PLUS:case 187:case 61:this._change(1);break;case pg_NUMPAD_MINUS:case 189:case 173:this._change(-1)}}}]),t}(El);ze(F2,{name:"ZoomControl",zoomStep:1}),tE(F2,["change"]);var VY=Math,UY=VY.max,zY=VY.min,iE=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),a=r.call(this);var o=na.create(e),s=na.create(n);return o.lng+180>s.lng+180&&o.lat+90=a.lng+180&&s+180<=o.lng+180&&l+90>=o.lat+90&&l+90<=a.lat+90}},{key:"center",value:function(){var n=this.nw,a=this.se;return new na(n.lat+(a.lat-n.lat)/2,n.lng+(a.lng-n.lng)/2)}},{key:"containsAny",value:function(n){for(var a=!1,o=0;o=n.minZoom,s=!Te(n.maxZoom)||a<=n.maxZoom,l=iE.create(n.extent),u=!l||l.overlaps(this.map.extent());this._setVisibility(o&&s&&u)}},{key:"_setVisibility",value:function(n){this.element.style.display=n?"":"none"}},{key:"_activate",value:function(){var n=this.map;this._deactivate(),n.bind("beforeReset",this._beforeReset),n.bind("reset",this._reset),n.bind("resize",this._resize),n.bind("panEnd",this._panEnd)}},{key:"_deactivate",value:function(){var n=this.map;n.unbind("beforeReset",this._beforeReset),n.unbind("reset",this._reset),n.unbind("resize",this._resize),n.unbind("panEnd",this._panEnd)}},{key:"_updateAttribution",value:function(){var n=this.map.attribution;n&&n.add(this.options.attribution)}},{key:"_readData",value:function(){return this.options.data||[]}},{key:"_hasData",value:function(){return this._data&&this._data.length>0}}]),t}(mt),$d=Math,P2=Pe;function HY(i){return Ri(i)?i:y9.compile(i)}function N8e(i){return new P2(tt(i.x),tt(i.y))}function KY(i){var r=i;return"string"!=typeof i&&(r+="px"),r}var jY=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),"string"==typeof(a=r.call(this,e,n)).options.subdomains&&(a.options.subdomains=a.options.subdomains.split(""));var o=a._viewType();return a._view=new o(a.element,a.options),a}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this._view.destroy(),this._view=null}},{key:"_beforeReset",value:function(){var n=this.map,a=n.locationToLayer(n.extent().nw).round();this._view.viewOrigin(a)}},{key:"_reset",value:function(){$(q(t.prototype),"_reset",this).call(this),this._updateView(),this._view.reset()}},{key:"_viewType",value:function(){return F8e}},{key:"_activate",value:function(){$(q(t.prototype),"_activate",this).call(this),this.support.mobileOS||(this._pan||(this._pan=LF(this._render.bind(this),100)),this.map.bind("pan",this._pan))}},{key:"_deactivate",value:function(){$(q(t.prototype),"_deactivate",this).call(this),this._pan&&this.map.unbind("pan",this._pan)}},{key:"_updateView",value:function(){var n=this._view,a=this.map,o=a.extent(),s={nw:a.locationToLayer(o.nw).round(),se:a.locationToLayer(o.se).round()};n.center(a.locationToLayer(a.center())),n.extent(s),n.zoom(a.zoom())}},{key:"_resize",value:function(){this._render()}},{key:"_panEnd",value:function(n){$(q(t.prototype),"_panEnd",this).call(this,n),this._render()}},{key:"_render",value:function(){this._updateView(),this._view.render()}}]),t}(L2);ze(jY,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});var F8e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).element=e,a._initOptions(n),a.pool=new $Y,a}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"center",value:function(n){this._center=n}},{key:"extent",value:function(n){this._extent=n}},{key:"viewOrigin",value:function(n){this._viewOrigin=n}},{key:"zoom",value:function(n){this._zoom=n}},{key:"pointToTileIndex",value:function(n){return new P2($d.floor(n.x/this.options.tileSize),$d.floor(n.y/this.options.tileSize))}},{key:"tileCount",value:function(){var n=this.size(),a=this.pointToTileIndex(this._extent.nw),o=this._extent.nw,s=this.indexToPoint(a).translate(-o.x,-o.y);return{x:$d.ceil(($d.abs(s.x)+n.width)/this.options.tileSize),y:$d.ceil(($d.abs(s.y)+n.height)/this.options.tileSize)}}},{key:"size",value:function(){var n=this._extent.nw,o=this._extent.se.clone().translate(-n.x,-n.y);return{width:o.x,height:o.y}}},{key:"indexToPoint",value:function(n){return new P2(n.x*this.options.tileSize,n.y*this.options.tileSize)}},{key:"subdomainText",value:function(){var n=this.options.subdomains;return n[this.subdomainIndex++%n.length]}},{key:"destroy",value:function(){Hk(this.element),this.pool.empty()}},{key:"reset",value:function(){this.pool.reset(),this.subdomainIndex=0,this.render()}},{key:"render",value:function(){var o,s,l,n=this.tileCount(),a=this.pointToTileIndex(this._extent.nw);for(s=0;s=0?o:a-(0===o?a:o)}}]),t}(mt),WY=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).id=e,a.visible=!0,a._initOptions(n),a.createElement(),a.show(),a}return v(t,[{key:"destroy",value:function(){var n=this.element,a=n?n.parentNode:null;n&&(a&&a.removeChild(n),this.element=null)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"createElement",value:function(){var n=document.createElement("img"),a=this.options.size+"px";n.style.position="absolute",n.style.display="block",n.style.width=n.style.maxWidth=a,n.style.height=n.style.maxHeight=a,this.element=n}},{key:"show",value:function(){var n=this.element;n.style.top=KY(this.options.offset.y),n.style.left=KY(this.options.offset.x);var a=this.url();a&&n.setAttribute("src",a),n.style.visibility="visible",this.visible=!0}},{key:"hide",value:function(){this.element.style.visibility="hidden",this.visible=!1}},{key:"url",value:function(){return HY(this.options.urlTemplate)(this.urlOptions())}},{key:"errorUrl",value:function(){return HY(this.options.errorUrlTemplate)(this.urlOptions())}},{key:"urlOptions",value:function(){var n=this.options;return{zoom:n.zoom,subdomain:n.subdomain,z:n.zoom,x:n.index.x,y:n.index.y,s:n.subdomain,quadkey:n.quadkey,q:n.quadkey,culture:n.culture,c:n.culture}}}]),t}(mt);ze(WY,{urlTemplate:"",errorUrlTemplate:""});var $Y=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._items=[],e}return v(t,[{key:"get",value:function(n,a){return this._items.length>=this.options.maxSize&&this._remove(n),this._create(a)}},{key:"empty",value:function(){for(var n=this._items,a=0;ao&&!a[l].visible&&(s=l,o=u)}-1!==s&&(a[s].destroy(),a.splice(s,1))}}]),t}(mt);ze($Y,{maxSize:100});var Bf=Object.assign,Kk="change",L8e=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t);var o=Xe(a=r.call(this)),s=e[0]||e;o.capture=!1;var l=I2(navigator);return s.addEventListener?(l.down.split(" ").forEach(function(u){s.addEventListener(u,ui(o._press,o),!0)}),l.up.split(" ").forEach(function(u){s.addEventListener(u,ui(o._release,o),!0)})):(l.down.split(" ").forEach(function(u){s.attachEvent(u,ui(o._press,o))}),l.up.split(" ").forEach(function(u){s.attachEvent(u,ui(o._release,o))})),o.bind(["press","release"],n||{}),a}return v(t,[{key:"captureNext",value:function(){this.capture=!0}},{key:"cancelCapture",value:function(){this.capture=!1}},{key:"_press",value:function(n){this.trigger("press"),this.capture&&n.preventDefault()}},{key:"_release",value:function(n){var a=this;a.trigger("release"),a.capture&&(n.preventDefault(),a.cancelCapture())}}]),t}(El),qY=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));return a.forcedEnabled=!1,Bf(a,e),a.scale=1,a.horizontal?(a.measure="offsetWidth",a.scrollSize="scrollWidth",a.axis="x"):(a.measure="offsetHeight",a.scrollSize="scrollHeight",a.axis="y"),n}return v(t,[{key:"makeVirtual",value:function(){Bf(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})}},{key:"virtualSize",value:function(n,a){(this._virtualMin!==n||this._virtualMax!==a)&&(this._virtualMin=n,this._virtualMax=a,this.update())}},{key:"outOfBounds",value:function(n){return n>this.max||nl,n||a.trigger(Kk,a))}}]),t}(El),P8e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));return a.x=new qY(Bf({horizontal:!0},e)),a.y=new qY(Bf({horizontal:!1},e)),a.container=e.container,a.forcedMinScale=e.minScale,a.maxScale=e.maxScale||100,a.bind(Kk,e),n}return v(t,[{key:"rescale",value:function(n){this.x.rescale(n),this.y.rescale(n),this.refresh()}},{key:"centerCoordinates",value:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}}},{key:"refresh",value:function(){var n=this;n.x.update(),n.y.update(),n.enabled=n.x.enabled||n.y.enabled,n.minScale=n.forcedMinScale||Math.min(n.x.minScale,n.y.minScale),n.fitScale=Math.max(n.x.minScale,n.y.minScale),n.trigger(Kk)}}]),t}(El),XY=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Bf(Xe(n),e),n}return v(t,[{key:"outOfBounds",value:function(){return this.dimension.outOfBounds(this.movable[this.axis])}},{key:"dragMove",value:function(n){var a=this,o=a.dimension,s=a.axis,l=a.movable,u=l[s]+n;if(o.enabled){var c=n;(uo.max&&n>0)&&(c*=a.resistance),l.translateAxis(s,c),a.trigger(Kk,a)}}}]),t}(El),B8e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var o,s,l,u,a=Xe(n=r.call(this));return Bf(a,{elastic:!0},e),a.x=o=new XY({axis:"x",dimension:a.dimensions.x,resistance:l=a.elastic?.5:0,movable:u=a.movable}),a.y=s=new XY({axis:"y",dimension:a.dimensions.y,resistance:l,movable:u}),a.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(d){a.gesture=d,a.offset=nk(a.dimensions.container)},press:function(d){var h=d.event.target.closest("a");h&&h.matches("[data-navigate-on-press=true]")&&d.sender.cancel()},gesturechange:function(d){var E,h=a.gesture,f=h.center,g=d.center,_=d.distance/h.distance,w=a.dimensions.maxScale;u.scale<=a.dimensions.minScale&&_<1&&(_+=.8*(1-_)),u.scale*_>=w&&(_=w/u.scale);var M=u.x+a.offset.left,R=u.y+a.offset.top;E={x:(M-f.x)*_+g.x-M,y:(R-f.y)*_+g.y-R},u.scaleWith(_),o.dragMove(E.x),s.dragMove(E.y),a.dimensions.rescale(u.scale),a.gesture=d,d.preventDefault()},move:function(d){d.event.target.tagName.match(/textarea|input/i)||(o.dimension.enabled||s.dimension.enabled?(o.dragMove(d.x.delta),s.dragMove(d.y.delta),d.preventDefault()):d.touch.skip())},end:function(d){d.preventDefault()}}),n}return v(t)}(mt),ZY=function(r,t,e){return"translate3d("+r+"px,"+t+"px,0) scale("+e+")"},B2=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));a.support=Pf(),n.transformStyle=n.support.transitions.prefix+"Transform",a.element=e,a.element.style.webkitTransformOrigin="left top",a.x=0,a.y=0,a.scale=1;var o=ZY(a.x,a.y,a.scale);return a.element.style[n.transformStyle]=o,a._saveCoordinates(o),n}return v(t,[{key:"translateAxis",value:function(n,a){this[n]+=a,this.refresh()}},{key:"scaleTo",value:function(n){this.scale=n,this.refresh()}},{key:"scaleWith",value:function(n){this.scale*=n,this.refresh()}},{key:"translate",value:function(n){this.x+=n.x,this.y+=n.y,this.refresh()}},{key:"moveAxis",value:function(n,a){this[n]=a,this.refresh()}},{key:"moveTo",value:function(n){Bf(this,n),this.refresh()}},{key:"refresh",value:function(){var s,n=this,a=n.x,o=n.y;n.round&&(a=Math.round(a),o=Math.round(o)),(s=ZY(a,o,n.scale))!==n.coordinates&&(n.element.style[this.transformStyle]=s,n._saveCoordinates(s),n.trigger(Kk))}},{key:"_saveCoordinates",value:function(n){this.coordinates=n}}]),t}(El),G2=sn,V2=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n))._pan=ui(a._pan,Xe(a)),a.surface=Ok.create(a.element,{width:e.scrollElement.clientWidth,height:e.scrollElement.clientHeight}),a._initRoot(),a.movable=new B2(a.surface.element),a._markers=[],a._click=a._handler("shapeClick"),a.surface.bind("click",a._click),a._mouseenter=a._handler("shapeMouseEnter"),a.surface.bind("mouseenter",a._mouseenter),a._mouseleave=a._handler("shapeMouseLeave"),a.surface.bind("mouseleave",a._mouseleave),a}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this.surface.destroy()}},{key:"_reset",value:function(){$(q(t.prototype),"_reset",this).call(this),this._translateSurface(),this._data=this._readData(),this._hasData()&&this._load(this._data)}},{key:"_initRoot",value:function(){this._root=new G2,this.surface.draw(this._root)}},{key:"_beforeReset",value:function(){this.surface.clear(),this._initRoot()}},{key:"_resize",value:function(){this.surface.size(this.map.size())}},{key:"_readData",value:function(){var n=$(q(t.prototype),"_readData",this).call(this);return"FeatureCollection"===n.type?n.features:"GeometryCollection"===n.type?n.geometries:n}},{key:"_load",value:function(n){this._data=n,this._clearMarkers(),this._loader||(this._loader=new G8e(this.map,this.options.style,this));for(var a=new G2,o=0;o1?Nd:dt)(this.style),s=0;s-1&&this.items.splice(a,1)}},{key:"clear",value:function(){for(var n=0;n=this.duration}},{key:"timePassed",value:function(){return Math.min(this.duration,Vc()-this.startDate)}},{key:"moveTo",value:function(n){var a=this;a.initial=a.movable[a.axis],a.delta=n.location-a.initial,a.duration="number"==typeof n.duration?n.duration:300,a.tick=a._easeProxy(n.ease),a.startDate=Vc(),a.start()}},{key:"_easeProxy",value:function(n){var a=this;return function(){a.movable.moveAxis(a.axis,n(a.timePassed(),a.initial,a.delta,a.duration))}}}],[{key:"easeOutExpo",value:function(n,a,o,s){return n===s?a+o:o*(1-Math.pow(2,-10*n/s))+a}}]),t}(rE),aE=Object.assign,j8e=function(r){r.preventDefault()},rQ=800,aQ=0,H2="move",oE="tap",dQ="doubleTap",hQ="release",fQ="gesturechange",vQ="gestureend",pQ="gesturetap",q8e={api:0,touch:0,mouse:9,pointer:9};function gQ(i){var o,s,l,r=Pf(),t=[],e=i.originalEvent||i,n=i.currentTarget,a=0;if(i.api)t.push({id:2,event:i,target:i.target,currentTarget:i.target,location:i,type:"api"});else if(i.type.match(/touch/))for(o=(s=e?e.changedTouches:[]).length;a1}},{key:"_maxTouchesReached",value:function(){return this.touches.length>=this._maxTouches}},{key:"_disposeAll",value:function(){for(var n=this.touches;n.length>0;)n.pop().dispose()}},{key:"_isMoved",value:function(){return Xo(this.touches,function(n){return n.isMoved()}).length}},{key:"_select",value:function(n){(!this.allowSelection||this.trigger("select",{event:n}))&&n.preventDefault()}},{key:"_start",value:function(n){var l,d,a=this,o=0,s=a.filter,u=gQ(n),c=u.length,h=n.which;if(!(h&&h>1||a._maxTouchesReached()))for(t.current=null,a.currentTarget=n.currentTarget,a.stopPropagation&&n.stopPropagation();oa.max?a.max:a.min)}},{key:"_moveTo",value:function(n){this.transition.moveTo({location:n,duration:500,ease:iQ.easeOutExpo})}}]),t}(rE),s5e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this,e));return Bg(a,e,{origin:{},destination:{},offset:{}}),n}return v(t,[{key:"tick",value:function(){this._updateCoordinates(),this.moveTo(this.origin)}},{key:"done",value:function(){return Gf(this.offset.y)<5&&Gf(this.offset.x)<5}},{key:"onEnd",value:function(){this.moveTo(this.destination),this.callback&&this.callback.call()}},{key:"setCoordinates",value:function(n,a){this.offset={},this.origin=n,this.destination=a}},{key:"setCallback",value:function(n){n&&Ri(n)?this.callback=n:n=void 0}},{key:"_updateCoordinates",value:function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}]),t}(rE),l5e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this)),o="x"===e.axis,l=Pg('
    ');return Bg(a,e,{element:l,elementSize:0,movable:new B2(l),scrollMovable:e.movable,alwaysVisible:e.alwaysVisible,size:o?"width":"height"}),a.scrollMovable.bind(sE,a.refresh.bind(a)),a.container.appendChild(l),e.alwaysVisible&&a.show(),n}return v(t,[{key:"refresh",value:function(){var n=this,a=n.axis,o=n.dimension,s=o.size,u=s/o.total,c=Math.round(-n.scrollMovable[a]*u),d=Math.round(s*u);this.element.style.display=u>=1?"none":"",c+d>s?d=s-c:c<0&&(d+=c,c=0),n.elementSize!==d&&(n.element.style[n.size]=d+"px",n.elementSize=d),n.movable.moveAxis(a,c)}},{key:"show",value:function(){this.element.style.opacity=.7,this.element.style.visibility="visible"}},{key:"hide",value:function(){this.alwaysVisible||(this.element.style.opacity=0)}}]),t}(mt),$2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t);var o=Xe(a=r.call(this));a.element=e,a._initOptions(n);var s=function(r){var t=RY(r);return t.ios||t.android}(navigator.userAgent);o._native=o.options.useNative&&s;var l=Pg('
    ');if(o._native)return Za(e,"km-native-scroller"),AY(l,e),Bg(o,{scrollElement:e,fixedContainer:e.children[0]}),gs(a);e.style.overflow="hidden",Za(e,"km-scroll-wrapper"),function(r,t){for(r.appendChild(t);r.firstChild!==t;)t.appendChild(r.firstChild)}(e,Pg('
    ')),AY(l,e);var c=e.children[1],d=new L8e(e),h=new B2(c),f=new P8e({element:c,container:e,forcedEnabled:o.options.zoom}),g=a.options.avoidScrolling,_=new j2(e,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:o.options.zoom,supportDoubleTap:o.options.supportDoubleTap,start:function(R){f.refresh();var N=Gf(R.x.velocity),V=Gf(R.y.velocity),U=2*N>=V,ee=function(r,t){return r===t||function(r,t){if(!t)return!1;for(var e=t.parentNode;null!==e;){if(e===r)return!0;e=e.parentNode}return!1}(r,t)}(o.fixedContainer,R.event.target),ve=2*V>=N;!ee&&!g(R)&&o.enabled&&(f.x.enabled&&U||f.y.enabled&&ve)?_.capture():_.cancel()}}),C=new B8e({movable:h,dimensions:f,userEvents:_,elastic:o.options.elastic}),w=new a5e({movable:h,dimensions:f,userEvents:_,tapCapture:d}),E=new s5e({moveTo:function(R){o.scrollTo(R.x,R.y)}});return h.bind(sE,function(){o.scrollTop=-h.y,o.scrollLeft=-h.x,o.trigger("scroll",{scrollTop:o.scrollTop,scrollLeft:o.scrollLeft})}),o.options.mousewheelScrolling&&(a._wheelScrollHandler=a._wheelScroll.bind(Xe(a)),eo(e,"DOMMouseScroll mousewheel",a._wheelScrollHandler)),Bg(o,{movable:h,dimensions:f,zoomSnapBack:w,animatedScroller:E,userEvents:_,pane:C,tapCapture:d,pulled:!1,enabled:!0,scrollElement:c,scrollTop:0,scrollLeft:0,fixedContainer:e.children[0]}),o._initAxis("x"),o._initAxis("y"),o._wheelEnd=function(){o._wheel=!1,o.userEvents.end(0,o._wheelY)},f.refresh(),o.options.pullToRefresh&&o._initPullToRefresh(),a}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_wheelScroll",value:function(n){if(!n.ctrlKey){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var a=function(r){var n,t=r.originalEvent||r,e=t.wheelDeltaY;return t.wheelDelta?(void 0===e||e)&&(n=t.wheelDelta):t.detail&&t.axis===t.VERTICAL_AXIS&&(n=10*-t.detail),n}(n);a&&(this._wheelY+=a,this.userEvents.move(0,this._wheelY)),n.preventDefault()}}},{key:"makeVirtual",value:function(){this.dimensions.y.makeVirtual()}},{key:"virtualSize",value:function(n,a){this.dimensions.y.virtualSize(n,a)}},{key:"height",value:function(){return this.dimensions.y.size}},{key:"scrollHeight",value:function(){return this.scrollElement.scrollHeight}},{key:"scrollWidth",value:function(){return this.scrollElement.scrollWidth}},{key:"_resize",value:function(){this._native||this.contentResized()}},{key:"setOptions",value:function(n){this._initOptions(n),n.pullToRefresh&&this._initPullToRefresh()}},{key:"reset",value:function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))}},{key:"contentResized",value:function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)}},{key:"zoomOut",value:function(){var n=this.dimensions;n.refresh(),this._scale(n.fitScale),this.movable.moveTo(n.centerCoordinates())}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1}},{key:"scrollTo",value:function(n,a){this._native?(this.scrollElement.scrollLeft(Gf(n)),this.scrollElement.scrollTop(Gf(a))):(this.dimensions.refresh(),this.movable.moveTo({x:n,y:a}))}},{key:"animatedScrollTo",value:function(n,a,o){this._native?this.scrollTo(n,a):(this.animatedScroller.setCoordinates({x:this.movable.x,y:this.movable.y},{x:n,y:a}),this.animatedScroller.setCallback(o),this.animatedScroller.start())}},{key:"pullHandled",value:function(){}},{key:"destroy",value:function(){wo(this.element,"DOMMouseScroll mousewheel",this._wheelScrollHandler),this.userEvents&&this.userEvents.destroy()}},{key:"_scale",value:function(n){this.dimensions.rescale(n),this.movable.scaleTo(n)}},{key:"_initPullToRefresh",value:function(){}},{key:"_dragEnd",value:function(){}},{key:"_paneChange",value:function(){}},{key:"_initAxis",value:function(n){var a=this,o=a.movable,s=a.dimensions[n],l=a.tapCapture,u=a.pane[n],c=new l5e({axis:n,movable:o,dimension:s,container:a.element,alwaysVisible:a.options.visibleScrollHints});s.bind(sE,function(){c.refresh()}),u.bind(sE,function(){c.show()}),a[n+"inertia"]=new o5e({axis:n,paneAxis:u,movable:o,tapCapture:l,userEvents:a.userEvents,dimension:s,elastic:a.options.elastic,friction:a.options.friction||.96,velocityMultiplier:a.options.velocityMultiplier||10,end:function(){c.hide(),a.trigger("scrollEnd",{axis:n,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft})}})}}]),t}(El);ze($2,{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}}),tE($2,["pull","scroll","resize"]);var u5e=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,i),this.sender=t.sender||r,this.widget=r,this.rtl=Boolean(t.rtl)}return v(i,[{key:"notify",value:function(t,e){this.widget&&this.widget.trigger(t,e)}}]),i}(),c5e=u5e,qd=Math,CQ=qd.min,q2=qd.pow,bQ=Pe,lE="marker",uE="location",SQ="DOMMouseScroll mousewheel",p5e=De({bubble:YY,shape:V2,tile:jY},lE,z2);function wQ(i){var r=[];if(i)for(var t=xY(i).split("-"),e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p(this,t),(n=r.call(this))._init(e,a,o,s),n}return v(t,[{key:"destroy",value:function(){this.scroller.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),Jr(this.markers)?this.markers.forEach(function(a){a.destroy()}):this.markers.destroy();for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.support=Pf(),this.context=s,this.initObserver(s),this.initServices(s),this._initOptions(a),this._setEvents(a),this.crs=new p8e,this._initElement(n),this._viewOrigin=this._getOrigin(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset(),this._mousewheelHandler=this._mousewheel.bind(this),eo(this.element,SQ,this._mousewheelHandler)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_initElement",value:function(n){this.element=n,Za(n,"k-map"),n.style.position="relative",n.setAttribute("data-role","map"),Hk(n);var a=Pg("
    ");this.element.appendChild(a)}},{key:"initServices",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.widgetService=new c5e(this,n)}},{key:"initObserver",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.observers=[],this.addObserver(n.observer)}},{key:"addObserver",value:function(n){n&&this.observers.push(n)}},{key:"removeObserver",value:function(n){var a=this.observers.indexOf(n);a>=0&&this.observers.splice(a,1)}},{key:"requiresHandlers",value:function(n){for(var a=this.observers,o=0;o1&&void 0!==arguments[1]?arguments[1]:{};a.sender=this;for(var o=this.observers,s=!1,l=0;l1&&void 0!==arguments[1]?arguments[1]:{};a.sender=this;for(var o=this.observers,s=!1,l=0;l0&&void 0!==arguments[0]?arguments[0]:{},a=this.element;this.destroy(),Hk(a),this._init(a,n,{},this.context),this._reset()}},{key:"locationToLayer",value:function(n,a){var o=!this.options.wraparound,s=na.create(n);return this.crs.toPoint(s,this._layerSize(a),o)}},{key:"layerToLocation",value:function(n,a){var o=!this.options.wraparound,s=bQ.create(n);return this.crs.toLocation(s,this._layerSize(a),o)}},{key:"locationToView",value:function(n){var a=na.create(n),o=this.locationToLayer(this._viewOrigin);return this.locationToLayer(a).translateWith(o.scale(-1))}},{key:"viewToLocation",value:function(n,a){var o=this.locationToLayer(this._getOrigin(),a),l=bQ.create(n).clone().translateWith(o);return this.layerToLocation(l,a)}},{key:"eventOffset",value:function(n){var a,o,s=nk(this.element);if(n.x&&n.x[uE]||n.y&&n.y[uE])a=n.x[uE]-s.left,o=n.y[uE]-s.top;else{var l=n.originalEvent||n;a=qt(l.pageX,l.clientX)-s.left,o=qt(l.pageY,l.clientY)-s.top}return new Pe(a,o)}},{key:"eventToView",value:function(n){var a=this.eventOffset(n);return this.locationToView(this.viewToLocation(a))}},{key:"eventToLayer",value:function(n){return this.locationToLayer(this.eventToLocation(n))}},{key:"eventToLocation",value:function(n){var a=this.eventOffset(n);return this.viewToLocation(a)}},{key:"viewSize",value:function(){var n=this.element,a=this._layerSize(),o=n.clientWidth;return this.options.wraparound||(o=CQ(a,o)),{width:o,height:CQ(a,n.clientHeight)}}},{key:"exportVisual",value:function(){return this._reset(),!1}},{key:"_setOrigin",value:function(n,a){var s,o=this.viewSize(),l=this._origin=na.create(n);return(s=this.locationToLayer(l,a)).x+=o.width/2,s.y+=o.height/2,this.options.center=this.layerToLocation(s,a).toArray(),this}},{key:"_getOrigin",value:function(n){var o,a=this.viewSize();return(n||!this._origin)&&((o=this.locationToLayer(this.center())).x-=a.width/2,o.y-=a.height/2,this._origin=this.layerToLocation(o)),this._origin}},{key:"_setExtent",value:function(n){var a=iE.create(n),o=a.se.clone();this.options.wraparound&&o.lng<0&&n.nw.lng>0&&(o.lng=180+(180+o.lng));var s=new iE(a.nw,o);this.center(s.center());var c,l=this.element.clientWidth,u=this.element.clientHeight;for(c=this.options.maxZoom;c>=this.options.minZoom;c--){var d=this.locationToLayer(s.nw,c),h=this.locationToLayer(s.se,c),f=qd.abs(h.x-d.x),g=qd.abs(h.y-d.y);if(f<=l&&g<=u)break}this.zoom(c)}},{key:"_getExtent",value:function(){var n=this._getOrigin(),a=this.locationToLayer(n),o=this.viewSize();a.x+=o.width,a.y+=o.height;var s=this.layerToLocation(a);return new iE(n,s)}},{key:"_zoomAround",value:function(n,a){this._setOrigin(this.layerToLocation(n,a),a),this.zoom(a)}},{key:"_initControls",value:function(){var n=this.options.controls;n.attribution&&this._createAttribution(n.attribution),this.support.mobileOS||(n.navigator&&this._createNavigator(n.navigator),n.zoom&&this._createZoomControl(n.zoom))}},{key:"_createControlElement",value:function(n,a){var o=n.position||a,s="."+wQ(o).replace(" ","."),l=this.element.querySelector(".k-map-controls"+s)||[];if(0===l.length){var u=document.createElement("div");Za(u,"k-map-controls "+wQ(o)),this.element.appendChild(l=u)}var c=document.createElement("div");return l.appendChild(c),c}},{key:"_createAttribution",value:function(n){var a=this._createControlElement(n,"bottomRight");this.attribution=new FY(a,n)}},{key:"_createNavigator",value:function(n){var a=this._createControlElement(n,"topLeft"),o=this.navigator=new N2(a,n);this._navigatorPan=this._navigatorPan.bind(this),o.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),o.bind("center",this._navigatorCenter)}},{key:"_navigatorPan",value:function(n){var a=this.scroller,o=a.scrollLeft+n.x,s=a.scrollTop-n.y,l=this._virtualSize,c=this.element.clientHeight;o=Mt(o,l.x.min,l.x.max-this.element.clientWidth),s=Mt(s,l.y.min,l.y.max-c),this.scroller.one("scroll",ui(this._scrollEnd,this)),this.scroller.scrollTo(-o,-s)}},{key:"_navigatorCenter",value:function(){this.center(this.options.center)}},{key:"_createZoomControl",value:function(n){var a=this._createControlElement(n,"topLeft"),o=this.zoomControl=new F2(a,n);this._zoomControlChange=this._zoomControlChange.bind(this),o.bind("change",this._zoomControlChange)}},{key:"_zoomControlChange",value:function(n){this.trigger("zoomStart",{originalEvent:n})||(this.zoom(this.zoom()+n.delta),this.trigger("zoomEnd",{originalEvent:n}))}},{key:"_initScroller",value:function(){var o=this.scroller=new $2(this.element.children[0],{friction:this.support.mobileOS?.93:.9,velocityMultiplier:5,zoom:!1!==this.options.zoomable,mousewheelScrolling:!1,supportDoubleTap:!0});o.bind("scroll",ui(this._scroll,this)),o.bind("scrollEnd",ui(this._scrollEnd,this)),o.userEvents.bind("gesturestart",ui(this._scaleStart,this)),o.userEvents.bind("gestureend",ui(this._scale,this)),o.userEvents.bind("doubleTap",ui(this._doubleTap,this)),o.userEvents.bind("tap",ui(this._tap,this)),this.scrollElement=o.scrollElement}},{key:"_initLayers",value:function(){for(var n=this.options.layers,a=this.layers=[],o=0;o0||(this.markers=new z2(this,this.options.markerDefaults),this.markers.add(this.options.markers))}},{key:"_scroll",value:function(n){var a=this.locationToLayer(this._viewOrigin).round(),o=n.sender.movable,s=new Pe(o.x,o.y).scale(-1).scale(1/o.scale);a.x+=s.x,a.y+=s.y,this._scrollOffset=s,this._setOrigin(this.layerToLocation(a)),this.trigger("pan",{originalEvent:n,origin:this._getOrigin(),center:this.center()})}},{key:"_scrollEnd",value:function(n){!this._scrollOffset||!this._panComplete()||(this._scrollOffset=null,this._panEndTimestamp=Vc(),this.trigger("panEnd",{originalEvent:n,origin:this._getOrigin(),center:this.center()}))}},{key:"_panComplete",value:function(){return Vc()-(this._panEndTimestamp||0)>50}},{key:"_scaleStart",value:function(n){if(this.trigger("zoomStart",{originalEvent:n})){var a=n.touches[1];a&&a.cancel()}}},{key:"_scale",value:function(n){var o=this._scaleToZoom(this.scroller.movable.scale),s=new Pe(n.center.x,n.center.y),l=this.viewToLocation(s,o),c=this.locationToLayer(l,o).translate(-s.x,-s.y);this._zoomAround(c,o),this.trigger("zoomEnd",{originalEvent:n})}},{key:"_scaleToZoom",value:function(n){var a=this._layerSize()*n,s=qd.log(a/this.options.minSize)/qd.log(2);return qd.round(s)}},{key:"_reset",value:function(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.trigger("beforeReset"),this.trigger("reset")}},{key:"_resetScroller",value:function(){var n=this.scroller,a=n.dimensions.x,o=n.dimensions.y,s=this._layerSize(),l=this.extent().nw,u=this.locationToLayer(l).round();n.movable.round=!0,n.reset(),n.userEvents.cancel();var c=this.zoom();n.dimensions.forcedMinScale=q2(2,this.options.minZoom-c),n.dimensions.maxScale=q2(2,this.options.maxZoom-c);var d={min:-u.x,max:s-u.x},h={min:-u.y,max:s-u.y};if(this.options.wraparound&&(d.max=20*s,d.min=-d.max),!1===this.options.pannable){var f=this.viewSize();d.min=h.min=0,d.max=f.width,h.max=f.height}a.makeVirtual(),o.makeVirtual(),a.virtualSize(d.min,d.max),o.virtualSize(h.min,h.max),this._virtualSize={x:d,y:h}}},{key:"_renderLayers",value:function(){}},{key:"_layerSize",value:function(n){var a=qt(n,this.options.zoom);return this.options.minSize*q2(2,a)}},{key:"_tap",value:function(n){if(this._panComplete()){var a=this.eventOffset(n);this.trigger("click",{originalEvent:n,location:this.viewToLocation(a)})}}},{key:"_doubleTap",value:function(n){if(!1!==this.options.zoomable&&!this.trigger("zoomStart",{originalEvent:n})){var o=this.zoom()+1,s=this.eventOffset(n),l=this.viewToLocation(s),c=this.locationToLayer(l,o).translate(-s.x,-s.y);this._zoomAround(c,o),this.trigger("zoomEnd",{originalEvent:n})}}},{key:"_mousewheel",value:function(n){n.preventDefault();var a=lN(n)>0?-1:1,o=this.options,s=this.zoom(),l=Mt(s+a,o.minZoom,o.maxZoom);if(!1!==o.zoomable&&l!==s&&!this.trigger("zoomStart",{originalEvent:n})){var u=this.eventOffset(n),c=this.viewToLocation(u),h=this.locationToLayer(c,l).translate(-u.x,-u.y);this._zoomAround(h,l),this.trigger("zoomEnd",{originalEvent:n})}}}]),t}(El);ze(DQ,{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}},bubble:{style:{fill:{color:"#fff",opacity:.5},stroke:{color:"#aaa",width:.5}}},marker:{shape:"pinTarget",tooltip:{position:"top"}}},center:[0,0],zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{position:"top"}},wraparound:!0,renderPointsAsMarkers:!1}),tE(DQ,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);var X2="Arial, Helvetica, sans-serif",Z2="12px "+X2,TQ="16px "+X2,AQ="transparent",MQ=function(){return{icon:{border:{width:1}},label:{font:Z2,padding:3},line:{length:10,width:2},visible:!0}},m5e=function(){return{labels:{font:Z2},notes:MQ(),title:{font:TQ,margin:5}}},M5e=function(r){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:r.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:AQ},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:AQ,visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:MQ(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},R5e=function(){return{font:TQ}},O5e=function(){return{labels:{font:Z2}}},GQ=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{axisDefaults:m5e(),categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:M5e(r),title:R5e(),legend:O5e()}};function I5e(i,r){var t={width:"800px",height:"600px",cors:"Anonymous"},e=i,n=i.clippedBBox();if(n){var a=n.getOrigin();(e=new sn).transform(Hn().translate(-a.x,-a.y)),e.children.push(i);var o=n.getSize();t.width=o.width+"px",t.height=o.height+"px"}var s=Object.assign(t,r),l=document.createElement("div"),u=l.style;u.display="none",u.width=s.width,u.height=s.height,document.body.appendChild(l);var c=new CX(l,s);c.suspendTracking(),c.draw(e);var d=c.image(),h=function(){c.destroy(),document.body.removeChild(l)};return d.then(h,h),d}function F5e(i,r){var t=function N5e(i){var r=new hX({skipBaseHref:!0}),t=i.clippedBBox(),e=i;if(t){var n=t.getOrigin(),a=new sn;a.transform(Hn().translate(-n.x,-n.y)),a.children.push(i),e=a}r.load([e]);var o="").concat(r.render(),"");return r.destroy(),o}(i);return(!r||!r.raw)&&(t="data:image/svg+xml;base64,"+GD(t)),gf().resolve(t)}function cE(i){return"string"==typeof i}var r,G5e=/\{(\d+)}?\}/g,V5e=function(){function i(r){var t=r.name,e=r.message;if(p(this,i),!t||!e)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=e}return v(i,[{key:"formatMessage",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n=1;a--){var o=e[a];(o===r.variant||o===r.script)&&e.splice(a,1)}var s=e.length;if(s>1)return e[s-1].toUpperCase()}(i.name,t),i.territory=e,e}function r4e(i,r){for(var t in r)"numbers"===t?q5e(i,r[t]):"dates"===t&&n4e(i,r[t])}function $Q(i,r){var t=r.type,e=r.nameType,n=r.standAlone,a=r.lower,l=(a?"lower-":"")+e,u=Vg(i).calendar[t][n?"stand-alone":"format"],c=u[l];return!c&&a&&(c=u[l]=function u4e(i){var r=Array.isArray(i)?function s4e(i){for(var r=[],t=0;t1&&void 0!==arguments[1])||arguments[1];if(XQ[i])return XQ[i];var t=zi.supplemental.currencyData;if(t){var e=t.region[i];if(e)return m4e(e);if(r)throw f4e.error(i)}else if(r)throw h4e.error()}(vE(t),r);if(!n&&r)throw v4e.error(t.name);e.localeCurrency=n}return e.localeCurrency}var iL=["sun","mon","tue","wed","thu","fri","sat"],b4e=Tl.NoWeekData,S4e=Tl.NoFirstDay;function QQ(i){var r=Vg(i);if(!isNaN(r.firstDay))return r.firstDay;var t=zi.supplemental.weekData;if(!t)throw b4e.error();var e=t.firstDay[vE(r)]||t.firstDay["001"];if(!e)throw S4e.error();return r.firstDay=iL.indexOf(e),r.firstDay}var w4e=Tl.NoWeekData;function JQ(i){return 1/i==-1/0}function eJ(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.currency||(r.currency=YQ(i,!0));var t=y4e(i,r);return t}function tJ(i,r,t,e,n){var a=n.numbers.symbols,o=i.indexOf(a.decimal),s=e.groupSize.slice(),l=s.shift(),u=-1!==o?o:t+1,c=i.substring(r,u),d=i,h=c.length;if(h>=l){for(var f=h,g=[];f>-1;){var _=c.substring(f-l,f);_&&g.push(_),f-=l;var C=s.shift();if(0===(l=void 0!==C?C:l)){(_=c.substring(0,f))&&g.push(_);break}}c=g.reverse().join(a.group),d=i.substring(0,r)+c+i.substring(u)}return d}function aL(i){return i===Wk||i===dE}function to(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e=r-String(i).length,n=i;if(e>0){var a=new Array(e+1).join("0");n=t?i+a:a+i}return n}function $k(i,r){var t=i,e=r||0;return t=t.toString().split("e"),t=(t=Math.round(Number(t[0]+"e"+(t[1]?Number(t[1])+e:e)))).toString().split("e"),(t=Number(t[0]+"e"+(t[1]?Number(t[1])-e:-e))).toFixed(Math.min(e,20))}var M4e=/0+$/;function N4e(i,r,t){var e=t.numbers.symbols,n=r.style,a=aL(n);if(n===VQ)return(void 0!==r.minimumFractionDigits?i.toExponential(r.minimumFractionDigits):i.toExponential()).replace(Zd,e.decimal);var l,s=i;a&&(r.value=s,l=eJ(t,r)),n===Ug&&(s*=100,l=e.percentSign);var u=function R4e(i){var a,r=i.minimumFractionDigits,t=i.maximumFractionDigits,e=i.style,n=aL(e);return n&&(a=function k4e(i){var r=2,t=2,e=((zi.supplemental.currencyData||{}).fractions||{})[i];return e&&e._digits&&(t=r=parseInt(e._digits,10)),{minimumFractionDigits:r,maximumFractionDigits:t}}(i.currency)),void 0===r&&(r=n?a.minimumFractionDigits:0),void 0===t&&(t=e===Ug?Math.max(r,0):n?Math.max(r,a.maximumFractionDigits):Math.max(r,3)),{minimumFractionDigits:r,maximumFractionDigits:t}}(r),c=u.minimumFractionDigits,h=(s=$k(s,u.maximumFractionDigits))<0,f=JQ(i),g=s.split(Zd),_=g[0],C=to(g[1]?g[1].replace(M4e,""):"",c,!0);h&&(_=_.substring(1)),r.minimumIntegerDigits&&(_=to(_,r.minimumIntegerDigits));var E,w=!1!==r.useGrouping?tJ(_,0,_.length,r,t):_;if(C&&(w+=e.decimal+C),a&&"name"===r.currencyDisplay)E=function I4e(i,r){var t=i.numbers.currency,e=1!==r?t["unitPattern-count-other"]:t["unitPattern-count-one"];return r<0&&(e=e.replace(Xd,"-".concat(Xd))),e}(t,i);else{var M=r.patterns;E=h||f?M[1]||"-"+M[0]:M[0]}if(E===Xd&&!h)return w;var R=function O4e(i,r,t){for(var e="",n=0,a=r.length;n-1||r.indexOf('"')>-1||r.indexOf("\\")>-1){var t=i.literals=[];i.format=r.replace(F4e,function(e){var n=e.charAt(0).replace("\\",""),a=e.slice(1).replace(n,"");return t.push(a),"__??__"})}}var P4e=/(\.(?:[0-9]*[1-9])?)0+$/g,B4e=/\.$/,G4e=/\,/g;function aJ(i,r,t){return-1===i&&-1!==r?r:-1!==i&&-1===r?i:t?Math.min(i,r):Math.max(i,r)}function X4e(i,r,t){var e={negative:i<0,number:Math.abs(i),negativeZero:JQ(i),format:r};return function H4e(i){var r=i.number,t=i.format;if(t=t.split(";"),(i.negative||i.negativeZero)&&t[1])t=t[1],i.hasNegativeFormat=!0;else if(0===r){var e=t[2];t=e||t[0],e&&function z4e(i){return-1===i.indexOf("#")&&-1===i.indexOf("0")}(e)&&(i.constant=e)}else t=t[0];i.format=t}(e),e.constant?e.constant:(rJ(e),iJ(e,t),function K4e(i){i.hasGroup=i.format.indexOf(",")>-1,i.hasGroup&&(i.format=i.format.replace(G4e,""))}(e),function U4e(i){var r=i.number,t=i.format,e=t.indexOf(Zd);if(-1!==e){var n=t.lastIndexOf("0")-e,a=t.lastIndexOf("#")-e,o=n>-1,s=a>-1,l=r.toString().split("e"),u=(l=(l=l[1]?$k(r,Math.abs(l[1])):l[0]).split(Zd)[1]||"").length,c=-1;o||s?o&&n>a?u=n:a>n&&(s&&u>a?u=a:o&&u-1&&(r=$k(r,u),c>-1&&(r=function V4e(i,r){var t;return t=0===r?P4e:new RegExp("(\\.[0-9]{".concat(r,"}[1-9]*)0+$"),"g"),i.replace(t,"$1").replace(B4e,"")}(r,c)))}else r=$k(r);i.negative&&-1*r>=0&&!i.negativeZero&&(i.negative=!1),i.number=r,i.decimalIndex=e}(e),function j4e(i){var r=i.format,t=r.indexOf("#"),e=r.indexOf("0"),n=aJ(t,e,!0),a=aJ(t=r.lastIndexOf("#"),e=r.lastIndexOf("0"));n===r.length&&(a=n),i.start=n,i.end=a,i.lastZeroIndex=e}(e),function q4e(i,r){var t=i.number;return-1!==i.start&&(t=function $4e(i,r){var t=i.start,e=i.end,n=i.negative,a=i.negativeZero,o=i.format,s=i.decimalIndex,l=i.lastZeroIndex,u=i.hasNegativeFormat,c=i.hasGroup,d=i.number,h=d.toString().split(Zd),f=o.length,g=h[0],_=h[1]||"",C=g.length,w="";d=o.substring(0,t),(n||a)&&!u&&(d+="-");for(var E=t;E-1&&(d+=g,E=s),s===E){d+=(_?r.numbers.symbols.decimal:"")+_,E+=e-s+1;continue}"0"===M?(d+=M,w=M):"#"===M&&(d+=w)}return c&&(d=tJ(d,t+(n&&!u?1:0),Math.max(e,C+t),r.numbers.decimal,r)),e>=t&&(d+=o.substring(e+1)),d}(i,r),t=function W4e(i,r,t){var e=i;if(r===Wk||r===Ug){e="";for(var n=0,a=i.length;n1&&void 0!==arguments[1]?arguments[1]:Xd,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hg;if(null==i)return"";if(!isFinite(i))return String(i);var a,e=Vf(t),n=oJ(r);if(n){var o=n.style||Y2;a=N4e(i,Object.assign({},e.numbers[o],n),e)}else a=X4e(i,r,e);return a}function oL(i){return"number"==typeof i}var Q4e=/[eE][\-+]?[0-9]+/,lJ=/\u00A0/g;function uJ(i,r){if(r.length>1){var t=(r[1]||"").replace("$","").split(Xd);if(i.indexOf(t[0])>-1&&i.indexOf(t[1])>-1)return i.replace(t[0],"").replace(t[1],"")}}function J4e(i,r,t){var o,e=oJ(t)||{},n=aL(e.style),a=i,s=e.currency||YQ(r,n);if(s){var l=function _4e(i,r){var e=ZQ(i,r,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]);if(e){if(!e.displays){var n=[r];for(var a in e)n.push(e[a]);n.sort(g4e),e.displays=n}return e.displays}}(r,s,n);if(l)for(var u=0;ue&&(e=u,n=s,a=r[o])}a=a.replace("v","z");for(var _=0;_0){var a=i.substr(0,e),o=i.substr(e);n=sL(r.calendar.dateTimeFormats.short,t[o]||cL(pE(o),t),t[a]||cL(pE(a),t))}else n=cL(pE(i),t);return function fKe(i,r,t){jg[t]||(jg[t]={}),jg[t][i]=r}(i,n,r.name),n}(n,r))}return e||(e=t.patterns.d),e}function fJ(i){var r;return i<=3?r="abbreviated":4===i?r="wide":5===i?r="narrow":6===i&&(r="short"),r}function Al(i,r,t,e,n){return $Q(i,{type:r,nameType:fJ(t),standAlone:e,lower:n})}function vJ(i){return"function"==typeof i}function hL(i){return Boolean(i)&&vJ(i.getTime)&&vJ(i.getMonth)}var gE="hour",mE="zone",fL="weekday",gJ="quarter",gKe={G:"era",y:"year",q:gJ,Q:gJ,M:"month",L:"month",d:"day",E:fL,c:fL,e:fL,h:gE,H:gE,k:gE,K:gE,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:mE,X:mE,z:mE,Z:mE},Zk=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function mJ(i,r,t,e){return r<=2?to(i+1,r):Al(t,"months",r,e)[i]}function _J(i,r,t,e){var n=Math.floor(i.getMonth()/3);return r<3?n+1:Al(t,"quarters",r,e)[n]}function _E(i,r,t){var e=t.shortHours,n=t.optionalMinutes,a=t.separator,o=t.localizedName,s=t.zZeroOffset,l=i.getTimezoneOffset()/60;if(0===l&&s)return"Z";var u=l<=0?"+":"-",c=Math.abs(l).toString().split("."),d=c[1]||0,h=u+(e?c[0]:to(c[0],2));return(d||!n)&&(h+=(a?":":"")+to(d,2)),o&&(h=sL(0===l?r.calendar.gmtZeroFormat:r.calendar.gmtFormat,h)),h}function yJ(i,r,t,e){return r<3?function mKe(i,r,t){var e=QQ(t);return(i2&&void 0!==arguments[2]?arguments[2]:Hg;if(!hL(i))return null==i?"":i;var e=Vf(t),n=dL(r,e);return n.replace(Zk,function(a){var o=a.length;return a.includes("'")||a.includes('"')?a.slice(1,o-1):er[a[0]](i,o,e)})}function CJ(i,r,t){var e=i.getTimezoneOffset(),n=new Date(i.getTime()+6e4*(r-t)),a=n.getTimezoneOffset();return new Date(n.getTime()+6e4*(a-e))}er.d=function(i,r){return to(i.getDate(),r)},er.E=function(i,r,t){return Al(t,"days",r)[i.getDay()]},er.M=function(i,r,t){return mJ(i.getMonth(),r,t,!1)},er.L=function(i,r,t){return mJ(i.getMonth(),r,t,!0)},er.y=function(i,r){var t=i.getFullYear();return 2===r&&(t%=100),to(t,r)},er.h=function(i,r){return to(i.getHours()%12||12,r)},er.H=function(i,r){return to(i.getHours(),r)},er.k=function(i,r){return to(i.getHours()||24,r)},er.K=function(i,r){return to(i.getHours()%12,r)},er.m=function(i,r){return to(i.getMinutes(),r)},er.s=function(i,r){return to(i.getSeconds(),r)},er.S=function(i,r){var t=i.getMilliseconds();return 0!==t?to(String(t/1e3).split(".")[1].substr(0,r),r,!0):to("",r)},er.a=function(i,r,t){return Al(t,"dayPeriods",r)[i.getHours()<12?"am":"pm"]},er.z=function(i,r,t){return _E(i,t,{shortHours:r<4,optionalMinutes:r<4,separator:!0,localizedName:!0})},er.Z=function(i,r,t){return _E(i,t,{separator:r>3,localizedName:4===r,zZeroOffset:5===r})},er.x=function(i,r,t){return _E(i,t,{optionalMinutes:1===r,separator:3===r||5===r})},er.X=function(i,r,t){return _E(i,t,{optionalMinutes:1===r,separator:3===r||5===r,zZeroOffset:!0})},er.G=function(i,r,t){var e=i.getFullYear()>=0?1:0;return Al(t,"eras",r)[e]},er.e=yJ,er.c=function(i,r,t){return yJ(i,r,t,!0)},er.q=function(i,r,t){return _J(i,r,t,!0)},er.Q=_J;var yKe=/([+|\-]\d{1,2})(:?)(\d{2})?/,kKe=/^\/Date\((.*?)\)\/$/,CKe=/[+-]\d*/,bKe={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},SKe=/\d+/,wKe=/^ */,DKe=/ *$/,EKe=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],SJ=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Ks(i,r,t){return!(i>=r&&i<=t)}function ia(i,r){for(var t=r.format,e=r.idx,n=0;t[e]===i;)n++,e++;return n>0&&(e-=1),r.idx=e,n}function mu(i,r){var t=i?bKe[i]||new RegExp("^\\d{1,"+i+"}"):SKe,e=r.value.substr(r.valueIdx,i).match(t);return e?(r.valueIdx+=(e=e[0]).length,parseInt(e,10)):null}function Uf(i,r,t){for(var a,o,u,e=0,n=i.length,s=0,l=0;es&&(s=o,l=e);return s?(r.valueIdx+=s,l+1):null}function vL(i){var r=!1;return i.value.charAt(i.valueIdx)===i.format[i.idx]&&(i.valueIdx++,r=!0),r}function yE(i,r,t){var e=t.shortHours,n=t.noSeparator,a=t.optionalMinutes,o=t.localizedName,s=t.zLiteral;if(i.UTC=!0,s&&"Z"===i.value.charAt(i.valueIdx))return i.valueIdx++,!1;if(o&&!Uf(function AKe(i){var r=i.gmtFormat,t=i.gmtZeroFormat;if(!r)throw Tl.NoGMTInfo.error();return[r.replace("{0}","").toLowerCase(),t.replace("{0}","").toLowerCase()]}(r.calendar),i,!0))return!0;var l=yKe.exec(i.value.substr(i.valueIdx,6));if(!l)return!o;var u=l[1],c=l[3],d=parseInt(u,10),h=l[2],f=parseInt(c,10);if(isNaN(d)||!e&&3!==u.length||!a&&isNaN(f)||n&&h||(isNaN(f)&&(f=null),Ks(d,-12,13)||f&&Ks(f,0,59)))return!0;i.valueIdx+=l[0].length,i.hoursOffset=d,i.minutesOffset=f}function wJ(i,r,t){var e=ia(i,r),n=Al(t,"months",e,"L"===i,!0),a=e<3?mu(2,r):Uf(n,r,!0);if(null===a||Ks(a,1,12))return!0;r.month=a-1}function DJ(i,r,t){var e=ia(i,r),n=Al(t,"days",e,"c"===i,!0),a=e<3?mu(1,r):Uf(n,r,!0);if(!a&&0!==a||Ks(a,1,7))return!0}var dr={};function MKe(i,r){var t=wKe.exec(r)[0],e=DKe.exec(r)[0];return"".concat(t).concat(i).concat(e)}function RKe(i,r,t){for(var e=dL(r,t).split(""),n={format:e,idx:0,value:MKe(i,r),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},a=e.length,o=!1;n.idx2029&&(t-=100)}i.year=t},dr.h=function(i){ia("h",i);var r=mu(2,i);if(12===r&&(r=0),null===r||Ks(r,0,11))return!0;i.hours=r},dr.K=function(i){ia("K",i);var r=mu(2,i);if(null===r||Ks(r,0,11))return!0;i.hours=r},dr.a=function(i,r){var e=Al(r,"dayPeriods",ia("a",i),!1,!0),n=Uf([e.pm],i,!0);if(!n&&!Uf([e.am],i,!0))return!0;i.pmHour=n},dr.H=function(i){ia("H",i);var r=mu(2,i);if(null===r||Ks(r,0,23))return!0;i.hours=r},dr.k=function(i){ia("k",i);var r=mu(2,i);if(null===r||Ks(r,1,24))return!0;i.hours=24===r?0:r},dr.m=function(i){ia("m",i);var r=mu(2,i);if(null===r||Ks(r,0,59))return!0;i.minutes=r},dr.s=function(i){ia("s",i);var r=mu(2,i);if(null===r||Ks(r,0,59))return!0;i.seconds=r},dr.S=function(i){var r=ia("S",i),t=i.value.substr(i.valueIdx,r),e=null;if(isNaN(parseInt(t,10))||(e=$k(e=parseFloat("0."+t,10),3),e*=1e3,i.valueIdx+=r),null===e||Ks(e,0,999))return!0;i.milliseconds=e},dr.z=function(i,r){var e=ia("z",i)<4,n=yE(i,r,{shortHours:e,optionalMinutes:e,localizedName:!0});if(n)return n},dr.Z=function(i,r){var t=ia("Z",i),e=yE(i,r,{noSeparator:t<4,zLiteral:5===t,localizedName:4===t});if(e)return e},dr.x=function(i,r){var t=ia("x",i),e=yE(i,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t});if(e)return e},dr.X=function(i,r){var t=ia("X",i),e=yE(i,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t,zLiteral:!0});if(e)return e},dr.G=function(i,r){var e=Al(r,"eras",ia("G",i),!1,!0);if(null===Uf([e[0],e[1]],i,!0))return!0},dr.e=function(i,r){return DJ("e",i,r)},dr.c=function(i,r){return DJ("c",i,r)};var LKe={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},EJ="literal";function pL(i,r){var t=i[i.length-1];t&&t.type===EJ?t.pattern+=r:i.push({type:EJ,pattern:r})}function PKe(i){return"h"===i||"K"===i}var GKe=/\{(\d+)(:[^\}]+)?\}/g;function gL(i,r,t){if(r){if(hL(i))return kJ(i,r,t);if(oL(i))return sJ(i,r,t)}return null!=i?i:""}var UKe={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440833,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Uc="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",TJ={NoCurrency:"Solution: ".concat(Uc,"#toc-no-currency"),NoCurrencyDisplay:"Solution: ".concat(Uc,"#toc-no-currency-display"),NoCurrencyRegion:"Solution: ".concat(Uc,"#toc-no-currency-region"),NoDateFieldNames:"Solution: ".concat(Uc,"#toc-no-date-filed-names"),NoFirstDay:"Solution: ".concat(Uc,"#toc-no-first-day"),NoGMTInfo:"Solution: ".concat(Uc,"#toc-no-gmt-info"),NoLocale:"Solution: ".concat(Uc,"#toc-no-locale"),NoValidCurrency:"Solution: ".concat(Uc,"#toc-no-valid-currency"),NoWeekData:"Solution: ".concat(Uc,"#toc-no-week-data")};function AJ(i){var r=i.message,t=TJ[Object.keys(TJ).filter(function(e){return 0===r.indexOf(e)})[0]];return t?"".concat(r," ").concat(t):r}function ts(i){return function(){try{for(var r=arguments.length,t=new Array(r),e=0;e1&&void 0!==arguments[1]?arguments[1]:Hg,t=Vf(r),e=t.calendar.dateFields;if(!e)throw Tl.NoDateFieldNames.error();var n=e[i.type]||{};return n[i.nameType]||n.wide}),KKe=ts(QQ),jKe=ts(function VKe(i,r,t){return i.replace(GKe,function(e,n,a){return gL(r[parseInt(n,10)],a?a.substring(1):"",t)})}),WKe=ts(kJ),$Ke=ts(sJ),qKe=(ts(function a4e(){for(var i=arguments.length,r=0;r2&&void 0!==arguments[2]?arguments[2]:Hg;if(!i)return null;if(hL(i))return i;var e=String(i).trim(),n=IKe(e);if(n)return n;for(var a=Vf(t),o=r||NKe(a.calendar),s=(o=Array.isArray(o)?o:[o]).length,l=0;l1&&void 0!==arguments[1]?arguments[1]:Hg,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!i&&0!==i)return null;if(oL(i))return i;var s,e=Vf(r),n=e.numbers.symbols,a=i.toString(),o=t||{};if(cE(t)&&(rJ(o={format:t}),a=eKe(a,o),iJ(o,e)),(o.style===Ug||a.indexOf(n.percentSign)>-1)&&(a=a.replace(n.percentSign,""),s=!0),Q4e.test(a))return a=parseFloat(a.replace(n.decimal,Zd)),isNaN(a)?null:a;var l=J4e(a,e,o),u=l.negative,c=l.number,d=(a=String(c).trim()).indexOf("-");if(d>0)return null;var h=d>-1;return h=void 0!==u?u:h,a=a.replace("-","").replace(lJ," ").split(n.group.replace(lJ," ")).join("").replace(n.decimal,Zd),a=parseFloat(a),isNaN(a)?a=null:h&&(a*=-1),a&&s&&(a/=100),a}),YKe=ts(function BKe(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hg,t=Vf(r),e=dL(i,t),n=[],a=Zk.lastIndex=0,o=Zk.exec(e);o;){var s=o[0];if(a=h&&(c.names={type:d.type,nameType:fJ(f),standAlone:d.standAlone===l})}n.push(c)}a=Zk.lastIndex,o=Zk.exec(e)}return a1?o-1:0),l=1;l1){var l=e[0],u=e[1];s=Math.sqrt(Math.pow(l.pageX-u.pageX,2)+Math.pow(l.pageY-u.pageY,2))}return{distance:s,event:r.srcEvent,preventDefault:function(){r.preventDefault()},target:r.target,touches:e.map(w6e),type:r.type,x:{delta:t?a-t.x.location:0,initialDelta:r.deltaX,location:a,startLocation:a-r.deltaX},y:{delta:t?o-t.y.location:0,initialDelta:r.deltaY,location:o,startLocation:o-r.deltaY}}}(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](n),n}},{key:"bind",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.unbind(),this.eventHandlers=t;for(var e=0;e0;)a=a[s]=a[s]||{},s=o.shift();a[s]=n}},{key:"next",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.source.next(e.store)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),$g=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.configurationService=t,this.collectionService=e,this.options={},this.subscription=t.onFastChange$.subscribe(function(a){n.options=a,n.notify()})}return v(r,[{key:"ngOnChanges",value:function(e){var n=this.configurationService.store;mL(e,n),this.configurationService.push(n)}},{key:"notifyChanges",value:function(e){this.ngOnChanges(_L(e))}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"notify",value:function(){!this.collectionService||this.collectionService.notify(new O6e(this,this.options))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275dir=X({type:i,features:[Ie]}),i}(),ft=function(){var i=function(){function r(t,e){if(p(this,r),this.configKey=t,this.configurationService=e,this.store={},void 0===t)throw new Error("Configuration key not set")}return v(r,[{key:"ngOnDestroy",value:function(){this.store=void 0,this.notify()}},{key:"ngOnChanges",value:function(e){mL(e,this.store),this.notify()}},{key:"notifyChanges",value:function(e){this.ngOnChanges(_L(e))}},{key:"markAsVisible",value:function(){this.store.visible=!0,this.notify()}},{key:"notify",value:function(){this.configurationService.notify(new yL(this.configKey,this.store))}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275dir=X({type:i,features:[Ie]}),i}(),kL=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"tooltip",n)).configurationService=n,a.markAsVisible(),a}return v(e,[{key:"seriesTooltipTemplateRef",get:function(){return this.seriesTooltipTemplate}}]),e}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-item-tooltip"]],contentQueries:function(t,e,n){var a;1&t&&he(n,$e,5),2&t&&P(a=B())&&(e.seriesTooltipTemplate=a.first)},inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),NJ=function(r){return void 0!==r&&!r},zf=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).configurationService=n,o.collectionService=a,o}return v(e,[{key:"toggleVisibility",value:function(){this.options.visible=NJ(this.options.visible),this.notify()}},{key:"togglePointVisibility",value:function(a){var o=this.options.pointVisibility=this.options.pointVisibility||{};o[a]=NJ(o[a]),this.notify()}},{key:"seriesTooltipTemplateRef",get:function(){if(this.seriesTooltip)return this.seriesTooltip.seriesTooltipTemplateRef}}]),e}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,kL,5),2&t&&P(a=B())&&(e.seriesTooltip=a.first)},inputs:{aggregate:"aggregate",autoFit:"autoFit",axis:"axis",border:"border",categoryAxis:"categoryAxis",categoryField:"categoryField",closeField:"closeField",color:"color",colorField:"colorField",connectors:"connectors",currentField:"currentField",dashType:"dashType",data:"data",downColor:"downColor",downColorField:"downColorField",dynamicHeight:"dynamicHeight",dynamicSlope:"dynamicSlope",errorHighField:"errorHighField",errorLowField:"errorLowField",explodeField:"explodeField",field:"field",fromField:"fromField",gap:"gap",highField:"highField",holeSize:"holeSize",line:"line",lowField:"lowField",lowerField:"lowerField",margin:"margin",maxSize:"maxSize",mean:"mean",meanField:"meanField",median:"median",medianField:"medianField",minSize:"minSize",missingValues:"missingValues",name:"name",neckRatio:"neckRatio",negativeColor:"negativeColor",negativeValues:"negativeValues",noteTextField:"noteTextField",opacity:"opacity",openField:"openField",outliersField:"outliersField",overlay:"overlay",padding:"padding",q1Field:"q1Field",q3Field:"q3Field",segmentSpacing:"segmentSpacing",size:"size",sizeField:"sizeField",spacing:"spacing",stack:"stack",startAngle:"startAngle",style:"style",summaryField:"summaryField",target:"target",toField:"toField",type:"type",upperField:"upperField",visible:"visible",visibleInLegend:"visibleInLegend",visibleInLegendField:"visibleInLegendField",visual:"visual",width:"width",whiskers:"whiskers",xAxis:"xAxis",xErrorHighField:"xErrorHighField",xErrorLowField:"xErrorLowField",xField:"xField",yAxis:"yAxis",yErrorHighField:"yErrorHighField",yErrorLowField:"yErrorLowField",yField:"yField",zIndex:"zIndex",errorBars:"errorBars",extremes:"extremes",highlight:"highlight",labels:"labels",markers:"markers",notes:"notes",outliers:"outliers",tooltip:"tooltip"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),N6e={horizontal:"fit",vertical:"fit"},FJ=function(){var i=function(){function r(t,e){p(this,r),this.popupService=t,this.localizationService=e,this.style={},this.popupRef=null}return v(r,[{key:"active",get:function(){return null!==this.popupRef}},{key:"show",value:function(e){var n=e.anchor.align,a=this.position(e.anchor.point);if(this.style=e.style,this.popupRef){var o=this.popupRef.popup.instance;o.offset=a,o.popupAlign=n}else this.popupRef=this.popupService.open(Object.assign({offset:a,popupAlign:n,animate:this.animate,content:this.templateRef,collision:N6e,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit()}},{key:"hide",value:function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)}},{key:"onInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.hide()}},{key:"position",value:function(e){if(!this.popupSettings||!this.popupSettings.appendTo)return e;var n=this.popupSettings.appendTo.element.nativeElement;console.log("appendTo",n);var a=n.getBoundingClientRect(),o=this.scrollOffset(n);return{left:e.left-a.left-o.scrollLeft,top:e.top-a.top-o.scrollTop}}},{key:"scrollOffset",value:function(e){if(!e)return null;for(var n=e.scrollLeft,a=e.scrollTop,o=e.parentElement;o;)n+=o.scrollLeft,a+=o.scrollTop,o=o.parentElement;return{scrollLeft:n,scrollTop:a}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(kr),m(Y))},i.\u0275dir=X({type:i}),i}();function LJ(){if(Ze())return new ke(document.body)}var CL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).animate=!1,o}return v(e,[{key:"show",value:function(a){$(q(e.prototype),"show",this).call(this,a),this.value=a.value,this.popupRef.popup.changeDetectorRef.detectChanges()}}]),e}(FJ);return i.\u0275fac=function(t){return new(t||i)(m(kr),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-crosshair-tooltip"]],viewQuery:function(t,e){var n;1&t&&ge(xJ,7),2&t&&P(n=B())&&(e.templateRef=n.first)},inputs:{key:"key",popupSettings:"popupSettings"},features:[de([kr,{provide:EI,useFactory:LJ}]),j],decls:2,vars:0,consts:[["content",""],[1,"k-chart-tooltip","k-chart-crosshair-tooltip",3,"ngStyle"]],template:function(t,e){1&t&&T(0,o6e,2,2,"ng-template",null,0,$n)},directives:[Vi],encapsulation:2}),i}(),PJ=["categoryAxis","valueAxis","xAxis","yAxis"],Yk=function(){var i=function(){function r(){p(this,r),this.tooltipKeys=[],this.tooltipsMap={}}return v(r,[{key:"show",value:function(e){for(var n=this.crossahirTooltipComponents.toArray(),a=e.axisName,o=e.axisIndex,s=0;s0}},{key:"createCrosshairTooltips",value:function(e){var n=this.mapTooltips(e),a=this.tooltipsMap;for(var o in a)n[o]||(this.removeTooltip(o),delete a[o]);for(var s in n)a[s]||(a[s]=n[s],this.tooltipKeys.push(s))}},{key:"removeTooltip",value:function(e){for(var n=this.tooltipKeys,a=0;a0,l=a.series.length>1,u=1;return s&&u++,l&&u++,{category:a.category,categoryText:a.categoryText,colorMarker:l,colspan:u,nameColumn:s,points:this.wrapPoints(a.points,a.format)}}},{key:"pointTemplateRef",value:function(a){return this.templateService.getTemplate(a.series.index)||this.defaultSeriesTooltipTemplate.templateRef}},{key:"wrapPoints",value:function(a,o){for(var s=[],l=0;l
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n '.concat(function(){for(var r='\n
    \n
    \n
    \n
    \n
    \n
    \n ',t=0;t<30;t++)r+='\n
    ');return r}(),"\n
    \n"),document.body.appendChild(a)}},{key:"destroyElement",value:function(){this.element&&(document.body.removeChild(this.element),this.element=void 0)}},{key:"setStyle",value:function(a,o){this.set(a,o)}},{key:"setColors",value:function(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color");var a=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(a)||(this.setStyle("seriesDefaults.area.opacity",a),this.setStyle("seriesDefaults.radarArea.opacity",a),this.setStyle("seriesDefaults.verticalArea.opacity",a),this.setStyle("seriesDefaults.labels.opacity",a)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")}},{key:"setInactiveOpacity",value:function(a,o){var s=this,l=parseFloat(this.queryStyle(o).opacity);!isNaN(l)&&l<1&&a.forEach(function(u){return s.setStyle("seriesDefaults.".concat(u,".highlight.inactiveOpacity"),l)})}},{key:"setFonts",value:function(){var a=bE(this.queryStyle("chart-font")),o=bE(this.queryStyle("chart-title-font")),s=bE(this.queryStyle("chart-pane-title-font")),l=bE(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",l),this.setStyle("axisDefaults.notes.label.font",a),this.setStyle("axisDefaults.title.font",a),this.setStyle("legend.labels.font",a),this.setStyle("seriesDefaults.labels.font",l),this.setStyle("seriesDefaults.notes.label.font",a),this.setStyle("title.font",o),this.setStyle("paneDefaults.title.font",s)}},{key:"setSeriesColors",value:function(){var a=this.element,o=[].slice.call(a.querySelectorAll(".k-var--series div")),s=UJ(a.querySelector(".k-var--series-unset")),l=o.reduce(function(u,c){var d=function(r){var t=r.match(/series-([a-z])$/);if(null!==t)return function(r){return r.toLowerCase().charCodeAt(0)-"a".charCodeAt(0)}(t[1]);var e=r.split("--series-")[1];return parseInt(e,10)-1}(c.className),h=UJ(c);return h!==s&&(u[d]=h),u},[]);this.setStyle("seriesColors",l)}},{key:"mapColor",value:function(a,o){this.setStyle(a,this.queryColor(o))}},{key:"queryColor",value:function(a){return this.queryStyle(a).backgroundColor}},{key:"queryStyle",value:function(a){var o=this.element.querySelector(".k-var--".concat(a));return window.getComputedStyle(o)}}]),e}(we);return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function TL(i){return i.observers.length>0}var qg=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c){p(this,r),this.configurationService=t,this.themeService=e,this.element=n,this.intl=a,this.localizationService=o,this.ngZone=s,this.instanceEventService=l,this.changeDetector=u,this.renderer=c,this.axisLabelClick=new O,this.drag=new O,this.dragEnd=new O,this.dragStart=new O,this.legendItemHover=new O,this.legendItemLeave=new O,this.noteClick=new O,this.noteHover=new O,this.noteLeave=new O,this.paneRender=new O,this.plotAreaClick=new O,this.plotAreaHover=new O,this.plotAreaLeave=new O,this.render=new O,this.select=new O,this.selectEnd=new O,this.selectStart=new O,this.seriesClick=new O,this.seriesHover=new O,this.seriesOver=new O,this.seriesLeave=new O,this.zoom=new O,this.zoomEnd=new O,this.zoomStart=new O,this.legendItemClick=new O,this.resizeRateLimit=10,this.theme=null,this.suppressTransitions=!1,this.rtl=!1,this.hostClasses=["k-chart","k-widget"],jt(EL),this.themeService.loadTheme(),this.refreshWait()}return v(r,[{key:"ngOnInit",value:function(){var e=this;this.element&&(this.hostClasses.forEach(function(n){e.renderer.addClass(e.element.nativeElement,n)}),this.renderer.setStyle(this.element.nativeElement,"position","relative"))}},{key:"ngAfterViewInit",value:function(){var e=this;this.canRender&&this.ngZone.runOutsideAngular(function(){var n=e.renderer.listen(e.surfaceElement.nativeElement,"mouseleave",e.chartMouseleave.bind(e));e.domSubscriptions=function(){n()}}),this.setDirection(),this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))}},{key:"ngAfterViewChecked",value:function(){var e=this;this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(function(){e.resize()},0)})}},{key:"ngOnChanges",value:function(e){var n=this.configurationService.store;mL(e,n),n.popupSettings=null,this.configurationService.push(n)}},{key:"notifyChanges",value:function(e){this.ngOnChanges(_L(e))}},{key:"ngOnDestroy",value:function(){this.destroyed=!0,this.subscription&&this.subscription.unsubscribe(),this.domSubscriptions&&(this.domSubscriptions(),this.domSubscriptions=null),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.resizeTimeout),clearTimeout(this.redrawTimeout)}},{key:"createInstance",value:function(e,n){this.instance=new s2(e,this.options,this.theme,{intlService:this.intl,observer:n,rtl:this.rtl,sender:this})}},{key:"exportImage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return I5e(this.exportVisual(e),e)}},{key:"exportSVG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F5e(this.exportVisual(e),e)}},{key:"exportVisual",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.instance.exportVisual(e)}},{key:"findAxisByName",value:function(e){if(this.instance)return this.instance.findAxisByName(e)}},{key:"findPaneByIndex",value:function(e){if(this.instance)return this.instance.findPaneByIndex(e)}},{key:"findPaneByName",value:function(e){if(this.instance)return this.instance.findPaneByName(e)}},{key:"getPlotArea",value:function(){if(this.instance)return this.instance.plotArea()}},{key:"toggleHighlight",value:function(e,n){this.instance&&this.instance.toggleHighlight(e,n)}},{key:"hideTooltip",value:function(){this.instance&&this.instance.hideTooltip()}},{key:"showTooltip",value:function(e){this.instance&&this.instance.showTooltip(e)}},{key:"init",value:function(){if(this.canRender){var e=this.surfaceElement.nativeElement,n=new P6e(this);this.createInstance(e,n)}}},{key:"resize",value:function(){this.instance&&this.instance.resize()}},{key:"onResize",value:function(e){this.autoResize&&this.resize()}},{key:"onLegendItemClick",value:function(e){var n=this;this.run(function(){var a=new sje(e,n);if(n.legendItemClick.emit(a),!a.isDefaultPrevented()){var o=n.seriesComponents.toArray()[e.series.index];if(!o)return;void 0===e.pointIndex?o.toggleVisibility():o.togglePointVisibility(e.pointIndex),n.suppressTransitions=!0}},TL(this.legendItemClick),this.seriesComponents.length>0)}},{key:"onInit",value:function(e){this.instance=e.sender}},{key:"onRender",value:function(e){var n=this,a=this.getDonutCenterStyle();this.run(function(){var o=new GJ(e,n);n.surface=e.sender.surface,n.render.emit(o),n.donutCenterStyle=a},TL(this.render),this.donutCenterStyle!==a)}},{key:"onShowTooltip",value:function(e){var n=this;this.run(function(){e.crosshair?n.crossahirTooltips.show(e):n.tooltipInstance.show(e)},!e.crosshair,!0)}},{key:"onHideTooltip",value:function(e){e.crosshair?this.crossahirTooltips.active&&(this.crossahirTooltips.hide(),this.detectChanges()):this.tooltipInstance.active&&(this.tooltipInstance.hide(),this.detectChanges())}},{key:"trigger",value:function(e,n){if("resize"!==e){var a=this.activeEmitter(e);if(a){var o=this.instanceEventService.create(e,n,this);return this.run(function(){a.emit(o)}),o.isDefaultPrevented&&o.isDefaultPrevented()}}}},{key:"requiresHandlers",value:function(e){for(var n=0;n0}},{key:"activeEmitter",value:function(e){var n=this[e];if(n&&n.emit&&TL(n))return n}},{key:"getDonutCenterStyle",value:function(){if(this.instance&&this.options&&this.options.series){var e=this.options.series[0],n=this.instance._plotArea.charts;if(e&&"donut"===e.type&&n&&0!==n[0].points.length){var a=n[0].points[0],o=a.box.center(),s=a.sector.innerRadius,c=2*s;return{height:c+"px",left:o.x-s+"px",top:o.y-s+"px",width:c+"px"}}}}},{key:"refreshWait",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.subscription=GO(e.configurationService.onChange$,e.themeService.onChange$).pipe(At(function(n){e.options=n[0],e.theme=n[1]}),ff(IJ)).subscribe(function(){e.refresh()})})}},{key:"run",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;n?(a&&this.changeDetector.markForCheck(),this.ngZone.run(e)):(e(),a&&this.detectChanges())}},{key:"detectChanges",value:function(){this.destroyed||this.changeDetector.detectChanges()}},{key:"intlChange",value:function(){this.instance&&this.deferredRedraw()}},{key:"rtlChange",value:function(){this.instance&&this.rtl!==this.isRTL&&this.deferredRedraw()}},{key:"deferredRedraw",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){clearTimeout(e.redrawTimeout),e.redrawTimeout=setTimeout(function(){e.updateDirection(),e.instance.noTransitionsRedraw()},0)})}},{key:"updateDirection",value:function(){var e=this.isRTL;this.rtl!==e&&(this.setDirection(),this.instance&&this.instance.setDirection(e))}},{key:"setDirection",value:function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")}},{key:"isRTL",get:function(){return Boolean(this.localizationService.rtl)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(we),m(SE),m(ke),m(fi),m(Y),m(be),m(Jk),m(nt),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,OJ,5),he(n,zf,5)),2&t&&(P(a=B())&&(e.donutCenterTemplate=a.first),P(a=B())&&(e.seriesComponents=a))},viewQuery:function(t,e){var n;1&t&&(ge(Qk,7),ge(Yk,7),ge(C6e,7)),2&t&&(P(n=B())&&(e.tooltipInstance=n.first),P(n=B())&&(e.crossahirTooltips=n.first),P(n=B())&&(e.surfaceElement=n.first))},inputs:{pannable:"pannable",renderAs:"renderAs",seriesColors:"seriesColors",title:"title",transitions:"transitions",zoomable:"zoomable",axisDefaults:"axisDefaults",categoryAxis:"categoryAxis",chartArea:"chartArea",legend:"legend",panes:"panes",paneDefaults:"paneDefaults",plotArea:"plotArea",series:"series",seriesDefaults:"seriesDefaults",tooltip:"tooltip",valueAxis:"valueAxis",xAxis:"xAxis",yAxis:"yAxis",resizeRateLimit:"resizeRateLimit",popupSettings:"popupSettings"},outputs:{axisLabelClick:"axisLabelClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",legendItemHover:"legendItemHover",legendItemLeave:"legendItemLeave",noteClick:"noteClick",noteHover:"noteHover",noteLeave:"noteLeave",paneRender:"paneRender",plotAreaClick:"plotAreaClick",plotAreaHover:"plotAreaHover",plotAreaLeave:"plotAreaLeave",render:"render",select:"select",selectEnd:"selectEnd",selectStart:"selectStart",seriesClick:"seriesClick",seriesHover:"seriesHover",seriesOver:"seriesOver",seriesLeave:"seriesLeave",zoom:"zoom",zoomEnd:"zoomEnd",zoomStart:"zoomStart",legendItemClick:"legendItemClick"},exportAs:["kendoChart"],features:[de([we,Hf,Jk,Y,{provide:Dt,useValue:"kendo.chart"}]),Ie],decls:6,vars:4,consts:[[1,"k-chart-surface"],["surface",""],[3,"popupSettings"],[3,"popupSettings","leave"],[3,"rateLimit","resize"],["class","k-chart-donut-center",3,"ngStyle",4,"ngIf"],[1,"k-chart-donut-center",3,"ngStyle"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(z(0,"div",0,1)(2,"kendo-chart-crosshair-tooltips-container",2),A(3,"kendo-chart-tooltip-popup",3),Q("leave",function(a){return e.tooltipMouseleave(a)}),x(),A(4,"kendo-resize-sensor",4),Q("resize",function(a){return e.onResize(a)}),x(),T(5,S6e,2,2,"div",5)),2&t&&(k(2),y("popupSettings",e.popupSettings),k(1),y("popupSettings",e.popupSettings),k(1),y("rateLimit",e.resizeRateLimit),k(1),y("ngIf",e.donutCenterStyle&&e.donutCenterTemplate))},directives:[Yk,Qk,Gr,qe,Vi,En],encapsulation:2,changeDetection:0}),i}(),Xg=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.configKey=t,this.configurationService=e,this.collectionService=n,this.items=[],this.subscription=n.onItemChange$.subscribe(function(o){return a.processChanges(o)})}return v(r,[{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"ngAfterContentInit",value:function(){var e=this;this.readItems(),this.children.changes.subscribe(function(){return e.readItems()})}},{key:"processChanges",value:function(e){if(this.children){var n=this.children.toArray().indexOf(e.sender);n<0||(this.items[n]=e.options,this.change())}}},{key:"readItems",value:function(){this.items=this.children.map(function(e){return e.options}),this.change()}},{key:"change",value:function(){this.configurationService.notify(new yL(this.configKey,0===this.items.length?void 0:this.items))}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275dir=X({type:i}),i}(),eC=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a)).configurationService=n,l.collectionService=a,l.notifyChanges({weekStartDay:o.firstDay(s)}),l}return v(e)}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr),m(fi),m(Ko))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-category-axis-item"]],inputs:{autoBaseUnitSteps:"autoBaseUnitSteps",axisCrossingValue:"axisCrossingValue",background:"background",baseUnit:"baseUnit",baseUnitStep:"baseUnitStep",categories:"categories",color:"color",justified:"justified",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",max:"max",maxDateGroups:"maxDateGroups",maxDivisions:"maxDivisions",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",name:"name",pane:"pane",plotBands:"plotBands",reverse:"reverse",roundToBaseUnit:"roundToBaseUnit",startAngle:"startAngle",type:"type",visible:"visible",weekStartDay:"weekStartDay",crosshair:"crosshair",labels:"labels",notes:"notes",select:"select",title:"title",rangeLabels:"rangeLabels"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),AL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,"categoryAxis",n,a)).configurationService=n,o.collectionService=a,o}return v(e)}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-category-axis"]],contentQueries:function(t,e,n){var a;1&t&&he(n,eC,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),XJ=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"legend",n)).configurationService=n,a.markAsVisible(),a}return v(e)}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-legend"]],inputs:{align:"align",background:"background",border:"border",height:"height",labels:"labels",margin:"margin",offsetX:"offsetX",offsetY:"offsetY",orientation:"orientation",padding:"padding",position:"position",reverse:"reverse",visible:"visible",width:"width",markers:"markers",spacing:"spacing",inactiveItems:"inactiveItems",item:"item",title:"title"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),tC=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,"series",n,a)).configurationService=n,s.collectionService=a,s.tooltipTemplateService=o,s}return v(e,[{key:"ngAfterContentChecked",value:function(){this.readTooltipTemplates()}},{key:"readTooltipTemplates",value:function(){var a=this.children.map(function(o){return o.seriesTooltipTemplateRef});this.tooltipTemplateService.setSeriesTemplates(a)}}]),e}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr),m(Hf))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series"]],contentQueries:function(t,e,n){var a;1&t&&he(n,zf,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),RL=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"seriesDefaults",n)).configurationService=n,a}return v(e)}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-defaults"]],inputs:{border:"border",gap:"gap",highlight:"highlight",overlay:"overlay",spacing:"spacing",stack:"stack",type:"type",visual:"visual",labels:"labels",notes:"notes",tooltip:"tooltip"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),wE=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).configurationService=n,o.collectionService=a,o}return v(e)}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-value-axis-item"]],inputs:{axisCrossingValue:"axisCrossingValue",background:"background",color:"color",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",majorUnit:"majorUnit",max:"max",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",minorUnit:"minorUnit",name:"name",narrowRange:"narrowRange",pane:"pane",plotBands:"plotBands",reverse:"reverse",type:"type",visible:"visible",crosshair:"crosshair",labels:"labels",notes:"notes",title:"title"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),OL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,"valueAxis",n,a)).configurationService=n,o.collectionService=a,o}return v(e)}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-value-axis"]],contentQueries:function(t,e,n){var a;1&t&&he(n,wE,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),nC=(new wt("configuration prefix"),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[SE],imports:[[bt,Fa,yo]]}),i}()),PWe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[nC,bt,Fa,yo],nC]}),i}(),BWe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[nC,bt,Fa,yo],nC]}),i}(),GWe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[nC,BWe,PWe]}),i}(),ka=function(){return{visible:!1}},NL=function(){return{step:4,skip:2,font:"10px sans-serif"}},VWe=function(r){return{margin:r}},UWe=function(){return{color:"#FFF"}},zWe=function(){return{from:0,to:100,color:"#35C473"}},HWe=function(r){return[r]},KWe=function(){return{color:"#35C473",opacity:.3}},jWe=function(){return{color:"#CC3458",opacity:.3}},WWe=function(){return{top:8}},$We=function(r){return{rotation:"auto",margin:r}},qWe=function(){return{right:4}},XWe=function(r){return{step:2,skip:2,margin:r}},ZWe=function(){return{step:2,skip:2,color:"#F0F2F2"}},YWe=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"months",set:function(e){this.baseUnit=e>3?"months":"weeks"}},{key:"closeRate",set:function(e){this.bulletData=[{target:70,current:Math.round(100*e)}]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-active-issues"]],inputs:{data:"data",active:"active",issues:"issues",months:"months",closeRate:"closeRate"},decls:80,vars:117,consts:[[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row"],[1,"col-12","col-lg-6","col-xl","pb-4","active-issues"],[1,"comp-label"],[2,"height","80px"],["type","column",3,"stack","gap","overlay"],["field","count","categoryField","date","aggregate","count",3,"color","data"],[3,"baseUnit","majorTicks","labels","majorGridLines","line"],[3,"visible","majorGridLines"],[1,"col-12","col-lg-6","col-xl","pb-4","text-success","closed-issues"],[1,"col-12","col-lg-6","col-xl","pb-4","text-danger","open-issues"],[1,"col-12","col-lg-6","col-xl","pb-4","close-rate"],[1,"m-0","small","text-uppercase","text-muted"],[2,"height","20px",3,"chartArea"],["type","bullet","currentField","current","targetField","target","color","#CC3458",3,"data","target"],[3,"plotBands","visible","majorGridLines"],[1,"col-sm-12"],["field","count","categoryField","date","aggregate","count",3,"opacity","border","color","data"],[3,"baseUnit","majorTicks","line","majorGridLines","labels"],[3,"line","labels","majorGridLines"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"h3",1),te(2,"Active Issues"),x(),A(3,"div",2)(4,"div",3)(5,"div",4)(6,"span",5)(7,"strong"),te(8),x(),A(9,"small"),te(10,"Active issues"),x()(),A(11,"kendo-chart",6),z(12,"kendo-chart-series-defaults",7),A(13,"kendo-chart-series"),z(14,"kendo-chart-series-item",8),x(),A(15,"kendo-chart-category-axis"),z(16,"kendo-chart-category-axis-item",9),x(),A(17,"kendo-chart-value-axis"),z(18,"kendo-chart-value-axis-item",10),x()()(),A(19,"div",11)(20,"span",5)(21,"strong"),te(22),x(),A(23,"small"),te(24,"Closed issues"),x()(),A(25,"kendo-chart",6),z(26,"kendo-chart-series-defaults",7),A(27,"kendo-chart-series"),z(28,"kendo-chart-series-item",8),x(),A(29,"kendo-chart-category-axis"),z(30,"kendo-chart-category-axis-item",9),x(),A(31,"kendo-chart-value-axis"),z(32,"kendo-chart-value-axis-item",10),x()()(),A(33,"div",12)(34,"span",5)(35,"strong"),te(36),x(),A(37,"small"),te(38,"Open issues"),x()(),A(39,"kendo-chart",6),z(40,"kendo-chart-series-defaults",7),A(41,"kendo-chart-series"),z(42,"kendo-chart-series-item",8),x(),A(43,"kendo-chart-category-axis"),z(44,"kendo-chart-category-axis-item",9),x(),A(45,"kendo-chart-value-axis"),z(46,"kendo-chart-value-axis-item",10),x()()(),A(47,"div",13)(48,"span",5)(49,"strong"),te(50),ja(51,"percent"),x(),A(52,"small"),te(53,"Close rate"),x()(),A(54,"p",14),te(55),ja(56,"percent"),ja(57,"date"),x(),A(58,"p",14),te(59),ja(60,"percent"),ja(61,"date"),x(),A(62,"kendo-chart",15)(63,"kendo-chart-series"),z(64,"kendo-chart-series-item",16),x(),A(65,"kendo-chart-value-axis"),z(66,"kendo-chart-value-axis-item",17),x()()()(),A(67,"div",3)(68,"div",18)(69,"h3"),te(70,"All issues"),x(),A(71,"kendo-chart"),z(72,"kendo-chart-series-defaults",7),A(73,"kendo-chart-series"),z(74,"kendo-chart-series-item",19)(75,"kendo-chart-series-item",19),x(),A(76,"kendo-chart-category-axis"),z(77,"kendo-chart-category-axis-item",20),x(),A(78,"kendo-chart-value-axis"),z(79,"kendo-chart-value-axis-item",21),x()()()()()()),2&t&&(k(8),at(e.issues.open+e.issues.closed),k(4),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("color","#888")("data",e.active),k(2),y("baseUnit",e.baseUnit)("majorTicks",Tt(82,ka))("labels",Tt(83,NL))("majorGridLines",Tt(84,ka))("line",Tt(85,ka)),k(2),y("visible",!1)("majorGridLines",Tt(86,ka)),k(4),at(e.issues.closed),k(4),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("color","#35C473")("data",e.data.closed),k(2),y("baseUnit",e.baseUnit)("majorTicks",Tt(87,ka))("labels",Tt(88,NL))("majorGridLines",Tt(89,ka))("line",Tt(90,ka)),k(2),y("visible",!1)("majorGridLines",Tt(91,ka)),k(4),at(e.issues.open),k(4),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("color","#CC3458")("data",e.data.open),k(2),y("baseUnit",e.baseUnit)("majorTicks",Tt(92,ka))("labels",Tt(93,NL))("majorGridLines",Tt(94,ka))("line",Tt(95,ka)),k(2),y("visible",!1)("majorGridLines",Tt(96,ka)),k(4),at(nw(51,69,e.issues.closeRate.average,"2.0-0")),k(5),Jl(" Highest: ",nw(56,72,e.issues.closeRate.highest.close_rate,"2.0-0")," on ",fc(57,75,e.issues.closeRate.highest.created_at)," "),k(4),Jl(" Lowest: ",nw(60,77,e.issues.closeRate.lowest.close_rate,"2.0-0")," on ",fc(61,80,e.issues.closeRate.lowest.created_at)," "),k(3),y("chartArea",ot(97,VWe,-20)),k(2),y("data",e.bulletData)("target",Tt(99,UWe)),k(2),y("plotBands",ot(101,HWe,Tt(100,zWe)))("visible",!1)("majorGridLines",Tt(103,ka)),k(6),y("stack",!0)("gap",.06)("overlay",!1),k(2),y("opacity",.3)("border",Tt(104,KWe))("color","#35C473")("data",e.data.open),k(1),y("opacity",.3)("border",Tt(105,jWe))("color","#CC3458")("data",e.data.closed),k(2),y("baseUnit",e.baseUnit)("majorTicks",Tt(106,ka))("line",Tt(107,ka))("majorGridLines",Tt(108,ka))("labels",ot(110,$We,Tt(109,WWe))),k(2),y("line",Tt(112,ka))("labels",ot(114,XWe,Tt(113,qWe)))("majorGridLines",Tt(116,ZWe)))},directives:[qg,RL,tC,zf,AL,eC,OL,wE],pipes:[W4,yw],encapsulation:2}),i}(),QWe=function(){return{font:"0.65em Roboto, Arial, sans-serif"}},JWe=function(){var i=function(){function r(){p(this,r),this.hoverColor="rgb(255, 99, 88)"}return v(r,[{key:"data",set:function(e){var n=this;this.issues=e,e.forEach(function(a){"SEV: LOW"===a.type&&n.setDonutLegend({value:a.value,category:a.type,point:{options:{color:n.hoverColor}}})})}},{key:"className",get:function(){return"card issue-types"}},{key:"onHover",value:function(e){this.setDonutLegend(e)}},{key:"setDonutLegend",value:function(e){this.hoverColor=e.point.options.color,this.donutPercent=Math.round(100*e.value||0)+"%",this.donutLabel=e.category}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-issue-types"]],hostVars:2,hostBindings:function(t,e){2&t&&Ar(e.className)},inputs:{data:"data"},decls:12,vars:9,consts:[[1,"card-header"],[1,"card-body"],[3,"seriesHover"],["type","donut","field","value","categoryField","type",3,"holeSize","data","overlay"],["position","bottom",3,"labels"],[1,"comp-label","chart-label"]],template:function(t,e){1&t&&(A(0,"h4",0),te(1,"Issue Types"),x(),A(2,"div",1)(3,"kendo-chart",2),Q("seriesHover",function(a){return e.onHover(a)}),A(4,"kendo-chart-series"),z(5,"kendo-chart-series-item",3),x(),z(6,"kendo-chart-legend",4),x(),A(7,"div",5)(8,"strong"),te(9),x(),A(10,"small"),te(11),x()()()),2&t&&(k(5),y("holeSize",100)("data",e.issues)("overlay",!1),k(1),y("labels",Tt(8,QWe)),k(1),Qe("color",e.hoverColor),k(2),at(e.donutPercent),k(2),at(e.donutLabel))},directives:[qg,tC,zf,XJ],encapsulation:2}),i}();function e7e(i,r){if(1&i){var t=xe();A(0,"a",10),Q("click",function(){var s=re(t).$implicit;return D().addSeries(s,!0)}),A(1,"strong"),te(2),x(),A(3,"small"),te(4),x()()}if(2&i){var e=r.$implicit,n=D();Qe("color",e.active?e.value:n.initialGrey),k(2),at(n.data[e.label].length),k(2),at(e.label)}}function t7e(i,r){if(1&i&&z(0,"kendo-chart-series-item",11),2&i){var t=r.$implicit;y("data",t.data)("markers",t.markers)("color",t.color)}}var EE=function(){return{visible:!1}},n7e=function(){return{step:4,skip:2}},i7e=function(){return{step:2,skip:2}},r7e=function(){return{step:2,skip:2,color:"#F0F2F2"}},a7e=function(){var i=function(){function r(){p(this,r),this.initialGrey="#A2ACAC",this.series=[],this.visibleSeries=[],this.seriesColors=[{label:"SEV: Low",value:"#FF9966",active:!1},{label:"SEV: Medium",value:"#BB6ACB",active:!1},{label:"SEV: High",value:"#52C3D3",active:!1},{label:"Enhancement",value:"#22C85D",active:!1},{label:"Feature",value:"#FF6358",active:!1},{label:"Others",value:"#2BA7DA",active:!1}]}return v(r,[{key:"months",set:function(e){this.baseUnit=e>3?"months":"weeks"}},{key:"addSeries",value:function(e,n){n&&this.seriesColors.forEach(function(l){l.value===e.value&&(l.active=!l.active)});var a={color:this.seriesColors.filter(function(l){return l.label===e.label})[0].value,markers:{visible:!1},data:this.data[e.label]};if(this.visibleSeries.some(function(l){return l.color===a.color})){var s=this.visibleSeries.map(function(l){return l.color}).indexOf(a.color);~s&&this.visibleSeries.splice(s,1)}else this.visibleSeries.push(a);this.series=this.visibleSeries}},{key:"ngOnInit",value:function(){this.addSeries({label:"SEV: Low",value:"#FF9966",active:!1},!0),this.addSeries({label:"Enhancement",value:"#22C85D",active:!1},!0),this.addSeries({label:"Others",value:"#2BA7DA",active:!1},!0)}},{key:"ngOnChanges",value:function(e){e.data.previousValue&&e.data.previousValue.hasOwnProperty("Others")&&(this.visibleSeries=[],this.addSeries({label:"SEV: Low",value:"#FF9966",active:!1},!1),this.addSeries({label:"Enhancement",value:"#22C85D",active:!1},!1),this.addSeries({label:"Others",value:"#2BA7DA",active:!1},!1))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-types-distribution"]],inputs:{data:"data",months:"months"},features:[Ie],decls:14,vars:18,consts:[[1,"card"],[1,"card-header"],[1,"row","card-body","pb-0","small"],["class","col-6 col-lg-4 col-xl-2 pb-3 comp-label",3,"color","click",4,"ngFor","ngForOf"],[1,"card-body"],[2,"height","300px",3,"transitions"],["type","line",3,"overlay"],["baseUnit","months",3,"majorTicks","labels","majorGridLines","line"],["style","smooth","aggregate","count","categoryField","date",3,"data","markers","color",4,"ngFor","ngForOf"],[3,"line","labels","majorGridLines"],[1,"col-6","col-lg-4","col-xl-2","pb-3","comp-label",3,"click"],["aggregate","count","categoryField","date",3,"data","markers","color"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"h4",1),te(2,"Types Distribution"),x(),A(3,"div",2),T(4,e7e,5,4,"a",3),x(),A(5,"div",4)(6,"kendo-chart",5),z(7,"kendo-chart-series-defaults",6),A(8,"kendo-chart-category-axis"),z(9,"kendo-chart-category-axis-item",7),x(),A(10,"kendo-chart-series"),T(11,t7e,1,3,"kendo-chart-series-item",8),x(),A(12,"kendo-chart-value-axis"),z(13,"kendo-chart-value-axis-item",9),x()()()()),2&t&&(k(4),y("ngForOf",e.seriesColors),k(2),y("transitions",!1),k(1),y("overlay",!1),k(2),y("majorTicks",Tt(11,EE))("labels",Tt(12,n7e))("majorGridLines",Tt(13,EE))("line",Tt(14,EE)),k(2),y("ngForOf",e.visibleSeries),k(2),y("line",Tt(15,EE))("labels",Tt(16,i7e))("majorGridLines",Tt(17,r7e)))},directives:[gn,qg,RL,AL,eC,tC,zf,OL,wE],encapsulation:2}),i}();function o7e(i,r){1&i&&(A(0,"div",6),z(1,"app-loading-spinner"),x())}function s7e(i,r){if(1&i&&z(0,"app-active-issues",7),2&i){var t=D();y("data",t.issues.groupedIssues)("months",t.months)("issues",t.issues)("closeRate",t.issues.closeRate.average)("active",t.issues.active)}}function l7e(i,r){if(1&i&&(A(0,"div",8),z(1,"app-issue-types",9),x()),2&i){var t=D();k(1),y("data",t.issues.issueTypes)}}function u7e(i,r){if(1&i&&z(0,"app-types-distribution",12),2&i){var t=D(2);y("data",t.issues.typesDistribution)("months",t.months)}}function c7e(i,r){if(1&i&&(A(0,"div",10),T(1,u7e,1,2,"app-types-distribution",11),x()),2&i){var t=D();k(1),y("ngIf",t.issues.active.length)}}var d7e=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-statistics"]],inputs:{issues:"issues",months:"months",loading:"loading"},decls:6,vars:4,consts:[[1,"row"],[1,"col-md-12"],["class","card","style","height: 400px",4,"ngIf"],[3,"data","months","issues","closeRate","active",4,"ngIf"],["class","col-md-4",4,"ngIf"],["class","col-md-8",4,"ngIf"],[1,"card",2,"height","400px"],[3,"data","months","issues","closeRate","active"],[1,"col-md-4"],[3,"data"],[1,"col-md-8"],[3,"data","months",4,"ngIf"],[3,"data","months"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1),T(2,o7e,2,0,"div",2),T(3,s7e,1,5,"app-active-issues",3),x(),T(4,l7e,2,1,"div",4),T(5,c7e,2,1,"div",5),x()),2&t&&(k(2),y("ngIf",e.loading),k(1),y("ngIf",!e.loading&&e.issues.active.length),k(1),y("ngIf",!e.loading&&e.issues.active.length),k(1),y("ngIf",!e.loading&&e.issues.active.length))},directives:[qe,tN,YWe,JWe,a7e],encapsulation:2}),i}();function h7e(i,r){if(1&i&&z(0,"app-statistics",11),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}function f7e(i,r){if(1&i&&z(0,"app-statistics",11),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}function v7e(i,r){if(1&i&&z(0,"app-statistics",11),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}var p7e=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.githubService=t,this.issuesProcessor=e,this.isLoading=!0,this.today=new Date,this.months=3,this.selectedIndex=0,this.rangeStart=this.issuesProcessor.getMonthsRange(this.months),this.subscription=xn(t.getGithubIssues({pages:5}).pipe(We(function(a){return n.data=a,n.isLoading=!1,n.issuesProcessor.process(a,n.months)},function(a){return n.isLoading=!1})),lt(new jj)).subscribe(function(a){n.issues=a})}return v(r,[{key:"get_id",get:function(){return"dashboard"}},{key:"get_class",get:function(){return"dashboard"}},{key:"onFilterClick",value:function(e){this.months!==e&&(this.months=e,this.rangeStart=this.issuesProcessor.getMonthsRange(e),this.issues=this.issuesProcessor.process(this.data,e),this.filterIssues(this.selectedIndex))}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onTabSelect",value:function(e){this.filterIssues(e.index)}},{key:"filterIssues",value:function(e){switch(e){case 0:this.issues=this.issuesProcessor.process(this.data,this.months),this.selectedIndex=0;break;case 1:var n=this.issuesProcessor.flatten(this.data).filter(function(o){return!!o.assignee&&"ggkrustev"===o.assignee.login});this.issues=this.issuesProcessor.process(n,this.months),this.selectedIndex=1;break;case 2:var a=this.issuesProcessor.flatten(this.data).filter(function(o){return"ggkrustev"===o.user.login});this.issues=this.issuesProcessor.process(a,this.months),this.selectedIndex=2;break;default:this.issues=this.issuesProcessor.process(this.data,this.months)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Jp),m(cD))},i.\u0275cmp=L({type:i,selectors:[["app-dashboard"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.get_id),Ar(e.get_class))},features:[de([Jp,cD])],decls:23,vars:15,consts:[[1,"row"],[1,"col-md","text-center","text-md-right","mb-4"],[3,"selection"],["kendoButton","",3,"togglable","selected","click"],["kendoButton","",3,"togglable","click"],[1,"col-md","order-md-first","text-center","text-md-left"],[1,"small","text-uppercase","text-muted","d-block"],[3,"select"],[3,"title","selected"],["kendoTabContent",""],[3,"title"],[3,"loading","issues","months"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"kendo-buttongroup",2)(3,"button",3),Q("click",function(){return e.onFilterClick(3)}),te(4,"3 Months"),x(),A(5,"button",4),Q("click",function(){return e.onFilterClick(6)}),te(6,"6 Months"),x(),A(7,"button",4),Q("click",function(){return e.onFilterClick(12)}),te(8,"1 Year"),x()()(),A(9,"div",5)(10,"h2")(11,"span",6),te(12,"Statistics"),x(),te(13),ja(14,"date"),ja(15,"date"),x()()(),A(16,"kendo-tabstrip",7),Q("select",function(a){return e.onTabSelect(a)}),A(17,"kendo-tabstrip-tab",8),T(18,h7e,1,3,"ng-template",9),x(),A(19,"kendo-tabstrip-tab",10),T(20,f7e,1,3,"ng-template",9),x(),A(21,"kendo-tabstrip-tab",10),T(22,v7e,1,3,"ng-template",9),x()()),2&t&&(k(2),y("selection","single"),k(1),y("togglable",!0)("selected",!0),k(2),y("togglable",!0),k(2),y("togglable",!0),k(6),Jl(" ",fc(14,11,e.rangeStart)," - ",fc(15,13,e.today)," "),k(4),y("title","All Issues")("selected",!0),k(2),y("title","Assigned to Me"),k(2),y("title","Created by Me"))},directives:[BW,Xa,T7,HI,zI,d7e],pipes:[yw],encapsulation:2}),i}();function iC(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return i<0&&(i=0),Hw(i,i,r)}var g7e=Array.isArray;function m7e(i){return 1===i.length&&g7e(i[0])?i[0]:i}function _7e(){for(var i=arguments.length,r=new Array(i),t=0;t1&&void 0!==arguments[1]?arguments[1]:vee;return oi(function(t,e){var n=r.leading,a=r.trailing,o=!1,s=null,l=null,u=!1,c=function(){null==l||l.unsubscribe(),l=null,a&&(f(),u&&e.complete())},d=function(){l=null,u&&e.complete()},h=function(_){return l=Pi(i(_)).subscribe(Wn(e,c,d))},f=function(){if(o){o=!1;var _=s;s=null,e.next(_),!u&&h(_)}};t.subscribe(Wn(e,function(g){o=!0,s=g,(!l||l.closed)&&(n?f():h(g))},function(){u=!0,(!(a&&o&&l)||l.closed)&&e.complete()}))})}function FL(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vee,e=Hw(i,r);return C7e(function(){return e},t)}var pee=function(){var i=function(){function r(t,e){p(this,r),this._renderer=t,this._elementRef=e,this.onChange=function(n){},this.onTouched=function(){}}return v(r,[{key:"setProperty",value:function(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"setDisabledState",value:function(e){this.setProperty("disabled",e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke))},i.\u0275dir=X({type:i}),i}(),Kf=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(pee);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,features:[j]}),i}(),jn=new wt("NgValueAccessor"),S7e={provide:jn,useExisting:ye(function(){return PL}),multi:!0},PL=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e,[{key:"writeValue",value:function(a){this.setProperty("checked",a)}}]),e}(Kf);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Q("change",function(a){return e.onChange(a.target.checked)})("blur",function(){return e.onTouched()})},features:[de([S7e]),j]}),i}(),w7e={provide:jn,useExisting:ye(function(){return zc}),multi:!0},E7e=new wt("CompositionEventMode"),zc=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a))._compositionMode=o,s._composing=!1,null==s._compositionMode&&(s._compositionMode=!function D7e(){var i=tu()?tu().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}()),s}return v(e,[{key:"writeValue",value:function(a){this.setProperty("value",null==a?"":a)}},{key:"_handleInput",value:function(a){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(a)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(a){this._composing=!1,this._compositionMode&&this.onChange(a)}}]),e}(pee);return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(E7e,8))},i.\u0275dir=X({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Q("input",function(a){return e._handleInput(a.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(a){return e._compositionEnd(a.target.value)})},features:[de([w7e]),j]}),i}(),tr=new wt("NgValidators"),Jd=new wt("NgAsyncValidators");function mee(i){return null!=i}function _ee(i){var r=X_(i)?wi(i):i;return KM(r),r}function yee(i){var r={};return i.forEach(function(t){r=null!=t?Object.assign(Object.assign({},r),t):r}),0===Object.keys(r).length?null:r}function kee(i,r){return r.map(function(t){return t(i)})}function Cee(i){return i.map(function(r){return function L7e(i){return!i.validate}(r)?r:function(t){return r.validate(t)}})}function GL(i){return null!=i?function P7e(i){if(!i)return null;var r=i.filter(mee);return 0==r.length?null:function(t){return yee(kee(t,r))}}(Cee(i)):null}function VL(i){return null!=i?function B7e(i){if(!i)return null;var r=i.filter(mee);return 0==r.length?null:function(t){return OO(kee(t,r).map(_ee)).pipe(We(yee))}}(Cee(i)):null}function bee(i,r){return null===i?[r]:Array.isArray(i)?[].concat(Ae(i),[r]):[i,r]}function See(i){return i._rawValidators}function wee(i){return i._rawAsyncValidators}function UL(i){return i?Array.isArray(i)?i:[i]:[]}function AE(i,r){return Array.isArray(i)?i.includes(r):i===r}function Dee(i,r){var t=UL(r);return UL(i).forEach(function(n){AE(t,n)||t.push(n)}),t}function Eee(i,r){return UL(r).filter(function(t){return!AE(i,t)})}var Tee=function(){function i(){p(this,i),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return v(i,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=GL(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=VL(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),i}(),ra=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return v(t)}(Tee),no=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(Tee),Aee=function(){function i(r){p(this,i),this._cd=r}return v(i,[{key:"is",value:function(t){var e,n,a;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(a=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===a?void 0:a[t])}}]),i}(),jf=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,n)}return v(e)}(Aee);return i.\u0275fac=function(t){return new(t||i)(m(ra,2))},i.\u0275dir=X({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ue("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[j]}),i}(),xee=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,n)}return v(e)}(Aee);return i.\u0275fac=function(t){return new(t||i)(m(no,10))},i.\u0275dir=X({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&ue("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[j]}),i}();function rC(i,r){KL(i,r),r.valueAccessor.writeValue(i.value),function W7e(i,r){r.valueAccessor.registerOnChange(function(t){i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&Ree(i,r)})}(i,r),function q7e(i,r){var t=function(n,a){r.valueAccessor.writeValue(n),a&&r.viewToModelUpdate(n)};i.registerOnChange(t),r._registerOnDestroy(function(){i._unregisterOnChange(t)})}(i,r),function $7e(i,r){r.valueAccessor.registerOnTouched(function(){i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&Ree(i,r),"submit"!==i.updateOn&&i.markAsTouched()})}(i,r),function j7e(i,r){if(r.valueAccessor.setDisabledState){var t=function(n){r.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),r._registerOnDestroy(function(){i._unregisterOnDisabledChange(t)})}}(i,r)}function RE(i,r){var e=function(){};r.valueAccessor&&(r.valueAccessor.registerOnChange(e),r.valueAccessor.registerOnTouched(e)),function IE(i,r){var t=!1;if(null!==i){if(null!==r.validator){var e=See(i);if(Array.isArray(e)&&e.length>0){var n=e.filter(function(l){return l!==r.validator});n.length!==e.length&&(t=!0,i.setValidators(n))}}if(null!==r.asyncValidator){var a=wee(i);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(l){return l!==r.asyncValidator});o.length!==a.length&&(t=!0,i.setAsyncValidators(o))}}}var s=function(){};return OE(r._rawValidators,s),OE(r._rawAsyncValidators,s),t}(i,r),i&&(r._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(function(){}))}function OE(i,r){i.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(r)})}function KL(i,r){var t=See(i);null!==r.validator?i.setValidators(bee(t,r.validator)):"function"==typeof t&&i.setValidators([t]);var e=wee(i);null!==r.asyncValidator?i.setAsyncValidators(bee(e,r.asyncValidator)):"function"==typeof e&&i.setAsyncValidators([e]);var n=function(){return i.updateValueAndValidity()};OE(r._rawValidators,n),OE(r._rawAsyncValidators,n)}function Ree(i,r){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function jL(i,r){if(!i.hasOwnProperty("model"))return!1;var t=i.model;return!!t.isFirstChange()||!Object.is(r,t.currentValue)}function WL(i,r){if(!r)return null;Array.isArray(r);var t=void 0,e=void 0,n=void 0;return r.forEach(function(a){a.constructor===zc?t=a:function Y7e(i){return Object.getPrototypeOf(i.constructor)===Kf}(a)?e=a:n=a}),n||e||t||null}function $L(i,r){var t=i.indexOf(r);t>-1&&i.splice(t,1)}var aC="VALID",NE="INVALID",Zg="PENDING",oC="DISABLED";function XL(i){return(FE(i)?i.validators:i)||null}function Fee(i){return Array.isArray(i)?GL(i):i||null}function ZL(i,r){return(FE(r)?r.asyncValidators:i)||null}function Lee(i){return Array.isArray(i)?VL(i):i||null}function FE(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}var YL=function(r){return r instanceof sC};function Bee(i){return function(r){return r instanceof JL}(i)?i.value:i.getRawValue()}function Gee(i,r){var t=YL(i),e=i.controls;if(!(t?Object.keys(e):e).length)throw new gt(1e3,"");if(!e[r])throw new gt(1001,"")}function Vee(i,r){YL(i),i._forEachChild(function(e,n){if(void 0===r[n])throw new gt(1002,"")})}var QL=function(){function i(r,t){p(this,i),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=t,this._composedValidatorFn=Fee(this._rawValidators),this._composedAsyncValidatorFn=Lee(this._rawAsyncValidators)}return v(i,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===aC}},{key:"invalid",get:function(){return this.status===NE}},{key:"pending",get:function(){return this.status==Zg}},{key:"disabled",get:function(){return this.status===oC}},{key:"enabled",get:function(){return this.status!==oC}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=Fee(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Lee(t)}},{key:"addValidators",value:function(t){this.setValidators(Dee(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(Dee(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(Eee(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(Eee(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return AE(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return AE(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Zg,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=oC,this.errors=null,this._forEachChild(function(n){n.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(n){return n(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=aC,this._forEachChild(function(n){n.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(n){return n(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===aC||this.status===Zg)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?oC:aC}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=Zg,this._hasOwnPendingAsyncValidator=!0;var n=_ee(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(a){e._hasOwnPendingAsyncValidator=!1,e.setErrors(a,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function Q7e(i,r,t){if(null==r||(Array.isArray(r)||(r=r.split(t)),Array.isArray(r)&&0===r.length))return null;var e=i;return r.forEach(function(n){e=YL(e)?e.controls.hasOwnProperty(n)?e.controls[n]:null:function(r){return r instanceof e9e}(e)&&e.at(n)||null}),e}(this,t,".")}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new O,this.statusChanges=new O}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?oC:this.errors?NE:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zg)?Zg:this._anyControlsHaveStatus(NE)?NE:aC}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){FE(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),i}(),JL=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return p(this,t),(e=r.call(this,XL(a),ZL(o,a))).defaultValue=null,e._onChange=[],e._pendingChange=!1,e._applyFormState(n),e._setUpdateStrategy(a),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),FE(a)&&a.initialValueIsDefault&&(e.defaultValue=e._isBoxedValue(n)?n.value:n),e}return v(t,[{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=n,this._onChange.length&&!1!==o.emitModelToViewChange&&this._onChange.forEach(function(s){return s(a.value,!1!==o.emitViewToModelChange)}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(n,a)}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(n),this.markAsPristine(a),this.markAsUntouched(a),this.setValue(this.value,a),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(n){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(n){this._onChange.push(n)}},{key:"_unregisterOnChange",value:function(n){$L(this._onChange,n)}},{key:"registerOnDisabledChange",value:function(n){this._onDisabledChange.push(n)}},{key:"_unregisterOnDisabledChange",value:function(n){$L(this._onDisabledChange,n)}},{key:"_forEachChild",value:function(n){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}]),t}(QL),sC=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,XL(n),ZL(a,n))).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return v(t,[{key:"registerControl",value:function(n,a){return this.controls[n]?this.controls[n]:(this.controls[n]=a,a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange),a)}},{key:"addControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(n,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),delete this.controls[n],this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),delete this.controls[n],a&&this.registerControl(n,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}},{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Vee(this,n),Object.keys(n).forEach(function(s){Gee(a,s),a.controls[s].setValue(n[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=n&&(Object.keys(n).forEach(function(s){a.controls[s]&&a.controls[s].patchValue(n[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(n[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(n,a,o){return n[o]=Bee(a),n})}},{key:"_syncPendingControls",value:function(){var n=this._reduceChildren(!1,function(a,o){return!!o._syncPendingControls()||a});return n&&this.updateValueAndValidity({onlySelf:!0}),n}},{key:"_forEachChild",value:function(n){var a=this;Object.keys(this.controls).forEach(function(o){var s=a.controls[o];s&&n(s,o)})}},{key:"_setUpControls",value:function(){var n=this;this._forEachChild(function(a){a.setParent(n),a._registerOnCollectionChange(n._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(n){for(var a=0,o=Object.keys(this.controls);a0||this.disabled}}]),t}(QL),e9e=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,XL(n),ZL(a,n))).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return v(t,[{key:"at",value:function(n){return this.controls[n]}},{key:"push",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(n,0,a),this._registerControl(a),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"removeAt",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"setControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),a&&(this.controls.splice(n,0,a),this._registerControl(a)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Vee(this,n),n.forEach(function(s,l){Gee(a,l),a.at(l).setValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=n&&(n.forEach(function(s,l){a.at(l)&&a.at(l).patchValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(n[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this.controls.map(function(n){return Bee(n)})}},{key:"clear",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(a){return a._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}},{key:"_syncPendingControls",value:function(){var n=this.controls.reduce(function(a,o){return!!o._syncPendingControls()||a},!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}},{key:"_forEachChild",value:function(n){this.controls.forEach(function(a,o){n(a,o)})}},{key:"_updateValue",value:function(){var n=this;this.value=this.controls.filter(function(a){return a.enabled||n.disabled}).map(function(a){return a.value})}},{key:"_anyControls",value:function(n){return this.controls.some(function(a){return a.enabled&&n(a)})}},{key:"_setUpControls",value:function(){var n=this;this._forEachChild(function(a){return n._registerControl(a)})}},{key:"_allControlsDisabled",value:function(){var a,n=In(this.controls);try{for(n.s();!(a=n.n()).done;)if(a.value.enabled)return!1}catch(s){n.e(s)}finally{n.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}]),t}(QL),t9e={provide:no,useExisting:ye(function(){return LE})},lC=function(){return Promise.resolve(null)}(),LE=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).submitted=!1,o._directives=new Set,o.ngSubmit=new O,o.form=new sC({},GL(n),VL(a)),o}return v(e,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(a){var o=this;lC.then(function(){var s=o._findContainer(a.path);a.control=s.registerControl(a.name,a.control),rC(a.control,a),a.control.updateValueAndValidity({emitEvent:!1}),o._directives.add(a)})}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){var o=this;lC.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name),o._directives.delete(a)})}},{key:"addFormGroup",value:function(a){var o=this;lC.then(function(){var s=o._findContainer(a.path),l=new sC({});(function Oee(i,r){KL(i,r)})(l,a),s.registerControl(a.name,l),l.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(a){var o=this;lC.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name)})}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){var s=this;lC.then(function(){s.form.get(a.path).setValue(o)})}},{key:"setValue",value:function(a){this.control.setValue(a)}},{key:"onSubmit",value:function(a){return this.submitted=!0,function Nee(i,r){i._syncPendingControls(),r.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(a){return a.pop(),a.length?this.form.get(a):this.form}}]),e}(no);return i.\u0275fac=function(t){return new(t||i)(m(tr,10),m(Jd,10))},i.\u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Q("submit",function(a){return e.onSubmit(a)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([t9e]),j]}),i}(),i9e={provide:ra,useExisting:ye(function(){return Wf})},Hee=function(){return Promise.resolve(null)}(),Wf=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l){var u;return p(this,e),(u=t.call(this))._changeDetectorRef=l,u.control=new JL,u._registered=!1,u.update=new O,u._parent=n,u._setValidators(a),u._setAsyncValidators(o),u.valueAccessor=WL(Xe(u),s),u}return v(e,[{key:"ngOnChanges",value:function(a){if(this._checkForErrors(),!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var o=a.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a),jL(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){rC(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(a){var o=this;Hee.then(function(){var s;o.control.setValue(a,{emitViewToModelChange:!1}),null===(s=o._changeDetectorRef)||void 0===s||s.markForCheck()})}},{key:"_updateDisabled",value:function(a){var o=this,s=a.isDisabled.currentValue,l=""===s||s&&"false"!==s;Hee.then(function(){var u;l&&!o.control.disabled?o.control.disable():!l&&o.control.disabled&&o.control.enable(),null===(u=o._changeDetectorRef)||void 0===u||u.markForCheck()})}},{key:"_getPath",value:function(a){return this._parent?function ME(i,r){return[].concat(Ae(r.path),[i])}(a,this._parent):[a]}}]),e}(ra);return i.\u0275fac=function(t){return new(t||i)(m(no,9),m(tr,10),m(Jd,10),m(jn,10),m(nt,8))},i.\u0275dir=X({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[de([i9e]),j,Ie]}),i}(),Kee=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i}(),Wee=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),eP=new wt("NgModelWithFormControlWarning"),l9e={provide:ra,useExisting:ye(function(){return tP})},tP=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this))._ngModelWarningConfig=s,l.update=new O,l._ngModelWarningSent=!1,l._setValidators(n),l._setAsyncValidators(a),l.valueAccessor=WL(Xe(l),o),l}return v(e,[{key:"isDisabled",set:function(a){}},{key:"ngOnChanges",value:function(a){if(this._isControlChanged(a)){var o=a.form.previousValue;o&&RE(o,this),rC(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}jL(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&RE(this.form,this)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_isControlChanged",value:function(a){return a.hasOwnProperty("form")}}]),e}(ra);return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(t){return new(t||i)(m(tr,10),m(Jd,10),m(jn,10),m(eP,8))},i.\u0275dir=X({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[de([l9e]),j,Ie]}),i}(),lte=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Wee]]}),i}(),uC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[lte]}),i}(),lP=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"withConfig",value:function(e){return{ngModule:r,providers:[{provide:eP,useValue:e.warnOnNgModelWithFormControl}]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[lte]}),i}(),ji=function(r){return null!=r},PE=function(r){return null==r},uP=function(r){return Array.isArray(r)},ute=function(r){return"function"==typeof r},cP=function(r){return"string"==typeof r},qf=function(r){return!isNaN(r-parseFloat(r))},eh=function(r){return r&&r.getTime},Hc=function(r){return ji(r.filters)},cte=function(r,t,e){return function(n){return r(n)?t(n):e(n)}},xl=function(){for(var r=arguments.length,t=new Array(r),e=0;e0}(r(t))}},Yg=function(r,t){return cte(r,t,V9e)},hP=function(r,t){return function(e){return r(e).map(t).join("~")}},j9e=xl.apply(void 0,Ae([['"',""],[":","-"]].map(function(t){var e=Gt(t,2),n=e[0],a=e[1];return function(o){return o.replace(new RegExp(n,"g"),a)}}))),W9e=function(t){return t.slice(0,t.indexOf("."))},_te=function(r){var e=r.dir,n=void 0===e?"asc":e;return"".concat(r.field,"-").concat(n)},yte=_u("take"),kte=_u("aggregates"),q9e=_u("skip"),Cte=_u("group"),fP=_u("sort",!0),X9e=hP(fP,_te),Z9e=hP(Cte,_te),Y9e=hP(kte,function(r){var e=r.aggregate;return"".concat(r.field,"-").concat(e)}),J9e=xl(function(r){return"datetime'".concat(r,"'")},W9e,j9e,JSON.stringify,function(r){return new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()))}),n$e=xl(dC("page"),function(r){return Math.floor((r.skip||0)/r.take)+1}),i$e=xl(dC("pageSize"),yte),r$e=xl(dC("group"),Z9e),a$e=xl(dC("sort"),X9e),o$e=xl(dC("aggregate"),Y9e),vP=(Yg(dP(q9e),n$e),Yg(dP(yte),i$e),Yg(mte(Cte),r$e),Yg(dP(kte),o$e),xl(Yg(mte(fP),a$e),function(r){return Object.assign({},r,{sort:(fP(r)||[]).filter(function(t){return function(r){return!function(r){return PE(r)||0===r.trim().length}(r)}(t.dir)})})}),function(r){var e=r.operator,n=r.value;return"".concat(r.field,"~").concat(e,"~").concat(n)}),BE=(cte(function(r){return eh(r.value)},xl(vP,function(r){var t=r.field,n=r.ignoreCase,a=r.operator;return{value:J9e(r.value),field:t,ignoreCase:n,operator:a}}),vP),function(r,t,e){return t[r]=e,t}),pP=function(r){return function(t){var e=t[r];return ji(e)?e:t[function(r){return r.replace(/(^[A-Z])/g,function(t,e){return e.toLowerCase()})}(r)]}},wte=(pP("Member"),pP("AggregateMethodName"),pP("Value"),function(r){return function(t){return Object.keys(t).reduce(r.bind(null,t),{})}}),C$e=wte(function(i,r,t){return BE(t.toLowerCase(),r,i[t])}),b$e=wte(function(i,r,t){return BE(t,r,C$e(i[t]))}),Dte=function(r,t){return ji(r)?r:t},Ete=xl(function(i){var r=i.field,t=i.hasSubgroups,e=i.value,a=i.items;return{aggregates:b$e(i.aggregates),field:r,items:t?a.map(Ete):a,value:e}},function(r){return{aggregates:r.Aggregates||r.aggregates,field:r.Member||r.member||r.field,hasSubgroups:r.HasSubgroups||r.hasSubgroups||!1,items:r.Items||r.items,value:Dte(r.Key,Dte(r.key,r.value))}}),Tte=function(r,t){return PE(r)?r===t?0:-1:PE(t)?1:r.localeCompare?r.localeCompare(t):r>t?1:r0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(r).forEach(function(t){var e=r[t];Object.keys(e).forEach(function(n){e[n]=e[n].result()})}),r},O$e=function(r){var t=r.map(function(e){var n=_u(e.field,!0),a=(e.aggregate||"").toLowerCase(),o=_u(a,!0);return function(s,l){var u=s[e.field]||{},c=o(u)||function(r){return{average:function(){var e=0,n=0;return{calc:function(o){qf(o)?(e+=o,n++):e=o},result:function(){return qf(e)?e/n:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(a){(e=qf(e)||eh(e)?e:a)a&&(qf(a)||eh(a))&&(e=a)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(a){a=ji(a)?a:0,e+=a},result:function(){return e}}}}[r]()}(a);return c.calc(n(l)),u[e.aggregate]=c,s[e.field]=u,s}});return function(e,n){return t.reduce(function(a,o){return o(a,n)},e)}},I$e=function(r,t){return r.push(t),r},Ate=function(r){return function(t){return function(e,n,a){return t(e,r(n,a))}}},xte=function(r){return function(t){return function(e,n){return r(n)?t(e,n):e}}},Mte=function(r){return ji(r.__value)},gP=function(r,t,e){for(var n=t,a=0,o=e.length;a1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L$e,n={};if(!t.length)return n;var a=gP(e(O$e(t)),n,r);return M$e(a)},G$e=function i(r){r.filters&&(r.filters=r.filters.map(function(t){var e=Object.assign({},t);return!Hc(t)&&cP(t.operator)&&(e.operator=function(r){return{"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[r.toLowerCase()]||r}(t.operator)),Hc(t)&&i(e),e}))},Ote=function(r){return ji(r)&&(r=function(r){return Hc(r)?Object.assign({},r):{filters:uP(r)?r:[r],logic:"and"}}(r),G$e(r)),r},U$e={or:{concat:function(r,t){return function(e){return r(e)||t(e)}},identity:function(){return!1}},and:{concat:function(r,t){return function(e){return r(e)&&t(e)}},identity:function(){return!0}}},z$e={contains:function(r,t){return(r||"").indexOf(t)>=0},doesnotcontain:function(r,t){return-1===(r||"").indexOf(t)},doesnotendwith:function(r,t){return(r||"").indexOf(t,(r||"").length-(t||"").length)<0},doesnotstartwith:function(r,t){return-1===(r||"").lastIndexOf(t,0)},endswith:function(r,t){return(r||"").indexOf(t,(r||"").length-(t||"").length)>=0},eq:function(r,t){return r===t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t},isempty:function(r){return""===r},isnotempty:function(r){return""!==r},isnotnull:function(r){return ji(r)},isnull:function(r){return PE(r)},lt:function(r,t){return r1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pte,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;if(!(t=Lte(t)).length)return r;var a=t[0],o={},s=gP(e(x$e(a.field)),o,r),l=[];return Object.keys(s).forEach(function(u){Object.keys(s[u]).forEach(function(c){var d=s[u][c],h={},f=n;ji(a.aggregates)&&(f=Fte(n,{field:a.field,ignoreCase:!1,operator:"eq",value:d.value}),h=P$e(f,a.aggregates)),l[d.__position]={aggregates:h,field:u,items:t.length>1?i(d.items,t.slice(1),Pte,f):d.items,value:d.value}})}),l},q$e=function i(r,t,e,n){if(!(e-t<2)){var a=t+e>>>1;i(r,t,a,n),i(r,a,e,n),function(r,t,e,n,a){for(var o=e-t,s=n-e,l=[],u=0;u0&&o>0);for(;o;)r[h++]=l[c++],o--;for(;s;)r[h++]=r[d++],s--}(r,t,a,e,n)}},GE=function(r,t){if(t.some(function(n){return ji(n.dir)})){r=r.slice(0);var e=function(r){return r.filter(function(t){return ji(t.dir)}).map(function(t){return D$e(t)}).reduce(function(t,e){return function(n,a){return t(n,a)||e(n,a)}},E$e)}(t);q$e(r,0,r.length,e)}return r},Gte=function(r,t){var e=t.skip,n=t.take,a=t.filter,o=t.sort,s=t.group,l=[].concat(Ae(Lte(s||[])),Ae(o||[]));l.length&&(r=GE(r,l));var u=ji(a)&&xte.length,c=ji(s)&&s.length;if(!u&&!c)return{data:n?r.slice(e,e+n):r,total:r.length};var d,f,h=[];if(u?(d=function(r,t){for(var e=0,n=0,a=r.length;n0?t(e,n):function(r){return Mte(r)?r:{__value:r,reduced:!0}}(e)}}}(n))),h.length){var g=xl.apply(void 0,h),_=c?Bte(r,s,g,function(r,t){return t?r.filter(t):r}(r,f)):gP(g(I$e),[],r);return{data:_,total:d}}return{data:c?Bte(r,s):r,total:d}},Fne=["track"],pqe=["thumb"],Pne=function(r,t,e){return{keydown:r,focus:t,blur:e}},gqe=["numericInput"],mqe=function(r,t){return{mouseup:r,mouseleave:t}},Bne=function(r){return{mousedown:r}};function _qe(i,r){if(1&i&&(A(0,"span",4)(1,"button",5),z(2,"span",6),x(),A(3,"button",7),z(4,"span",8),x()()),2&i){var t=D();y("kendoEventsOutsideAngular",ln(13,mqe,t.releaseArrow,t.releaseArrow)),k(1),ue("k-active",t.arrowDirection===t.ArrowDirection.Up),y("kendoEventsOutsideAngular",ot(16,Bne,t.increasePress))("title",t.incrementTitle),ie("aria-hidden",!0)("aria-label",t.incrementTitle),k(2),ue("k-active",t.arrowDirection===t.ArrowDirection.Down),y("kendoEventsOutsideAngular",ot(18,Bne,t.decreasePress))("title",t.decrementTitle),ie("aria-hidden",!0)("aria-label",t.decrementTitle)}}var yqe=function(r,t,e,n,a,o,s){return{mousedown:r,dragenter:t,keydown:e,input:n,focus:a,blur:o,paste:s}},kqe=["input"];function Cqe(i,r){}function bqe(i,r){if(1&i&&T(0,Cqe,0,0,"ng-template",8),2&i){var t=D();y("ngTemplateOutlet",null==t.prefixTemplate?null:t.prefixTemplate.templateRef)}}function Sqe(i,r){if(1&i){var t=xe();A(0,"span",9),Q("click",function(){return re(t),D().clearValue()})("mousedown",function(a){return a.preventDefault()})("keydown.enter",function(a){return re(t),D().clearValue(a)})("keydown.space",function(a){return re(t),D().clearValue(a)}),z(1,"span",10),x()}if(2&i){var e=D();y("tabindex",e.tabIndex)("title",e.clearTitle()),ie("aria-label",e.clearTitle()),k(1),y("ngClass",e.clearButtonClasses)}}function wqe(i,r){1&i&&z(0,"span",10),2&i&&y("ngClass",D().errorIconClasses)}function Dqe(i,r){1&i&&z(0,"span",10),2&i&&y("ngClass",D().successIconClasses)}function Eqe(i,r){}function Tqe(i,r){if(1&i&&T(0,Eqe,0,0,"ng-template",8),2&i){var t=D();y("ngTemplateOutlet",null==t.suffixTemplate?null:t.suffixTemplate.templateRef)}}var Aqe=function(r,t,e){return{focus:r,blur:t,input:e}},mn=function(r){return null!=r},hC=function(r,t){return r===t||null===r&&void 0===t||void 0===r&&null===t},fC=function(r){return r&&(!r.touched||r.control&&"blur"===r.control.updateOn)},Vne={small:"sm",medium:"md",large:"lg"},Une={small:"sm",medium:"md",large:"lg",full:"full"},Xf=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(Vne[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(Vne[n]):""};case"rounded":return{toRemove:"k-rounded-".concat(Une[e]),toAdd:"none"!==n?"k-rounded-".concat(Une[n]):""};case"fillMode":return{toRemove:"k-".concat(r,"-").concat(e),toAdd:"none"!==n?"k-".concat(r,"-").concat(n):""}}},zne=function(r){return Math.min(r,20)},vC=function(r){return(String(r).split(".")[1]||"").length},VE=function(r,t){var e=zne(t);return parseFloat(r.toFixed(e))},Zf=function(r,t){var e=function(r,t){return Math.max(vC(r),vC(t))}(r,t);return VE(r+t,e)};function th(i,r){if(i&&i.nativeElement){for(var t=arguments.length,e=new Array(t>2?t-2:0),n=2;n=0?Math.floor(r):Math.ceil(r)},Yf=function(r){},Qf=function(r){return!isNaN(r)&&null!==r};function rie(i,r){var t=r-String(i).length,e=i;if(t>0){var n=new Array(t+1).join("0");e=parseFloat(i+n)}return e}var Wc=function(){return function(i){i[i.Down=-1]="Down",i[i.None=0]="None",i[i.Up=1]="Up"}(Wc||(Wc={})),Wc}(),WE=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-numerictextbox-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[j]}),i}(),vZe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(WE);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoNumericTextBoxLocalizedMessages",""]],features:[de([{provide:WE,useExisting:ye(function(){return i})}]),j]}),i}(),aie=["min","max","step","decimals"],pZe={decimals:null,max:null,min:null,step:1},Jf=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.intl=t,this.renderer=e,this.localizationService=n,this.injector=a,this.ngZone=o,this.changeDetector=s,this.hostElement=l,this.focusableId="k-".concat(qn()),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new O,this.onFocus=new O,this.onBlur=new O,this.ArrowDirection=Wc,this.arrowDirection=Wc.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=Yf,this.maxValidateFn=Yf,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=Yf,this.ngTouched=Yf,this.ngValidatorChange=Yf,this.domEvents=[],this.increasePress=function(c){u.arrowPress(Wc.Up,c)},this.decreasePress=function(c){u.arrowPress(Wc.Down,c)},this.releaseArrow=function(){clearTimeout(u.spinTimeout),u.arrowDirection!==Wc.None&&(u.arrowDirection=Wc.None,u.changeDetector.detectChanges())},this.handlePaste=function(){u.isPasted=!0},this.handleInput=function(){var c=u.numericInput.nativeElement,d=c.selectionStart,h=c.selectionEnd,f=c.value;if(u.pressedKey===J.NumpadDecimal&&(f=u.replaceNumpadDotValue()),u.isPasted&&(f=u.formatInputValue(u.intl.parseNumber(f))),!u.isValid(f))return c.value=u.inputValue,void u.setSelection(d-1,h-1);var g=u.intl.parseNumber(f),_=u.restrictDecimals(g);if(u.autoCorrect){var C=u.limitInputValue(_);_=C.value,d=C.selectionStart,h=C.selectionEnd}g!==_||u.hasTrailingZeros(f)||!u.focused?(u.setInputValue(_),u.setSelection(d,h)):u.inputValue=f,u.isPasted&&(c.value=u.inputValue),u.updateValue(_),u.previousSelection=null,u.isPasted=!1},this.handleDragEnter=function(){!u.focused&&!u.isDisabled&&u.setInputValue(u.value,!0)},this.handleMouseDown=function(){u.mouseDown=!0},this.handleFocus=function(){if(!u.focused&&(u.focused=!0,!u.isDisabled)){var c=u.selectOnFocus||!u.mouseDown;u.ngZone.runOutsideAngular(function(){setTimeout(function(){c?u.selectAll():u.selectCaret()},0)})}u.mouseDown=!1,ut(u.onFocus)&&u.ngZone.run(function(){u.onFocus.emit()})},this.handleBlur=function(){u.changeDetector.markForCheck(),u.focused=!1,u.inputValue!==u.elementValue&&u.handleInput(),u.setInputValue(),(ut(u.onBlur)||fC(u.control))&&u.ngZone.run(function(){u.ngTouched(),u.onBlur.emit()})},this.handleKeyDown=function(c){if(!u.isDisabled){var d;c.keyCode===J.ArrowDown?d=-1:c.keyCode===J.ArrowUp&&(d=1),d&&u.step&&(c.preventDefault(),u.addStep(d));var h=u.numericInput.nativeElement;u.previousSelection={end:h.selectionEnd,start:h.selectionStart},u.pressedKey=c.keyCode}},this.handleWheel=function(c){if(u.focused&&!u.isDisabled&&u.changeValueOnScroll){c.preventDefault();var d=function(r){var t=0;return r.wheelDelta?t=(t=r.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):r.detail&&(t=Math.round(-r.detail/3)),t}(c);u.addStep(d)}},jt(jc),this.direction=n.rtl?"rtl":"ltr"}return v(r,[{key:"format",get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"disableClass",get:function(){return this.disabled}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(ra,null),this.ngZone.runOutsideAngular(function(){e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"mousewheel",e.handleWheel.bind(e))),e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"DOMMouseScroll",e.handleWheel.bind(e)))})}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","fillMode"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngOnChanges",value:function(e){Ki(aie,e,!1)&&this.parseOptions(aie.filter(function(n){return e[n]})),this.verifySettings(),Ki(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?function(r){return function(t){return!mn(r)||!mn(t.value)||t.value>=r?null:{minError:{minValue:r,value:t.value}}}}(this.min):Yf,this.maxValidateFn=this.rangeValidation?function(r){return function(t){return!mn(r)||!mn(t.value)||t.value<=r?null:{maxError:{maxValue:r,value:t.value}}}}(this.max):Yf,this.ngValidatorChange()),Ki(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Ki(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),(!this.focused||this.intl.parseNumber(this.elementValue)!==this.value)&&this.setInputValue())}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach(function(e){return e()})}},{key:"validate",value:function(e){return this.minValidateFn(e)||this.maxValidateFn(e)}},{key:"registerOnValidatorChange",value:function(e){this.ngValidatorChange=e}},{key:"writeValue",value:function(e){this.verifyValue(e);var n=this.restrictModelValue(e);this.value=n,this.setInputValue()}},{key:"registerOnChange",value:function(e){this.ngChange=e}},{key:"registerOnTouched",value:function(e){this.ngTouched=e}},{key:"setDisabledState",value:function(e){this.changeDetector.markForCheck(),this.disabled=e}},{key:"focus",value:function(){th(this.numericInput,"focus")}},{key:"blur",value:function(){th(this.numericInput,"blur")}},{key:"notifyValueChange",value:function(){this.setInputValue()}},{key:"incrementTitle",get:function(){return this.localizationService.get("increment")}},{key:"decrementTitle",get:function(){return this.localizationService.get("decrement")}},{key:"decimalSeparator",get:function(){return this.intl.numberSymbols().decimal}},{key:"elementValue",get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)}},{key:"focused",get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var n=this.hostElement.nativeElement;e?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus"),this.isFocused=e}}},{key:"hasDecimals",get:function(){return null!==this.decimals&&this.decimals>=0}},{key:"isDisabled",get:function(){return this.disabled||this.readonly}},{key:"arrowPress",value:function(e,n){n.preventDefault(),!this.isDisabled&&!function(r){return r.button&&2===r.button||r.which&&3===r.which}(n)&&(aW||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())}},{key:"updateValue",value:function(e){var n=this;hC(this.value,e)||this.ngZone.run(function(){n.value=e,n.ngChange(e),n.valueChange.emit(e),n.changeDetector.markForCheck()})}},{key:"replaceNumpadDotValue",value:function(){var e=this.inputValue||"";if(this.previousSelection){var n=this.numericInput.nativeElement,a=n.selectionStart,o=n.selectionEnd,s=this.previousSelection,u=s.end;n.value=e=e.substring(0,s.start)+this.decimalSeparator+e.substring(u),this.setSelection(a,o)}return e}},{key:"isValid",value:function(e){return this.numericRegex||(this.numericRegex=function(r){var n=r.min,a=r.separator;"."===a&&(a="\\"+a);var s,o=r.autoCorrect&&null!==n&&n>=0?"":"-?";return s=0===r.decimals?"\\d*":"(?:(?:\\d+(".concat(a,"\\d*)?)|(?:").concat(a,"\\d*))?"),new RegExp("^".concat(o).concat(s,"$"))}({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)}},{key:"spin",value:function(e,n){var a=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){a.spin(e,50)},n),this.addStep(e)}},{key:"addStep",value:function(e){var n=Zf(this.value||0,this.step*e);n=this.limitValue(n),n=this.restrictDecimals(n),this.setInputValue(n),this.updateValue(n)}},{key:"setSelection",value:function(e,n){this.focused&&th(this.numericInput,"setSelectionRange",e,n)}},{key:"limitValue",value:function(e){var n=e;return this.isInRange(e)||(Qf(this.max)&&e>this.max&&(n=this.max),Qf(this.min)&&eh?e>0?C=!0:_=h:g&&e0?_=d:C=!0),_){var E=this.tryPadValue(e,_);E&&iie(e)!==iie(_)&&(w=E,u=!0)}else C&&this.inputValue&&a!==s.length&&(w=parseFloat(s.substr(0,a)+s.substr(a+c)));l=this.limitValue(w),u=(u||l!==w)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+c>0}return{selectionEnd:u?String(l).length:o,selectionStart:a,value:l}}},{key:"tryPadValue",value:function(e,n){var l,a=String(Math.floor(n)).length,o=rie(e,a),s=rie(e,a+1);return this.isInRange(o)?l=o:this.isInRange(s)&&(l=s),l}},{key:"isInRange",value:function(e){return!Qf(e)||(!Qf(this.min)||this.min<=e)&&(!Qf(this.max)||e<=this.max)}},{key:"restrictModelValue",value:function(e){var n=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(n)!==n&&(n=null),n}},{key:"restrictDecimals",value:function(e,n){var a=e;if(e&&this.hasDecimals){var o=this.decimals,s=String(e);if(n||nie.test(s))a=VE(e,o);else{var l=s.split("."),u=l[1];u&&u.length>o&&(u=u.substr(0,o),a=parseFloat("".concat(l[0]).concat(".").concat(u)))}}return a}},{key:"formatInputValue",value:function(e){var n=String(e),a=nie.exec(n);return a&&(n=e.toFixed(zne(parseInt(a[1],10)))),n.replace(".",this.decimalSeparator)}},{key:"formatValue",value:function(e,n){var a;return a=null!==e&&function(r){return void 0!==r}(e)&&""!==e?n&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):"",a}},{key:"setInputValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.value,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.focused,a=this.formatValue(e,n);this.elementValue=a,this.inputValue=a}},{key:"verifySettings",value:function(){if(xt()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max","."))}},{key:"verifyValue",value:function(e){if(xt()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and ".concat(JSON.stringify(e)," was set."))}},{key:"parseOptions",value:function(e){for(var n=0;nthis.decimals&&n.lastIndexOf("0")===n.length-1}}},{key:"selectAll",value:function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)}},{key:"selectCaret",value:function(){var e=function(r){return r.selectionStart}(this.numericInput.nativeElement),n=this.elementValue,a=n.substring(0,e);if(this.setInputValue(),a.length){var o=function(r,t){var e="".concat(t,"0123456789-");return r.split("").reduce(function(n,a){return e.includes(a)?++n:n},0)}(a,this.decimalSeparator),s=this.adjustSignificantChars(n,o);this.setSelection(s,s)}else this.setSelection(0,0)}},{key:"numberOfLeadingZeroes",value:function(e){var n=e.indexOf(this.decimalSeparator),a=e.match(/^[^1-9]*?(0+)/);if(a){var s=a[1].length;return a[0].length===n?s-1:s}return 0}},{key:"adjustSignificantChars",value:function(e,n){var a=this.numberOfLeadingZeroes(e);return a>0?Math.max(0,n-a):n}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("input",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(fi),m(Ee),m(Y),m(Jn),m(be),m(nt),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-numerictextbox"]],viewQuery:function(t,e){var n;1&t&&ge(gqe,7),2&t&&P(n=B())&&(e.numericInput=n.first)},hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-disabled",e.disableClass)("k-input",e.hostClasses)("k-numerictextbox",e.hostClasses))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",autoCorrect:"autoCorrect",format:"format",max:"max",min:"min",decimals:"decimals",placeholder:"placeholder",step:"step",spinners:"spinners",rangeValidation:"rangeValidation",tabindex:"tabindex",tabIndex:"tabIndex",changeValueOnScroll:"changeValueOnScroll",selectOnFocus:"selectOnFocus",value:"value",maxlength:"maxlength",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur"},exportAs:["kendoNumericTextBox"],features:[de([Y,{provide:Dt,useValue:"kendo.numerictextbox"},{provide:jn,useExisting:ye(function(){return i}),multi:!0},{provide:tr,useExisting:ye(function(){return i}),multi:!0},{provide:Ui,useExisting:ye(function(){return i})}]),Ie],decls:4,vars:20,consts:function(){return[["kendoNumericTextBoxLocalizedMessages","","increment",$localize(jte||(jte=le([":kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox:Increase value"]))),"decrement",$localize(Wte||(Wte=le([":kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox:Decrease value"])))],["role","spinbutton","autocomplete","off","autocorrect","off",1,"k-input-inner",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["numericInput",""],["class","k-input-spinner k-spin-button",3,"kendoEventsOutsideAngular",4,"ngIf"],[1,"k-input-spinner","k-spin-button",3,"kendoEventsOutsideAngular"],["type","button","tabindex","-1",1,"k-spinner-increase","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],[1,"k-button-icon","k-icon","k-i-arrow-n"],["type","button","tabindex","-1",1,"k-spinner-decrease","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],[1,"k-button-icon","k-icon","k-i-arrow-s"]]},template:function(t,e){1&t&&(Wt(0,0),z(1,"input",1,2),T(3,_qe,5,20,"span",3)),2&t&&(k(1),y("id",e.focusableId)("tabindex",e.tabIndex)("disabled",e.disabled)("readonly",e.readonly)("kendoEventsOutsideAngular",sR(12,yqe,e.handleMouseDown,e.handleDragEnter,e.handleKeyDown,e.handleInput,e.handleFocus,e.handleBlur,e.handlePaste)),ie("aria-valuemin",e.min)("aria-valuemax",e.max)("aria-valuenow",e.value)("title",e.title)("placeholder",e.placeholder)("maxLength",e.maxlength),k(2),y("ngIf",e.spinners))},directives:[vZe,qi,qe],encapsulation:2}),i}(),sie=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(WE);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-numerictextbox-messages"]],features:[de([{provide:WE,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),lie=(Promise.resolve(null),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Ly,cr,yo],Ly,cr,yo]}),i}()),uie=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,lie]]}),i}(),bZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,lie]]}),i}(),SZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,yo]]}),i}(),bP=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}(),wZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}(),TZe=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxSuffixTemplate",""]]}),i}(),cie=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxPrefixTemplate",""]]}),i}(),die=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-textbox-messages-base"]],inputs:{clear:"clear"},features:[j]}),i}(),AZe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(die);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxLocalizedMessages",""]],features:[de([{provide:die,useExisting:ye(function(){return i})}]),j]}),i}(),OZe=function(){var i=function(){function r(t,e,n,a,o,s){var l=this;p(this,r),this.localizationService=t,this.ngZone=e,this.changeDetector=n,this.renderer=a,this.injector=o,this.hostElement=s,this.focusableId="k-".concat(qn()),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new O,this.inputFocus=new O,this.inputBlur=new O,this.onFocus=new O,this.onBlur=new O,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){l.disabled||(l.selectOnFocus&&l.value&&l.ngZone.run(function(){setTimeout(function(){l.selectAll()})}),ut(l.onFocus)&&(l.isFocused||l.ngZone.run(function(){l.onFocus.emit()})),ut(l.inputFocus)&&(!l.focusChangedProgrammatically||l.focusChangedProgrammatically&&l.clearButtonClicked)&&l.ngZone.run(function(){l.inputFocus.emit()}),l.ngZone.run(function(){l.isFocused=!0}))},this.handleInputBlur=function(){l.changeDetector.markForCheck(),(ut(l.inputBlur)||fC(l.control))&&l.ngZone.run(function(){l.ngTouched(),l.inputBlur.emit()})},this.handleInput=function(u){var c=u.target,d=function(r){var t=mI(r),e=gI(r);return t&&t.safari||e&&"mobilesafari"===e.browser}(navigator.userAgent),h=d&&function(r){return/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(r)}(c.value)?u.data:c.value,f=[c.selectionStart,c.selectionEnd],g=f[0],_=f[1];l.updateValue(h),d&&c.setSelectionRange(g,_)},this.ngChange=function(u){},this.ngTouched=function(){},jt(jc),this.direction=t.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledClass",get:function(){return this.disabled}},{key:"ngOnInit",value:function(){var e=this;this.control=this.injector.get(ra,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){var e=this,n=this.hostElement.nativeElement,a=!1,o=!1;this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(n,"focusin",function(){e.isFocused||e.ngZone.run(function(){e.onFocus.emit(),e.isFocused=!0})})),e.subscriptions.add(e.renderer.listen(n,"focusout",function(l){if(e.isFocused)if(o){var u=function(r,t){for(;r&&r!==e.hostElement.nativeElement;)r=r.parentNode;return r}(l.relatedTarget);u||e.handleBlur(),o=!1}else!a&&!e.clearButtonClicked&&e.handleBlur()})),e.subscriptions.add(e.renderer.listen(n,"mouseenter",function(){a=!0})),e.subscriptions.add(e.renderer.listen(n,"mouseleave",function(){a=!1})),e.subscriptions.add(e.renderer.listen(n,"keydown",function(l){o=l.keyCode===J.Tab}))}),["size","rounded","fillMode"].forEach(function(l){e.handleClasses(e[l],l)})}},{key:"ngOnChanges",value:function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"focus",value:function(){!this.input||(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}},{key:"blur",value:function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}},{key:"clearTitle",value:function(){return this.localizationService.get("clear")}},{key:"checkClearButton",value:function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value}},{key:"clearValue",value:function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1}},{key:"writeValue",value:function(e){this.value=e,this.checkClearButton()}},{key:"registerOnChange",value:function(e){this.ngChange=e}},{key:"registerOnTouched",value:function(e){this.ngTouched=e}},{key:"setDisabledState",value:function(e){this.changeDetector.markForCheck(),this.disabled=e}},{key:"showErrorsInitial",value:function(){if(!this.control)return!1;var e=this.control;return e.invalid&&(e.dirty||e.touched)}},{key:"showSuccessInitial",value:function(){if(!this.control)return!1;var e=this.control;return e.valid&&(e.dirty||e.touched)}},{key:"successIconClasses",get:function(){return this.successIcon?"".concat(this.successIcon):"k-input-validation-icon k-icon k-i-check"}},{key:"errorIconClasses",get:function(){return this.errorIcon?"".concat(this.errorIcon):"k-input-validation-icon k-icon k-i-warning"}},{key:"clearButtonClasses",get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-x"}},{key:"hasErrors",get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon}},{key:"isSuccessful",get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon}},{key:"setSelection",value:function(e,n){this.isFocused&&th(this.input,"setSelectionRange",e,n)}},{key:"selectAll",value:function(){this.value&&this.setSelection(0,this.value.length)}},{key:"updateValue",value:function(e){var n=this;hC(this.value,e)||this.ngZone.run(function(){n.value=e,n.ngChange(e),n.valueChange.emit(e),n.checkClearButton(),n.changeDetector.markForCheck()})}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var n=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus"),this._isFocused=e}}},{key:"handleBlur",value:function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("input",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(be),m(nt),m(Ee),m(Jn),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-textbox"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,TZe,5),he(n,cie,5)),2&t&&(P(a=B())&&(e.suffixTemplate=a.first),P(a=B())&&(e.prefixTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&ge(kqe,7),2&t&&P(n=B())&&(e.input=n.first)},hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-disabled",e.disabledClass)("k-textbox",e.hostClasses)("k-input",e.hostClasses))},inputs:{focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",value:"value",selectOnFocus:"selectOnFocus",showSuccessIcon:"showSuccessIcon",showErrorIcon:"showErrorIcon",clearButton:"clearButton",successIcon:"successIcon",errorIcon:"errorIcon",clearButtonIcon:"clearButtonIcon",size:"size",rounded:"rounded",fillMode:"fillMode",tabIndex:"tabIndex",placeholder:"placeholder",maxlength:"maxlength"},outputs:{valueChange:"valueChange",inputFocus:"inputFocus",inputBlur:"inputBlur",onFocus:"focus",onBlur:"blur"},exportAs:["kendoTextBox"],features:[de([Y,{provide:Dt,useValue:"kendo.textbox"},{provide:jn,useExisting:ye(function(){return i}),multi:!0},{provide:Ui,useExisting:ye(function(){return i})}]),Ie],decls:10,vars:18,consts:function(){return[["kendoTextBoxLocalizedMessages","","clear",$localize($te||($te=le([":kendo.textbox.clear|The title for the **Clear** button in the TextBox.:Clear"])))],[1,"k-input-prefix"],[4,"ngIf"],[1,"k-input-inner",3,"id","disabled","readonly","value","kendoEventsOutsideAngular"],["input",""],["role","button","class","k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"k-input-suffix"],[3,"ngTemplateOutlet"],["role","button",1,"k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space"],[3,"ngClass"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"span",1),T(2,bqe,1,1,null,2),x(),z(3,"input",3,4),T(5,Sqe,2,4,"span",5),T(6,wqe,1,1,"span",6),T(7,Dqe,1,1,"span",6),A(8,"span",7),T(9,Tqe,1,1,null,2),x()),2&t&&(k(2),y("ngIf",e.prefixTemplate),k(1),y("id",e.focusableId)("disabled",e.disabled)("readonly",e.readonly)("value",e.value)("kendoEventsOutsideAngular",va(14,Aqe,e.handleInputFocus,e.handleInputBlur,e.handleInput)),ie("tabindex",e.disabled?void 0:e.tabindex)("placeholder",e.placeholder)("title",e.title)("maxlength",e.maxlength),k(2),y("ngIf",e.showClearButton),k(1),y("ngIf",e.hasErrors),k(1),y("ngIf",e.isSuccessful),k(2),y("ngIf",e.suffixTemplate))},directives:[AZe,qe,En,qi,Nt],encapsulation:2}),i}(),fie=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),NZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,fie],cr]}),i}(),FZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,fie],cr]}),i}(),rYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[uie,bP,bt,Fa,Ly]]}),i}(),aYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),sYe=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.hostElement=e,this.kendoClass=!0,this._size="medium",jt(jc)}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"ngAfterViewInit",value:function(){var e=this;["size"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("radio",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke))},i.\u0275dir=X({type:i,selectors:[["input","kendoRadioButton",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-radio",e.kendoClass)},inputs:{size:"size"}}),i}(),lYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),uYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),_C=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],FZe,NZe,uie,bZe,SZe,bP,wZe,rYe,aYe,lYe,uYe]}),i}();function cYe(i,r){return function(t,e){return!i.call(r,t,e)}}function Bie(i){return oi(function(r,t){var e=!1,n=0;r.subscribe(Wn(t,function(a){return(e||(e=!i(a,n++)))&&t.next(a)}))})}var hYe=["kendoTreeViewGroup",""];function fYe(i,r){if(1&i){var t=xe();A(0,"span",12),Q("click",function(){re(t);var l=D(),u=l.index,c=l.$implicit,d=D();return d.expandNode(d.nodeIndex(u),c,!d.isExpanded(c,d.nodeIndex(u)))}),z(1,"span",13),x()}if(2&i){var e=D(),n=e.index,a=e.$implicit,o=D();y("kendoTreeViewLoading",o.nodeIndex(n)),k(1),ue("k-i-collapse",o.isExpanded(a,o.nodeIndex(n)))("k-i-expand",!o.isExpanded(a,o.nodeIndex(n)))}}function vYe(i,r){if(1&i){var t=xe();A(0,"kendo-checkbox",14),Q("checkStateChange",function(){re(t);var l=D().index,u=D();return u.checkNode(u.nodeIndex(l))}),x()}if(2&i){var e=D(),n=e.$implicit,a=e.index,o=D();y("size",o.size)("node",n)("index",o.nodeIndex(a))("isChecked",o.isChecked)("tabindex",-1)}}function pYe(i,r){}var gYe=function(r,t){return{$implicit:r,index:t}};function mYe(i,r){if(1&i&&(Ge(0),T(1,pYe,0,0,"ng-template",15),Ve()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();k(1),y("ngTemplateOutlet",a.nodeTemplateRef)("ngTemplateOutletContext",ln(2,gYe,e,a.nodeIndex(n)))}}function _Ye(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D().$implicit,e=D();k(1),Pt(" ",e.nodeText(t)," ")}}function yYe(i,r){if(1&i&&z(0,"ul",16),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("nodes",a.fetchChildren)("loadOnDemand",a.loadOnDemand)("checkboxes",a.checkboxes)("expandIcons",a.expandIcons)("selectable",a.selectable)("touchActions",a.touchActions)("children",a.children)("hasChildren",a.hasChildren)("isChecked",a.isChecked)("isDisabled",a.isDisabled)("disabled",a.disabled||a.isDisabled(e,a.nodeIndex(n)))("isExpanded",a.isExpanded)("isSelected",a.isSelected)("isVisible",a.isVisible)("nodeTemplateRef",a.nodeTemplateRef)("loadMoreButtonTemplateRef",a.loadMoreButtonTemplateRef)("parentIndex",a.nodeIndex(n))("parentDataItem",e)("textField",a.nextFields)("loadMoreService",a.loadMoreService)("@toggle",!0)("trackBy",a.trackBy)}}function kYe(i,r){if(1&i&&(A(0,"li",2)(1,"div",3),T(2,fYe,2,5,"span",4),T(3,vYe,1,5,"kendo-checkbox",5),A(4,"span",6)(5,"span",7),Ge(6,8),T(7,mYe,2,5,"ng-container",9),T(8,_Ye,2,1,"ng-container",10),Ve(),x()()(),T(9,yYe,1,22,"ul",11),x()),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-display-none",!n.isVisible(t,n.nodeIndex(e))),y("dataItem",t)("index",n.nodeIndex(e))("parentDataItem",n.parentDataItem)("parentIndex",n.parentIndex)("loadOnDemand",n.loadOnDemand)("checkable",n.checkboxes)("isChecked",n.isChecked(t,n.nodeIndex(e)))("isDisabled",n.disabled||n.isDisabled(t,n.nodeIndex(e)))("isVisible",n.isVisible(t,n.nodeIndex(e)))("expandable",n.expandIcons&&n.hasChildren(t))("isExpanded",n.isExpanded(t,n.nodeIndex(e)))("selectable",n.selectable)("isSelected",n.isSelected(t,n.nodeIndex(e))),ie("aria-setsize",n.totalNodesCount)("data-treeindex",n.nodeIndex(e)),k(1),y("ngClass",n.setItemClasses(n.data.length,e)),k(1),y("ngIf",n.expandIcons&&n.hasChildren(t)),k(1),y("ngIf",n.checkboxes),k(1),Qe("touch-action",n.touchActions?"":"none"),y("dataItem",t)("index",n.nodeIndex(e))("initialSelection",n.isSelected(t,n.nodeIndex(e)))("isSelected",n.isSelected),ie("data-treeindex",n.nodeIndex(e)),k(2),y("ngSwitch",n.hasTemplate),k(1),y("ngSwitchCase",!0),k(2),y("ngIf",n.isExpanded(t,n.nodeIndex(e))&&n.hasChildren(t))}}function CYe(i,r){1&i&&z(0,"span",22)}function bYe(i,r){}var SYe=function(r){return{index:r}};function wYe(i,r){if(1&i&&T(0,bYe,0,0,"ng-template",15),2&i){var t=D(2);y("ngTemplateOutlet",t.loadMoreButtonTemplateRef)("ngTemplateOutletContext",ot(2,SYe,t.loadMoreButtonIndex))}}function DYe(i,r){1&i&&(Ge(0),te(1," Load more "),Ve())}function EYe(i,r){if(1&i&&(A(0,"li",17)(1,"div",18),T(2,CYe,1,0,"span",19),A(3,"span",20)(4,"span",7),T(5,wYe,1,4,null,21),T(6,DYe,2,0,"ng-container",21),x()()()()),2&i){var t=D();ue("k-treeview-load-more-checkboxes-container",t.checkboxes),y("selectable",!1)("checkable",!1)("expandable",!1)("index",t.loadMoreButtonIndex)("parentDataItem",t.parentDataItem)("parentIndex",t.parentIndex),ie("data-treeindex",t.loadMoreButtonIndex),k(2),y("ngIf",t.loadingMoreNodes),k(1),y("index",t.loadMoreButtonIndex),ie("data-treeindex",t.loadMoreButtonIndex),k(2),y("ngIf",t.loadMoreButtonTemplateRef),k(1),y("ngIf",!t.loadMoreButtonTemplateRef)}}var TYe=["assetsContainer"];function AYe(i,r){1&i&&z(0,"span",6)}function xYe(i,r){if(1&i){var t=xe();A(0,"span",3)(1,"kendo-textbox",4),Q("valueChange",function(a){return re(t),D().filterChange.emit(a)}),T(2,AYe,1,0,"ng-template",5),x()()}if(2&i){var e=D();k(1),y("size",e.size)("value",e.filter)("clearButton",!0)("placeholder",e.filterInputPlaceholder)}}var GYe={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1651820172,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},wP=function(){function i(){p(this,i),this.changes=new O}return v(i,[{key:"notify",value:function(){this.changes.emit()}}]),i}(),VYe=function(){return!1},UYe=function(){return"none"},zYe=function(){return!1},HYe=function(){return!0},Gie=function(){return!1},Vie=function(){return!0},KYe=function(r,t){return t},yC=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"expand",value:function(e,n){this.changes.next({dataItem:n,index:e,expand:!0})}},{key:"collapse",value:function(e,n){this.changes.next({dataItem:n,index:e,expand:!1})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),em=function(){var i=function(){function r(){p(this,r),this.INDEX_SEPARATOR="_"}return v(r,[{key:"nodeIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(n).concat(n?this.INDEX_SEPARATOR:"").concat(e)}},{key:"indexForLevel",value:function(e,n){return e.split(this.INDEX_SEPARATOR).slice(0,n).join(this.INDEX_SEPARATOR)}},{key:"lastLevelIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=e.split(this.INDEX_SEPARATOR);return n.length?parseInt(n[n.length-1],10):NaN}},{key:"level",value:function(e){return e.split(this.INDEX_SEPARATOR).length}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),DP=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"notifyLoaded",value:function(e){this.changes.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),jYe=/^(?:a|input|select|option|textarea|button|object)$/i,tv=function(r,t){var e=r.matches||r.msMatchesSelector||r.webkitMatchesSelector;return!!e&&e.call(r,t)},tm=function(r,t){if(!document.documentElement.contains(r))return null;for(var e=r;null!==e&&1===e.nodeType;){if(tv(e,t))return e;e=e.parentElement||e.parentNode}return null},Re=function(r){return null!=r},Hie=function(r){return Array.isArray(r)},nv=function(r){var t="li.k-treeview-item";return Ze()?r.closest?r.closest(t):tm(r,t):null},Kie=function(r){if(r.tagName){var t=r.tagName.toLowerCase(),e=r.getAttribute("tabIndex"),n="-1"===e,a=null!==e&&!n;return jYe.test(t)&&(a=!r.disabled&&!n),a}return!1},jie=function(r){return Re(tm(r,".k-treeview-leaf.k-treeview-load-more-button"))},AP=function(r,t){return Boolean(function(r,t){for(;r&&!t(r);)r=r.parentNode;return r}(r,function(e){return e===t}))},Wie=function(r){return r.nativeElement.querySelector('li[tabindex="0"]')},xP=function(r){return r?r.getAttribute("data-treeindex"):""},yu=function(r){return(r||{}).index},kC=function(r,t){return[r,t].filter(function(e){return Re(e)}).join("_")},tQe=function(r,t,e){return Re(r)?{dataItem:r,index:kC(e,t)}:null},n1=function(r,t){return{small:"k-".concat(r,"-sm"),medium:"k-".concat(r,"-md"),large:"k-".concat(r,"-lg")}[t]},MP=function(r){return r||{}},RP=function(r){return MP(r).children||[]},OP=function(r){if(!Array.isArray(r)||0===r.length)return null;for(var n=r.length-1;n>=0;n-=1){var a=r[n];if(a.visible)return a}return null},iQe=function(){function i(){p(this,i),this.ib=new em,this.nodes=[]}return v(i,[{key:"firstVisibleNode",value:function(){return(this.nodes||[]).find(function(t){return t.visible})}},{key:"lastVisibleNode",value:function(){for(var t=OP(this.nodes);Re(t)&&RP(t).length>0;){var e=RP(t),n=OP(e);if(!Re(n))return t;t=n}return t}},{key:"closestNode",value:function(t){var a=MP(this.findNode(t)).prev||this.firstVisibleNode();return MP(a).index===t?this.visibleSibling(a,1):a}},{key:"firstFocusableNode",value:function(){return this.nodes.find(function(t){return!t.disabled&&t.visible})}},{key:"findNode",value:function(t){return this.find(t,this.nodes)}},{key:"findParent",value:function(t){var e=this.ib.level(t)-1;return this.findNode(this.ib.indexForLevel(t,e))}},{key:"findVisibleChild",value:function(t){var e=this.findNode(t);return RP(e).find(function(a){return a.visible})}},{key:"findVisiblePrev",value:function(t){var e=t.index,n=this.findParent(e),a=this.ib.lastLevelIndex(e),s=this.container(n).slice(0,a).every(function(d){return!d.visible});if(0===a||s)return n;var l=this.findNode(e),u=this.visibleSibling(l,-1);if(u)for(var c=this.container(u);c.length>0&&c.some(function(d){return d.visible});)u=OP(c),c=this.container(u);return u}},{key:"findVisibleNext",value:function(t){var e=this.container(t),n=e.some(function(a){return a.visible});return 0!==e.length&&n?e.find(function(a){return a.visible}):this.visibleSibling(t,1)}},{key:"registerItem",value:function(t,e,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=[],l=this.ib.level(e),u=this.findParent(e);if(u||1===l){var c={id:t,children:s,index:e,parent:u,disabled:n,loadMoreButton:a,visible:o};this.insert(c,u)}}},{key:"unregisterItem",value:function(t,e){var n=this.find(e,this.nodes);if(n&&n.id===t){var a=this.container(n.parent);a.splice(a.indexOf(n),1)}}},{key:"childLevel",value:function(t){var e=t.filter(function(n){return Re(n)});return e&&e.length?this.ib.level(e[0].index):1}},{key:"container",value:function(t){return t?t.children:this.nodes}},{key:"find",value:function(t,e){var n=this.childLevel(e),a=this.ib.indexForLevel(t,n),o=n===this.ib.level(t),s=e.find(function(l){return l&&l.index===a});return s?o?s:this.find(t,s.children):null}},{key:"insert",value:function(t,e){this.container(e).splice(this.ib.lastLevelIndex(t.index),0,t)}},{key:"visibleSibling",value:function(t,e){if(!t)return null;for(var n=this.findParent(t.index),a=this.container(n),o=a.indexOf(t)+e,s=a[o];Re(s);){if(s.visible)return s;s=a[o+=e]}return this.visibleSibling(n,e)}}]),i}(),CC=function(){var i=function(){function r(t){var n,e=this;p(this,r),this.localization=t,this.expands=new Ot,this.moves=new Ot,this.checks=new Ot,this.selects=new Ot,this.loadMore=new Ot,this.navigable=!0,this.actions=(De(n={},J.ArrowUp,function(){return e.activate(e.model.findVisiblePrev(e.focusableItem),!0)}),De(n,J.ArrowDown,function(){return e.activate(e.model.findVisibleNext(e.focusableItem),!0)}),De(n,J.ArrowLeft,function(){return!e.isLoadMoreButton&&e.expand({expand:e.localization.rtl,intercept:e.localization.rtl?e.moveToFirstVisibleChild:e.moveToParent})}),De(n,J.ArrowRight,function(){return!e.isLoadMoreButton&&e.expand({expand:!e.localization.rtl,intercept:e.localization.rtl?e.moveToParent:e.moveToFirstVisibleChild})}),De(n,J.Home,function(){return e.activate(e.model.firstVisibleNode(),!0)}),De(n,J.End,function(){return e.activate(e.model.lastVisibleNode(),!0)}),De(n,J.Enter,function(){return e.handleEnter()}),De(n,J.Space,function(){return e.handleSpace()}),n),this.isFocused=!1,this.shouldScroll=!1,this._model=new iQe,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return v(r,[{key:"model",get:function(){return this._model},set:function(e){this._model=e}},{key:"activeIndex",get:function(){return yu(this.activeItem)||null}},{key:"isActiveExpanded",get:function(){return this.activeItem&&this.activeItem.children.length>0}},{key:"isLoadMoreButton",get:function(){return this.activeItem&&this.activeItem.loadMoreButton}},{key:"focusableItem",get:function(){return this.activeItem||this.model.firstFocusableNode()}},{key:"activate",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!this.navigable||!e||this.isActive(yu(e))||(this.isFocused=!0,this.activeItem=e||this.activeItem,this.shouldScroll=n,this.notifyMove())}},{key:"activateParent",value:function(e){this.activate(this.model.findParent(e))}},{key:"activateIndex",value:function(e){!e||this.activate(this.model.findNode(e))}},{key:"activateClosest",value:function(e){!e||yu(this.focusableItem)!==e||(this.activeItem=this.model.closestNode(e),this.notifyMove())}},{key:"activateFocusable",value:function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())}},{key:"deactivate",value:function(){!this.navigable||!this.isFocused||(this.isFocused=!1,this.notifyMove())}},{key:"checkIndex",value:function(e){this.isDisabled(e)||this.checks.next(e)}},{key:"selectIndex",value:function(e){this.isDisabled(e)||this.selects.next(e)}},{key:"notifyLoadMore",value:function(e){!Re(e)||this.loadMore.next(e)}},{key:"isActive",value:function(e){return!!e&&this.isFocused&&this.activeIndex===e}},{key:"isFocusable",value:function(e){return yu(this.focusableItem)===e}},{key:"isDisabled",value:function(e){return this.model.findNode(e).disabled}},{key:"registerItem",value:function(e,n,a){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=this.model.findNode(n);Re(l)&&(this.model.unregisterItem(l.id,l.index),this.isActive(n)&&this.deactivate()),this.model.registerItem(e,n,a,o,s)}},{key:"unregisterItem",value:function(e,n){this.isActive(n)&&this.activateParent(n),this.model.unregisterItem(e,n)}},{key:"move",value:function(e){if(this.navigable){var n=this.actions[e.keyCode];!n||(n(),e.preventDefault())}}},{key:"expand",value:function(e){var n=e.expand,a=e.intercept,o=yu(this.activeItem);!o||a(o)||this.notifyExpand(n)}},{key:"moveToParent",value:function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(yu(this.activeItem))),!0)}},{key:"moveToFirstVisibleChild",value:function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(yu(this.activeItem))),!0)}},{key:"notifyExpand",value:function(e){this.expands.next(this.navigationState(e))}},{key:"notifyMove",value:function(){this.moves.next(this.navigationState())}},{key:"navigationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{expand:e,index:this.activeIndex,isFocused:this.isFocused,shouldScroll:this.shouldScroll}}},{key:"handleEnter",value:function(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))}},{key:"handleSpace",value:function(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),IP=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"childrenLoaded",value:function(e,n){this.changes.next({item:e,children:n})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),NP=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewNodeTemplate",""]]}),i}(),FP=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewLoadMoreButtonTemplate",""]]}),i}(),ku=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),bC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),r1=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"isFirstSelected",value:function(e){return this.firstIndex===e}},{key:"setFirstSelected",value:function(e,n){this.firstIndex===e&&!1===n?this.firstIndex=null:!this.firstIndex&&n&&(this.firstIndex=e)}},{key:"select",value:function(e,n){this.changes.next({dataItem:n,index:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rQe=/\d+$/,a1=function(){var i=function(){function r(){p(this,r),this.map=new Map}return v(r,[{key:"reset",value:function(){this.map.clear()}},{key:"registerItem",value:function(e,n){var a={children:[],item:e,parent:this.item(yu(n))};this.map.set(e.index,a)}},{key:"registerChildren",value:function(e,n){var a=this.item(e);!a||(a.children=n)}},{key:"unregisterItem",value:function(e,n){var a=this.item(e);a&&a.item.dataItem===n&&(this.map.delete(e),a.parent&&a.parent.children&&(a.parent.children=a.parent.children.filter(function(o){return o.dataItem!==n})))}},{key:"replaceItem",value:function(e,n,a){!n||(this.unregisterItem(e,n.dataItem),this.registerItem(n,a),this.addToParent(n,a))}},{key:"itemLookup",value:function(e){var n=this.item(e);return n?{children:this.mapChildren(n.children),item:n.item,parent:n.parent}:null}},{key:"hasItem",value:function(e){return this.map.has(e)}},{key:"item",value:function(e){return this.map.get(e)||null}},{key:"addToParent",value:function(e,n){if(n){var a=this.item(n.index),o=parseInt(rQe.exec(e.index)[0],10);a.children=a.children||[],a.children.splice(o,0,e)}}},{key:"mapChildren",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.map(function(a){var o=e.item(a.index),s=o.item,l=o.parent;return{children:e.mapChildren(o.children),item:s,parent:l}})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),qie=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.changeDetector=n,this.id="_".concat(qn()),this.tabindex=0,this.size="medium",this.checkStateChange=new O,this.checkState="none"}return v(r,[{key:"classWrapper",get:function(){return!0}},{key:"indeterminate",get:function(){return"indeterminate"===this.checkState}},{key:"checked",get:function(){return"checked"===this.checkState}},{key:"checkBoxClasses",get:function(){return"k-checkbox ".concat(this.size?n1("checkbox",this.size):""," k-rounded-md")}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")}},{key:"ngDoCheck",value:function(){this.checkState=this.isChecked(this.node,this.index)}},{key:"handleChange",value:function(e){var n=e.target.checked?"checked":"none";this.checkState=n,this.changeDetector.detectChanges(),this.checkStateChange.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-checkbox"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-checkbox-wrapper",e.classWrapper)},inputs:{id:"id",isChecked:"isChecked",node:"node",index:"index",labelText:"labelText",tabindex:"tabindex",size:"size"},outputs:{checkStateChange:"checkStateChange"},decls:3,vars:8,consts:[["type","checkbox",3,"id","checked","indeterminate","tabindex","change"],["tabindex","-1",1,"k-checkbox-label",3,"for"]],template:function(t,e){1&t&&(A(0,"input",0),Q("change",function(a){return e.handleChange(a)}),x(),A(1,"label",1),te(2),x()),2&t&&(Ar(e.checkBoxClasses),y("id",e.id)("checked",e.checked)("indeterminate",e.indeterminate)("tabindex",e.tabindex),k(1),y("for",e.id),k(1),at(e.labelText))},encapsulation:2}),i}(),Xie=function(r,t){return{dataItem:t,index:r}},aQe=0,Zie=function(){var i=function(){function r(t,e,n,a,o,s,l){p(this,r),this.element=t,this.expandService=e,this.navigationService=n,this.selectionService=a,this.lookupService=o,this.renderer=s,this.ib=l,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=aQe++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}return v(r,[{key:"isChecked",set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"}},{key:"isExpanded",get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e}},{key:"isSelected",get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e}},{key:"isButton",get:function(){return"button"===this.role}},{key:"treeItem",get:function(){return Xie(this.index,this.dataItem)}},{key:"parentTreeItem",get:function(){return this.parentDataItem?Xie(this.parentIndex,this.parentDataItem):null}},{key:"ngOnInit",value:function(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()}},{key:"ngOnChanges",value:function(e){var n=e.index,a=e.isDisabled;Ki(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),a&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(n),Ki(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()}},{key:"ngOnDestroy",value:function(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce(function(e,n){return n.unsubscribe(),e},[])}},{key:"subscribe",value:function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe(function(n){e.updateTabIndex(),e.focusItem(n.shouldScroll)}),this.navigationService.expands.pipe(Ue(function(n){return n.index===e.index&&!e.isDisabled})).subscribe(function(n){return e.expand(n.expand)})]}},{key:"registerNavigationItem",value:function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()}},{key:"activateItem",value:function(){if(!this.isDisabled){var e=this.navigationService,n=this.selectionService,a=this.index;n.setFirstSelected(a,this.isSelected),!e.isActive(a)&&n.isFirstSelected(a)&&e.activateIndex(a)}}},{key:"expand",value:function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)}},{key:"isFocusable",value:function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)}},{key:"focusItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus({preventScroll:!e})}},{key:"moveLookupItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.dataItem,a=e.index,o=e.parentDataItem,s=e.parentIndex;if((!a||!a.firstChange)&&(n||a||o||s)){var l=(a||{}).previousValue||this.index;this.lookupService.replaceItem(l,this.treeItem,this.parentTreeItem)}}},{key:"moveNavigationItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.currentValue,a=e.firstChange,o=e.previousValue;!a&&Re(n)&&Re(o)&&(this.navigationService.unregisterItem(this.id,o),this.navigationService.registerItem(this.id,n,this.isDisabled,this.isButton))}},{key:"updateNodeAvailability",value:function(){var e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.unregisterItem(this.id,this.index),e.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)}},{key:"setAriaAttributes",value:function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)}},{key:"setDisabledClass",value:function(){this.setClass("k-disabled",this.isDisabled)}},{key:"setClass",value:function(e,n){this.renderer[n?"addClass":"removeClass"](this.element.nativeElement,e)}},{key:"updateTabIndex",value:function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")}},{key:"setAttribute",value:function(e,n){Re(n)?this.renderer.setAttribute(this.element.nativeElement,e,n):this.renderer.removeAttribute(this.element.nativeElement,e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(yC),m(CC),m(r1),m(a1),m(Ee),m(em))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewItem",""]],inputs:{dataItem:"dataItem",index:"index",parentDataItem:"parentDataItem",parentIndex:"parentIndex",role:"role",loadOnDemand:"loadOnDemand",checkable:"checkable",selectable:"selectable",expandable:"expandable",isChecked:"isChecked",isDisabled:"isDisabled",isVisible:"isVisible",isExpanded:"isExpanded",isSelected:"isSelected"},features:[Ie]}),i}(),Yie=function(){var i=function(){function r(t,e,n){p(this,r),this.expandService=t,this.loadingService=e,this.cd=n,this._loading=!1}return v(r,[{key:"loading",get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()}},{key:"ngOnInit",value:function(){var e=this,n=this.loadingService.changes.pipe(Ue(function(a){return a===e.index}));this.subscription=this.expandService.changes.pipe(Ue(function(a){return a.index===e.index}),At(function(a){!a.expand&&e.loading&&(e.loading=!1)}),Ue(function(a){return a.expand}),Nn(function(a){return lt(a).pipe(Dd(100),Qr(n))})).subscribe(function(){return e.loading=!0}),this.subscription.add(n.subscribe(function(){return e.loading=!1}))}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(yC),m(DP),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewLoading",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-i-loading",e.loading)},inputs:{index:["kendoTreeViewLoading","index"]}}),i}(),Qie=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.element=t,this.navigationService=e,this.selectionService=n,this.renderer=a,this.initialSelection=!1,this.isSelected=Gie,this.subscriptions=new Je,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(Ue(function(s){return s===o.index})).subscribe(function(s){return o.selectionService.select(s,o.dataItem)})),this.subscriptions.add(this.selectionService.changes.subscribe(function(){o.updateSelectionClass(o.isSelected(o.dataItem,o.index))}))}return v(r,[{key:"ngOnChanges",value:function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"updateFocusClass",value:function(){this.render(this.navigationService.isActive(this.index),"k-focus")}},{key:"updateSelectionClass",value:function(e){this.render(e,"k-selected")}},{key:"render",value:function(e,n){this.renderer[e?"addClass":"removeClass"](this.element.nativeElement,n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(CC),m(r1),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewItemContent",""]],inputs:{dataItem:"dataItem",index:"index",initialSelection:"initialSelection",isSelected:"isSelected"},features:[Ie]}),i}(),Jie="k-treeview-top",ere="k-treeview-mid",LP="k-treeview-bot",tre=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.expandService=t,this.loadingService=e,this.indexBuilder=n,this.treeViewLookupService=a,this.navigationService=o,this.nodeChildrenService=s,this.dataChangeNotification=l,this.changeDetectorRef=u,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.size="medium",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new Je,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return lt([])},this.hasChildren=function(){return!1}}return v(r,[{key:"moreNodesAvailable",get:function(){return!(!Re(this.loadMoreService)||0===this.data.length)&&this.pageSize0?this.pageSize:0):this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)}},{key:"loadMoreButtonIndex",get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null}},{key:"totalNodesCount",get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length}},{key:"hasTemplate",get:function(){return Re(this.nodeTemplateRef)}},{key:"expandNode",value:function(e,n,a){a?this.expandService.expand(e,n):this.expandService.collapse(e,n)}},{key:"checkNode",value:function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)}},{key:"nodeIndex",value:function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)}},{key:"nodeText",value:function(e){return yr(Hie(this.textField)?this.textField[0]:this.textField)(e)}},{key:"ngOnDestroy",value:function(){Re(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),Re(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()}},{key:"ngOnInit",value:function(){var e=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(Ue(function(n){return n===e.loadMoreButtonIndex})).subscribe(this.loadMoreNodes.bind(this)))}},{key:"ngOnChanges",value:function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))}},{key:"fetchChildren",value:function(e,n){var a=this;return this.children(e).pipe(cl(function(){return a.loadingService.notifyLoaded(n),po}),At(function(){return a.loadingService.notifyLoaded(n)}))}},{key:"nextFields",get:function(){return Hie(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]}},{key:"loadMoreNodes",value:function(){Re(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()}},{key:"setItemClasses",value:function(e,n){return 1===e?this.parentIndex?LP:"".concat(Jie," ").concat(LP):0===n?Jie:n>0&&n0){var a=e.loadMoreButtonIndex;e.pageSize+=n.length,e.data=e.data.concat(n),e.navigationService.isActive(a)&&(e.changeDetectorRef.detectChanges(),e.reselectItemAt(a))}}))}},{key:"setNodeChildren",value:function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)}},{key:"mapToTreeItem",value:function(e){var n=this;return this.parentIndex?e.map(function(a,o){return{dataItem:a,index:n.nodeIndex(o)}}):[]}},{key:"emitChildrenLoaded",value:function(e){if(this.parentIndex){var n=e.filter(function(a){return a.dataItem});this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},n)}}},{key:"subscribeToNodesChange",value:function(){var e=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(function(n){e.data=n,e.initialNodesLoaded=!0})}},{key:"reselectItemAt",value:function(e){!Re(e)||(this.navigationService.deactivate(),this.navigationService.activateIndex(e))}},{key:"registerLoadedNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(n),this.emitChildrenLoaded(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(yC),m(DP),m(em),m(a1),m(CC),m(IP),m(wP),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoTreeViewGroup",""]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("role",e.role),ue("k-treeview-group",e.kGroupClass))},inputs:{checkboxes:"checkboxes",expandIcons:"expandIcons",disabled:"disabled",selectable:"selectable",touchActions:"touchActions",loadOnDemand:"loadOnDemand",trackBy:"trackBy",nodes:"nodes",textField:"textField",parentDataItem:"parentDataItem",parentIndex:"parentIndex",nodeTemplateRef:"nodeTemplateRef",loadMoreButtonTemplateRef:"loadMoreButtonTemplateRef",loadMoreService:"loadMoreService",size:"size",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isVisible:"isVisible",isSelected:"isSelected",children:"children",hasChildren:"hasChildren"},features:[Ie],attrs:hYe,decls:2,vars:3,consts:[["class","k-treeview-item","kendoTreeViewItem","",3,"k-display-none","dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-treeview-item","kendoTreeViewItem","","role","button",3,"k-treeview-load-more-checkboxes-container","selectable","checkable","expandable","index","parentDataItem","parentIndex",4,"ngIf"],["kendoTreeViewItem","",1,"k-treeview-item",3,"dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected"],[3,"ngClass"],["class","k-treeview-toggle",3,"kendoTreeViewLoading","click",4,"ngIf"],[3,"size","node","index","isChecked","tabindex","checkStateChange",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf",3,"dataItem","index","initialSelection","isSelected"],[1,"k-treeview-leaf-text"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy",4,"ngIf"],[1,"k-treeview-toggle",3,"kendoTreeViewLoading","click"],[1,"k-icon"],[3,"size","node","index","isChecked","tabindex","checkStateChange"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy"],["kendoTreeViewItem","","role","button",1,"k-treeview-item",3,"selectable","checkable","expandable","index","parentDataItem","parentIndex"],[1,"k-treeview-bot"],["class","k-icon k-i-loading k-i-expand",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf","k-treeview-load-more-button",3,"index"],[4,"ngIf"],[1,"k-icon","k-i-loading","k-i-expand"]],template:function(t,e){1&t&&(T(0,kYe,10,30,"li",0),T(1,EYe,7,14,"li",1)),2&t&&(y("ngForOf",e.data)("ngForTrackBy",e.trackBy),k(1),y("ngIf",e.initialNodesLoaded&&e.moreNodesAvailable))},directives:[qie,i,gn,Zie,Nt,qe,Yie,Qie,kd,Gp,En,KR],encapsulation:2,data:{animation:[ef("toggle",[iu("void => *",[Ft({height:0}),Ai("0.1s ease-in",Ft({height:"*"}))]),iu("* => void",[Ft({height:"*"}),Ai("0.1s ease-in",Ft({height:0}))])])]}}),i}(),uQe=[yC,em,a1,DP,IP,CC,r1,wP,Y,{provide:Dt,useValue:"kendo.treeview"},{provide:ku,useExisting:ye(function(){return is})},{provide:bC,useExisting:ye(function(){return is})}],is=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){var f=this;p(this,r),this.element=t,this.changeDetectorRef=e,this.expandService=n,this.navigationService=a,this.nodeChildrenService=o,this.selectionService=s,this.treeViewLookupService=l,this.ngZone=u,this.renderer=c,this.dataChangeNotification=d,this.localization=h,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return f.data},this.childrenLoaded=new O,this.onBlur=new O,this.onFocus=new O,this.expand=new O,this.collapse=new O,this.nodeDragStart=new O,this.nodeDrag=new O,this.filterStateChange=new O,this.nodeDrop=new O,this.nodeDragEnd=new O,this.addItem=new O,this.removeItem=new O,this.checkedChange=new O,this.selectionChange=new O,this.filterChange=new O,this.nodeClick=new O,this.nodeDblClick=new O,this.trackBy=KYe,this.isDisabled=zYe,this.isVisible=Vie,this.navigable=!0,this.children=function(){return lt([])},this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new xi([]),this._animate=!0,this._size="medium",this.subscriptions=new Je,this.domSubscriptions=[],jt(GYe)}return v(r,[{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"animate",get:function(){return!this._animate},set:function(e){this._animate=e}},{key:"nodeTemplateRef",get:function(){return this._nodeTemplateRef||this.nodeTemplateQuery},set:function(e){this._nodeTemplateRef=e}},{key:"loadMoreButtonTemplateRef",get:function(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery},set:function(e){this._loadMoreButtonTemplateRef=e}},{key:"nodes",get:function(){return this.data.value},set:function(e){this.data.next(e||[]),this.dataChangeNotification.notify()}},{key:"hasChildren",get:function(){return this._hasChildren||VYe},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}},{key:"isChecked",get:function(){return this._isChecked||UYe},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)}},{key:"isExpanded",get:function(){return this._isExpanded||HYe},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}},{key:"isSelected",get:function(){return this._isSelected||Gie},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";"none"!==this.size&&this.renderer.removeClass(this.element.nativeElement,n1("treeview",this.size)),this.renderer.addClass(this.element.nativeElement,n1("treeview",n)),this._size=e}},{key:"ngOnChanges",value:function(e){this.navigationService.navigable=Boolean(this.navigable),Ki(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(function(e){return e()})}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe(function(n){return e.childrenLoaded.emit(n)})),this.subscriptions.add(this.expandService.changes.subscribe(function(n){var a=n.index,o=n.dataItem;return n.expand?e.expand.emit({index:a,dataItem:o}):e.collapse.emit({index:a,dataItem:o})})),this.subscriptions.add(this.navigationService.checks.subscribe(function(n){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(n))})),this.subscriptions.add(this.selectionService.changes.subscribe(function(n){ut(e.selectionChange)&&e.ngZone.run(function(){e.selectionChange.emit(n)})})),this.element&&this.ngZone.runOutsideAngular(function(){e.attachDomHandlers()}),this.size&&this.renderer.addClass(this.element.nativeElement,n1("treeview",this.size))}},{key:"blur",value:function(){if(Ze()){var e=Wie(this.element);document.activeElement===e&&e.blur()}}},{key:"focus",value:function(e){var n=e||yu(this.navigationService.focusableItem);this.navigationService.activateIndex(n);var a=Wie(this.element);a&&a.focus()}},{key:"itemLookup",value:function(e){return this.treeViewLookupService.itemLookup(e)}},{key:"rebindChildren",value:function(){this.dataChangeNotification.notify()}},{key:"expandNode",value:function(e,n){this.expandService.expand(n,e)}},{key:"collapseNode",value:function(e,n){this.expandService.collapse(n,e)}},{key:"getNodePageSize",value:function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)}},{key:"setNodePageSize",value:function(e,n){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,n)}},{key:"preloadChildNodes",value:function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)}},{key:"attachDomHandlers",value:function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))}},{key:"focusHandler",value:function(e){var a,n=this;tv(e.target,".k-treeview-item")?a=e.target:Kie(e.target)||(a=nv(e.target)),a&&(this.navigationService.activateIndex(xP(e.target)),!this.isActive&&ut(this.onFocus)&&this.ngZone.run(function(){n.onFocus.emit()}),this.isActive=!0)}},{key:"blurHandler",value:function(e){var n=this;this.isActive&&tv(e.target,".k-treeview-item")&&(!e.relatedTarget||!tv(e.relatedTarget,".k-treeview-item")||!AP(e.relatedTarget,this.element.nativeElement))&&(this.navigationService.deactivate(),this.isActive=!1,ut(this.onBlur)&&this.ngZone.run(function(){n.onBlur.emit()}))}},{key:"clickHandler",value:function(e){var n=this,a=e.target;if(("contextmenu"!==e.type||ut(this.nodeClick))&&("click"!==e.type||ut(this.nodeClick)||ut(this.selectionChange)||jie(a))&&("dblclick"!==e.type||ut(this.nodeDblClick))&&!Kie(a)&&(function(r){if(!Ze())return null;for(var e=r;e&&!tv(e,".k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)e=e.parentNode;return e?tv(e,".k-treeview-leaf:not(.k-treeview-load-more-button)"):void 0}(a)||jie(a))&&AP(a,this.element.nativeElement)){var o=xP(nv(a));!o||this.navigationService.isDisabled(o)||this.ngZone.run(function(){var s=n.treeViewLookupService.itemLookup(o);if("click"===e.type){if(n.navigationService.model.findNode(o).loadMoreButton)return void n.navigationService.notifyLoadMore(o);n.navigationService.selectIndex(o)}("dblclick"===e.type?n.nodeDblClick:n.nodeClick).emit({item:s.item,originalEvent:e,type:e.type})})}}},{key:"keydownHandler",value:function(e){var n=this;this.isActive&&this.navigable&&this.ngZone.run(function(){n.navigationService.move(e)})}},{key:"verifyLoadMoreService",value:function(){if(xt()&&!Re(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See ".concat("http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/","."))}},{key:"registerLookupItems",value:function(e){var n=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Re(e)&&0!==e.length){var o=yu(a),s=e.map(function(l,u){return tQe(l,u,o)});Re(a)&&this.treeViewLookupService.registerChildren(o,s),s.forEach(function(l){n.treeViewLookupService.registerItem(l,a),n.hasChildren(l.dataItem)&&n.children(l.dataItem).subscribe(function(u){return n.registerLookupItems(u,l)})})}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(nt),m(yC),m(CC),m(IP),m(r1),m(a1),m(be),m(Ee),m(wP),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-treeview"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,NP,5),he(n,FP,5)),2&t&&(P(a=B())&&(e.nodeTemplateQuery=a.first),P(a=B())&&(e.loadMoreButtonTemplateQuery=a.first))},viewQuery:function(t,e){var n;1&t&&ge(TYe,7,ei),2&t&&P(n=B())&&(e.assetsContainer=n.first)},hostVars:5,hostBindings:function(t,e){2&t&&(ie("role",e.role)("dir",e.direction),ZM("@.disabled",e.animate),ue("k-treeview",e.classNames))},inputs:{filterInputPlaceholder:"filterInputPlaceholder",animate:"animate",nodeTemplateRef:["nodeTemplate","nodeTemplateRef"],loadMoreButtonTemplateRef:["loadMoreButtonTemplate","loadMoreButtonTemplateRef"],trackBy:"trackBy",nodes:"nodes",textField:"textField",hasChildren:"hasChildren",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isSelected:"isSelected",isVisible:"isVisible",navigable:"navigable",children:"children",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",size:"size"},outputs:{childrenLoaded:"childrenLoaded",onBlur:"blur",onFocus:"focus",expand:"expand",collapse:"collapse",nodeDragStart:"nodeDragStart",nodeDrag:"nodeDrag",filterStateChange:"filterStateChange",nodeDrop:"nodeDrop",nodeDragEnd:"nodeDragEnd",addItem:"addItem",removeItem:"removeItem",checkedChange:"checkedChange",selectionChange:"selectionChange",filterChange:"filterChange",nodeClick:"nodeClick",nodeDblClick:"nodeDblClick"},exportAs:["kendoTreeView"],features:[de(uQe),Ie],decls:4,vars:20,consts:[["class","k-treeview-filter",4,"ngIf"],["kendoTreeViewGroup","","role","group",1,"k-treeview-lines",3,"size","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","textField","nodes","loadMoreService","trackBy"],["assetsContainer",""],[1,"k-treeview-filter"],[3,"size","value","clearButton","placeholder","valueChange"],["kendoTextBoxPrefixTemplate",""],[1,"k-input-icon","k-icon","k-i-search"]],template:function(t,e){1&t&&(T(0,xYe,3,4,"span",0),z(1,"ul",1),Wt(2,null,2)),2&t&&(y("ngIf",e.filterable),k(1),y("size",e.size)("loadOnDemand",e.loadOnDemand)("checkboxes",e.checkboxes)("expandIcons",e.expandIcons)("selectable",e.selectable)("touchActions",e.touchActions)("children",e.children)("hasChildren",e.hasChildren)("isChecked",e.isChecked)("isDisabled",e.isDisabled)("isExpanded",e.isExpanded)("isSelected",e.isSelected)("isVisible",e.isVisible)("nodeTemplateRef",null==e.nodeTemplateRef?null:e.nodeTemplateRef.templateRef)("loadMoreButtonTemplateRef",null==e.loadMoreButtonTemplateRef?null:e.loadMoreButtonTemplateRef.templateRef)("textField",e.textField)("nodes",e.fetchNodes)("loadMoreService",e.loadMoreService)("trackBy",e.trackBy))},directives:[OZe,tre,qe,cie],encapsulation:2}),i}();!function gQe(i){var r,t=!1}(function(){if(!Ze()||!Re(document.body))return!1;var r=document.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='
    child
    '),document.body.appendChild(r);var t=10!==r.children[0].getBoundingClientRect().top;return document.body.removeChild(r),t}),new RegExp("(auto|scroll)"),new em,new em;var Sre,wre,Dre,Ere,Tre,Are,xre,Mre,Rre,IQe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),NQe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,IQe,_C]]}),i}(),FQe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[NQe]]}),i}(),LQe=["input"],PQe=function(r,t){return{focus:r,blur:t}},BQe=["content"],GQe=["list"],VQe=["virtualContainer"];function UQe(i,r){}var Cu=function(r,t){return{templateRef:r,$implicit:t}};function zQe(i,r){if(1&i&&T(0,UQe,0,0,"ng-template",10),2&i){var t=D(2);y("templateContext",ln(1,Cu,t.fixedGroupTemplate.templateRef,t.currentGroup))}}function HQe(i,r){if(1&i&&(A(0,"span"),te(1),x()),2&i){var t=D(2);Ar(t.listGroupStickyHeaderTextClass),k(1),at(t.currentGroup)}}var Vre=function(r,t,e){return{"height.px":r,"minHeight.px":t,boxSizing:e}};function KQe(i,r){if(1&i&&(A(0,"div",8),T(1,zQe,1,4,null,5),T(2,HQe,2,3,"ng-template",9),x()),2&i){var t=D();Ar(t.listGroupStickyHeaderClass),y("ngStyle",va(5,Vre,null==t.virtual?null:t.virtual.itemHeight,null==t.virtual?null:t.virtual.itemHeight,t.virtual?"border-box":"inherit")),k(1),y("ngIf",t.fixedGroupTemplate),k(1),y("ngIf",!t.fixedGroupTemplate)}}function jQe(i,r){if(1&i){var t=xe();A(0,"input",14),Q("change",function(o){re(t);var s=D().index;return D(2).onCheckedChange(o,s)}),x()}if(2&i){var e=D().index,n=D(2);y("ngClass",n.checkboxClasses)("checked",n.isChecked(e))}}function WQe(i,r){}function $Qe(i,r){if(1&i&&T(0,WQe,0,0,"ng-template",10),2&i){var t=D().$implicit,e=D(2);y("templateContext",ln(1,Cu,e.template.templateRef,t))}}function qQe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D().$implicit,e=D(2);k(1),at(e.getText(t))}}var Ure=function(r,t){return{"k-disabled":r,"k-table-alt-row":t}};function XQe(i,r){if(1&i&&(A(0,"li",12),T(1,jQe,1,2,"input",13),T(2,$Qe,1,4,null,5),T(3,qQe,2,1,"ng-template",9),x()),2&i){var t=r.$implicit,e=r.index,n=D(2);Ar(n.listItemClass),y("checkboxes",n.checkboxes)("height",null==n.virtual?null:n.virtual.itemHeight)("index",e+n.startFrom)("multipleSelection",n.multipleSelection)("ngClass",ln(12,Ure,n.isDisabled(e),n.isAltRow(e))),ie("id",n.optionPrefix+"-"+n.getValue(t))("tabIndex",-1),k(1),y("ngIf",n.checkboxes.enabled),k(1),y("ngIf",n.template),k(1),y("ngIf",!n.template)}}function ZQe(i,r){1&i&&T(0,XQe,4,15,"ng-template",11),2&i&&y("ngForOf",D().data)}function YQe(i,r){}function QQe(i,r){if(1&i&&T(0,YQe,0,0,"ng-template",10),2&i){var t=D(2).$implicit,e=D(2);y("templateContext",ln(1,Cu,e.groupTemplate.templateRef,t.value))}}function JQe(i,r){1&i&&te(0),2&i&&at(D(2).$implicit.value)}function eJe(i,r){if(1&i&&(A(0,"li",18)(1,"span"),T(2,QQe,1,4,null,5),T(3,JQe,1,1,"ng-template",9),x()()),2&i){var t=D(),e=t.index,n=t.$implicit,a=D(2);Ar(a.listGroupItemClass),ue("k-table-alt-row",a.isAltRow(e-1)),y("ngStyle",va(12,Vre,null==a.virtual?null:a.virtual.itemHeight,null==a.virtual?null:a.virtual.itemHeight,a.virtual?"border-box":"inherit")),ie("group-index",n.index)("id",a.optionPrefix+"-"+a.getValue(n.value))("tabIndex",-1),k(1),Ar(a.listGroupItemTextClass),k(1),y("ngIf",a.groupTemplate),k(1),y("ngIf",!a.groupTemplate)}}function tJe(i,r){}function nJe(i,r){if(1&i&&T(0,tJe,0,0,"ng-template",10),2&i){var t=D(2).$implicit,e=D(2);y("templateContext",ln(1,Cu,e.template.templateRef,t.value))}}function iJe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D(2).$implicit,e=D(2);k(1),at(e.getText(t.value))}}function rJe(i,r){if(1&i&&(A(0,"li",19),T(1,nJe,1,4,null,5),T(2,iJe,2,1,"ng-template",9),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D(2);Ar(a.listItemClass),y("height",null==a.virtual?null:a.virtual.itemHeight)("index",e.offsetIndex)("multipleSelection",a.multipleSelection)("ngClass",ln(11,Ure,a.isDisabled(e.offsetIndex),a.isAltRow(n-1))),ie("absolute-index",e.index)("id",a.optionPrefix+"-"+a.getValue(e.value))("tabIndex",-1),k(1),y("ngIf",a.template),k(1),y("ngIf",!a.template)}}function aJe(i,r){if(1&i&&(T(0,eJe,4,16,"li",16),T(1,rJe,3,14,"li",17)),2&i){var t=r.$implicit;y("ngIf",t.header&&t.index>0),k(1),y("ngIf",!t.header)}}function oJe(i,r){1&i&&T(0,aJe,2,2,"ng-template",11),2&i&&y("ngForOf",D().data)}function sJe(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().listResize.emit()}),x()}}function lJe(i,r){if(1&i){var t=xe();A(0,"div",21,22)(2,"div")(3,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().listResize.emit()}),x()()()}if(2&i){var e=D();k(2),Qe("height",e.scrollHeight,"px")}}var im=["container"],rm=["popupTemplate"],l1=["optionsList"];function uJe(i,r){if(1&i){var t=xe();A(0,"span",8),Q("click",function(a){return re(t),D().clearValue(a)})("mousedown",function(a){return a.preventDefault()}),z(1,"span",9),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),ie("title",e.messageFor("clearTitle"))}}function cJe(i,r){1&i&&z(0,"span",10)}function dJe(i,r){}var fr=function(r){return{templateRef:r}};function hJe(i,r){if(1&i&&T(0,dJe,0,0,"ng-template",15),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function fJe(i,r){}function vJe(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function pJe(i,r){if(1&i&&(A(0,"div",16),T(1,fJe,0,0,"ng-template",17),T(2,vJe,2,1,"ng-template",6),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,null==t.noDataTemplate?null:t.noDataTemplate.templateRef)),k(1),y("ngIf",!t.noDataTemplate)}}function gJe(i,r){}function mJe(i,r){if(1&i&&T(0,gJe,0,0,"ng-template",15),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function _Je(i,r){if(1&i){var t=xe();T(0,hJe,1,3,null,11),A(1,"kendo-list",12,13),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(3,pJe,3,5,"div",14),T(4,mJe,1,3,null,11)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.valueField)("valueField",e.valueField)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function yJe(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",18),Q("resize",function(){return re(t),D().onResize()}),x()}}var kJe=["select"],SC=function(r){return{mousedown:r}};function CJe(i,r){if(1&i){var t=xe();A(0,"span",10),Q("click",function(a){return re(t),D().clearValue(a)}),z(1,"span",11),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),y("kendoEventsOutsideAngular",ot(4,SC,e.preventEventDefault)),ie("title",e.messageFor("clearTitle"))}}function bJe(i,r){}function SJe(i,r){if(1&i&&T(0,bJe,0,0,"ng-template",16),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function wJe(i,r){}function DJe(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function EJe(i,r){if(1&i&&(A(0,"div",17),T(1,wJe,0,0,"ng-template",18),T(2,DJe,2,1,"ng-template",8),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function TJe(i,r){}function AJe(i,r){if(1&i&&T(0,TJe,0,0,"ng-template",16),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function xJe(i,r){if(1&i){var t=xe();T(0,SJe,1,3,null,12),A(1,"kendo-list",13,14),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(3,EJe,3,5,"div",15),T(4,AJe,1,3,null,12)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function MJe(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",19),Q("resize",function(){return re(t),D().onResize()}),x()}}function RJe(i,r){}function OJe(i,r){if(1&i&&T(0,RJe,0,0,"ng-template",9),2&i){var t=D();y("templateContext",ln(1,Cu,t.valueTemplate.templateRef,t.dataItem))}}function IJe(i,r){1&i&&te(0),2&i&&at(D().getText())}function NJe(i,r){if(1&i){var t=xe();A(0,"div",13),Q("click",function(a){return a.stopImmediatePropagation()}),A(1,"span",14),z(2,"span",15),A(3,"input",16),Q("ngModelChange",function(a){return re(t),D(2).filterText=a})("keydown",function(a){return re(t),D(2).keydown(a)})("input",function(a){return re(t),D(2).handleFilter(a)})("focus",function(){return re(t),D(2).onFilterFocus()})("blur",function(){return re(t),D(2).blurFilterInput()}),x()()()}if(2&i){var e=D(2);k(1),y("ngClass",e.filterInputClasses),k(2),y("filterInput",e.isFocused&&!e.touchEnabled)("dir",e.direction)("ngModel",e.filterText),ie("aria-owns",e.ariaOwns)("aria-activedescendant",e.ariaActivedescendant)("aria-label",e.noDataLabel)}}var zre=function(r){return{"k-disabled":r}};function FJe(i,r){if(1&i&&(A(0,"div",17)(1,"div",18),te(2),x()()),2&i){var t=D(2);y("ngClass",t.optionLabelSizeClass),k(1),y("ngClass",ot(4,zre,t.isDisabledDefaultItem))("index",-1),k(1),Pt(" ",t.getDefaultItemText()," ")}}function LJe(i,r){}function PJe(i,r){if(1&i&&(A(0,"div",17)(1,"div",18),T(2,LJe,0,0,"ng-template",9),x()()),2&i){var t=D(2);y("ngClass",t.optionLabelSizeClass),k(1),y("ngClass",ot(4,zre,t.isDisabledDefaultItem))("index",-1),k(1),y("templateContext",ln(6,Cu,t.itemTemplate.templateRef,t.defaultItem))}}function BJe(i,r){}function GJe(i,r){if(1&i&&T(0,BJe,0,0,"ng-template",9),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function VJe(i,r){}function UJe(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function zJe(i,r){if(1&i&&(A(0,"div",19),T(1,VJe,0,0,"ng-template",20),T(2,UJe,2,1,"ng-template",4),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function HJe(i,r){}function KJe(i,r){if(1&i&&T(0,HJe,0,0,"ng-template",9),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function jJe(i,r){if(1&i){var t=xe();T(0,NJe,4,7,"ng-template",4),T(1,FJe,3,6,"ng-template",4),T(2,PJe,3,9,"ng-template",4),T(3,GJe,1,3,null,3),A(4,"kendo-list",10,11),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(6,zJe,3,5,"div",12),T(7,KJe,1,3,null,3)}if(2&i){var e=D();y("ngIf",e.filterable),k(1),y("ngIf",e.defaultItem&&!e.itemTemplate),k(1),y("ngIf",e.defaultItem&&e.itemTemplate),k(1),y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("template",e.itemTemplate)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function WJe(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",21),Q("resize",function(){return re(t),D().onResize()}),x()}}function $Je(i,r){}function qJe(i,r){1&i&&T(0,$Je,0,0,"ng-template")}function XJe(i,r){}function ZJe(i,r){if(1&i&&T(0,XJe,0,0,"ng-template",12),2&i){var t=D(2).$implicit,e=D();y("templateContext",ln(1,Cu,e.groupTemplate.templateRef,t))}}function YJe(i,r){if(1&i&&te(0),2&i){var t=D(2).$implicit;Jl("",t.length," ",1===t.length?"item":"items"," selected")}}function QJe(i,r){if(1&i&&(A(0,"span",9),T(1,ZJe,1,4,null,10),T(2,YJe,1,2,"ng-template",11),x()),2&i){var t=D(2);k(1),y("ngIf",t.groupTemplate),k(1),y("ngIf",!t.groupTemplate)}}function JJe(i,r){}function eet(i,r){if(1&i&&T(0,JJe,0,0,"ng-template",12),2&i){var t=D(2).$implicit,e=D();y("templateContext",ln(1,Cu,e.template.templateRef,t))}}function tet(i,r){if(1&i&&te(0),2&i){var t=D(2),e=t.$implicit,n=t.index,a=D();at(a.tagProp(e,a.textField,n))}}function net(i,r){if(1&i&&(A(0,"span",9),T(1,eet,1,4,null,10),T(2,tet,1,1,"ng-template",11),x()),2&i){var t=D(2);k(1),y("ngIf",t.template),k(1),y("ngIf",!t.template)}}var iet=function(r,t,e,n,a,o,s,l,u,c,d,h){return{"k-focus":r,"k-disabled":t,"k-chip-sm":e,"k-chip-md":n,"k-chip-lg":a,"k-rounded-sm":o,"k-rounded-md":s,"k-rounded-lg":l,"k-rounded-full":u,"k-chip-solid k-chip-solid-base":c,"k-chip-flat k-chip-flat-base":d,"k-chip-outline k-chip-outline-base":h}};function ret(i,r){if(1&i){var t=xe();A(0,"div",1)(1,"span",2),T(2,qJe,1,0,null,3),T(3,QJe,3,2,"ng-template",null,4,$n),T(5,net,3,2,"ng-template",null,5,$n),x(),A(7,"span",6)(8,"span",7)(9,"span",8),Q("mousedown",function(u){var c=re(t),d=c.$implicit,h=c.index;return D().deleteTag(u,d,h)}),x()()()()}if(2&i){var e=r.$implicit,n=r.index,a=Yt(4),o=Yt(6),s=D();y("ngClass",lR(7,iet,[n===s.focused,s.isTagDisabled(e,n),"small"===s.size,"medium"===s.size,"large"===s.size,"small"===s.rounded,"medium"===s.rounded,"large"===s.rounded,"full"===s.rounded,"solid"===s.fillMode,"flat"===s.fillMode,"outline"===s.fillMode])),ie("id",s.itemId(e,n))("aria-hidden",s.tagAriaHidden(n)),k(2),y("ngIf",s.isGroupTag(e))("ngIfThen",a)("ngIfElse",o),k(6),ie("aria-hidden",n!==s.focused)}}var aet=["*"];function oet(i,r){if(1&i){var t=xe();A(0,"span",9),Q("mousedown",function(a){return re(t),D().clearAll(a)}),z(1,"span",10),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),ie("title",e.messageFor("clearTitle"))}}function set(i,r){1&i&&z(0,"span",11)}function uet(i,r){}function cet(i,r){if(1&i&&T(0,uet,0,0,"ng-template",17),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function det(i,r){}function het(i,r){if(1&i&&T(0,det,0,0,"ng-template",17),2&i){var t=D(3);y("templateContext",ln(1,Cu,t.customItemTemplate.templateRef,t.text))}}function fet(i,r){1&i&&te(0),2&i&&at(D(3).text)}function vet(i,r){if(1&i&&(A(0,"div",18)(1,"div",19),T(2,het,1,4,null,20),T(3,fet,1,1,"ng-template",null,21,$n),z(5,"span",22),x()()),2&i){var t=Yt(4),e=D(2);y("ngClass",e.customItemSizeClass),k(1),y("multipleSelection",!0)("index",-1),k(1),y("ngIf",e.customItemTemplate)("ngIfElse",t)}}function pet(i,r){}function get(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function met(i,r){if(1&i&&(A(0,"div",23),T(1,pet,0,0,"ng-template",24),T(2,get,2,1,"ng-template",7),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function _et(i,r){}function yet(i,r){if(1&i&&T(0,_et,0,0,"ng-template",17),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function ket(i,r){if(1&i){var t=xe();T(0,cet,1,3,null,12),T(1,vet,6,5,"div",13),A(2,"kendo-list",14,15),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(4,met,3,5,"div",16),T(5,yet,1,3,null,12)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("ngIf",e.allowCustom&&e.text),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("height",e.listHeight)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("show",e.isOpen)("multipleSelection",!0)("virtual",e.virtual)("checkboxes",e.checkboxes),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function Cet(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",25),Q("resize",function(){return re(t),D().onResize()}),x()}}var hae,u1={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652188959,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},fe=function(r){return null!=r},ro=function(){var t,e,r="";for(t=0;t<32;t++)e=16*Math.random()|0,(8===t||12===t||16===t||20===t)&&(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16);return r},Sa=function(r){return Array.isArray(r)},av=function(r){return fe(r)&&"object"==typeof r},jre=function(r){return"string"==typeof r&&0===r.length},c1=function(r){return Sa(r)&&r.every(function(t){return av(t)})},jP=function(r,t,e){var n=t.map(function(a){return fe(a)&&fe(rt(a,e))?rt(a,e):a});return r.reduce(function(a,o){var s=fe(o)&&fe(rt(o,e))?rt(o,e):o,l=n.indexOf(s);return-1!==l&&a.push(l),a},[])},rt=function(r,t){return fe(r)?fe(t)&&av(r)?yr(t)(r):r:null},Wre=function(r,t,e){if(!fe(r))return!1;var n=String(r);return e&&(n=n.toLowerCase()),0===n.indexOf(t)},am=function(r){return r.className.includes("ng-untouched")},ov=function(r){},Rtt=function(r,t){var e=r.matches||r.msMatchesSelector||r.webkitMatchesSelector;return!!e&&e.call(r,t)},wC=function(r,t,e){return r.nativeElement.contains(t)||e&&e.popupElement.contains(t)},Un=function(r,t){return{small:"k-".concat(r,"-sm"),medium:"k-".concat(r,"-md"),large:"k-".concat(r,"-lg")}[t]},vr=function(r){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[r]},aa=function(r,t){return{solid:"k-".concat(r,"-solid"),flat:"k-".concat(r,"-flat"),outline:"k-".concat(r,"-outline")}[t]},ah=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.valueChange=new O,this.onBlur=new O,this.onFocus=new O,this.onClick=new O,this.onNavigate=new O,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=t.rtl?"rtl":"ltr",this.renderer=e}return v(r,[{key:"userInput",get:function(){return this._userInput},set:function(e){this._userInput=e||""}},{key:"value",get:function(){return this.input.nativeElement.value}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()}},{key:"ariaExpanded",get:function(){return"combobox"===this.role?this.popupOpen:null}},{key:"ngOnInit",value:function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngOnChanges",value:function(e){if(this.input&&(e.userInput||e.suggestedText)){var a=this.input.nativeElement.selectionStart,o=(e.userInput&&e.userInput.previousValue?this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"":this._previousValue).length===a;this.writeInputValue(this.suggestedText?function(r,t){return r.concat(t.substr(t.toLowerCase().indexOf(r.toLowerCase())+r.length))}(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):o?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(a,a),this._previousValue=this.userInput}}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"writeInputValue",value:function(e){Ze()&&this.renderer.setProperty(this.input.nativeElement,"value",e)}},{key:"setInputSelection",value:function(e,n){if(Ze()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,n)}catch(a){}}},{key:"handleInput",value:function(e){var n=e.target.value;n!==this.userInput&&(this._previousValue=n,this.valueChange.emit(n))}},{key:"handleFocus",value:function(e){this.onFocus.emit(e)}},{key:"handleBlur",value:function(e){this.onBlur.emit(e)}},{key:"handleKeydown",value:function(e){[J.ArrowUp,J.ArrowDown,J.ArrowLeft,J.ArrowRight,J.Enter,J.Escape,J.Delete,J.Backspace,J.Home,J.End].indexOf(e.keyCode)>-1&&this.onNavigate.emit(e)}},{key:"focus",value:function(){Ze()&&this.input.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.input.nativeElement.blur()}},{key:"setInputSize",value:function(){var e=function(u){return u?u.length:0},n=this.input.nativeElement,a=e(this.placeholder),o=e(this.value),s=Math.max(a,o,1);this.renderer.setAttribute(n,"size",s.toString())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-searchbar"]],viewQuery:function(t,e){var n;1&t&&ge(LQe,7),2&t&&P(n=B())&&(e.input=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-searchbar",e.searchBarClass)},inputs:{id:"id",listId:"listId",tagListId:"tagListId",activeDescendant:"activeDescendant",noDataLabel:"noDataLabel",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",popupOpen:"popupOpen",role:"role",userInput:"userInput",suggestedText:"suggestedText",placeholder:"placeholder"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},features:[Ie],decls:2,vars:21,consts:[["autocomplete","off","aria-haspopup","listbox",3,"id","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope","input","keydown"],["input",""]],template:function(t,e){1&t&&(A(0,"input",0,1),Q("input",function(a){return e.handleInput(a)})("keydown",function(a){return e.handleKeydown(a)}),x()),2&t&&(Ar("k-input-inner"),y("id",e.id)("disabled",e.disabled)("readonly",e.readonly)("placeholder",e.placeholder)("kendoEventsOutsideAngular",ln(18,PQe,e.handleFocus,e.handleBlur))("scope",e),ie("tabIndex",e.tabIndex)("dir",e.direction)("role",e.role)("aria-disabled",e.disabled)("aria-readonly",e.readonly)("aria-expanded",e.ariaExpanded)("aria-owns",e.listId)("aria-describedby",e.tagListId)("aria-activedescendant",e.activeDescendant)("aria-label",e.noDataLabel))},directives:[qi],encapsulation:2}),i}(),DC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListItemTemplate",""],["","kendoComboBoxItemTemplate",""],["","kendoAutoCompleteItemTemplate",""],["","kendoMultiSelectItemTemplate",""]]}),i}(),sv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListHeaderTemplate",""],["","kendoComboBoxHeaderTemplate",""],["","kendoDropDownTreeHeaderTemplate",""],["","kendoMultiColumnComboBoxHeaderTemplate",""],["","kendoAutoCompleteHeaderTemplate",""],["","kendoMultiSelectHeaderTemplate",""],["","kendoMultiSelectTreeHeaderTemplate",""]]}),i}(),lv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListFooterTemplate",""],["","kendoComboBoxFooterTemplate",""],["","kendoDropDownTreeFooterTemplate",""],["","kendoMultiColumnComboBoxFooterTemplate",""],["","kendoAutoCompleteFooterTemplate",""],["","kendoMultiSelectFooterTemplate",""],["","kendoMultiSelectTreeFooterTemplate",""]]}),i}(),EC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListGroupTemplate",""],["","kendoComboBoxGroupTemplate",""],["","kendoMultiColumnComboBoxGroupTemplate",""],["","kendoAutoCompleteGroupTemplate",""],["","kendoMultiSelectGroupTemplate",""]]}),i}(),TC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListFixedGroupTemplate",""],["","kendoComboBoxFixedGroupTemplate",""],["","kendoMultiColumnComboBoxFixedGroupTemplate",""],["","kendoAutoCompleteFixedGroupTemplate",""],["","kendoMultiSelectFixedGroupTemplate",""]]}),i}(),ao=function(){var i=function(){function r(){p(this,r),this.onSelect=new O,this.onChange=new O,this.onFocus=new O,this.total=0,this.selectedIndices=[]}return v(r,[{key:"getTotal",value:function(){return this.total}},{key:"isSelected",value:function(e){return fe(this.selectedIndices.find(function(n){return n===e}))}},{key:"isFocused",value:function(e){return e===this.focused}},{key:"focus",value:function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))}},{key:"select",value:function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:fe(e)}))}},{key:"add",value:function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))}},{key:"unselect",value:function(e){if(this.isSelected(e)){var n=this.selectedIndices.indexOf(e);this.selectedIndices.splice(n,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e})}}},{key:"change",value:function(e){var n=fe(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:n})}},{key:"resetSelection",value:function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]}},{key:"selected",get:function(){return this.selectedIndices.slice()}},{key:"focused",get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Jt=function(){return function(i){i[i.Undefined=0]="Undefined",i[i.Open=1]="Open",i[i.Close=2]="Close",i[i.Enter=3]="Enter",i[i.Tab=4]="Tab",i[i.Esc=5]="Esc",i[i.Delete=6]="Delete",i[i.Backspace=7]="Backspace",i[i.Home=8]="Home",i[i.End=9]="End",i[i.Up=10]="Up",i[i.Down=11]="Down",i[i.Left=12]="Left",i[i.Right=13]="Right"}(Jt||(Jt={})),Jt}(),Do=function(){var i=function(){function r(){p(this,r),this.grouped=!1,this.groupIndices=[]}return v(r,[{key:"data",get:function(){return this.grouped?this._flatData:this._data},set:function(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))}},{key:"itemsCount",get:function(){return fe(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(function(n){return!n.header}):this.data).length:0}},{key:"isGrouped",value:function(e){return fe(e)&&0!==e.length&&fe(e[0])&&function(r,t){return!!fe(r)&&t.every(function(e){return r.hasOwnProperty(e)})}(e[0],["aggregates","field","items","value"])}},{key:"getGroupIndices",value:function(e){for(var n=[],a=0;a<=e.length-1;a++)n[a]=(n[a-1]||0)+e[a].items.length;return n}},{key:"filter",value:function(e){var n=[];if(this.isGrouped(this.data))for(var a=0;a<=this.groupIndices.length-1;a++){var o=this.data[a].items.filter(e);o&&(n=n.concat(o))}else n=this.data.filter(e);return n}},{key:"indexOf",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=function(s){return s===e};return this.grouped&&(a=function(s){return s.value===e}),this.findIndex(a,n)}},{key:"findIndex",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=-1;if(this.grouped){var o=this._flatData.filter(function(u){return!u.header&&u.offsetIndex>=n});a=o.findIndex(e),a=o[a]?o[a].offsetIndex:-1}else{var s=this.data.slice(n),l=s.findIndex(e);a=-1!==l?l+n:-1}return a}},{key:"closestGroup",value:function(e){for(var n=e;n>=0;n--)if(this._flatData[n].header)return this._flatData[n]}},{key:"find",value:function(e){var n=this.findIndex(e);return this.itemAt(n)}},{key:"flatIndex",value:function(e){if(0===this.itemsCount)return-1;if(!this.grouped)return e;var n=this._flatData.find(function(a){return!a.header&&a.offsetIndex===e});return n?n.index:-1}},{key:"itemAt",value:function(e){var n;if(0===this.itemsCount)return n;if(this.grouped){var a=this._flatData.find(function(o){return!o.header&&o.offsetIndex===e});a&&(n=a.value)}else n=this.data[e];return n}},{key:"groupAt",value:function(e){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(n){return n.header&&n.index===e})}},{key:"groupField",value:function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null}},{key:"itemGroup",value:function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var n=this.groupField();if(n)return rt(e,n)}}},{key:"flatten",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=[];fe(n)&&s.push({header:!0,index:o+a,offsetIndex:o,value:n});for(var l=0;l=a?n:this.firstFocusableIndex(l,a,o,-1*s)}},{key:"clampIndex",value:function(e,n,a){return!fe(e)||ea?a:e}},{key:"firstFocusableIndex",value:function(e,n,a,o){for(;n<=e&&e<=a;){if(!this.isDisabled(e))return e;e+=o}}},{key:"isDisabled",value:function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Eo),oe(ao))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),uv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListNoDataTemplate",""],["","kendoDropDownTreeNoDataTemplate",""],["","kendoComboBoxNoDataTemplate",""],["","kendoMultiColumnComboBoxNoDataTemplate",""],["","kendoAutoCompleteNoDataTemplate",""],["","kendoMultiSelectNoDataTemplate",""],["","kendoMultiSelectTreeNoDataTemplate",""]]}),i}(),cv=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),sm=v(function i(){p(this,i)}),Yre={pageSize:50,itemHeight:28},h1=function(r,t){var e=Object.assign({},Yre,t);return!0===r?e:r?Object.assign({pageSize:Yre.pageSize},r):null},qc=new wt("dropdowns-touch-enabled"),$P=function(){var i=v(function r(t){p(this,r),this.element=t});return i.\u0275fac=function(t){return new(t||i)(m(ke))},i.\u0275dir=X({type:i,selectors:[["li","role","option"],["li","role","group"]]}),i}(),bu=function(){var i=function(){function r(t){p(this,r),this.viewContainerRef=t}return v(r,[{key:"templateContext",set:function(e){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ei))},i.\u0275dir=X({type:i,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),i}(),f1=function(){var i=function(){function r(t){p(this,r),this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=t}return v(r,[{key:"focusedClassName",get:function(){return this.selectionService.isFocused(this.index)}},{key:"selectedClassName",get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)}},{key:"onClick",value:function(e){e.stopPropagation(),(!this.checkboxes.enabled||this.checkboxes.checkOnClick)&&(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ao))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownsSelectable",""]],hostVars:9,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(ie("index",e.index),Qe("height",e.height,"px")("min-height",e.height,"px"),ue("k-focus",e.focusedClassName)("k-selected",e.selectedClassName))},inputs:{index:"index",checkboxes:"checkboxes",height:"height",multipleSelection:"multipleSelection"}}),i}(),lm=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.dataService=t,this.wrapper=e,this.selectionService=n,this.disabledItemsService=a,this.cdr=o,this.zone=s,this.renderer=l,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",this.onClick=new O,this.pageChange=new O,this.listResize=new O,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this._size="medium",this.selectSubscription=xn(this.selectionService.onSelect.pipe(We(function(c){return c.indices[0]})),this.selectionService.onFocus).pipe(Nn(function(c){return u.zone.onStable.pipe(It(1),We(function(){return c}))})).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}return v(r,[{key:"data",get:function(){return this._data},set:function(e){this._data=e[0]&&e[0].header?e.slice(0):e}},{key:"size",get:function(){return this._size},set:function(e){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,Un("list",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,Un("list",e)),this._size=e)}},{key:"pageSize",get:function(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)}},{key:"scrollHeight",get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight}},{key:"overflowY",get:function(){if(fe(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"}},{key:"checkboxClasses",get:function(){return"".concat(this.size?Un("checkbox",this.size):""," ").concat(this.rounded?vr(this.rounded):"")}},{key:"ngOnChanges",value:function(e){yn("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),yn("virtual",e,!1)&&this.setOverflow(),yn("type",e,!1)&&this.prepareClasses()}},{key:"ngAfterViewInit",value:function(){var e=this;this.setComponentClasses(),this.zone.runOutsideAngular(function(){e.scrollSubscription=li(e.content.nativeElement,"scroll").pipe(ff(100),At(e.prefetchData.bind(e)),At(e.findCurrentGroup.bind(e))).subscribe(function(){e.lastScrollTop=e.content.nativeElement.scrollTop})}),this.setOverflow()}},{key:"ngAfterViewChecked",value:function(){this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,this.scrollToItem(this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused)),this.dataService.grouped&&this.findCurrentGroup()}},{key:"ngOnDestroy",value:function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}},{key:"onCheckedChange",value:function(e,n){var a=e.target.checked;a&&!this.selectionService.isSelected(n)&&this.selectionService.add(n),!a&&this.selectionService.isSelected(n)&&this.selectionService.unselect(n)}},{key:"prepareClasses",value:function(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")}},{key:"isChecked",value:function(e){return this.selectionService.isSelected(this.virtual?e+this.virtual.skip:e)}},{key:"firstVisibleItem",value:function(){var e=this,n=this.content.nativeElement,a=n.getBoundingClientRect(),o=Array.prototype.slice.call(n.querySelectorAll(".k-disabled"));o.forEach(function(l){return e.renderer.setStyle(l,"pointer-events","auto")});var s=document.elementFromPoint(a.left+1,a.top+1);return o.forEach(function(l){return e.renderer.setStyle(l,"pointer-events","none")}),function(r,t){for(var e=r;null!==e&&1===e.nodeType;){if(Rtt(e,"li"))return e;e=e.parentElement||e.parentNode}return null}(s)}},{key:"findCurrentGroup",value:function(){if(this.dataService.grouped){var n,e=this.firstVisibleItem();e?"group"===e.getAttribute("role")?(n=parseInt(e.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(n).value):(n=parseInt(e.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(n))):this.currentGroup=void 0,this.cdr.detectChanges()}else this.currentGroup=void 0}},{key:"prefetchData",value:function(){if(this.virtual){var e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),n=this.content.nativeElement.scrollTop,a=Math.trunc(n/this.virtual.itemHeight),o=n>this.lastScrollTop,u=this.lastLoaded-this.pageSize+e>=a-(this.pageSize-(this.lastLoaded-this.startFrom));o&&a+e>=this.lastLoaded&&this.lastLoadedn.virtual.total&&(e--,a=n.virtual.total),e<0&&(e=0),n.startFrom=e,n.lastLoaded=a,n.pageChange.emit({skip:e,take:n.pageSize})})}},{key:"index",value:function(e,n){return e>0?this.dataService.groupIndices[e-1]+n:n}},{key:"getText",value:function(e){return rt(e,this.textField)}},{key:"getValue",value:function(e){return rt(e,this.valueField)}},{key:"isDisabled",value:function(e){return fe(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)}},{key:"isAltRow",value:function(e){return"dropdowngrid"===this.type&&e%2!=0}},{key:"scrollToItem",value:function(e){var n=e;if(this.dataService.grouped&&(n=this.dataService.flatIndex(e),n+=this.firstGroupHeaderInTargetedPage(n)?-1:0),this.virtual&&n>-1)this.scrollToIndex(n);else{var o=this.items.toArray();fe(o[n])&&-1!==n&&this.scroll(o[n].element)}}},{key:"scrollToIndex",value:function(e){var n=this.content.nativeElement,a=n.scrollTop,o=e*this.virtual.itemHeight,l=n.clientHeight,u=o+this.virtual.itemHeight;a>o?a=o:u>a+l&&(a=u-l),n.scrollTop=a}},{key:"scroll",value:function(e){if(e){var n=e.nativeElement,a=this.content.nativeElement,o=n.offsetTop,l=a.scrollTop,u=a.clientHeight,c=o+n.offsetHeight;l>o?l=o:c>l+u&&(l=c-u),a.scrollTop=l}}},{key:"hasScrollbar",value:function(){return!!(fe(this.items)&&this.items.length&&fe(this.list)&&fe(this.content))&&(fe(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)}},{key:"setOverflow",value:function(){if(this.virtual){var e=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",e)}}},{key:"hasVirtualScrollbar",value:function(){return this.virtualContainer&&(this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight)>this.content.nativeElement.offsetHeight}},{key:"positionItems",value:function(){var e=this;this.items.forEach(function(n,a){e.renderer.setStyle(n.element.nativeElement,"transform","translateY(".concat((a+e.startFrom)*e.virtual.itemHeight,"px"))})}},{key:"firstGroupHeaderInTargetedPage",value:function(e){return!fe(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e}},{key:"setComponentClasses",value:function(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,Un("list",this.size))),fe(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Do),m(ke),m(ao),m(Eo),m(nt),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-list"]],viewQuery:function(t,e){var n;1&t&&(ge(BQe,7),ge(GQe,7),ge(VQe,5),ge($P,5)),2&t&&(P(n=B())&&(e.content=n.first),P(n=B())&&(e.list=n.first),P(n=B())&&(e.virtualContainer=n.first),P(n=B())&&(e.items=n))},inputs:{selected:"selected",focused:"focused",textField:"textField",valueField:"valueField",height:"height",template:"template",groupTemplate:"groupTemplate",fixedGroupTemplate:"fixedGroupTemplate",show:"show",id:"id",optionPrefix:"optionPrefix",multipleSelection:"multipleSelection",virtual:"virtual",type:"type",checkboxes:"checkboxes",data:"data",size:"size",rounded:"rounded"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize"},features:[Ie],decls:9,vars:15,consts:[[3,"class","ngStyle",4,"ngIf"],["unselectable","on"],["content",""],["role","listbox"],["list",""],[4,"ngIf"],[3,"resize",4,"ngIf"],["class","k-height-container","role","presentation",4,"ngIf"],[3,"ngStyle"],[3,"ngIf"],[3,"templateContext"],["ngFor","",3,"ngForOf"],["role","option","kendoDropDownsSelectable","",3,"checkboxes","height","index","multipleSelection","ngClass"],["type","checkbox","class","k-checkbox",3,"ngClass","checked","change",4,"ngIf"],["type","checkbox",1,"k-checkbox",3,"ngClass","checked","change"],[1,"k-list-item-text"],["role","group",3,"class","k-table-alt-row","ngStyle",4,"ngIf"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","class","ngClass",4,"ngIf"],["role","group",3,"ngStyle"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","ngClass"],[3,"resize"],["role","presentation",1,"k-height-container"],["virtualContainer",""]],template:function(t,e){1&t&&(T(0,KQe,3,9,"div",0),A(1,"div",1,2)(3,"ul",3,4),T(5,ZQe,1,1,null,5),T(6,oJe,1,1,null,5),T(7,sJe,1,0,"kendo-resize-sensor",6),x(),T(8,lJe,4,2,"div",7),x()),2&t&&(y("ngIf",e.dataService.grouped),k(1),Ar(e.listContentClass),Qe("overscroll-behavior","none")("max-height",e.height,"px"),k(2),Ar(e.listClass),ie("id",e.id)("aria-hidden",!e.show),k(2),y("ngIf",!e.dataService.grouped&&e.show),k(1),y("ngIf",e.dataService.grouped),k(1),y("ngIf",!e.virtual),k(1),y("ngIf",e.virtual))},directives:[Gr,qe,Vi,bu,gn,$P,f1,Nt],encapsulation:2}),i}(),v1=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,inputs:{noDataText:"noDataText",clearTitle:"clearTitle",checkAllText:"checkAllText",selectButtonText:"selectButtonText"},features:[j]}),i}(),oh=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(v1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListLocalizedMessages",""],["","kendoDropDownTreeLocalizedMessages",""],["","kendoComboBoxLocalizedMessages",""],["","kendoMultiColumnComboBoxLocalizedMessages",""],["","kendoAutoCompleteLocalizedMessages",""],["","kendoMultiSelectLocalizedMessages",""],["","kendoMultiSelectTreeLocalizedMessages",""]],features:[de([{provide:v1,useExisting:ye(function(){return i})}]),j]}),i}(),Ltt={multi:!0,provide:jn,useExisting:ye(function(){return qP})},qP=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.localization=t,this.dataService=e,this.popupService=n,this.selectionService=a,this.navigationService=o,this.disabledItemsService=s,this._zone=l,this.cdr=u,this.renderer=c,this.hostElement=d,this.touchEnabled=h,this.highlightFirst=!0,this.focusableId="k-".concat(ro()),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new O,this.filterChange=new O,this.open=new O,this.opened=new O,this.close=new O,this.closed=new O,this.onFocus=new O,this.onBlur=new O,this.widgetClasses=!0,this.listBoxId=ro(),this.optionPrefix=ro(),this.onChangeCallback=ov,this.onTouchedCallback=ov,this.popupMouseDownHandler=function(f){return f.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new Ot,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",jt(u1),this.direction=t.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}return v(r,[{key:"width",get:function(){var e=0;Ze()&&(e=this.wrapper.offsetWidth);var n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"height",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"listContainerClasses",get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e}},{key:"suggestion",get:function(){if(this.text&&this.suggestedText){var e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&e?this.suggestedText:void 0}this.suggestedText=void 0}},{key:"appendTo",get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e}},{key:"clearButtonVisiblity",get:function(){if(this.touchEnabled)return"visible"}},{key:"toggle",value:function(e){var n=this;Promise.resolve(null).then(function(){var a=fe(e)?e:!n._open;n._toggle(a)})}},{key:"isOpen",get:function(){return this._open}},{key:"togglePopup",value:function(e){this.disabled||this.readonly||this.isOpen===e||this.triggerPopupEvents(e)||this._toggle(e)}},{key:"activeDescendant",get:function(){if(!this.isOpen||!fe(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+rt(e,this.valueField)}},{key:"noDataLabel",get:function(){if(0===this.data.length)return this.messageFor("noDataText")}},{key:"data",get:function(){var e=this.virtual;if(e){var n=e.skip||0,a=n+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(n,a)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=rt(this.dataService.itemAt(0),this.valueField))}},{key:"value",get:function(){return this._value||""},set:function(e){this.verifySettings(e),this._value=e||"",this.text=this.value,this.cdr.markForCheck()}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=h1(e)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper,Un("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper,Un("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper,vr(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper,aa("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper,aa("input",n)),this._fillMode=n}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-focus"),this._isFocused=e}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()}),this.setComponentClasses()}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize})}},{key:"reset",value:function(){this.value=""}},{key:"messageFor",value:function(e){return this.localization.get(e)}},{key:"clearValue",value:function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this.onChangeCallback=e}},{key:"registerOnTouched",value:function(e){this.onTouchedCallback=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"focusItemAt",value:function(e){var n=e>=0&&e1&&void 0!==arguments[1]?arguments[1]:0;a=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),n):-1,this.disabledItemsService.isIndexDisabled(a)?a+1=0)a=rt(this.dataService.itemAt(n),this.valueField);else{var o=this.suggest&&this.suggestedText&&this.data.length&&rt(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();a=this.isOpen&&o?this.suggestedText:this.searchbar.value}this.change(a)}},{key:"handleEscape",value:function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null}},{key:"searchBarChange",value:function(e){var n=fe(this.text)?this.text.length:0;this.backspacePressed=e.length0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)}},{key:"handleFocus",value:function(){var e=this;this.isFocused=!0,ut(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()})}},{key:"handleBlur",value:function(){var a,o,e=this,n=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0,-1!==n?(a=this.dataService.itemAt(n),o=rt(a,this.valueField)||""):o=this.searchbar.value;var s=o===this.searchbar.value,l=o.toLowerCase()===this.searchbar.value.toLowerCase();!s&&l&&this.selectionService.resetSelection([]),this.isFocused=!1;var u=this.value!==this.text;ut(this.onBlur)||ut(this.close)||am(this.wrapper)||u?this._zone.run(function(){u&&e.change(e.searchbar.value),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)}},{key:"pageChange",value:function(e){this.virtual.skip=e.skip}},{key:"change",value:function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)}},{key:"subscribeEvents",value:function(){var e=this;!Ze()||(this.valueChangeSubscription=this.valueChangeSubject.subscribe(function(n){var a=e.value!==n;e.value=n,e.text=n,a&&e.emitChange(n)}),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=xn(this.navigationService.up,this.navigationService.down).subscribe(function(n){return e.navigate(n.index)}),this.closeSubscription=this.navigationService.close.subscribe(function(){return e.togglePopup(!1)}),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this._zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){e.isFocused&&!wC(e.hostElement,n.target,e.popupRef)&&e._zone.run(function(){return e.blur()})})})}},{key:"unsubscribeEvents",value:function(){!Ze()||(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}},{key:"handleItemChange",value:function(e){var n=e.indices.length?e.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),fe(n)){var a=rt(this.dataService.itemAt(n),this.valueField);this.change(a)}}},{key:"handleItemFocus",value:function(e){var n=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&n>=0)&&(this.suggestedText=rt(this.dataService.itemAt(n),this.valueField))}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:n,vertical:"top"},anchorAlign:{horizontal:n,vertical:"bottom"}});var s=this.popupRef.popupElement,l=this.width,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"firstFocusableIndex",value:function(e){var n=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=a}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=rt(this.dataService.itemAt(0),this.textField))}},{key:"value",get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()}},{key:"valuePrimitive",get:function(){return fe(this._valuePrimitive)?this._valuePrimitive:!fe(this.valueField)},set:function(e){this._valuePrimitive=e}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=h1(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Un("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Un("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,vr(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,aa("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,aa("input",n)),this._fillMode=n}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"clearButtonVisiblity",get:function(){if(this.touchEnabled)return"visible"}},{key:"popupWidth",get:function(){var e=0;Ze()&&(e=this.wrapper.nativeElement.offsetWidth);var n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"popupHeight",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setComponentClasses()}},{key:"createValueStream",value:function(){var e=this,n=this.valueSubject.pipe(Ue(function(c){var d=rt(e.value,e.valueField),h=rt(c,e.valueField),f=rt(c,e.textField);return!(!fe(e.value)&&!fe(h)||(fe(f)&&(f=f.toString()),d===h&&e.text===f&&(e.clearFilter(),1)))}),We(function(c){var d=rt(c,e.valueField);return{dataItem:c,text:rt(c,e.textField),value:e.valuePrimitive?d:c}})),a=function dYe(i,r){return function(t){return[Ue(i,r)(t),Ue(cYe(i,r))(t)]}}(function(){return e.allowCustom})(this.customValueSubject.pipe(FL(300))),o=a[0].pipe(At(function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()}),Ue(function(){var c=e.text!==rt(e.value,e.valueField);return e.loading=c,e.disabled=c,c||e.clearFilter(),c}),this.valueNormalizer,We(function(c){return{custom:!0,dataItem:c,text:e.text,value:c}})),s=a[1].pipe(We(function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}})),l=this.clearValueSubject.pipe(We(function(){return{dataItem:void 0,text:void 0,value:void 0}}));this.valueSubscription&&this.valueSubscription.unsubscribe();var u=xn(n,o,s,l);this.valueSubscription=u.pipe(cl(function(){var c=void 0!==rt(e.dataItem,e.valueField);return e.dataItem=void 0,e.value=void 0,e.text=void 0,e.loading=!1,e.disabled=!1,c&&e.selectionChange.emit(void 0),e.emitValueChange(),e.createValueStream(),lt(null)})).subscribe(function(c){var d=rt(e.dataItem,e.valueField)!==rt(c.dataItem,e.valueField);e.dataItem=c.dataItem,e.value=c.value,e.text=c.text,e.loading=!1,e.disabled=!1,e.clearFilter(),c.custom&&(e.selectionService.focused=-1),d&&e.selectionChange.emit(c.custom?void 0:e.dataItem),e.emitValueChange()})}},{key:"attachStreams",value:function(){var e=this;!Ze()||(this.subs.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()})),this.subs.add(xn(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(Ue(function(n){return fe(n.index)})).subscribe(function(n){return e.navigate(n.index)})),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(function(){return e.togglePopup(!1)})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(At(function(n){e.isOpen&&n.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(xn(this.selectionService.onChange,this.selectionService.onSelect.pipe(Ue(function(n){return!e.isOpen}))).pipe(At(function(n){e._filtering=!1,e.togglePopup(!1)}),We(function(n){return e.dataService.itemAt(n.indices[0])})).subscribe(function(n){e.change(n)})),this.subs.add(this.selectionService.onSelect.pipe(Ue(function(n){return e.isOpen}),At(function(n){return e._filtering=!1}),We(function(n){return e.dataService.itemAt(n.indices[0])})).subscribe(function(n){var a=rt(n,e.valueField)!==rt(e.dataItem,e.valueField);e.updateState({dataItem:n}),a&&e.selectionChange.emit(n)})))}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.subs.unsubscribe(),fe(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("valueNormalizer",e)&&this.createValueStream(),Ki(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"focusItemAt",value:function(e){var n=e>=0&&e1&&void 0!==arguments[1]?arguments[1]:0;a=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),n):-1,this.disabledItemsService.isIndexDisabled(a)?a+10||(this.suggestedText=null,this.selectionService.focused=-1)}},{key:"handleNavigationOpen",value:function(){this.restoreItemFocus(),this.togglePopup(!0)}},{key:"searchBarChange",value:function(e){this.backspacePressed=e.length<(this.text?this.text.length:0),this.text=e,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==e?(this.filterText=e,this.filterChange.emit(e)):this.search(e)}},{key:"handleFocus",value:function(){var e=this;this.isFocused=!0,ut(this.onFocus)&&this.zone.run(function(){return e.onFocus.emit()})}},{key:"pageChange",value:function(e){this.virtual.skip=e.skip}},{key:"change",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n?this.customValueSubject.next(e):this.valueSubject.next(e)}},{key:"emitValueChange",value:function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem}},{key:"selectClick",value:function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)}},{key:"listContainerClasses",get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])}},{key:"preventEventDefault",value:function(e){e.preventDefault()}},{key:"focusedItemText",get:function(){var e=this.selectionService.focused;if(!fe(e)||-1===e)return null;var n=rt(this.dataService.itemAt(e),this.textField);return fe(n)?n.toString():""}},{key:"restoreItemFocus",value:function(){!(fe(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))}},{key:"useSuggestion",value:function(){if(!this.suggest||!fe(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),n=rt(e,this.textField);return!!fe(n)&&this.searchbar.value.toLowerCase()===n.toLowerCase()}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:n,vertical:"bottom"},popupAlign:{horizontal:n,vertical:"top"}});var s=this.popupRef.popupElement,l=this.popupWidth,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.popupHeight,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"clearFilter",value:function(){!this.filterable||!this.filterText||(this.filterText="",this.filterChange.emit(this.filterText))}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this.zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){var o=wC(e.wrapper,n.target,e.popupRef);e.isFocused&&!o?e.zone.run(function(){return e.blur()}):e.isOpen&&!o&&e.zone.run(function(){return e.togglePopup(!1)})})})}},{key:"attachSelectClickHandler",value:function(){this.selectClickDisposeHandler=this.renderer.listen(this.select.nativeElement,oW?"pointerdown":"click",this.selectClick.bind(this))}},{key:"setComponentClasses",value:function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,Un("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,aa("input",this.fillMode))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Y),m(kr),m(ao),m(To),m(Eo),m(Do),m(be),m(nt),m(Ee),m(qc,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-combobox"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,DC,5),he(n,sv,5),he(n,lv,5),he(n,uv,5),he(n,EC,5),he(n,TC,5)),2&t&&(P(a=B())&&(e.template=a.first),P(a=B())&&(e.headerTemplate=a.first),P(a=B())&&(e.footerTemplate=a.first),P(a=B())&&(e.noDataTemplate=a.first),P(a=B())&&(e.groupTemplate=a.first),P(a=B())&&(e.fixedGroupTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(im,7,ei),ge(rm,7),ge(ah,7),ge(l1,5),ge(kJe,7)),2&t&&(P(n=B())&&(e.container=n.first),P(n=B())&&(e.popupTemplate=n.first),P(n=B())&&(e.searchbar=n.first),P(n=B())&&(e.optionsList=n.first),P(n=B())&&(e.select=n.first))},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-combobox",e.widgetClasses)("k-input",e.widgetClasses)("k-disabled",e.isDisabled)("k-loading",e.isLoading))},inputs:{focusableId:"focusableId",allowCustom:"allowCustom",data:"data",value:"value",textField:"textField",valueField:"valueField",valuePrimitive:"valuePrimitive",valueNormalizer:"valueNormalizer",placeholder:"placeholder",popupSettings:"popupSettings",listHeight:"listHeight",iconClass:"iconClass",loading:"loading",suggest:"suggest",clearButton:"clearButton",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",selectionChange:"selectionChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoComboBox"],features:[de([Ptt,Do,ao,To,Eo,Y,{provide:Dt,useValue:"kendo.combobox"},{provide:sm,useExisting:ye(function(){return i})},{provide:Ui,useExisting:ye(function(){return i})}]),Ie],decls:12,vars:20,consts:function(){return[["kendoComboBoxLocalizedMessages","","noDataText",$localize(Dre||(Dre=le([":kendo.combobox.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND"]))),"clearTitle",$localize(Ere||(Ere=le([":kendo.combobox.clearTitle|The title of the clear button:clear"]))),"selectButtonText",$localize(Tre||(Tre=le([":kendo.combobox.selectButtonText|The text set as aria-label on the select button:Select"])))],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-clear-value","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["unselectable","on","type","button",1,"k-input-button","k-button","k-icon-button",3,"ngClass","kendoEventsOutsideAngular"],["select",""],[1,"k-button-icon","k-icon",3,"ngClass"],["popupTemplate",""],[3,"ngIf"],["container",""],["aria-hidden","true",1,"k-clear-value",3,"kendoEventsOutsideAngular","click"],[1,"k-icon","k-i-x"],[4,"ngIf"],[3,"size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"kendo-searchbar",1,2),Q("onNavigate",function(a){return e.handleNavigate(a)})("valueChange",function(a){return e.searchBarChange(a)})("onBlur",function(){return e.handleBlur()})("onFocus",function(){return e.handleFocus()}),x(),T(3,CJe,2,6,"span",3),A(4,"button",4,5),z(6,"span",6),x(),T(7,xJe,5,16,"ng-template",null,7,$n),T(9,MJe,1,0,"ng-template",8),Wt(10,null,9)),2&t&&(k(1),y("role","combobox")("id",e.focusableId)("listId",e.listBoxId)("activeDescendant",e.activeDescendant)("noDataLabel",e.noDataLabel)("userInput",e.text)("suggestedText",e.getSuggestion())("disabled",e.disabled)("readonly",e.readonly)("tabIndex",e.tabIndex)("popupOpen",e.isOpen)("placeholder",e.placeholder),k(2),y("ngIf",e.clearButton&&!e.loading&&!e.disabled&&!e.readonly&&(null==e.text?null:e.text.length)),k(1),y("ngClass",e.selectButtonClasses)("kendoEventsOutsideAngular",ot(18,SC,e.preventEventDefault)),ie("aria-label",e.messageFor("selectButtonText")),k(2),y("ngClass",e.buttonClasses),k(3),y("ngIf",e.isOpen))},directives:[ah,lm,Gr,oh,qe,qi,Nt,bu],encapsulation:2}),i}(),ZP=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListValueTemplate",""],["","kendoDropDownTreeValueTemplate",""]]}),i}(),y1=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.zone=e}return v(r,[{key:"ngOnChanges",value:function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})}},{key:"nextTick",value:function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(be))},i.\u0275dir=X({type:i,selectors:[["","filterInput",""]],inputs:{focused:["filterInput","focused"]},features:[Ie]}),i}(),Utt={multi:!0,provide:jn,useExisting:ye(function(){return js})},js=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.wrapper=t,this.localization=e,this.popupService=n,this.selectionService=a,this.navigationService=o,this.disabledItemsService=s,this.dataService=l,this._zone=u,this.renderer=c,this.cdr=d,this.touchEnabled=h,this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new O,this.filterChange=new O,this.selectionChange=new O,this.open=new O,this.opened=new O,this.close=new O,this.closed=new O,this.onFocus=new O,this.onBlur=new O,this.hostClasses=!0,this.focusableId="k-".concat(ro()),this.role="listbox",this.groupIndices=[],this.listBoxId=ro(),this.optionPrefix=ro(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(f){},this.onChangeCallback=function(f){},this.word="",this.last="",this.filterFocused=new O,this.filterBlurred=new O,this.hostElementFocused=new O,this.hostElementBlurred=new O,this.selectionSubscription=new Je,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",jt(u1),this.direction=e.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}return v(r,[{key:"width",get:function(){var e=Ze()?this.wrapper.nativeElement.offsetWidth:0,n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"height",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"widgetTabIndex",get:function(){if(!this.disabled){var e=Number(this.tabIndex);return isNaN(e)?0:e}}},{key:"ariaExpanded",get:function(){return this.isOpen}},{key:"ariaOwns",get:function(){if(this.isOpen)return this.listBoxId}},{key:"ariaActivedescendant",get:function(){if(fe(this.dataItem)&&this.isOpen)return this.optionPrefix+"-"+rt(this.dataItem,this.valueField)}},{key:"noDataLabel",get:function(){if(0===this.dataService.itemsCount)return this.messageFor("noDataText")}},{key:"appendTo",get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e}},{key:"data",get:function(){var e=this.virtual;if(e){var n=e.skip||0,a=n+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(n,a)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()}},{key:"value",get:function(){return this._value},set:function(e){fe(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=h1(e)}},{key:"valuePrimitive",get:function(){return fe(this._valuePrimitive)?this._valuePrimitive:!fe(this.valueField)},set:function(e){this._valuePrimitive=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Un("picker",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Un("picker",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,vr(n)),this._rounded=e}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,aa("picker",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,aa("picker",n)),this._fillMode=n}},{key:"blurComponent",value:function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())}},{key:"blurFilterInput",value:function(){this.filterBlurred.emit()}},{key:"focusComponent",value:function(e){var n=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,ut(this.onFocus)&&this._zone.run(function(){n.onFocus.emit()})))}},{key:"onResize",value:function(){if(this._open){var e=this.popupRef.popupElement,n=this.width,o=n.max;e.style.minWidth=n.min,e.style.width=o}}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"hostTabIndex",get:function(){return this.widgetTabIndex}},{key:"isReadonly",get:function(){return this.readonly}},{key:"isAriaExpanded",get:function(){return this.ariaExpanded}},{key:"hostAriaOwns",get:function(){return this.ariaOwns}},{key:"hostAriaActivedescendant",get:function(){return this.ariaActivedescendant}},{key:"hostNoDataLabel",get:function(){return this.noDataLabel}},{key:"keydown",value:function(e){var n=fe(this.defaultItem)?-1:0,a=isNaN(this.selectionService.focused)?this.firstFocusableIndex(n):this.selectionService.focused,o=0;if(!(this.disabled||this.readonly||this.filterable&&this.isFocused&&this.isOpen&&(e.keyCode===J.Home||e.keyCode===J.End))){var u=fe(this.selectionService.selected[0]),c=fe(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);(!u||c)&&(e.keyCode===J.ArrowDown||e.keyCode===J.ArrowRight?o=-1:(e.keyCode===J.ArrowUp||e.keyCode===J.ArrowLeft)&&(o=1));var d=e,h=this.navigationService.process({current:a+o,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:d});h!==Jt.Undefined&&h!==Jt.Tab&&h!==Jt.Backspace&&h!==Jt.Delete&&(h!==Jt.Left&&h!==Jt.Right||!this.filterable)&&h!==Jt.Enter&&d.preventDefault()}}},{key:"keypress",value:function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)}},{key:"click",value:function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()}),this.assignAriaDescribedBy(),this.setComponentClasses()}},{key:"isEmpty",value:function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)}},{key:"onFilterFocus",value:function(){this.filterFocused.emit()}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),Ki(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"focusItemAt",value:function(e){var a=(fe(this.defaultItem)?-1:0)<=e&&e0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(c1(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=function(r,t,e){var n=function(r,t){return Sa(r)&&r.filter(function(e){return av(e)&&fe(rt(e,t))})}(r,e)||[],a=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2?arguments[2]:void 0;return r.map(function(n){return t.find(function(a){return rt(a,e)===n})}).filter(function(n){return void 0!==n})}(r,t,e)||[];return a.concat(n)}(e,a,this.valueField)),this.selectedDataItems.length0)this.handleBackspace();else if(!(this.disabled||n&&!a)){var s=e,l=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,u=this.navigationService.process({current:l,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:s});u!==Jt.Undefined&&(u===Jt.Enter&&this.isOpen||u!==Jt.Enter)&&e.preventDefault()}}},{key:"handleRemoveTag",value:function(e){var n=e.tag,a=new eae(n);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(a),!a.isDefaultPrevented()&&(n instanceof Array?this.removeGroupTag(n):this.removeSingleTag(n),this.cdr.detectChanges()))}},{key:"clearAll",value:function(e){var n=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter();var a=this.selectionService.selected;this.value=this.value.filter(function(o,s){return n.disabledItemsService.isIndexDisabled(a[s])}),this.emitValueChange()}},{key:"addCustomValue",value:function(e){this.customValueSubject.next(e)}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"ngDoCheck",value:function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.markForCheck()}),this.setState(this.value),this.setComponentClasses(),this.initialized=!0}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("valueNormalizer",e)&&this.createCustomValueStream(),Ki(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)}},{key:"ngAfterViewInit",value:function(){this.searchbar.setInputSize()}},{key:"ngOnDestroy",value:function(){this._toggle(!1),this.unsubscribeEvents()}},{key:"toggle",value:function(e){var n=this;Promise.resolve(null).then(function(){var a=fe(e)?e:!n._open;n._toggle(a),n.cdr.markForCheck()})}},{key:"isOpen",get:function(){return this._open}},{key:"reset",value:function(){this.text="",this.value=[]}},{key:"messageFor",value:function(e){return this.localization.get(e)}},{key:"writeValue",value:function(e){this.value=e||[]}},{key:"registerOnChange",value:function(e){this.onChangeCallback=e}},{key:"registerOnTouched",value:function(e){this.onTouchedCallback=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"onTagMapperChange",value:function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"subscribeEvents",value:function(){var e=this;if(Ze()){var n=function(){return e.isOpen},a=function(){return!e.isOpen},o=function(){return!e.isOpen&&void 0!==e.focusedTagIndex};[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(Ue(n)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe(Ue(n)).subscribe(function(s){return e.handleUp(s.index)}),this.navigationService.home.pipe(Ue(function(){return a})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Ue(function(){return a})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Ue(o)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Ue(o)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe(function(s){return e.handleDownKey(s.index)})].forEach(function(s){return e.observableSubscriptions.add(s)})}}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this._zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){(e.isFocused||e.isOpen)&&!wC(e.wrapper,n.target,e.popupRef)&&e._zone.run(function(){e.blur(),e.isOpen&&e.togglePopup(!1)})})})}},{key:"unsubscribeEvents",value:function(){!Ze()||(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}},{key:"removeGroupTag",value:function(e){var n=this,a=this.dataService.data;this.dataService.grouped&&(a=a.filter(function(s){return!s.header}).map(function(s){return s.value}));var o=new Set(e.map(function(s){return rt(s,n.valueField)}));this.value=this.value.filter(function(s){var l=jP([s],a,n.valueField)[0],u=n.disabledItemsService.isIndexDisabled(l);return!o.has(rt(s,n.valueField))||u}),this.emitValueChange()}},{key:"removeSingleTag",value:function(e){var n=this,a=this.dataService.data;this.dataService.grouped&&(a=a.filter(function(l){return!l.header}).map(function(l){return l.value}));var o=jP([e],a,this.valueField)[0];this.disabledItemsService.isIndexDisabled(o)||(!function(r){return!isNaN(r)}(o)?(this.value=this.value.filter(function(u){return rt(u,n.valueField)!==rt(e,n.valueField)}),this.emitValueChange()):(this.selectionService.unselect(o),this.selectionService.focused=o,this.togglePopup(!1)))}},{key:"disabledItemsMapper",value:function(){var e=this,n=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(a,o,s){return e.disabledItemsService.isIndexDisabled(n[s])&&a.push(s),a},[]))}},{key:"createCustomValueStream",value:function(){var e=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(At(function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()}),this.valueNormalizer,cl(function(){return e.loading=!1,e.disabled=!1,e.autoClose&&e.togglePopup(!1),(e.autoClose||!e.filterable)&&e.clearFilter(),e.nextTick(function(){e.searchbar.focus()}),e.createCustomValueStream(),lt(null)})).subscribe(function(n){if(e.loading=!1,e.disabled=!1,fe(n)){var a=e.valuePrimitive?rt(n,e.valueField):n,o=e.dataService.indexOf(a),s=-1===o;-1===e.value.indexOf(a)?(e.tags=e.tagMapper([].concat(Ae(e.selectedDataItems),[n])),s?e.value=[].concat(Ae(e.value),[a]):e.selectionService.add(o)):!s&&e.selectionService.isSelected(o)?(e.selectionService.unselect(o),e.selectionService.focused=o):e.value=e.value.filter(function(l){return rt(l,e.valueField)!==a}),e.emitValueChange()}e.autoClose&&e.togglePopup(!1),(e.autoClose||!e.filterable)&&e.clearFilter(),e.nextTick(function(){e.searchbar.focus()})})}},{key:"handleItemChange",value:function(e){this.change(e),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()}},{key:"handleEnter",value:function(e){var n=this.selectionService,a=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),-1!==a?(n.isSelected(a)?(n.unselect(a),n.focused=a):n.add(a),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)}},{key:"handleClose",value:function(){this.closePopup(),this.searchbar.focus()}},{key:"handleEnd",value:function(){this.focusedTagIndex=this.tags.length-1}},{key:"handleHome",value:function(){this.focusedTagIndex=0}},{key:"handleUp",value:function(e){this.selectionService.focused=e}},{key:"handleBackspace",value:function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())}},{key:"handleDelete",value:function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)}},{key:"handleLeftKey",value:function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--}},{key:"handleDownKey",value:function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()}},{key:"handleRightKey",value:function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex1&&void 0!==arguments[1]?arguments[1]:0;e=e.toLowerCase();var s=this.dataService.findIndex(function(l){return o=rt(n.dataService.grouped?l.value:l,n.textField),o=fe(o)?o.toString().toLowerCase():"",e&&o.startsWith(e)},a);return this.disabledItemsService.isIndexDisabled(s)?s+1>this.dataService.itemsCount?-1:this.findIndex(e,s+1):s}},{key:"searchTextAndFocus",value:function(e){var n=this.findIndex(e);this.selectionService.focused=n}},{key:"closePopup",value:function(){this.togglePopup(!1),this.focusedTagIndex=void 0}},{key:"openPopup",value:function(){this.togglePopup(!0),this.focusedTagIndex=void 0}},{key:"togglePopup",value:function(e){this.disabled||this.readonly||this.isOpen===e||this.triggerPopupEvents(e)||this._toggle(e)}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:n,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:n,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});var s=this.popupRef.popupElement,l=this.width,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){e.togglePopup(!1)})}},{key:"emitValueChange",value:function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)}},{key:"resolveDataItemFromTags",value:function(e){var n=this;if(this.tags&&this.tags.length&&fe(e))return this.tags.reduce(function(o,s){var l=Sa(s)?s:[s];return o.push.apply(o,Ae(l)),o},[]).find(function(o){return rt(o,n.valueField)===rt(e,n.valueField)})}},{key:"firstFocusableIndex",value:function(e){var n=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(e)){var a=e+1;return a input, kendo-label > textarea, kendo-label > select")}(this.elementRef.nativeElement);if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-".concat(qn())),void(this.control=e);this.control=this.kendoInput}}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngAfterViewInit",value:function(){this.labelDirective.setAriaLabelledby()}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"textFor",value:function(e){return this.localization.get(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-label"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Ui,7),2&t&&P(a=B())&&(e.kendoInput=a.first)},viewQuery:function(t,e){var n;1&t&&ge(oB,7),2&t&&P(n=B())&&(e.labelDirective=n.first)},hostVars:1,hostBindings:function(t,e){2&t&&ie("dir",e.direction)},inputs:{text:"text",for:"for",optional:"optional"},exportAs:["kendoLabel"],features:[de([Y,{provide:Dt,useValue:"kendo.label"}])],ngContentSelectors:fae,decls:5,vars:5,consts:function(){return[["kendoLabelLocalizedMessages","","optional",$localize(hae||(hae=le([":kendo.label.optional|The text for the optional segment of a Label component:Optional"])))],[3,"for"],["class","k-label-optional",4,"ngIf"],[1,"k-label-optional"]]},template:function(t,e){1&t&&(kn(),Wt(0,0),A(1,"label",1),te(2),T(3,Int,2,1,"span",2),x(),dn(4)),2&t&&(k(1),ue("k-label-empty",!e.text),y("for",e.control),k(1),Pt(" ",e.text,""),k(1),y("ngIf",e.optional))},directives:[sB,oB,qe],encapsulation:2}),i}(),Hnt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,C1],znt,C1]}),i}(),Ke=function(r){return r?new Date(r.getTime()):null},MC=function(r,t){var e=Ke(r);return 0===t&&23===e.getHours()&&e.setHours(e.getHours()+2),e},rs=function(r,t){var e=Ke(r);return e.setDate(e.getDate()+t),MC(e,r.getHours())},Ao=function(r,t,e){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,l=new Date(r,t,e,n,a,o,s);return r>-1&&r<100&&l.setFullYear(l.getFullYear()-1900),MC(l,n)},Ii=function(r){return Ao(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0)},vi=function(r,t){return!r&&!t||r&&t&&r.getTime()===t.getTime()},Ml=function(r){var t=Ao(r.getFullYear(),r.getMonth()+1,1,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return rs(t,-1)},Kr=function(r,t){var e=Ke(r),a=(12+(e.getMonth()+t)%12)%12;return e.setMonth(e.getMonth()+t),function(r,t){return r.getMonth()!==t?Ml(Kr(r,-1)):r}(MC(e,r.getHours()),a)},mae=function(r,t){var e=r.getMonth(),n=Ao(t,e,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return n.getMonth()===e?n:Ml(Kr(n,-1))},xo=function(r,t){return MC(mae(r,r.getFullYear()+t),r.getHours())},Ws=function(r,t){return xo(r,10*t)},RC=function(r,t){return xo(r,100*t)},b1=function(r,t){return mae(r,t(r.getFullYear()))},hv=function(r){return b1(r,function(t){return t-t%100})},S1=function(r){return b1(r,function(t){return t-t%100+90})},oo=function(r){return b1(r,function(t){return t-t%10})},OC=function(r){return b1(r,function(t){return t-t%10+9})},_ae=function(r,t){var e=r.getDate(),n=Ao(r.getFullYear(),t,e,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return n.getDate()===e?n:Ml(Kr(n,-1))},IC=function(r){return _ae(r,11)},yae=function(r,t){return(hv(t).getFullYear()-hv(r).getFullYear())/100},kae=function(r,t){return(oo(t).getFullYear()-oo(r).getFullYear())/10},Cae=function(r,t){return rs(r,7*t)},bae=function(r){return Ao(r.getFullYear(),r.getMonth(),1,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())},NC=function(){return function(i){i[i.Forward=1]="Forward",i[i.Backward=-1]="Backward"}(NC||(NC={})),NC}(),Sae=function(r,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:NC.Forward,n=Ke(r),a=(t-n.getDay()+7*e)%7;return n.setDate(n.getDate()+a),MC(n,r.getHours())},wae=function(r,t){return 12*(t.getFullYear()-r.getFullYear())+(t.getMonth()-r.getMonth())},Dae=function(r){return _ae(r,0)},Eae=function(r,t){return t.getFullYear()-r.getFullYear()},FC=function(){return function(i){i[i.Sunday=0]="Sunday",i[i.Monday=1]="Monday",i[i.Tuesday=2]="Tuesday",i[i.Wednesday=3]="Wednesday",i[i.Thursday=4]="Thursday",i[i.Friday=5]="Friday",i[i.Saturday=6]="Saturday"}(FC||(FC={})),FC}(),uB=function(r,t){var e=Ao(r.getFullYear(),0,1,-6),a=function(r,t){return t!==FC.Monday?rs(function(r,t){return Sae(r,t,NC.Backward)}(r,t),4):rs(r,4-(r.getDay()||7))}(r,t).getTime()-e.getTime(),o=Math.floor(a/864e5);return 1+Math.floor(o/7)},Tae=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FC.Monday;r=Ii(r);var e=rs(r,-7),n=rs(r,7),a=uB(r,t);return 0===a?uB(e,t)+1:53===a&&uB(n,t)>1?1:a},LC={schedule:function(r){var t=requestAnimationFrame,e=cancelAnimationFrame,n=LC.delegate;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);var a=t(function(o){e=void 0,r(o)});return new Je(function(){return null==e?void 0:e(a)})},requestAnimationFrame:function(i){function r(){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(){var i=LC.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,arguments)}),cancelAnimationFrame:function(i){function r(){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(){var i=LC.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,arguments)}),delegate:void 0},qnt=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).scheduler=e,a.work=n,a}return v(t,[{key:"requestAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?$(q(t.prototype),"requestAsyncId",this).call(this,n,a,o):(n.actions.push(this),n._scheduled||(n._scheduled=LC.requestAnimationFrame(function(){return n.flush(void 0)})))}},{key:"recycleAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return $(q(t.prototype),"recycleAsyncId",this).call(this,n,a,o);n.actions.some(function(s){return s.id===a})||(LC.cancelAnimationFrame(a),n._scheduled=void 0)}}]),t}(k6),Xnt=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"flush",value:function(n){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;n=n||o.shift();do{if(s=n.execute(n.state,n.delay))break}while((n=o[0])&&n.id===a&&o.shift());if(this._active=!1,s){for(;(n=o[0])&&n.id===a&&o.shift();)n.unsubscribe();throw s}}}]),t}(C6),Znt=new Xnt(qnt),Qnt=["kendoCalendarView",""];function Jnt(i,r){1&i&&(A(0,"td",3),te(1,"\xa0"),x())}function eit(i,r){if(1&i&&(A(0,"tr",4)(1,"th",5),te(2),x()()),2&i){var t=D();k(1),y("colSpan",t.colSpan),k(1),at(t.title)}}function tit(i,r){if(1&i&&te(0),2&i){var t=D(3).$implicit,e=D();Pt(" ",e.getWeekNumber(e.firstDate(t))," ")}}function nit(i,r){}var sh=function(r){return{click:r}},foe=function(r,t){return{$implicit:r,cellContext:t}};function iit(i,r){if(1&i&&(A(0,"td",9),T(1,tit,1,1,"ng-template",6),T(2,nit,0,0,"ng-template",10),x()),2&i){var t=D(2).$implicit,e=D();y("kendoEventsOutsideAngular",ot(5,sh,e.handleWeekNumberClick.bind(e,t))),k(1),y("ngIf",!e.weekNumberTemplateRef),k(1),y("ngIf",e.weekNumberTemplateRef)("ngTemplateOutlet",e.weekNumberTemplateRef)("ngTemplateOutletContext",ln(7,foe,e.firstDate(t),e.getWeekNumberContext(t)))}}function rit(i,r){if(1&i&&T(0,iit,3,10,"td",8),2&i){var t=D().$implicit,e=D(),n=Yt(1);y("ngIf",e.firstDate(t))("ngIfElse",n)}}function ait(i,r){1&i&&te(0),2&i&&at(D(2).$implicit.formattedValue)}function oit(i,r){}function sit(i,r){if(1&i&&T(0,oit,0,0,"ng-template",15),2&i){var t=D(2).$implicit;y("ngTemplateOutlet",D(2).templateRef)("ngTemplateOutletContext",ln(2,foe,t.value,t))}}function lit(i,r){if(1&i&&(A(0,"td",12)(1,"span",13),T(2,ait,1,1,"ng-template",6),T(3,sit,1,5,null,14),x()()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D().index,o=D();y("ngClass",o.getStyles(e))("title",e.title),ie("id",e.id)("data-cell-index",o.tableCellIndex(a,n))("aria-selected",e.isSelected||e.isRangeStart||e.isRangeMid||e.isRangeEnd)("aria-disabled",e.isDisabled),k(2),y("ngIf",!o.templateRef),k(1),y("ngIf",o.templateRef)}}function uit(i,r){if(1&i&&(Ge(0),T(1,lit,4,8,"td",11),Ve()),2&i){var t=r.$implicit,e=D(2),n=Yt(1);k(1),y("ngIf",e.shouldRenderCellContent(t))("ngIfElse",n)}}function cit(i,r){if(1&i&&(A(0,"tr",4),T(1,rit,1,2,"ng-template",6),T(2,uit,2,2,"ng-container",7),x()),2&i){var t=r.$implicit,e=D();k(1),y("ngIf",e.weekNumber),k(1),y("kForOf",t)}}function dit(i,r){if(1&i&&(A(0,"caption",7),te(1),x()),2&i){var t=D().date,e=D();y("ngClass",e.getCaptionClass()),k(1),at(e.getCaptionTitle(t))}}function hit(i,r){if(1&i&&(A(0,"th",11),te(1),x()),2&i){var t=r.$implicit;k(1),at(t)}}function fit(i,r){if(1&i&&(A(0,"thead",8)(1,"tr",9),T(2,hit,2,1,"th",10),x()()),2&i){var t=D(2);k(2),y("ngForOf",t.weekNames)}}function vit(i,r){if(1&i){var t=xe();A(0,"table",3),T(1,dit,2,2,"caption",4),T(2,fit,3,1,"thead",5),A(3,"tbody",6),Q("cellClick",function(s){return re(t),D().cellClick.emit(s)})("weekNumberCellClick",function(s){return re(t),D().weekNumberCellClick.emit(s)})("cellEnter",function(s){return re(t),D().cellEnter.emit(s)})("cellLeave",function(s){return re(t),D().cellLeave.emit(s)}),x()()}if(2&i){var e=r.date,n=r.className,a=D();y("ngClass",n),k(1),y("ngIf",a.showViewHeader),k(1),y("ngIf",a.isMonthView()),k(1),y("activeView",a.activeView)("isActive",a.isActive)("min",a.min)("max",a.max)("cellUID",a.cellUID)("focusedDate",a.focusedDate)("selectedDates",a.selectedDates)("selectionRange",a.selectionRange)("activeRangeEnd",a.activeRangeEnd)("weekNumber",a.weekNumber)("templateRef",a.cellTemplateRef)("weekNumberTemplateRef",a.weekNumberTemplateRef)("viewDate",e)}}function pit(i,r){}var voe=function(r){return{date:r,className:"k-pointer-events-none"}};function git(i,r){if(1&i&&T(0,pit,0,0,"ng-template",12),2&i){var t=D();y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,voe,t.nextAnimationDate))}}function mit(i,r){}var _it=function(r){return{date:r}};function yit(i,r){if(1&i&&T(0,mit,0,0,"ng-template",12),2&i){var t=r.$implicit;D(),y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,_it,t))}}function kit(i,r){}function Cit(i,r){if(1&i&&T(0,kit,0,0,"ng-template",12),2&i){var t=D();y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,voe,t.prevAnimationDate))}}function bit(i,r){1&i&&te(0),2&i&&at(D().title)}function Sit(i,r){}function wit(i,r){if(1&i){var t=xe();A(0,"button",8),Q("click",function(){return re(t),D().prevButtonClick.emit()}),z(1,"span",9),x()}if(2&i){var e=D();y("disabled",e.isPrevDisabled)("title",e.prevButtonTitle),ie("aria-disabled",e.isPrevDisabled)}}function Dit(i,r){if(1&i){var t=xe();A(0,"button",10),Q("click",function(){return re(t),D().nextButtonClick.emit()}),z(1,"span",11),x()}if(2&i){var e=D();y("disabled",e.isNextDisabled)("title",e.nextButtonTitle),ie("aria-disabled",e.isNextDisabled)}}var poe=function(r,t,e){return{$implicit:r,activeView:t,date:e}},Eit=function(r){return{focusin:r}},goe=["*"],moe=["list"];function Tit(i,r){if(1&i&&te(0),2&i){var t=D().$implicit;at(D().service.navigationTitle(t))}}function Ait(i,r){}function xit(i,r){if(1&i&&(A(0,"li")(1,"span"),T(2,Tit,1,1,"ng-template",5),T(3,Ait,0,0,"ng-template",6),x()()),2&i){var t=r.$implicit,e=r.index,n=D();ie("data-date-index",e),k(1),ue("k-calendar-navigation-marker",n.service.isRangeStart(t)),k(1),y("ngIf",!n.templateRef),k(1),y("ngIf",n.templateRef)("ngTemplateOutlet",n.templateRef)("ngTemplateOutletContext",va(7,poe,n.service.navigationTitle(t),n.activeViewValue,t))}}function Mit(i,r){if(1&i&&(A(0,"th",11),te(1),x()),2&i){var t=r.$implicit;Qe("width",D(2).colWidth,"%"),k(1),at(t)}}function Rit(i,r){if(1&i&&(A(0,"table",7)(1,"thead",8)(2,"tr",9),T(3,Mit,2,3,"th",10),x()()()),2&i){var t=D();k(3),y("ngForOf",t.weekNames)}}function Oit(i,r){1&i&&z(0,"col")}function Iit(i,r){if(1&i){var t=xe();A(0,"tbody",12),Q("cellClick",function(o){return re(t),D().cellClick.emit(o)})("weekNumberCellClick",function(o){return re(t),D().weekNumberCellClick.emit(o)}),x()}if(2&i){var e=r.$implicit,n=D();y("activeView",n.activeView)("isActive",n.isActive)("min",n.min)("max",n.max)("cellUID",n.cellUID)("focusedDate",n.focusedDate)("selectedDates",n.selectedDates)("weekNumber",n.weekNumber)("templateRef",n.cellTemplateRef)("weekNumberTemplateRef",n.weekNumberTemplateRef)("viewDate",e)}}function Nit(i,r){if(1&i){var t=xe();A(0,"kendo-calendar-navigation",5),Q("valueChange",function(a){return re(t),D(2).handleNavigation(a)})("pageChange",function(){return re(t),D(2).onPageChange()}),x()}if(2&i){var e=D(2);y("activeView",e.activeViewEnum)("focusedDate",e.focusedDate)("min",e.min)("max",e.max)("templateRef",null==e.navigationItemTemplateRef?null:e.navigationItemTemplateRef.templateRef)}}function Fit(i,r){if(1&i){var t=xe();Ge(0),T(1,Nit,1,5,"kendo-calendar-navigation",2),A(2,"kendo-calendar-viewlist",3),Q("todayButtonClick",function(o){return re(t),D().handleDateChange({selectedDates:[o],focusedDate:o})})("cellClick",function(o){return re(t),D().handleCellClick(o)})("weekNumberCellClick",function(o){return re(t),D().handleWeekNumberClick(o)})("activeDateChange",function(o){return re(t),D().handleActiveDateChange(o)})("pageChange",function(){return re(t),D().onPageChange()}),x(),A(3,"kendo-resize-sensor",4),Q("resize",function(){return re(t),D().onResize()}),x(),Ve()}if(2&i){var n,e=D();k(1),y("ngIf",e.navigation),k(1),y("activeView",e.activeViewEnum)("isActive",e.isActive)("cellTemplateRef",null==(n=e.activeCellTemplate())?null:n.templateRef)("headerTitleTemplateRef",null==e.headerTitleTemplateRef?null:e.headerTitleTemplateRef.templateRef)("weekNumberTemplateRef",null==e.weekNumberTemplateRef?null:e.weekNumberTemplateRef.templateRef)("cellUID",e.cellUID)("min",e.min)("max",e.max)("focusedDate",e.focusedDate)("weekNumber",e.weekNumber)("selectedDates",e.selectedDates)}}function Lit(i,r){if(1&i){var t=xe();Ge(0),A(1,"kendo-multiviewcalendar",6,7),Q("activeViewChange",function(a){return re(t),D().handleActiveViewChange(a)})("navigate",function(a){return re(t),D().handleNavigate(a)})("valueChange",function(a){re(t);var o=Yt(2);return D().handleMultiViewCalendarValueChange(a,o.focusedDate)})("focus",function(){return re(t),D().handleFocus()})("blur",function(a){return re(t),D().handleBlur(a)})("keydown",function(a){return re(t),D().handleMultiViewCalendarKeydown(a)}),z(3,"kendo-multiviewcalendar-messages",8),x(),Ve()}if(2&i){var e=D();k(1),y("views",1)("min",e.min)("max",e.max)("isActive",e.isActive)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("weekNumber",e.weekNumber)("animateNavigation",e.animateNavigation)("cellTemplate",e.activeCellTemplate())("monthCellTemplate",e.monthCellTemplateRef)("yearCellTemplate",e.yearCellTemplateRef)("decadeCellTemplate",e.decadeCellTemplateRef)("centuryCellTemplate",e.centuryCellTemplateRef)("headerTitleTemplate",e.headerTitleTemplateRef)("weekNumberTemplate",e.weekNumberTemplateRef)("focusedDate",e.focusedDate)("selection",e.selection)("value",e.value)("disabledDates",e.disabledDates),k(2),y("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))}}var Pit=["dateInput"],Bit=["spinup"],Git=["spindown"];function Vit(i,r){if(1&i){var t=xe();A(0,"span",4),Q("mousedown",function(a){return a.preventDefault()}),A(1,"button",5,6),Q("mousedown",function(){re(t);var a=D();return a.arrowDirection=a.arrow.Up})("mouseleave",function(){re(t);var a=D();return a.arrowDirection=a.arrow.None})("click",function(){return re(t),D().handleButtonClick(1)}),z(3,"span",7),x(),A(4,"button",8,9),Q("click",function(){return re(t),D().handleButtonClick(-1)})("mousedown",function(){re(t);var a=D();return a.arrowDirection=a.arrow.Down})("mouseleave",function(){re(t);var a=D();return a.arrowDirection=a.arrow.None}),z(6,"span",10),x()()}if(2&i){var e=D();k(1),ue("k-active",e.arrowDirection===e.arrow.Up),y("title",e.localization.get("increment")),ie("aria-label",e.localization.get("increment")),k(3),ue("k-active",e.arrowDirection===e.arrow.Down),y("title",e.localization.get("decrement")),ie("aria-label",e.localization.get("decrement"))}}var Uit=function(r,t,e,n,a,o,s){return{click:r,focus:t,mousedown:e,touchstart:n,dragstart:a,drop:o,blur:s}},T1=["container"],cB=["popupTemplate"],dB=["toggleButton"];function zit(i,r){}var _oe=function(r){return{keydown:r}};function Hit(i,r){if(1&i){var t=xe();A(0,"kendo-calendar",8,9),Q("valueChange",function(a){re(t);var o=D();return o.handleChange(o.mergeTime(a))}),z(2,"kendo-calendar-messages",10),x(),T(3,zit,0,0,"ng-template")}if(2&i){var e=D();y("type",e.calendarType)("min",e.min)("max",e.max)("navigation",e.navigation)("animateNavigation",e.animateCalendarNavigation)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("weekNumber",e.weekNumber)("cellTemplate",e.cellTemplate)("monthCellTemplate",e.monthCellTemplate)("yearCellTemplate",e.yearCellTemplate)("decadeCellTemplate",e.decadeCellTemplate)("centuryCellTemplate",e.centuryCellTemplate)("weekNumberTemplate",e.weekNumberTemplate)("headerTitleTemplate",e.headerTitleTemplate)("navigationItemTemplate",e.navigationItemTemplate)("focusedDate",e.focusedDate)("value",e.value)("kendoEventsOutsideAngular",ot(25,_oe,e.handleKeydown))("scope",e)("disabledDates",e.disabledDates),k(2),y("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))}}var yoe=function(r,t){return{click:r,mousedown:t}},cm={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652250169,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},zt=function(){return function(i){i[i.Left=0]="Left",i[i.Right=1]="Right",i[i.Up=2]="Up",i[i.Down=3]="Down",i[i.PrevView=4]="PrevView",i[i.NextView=5]="NextView",i[i.FirstInView=6]="FirstInView",i[i.LastInView=7]="LastInView",i[i.LowerView=8]="LowerView",i[i.UpperView=9]="UpperView"}(zt||(zt={})),zt}(),vt=function(){return function(i){i[i.month=0]="month",i[i.year=1]="year",i[i.decade=2]="decade",i[i.century=3]="century"}(vt||(vt={})),vt}(),Au=new Date(1980,0,1),Rl=new Date(1900,0,1),Ol=new Date(2099,11,31),so=(new Date(1980,0,1),new Date(1980,0,1,23,59,59),{start:null,end:null}),A1=function(r){return r&&(!r.touched||r.control&&"blur"===r.control.updateOn)},mrt=function(r){return r.preventDefault()},St=function(r){return null!=r},koe=function(r){return null!=r},PC=function(r){return function(t,e){var n=Ke(t);return n[r](e),n}},xu=function(r,t){var e=Ke(r);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},krt=PC("setFullYear"),x1=PC("setHours"),M1=PC("setMinutes"),R1=PC("setSeconds"),O1=PC("setMilliseconds"),Pa=function(r,t){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=[],a=r;ar||e&&ee?Ke(e):r)},Il=function(){return Ii(new Date)},Bt=function(r){},Soe=function(r,t){return r.slice(t).concat(r.slice(0,t))},as=function(r){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=document.createElement(r);return a.className=e,Object.keys(n).map(function(o){return a.style[o]=n[o]}),"string"==typeof t?a.innerHTML=t||"":(t||[]).forEach(function(o){return o&&a.appendChild(o)}),a}},lh=function(r,t){return void 0!==r[t]},woe=function(r,t){return r[t]&&null!=r[t].currentValue},uh=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r&&r[r.length-1]},N1=function(r,t){var e=t||so,n=e.start,a=e.end;return!(!n||!a)&&nC.getFullYear();if(!n.isInRange(N,u,l)||V)return null;var U=n.isEqual(N,h.start),ee=n.isEqual(N,h.end),G=!U&&!ee&&N1(N,h);return{formattedValue:n.value(N),id:"".concat(a).concat(N.getTime()),isFocused:n.isEqual(N,o),isSelected:s&&c.some(function(I){return n.isEqual(N,I)}),isWeekend:!1,isRangeStart:U,isRangeMid:G,isRangeEnd:ee,isRangeSplitEnd:G&&n.isEqual(N,C),isRangeSplitStart:G&&n.isEqual(N,_),isToday:n.isEqual(N,w),title:n.cellTitle(N),value:N}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&oo(e).getFullYear()===oo(n).getFullYear()}},{key:"isInArray",value:function(e,n){if(!n.length)return!1;var a=e.getFullYear();return n[0].getFullYear()<=a&&a<=n[n.length-1].getFullYear()+99}},{key:"isInRange",value:function(e,n,a){var o=oo(e).getFullYear(),s=!n||oo(n).getFullYear()<=o,l=!a||o<=oo(a).getFullYear();return s&&l}},{key:"beginningOfPeriod",value:function(e){if(!e)return e;var n=oo(hv(e));return Ao(n.getFullYear(),0,1)}},{key:"lastDayOfPeriod",value:function(e){var n=S1(e),a=OC(n),o=IC(a);return Ml(o)}},{key:"isRangeStart",value:function(e){return e.getFullYear()%1e3==0}},{key:"move",value:function(e,n){var a=Irt[n];return a?a(e):e}},{key:"cellTitle",value:function(e){return oo(e).getFullYear().toString()}},{key:"navigationTitle",value:function(e){return e?hv(e).getFullYear().toString():""}},{key:"title",value:function(e){return e?"".concat(hv(e).getFullYear()," - ").concat(S1(e).getFullYear()):""}},{key:"rowLength",value:function(){return 4}},{key:"skip",value:function(e,n){return yae(n,e)}},{key:"total",value:function(e,n){return yae(e,n)+1}},{key:"value",value:function(e){return e?oo(e).getFullYear().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Nrt=[[]],Lrt=(De(Du={},zt.Left,function(i){return xo(i,-1)}),De(Du,zt.Up,function(i){return xo(i,-5)}),De(Du,zt.Right,function(i){return xo(i,1)}),De(Du,zt.Down,function(i){return xo(i,5)}),De(Du,zt.PrevView,function(i){return Ws(i,-1)}),De(Du,zt.NextView,function(i){return Ws(i,1)}),De(Du,zt.FirstInView,function(i){return oo(i)}),De(Du,zt.LastInView,function(i){return OC(i)}),Du),CB=function(){var i=function(){function r(){p(this,r),this.dateRange=function(t,e){if(!St(t)||!St(e))return[];for(var n=[],a=t;a<=e;)n.push(a),a=xo(a,1);return n}}return v(r,[{key:"addToDate",value:function(e,n){return Ws(e,n)}},{key:"datesList",value:function(e,n){return Pa(0,n).map(function(a){return Ws(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate;if(!f)return Nrt;var g=Pa(0,4),_=oo(f),C=OC(f),w=Il();return Pa(0,3).map(function(E){var M=xo(_,4*E);return g.map(function(R){var N=n.normalize(xo(M,R),u,l),V=N.getFullYear()>C.getFullYear();if(!n.isInRange(N,u,l)||V)return null;var U=n.isEqual(N,h.start),ee=n.isEqual(N,h.end),G=!U&&!ee&&N1(N,h);return{formattedValue:n.value(N),id:"".concat(a).concat(N.getTime()),isFocused:n.isEqual(N,o),isSelected:s&&c.some(function(I){return n.isEqual(N,I)}),isWeekend:!1,isRangeStart:U,isRangeMid:G,isRangeEnd:ee,isRangeSplitEnd:G&&n.isEqual(N,C),isRangeSplitStart:G&&n.isEqual(N,_),isToday:n.isEqual(N,w),title:n.cellTitle(N),value:N}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&e.getFullYear()===n.getFullYear()}},{key:"isInArray",value:function(e,n){if(!n.length)return!1;var a=e.getFullYear();return n[0].getFullYear()<=a&&a<=n[n.length-1].getFullYear()+9}},{key:"isInRange",value:function(e,n,a){var o=e.getFullYear(),s=!n||n.getFullYear()<=o,l=!a||o<=a.getFullYear();return s&&l}},{key:"beginningOfPeriod",value:function(e){if(!e)return e;var n=oo(e);return Ao(n.getFullYear(),0,1)}},{key:"lastDayOfPeriod",value:function(e){var n=OC(e),a=IC(n);return Ml(a)}},{key:"isRangeStart",value:function(e){return e.getFullYear()%100==0}},{key:"move",value:function(e,n){var a=Lrt[n];return a?a(e):e}},{key:"cellTitle",value:function(e){return e.getFullYear().toString()}},{key:"navigationTitle",value:function(e){return e?oo(e).getFullYear().toString():""}},{key:"title",value:function(e){return e?"".concat(oo(e).getFullYear()," - ").concat(OC(e).getFullYear()):""}},{key:"rowLength",value:function(){return 4}},{key:"skip",value:function(e,n){return kae(n,e)}},{key:"total",value:function(e,n){return kae(e,n)+1}},{key:"value",value:function(e){return e?e.getFullYear().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Prt=[[]],Grt=(De(Eu={},zt.Left,function(i){return rs(i,-1)}),De(Eu,zt.Up,function(i){return Cae(i,-1)}),De(Eu,zt.Right,function(i){return rs(i,1)}),De(Eu,zt.Down,function(i){return Cae(i,1)}),De(Eu,zt.PrevView,function(i){return Kr(i,-1)}),De(Eu,zt.NextView,function(i){return Kr(i,1)}),De(Eu,zt.FirstInView,function(i){return bae(i)}),De(Eu,zt.LastInView,function(i){return Ml(i)}),Eu),SB=function(){var i=function(){function r(t){p(this,r),this._intlService=t,this.dateRange=function(e,n){if(!St(e)||!St(n))return[];for(var a=[],o=e;o<=n;)a.push(o),o=rs(o,1);return a}}return v(r,[{key:"addToDate",value:function(e,n){return Kr(e,n)}},{key:"datesList",value:function(e,n){return Pa(0,n).map(function(a){return Kr(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate,g=e.isDateDisabled,_=void 0===g?function(){return!1}:g;if(!f)return Prt;var C=bae(f),w=Ii(C),E=Ml(f),M=Ii(E),N=Sae(C,this._intlService.firstDay(),-1),V=Pa(0,7),U=Il();return Pa(0,6).map(function(ee){var ve=rs(N,7*ee);return V.map(function(G){var I=n.normalize(rs(ve,G),u,l),K=Ii(I),H=KM;if(Il)return null;var me=n.isEqual(I,h.start),ae=n.isEqual(I,h.end),Ce=!me&&!ae&&N1(I,h);return{formattedValue:n.value(I),id:"".concat(a).concat(I.getTime()),isFocused:n.isEqual(I,o),isSelected:s&&c.some(function(_e){return n.isEqual(I,_e)}),isWeekend:n.isWeekend(I),isRangeStart:me,isRangeMid:Ce,isRangeEnd:ae,isRangeSplitStart:Ce&&n.isEqual(I,C),isRangeSplitEnd:Ce&&n.isEqual(I,E),isToday:n.isEqual(I,U),title:n.cellTitle(I),value:I,isDisabled:_(I),isOtherMonth:H}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&Ii(e).getTime()===Ii(n).getTime()}},{key:"isInArray",value:function(e,n){if(0===n.length)return!1;var a=this.beginningOfPeriod(n[0]),o=this.beginningOfPeriod(Kr(n[n.length-1],1));return a<=e&&e0&&void 0!==arguments[0]?arguments[0]:{};return 7+(e.prependCell?1:0)}},{key:"skip",value:function(e,n){return wae(n,e)}},{key:"total",value:function(e,n){return wae(e,n)+1}},{key:"value",value:function(e){return e?e.getDate().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}},{key:"wideMonthNames",value:function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Vrt=[[]],Krt=(De(Tu={},zt.Left,function(i){return Kr(i,-1)}),De(Tu,zt.Up,function(i){return Kr(i,function(r){return r>4?-5:r<2?-2:-7}(i.getMonth()))}),De(Tu,zt.Right,function(i){return Kr(i,1)}),De(Tu,zt.Down,function(i){return Kr(i,function(r){return r<7?5:r<10?7:2}(i.getMonth()))}),De(Tu,zt.PrevView,function(i){return xo(i,-1)}),De(Tu,zt.NextView,function(i){return xo(i,1)}),De(Tu,zt.FirstInView,function(i){return Dae(i)}),De(Tu,zt.LastInView,function(i){return IC(i)}),Tu),DB=function(){var i=function(){function r(t){p(this,r),this._intlService=t,this.dateRange=function(e,n){if(!St(e)||!St(n))return[];for(var a=[],o=e;o<=n;)a.push(o),o=Kr(o,1);return a}}return v(r,[{key:"addToDate",value:function(e,n){return xo(e,n)}},{key:"datesList",value:function(e,n){return Pa(0,n).map(function(a){return xo(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate;if(!f)return Vrt;var g=this.abbrMonthNames(),_=Dae(f),C=IC(f),w=_.getFullYear(),E=Pa(0,4),M=Il();return Pa(0,3).map(function(R){var N=Kr(_,4*R);return E.map(function(V){var U=n.normalize(Kr(N,V),u,l),ee=w2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),jrt=(De(um={},vt.month,SB),De(um,vt.year,DB),De(um,vt.decade,CB),De(um,vt.century,yB),um),Nl=function(){var i=function(){function r(t){p(this,r),this.injector=t,this.viewChanged=new O,this.bottom=vt.month,this.top=vt.century}return v(r,[{key:"configure",value:function(e,n){this.bottom=e,this.top=n}},{key:"service",value:function(e){var n=jrt[e];return n?this.injector.get(n):null}},{key:"moveDown",value:function(e){this.move(e,-1)}},{key:"moveUp",value:function(e){this.move(e,1)}},{key:"moveToBottom",value:function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})}},{key:"canMoveDown",value:function(e){return this.bottomthis.top?this.top:e}},{key:"move",value:function(e,n){var a=this.clamp(function(r,t){var e=vt[vt[r+t]];return void 0!==e?e:r}(e,n));a!==e&&this.viewChanged.emit({view:a})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),EB=function(){var i=function(){function r(t){p(this,r),this.intl=t}return v(r,[{key:"getWeekNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Soe(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(n):n}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),TB=function(r,t,e){for(;r&&r!==e&&!t(r);)r=r.parentNode;if(r!==e)return r},AB=function(r,t){for(;r&&!t(r);)r=r.parentNode;return r},Toe=function(){return!1},Ru=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.isDateDisabled=Toe}return v(r,[{key:"initialize",value:function(e){if("function"==typeof e)this.isDateDisabled=function(o){return e(Ii(o))};else if(function(r){return Array.isArray(r)&&r.length>0&&r.every(function(t){return"number"==typeof t})}(e)){var n=new Set(e);this.isDateDisabled=function(o){return n.has(o.getDay())}}else if(function(r){return Array.isArray(r)&&r.length>0&&r.every(function(t){return t instanceof Date})}(e)){var a=new Set(e.map(function(o){return Ii(o).getTime()}));this.isDateDisabled=function(o){return a.has(Ii(o).getTime())}}else this.isDateDisabled=Toe,this.notifyInvalidInput(e);this.notifyServiceChange()}},{key:"notifyInvalidInput",value:function(e){if(St(e)&&xt())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check ".concat("https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/"," for more information."))}},{key:"notifyServiceChange",value:function(){this.changes.next()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),qrt=function(){function i(r,t,e,n){p(this,i),this.$implicit=r,this.kForOf=t,this.index=e,this.count=n}return v(i,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),i}(),P1=function(){var i=function(){function r(t,e,n){p(this,r),this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return v(r,[{key:"kForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngOnChanges",value:function(e){if("kForOf"in e){var n=e.kForOf.currentValue;if(this._differ||!n)return;try{this._differ=this._differs.find(n).create(this.kForTrackBy)}catch(a){throw new Error("Cannot find a differ supporting object '".concat(n,"' of type '").concat(function Xrt(i){return i.name||typeof i}(n),"'."))}}}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}}},{key:"_applyChanges",value:function(e){if(Ze()){var n=this._viewContainer.length,a=this.kForOf.length,o={};e.forEachOperation(function(d,h,f){null!==f&&(o[f]=d.item)});for(var s=n;sa;l--)this._viewContainer.remove(l-1);for(var u=0;u0&&lh(e,"views");(o||!this.isInDates(n)||s||!this.activeDate)&&(this.dates=this.service.datesList(a,this.getTake(this.skip)),this.activeDate=Ke(this.dates[0]),this.activeDateChange.emit(this.activeDate))}}},{key:"ngAfterViewInit",value:function(){1===this.views&&this.setTableMinWidth()}},{key:"ngOnDestroy",value:function(){this.intlSubscription.unsubscribe()}},{key:"initService",value:function(){this.service=this.bus.service(this.activeView)}},{key:"isMonthView",value:function(){return this.activeView===vt.month}},{key:"getCaptionTitle",value:function(e){return this.service.title(e)}},{key:"getCaptionClass",value:function(){return this.isMonthView()?"k-month-header":"k-meta-header"}},{key:"animateView",value:function(e){var n=this,a=this.element.nativeElement,o=a.querySelector("table"),s=parseFloat(getComputedStyle(a).width),l=parseFloat(getComputedStyle(o).width);this.renderer.setStyle(a,"width","".concat(s,"px")),this.renderer.setStyle(a,"overflow","visible"),e===zt.NextView?this.nextAnimationDate=Ke(this.dates[0]):this.prevAnimationDate=Ke(this.dates[this.dates.length-1]),this.cdr.detectChanges(),a.querySelectorAll("table").forEach(function(f){n.renderer.setStyle(f,"width","".concat(l,"px")),1===n.views&&n.renderer.setStyle(f,"min-width","".concat(s,"px"))});var u=o.getBoundingClientRect(),c=parseFloat(getComputedStyle(a).columnGap),d=e===zt.NextView?"translateX(0)":"translateX(-".concat(u.width+c,"px)"),h=e===zt.NextView?"translateX(-".concat(u.width+c,"px)"):"translateX(0)";this.animation?this.animation.cancel():(this.animation=a.animate([{transform:d},{transform:h}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=function(){n.renderer.removeStyle(a,"width"),n.renderer.removeStyle(a,"overflow"),a.querySelectorAll("table").forEach(function(f){n.renderer.removeStyle(f,"width")}),n.animation=null,n.nextAnimationDate=null,n.prevAnimationDate=null,n.cdr.detectChanges()})}},{key:"navigate",value:function(e){this.animateNavigation&&Ze()&&St(this.element.nativeElement.animate)&&this.animateView(e);var n=this.move(e),a=this.service.datesList(n,this.getTake(this.skip));return this.isListInRange(a)&&(this.dates=a),this.activeDate=Ke(this.dates[0]),this.focusedDate=Ke(n),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),Ke(n)}},{key:"canNavigate",value:function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))}},{key:"setTableMinWidth",value:function(){var e=this.element.nativeElement,n=e.querySelector("table");if(n){var a=parseFloat(getComputedStyle(e).width);this.renderer.setStyle(n,"min-width","".concat(a,"px"))}}},{key:"intlChange",value:function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()}},{key:"clampDate",value:function(e){return Mu(e,this.min,this.max)}},{key:"move",value:function(e){return this.service.move(this.dates[0]||this.focusedDate,e)}},{key:"isListInRange",value:function(e){var n=this.service.beginningOfPeriod(this.min),a=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return n<=e[0]&&e[e.length-1]u[0]?u[0]:uh(u)}else u=[n],l=n;else u=[n],l=n;return{selectedDates:u,rangePivot:l}}},{key:"isDateSelected",value:function(e,n){return e.some(function(a){return vi(a,n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Nl))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),G1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarCellTemplate",""]]}),i}(),V1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarMonthCellTemplate",""]]}),i}(),U1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarYearCellTemplate",""]]}),i}(),z1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarDecadeCellTemplate",""]]}),i}(),H1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarCenturyCellTemplate",""]]}),i}(),K1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarWeekNumberCellTemplate",""]]}),i}(),j1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarHeaderTitleTemplate",""]]}),i}(),GC=function(r){return function(t){return r&&t.value&&t.valuer?{maxError:{maxValue:r,value:t.value}}:null}},Yrt=function(){return null},W1=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-multiview-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[j]}),i}(),Jrt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(W1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoMultiViewCalendarLocalizedMessages",""]],features:[de([{provide:W1,useExisting:ye(function(){return i})}]),j]}),i}(),Roe="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",rat={multi:!0,provide:jn,useExisting:ye(function(){return fh})},aat={multi:!0,provide:tr,useExisting:ye(function(){return fh})},fh=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.bus=t,this.element=e,this.navigator=n,this.renderer=a,this.cdr=o,this.zone=s,this.disabledDatesService=l,this.selectionService=u,this.id=qn(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.isHeaderActive=!1,this.activeView=vt[vt.month],this.bottomView=vt[vt.month],this.topView=vt[vt.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new O,this.navigate=new O,this.cellEnter=new O,this.cellLeave=new O,this.valueChange=new O,this.blurEvent=new O,this.cellUID=qn(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=zt.PrevView,this.nextView=zt.NextView,this.selectedDates=[],this._min=new Date(Rl),this._max=new Date(Ol),this._focusedDate=Il(),this.resolvedPromise=Promise.resolve(),this.onControlChange=Bt,this.onControlTouched=Bt,this.onValidatorChange=Bt,this.minValidateFn=Bt,this.maxValidateFn=Bt,this.disabledDatesRangeValidateFn=Bt,this.subscriptions=new Je,this.setClasses(e.nativeElement)}return v(r,[{key:"focusedDate",get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||Il()}},{key:"min",get:function(){return this._min},set:function(e){this._min=e||new Date(Rl)}},{key:"max",get:function(){return this._max},set:function(e){this._max=e||new Date(Ol)}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(function(o){return St(o)}).map(function(o){return Ke(o)}):Ke(e);var n=[].concat(e).filter(function(o){return St(o)}).map(function(o){return Ke(o)});if(!L1(n,this.selectedDates)){var a=uh(n);this.rangePivot=Ke(a),this.focusedDate=Ke(a)||this.focusedDate,this.selectedDates=n}}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledDates",set:function(e){this.disabledDatesService.initialize(e)}},{key:"selectionRange",get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()}},{key:"cellTemplateRef",get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e}},{key:"monthCellTemplateRef",get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e}},{key:"yearCellTemplateRef",get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e}},{key:"decadeCellTemplateRef",get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e}},{key:"centuryCellTemplateRef",get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e}},{key:"weekNumberTemplateRef",get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e}},{key:"headerTitleTemplateRef",get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e}},{key:"activeViewEnum",get:function(){var e=vt[this.activeView];return et.end)return null;var n=function(r,t,e){if(!(r&&t&&e)||r>t)return[];for(var n=[],a=r;a<=t;)e(a)&&n.push(a),a=rs(a,1);return n}(t.start,t.end,r);return n.length?{disabledDatesInRange:n}:null}:Yrt}(this.disabledDatesService.isDateDisabled):Bt,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"ngAfterViewInit",value:function(){this.updateButtonState()}},{key:"focus",value:function(){!this.element||this.element.nativeElement.focus()}},{key:"blur",value:function(){!this.element||this.element.nativeElement.blur()}},{key:"handleHeaderFocus",value:function(){this.isHeaderActive=!0}},{key:"handleDateChange",value:function(e){var n=this,a=this.bus.canMoveDown(this.activeViewEnum),o=e.selectedDates.filter(function(l){return!n.disabledDatesService.isDateDisabled(l)});this.focusedDate=e.focusedDate||this.focusedDate;var s=!a&&L1(o,this.selectedDates);if(!this.disabled&&!s){if(a)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=o.map(function(l){return Ke(l)}),this.value=this.parseSelectionToValue(o),this.onControlChange(this.parseSelectionToValue(o)),this.valueChange.emit(this.parseSelectionToValue(o)))}}},{key:"handleTodayButtonClick",value:function(e){var n=e.focusedDate,a=this.bus.service(this.activeViewEnum).isInArray(n,this.viewList.dates),o=!this.bus.canMoveDown(this.activeViewEnum);!a&&o&&this.emitNavigate(n),this.handleDateChange(e)}},{key:"setActiveDate",value:function(e){this.activeDate=Ke(e),this.cdr.detectChanges()}},{key:"writeValue",value:function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()}},{key:"registerOnChange",value:function(e){this.onControlChange=e}},{key:"registerOnTouched",value:function(e){this.onControlTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.cdr.markForCheck()}},{key:"validate",value:function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)}},{key:"registerOnValidatorChange",value:function(e){this.onValidatorChange=e}},{key:"activeCellTemplate",value:function(){switch(this.activeViewEnum){case vt.month:return this.monthCellTemplateRef||this.cellTemplateRef;case vt.year:return this.yearCellTemplateRef;case vt.decade:return this.decadeCellTemplateRef;case vt.century:return this.centuryCellTemplateRef;default:return null}}},{key:"navigateView",value:function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)}},{key:"emitNavigate",value:function(e){this.navigate.emit({activeView:vt[this.activeViewEnum],focusedDate:e})}},{key:"emitCellEvent",value:function(e,n){ut(e)&&this.zone.run(function(){e.emit(n)})}},{key:"handleCellClick",value:function(e){this.performSelection(e.date,e.modifiers),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}},{key:"handleWeekNumberClick",value:function(e){var n=this;"single"!==this.selection&&this.zone.run(function(){n.handleDateChange({selectedDates:e,focusedDate:uh(e)})})}},{key:"setClasses",value:function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")}},{key:"verifyChanges",value:function(){if(xt()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max","."));if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview","."))}}},{key:"verifyValue",value:function(e){if(xt()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat(Roe," for possible resolution."));if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(function(a){return a instanceof Date}))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check ".concat(Roe," for possible resolution."))}}},{key:"updateButtonState",value:function(){var e=this;this.resolvedPromise.then(function(){e.isPrevDisabled=!e.viewList.canNavigate(e.prevView),e.isNextDisabled=!e.viewList.canNavigate(e.nextView),e.cdr.markForCheck()})}},{key:"parseSelectionToValue",value:function(e){return e=e||[],"single"===this.selection?Ke(uh(e)):e.map(function(n){return Ke(n)})}},{key:"performSelection",value:function(e,n){var a=this.selectionService.performSelection({date:e,modifiers:n,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=a.rangePivot,this.handleDateChange({selectedDates:a.selectedDates,focusedDate:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(ke),m(BC),m(Ee),m(nt),m(be),m(Ru),m(B1))},i.\u0275cmp=L({type:i,selectors:[["kendo-multiviewcalendar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,G1,5),he(n,V1,5),he(n,U1,5),he(n,z1,5),he(n,H1,5),he(n,K1,5),he(n,j1,5)),2&t&&(P(a=B())&&(e.cellTemplate=a.first),P(a=B())&&(e.monthCellTemplate=a.first),P(a=B())&&(e.yearCellTemplate=a.first),P(a=B())&&(e.decadeCellTemplate=a.first),P(a=B())&&(e.centuryCellTemplate=a.first),P(a=B())&&(e.weekNumberTemplate=a.first),P(a=B())&&(e.headerTitleTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(xB,5,ke),ge(Moe,5)),2&t&&(P(n=B())&&(e.headerElement=n.first),P(n=B())&&(e.viewList=n.first))},hostVars:6,hostBindings:function(t,e){1&t&&Q("focusout",function(a){return e.handleFocusout(a)})("focus",function(){return e.handleFocus()})("mouseenter",function(){return e.handleMouseEnter()})("mouseleave",function(){return e.handleMouseLeave()})("mousedown",function(a){return e.handleMousedown(a)})("click",function(){return e.handleClick()})("keydown",function(a){return e.keydown(a)}),2&t&&(ie("id",e.widgetId)("tabindex",e.calendarTabIndex)("aria-disabled",e.ariaDisabled)("aria-activedescendant",e.ariaActivedescendant),ue("k-disabled",e.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",isActive:"isActive",disabledDates:"disabledDates",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",views:"views",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange",blurEvent:"blur"},exportAs:["kendo-multiviewcalendar"],features:[de([Nl,rat,aat,Y,Ru,{provide:Dt,useValue:"kendo.multiviewcalendar"},BC,B1]),Ie],decls:3,vars:28,consts:function(){return[["kendoMultiViewCalendarLocalizedMessages","","today",$localize(Aae||(Aae=le([":kendo.multiviewcalendar.today|The label for the today button in the calendar header:Today"]))),"prevButtonTitle",$localize(xae||(xae=le([":kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar:Navigate to previous view"]))),"nextButtonTitle",$localize(Mae||(Mae=le([":kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar:Navigate to next view"])))],[3,"activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","kendoEventsOutsideAngular","scope","todayButtonClick","prevButtonClick","nextButtonClick"],[3,"activeView","isActive","cellTemplateRef","weekNumberTemplateRef","cellUID","views","min","max","focusedDate","animateNavigation","showViewHeader","weekNumber","activeRangeEnd","selectionRange","selectedDates","cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange"]]},template:function(t,e){var n;1&t&&(Wt(0,0),A(1,"kendo-calendar-header",1),Q("todayButtonClick",function(o){return e.handleTodayButtonClick({selectedDates:[o],focusedDate:o})})("prevButtonClick",function(){return e.navigateView(e.prevView)})("nextButtonClick",function(){return e.navigateView(e.nextView)}),x(),A(2,"kendo-calendar-horizontal",2),Q("cellClick",function(o){return e.handleCellClick(o)})("weekNumberCellClick",function(o){return e.handleWeekNumberClick(o)})("cellEnter",function(o){return e.emitCellEvent(e.cellEnter,o)})("cellLeave",function(o){return e.emitCellEvent(e.cellLeave,o)})("activeDateChange",function(o){return e.setActiveDate(o)}),x()),2&t&&(k(1),y("activeView",e.activeViewEnum)("currentDate",e.activeDate)("min",e.min)("max",e.max)("rangeLength",e.views)("templateRef",null==e.headerTitleTemplateRef?null:e.headerTitleTemplateRef.templateRef)("isPrevDisabled",e.isPrevDisabled)("isNextDisabled",e.isNextDisabled)("showNavigationButtons",!0)("kendoEventsOutsideAngular",ot(26,Eit,e.handleHeaderFocus))("scope",e),k(1),y("activeView",e.activeViewEnum)("isActive",e.isActive||e.isHovered&&!e.isHeaderActive)("cellTemplateRef",null==(n=e.activeCellTemplate())?null:n.templateRef)("weekNumberTemplateRef",null==e.weekNumberTemplateRef?null:e.weekNumberTemplateRef.templateRef)("cellUID",e.cellUID)("views",e.views)("min",e.min)("max",e.max)("focusedDate",e.focusedDate)("animateNavigation",e.animateNavigation)("showViewHeader",e.showViewHeader)("weekNumber",e.weekNumber)("activeRangeEnd",e.activeRangeEnd)("selectionRange",e.selectionRange)("selectedDates",e.selectedDates))},directives:[xB,Moe,Jrt,qi],encapsulation:2,changeDetection:0}),i}(),sat=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0;p(this,i),this.total=r,this.rowHeight=t,this.detailRowHeight=e,this.offsets=[],this.heights=[];for(var n=0,a=0;athis.rowHeight&&this.updateRowHeight(t,-1*this.detailRowHeight)}},{key:"index",value:function(t){if(!(t<0)){var e=this.offsets.reduce(function(n,a,o){return void 0!==n?n:a===t?o:a>t?o-1:void 0},void 0);return void 0===e?this.total-1:e}}},{key:"offset",value:function(t){return this.offsets[t]}},{key:"totalHeight",value:function(){return this.heights.reduce(function(t,e){return t+e},0)}},{key:"updateRowHeight",value:function(t,e){this.heights[t]+=e,this.offsets=function(r,t,e){return[].concat(Ae(r.slice(0,t+1)),Ae(r.slice(t+1).map(function(n){return n+e})))}(this.offsets,t,e)}}]),i}(),$1=function(r){return Math.max(r,0)},MB=v(function i(r){p(this,i),this.offset=r}),q1=v(function i(r){p(this,i),this.skip=r}),lat=function(){function i(r){p(this,i),this.scrollObservable=r,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return v(i,[{key:"create",value:function(t,e,n,a){var o=this,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"vertical";this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+n,this.take=n,this.total=a,this.lastScroll=0,this.topOffset=s,this.bottomOffset=l,this.direction=u;var c=new A6(2),d=this.rowsForHeight(s),h=$1(e-d);return c.next(new MB(this.rowOffset(h))),d&&c.next(new q1(h)),this.subscription=new An(function(f){o.unsubscribe(),o.scrollSubscription=o.scrollObservable.subscribe(function(g){return o.onScroll(g,f)})}).subscribe(function(f){return c.next(f)}),c}},{key:"destroy",value:function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}},{key:"onScroll",value:function(t,e){var l="vertical"===this.direction?t.scrollTop:t.scrollLeft,u="vertical"===this.direction?t.offsetHeight:t.offsetWidth;if(this.lastScroll!==l){var c=this.lastScroll>=l;this.lastScroll=l;var d=this.rowHeightService.index($1(l-this.topOffset)),h=this.rowHeightService.index($1(l+u-this.bottomOffset));if(!c&&h>=this.lastLoaded&&this.lastLoadedi}}),E1),gv=function(){var i=function(){function r(t,e,n,a){p(this,r),this.container=e,this.renderer=n,this.zone=a,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new O,this.pageChange=new O,this.scrollChange=new O,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new Ot,this.scroller=t(this.dispatcher)}return v(r,[{key:"horizontalClass",get:function(){return"horizontal"===this.direction}},{key:"totalVertexLength",get:function(){var e="".concat(this.totalSize,"px");return"vertical"===this.direction?{height:e}:{width:e}}},{key:"containerOffsetSize",get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")}},{key:"containerScrollSize",get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")}},{key:"containerScrollPosition",get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")}},{key:"ngOnChanges",value:function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)}},{key:"ngOnInit",value:function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())}},{key:"ngAfterViewInit",value:function(){var e=this;this.zone.runOutsideAngular(function(){e.containerScrollSubscription=e.scroll$().pipe(We(function(n){return n.target})).subscribe(function(n){e.dispatcher.next(n),e.emitActiveIndex()})})}},{key:"ngOnDestroy",value:function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()}},{key:"getContainerProperty",value:function(e){return this.container.nativeElement[e]}},{key:"activeIndex",value:function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}},{key:"itemIndex",value:function(e){return this.rowHeightService.index(e)}},{key:"itemOffset",value:function(e){return this.rowHeightService.offset(e)}},{key:"isIndexVisible",value:function(e){if(!this.rowHeightService)return!1;var n=this.containerScrollPosition,a=n+this.containerOffsetSize,o=this.rowHeightService.offset(e),s=o+this.rowHeightService.height(e);return o>=n&&s<=a}},{key:"isListScrolled",value:function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)}},{key:"scrollTo",value:function(e){this.renderer.setProperty(this.container.nativeElement,"vertical"===this.direction?"scrollTop":"scrollLeft",e)}},{key:"scrollToIndex",value:function(e){var n=this;this.zone.runOutsideAngular(function(){n.resolvedPromise.then(function(){n.scrollTo(n.rowHeightService.offset(e))})})}},{key:"scrollToBottom",value:function(){this.scrollTo(this.totalSize)}},{key:"animateToIndex",value:function(e){var n=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var a=this.rowHeightService.offset(e),o=this.getContainerScrollDirection(a),s=this.scrollRange(a,o),l=s.start,u=s.end;if(l!==u){var c=this.scrollStep(l,u),d=dat[o](c),h=hat[o](u),f=fat[o](d(u));this.zone.runOutsideAngular(function(){n.animationSubscription=GO(lt(l),iC(0,Znt)).pipe(We(function(g){return g[0]}),VO(d),function Ynt(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return oi(function(t,e){var n=0;t.subscribe(Wn(e,function(a){var o=i(a,n++);(o||r)&&e.next(a),!o&&e.complete()}))})}(f),We(h)).subscribe(function(g){return n.scrollTo(g)})})}}},{key:"scrollRange",value:function(e,n){var a=this.containerScrollPosition;if(parseInt(e,10)===parseInt(a,10))return{start:e,end:e};var o=this.containerMaxScroll(),s=n===$s.Backward?1:-1,l=function(r,t,e){return Math.min(Math.abs(t-r),e)}(a,e,this.maxScrollDifference),u=Math.min(e,o);return{start:Math.min(Math.max(u+s*l,0),o),end:u}}},{key:"scrollStep",value:function(e,n){return Math.abs(n-e)/(this.scrollDuration/17)}},{key:"scroll$",value:function(){return Ze()?li(this.container.nativeElement,"scroll"):po}},{key:"initServices",value:function(){var e=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(function(n){n instanceof q1?e.pageChange.emit(n):e.scrollChange.emit(n)})}},{key:"createRowHeightService",value:function(){return new sat(this.total,"vertical"===this.direction?this.itemHeight:this.itemWidth,0)}},{key:"emitActiveIndex",value:function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))}},{key:"containerMaxScroll",value:function(){return this.containerScrollSize-this.containerOffsetSize}},{key:"getContainerScrollDirection",value:function(e){return eFEB")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),i):null}}(),OB=function(r,t,e){var o,n=r.cells,a=r.rows;return function(){return Ze?(o||(o=function(r,t,e){return X1([X1('\n March 2017\n \n \n TODAY\n \n ',"k-calendar-header k-hstack"),e?Noe([yat([RB([Ioe("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,Loe([r,r])],t,{left:"-10000px",position:"absolute"})}(function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Noe([_at([RB([Ioe("1","k-calendar-th")],"k-calendar-tr")].concat(Foe(r,function(){return RB(Foe(t,function(e){return mat(''.concat(e,""),"k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table")}(a,n),t,e)),o):null}},Z1=function(r){return r.querySelector(".k-scrollable")},IB=function(r){return Z1(r).classList.add("k-scrollable-horizontal"),r},Poe=OB({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Boe=OB({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),Goe=OB({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),vh=function(r){return parseFloat(window.getComputedStyle(r).height)||r.offsetHeight},UC=function(r){var t=window.getComputedStyle(r);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||r.offsetWidth},hm=function(r){return r.querySelector("tbody")},zC=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"ensureHeights",value:function(){void 0===this.calendarHeight&&this.calculateHeights()}},{key:"calculateHeights",value:function(e){var n=this;!Ze()||(this.hostContainer=e,this.batch(Poe(),function(a){var o=hm(a);n.calendarHeight=vh(a),n.monthViewHeight=vh(o),n.headerHeight=vh(o.children[0]),n.scrollableContentHeight=vh(Z1(a))}),this.batch(IB(Poe()),function(a){var o=hm(a);n.calendarWidth=UC(a),n.monthViewWidth=UC(o),n.scrollableContentWidth=UC(Z1(a))}),this.batch(Boe(),function(a){n.yearViewHeight=vh(hm(a)),n.scrollableYearContentHeight=vh(Z1(a))}),this.batch(IB(Boe()),function(a){n.yearViewWidth=UC(hm(a))}),this.batch(Goe(),function(a){n.decadeViewHeight=vh(hm(a)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(IB(Goe()),function(a){n.decadeViewWidth=UC(hm(a)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(wat(),function(a){n.navigationItemHeight=vh(a.querySelector("li"))}))}},{key:"viewHeight",value:function(e){return this.viewDimension(e,"height")}},{key:"viewWidth",value:function(e){return this.viewDimension(e,"width")}},{key:"viewDimension",value:function(e,n){var a="height"===n?"ViewHeight":"ViewWidth";switch(e){case vt.month:return this["month".concat(a)];case vt.year:return this["year".concat(a)];case vt.decade:return this["decade".concat(a)];case vt.century:return this["century".concat(a)];default:return 1}}},{key:"batch",value:function(e,n){if(St(this.hostContainer)){var a=this.hostContainer.cloneNode();document.body.appendChild(a);try{n(a.appendChild(e))}catch(s){throw s}finally{document.body.removeChild(a)}}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Voe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.bus=t,this.dom=e,this.intl=n,this.cdr=a,this.renderer=o,this.min=new Date(Rl),this.max=new Date(Ol),this.focusedDate=new Date,this.valueChange=new O,this.pageChange=new O,this.dates=[],this.take=30,this.indexToScroll=-1}return v(r,[{key:"getComponentClass",get:function(){return!0}},{key:"ngOnInit",value:function(){this.dom.ensureHeights();var e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}},{key:"ngOnChanges",value:function(e){if(this.service=this.bus.service(this.activeView),this.service){this.activeViewValue=vt[this.activeView];var n=Mu(this.focusedDate,this.min,this.max),a=this.service.total(this.min,this.max),o=this.total&&this.total!==a;this.skip=this.service.skip(n,this.min),this.total=a,(o||!this.service.isInArray(n,this.dates))&&(this.dates=this.service.datesList(n,this.getTake(this.skip))),(e.focusedDate||o)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe()}},{key:"ngAfterViewInit",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"ngAfterViewChecked",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"onPageChange",value:function(e){var n=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,n),this.getTake(n)),this.pageChange.emit()}},{key:"scrollChange",value:function(e){var a=this.list.nativeElement,o="translateY(".concat(e.offset,"px)");this.renderer.setStyle(a,"transform",o),this.renderer.setStyle(a,"-ms-transform",o)}},{key:"handleDateChange",value:function(e){var n=TB(e.target,function(s){return s.hasAttribute("data-date-index")},this.list.nativeElement);if(n){var a=parseInt(n.getAttribute("data-date-index"),10);this.valueChange.emit(Ke(this.dates[a]))}}},{key:"getTake",value:function(e){return Math.min(this.total-e,this.take)}},{key:"intlChange",value:function(){this.activeView===vt.month&&this.cdr.markForCheck()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(zC),m(fi),m(nt),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar-navigation"]],viewQuery:function(t,e){var n;1&t&&(ge(gv,5),ge(moe,7)),2&t&&(P(n=B())&&(e.virtualization=n.first),P(n=B())&&(e.list=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-calendar-navigation",e.getComponentClass)},inputs:{activeView:"activeView",min:"min",max:"max",focusedDate:"focusedDate",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},features:[Ie],decls:5,vars:12,consts:[[1,"k-calendar-navigation-highlight"],[3,"skip","take","total","itemHeight","topOffset","bottomOffset","maxScrollDifference","pageChange","scrollChange"],[1,"k-reset",3,"kendoEventsOutsideAngular","scope"],["list",""],[4,"kFor","kForOf"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(z(0,"span",0),A(1,"kendo-virtualization",1),Q("pageChange",function(a){return e.onPageChange(a)})("scrollChange",function(a){return e.scrollChange(a)}),A(2,"ul",2,3),T(4,xit,4,11,"li",4),x()()),2&t&&(k(1),y("skip",e.skip)("take",e.take)("total",e.total)("itemHeight",e.itemHeight)("topOffset",e.topOffset)("bottomOffset",e.bottomOffset)("maxScrollDifference",e.maxViewHeight),k(1),y("kendoEventsOutsideAngular",ot(10,sh,e.handleDateChange))("scope",e),k(2),y("kForOf",e.dates))},directives:[gv,qi,P1,qe,En],encapsulation:2,changeDetection:0}),i}(),Uoe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.bus=t,this.cdr=e,this.intl=n,this.dom=a,this.renderer=o,this.isActive=!0,this.min=new Date(Rl),this.max=new Date(Ol),this.selectedDates=[],this.cellClick=new O,this.weekNumberCellClick=new O,this.activeDateChange=new O,this.todayButtonClick=new O,this.pageChange=new O,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}return v(r,[{key:"weekNumber",get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e}},{key:"getComponentMonthClass",get:function(){return this.activeView===vt.month}},{key:"getComponentYearClass",get:function(){return this.activeView===vt.year}},{key:"getComponentDecadeClass",get:function(){return this.activeView===vt.decade}},{key:"getComponentCenturyClass",get:function(){return this.activeView===vt.century}},{key:"ngOnInit",value:function(){this.weekNames=this.getWeekNames(),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}},{key:"ngOnChanges",value:function(e){if(this.service=this.bus.service(this.activeView),this.service){this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=lh(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;var n=lh(e,"activeView"),a=this.focusedDate,o=Mu(this.service.viewDate(a,this.max,this.minViewsToRender),this.min,this.max),s=this.service.total(this.min,this.max),u=this.total&&this.total!==s||!this.service.isInArray(a,this.dates);this.skip=this.service.skip(o,this.min),this.total=s,this.animateToIndex=!n,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),u&&(this.dates=this.service.datesList(o,this.getTake(this.skip))),function(r,t){return r&&t&&r.getFullYear()===t.getFullYear()&&r.getMonth()===t.getMonth()}(this.activeDate,a)||(this.activeDate=Ke(a));var c=lh(e,"focusedDate")||n;(u||c||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(a,this.min))}}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe()}},{key:"ngAfterViewInit",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"ngAfterViewChecked",value:function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)}},{key:"onPageChange",value:function(e){var n=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,n),this.getTake(n)),this.pageChange.emit()}},{key:"scrollChange",value:function(e){var a=this.list.nativeElement,o="translateY(".concat(e.offset,"px)");this.renderer.setStyle(a,"transform",o),this.renderer.setStyle(a,"-ms-transform",o)}},{key:"setActiveDate",value:function(e){var n=this.service.addToDate(this.min,e);this.activeDate=n,this.activeDateChange.emit(n),this.cdr.detectChanges()}},{key:"isMonthView",value:function(){return this.activeView===vt.month}},{key:"isScrolled",value:function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))}},{key:"getBottomOffset",value:function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)}},{key:"getScrollableHeight",value:function(){return this.activeView===vt.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight}},{key:"getTake",value:function(e){return Math.min(this.total-e,this.take)}},{key:"getWeekNames",value:function(){var e=Soe(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e}},{key:"intlChange",value:function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(nt),m(fi),m(zC),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar-viewlist"]],viewQuery:function(t,e){var n;1&t&&(ge(gv,5),ge(moe,7)),2&t&&(P(n=B())&&(e.virtualization=n.first),P(n=B())&&(e.list=n.first))},hostVars:12,hostBindings:function(t,e){2&t&&ue("k-vstack",e.getComponentClass)("k-calendar-view",e.getComponentClass)("k-calendar-monthview",e.getComponentMonthClass)("k-calendar-yearview",e.getComponentYearClass)("k-calendar-decadeview",e.getComponentDecadeClass)("k-calendar-centuryview",e.getComponentCenturyClass)},inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange"},features:[Ie],decls:8,vars:17,consts:[[3,"currentDate","min","max","activeView","templateRef","todayButtonClick"],["class","k-calendar-weekdays k-calendar-table","style","table-layout: auto;",4,"ngIf"],[3,"tabindex","skip","take","total","itemHeight","topOffset","bottomOffset","scrollOffsetSize","maxScrollDifference","pageChange","scrollChange","activeIndexChange"],["role","grid",1,"k-calendar-table"],["list",""],[4,"ngFor","ngForOf"],["class","k-calendar-tbody","kendoCalendarView","","role","rowgroup",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick",4,"kFor","kForOf"],[1,"k-calendar-weekdays","k-calendar-table",2,"table-layout","auto"],[1,"k-calendar-thead"],[1,"k-calendar-tr"],["class","k-calendar-th",3,"width",4,"ngFor","ngForOf"],[1,"k-calendar-th"],["kendoCalendarView","","role","rowgroup",1,"k-calendar-tbody",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick"]],template:function(t,e){1&t&&(A(0,"kendo-calendar-header",0),Q("todayButtonClick",function(a){return e.todayButtonClick.emit(a)}),x(),T(1,Rit,4,1,"table",1),A(2,"kendo-virtualization",2),Q("pageChange",function(a){return e.onPageChange(a)})("scrollChange",function(a){return e.scrollChange(a)})("activeIndexChange",function(a){return e.setActiveDate(a)}),A(3,"table",3,4)(5,"colgroup"),T(6,Oit,1,0,"col",5),x(),T(7,Iit,1,11,"tbody",6),x()()),2&t&&(y("currentDate",e.activeDate)("min",e.min)("max",e.max)("activeView",e.activeView)("templateRef",e.headerTitleTemplateRef),k(1),y("ngIf",e.isMonthView()),k(1),y("tabindex",-1)("skip",e.skip)("take",e.take)("total",e.total)("itemHeight",e.viewHeight)("topOffset",e.viewOffset)("bottomOffset",e.bottomOffset)("scrollOffsetSize",e.viewOffset)("maxScrollDifference",e.viewHeight),k(4),y("ngForOf",e.cols),k(1),y("kForOf",e.dates))},directives:[xB,gv,Aoe,qe,gn,P1],encapsulation:2,changeDetection:0}),i}(),zoe=function(){var i=function(){function r(t,e){p(this,r),this.dom=t,this.zone=e}return v(r,[{key:"configure",value:function(e){var n=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(r){return function(t){return Math.floor(t/r)}}(n),this.powerByMagnitude=function(r){return function(t){return t*r}}(n)}},{key:"sync",value:function(e,n){var a=this;this.unsubscribe(),e&&n&&(this.navigator=e,this.view=n,this.zone.runOutsideAngular(function(){var o,s;a.navSubscription=e.scroll$().subscribe(function(l){s?s=!1:(o=!0,a.scrollSiblingOf(l.target))}),a.viewSubscription=n.scroll$().subscribe(function(l){o?o=!1:(s=!0,a.scrollSiblingOf(l.target))})}))}},{key:"scrollSiblingOf",value:function(e){var n=this.siblingComponent(e),a=this.calculateScroll(n,e.scrollTop);n.scrollTo(a)}},{key:"siblingComponent",value:function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator}},{key:"calculateScroll",value:function(e,n){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(n)}},{key:"destroy",value:function(){this.unsubscribe()}},{key:"unsubscribe",value:function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(zC),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Hoe=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarNavigationItemTemplate",""]]}),i}(),Xc=v(function i(){p(this,i),this.onFocus=new O,this.onBlur=new O,this.sameDateSelected=new O,this.dateCompletenessChange=new O}),Iat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(W1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-multiviewcalendar-messages"]],features:[de([{provide:W1,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Y1=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[j]}),i}(),Nat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(Y1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarLocalizedMessages",""]],features:[de([{provide:Y1,useExisting:ye(function(){return i})}]),j]}),i}(),Koe="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",joe=function(r){return r?r.virtualization:null},Gat={multi:!0,provide:jn,useExisting:ye(function(){return HC})},Vat={multi:!0,provide:tr,useExisting:ye(function(){return HC})},Uat={provide:Ui,useExisting:ye(function(){return HC})},HC=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h,f,g){p(this,r),this.bus=t,this.dom=e,this.element=n,this.navigator=a,this.renderer=o,this.cdr=s,this.ngZone=l,this.injector=u,this.scrollSyncService=c,this.disabledDatesService=d,this.localization=h,this.selectionService=f,this.pickerService=g,this.id=qn(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=vt[vt.month],this.bottomView=vt[vt.month],this.topView=vt[vt.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new O,this.navigate=new O,this.activeViewDateChange=new O,this.valueChange=new O,this.isActive=!1,this.cellUID=qn(),this.selectedDates=[],this._min=new Date(Rl),this._max=new Date(Ol),this._focusedDate=Il(),this.onControlChange=Bt,this.onControlTouched=Bt,this.onValidatorChange=Bt,this.minValidateFn=Bt,this.maxValidateFn=Bt,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,jt(cm),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}return v(r,[{key:"focusedDate",get:function(){return this._focusedDate},set:function(e){if(this.activeViewDate&&!vi(this._focusedDate,e)){var n=this.bus.service(this.activeViewEnum),a=n.lastDayOfPeriod(this.activeViewDate);n.isInRange(e,this.activeViewDate,a)||this.emitNavigate(e)}this._focusedDate=e||Il(),this.setAriaActivedescendant()}},{key:"min",get:function(){return this._min},set:function(e){this._min=e||new Date(Rl)}},{key:"max",get:function(){return this._max},set:function(e){this._max=e||new Date(Ol)}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(function(o){return St(o)}).map(function(o){return Ke(o)}):Ke(e);var n=[].concat(e).filter(function(o){return St(o)}).map(function(o){return Ke(o)});if(!L1(n,this.selectedDates)){var a=uh(n);this.rangePivot=Ke(a),this.focusedDate=Ke(a)||this.focusedDate,this.selectedDates=n}}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledDates",get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e}},{key:"type",get:function(){return this._type},set:function(e){this.renderer.removeClass(this.element.nativeElement,"k-calendar-".concat(this.type)),this.renderer.addClass(this.element.nativeElement,"k-calendar-".concat(e)),this._type=e}},{key:"cellTemplateRef",get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e}},{key:"monthCellTemplateRef",get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e}},{key:"yearCellTemplateRef",get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e}},{key:"decadeCellTemplateRef",get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e}},{key:"centuryCellTemplateRef",get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e}},{key:"weekNumberTemplateRef",get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e}},{key:"headerTitleTemplateRef",get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e}},{key:"navigationItemTemplateRef",get:function(){return this._navigationItemTemplateRef||this.navigationItemTemplate},set:function(e){this._navigationItemTemplateRef=e}},{key:"activeViewEnum",get:function(){var e=vt[this.activeView];return ethis.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max","."));if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview","."))}}},{key:"verifyValue",value:function(e){if(xt()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat(Koe," for possible resolution."));if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(function(a){return a instanceof Date}))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check ".concat(Koe," for possible resolution."))}}},{key:"bindEvents",value:function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"blur",this.handleBlur.bind(this)),this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",mrt),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))}},{key:"emitBlur",value:function(e){this.pickerService&&this.pickerService.onBlur.emit(e)}},{key:"emitFocus",value:function(){this.pickerService&&this.pickerService.onFocus.emit()}},{key:"handleComponentClick",value:function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=Ke(this.focusedDate),this.detectChanges()),this.focus())}},{key:"handleKeydown",value:function(e){if("classic"!==this.type||!this.multiViewCalendar.isHeaderActive){var a=-1!==[J.ArrowUp,J.ArrowRight,J.ArrowDown,J.ArrowLeft].indexOf(e.keyCode);if(!(St(this.pickerService)&&a&&e.altKey)){St(this.pickerService)&&e.keyCode===J.Enter&&e.preventDefault();var o=Mu(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);vi(this.focusedDate,o)||(this.focusedDate=o,this.detectChanges(),e.preventDefault()),e.keyCode===J.Enter&&this.performSelection(this.focusedDate,e)}}}},{key:"detectChanges",value:function(){this.destroyed||this.cdr.detectChanges()}},{key:"emitSameDate",value:function(){this.pickerService&&this.pickerService.sameDateSelected.emit()}},{key:"setAriaActivedescendant",value:function(){if(St(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant"))){if("classic"===this.type)return void this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant");var e=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)}}},{key:"parseSelectionToValue",value:function(e){return e=e||[],"single"===this.selection?Ke(uh(e)):e.map(function(n){return Ke(n)})}},{key:"performSelection",value:function(e,n){var a=this.selectionService.performSelection({date:e,modifiers:n,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=a.rangePivot,this.handleDateChange({selectedDates:a.selectedDates,focusedDate:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(zC),m(ke),m(BC),m(Ee),m(nt),m(be),m(Jn),m(zoe),m(Ru),m(Y),m(B1),m(Xc,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,G1,5),he(n,V1,5),he(n,U1,5),he(n,z1,5),he(n,H1,5),he(n,K1,5),he(n,j1,5),he(n,Hoe,5)),2&t&&(P(a=B())&&(e.cellTemplate=a.first),P(a=B())&&(e.monthCellTemplate=a.first),P(a=B())&&(e.yearCellTemplate=a.first),P(a=B())&&(e.decadeCellTemplate=a.first),P(a=B())&&(e.centuryCellTemplate=a.first),P(a=B())&&(e.weekNumberTemplate=a.first),P(a=B())&&(e.headerTitleTemplate=a.first),P(a=B())&&(e.navigationItemTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(Voe,5),ge(Uoe,5),ge(fh,5)),2&t&&(P(n=B())&&(e.navigationView=n.first),P(n=B())&&(e.monthView=n.first),P(n=B())&&(e.multiViewCalendar=n.first))},hostVars:7,hostBindings:function(t,e){2&t&&(ie("id",e.widgetId)("tabindex",e.calendarTabIndex)("aria-disabled",e.ariaDisabled),ue("k-week-number",e.weekNumber)("k-disabled",e.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",type:"type",animateNavigation:"animateNavigation",weekNumber:"weekNumber",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",valueChange:"valueChange"},exportAs:["kendo-calendar"],features:[de([Nl,Gat,Vat,Uat,Y,Ru,{provide:Dt,useValue:"kendo.calendar"},BC,zoe,B1]),Ie],decls:3,vars:2,consts:function(){return[["kendoCalendarLocalizedMessages","","today",$localize(Rae||(Rae=le([":kendo.calendar.today|The label for the today button in the calendar header:Today"]))),"prevButtonTitle",$localize(Oae||(Oae=le([":kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar:Navigate to previous view"]))),"nextButtonTitle",$localize(Iae||(Iae=le([":kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar:Navigate to next view"])))],[4,"ngIf"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange",4,"ngIf"],[3,"activeView","isActive","cellTemplateRef","headerTitleTemplateRef","weekNumberTemplateRef","cellUID","min","max","focusedDate","weekNumber","selectedDates","todayButtonClick","cellClick","weekNumberCellClick","activeDateChange","pageChange"],[3,"resize"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange"],[3,"views","min","max","isActive","activeView","bottomView","topView","weekNumber","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","headerTitleTemplate","weekNumberTemplate","focusedDate","selection","value","disabledDates","activeViewChange","navigate","valueChange","focus","blur","keydown"],["multiviewcalendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(t,e){1&t&&(Wt(0,0),T(1,Fit,4,12,"ng-container",1),T(2,Lit,4,23,"ng-container",1)),2&t&&(k(1),y("ngIf","infinite"===e.type),k(1),y("ngIf","classic"===e.type))},directives:[Voe,Uoe,Gr,fh,Iat,Nat,qe],encapsulation:2,changeDetection:0}),i}(),Q1=function(){return function(r,t){return!St(r.value)&&t?{incompleteDate:!0}:null}},fm=function(){return function(i){i[i.Up=0]="Up",i[i.Down=1]="Down",i[i.None=2]="None"}(fm||(fm={})),fm}(),Woe=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-dateinput-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[j]}),i}(),zat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(Woe);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDateInputLocalizedMessages",""]],features:[de([{provide:Woe,useExisting:ye(function(){return i})}]),j]}),i}(),Wat=/year|month|/,$at=/hour|minute|second|millisecond/,qat=/d|M|H|h|m|s/,qoe=function(r){return r.replace(/^0*/,"")},Qat=v(function i(){p(this,i),this.symbols=""}),Jat=function(){function i(r,t,e,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:68;if(p(this,i),this.intl=r,this.formatPlaceholder=t,this.format=e,this.twoDigitYearMax=a,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=Ii(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},jt(cm),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),n)this.value=Ke(n);else{this.value=Ii(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,s=0;s0&&(this.setExisting(t,!0),this.value=n)}},{key:"parsePart",value:function(t,e,n){if(!e)return this.resetLeadingZero(),this.setExisting(t,!1),{value:null,switchToNext:!1};for(var a=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),s=o.symbols,l=!1,u="",c="",d="",h=0;h-1&&ee<12&&((g=Ke(this.value)).setMonth(ee),g.getMonth()!==ee&&(g=Ml(Kr(g,-1))))}"y"===t&&(g=Ao(parseInt(N,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&g.getDate()!==this.value.getDate()&&(g=Ml(Kr(g,-1))))}if(g){var ve=this.partPattern(o.partMap,t).pattern,G=this.intl.parseDate("".concat(u).concat(this.peek(N,ve)).concat(d),this.format),I=this.patternLength(ve)||ve.length,K=E+(qoe(N)||e).length>=I,H=null===G||K;return this.shouldNormalizeCentury()&&(g=this.normalizeCentury(g)),this.value=g,this.setExisting(t,!0),{value:this.value,switchToNext:H}}}return _&&(g=this.intl.parseDate(u+_+d,this.format))?(this.value=g,this.setExisting(t,!0),{value:this.value,switchToNext:!1}):C&&(g=this.intl.parseDate(u+C+d,this.format))?(this.value=g,{value:this.value,switchToNext:!0}):(w&&this.setExisting(t,!1),{value:null,switchToNext:!1})}},{key:"resetLeadingZero",value:function(){var t=null!==this.leadingZero;return this.setLeadingZero(null),t}},{key:"setLeadingZero",value:function(t){this.leadingZero=t}},{key:"normalizeCentury",value:function(t){if(!St(t))return t;var e=function(r){return!St(r)||isNaN(r.getTime())?0:Number(r.getFullYear().toString().slice(-2))}(t),n=this.getNormalizedCenturyBase(e);return krt(t,n+e)}},{key:"incrementLeadingZero",value:function(t){var e=this.leadingZero||{};e[t]=(e[t]||0)+1,this.leadingZero=e}},{key:"isAbbrMonth",value:function(t,e){var n=this.partPattern(t,e);return"month"===n.type&&n.names}},{key:"partPattern",value:function(t,e){return t.filter(function(n){return-1!==n.pattern.indexOf(e)})[0]}},{key:"peek",value:function(t,e){var n=qoe(t)+"0";return function(r){return new Array(Math.max(r,0)).fill("0").join("")}(e.length-n.length)+n}},{key:"matchMonth",value:function(t){if(this.typedMonthPart+=t.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(var e=0;e=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}},{key:"matchDayPeriod",value:function(t,e){var n=String(t).toLowerCase();if("a"===e&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""}},{key:"allFormatedMonths",value:function(){for(var t=this.intl.splitDateFormat(this.format),e=0;e0;)a.push(this.symbols[n[s].pattern[0]]||"_"),o.push(n[s]),l--;var u=new Qat;return u.symbols=a.join(""),u.partMap=o,u}},{key:"merge",value:function(t,e){for(var n="",a="",o=e.symbols,s=o.length-1;s>=0;s--)if(-1===this.knownParts.indexOf(o[s])||this.getExisting(o[s]))n=t[s]+n,a=o[s]+a;else{for(var l=o[s];s>=0&&l===o[s];)s--;for(s++,n=this.leadingZero&&this.leadingZero[l]?"0"+n:this.dateFieldName(e.partMap[s])+n;a.lengththis.twoDigitYearMax?1900:2e3}}]),i}(),KC=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.cdr=t,this.intl=e,this.renderer=n,this.wrapper=a,this.ngZone=o,this.injector=s,this.localization=l,this.pickerService=u,this.focusableId="k-".concat(qn()),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new O,this.valueUpdate=new O,this.onFocus=new O,this.onBlur=new O,this.arrow=fm,this.arrowDirection=fm.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=Bt,this.maxValidator=Bt,this.incompleteValidator=Bt,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=Bt,this.onControlTouched=Bt,this.onValidatorChange=Bt,this._size=dh,this._rounded=ch,this._fillMode=hh,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}return v(r,[{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),(!this.autoCorrect||pv(e,this.min,this.max))&&(this._value=Ke(e),this.valueUpdate.emit(Ke(e)))}},{key:"size",get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,pr("input",this.size));var n=e||dh;"none"!==n&&this.renderer.addClass(this.wrapper.nativeElement,pr("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,os(this.rounded));var n=e||ch;"none"!==n&&this.renderer.addClass(this.wrapper.nativeElement,os(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,Sr("input",this.fillMode));var n=e||hh;"none"!==n&&(this.renderer.addClass(this.wrapper.nativeElement,Sr("input",n)),this.spinners&&this.spinup&&this.spindown&&(this.setSpinnerFill(this.spinup.nativeElement,n,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,n,this.fillMode))),this._fillMode=n}},{key:"wrapperClass",get:function(){return!0}},{key:"disabledClass",get:function(){return this.disabled}},{key:"inputElement",get:function(){return this.dateInput?this.dateInput.nativeElement:null}},{key:"inputValue",get:function(){return(this.inputElement||{}).value||""}},{key:"isActive",get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper&&!St(this.pickerService)){var n=this.wrapper.nativeElement;e?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus")}}},{key:"inputFormat",get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"}},{key:"displayFormat",get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"}},{key:"isEmpty",value:function(){return!this.currentValue||!String(this.currentValue).trim()}},{key:"containsElement",value:function(e){var n=this;return Boolean(AB(e,function(a){return a===n.wrapper.nativeElement}))}},{key:"ngOnChanges",value:function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?GC(this.min):Bt,this.maxValidator=this.rangeValidation?VC(this.max):Bt,this.incompleteValidator=this.incompleteDateValidation?Q1():Bt,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var n=this.kendoDate&&vi(this.value,this.kendoDate.getDateObject());(e.format||!n||e.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(function(e){return e()})}},{key:"validate",value:function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)}},{key:"registerOnValidatorChange",value:function(e){this.onValidatorChange=e}},{key:"ngOnInit",value:function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(ra,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))}},{key:"ngAfterViewInit",value:function(){this.setComponentClasses()}},{key:"setDisabledState",value:function(e){this.disabled=e,this.cdr.markForCheck()}},{key:"writeValue",value:function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=Ke(e),this.updateElementValue(this.isActive)}},{key:"triggerChange",value:function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=Ke(e),this.notify())}},{key:"notify",value:function(){var e=this;this.ngZone.run(function(){e.onControlChange(Ke(e.value)),e.valueChange.emit(Ke(e.value))})}},{key:"registerOnChange",value:function(e){this.onControlChange=e}},{key:"registerOnTouched",value:function(e){this.onControlTouched=e}},{key:"focus",value:function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))}},{key:"blur",value:function(){var e=this.inputElement;e&&e.blur()}},{key:"handleButtonClick",value:function(e){this.arrowDirection=fm.None,this.modifyDateSegmentValue(e)}},{key:"modifyDateSegmentValue",value:function(e){var n=this.caret(),a=this.currentFormat[n[0]],o=(this.steps||{})[this.symbolsMap[a]]||1;if("S"===a&&!this.steps.millisecond){var s=function(r){var t=r&&r.match(/S+(\1)/);return t?t[0].length:0}(this.inputFormat);o=function(r){return Math.pow(10,3-r)}(s)}this.kendoDate.modifyPart(a,e*o),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(a),this.updateIncompleteValidationStatus()}},{key:"switchDateSegment",value:function(e){var n=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),n[0]0?n[0]:n[1]-1),this.resetSegmentValue=!0,!0;for(var a=this.currentFormat[n[0]],o=n[0]+e;o>0&&o=0&&ss&&(s+1!==n[0]||o+1!==n[1])?(this.caret(s+1,o+1),this.resetSegmentValue=!0,!0):o1&&void 0!==arguments[1]?arguments[1]:e,a=void 0!==e,o=[e,e],s=this.inputElement;if(!a||!this.disabled&&!this.readonly){try{void 0!==s.selectionStart&&(a&&(Ze()&&document.activeElement!==s&&s.focus(),s.setSelectionRange(e,n)),o=[s.selectionStart,s.selectionEnd])}catch(l){o=[]}return o}}},{key:"selectNearestSegment",value:function(e){for(var n=e,a=e-1;n=0;n++,a--){if(n=0&&"_"!==this.currentFormat[a])return void this.selectDateSegment(this.currentFormat[a])}}},{key:"verifyRange",value:function(){if(xt()&&!vB(this.min,this.max))throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max","."))}},{key:"verifyValue",value:function(e){if(xt()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json"," for possible resolution."))}},{key:"putDateInRange",value:function(){var e=this.kendoDate.getDateObject(),n=Mu(e,this.min,this.max);this.autoCorrect&&!vi(e,n)&&(this.kendoDate=this.getKendoDate(n))}},{key:"updateFormatSections",value:function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(function(e,n){var o=e.time;return{date:e.date||Wat.test(n.type),time:o||$at.test(n.type)}},{date:!1,time:!1})}},{key:"intlChange",value:function(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)}},{key:"updateOnPaste",value:function(){var e=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value;St(e)&&this.kendoDate.shouldNormalizeCentury()&&(e=this.kendoDate.normalizeCentury(e));var n=+e!=+this.value;this.writeValue(e),n&&this.notify()}},{key:"bindEvents",value:function(){var e=this.wrapper.nativeElement,n=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(e,"DOMMouseScroll",n),this.renderer.listen(e,"mousewheel",n),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"paste",this.handlePaste.bind(this)),this.renderer.listen(e,"input",this.handleInput.bind(this)))}},{key:"handleMouseWheel",value:function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment((e.wheelDelta||-e.detail)>0?-1:1):this.modifyDateSegmentValue((e.wheelDelta||-e.detail)>0?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())}},{key:"handlePaste",value:function(){this.paste=!0}},{key:"handleKeydown",value:function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey)){if(e.keyCode===J.Tab)return void(this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault());if(e.keyCode===J.Backspace)return void(this.backspace=!0);switch(e.keyCode){case J.ArrowDown:this.modifyDateSegmentValue(-1);break;case J.ArrowUp:this.modifyDateSegmentValue(1);break;case J.ArrowRight:this.switchDateSegment(1);break;case J.ArrowLeft:this.switchDateSegment(-1);break;case J.Home:this.selectNearestSegment(0);break;case J.End:this.selectNearestSegment(this.inputValue.length);break;default:return}e.preventDefault()}}},{key:"handleInput",value:function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);var e=function(r,t,e,n){var a=n+r.length-e.length,o=r[a],s=r.substring(0,n+r.length-e.length),l=e.substring(0,n),u=[];if(s===l&&n>0)return u.push([t[n-1],l[n-1]]),u;if(0===s.indexOf(l)&&(0===l.length||t[l.length-1]!==t[l.length])){var c="";1===l.length&&u.push([t[0],l[0]]);for(var d=l.length;d=t&&r<=e},Dot=function(r,t,e){return!t&&!e||r>=t||r<=e},fse=function(){var i=function(){function r(t){p(this,r),this.intl=t}return v(r,[{key:"apply",value:function(e,n){var a=e.getHours(),o=UB(a),s=UB(n.getHours());if(o&&s||!o&&!s)return e;var u=Gt(this.normalizedRange(),2),d=u[1],h=void 0===d?24:d;return VB(e,Math.min(Math.max(u[0],a+(s?-12:12)),h||24))}},{key:"configure",value:function(e){var n=e.min,o=e.max,s=void 0===o?this.max:o,l=e.part,u=void 0===l?this.part:l;this.min=void 0===n?this.min:n,this.max=s,this.part=u}},{key:"data",value:function(e){var n=this.part.names;if(!n)return[];var a=[],s=Gt(this.normalizedRange(),2),l=s[0],u=s[1],c=this.intl.dateFormatNames(n);return UB(l)&&a.push({text:c.am,value:VB(this.min,l)}),function(r){return null!==r&&(!r||r>11)}(u)&&a.push({text:c.pm,value:VB(this.min,Math.max(12,u))}),this.min.getHours()!==l?a.reverse():a}},{key:"isRangeChanged",value:function(e,n){return!1}},{key:"limitRange",value:function(e,n,a){return[e,n]}},{key:"total",value:function(){var n=Gt(this.normalizedRange(),2),a=n[0],o=n[1];return(a||o)&&(a>11||o<12)?1:2}},{key:"selectedIndex",value:function(e){if(!this.valueInList(e))return-1;var n=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?n:0===n?1:0}},{key:"valueInList",value:function(e){return(this.min.getHours()!==this.normalizedRange()[0]?Dot:wot)(e.getHours(),this.min.getHours(),this.max.getHours())}},{key:"normalizedRange",value:function(){var e=this.min.getHours(),n=this.max.getHours();return[Math.min(e,n),Math.max(e,n)]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),zB=as("div"),Eot=as("ul"),Tot=as("li"),Aot=as("span"),nT=(Ze()&&zB([Aot("hour","k-title k-timeselector-title"),zB([zB([Eot([Tot("02","k-item")],"k-reset")],"k-time-container k-flex k-content k-calendar-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),De(fv={},"dayperiod",fse),De(fv,"hour",ese),De(fv,"minute",rse),De(fv,"second",lse),De(fv,"millisecond",hse),new RegExp("".concat("hour","|").concat("minute","|").concat("second","|").concat("millisecond","|").concat("dayperiod","|literal")),new RegExp("".concat("hour","|").concat("minute","|").concat("second","|").concat("dayperiod","|literal")),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}()),gh=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),iT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[BC,yB,CB,SB,DB,EB],imports:[[bt,nT,Wg,gh,Fa,cr],nT,gh]}),i}(),xse=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),rT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[zC,yB,CB,SB,DB,EB],imports:[[bt,nT,iT,Wg,gh,xse,cr,yo],nT,gh]}),i}(),jC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Wg,cr]]}),i}(),Mse=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(eT);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-datepicker-messages"]],features:[de([{provide:eT,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),aT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[{provide:vm,useValue:Py}],imports:[[bt,jC,rT,Wg,Fa,gh,cr],gh]}),i}(),mh="undefined"!=typeof Uint8Array&&ml.browser&&(!ml.browser.msie||ml.browser.version>9),ZB=function(){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(t){for(var e=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=0,a=e.length,o=[];n>>2,f=(3&u)<<6|c;o.push(s<<2|l>>>4),64!=u&&o.push(h),64!=c&&o.push(f)}return o},encode:function(t){for(var e=0,n=t.length,a="";e>>4,d=(15&s)<<2|l>>>6,h=63&l;e-n==2?d=h=64:e-n==1&&(h=64),a+=i.charAt(o>>>2)+i.charAt(c)+i.charAt(d)+i.charAt(h)}return a}}}();function Ni(i){var r=0,t=0;null==i?i=mh?new Uint8Array(256):[]:t=i.length;var e=mh?function(I){if(I>=i.length){var K=new Uint8Array(Math.max(I+256,2*i.length));K.set(i,0),i=K}}:function(){},n=mh?function(){return new Uint8Array(i.buffer,0,t)}:function(){return i},a=mh?function(I){if("string"==typeof I)return ee(I);var K=I.length;e(r+K),i.set(I,r),(r+=K)>t&&(t=r)}:function(I){if("string"==typeof I)return ee(I);for(var K=0;Kt&&(t=r)}function c(){return l()<<8|l()}function d(I){u(I>>8),u(I)}function g(){return 65536*c()+c()}function _(I){d(I>>>16&65535),d(65535&I)}function C(){var I=g();return I>=2147483648?I-4294967296:I}function w(I){_(I<0?I+4294967296:I)}function V(I){return ve(I,l)}function ee(I){for(var K=0;K=t},readByte:l,writeByte:u,readShort:c,writeShort:d,readLong:g,writeLong:_,readFixed:function E(){return g()/65536},writeFixed:function M(I){_(Math.round(65536*I))},readShort_:function h(){var I=c();return I>=32768?I-65536:I},writeShort_:function f(I){d(I<0?I+65536:I)},readLong_:C,writeLong_:w,readFixed_:function R(){return C()/65536},writeFixed_:function N(I){w(Math.round(65536*I))},read:V,write:a,readString:function U(I){return String.fromCharCode.apply(String,V(I))},writeString:ee,times:ve,get:n,slice:mh?function(I,K){if(i.buffer.slice)return new Uint8Array(i.buffer.slice(I,I+K));var H=new Uint8Array(K);return H.set(new Uint8Array(i.buffer,I,K)),H}:function(I,K){return i.slice(I,I+K)},offset:function(K){return null!=K?(r=K,G):r},skip:function(K){r+=K},toString:function(){throw new Error("FIX CALLER. BinaryStream is no longer convertible to string!")},length:function(){return t},saveExcursion:function(K){var H=r;try{return K()}finally{r=H}},writeBase64:function(K){window.atob?ee(window.atob(K)):a(ZB.decode(K))},base64:function(){return ZB.encode(n())}};return G}function WC(i,r){return Object.prototype.hasOwnProperty.call(i,r)}function YB(i){return Object.keys(i).sort(function(r,t){return r-t}).map(parseFloat)}var Ou=function(){function i(r,t){p(this,i),this.definition=t,this.length=t.length,this.offset=t.offset,this.file=r,this.rawData=r.raw,this.parse(r.raw)}return v(i,[{key:"raw",value:function(){return this.rawData.slice(this.offset,this.length)}},{key:"parse",value:function(){}}]),i}();(function(){var i=function(){function s(l){p(this,s),this.raw=l}return v(s,[{key:"compound",get:function(){return!1}},{key:"render",value:function(){return this.raw.get()}}]),s}(),o=function(){function s(l){p(this,s),this.raw=l;for(var u=this.glyphIds=[],c=this.idOffsets=[];;){var d=l.readShort();if(c.push(l.offset()),u.push(l.readShort()),!(32&d))break;l.skip(1&d?4:2),128&d?l.skip(8):64&d?l.skip(4):8&d&&l.skip(2)}}return v(s,[{key:"compound",get:function(){return!0}},{key:"render",value:function(u){for(var c=Ni(this.raw.get()),d=0;d0;)a[s++]=e.readShort();break;case 12:e.readShort(),o.length=e.readLong(),o.language=e.readLong();for(var N=e.readLong();N-- >0;){s=e.readLong();for(var V=e.readLong(),U=e.readLong();s<=V;)a[s++]=U++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+o.format)}})})}();var rr={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function Qc(i,r){i=i.toLowerCase(),rr[i]=function(){return rr[r]},rr[i+"|bold"]=function(){return rr[r+"|bold"]},rr[i+"|italic"]=function(){return rr[r+"|italic"]},rr[i+"|bold|italic"]=function(){return rr[r+"|bold|italic"]}}Qc("Times New Roman","serif"),Qc("Courier New","monospace"),Qc("Arial","sans-serif"),Qc("Helvetica","sans-serif"),Qc("Verdana","sans-serif"),Qc("Tahoma","sans-serif"),Qc("Georgia","sans-serif"),Qc("Monaco","monospace"),Qc("Andale Mono","monospace");var nn={};nn._root=nn,"undefined"!=typeof Element&&Element.prototype&&Element,"undefined"!=typeof window&&window.kendo&&window;!function(){var i={}}();function ub(i,r){return Object.prototype.hasOwnProperty.call(i,r)}var Bue={toString:function(r){return r}},Nct=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){Bue=t}},{key:"toString",value:function(t,e){return Bue.toString(t,e)}}]),i}(),Gue=Nct;!function uce(i,r,t){return(1461*(i+4800+((r-13)/12|0))/4|0)+(367*(r-1-12*((r-13)/12|0))/12|0)-(3*((i+4900+((r-13)/12|0))/100|0)/4|0)+t-32075}(1900,0,-1);function Li(i,r){var t="";if(null!=i)if(Array.isArray(i))for(var e=0;e\r','\n \n \n \n \n ');var Ace,xce,Mce,Rce,Oce,Ice,Nce,Fce,Lce,Pce,Bce,Gce,Vce,Uce,zce,Hce,Kce,jce,Wce,$ce,qce,Xce,Zce,Yce,Qce,Jce,ede,tde,nde,ide,rde,ade,ode,sde,lde,ude,cde,dde,hde,fde,vde,pde,gde,mde,_de,yde,kde,Cde,bde,Sde,wde,Dde,Ede,Tde,Ade,xde,Mde,Rde,Ode,Ide,Nde,Fde,Lde,Pde,Bde,Gde,Vde,Ude,zde,Cht=function(r){var e=r.criteria;return"\n\n").concat(Li(e,function(n){var a=xv.customOperator(n),o=xv.customValue(n);return"')}),"\n")},bht=function(r){return'')},Sht=function(r){var t=r.type,e=r.value;return'')},wht=function(r){var e=r.values;return"\n ").concat(Li(e,function(n){return'\n ')}),"\n ")};function xv(i){return function(r){var e=r.columns,n=r.generators;return'\n\n ').concat(Li(e,function(a){return'\n \n ').concat(n[a.filter](a),"\n \n ")}),"\n")}({ref:i.ref,columns:i.columns,generators:{custom:Cht,dynamic:bht,top:Sht,value:wht}})}function Fht(i,r){}function Lht(i,r){if(1&i&&T(0,Fht,0,0,"ng-template",1),2&i){var t=D();y("ngTemplateOutlet",t.toolbarTemplateRef)("ngTemplateOutletContext",t.context)}}xv.customOperator=function(i){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[i.operator.toLowerCase()]},xv.customValue=function(i){function r(t){return t.replace(/([*?])/g,"~$1")}switch(i.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return r(i.value)+"*";case"endswith":case"doesnotendwith":return"*"+r(i.value);case"contains":case"doesnotcontain":return"*"+r(i.value)+"*";default:return i.value}},xv.dynamicFilterType=function(i){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[i.toLowerCase()]||i},Gue.register({toString:gL});var Pht=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"k-pager-first":!0}},Bht=function(){return{"k-icon":!0,"k-i-seek-w":!0}},Hde=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"":!0}},Ght=function(){return{"k-icon":!0,"k-i-arrow-w":!0}};function Vht(i,r){if(1&i&&(A(0,"option",7),te(1,"... "),x()),2&i){var t=D();y("selected",!1),ie("aria-label",t.pageLabel(t.start-1))}}var Uht=function(r){return{"k-link":!0,"k-state-selected":r}};function zht(i,r){if(1&i&&(A(0,"option",8),te(1),x()),2&i){var t=r.$implicit,e=D();y("value",t.toString())("selected",t===e.currentPage)("ngClass",ot(6,Uht,e.currentPage===t)),ie("aria-label",e.pageLabel(t))("aria-current",e.currentPage===t?"page":void 0),k(1),Pt(" ",t," ")}}function Hht(i,r){if(1&i&&(A(0,"option",9),te(1,"... "),x()),2&i){var t=D();y("selected",!1),ie("aria-label",t.pageLabel(t.end+1))}}function Kht(i,r){if(1&i){var t=xe();A(0,"li")(1,"span",10),Q("click",function(){re(t);var a=D();return a.changePage(a.start-2)})("keydown.enter",function(){re(t);var a=D();return a.changePage(a.start-2)}),te(2,"..."),x()()}if(2&i){var e=D();k(1),ie("aria-label",e.pageLabel(e.start-1))}}var jht=function(r){return{"k-link":!0,"k-state-selected":r,"k-pager-nav":!0}};function Wht(i,r){if(1&i){var t=xe();A(0,"li")(1,"span",11),Q("click",function(){var s=re(t).$implicit;return D().changePage(s-1)})("keydown.enter",function(){var s=re(t).$implicit;return D().changePage(s-1)}),te(2),x()()}if(2&i){var e=r.$implicit,n=D();k(1),y("ngClass",ot(3,jht,n.currentPage===e)),ie("aria-label",n.pageLabel(e)),k(1),Pt(" ",e," ")}}function $ht(i,r){if(1&i){var t=xe();A(0,"li")(1,"span",10),Q("click",function(){re(t);var a=D();return a.changePage(a.end)})("keydown.enter",function(){re(t);var a=D();return a.changePage(a.end)}),te(2,"..."),x()()}if(2&i){var e=D();k(1),ie("aria-label",e.pageLabel(e.end+1))}}var qht=function(){return{"k-pager-numbers":!0,"k-reset":!0}},Xht=function(){return{"k-pager-input":!0,"k-label":!0}},Zht=function(r,t){return{keydown:r,focusout:t}},Yht=function(){return{"k-icon":!0,"k-i-arrow-e":!0}},Qht=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"k-pager-last":!0}},Jht=function(){return{"k-icon":!0,"k-i-seek-e":!0}};function eft(i,r){if(1&i){var t=xe();A(0,"div",4),Q("focusin",function(a){return re(t),D().onInnerFocusIn(a,"start")}),x()}2&i&&(y("tabindex",D().focusTrapTabIndex),ie("aria-hidden",!0))}function tft(i,r){if(1&i&&Wt(0,5),2&i){var t=D();y("ngTemplateOutlet",t.template.templateRef)("ngTemplateOutletContext",t.templateContext)}}function nft(i,r){1&i&&z(0,"kendo-pager-prev-buttons")}function ift(i,r){1&i&&z(0,"kendo-pager-numeric-buttons",8),2&i&&y("buttonCount",D(2).settings.buttonCount)}function rft(i,r){1&i&&z(0,"kendo-pager-input")}function aft(i,r){1&i&&z(0,"kendo-pager-next-buttons")}function oft(i,r){1&i&&z(0,"kendo-pager-info")}function sft(i,r){1&i&&z(0,"kendo-pager-page-sizes",9,10),2&i&&y("pageSizes",D(2).settings.pageSizes)}function lft(i,r){if(1&i&&(Ge(0),T(1,nft,1,0,"kendo-pager-prev-buttons",2),T(2,ift,1,1,"kendo-pager-numeric-buttons",6),T(3,rft,1,0,"kendo-pager-input",2),T(4,aft,1,0,"kendo-pager-next-buttons",2),T(5,oft,1,0,"kendo-pager-info",2),T(6,sft,2,1,"kendo-pager-page-sizes",7),Ve()),2&i){var t=D();k(1),y("ngIf",t.settings.previousNext),k(1),y("ngIf","numeric"===t.settings.type),k(1),y("ngIf","input"===t.settings.type),k(1),y("ngIf",t.settings.previousNext),k(1),y("ngIf",t.settings.info),k(1),y("ngIf",t.settings.pageSizes)}}function uft(i,r){if(1&i){var t=xe();A(0,"div",4),Q("focusin",function(a){return re(t),D().onInnerFocusIn(a,"end")}),x()}2&i&&(y("tabindex",D().focusTrapTabIndex),ie("aria-hidden",!0))}function cft(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",11),Q("resize",function(){return re(t),D().resizeHandler()}),x()}}var dft=["kendoGroupIndicator",""],Kde=function(){return{lastTarget:!0}};function hft(i,r){if(1&i&&(Ge(0),A(1,"div",3),te(2),x(),Ve()),2&i){var t=D();k(1),y("context",Tt(2,Kde)),k(1),Pt(" ",t.text," ")}}var fft=function(r){return{field:r}},vft=function(r,t){return{field:r,type:"groupIndicator",hint:t}};function pft(i,r){if(1&i){var t=xe();A(0,"div",3)(1,"div",4),Q("directionChange",function(s){return re(t),D().directionChange(s)})("remove",function(s){return re(t),D().remove(s)}),x()()}if(2&i){var e=r.$implicit,n=r.index,a=D();y("context",ot(5,fft,e.field)),k(1),y("enableDrag",!0)("context",ln(7,vft,e.field,a.groupTitles[n]))("group",e)("groupTitle",a.groupTitles[n])}}function gft(i,r){1&i&&(A(0,"div",3),te(1,"\xa0"),x()),2&i&&y("context",Tt(1,Kde))}var mft=["kendoGridColGroup",""];function _ft(i,r){1&i&&z(0,"col"),2&i&&ue("k-group-col",!0)}function yft(i,r){1&i&&z(0,"col"),2&i&&ue("k-hierarchy-col",!0)}function kft(i,r){1&i&&z(0,"col"),2&i&&Qe("width",r.$implicit.width,"px")}var rV=["*"];function Cft(i,r){if(1&i){var t=xe();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function bft(i,r){if(1&i&&z(0,"kendo-grid-string-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("menuTabbingService",t.menuTabbingService)}}function Sft(i,r){if(1&i){var t=xe();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function wft(i,r){if(1&i&&z(0,"kendo-grid-numeric-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("format",t.format)("decimals",t.decimals)("spinners",t.spinners)("min",t.min)("max",t.max)("step",t.step)("menuTabbingService",t.menuTabbingService)}}function Dft(i,r){if(1&i){var t=xe();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function Eft(i,r){if(1&i&&z(0,"kendo-grid-date-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("activeView",t.activeView)("bottomView",t.bottomView)("topView",t.topView)("format",t.format)("formatPlaceholder",t.formatPlaceholder)("placeholder",t.placeholder)("min",t.min)("max",t.max)("weekNumber",t.weekNumber)("menuTabbingService",t.menuTabbingService)}}function Tft(i,r){if(1&i){var t=xe();A(0,"li")(1,"input",2,3),Q("change",function(){var s=re(t).$implicit,l=Yt(2);return D().onChange(s.value,l)})("keydown.shift.tab",function(o){return re(t),D().onShiftTab(o)}),x(),A(3,"label",4),te(4),x()()}if(2&i){var e=r.$implicit,n=D();k(1),y("columnLabel",n.columnLabel)("name",n.idPrefix)("checked",n.isSelected(e.value)),ie("id",n.radioId(e.value)),k(2),ie("for",n.radioId(e.value)),k(1),at(e.text)}}var Aft=["resetButton"],xft=["filterButton"];function Mft(i,r){if(1&i&&(Ge(0),Wt(1,9),Ve()),2&i){var t=D();k(1),y("filterService",t.childService)("column",t.column)("filter",t.childFilter)("menuTabbingService",t.menuTabbingService)}}function Rft(i,r){}function Oft(i,r){if(1&i&&T(0,Rft,0,0,"ng-template",11),2&i){var t=D(2);y("ngTemplateOutlet",t.column.filterMenuTemplateRef)("ngTemplateOutletContext",t.templateContext)}}function Ift(i,r){if(1&i&&(Ge(0),T(1,Oft,1,2,null,10),Ve()),2&i){var t=D();k(1),y("ngIf",t.column.filterMenuTemplateRef)}}var jde=["anchor"],Wde=["template"];function Nft(i,r){if(1&i){var t=xe();A(0,"kendo-grid-filter-menu-container",4),Q("close",function(){return re(t),D().close()})("keydown.escape",function(){return re(t),D().close()})("keydown.enter",function(a){return a.stopImmediatePropagation()}),x()}if(2&i){var e=D();y("column",e.column)("filter",e.filter)}}var Fft=function(r){return{"k-grid-filter":!0,"k-state-active":r}};function Lft(i,r){1&i&&z(0,"span",3),2&i&&y("ngClass",D().iconClass)}function Pft(i,r){if(1&i&&(A(0,"div",4),Wt(1,5),z(2,"div"),x()),2&i){var t=D();y("@state",t.contentState),k(1),y("ngTemplateOutlet",t.contentTemplate.templateRef)}}function Bft(i,r){if(1&i){var t=xe();A(0,"kendo-grid-columnmenu-lock",3),Q("keydown.tab",function(a){re(t);var o=D(2);return o.onTab(a,!o.showStick)}),x()}2&i&&y("service",D(2).service)}function Gft(i,r){if(1&i){var t=xe();A(0,"kendo-grid-columnmenu-stick",3),Q("keydown.tab",function(a){return re(t),D(2).onTab(a,!0)}),x()}2&i&&y("service",D(2).service)}function Vft(i,r){if(1&i&&(T(0,Bft,1,1,"kendo-grid-columnmenu-lock",2),T(1,Gft,1,1,"kendo-grid-columnmenu-stick",2)),2&i){var t=D();y("ngIf",t.showLock),k(1),y("ngIf",t.showStick)}}var Uft=["applyButton"];function zft(i,r){if(1&i&&(A(0,"label",3),z(1,"input",4),A(2,"span",5),te(3),x()()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),y("checked",!t.hidden)("disabled",n.isDisabled(t)),ie("data-index",e),k(2),at(t.displayTitle)}}function Hft(i,r){if(1&i){var t=xe();A(0,"div",6)(1,"button",7),Q("click",function(){return re(t),D().cancelChanges()}),te(2),x(),A(3,"button",8,9),Q("keydown.tab",function(a){return re(t),D().onTab(a)})("click",function(){return re(t),D().applyChanges()}),te(5),x()()}if(2&i){var e=D();y("ngClass",e.actionsClass),k(2),at(e.resetText),k(3),at(e.applyText)}}function Kft(i,r){if(1&i){var t=xe();A(0,"kendo-grid-columnlist",2),Q("apply",function(a){return re(t),D().onApply(a)}),x()}if(2&i){var e=D();y("applyText",e.localization.get("columnsApply"))("resetText",e.localization.get("columnsReset"))("columns",e.columns)("autoSync",!1)("allowHideAll",!1)("actionsClass",e.actionsClass)("isLast",e.isLast)("isExpanded",e.expanded)("service",e.service)}}function jft(i,r){if(1&i){var t=xe();A(0,"kendo-grid-filter-menu-container",2),Q("keydown.shift.tab",function(a){return a.stopImmediatePropagation()})("close",function(){return re(t),D().close()}),x()}if(2&i){var e=D();y("column",e.service.column)("menuTabbingService",e.service.menuTabbingService)("filter",e.service.filter)("actionsClass",e.actionsClass)("isLast",e.isLast)("isExpanded",e.expanded)}}var Wft=function(r,t){return{service:r,column:t}};function $ft(i,r){if(1&i&&Wt(0,5),2&i){var t=D(),e=Yt(6);y("ngTemplateOutlet",t.column.columnMenuTemplateRef||t.columnMenuTemplate||e)("ngTemplateOutletContext",ln(2,Wft,t.service,t.column))}}function qft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-sort",10,11),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function Xft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-lock",10,12),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function Zft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-stick",10,13),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function Yft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-position",14,15),2&i){var t=Yt(1),e=D(2);y("showLock",e.hasLock)("showStick",e.hasStick)("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedPosition)}}function Qft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-chooser",16,17),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedColumns)}}function Jft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-filter",16,18),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedFilter)}}function evt(i,r){if(1&i){var t=xe();A(0,"kendo-grid-columnmenu-container",6),Q("keydown.escape",function(){return re(t),D().close()})("keydown.enter",function(a){return a.stopImmediatePropagation()}),T(1,qft,2,2,"kendo-grid-columnmenu-sort",7),T(2,Xft,2,2,"kendo-grid-columnmenu-lock",7),T(3,Zft,2,2,"kendo-grid-columnmenu-stick",7),T(4,Yft,2,5,"kendo-grid-columnmenu-position",8),T(5,Qft,2,3,"kendo-grid-columnmenu-chooser",9),T(6,Jft,2,3,"kendo-grid-columnmenu-filter",9),x()}if(2&i){var e=D();k(1),y("ngIf",e.hasSort),k(1),y("ngIf",e.hasLock&&!e.hasPosition),k(1),y("ngIf",e.hasStick&&!e.hasPosition),k(1),y("ngIf",e.hasPosition),k(1),y("ngIf",e.hasColumnChooser),k(1),y("ngIf",e.hasFilter)}}var tvt=function(r){return{"k-state-active":r}},nvt=["dropdown"],$de=function(){return{width:"auto"}};function ivt(i,r){if(1&i){var t=xe();A(0,"kendo-dropdownlist",2,3),Q("valueChange",function(a){return re(t),D().onChange(a)})("keydown",function(a){return re(t),D().dropdownKeydown(a)}),x()}if(2&i){var e=D();y("data",e.operators)("value",e.value)("valuePrimitive",!0)("popupSettings",Tt(4,$de))}}function rvt(i,r){if(1&i){var t=xe();A(0,"button",4),Q("click",function(){return re(t),D().clearClick()})("keydown",function(a){return re(t),D().clearKeydown(a)}),z(1,"span",5),x()}2&i&&y("title",D().clearText)}var avt=["kendoGridFilterCell",""];function ovt(i,r){if(1&i&&(Ge(0),Wt(1,3),Ve()),2&i){var t=D(2);k(1),y("column",t.column)("filter",t.filter)}}function svt(i,r){}function lvt(i,r){if(1&i&&T(0,svt,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",t.column.filterCellTemplateRef)("ngTemplateOutletContext",t.templateContext)}}function uvt(i,r){if(1&i&&(Ge(0),T(1,lvt,1,2,null,0),Ve()),2&i){var t=D(2);k(1),y("ngIf",t.column.filterCellTemplateRef)}}function cvt(i,r){if(1&i&&(Ge(0)(1,1),T(2,ovt,2,2,"ng-container",2),T(3,uvt,2,1,"ng-container",2),Ve()()),2&i){var t=D();k(1),y("ngSwitch",t.hasTemplate),k(1),y("ngSwitchCase",!1),k(1),y("ngSwitchCase",!0)}}var dvt=["kendoGridFilterRow",""];function hvt(i,r){1&i&&z(0,"td",3),2&i&&ue("k-group-cell",!0)}function fvt(i,r){1&i&&z(0,"td",3),2&i&&ue("k-hierarchy-cell",!0)}function vvt(i,r){if(1&i&&z(0,"td",4),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-grid-header-sticky",t.sticky),y("ngStyle",n.addStickyStyles(t))("ngClass",t.filterClass)("column",t)("filter",n.filter)("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",n.lockedColumnsCount+e),ie("aria-label",n.filterLabel(t))}}var pvt=["kendoGridHeader",""];function gvt(i,r){1&i&&z(0,"th",6)}function mvt(i,r){1&i&&z(0,"th",7),2&i&&y("logicalRowIndex",D().index)("logicalColIndex",0)}function _vt(i,r){if(1&i&&z(0,"kendo-grid-filter-menu",16),2&i){var t=D(3).$implicit,e=D(2);y("column",e.getColumnComponent(t))("filter",e.filter)("tabIndex",e.tabIndex)}}function yvt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",17),2&i){var t=D(3).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)("sort",e.sort)("filter",e.filter)("sortable",e.sortable)("tabIndex",e.tabIndex)}}function kvt(i,r){}function Cvt(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D(3).$implicit;k(1),at(t.displayTitle)}}var GT=function(r,t,e,n){return{templateRef:r,columnIndex:t,column:e,$implicit:n}};function bvt(i,r){if(1&i&&(Ge(0),T(1,_vt,1,3,"kendo-grid-filter-menu",13),T(2,yvt,1,8,"kendo-grid-column-menu",14),T(3,kvt,0,0,"ng-template",15),T(4,Cvt,2,1,"ng-container",11),Ve()),2&i){var t=D(2).$implicit,e=D(2);k(1),y("ngIf",e.showFilterMenu&&e.isFilterable(e.getColumnComponent(t))),k(1),y("ngIf",e.showColumnMenu(t)),k(1),y("templateContext",eu(4,GT,t.headerTemplateRef,t.leafIndex,t,t)),k(1),y("ngIf",!t.headerTemplateRef)}}function Svt(i,r){}function wvt(i,r){if(1&i&&(Ge(0),A(1,"span",24),te(2),x(),Ve()),2&i){var t=D(3).$implicit;k(2),at(t.displayTitle)}}function Dvt(i,r){if(1&i&&(A(0,"span",25),te(1),x()),2&i){var t=D(3).$implicit,e=D(2);k(1),at(e.sortOrder(e.getColumnComponent(t).field))}}function Evt(i,r){if(1&i&&z(0,"kendo-grid-filter-menu",16),2&i){var t=D(3).$implicit,e=D(2);y("column",e.getColumnComponent(t))("filter",e.filter)("tabIndex",e.tabIndex)}}function Tvt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",17),2&i){var t=D(3).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)("sort",e.sort)("filter",e.filter)("sortable",e.sortable)("tabIndex",e.tabIndex)}}function Avt(i,r){if(1&i){var t=xe();Ge(0),A(1,"span",18)(2,"span",19,20),Q("click",function(o){re(t);var s=Yt(3),l=D(2).$implicit,u=D(2);return u.onSortClick(u.getColumnComponent(l),o,s)}),T(4,Svt,0,0,"ng-template",15),T(5,wvt,3,1,"ng-container",11),z(6,"span",21),T(7,Dvt,2,1,"span",22),x(),z(8,"span",23),T(9,Evt,1,3,"kendo-grid-filter-menu",13),T(10,Tvt,1,8,"kendo-grid-column-menu",14),x(),Ve()}if(2&i){var e=D(2).$implicit,n=D(2);k(4),y("templateContext",eu(8,GT,e.headerTemplateRef,e.leafIndex,e,e)),k(1),y("ngIf",!e.headerTemplateRef),k(1),y("ngClass",n.sortIcon(n.getColumnComponent(e).field)),ie("aria-label",n.sortableLabel),k(1),y("ngIf",n.showSortNumbering(n.getColumnComponent(e))),k(1),y("innerHtml",n.sortStatus(n.getColumnComponent(e)),LS),k(1),y("ngIf",n.showFilterMenu&&n.isFilterable(n.getColumnComponent(e))),k(1),y("ngIf",n.showColumnMenu(e))}}function xvt(i,r){if(1&i&&(Ge(0),z(1,"input",26),Ve()),2&i){var t=D(4);k(1),ie("id",t.selectAllCheckboxId())("aria-label",t.selectAllCheckboxLabel)}}function Mvt(i,r){if(1&i&&z(0,"span",27),2&i){var t=D(2).$implicit,e=D(2);y("column",t)("columns",e.columns)}}var Rvt=function(r,t,e,n){return{field:r,type:"column",column:t,hint:e,lastColumn:n}};function Ovt(i,r){if(1&i){var t=xe();A(0,"th",10),Q("keydown",function(c){re(t);var d=D().$implicit,h=D(2);return h.onHeaderKeydown(h.getColumnComponent(d),c)}),T(1,bvt,5,9,"ng-container",11),T(2,Avt,11,13,"ng-container",11),T(3,xvt,2,2,"ng-container",11),T(4,Mvt,1,2,"span",12),x()}if(2&i){var e=D(),n=e.$implicit,a=e.index,o=e.last,s=D().index,l=D();ue("k-filterable",l.showFilterMenu&&l.isFilterable(l.getColumnComponent(n))||l.showColumnMenu(n))("k-first",l.isFirstOnRow(l.getColumnComponent(n),a))("k-grid-header-sticky",n.sticky),y("logicalRowIndex",s)("logicalColIndex",l.logicalColumnIndex(n))("headerLabelText",n.title||l.getColumnComponent(n).field)("colSpan",n.colspan)("rowSpan",n.rowspan(l.totalColumnLevels))("enableDrag",l.shouldActivate(n))("context",eu(22,Rvt,l.getColumnComponent(n).field,n,n.title||l.getColumnComponent(n).field,o&&0===a))("ngClass",n.headerClass)("ngStyle",n.sticky?l.addStickyStyles(n):n.headerStyle),ie("aria-sort",l.sortState(l.getColumnComponent(n)))("rowspan",n.rowspan(l.totalColumnLevels))("colspan",n.colspan),k(1),y("ngIf",!l.isSortable(l.getColumnComponent(n))),k(1),y("ngIf",l.isSortable(l.getColumnComponent(n))),k(1),y("ngIf",l.isCheckboxColumn(n)&&!n.headerTemplateRef&&n.showSelectAll),k(1),y("ngIf",l.resizable)}}function Ivt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",30),2&i){var t=D(2).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)}}function Nvt(i,r){}function Fvt(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D(2).$implicit;k(1),at(t.displayTitle)}}function Lvt(i,r){if(1&i&&z(0,"span",27),2&i){var t=D(2).$implicit,e=D(2);y("column",t)("columns",e.columns)}}var Pvt=function(r,t,e){return{type:"columnGroup",column:r,hint:t,lastColumn:e}};function Bvt(i,r){if(1&i&&(A(0,"th",28),T(1,Ivt,1,4,"kendo-grid-column-menu",29),T(2,Nvt,0,0,"ng-template",15),T(3,Fvt,2,1,"ng-container",11),T(4,Lvt,1,2,"span",12),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=t.last,o=D().index,s=D();ue("k-first",s.isFirstOnRow(s.getColumnComponent(e),n))("k-filterable",s.showColumnMenu(e))("k-grid-content-sticky",e.sticky),y("logicalRowIndex",o)("logicalColIndex",s.logicalColumnIndex(e))("rowSpan",e.rowspan(s.totalColumnLevels))("colSpan",e.colspan)("headerLabelText",e.title||s.getColumnComponent(e).field)("enableDrag",s.shouldActivate(e))("context",va(21,Pvt,e,e.title,a&&0===n))("ngClass",e.headerClass)("ngStyle",e.headerStyle),ie("rowspan",e.rowspan(s.totalColumnLevels))("colspan",e.colspan),k(1),y("ngIf",s.showColumnMenu(e)),k(1),y("templateContext",eu(25,GT,e.headerTemplateRef,s.lockedColumnsCount+n,e,e)),k(1),y("ngIf",!e.headerTemplateRef),k(1),y("ngIf",s.resizable)}}function Gvt(i,r){if(1&i&&(Ge(0),T(1,Ovt,5,27,"th",8),T(2,Bvt,5,30,"th",9),Ve()),2&i){var t=r.$implicit,e=D(2);k(1),y("ngIf",!e.isColumnGroupComponent(t)),k(1),y("ngIf",e.isColumnGroupComponent(t))}}function Vvt(i,r){if(1&i&&(A(0,"tr",2),T(1,gvt,1,0,"th",3),T(2,mvt,1,2,"th",4),T(3,Gvt,3,2,"ng-container",5),x()),2&i){var t=r.index,e=D();y("logicalRowIndex",t)("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount),k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsForLevel(t))("ngForTrackBy",e.trackByIndex)}}function Uvt(i,r){if(1&i&&z(0,"tr",31),2&i){var t=D();y("columns",t.leafColumns)("filter",t.filter)("groups",t.groups)("detailTemplate",t.detailTemplate)("lockedColumnsCount",t.lockedColumnsCount)("logicalRowIndex",t.totalColumnLevels+1)("logicalSlaveRow",t.lockedColumnsCount>0)("logicalCellsCount",t.columns.length)("logicalSlaveCellsCount",t.unlockedColumnsCount)}}var zvt=["kendoGridCell",""];function Hvt(i,r){}function Kvt(i,r){if(1&i&&T(0,Hvt,0,0,"ng-template",5),2&i){var t=D(3);y("ngTemplateOutlet",t.column.templateRef)("ngTemplateOutletContext",t.templateContext)}}function jvt(i,r){if(1&i&&(Ge(0),te(1),ja(2,"valueOf"),Ve()),2&i){var t=r.$implicit,e=D(4);k(1),Pt(" ",iw(2,1,e.dataItem,t.field,t.format)," ")}}function Wvt(i,r){if(1&i&&(Ge(0),T(1,jvt,3,5,"ng-container",6),Ve()),2&i){var t=D(3);k(1),y("ngForOf",t.childColumns)}}function $vt(i,r){if(1&i&&(Ge(0),te(1),ja(2,"valueOf"),Ve()),2&i){var t=D(3);k(1),at(iw(2,1,t.dataItem,t.column.field,t.column.format))}}function qvt(i,r){if(1&i&&(Ge(0),z(1,"input",7),Ve()),2&i){var t=D(3);k(1),y("kendoGridSelectionCheckbox",t.rowIndex),ie("id",t.selectionCheckboxId)("aria-label",t.selectionCheckboxLabel)}}function Xvt(i,r){if(1&i&&(Ge(0),T(1,Kvt,1,2,null,4),T(2,Wvt,2,1,"ng-container",4),T(3,$vt,3,5,"ng-container",4),T(4,qvt,2,3,"ng-container",4),Ve()),2&i){var t=D(2);k(1),y("ngIf",t.column.templateRef),k(1),y("ngIf",t.isSpanColumn),k(1),y("ngIf",t.isBoundColumn),k(1),y("ngIf",t.isCheckboxColumn&&!t.isNew)}}function Zvt(i,r){}var Yvt=function(r){return{$implicit:r}};function Qvt(i,r){if(1&i&&T(0,Zvt,0,0,"ng-template",5),2&i){var t=D(3);y("ngTemplateOutlet",t.loadingTemplate)("ngTemplateOutletContext",ot(2,Yvt,t.column))}}function Jvt(i,r){1&i&&z(0,"div",9)}function ept(i,r){if(1&i&&(T(0,Qvt,1,4,null,4),T(1,Jvt,1,0,"div",8)),2&i){var t=D(2);y("ngIf",t.loadingTemplate),k(1),y("ngIf",!t.loadingTemplate)}}function tpt(i,r){if(1&i&&(Ge(0),T(1,Xvt,5,4,"ng-container",2),T(2,ept,2,2,"ng-template",null,3,$n),Ve()),2&i){var t=Yt(3),e=D();k(1),y("ngIf",!e.showLoading)("ngIfElse",t)}}function npt(i,r){}function ipt(i,r){if(1&i&&T(0,npt,0,0,"ng-template",5),2&i){var t=D(2);y("ngTemplateOutlet",t.column.editTemplateRef)("ngTemplateOutletContext",t.editTemplateContext)}}function rpt(i,r){if(1&i&&z(0,"kendo-numerictextbox",14),2&i){var t=D(3);y("format",t.format)("formControl",t.formGroup.get(t.column.field))}}function apt(i,r){if(1&i&&z(0,"kendo-datepicker",14),2&i){var t=D(3);y("format",t.format)("formControl",t.formGroup.get(t.column.field))}}function opt(i,r){if(1&i&&z(0,"input",15),2&i){var t=D(3);y("formControl",t.formGroup.get(t.column.field))}}function spt(i,r){if(1&i&&z(0,"input",16),2&i){var t=D(3);y("formControl",t.formGroup.get(t.column.field))}}function lpt(i,r){1&i&&(Ge(0,0),T(1,rpt,1,2,"kendo-numerictextbox",11),T(2,apt,1,2,"kendo-datepicker",11),T(3,opt,1,1,"input",12),T(4,spt,1,1,"input",13),Ve()),2&i&&(y("ngSwitch",D(2).column.editor),k(1),y("ngSwitchCase","numeric"),k(1),y("ngSwitchCase","date"),k(1),y("ngSwitchCase","boolean"))}function upt(i,r){if(1&i&&(Ge(0),T(1,ipt,1,2,null,4),T(2,lpt,5,4,"ng-container",10),Ve()),2&i){var t=D();k(1),y("ngIf",t.column.editTemplateRef),k(1),y("ngIf",!t.column.editTemplateRef)}}var cpt=["kendoGridGroupHeader",""];function dpt(i,r){1&i&&z(0,"td",3)}function hpt(i,r){if(1&i&&(Ge(0),T(1,dpt,1,0,"td",2),Ve()),2&i){var t=D();k(1),y("ngForOf",t.prefixGroupCell(t.item))}}function fpt(i,r){if(1&i&&(Ge(0),te(1),ja(2,"valueOf"),Ve()),2&i){var t=D(3);k(1),Jl(" ",t.groupTitle(t.item),": ",iw(2,2,t.item.data,"value",t.formatForGroup(t.item))," ")}}function vpt(i,r){}var ppt=function(r,t){return{"k-i-collapse":r,"k-i-expand":t}},gpt=function(r,t,e,n,a,o,s,l){return{templateRef:r,group:t,aggregates:e,value:n,field:a,index:o,expanded:s,$implicit:l}};function mpt(i,r){if(1&i){var t=xe();Ge(0),A(1,"a",6),Q("click",function(){re(t);var a=D(2);return a.toggleGroup(a.item)}),x(),T(2,fpt,3,6,"ng-container",0),T(3,vpt,0,0,"ng-template",7),Ve()}if(2&i){var e=D(2);k(1),y("ngClass",ln(5,ppt,e.isExpanded,!e.isExpanded)),ie("title",e.groupButtonTitle)("aria-label",e.groupButtonTitle),k(1),y("ngIf",!e.groupHeaderTemplate(e.item)),k(1),y("templateContext",function A5(i,r,t,e,n,a,o,s,l,u,c){var d=za()+i,h=Oe(),f=Es(h,d,t,e,n,a);return Es(h,d+4,o,s,l,u)||f?Zl(h,d+8,c?r.call(c,t,e,n,a,o,s,l,u):r(t,e,n,a,o,s,l,u)):q_(h,d+8)}(8,gpt,e.groupHeaderTemplate(e.item),e.item.data,null==e.item.data?null:e.item.data.aggregates,null==e.item.data?null:e.item.data.value,null==e.item.data?null:e.item.data.field,e.item.index,e.isExpanded,e.item.data))}}function _pt(i,r){if(1&i&&(A(0,"td",4)(1,"p",5),T(2,mpt,4,17,"ng-container",0),x()()),2&i){var t=D();y("logicalRowIndex",t.logicalRowIndex)("logicalColIndex",0)("logicalSlaveCell",t.skipGroupDecoration)("groupItem",t.item)("colSpan",t.logicalColSpan()),ie("colspan",t.groupSpan(t.item))("role",t.ariaRole())("aria-expanded",t.isExpanded),k(2),y("ngIf",!t.skipGroupDecoration)}}function ypt(i,r){}var kpt=function(r,t,e,n,a,o){return{group:r,aggregates:t,value:e,field:n,index:a,$implicit:o}};function Cpt(i,r){if(1&i&&T(0,ypt,0,0,"ng-template",10),2&i){var t=D().$implicit,e=D(2);y("ngTemplateOutlet",t.groupHeaderColumnTemplateRef)("ngTemplateOutletContext",ay(2,kpt,e.item.data,null==e.item.data?null:e.item.data.aggregates,null==e.item.data?null:e.item.data.value,null==e.item.data?null:e.item.data.field,e.item.index,e.item.data))}}function bpt(i,r){if(1&i&&(A(0,"td",9),T(1,Cpt,1,9,null,0),x()),2&i){var t=r.$implicit,e=r.index,n=D(2);y("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",e+1)("logicalSlaveCell",!1)("groupItem",n.item)("colSpan",1),k(1),y("ngIf",t.groupHeaderColumnTemplateRef)}}function Spt(i,r){if(1&i&&(Ge(0),T(1,bpt,2,6,"td",8),Ve()),2&i){var t=D();k(1),y("ngForOf",t.groupHeaderColumns)}}var wpt=["kendoGridTableBody",""];function Dpt(i,r){1&i&&z(0,"td",8)}function Ept(i,r){if(1&i&&(Ge(0),T(1,Dpt,1,0,"td",7),Ve()),2&i){var t=D(2);k(1),y("ngForOf",t.groups)}}function Tpt(i,r){1&i&&z(0,"td",9),2&i&&y("logicalRowIndex",D(2).addRowLogicalIndex())("logicalColIndex",0)}function Apt(i,r){if(1&i&&z(0,"td",10),2&i){var t=r.$implicit,e=r.index,n=D(2);Qe("left",t.sticky?"0":void 0),ue("k-grid-content-sticky",t.sticky),y("rowIndex",-1)("columnIndex",n.lockedColumnsCount+e)("isNew",!0)("column",t)("dataItem",n.newDataItem)("ngClass",t.cssClass)("ngStyle",t.sticky?n.addStickyColumnStyles(t):t.style)("logicalRowIndex",n.addRowLogicalIndex())("logicalColIndex",n.logicalColIndex(t))("colSpan",t.colspan),ie("colspan",t.colspan)}}function xpt(i,r){if(1&i&&(Ge(0),A(1,"tr",4),T(2,Ept,2,1,"ng-container",0),T(3,Tpt,1,2,"td",5),T(4,Apt,1,15,"td",6),x(),Ve()),2&i){var t=D();k(1),y("logicalRowIndex",t.addRowLogicalIndex())("logicalSlaveRow",t.lockedColumnsCount>0)("logicalCellsCount",t.columns.length)("logicalSlaveCellsCount",t.unlockedColumnsCount),k(1),y("ngIf",!t.skipGroupDecoration),k(1),y("ngIf",null==t.detailTemplate?null:t.detailTemplate.templateRef),k(1),y("ngForOf",t.columns)("ngForTrackBy",t.trackByColumns)}}function Mpt(i,r){}var Rpt=function(r){return{templateRef:r}};function Opt(i,r){if(1&i&&T(0,Mpt,0,0,"ng-template",12),2&i){var t=D(2);y("templateContext",ot(1,Rpt,null==t.noRecordsTemplate?null:t.noRecordsTemplate.templateRef))}}function Ipt(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D(2);k(1),Pt(" ",t.noRecordsText," ")}}function Npt(i,r){if(1&i&&(A(0,"tr",11)(1,"td"),T(2,Opt,1,3,null,0),T(3,Ipt,2,1,"ng-container",0),x()()),2&i){var t=D();k(1),ie("colspan",t.colSpan),k(1),y("ngIf",null==t.noRecordsTemplate?null:t.noRecordsTemplate.templateRef),k(1),y("ngIf",!(null!=t.noRecordsTemplate&&t.noRecordsTemplate.templateRef))}}function Fpt(i,r){if(1&i&&z(0,"tr",17),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("columns",a.columns)("groups",a.groups)("item",e)("hasDetails",!(null==a.detailTemplate||!a.detailTemplate.templateRef))("skipGroupDecoration",a.skipGroupDecoration)("hasGroupHeaderColumn",a.hasGroupHeaderColumn)("groupHeaderColumns",a.groupHeaderColumns)("rowIndex",n+1)("totalColumnsCount",a.totalColumnsCount)("logicalRowIndex",a.logicalRowIndex(n))("logicalSlaveRow",a.lockedColumnsCount>0)("logicalCellsCount",a.columns.length)("logicalSlaveCellsCount",a.groupHeaderSlaveCellsCount)}}function Lpt(i,r){1&i&&z(0,"td",8)}function Ppt(i,r){if(1&i&&(Ge(0),T(1,Lpt,1,0,"td",7),Ve()),2&i){var t=D(3);k(1),y("ngForOf",t.groups)}}function Bpt(i,r){if(1&i){var t=xe();A(0,"a",23),Q("click",function(){re(t);var o=D(3).$implicit;return D().toggleRow(o.index,o.data)}),x()}if(2&i){var e=D(3).$implicit,n=D();y("ngClass",n.detailButtonStyles(e)),ie("title",n.detailButtonTitle(e))("aria-label",n.detailButtonTitle(e))}}function Gpt(i,r){if(1&i&&(A(0,"td",21),T(1,Bpt,1,3,"a",22),x()),2&i){var t=D(2),e=t.index,n=t.$implicit,a=D();y("logicalRowIndex",a.logicalRowIndex(e))("logicalColIndex",0)("dataRowIndex",n.index)("dataItem",n.data)("detailExpandCell",!0),k(1),y("ngIf",a.detailTemplate.showIf(n.data,n.index))}}function Vpt(i,r){if(1&i&&z(0,"td",24),2&i){var t=r.$implicit,e=r.index,n=D(2),a=n.$implicit,o=n.index,s=D();ue("k-grid-content-sticky",t.sticky)("k-touch-action-none",s.isSelectable()&&s.selectable.drag)("k-touch-action-auto",!(s.isSelectable()&&s.selectable.drag))("k-grid-edit-cell",s.isEditingCell(a.index,t))("k-state-selected",s.isSelectable&&s.cellSelectionService.isCellSelected(a,t)),y("rowIndex",a.index)("columnIndex",s.lockedColumnsCount+e)("column",t)("dataItem",a.data)("isLoading",s.isLoading)("isVirtual",s.isVirtual)("loadingTemplate",s.cellLoadingTemplate)("logicalRowIndex",s.logicalRowIndex(o))("logicalColIndex",s.logicalColIndex(t))("dataRowIndex",a.index)("dataItem",a.data)("colIndex",e)("colSpan",t.colspan)("ngClass",t.cssClass)("ngStyle",t.sticky?s.addStickyColumnStyles(t):t.style),ie("data-kendo-grid-column-index",s.lockedColumnsCount+e)("aria-selected",s.isSelectable()?s.isAriaSelected(a,t):void 0)("colspan",t.colspan)}}var qde=function(r,t){return{dataItem:r,index:t}};function Upt(i,r){if(1&i&&(A(0,"tr",18),T(1,Ppt,2,1,"ng-container",0),T(2,Gpt,2,6,"td",19),T(3,Vpt,1,28,"td",20),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();ue("k-grid-row-sticky",!!a.rowSticky&&a.rowSticky(ln(22,qde,e.data,e.index)))("k-alt",a.isOdd(e))("k-master-row",null==a.detailTemplate?null:a.detailTemplate.templateRef)("k-grid-edit-row",a.isEditingRow(e.index))("k-state-selected",a.isSelectable()&&a.isRowSelected(e)),y("dataRowIndex",e.index)("dataItem",e.data)("logicalRowIndex",a.logicalRowIndex(n))("logicalSlaveRow",a.lockedColumnsCount>0)("logicalCellsCount",a.columns.length)("logicalSlaveCellsCount",a.unlockedColumnsCount)("ngClass",a.rowClass(ln(25,qde,e.data,e.index))),ie("data-kendo-grid-item-index",e.index),k(1),y("ngIf",!a.skipGroupDecoration),k(1),y("ngIf",null==a.detailTemplate?null:a.detailTemplate.templateRef),k(1),y("ngForOf",a.columns)("ngForTrackBy",a.trackByColumns)}}function zpt(i,r){1&i&&z(0,"td",30)}function Hpt(i,r){}var Kpt=function(r,t,e){return{dataItem:r,rowIndex:t,$implicit:e}};function jpt(i,r){if(1&i&&(A(0,"tr",25),T(1,zpt,1,0,"td",26),z(2,"td",27),A(3,"td",28),T(4,Hpt,0,0,"ng-template",29),x()()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();ue("k-alt",a.isOdd(e)),y("dataRowIndex",e.index)("dataItem",e.data)("logicalRowIndex",a.logicalRowIndex(n)+1)("logicalSlaveRow",!1)("logicalCellsCount",1),k(1),y("ngForOf",a.groups),k(2),y("logicalRowIndex",a.logicalRowIndex(n)+1)("logicalColIndex",0)("dataRowIndex",e.index)("dataItem",e.data)("colIndex",0)("colSpan",a.allColumnsSpan+1),ie("colspan",a.columnsSpan),k(1),y("ngTemplateOutlet",a.detailTemplate.templateRef)("ngTemplateOutletContext",va(17,Kpt,e.data,e.index,e.data))}}function Wpt(i,r){1&i&&z(0,"td",30)}function $pt(i,r){if(1&i&&(Ge(0),T(1,Wpt,1,0,"td",26),Ve()),2&i){var t=D(3);k(1),y("ngForOf",t.groups)}}function qpt(i,r){if(1&i&&z(0,"td",9),2&i){var t=D(2).index;y("logicalRowIndex",D().logicalRowIndex(t))("logicalColIndex",0)}}function Xpt(i,r){}var Zpt=function(r,t,e,n,a,o){return{templateRef:r,group:t,field:e,column:n,aggregates:a,$implicit:o}};function Ypt(i,r){if(1&i&&(A(0,"td",33),T(1,Xpt,0,0,"ng-template",12),x()),2&i){var s,t=r.$implicit,e=D(2),n=e.index,a=e.$implicit,o=D();y("logicalRowIndex",o.logicalRowIndex(n))("logicalColIndex",o.logicalColIndex(t)),ie("data-skip",o.skipGroupDecoration),k(1),y("templateContext",ay(4,Zpt,t.groupFooterTemplateRef,a.data,t.field,t,null==(s=a.data)?null:s.aggregates,null==(s=a.data)?null:s.aggregates))}}function Qpt(i,r){if(1&i&&(A(0,"tr",31),T(1,$pt,2,1,"ng-container",0),T(2,qpt,1,2,"td",5),T(3,Ypt,2,11,"td",32),x()),2&i){var t=D().index,e=D();y("logicalRowIndex",e.logicalRowIndex(t))("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount),k(1),y("ngIf",!e.skipGroupDecoration),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.footerColumns)("ngForTrackBy",e.trackByColumns)}}function Jpt(i,r){if(1&i&&(Ge(0),T(1,Fpt,1,13,"tr",13),T(2,Upt,4,28,"tr",14),T(3,jpt,5,21,"tr",15),T(4,Qpt,4,8,"tr",16),Ve()),2&i){var t=r.$implicit,e=D();k(1),y("ngIf",e.isGroup(t)&&e.isParentGroupExpanded(t)&&e.showGroupHeader(t)),k(1),y("ngIf",e.isDataItem(t)&&(!t.group||e.isDataItemInExpandedGroup(t))),k(1),y("ngIf",e.isDataItem(t)&&(!t.group||e.isDataItemInExpandedGroup(t))&&(null==e.detailTemplate?null:e.detailTemplate.templateRef)&&e.detailTemplate.showIf(t.data,t.index)&&e.isExpanded(t)),k(1),y("ngIf",e.isFooter(t)&&t.group&&(e.isFooterItemInExpandedGroup(t)||e.showGroupFooters&&e.isParentGroupExpanded(t.group))&&!t.data.hideFooter)}}function egt(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",34),Q("resize",function(){return re(t),D().resizeHandler()}),x()}}var tgt=["container"],ngt=["lockedContainer"],igt=["lockedTable"],rgt=["table"],agt=function(r,t,e,n){return{keydown:r,scroll:t,mousewheel:e,DOMMouseScroll:n}};function ogt(i,r){if(1&i&&(A(0,"div",11,12)(2,"div",3)(3,"table",13,14),z(5,"colgroup",6)(6,"tbody",15),x(),z(7,"kendo-resize-sensor"),x(),A(8,"div",9),z(9,"div"),x()()),2&i){var t=D();Qe("width",t.lockedWidth,"px"),y("kendoEventsOutsideAngular",eu(28,agt,t.lockedKeydown,t.lockedScroll,t.lockedMousewheel,t.lockedMousewheel))("scope",t),k(3),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(2),y("groups",t.groups)("columns",t.lockedLeafColumns)("detailTemplate",t.detailTemplate),k(1),y("groups",t.groups)("isLocked",!0)("data",t.data)("noRecordsText","")("columns",t.lockedLeafColumns)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("showGroupFooters",t.showFooter)("skip",t.skip)("selectable",t.selectable)("trackBy",t.trackBy)("filterable",t.filterable)("rowClass",t.rowClass)("isLoading",t.loading)("isVirtual",t.isVirtual)("cellLoadingTemplate",t.cellLoadingTemplate),k(3),Qe("height",t.totalHeight,"px")}}function sgt(i,r){1&i&&z(0,"kendo-resize-sensor")}function lgt(i,r){1&i&&z(0,"kendo-resize-sensor")}function ugt(i,r){if(1&i&&(A(0,"div",16),z(1,"div"),x()),2&i){var t=D();k(1),Qe("width",t.totalWidth,"px")}}var kb=function(){return[]},cgt=["kendoGridFooter",""];function dgt(i,r){1&i&&z(0,"td",4),2&i&&ue("k-group-cell",!0)}function hgt(i,r){1&i&&z(0,"td",4),2&i&&ue("k-hierarchy-cell",!0)}function fgt(i,r){}function vgt(i,r){if(1&i&&(A(0,"td",5),T(1,fgt,0,0,"ng-template",6),x()),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-grid-footer-sticky",t.sticky),y("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",n.logicalColumnIndex(t))("ngClass",t.footerClass)("ngStyle",t.sticky?n.addStickyStyles(t):t.footerStyle),k(1),y("templateContext",eu(7,GT,t.footerTemplateRef,n.lockedColumnsCount+e,t,t))}}var pgt=["kendoGridLoading",""];function ggt(i,r){if(1&i&&(Ge(0),A(1,"span",1),te(2),x(),z(3,"div",2)(4,"div",3),Ve()),2&i){var t=D();k(2),at(t.loadingText)}}function mgt(i,r){}function _gt(i,r){if(1&i&&T(0,mgt,0,0,"ng-template",4),2&i){var t=D();y("ngTemplateOutlet",null==t.loadingTemplate?null:t.loadingTemplate.templateRef)}}var ygt=["lockedHeader"],kgt=["header"],Cgt=["ariaRoot"],bgt=["footer"];function Sgt(i,r){1&i&&z(0,"kendo-grid-toolbar",11)}function wgt(i,r){if(1&i){var t=xe();A(0,"kendo-pager",12),Q("pageChange",function(a){return re(t),D().notifyPageChange("pager",a)}),x()}if(2&i){var e=D();y("tabindex",e.navigable?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("options",e.pageable),ie("role",e.navigable?"navigation":void 0)}}function Dgt(i,r){if(1&i){var t=xe();A(0,"kendo-grid-group-panel",13),Q("change",function(a){return re(t),D().groupChange.emit(a)}),x()}if(2&i){var e=D();y("text",e.groupableEmptyText)("groups",e.group)}}function Egt(i,r){if(1&i&&(A(0,"div",25,26)(2,"table",27),z(3,"colgroup",22)(4,"thead",28),x()()),2&i){var t=D(3);Qe("width",t.lockedWidth,"px"),k(2),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(1),y("columns",t.lockedLeafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("resizable",t.resizable)("scrollable",!0)("columns",t.lockedColumns)("totalColumnLevels",t.totalColumnLevels)("sort",t.sort)("groups",t.group)("filter",t.filter)("filterable",t.filterable)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("sortable",t.sortable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0")}}function Tgt(i,r){if(1&i&&(A(0,"div",29),z(1,"div"),x()),2&i){var t=D(3);k(1),Qe("width",t.columnsContainer.unlockedWidth,"px")}}function Agt(i,r){if(1&i&&(A(0,"div",17),T(1,Egt,5,24,"div",18),A(2,"div",19,20)(4,"table",21),z(5,"colgroup",22)(6,"thead",23),x(),T(7,Tgt,2,2,"div",24),x()()),2&i){var t=D(2);Qe("padding",t.headerPadding),k(1),y("ngIf",t.isLocked),k(1),y("kendoGridResizableContainer",t.lockedLeafColumns.length>0)("lockedWidth",t.lockedWidth+t.scrollbarWidth+2),k(2),Qe("width",t.nonLockedWidth,"px"),y("virtualColumns",t.virtualColumns),k(1),y("columns",t.headerLeafColumns)("groups",t.isLocked?Tt(29,kb):t.group)("detailTemplate",t.detailTemplate),k(1),y("resizable",t.resizable)("scrollable",!0)("columns",t.headerColumns)("totalColumnLevels",t.totalColumnLevels)("sort",t.sort)("filter",t.filter)("filterable",t.filterable)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("groups",t.isLocked?Tt(30,kb):t.group)("sortable",t.sortable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("lockedColumnsCount",t.lockedLeafColumns.length)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0"),k(1),y("ngIf",t.virtualColumns)}}function xgt(i,r){if(1&i&&(A(0,"div",37)(1,"table",27),z(2,"colgroup",35)(3,"tfoot",38),x()()),2&i){var t=D(3);Qe("width",t.lockedWidth,"px"),k(1),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(1),y("columns",t.lockedLeafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("scrollable",!0)("groups",t.group)("columns",t.lockedLeafColumns)("detailTemplate",t.detailTemplate)("logicalRowIndex",t.ariaRowCount)}}function Mgt(i,r){if(1&i&&(A(0,"div",30),T(1,xgt,4,13,"div",31),A(2,"div",32,33)(4,"table",34),z(5,"colgroup",35)(6,"tfoot",36),x()()()),2&i){var t=D(2);Qe("padding",t.headerPadding),k(1),y("ngIf",t.lockedLeafColumns.length),k(1),y("kendoGridResizableContainer",t.lockedLeafColumns.length>0)("lockedWidth",t.lockedWidth+t.scrollbarWidth+3),k(2),Qe("width",t.nonLockedWidth,"px"),k(1),y("columns",t.nonLockedLeafColumns)("groups",t.isLocked?Tt(16,kb):t.group)("detailTemplate",t.detailTemplate),k(1),y("logicalRowIndex",t.ariaRowCount)("scrollable",!0)("groups",t.isLocked?Tt(17,kb):t.group)("columns",t.nonLockedLeafColumns)("lockedColumnsCount",t.lockedLeafColumns.length)("detailTemplate",t.detailTemplate)}}function Rgt(i,r){if(1&i){var t=xe();Ge(0),T(1,Agt,8,31,"div",14),A(2,"kendo-grid-list",15),Q("pageChange",function(a){return re(t),D().notifyPageChange("list",a)})("scrollBottom",function(){return re(t),D().notifyScrollBottom()})("contentScroll",function(a){return re(t),D().contentScroll.emit(a)}),x(),T(3,Mgt,7,18,"div",16),Ve()}if(2&i){var e=D();k(1),y("ngIf",!e.hideHeader),k(1),y("data",e.view)("rowHeight",e.rowHeight)("detailRowHeight",e.detailRowHeight)("total",e.totalCount)("take",e.pageSize)("groups",e.group)("groupable",e.groupable)("skip",e.skip)("trackBy",e.trackBy)("columns",e.columnsContainer)("selectable",e.selectable)("filterable",e.filterable)("detailTemplate",e.detailTemplate)("noRecordsTemplate",e.noRecordsTemplate)("rowClass",e.rowClass)("rowSticky",e.rowSticky)("loading",e.loading)("isVirtual",e.isVirtual)("cellLoadingTemplate",null==e.cellLoadingTemplate?null:e.cellLoadingTemplate.templateRef)("loadingTemplate",null==e.loadingTemplate?null:e.loadingTemplate.templateRef)("virtualColumns",e.virtualColumns)("enableDrag",e.marqueeSelection),k(1),y("ngIf",e.showFooter)}}function Ogt(i,r){if(1&i&&z(0,"thead",42),2&i){var t=D(2);y("resizable",t.resizable)("scrollable",!1)("columns",t.visibleColumns)("totalColumnLevels",t.totalColumnLevels)("groups",t.group)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("sort",t.sort)("sortable",t.sortable)("filter",t.filter)("filterable",t.filterable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0")}}function Igt(i,r){if(1&i&&z(0,"tfoot",43),2&i){var t=D(2);y("scrollable",!1)("logicalRowIndex",t.ariaRowCount)("groups",t.group)("columns",t.leafColumns)("detailTemplate",t.detailTemplate)}}function Ngt(i,r){if(1&i&&(Ge(0),A(1,"table"),z(2,"colgroup",35),T(3,Ogt,1,15,"thead",39),z(4,"tbody",40),T(5,Igt,1,5,"tfoot",41),x(),Ve()),2&i){var t=D();k(1),Qe("table-layout",t.resizable?"fixed":null),k(1),y("columns",t.leafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("ngIf",!t.hideHeader),k(1),y("isLoading",t.loading)("groups",t.group)("data",t.view)("skip",t.skip)("columns",t.leafColumns)("selectable",t.selectable)("filterable",t.filterable)("noRecordsTemplate",t.noRecordsTemplate)("detailTemplate",t.detailTemplate)("showGroupFooters",t.showGroupFooters)("trackBy",t.trackBy)("rowClass",t.rowClass)("enableDrag",t.marqueeSelection),k(1),y("ngIf",t.showFooter)}}function Fgt(i,r){1&i&&z(0,"div",44),2&i&&y("loadingTemplate",D().loadingTemplate)}function Lgt(i,r){if(1&i){var t=xe();A(0,"kendo-pager",45),Q("pageChange",function(a){return re(t),D().notifyPageChange("pager",a)}),x()}if(2&i){var e=D();y("tabindex",e.navigable?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("options",e.pageable),ie("role",e.navigable?"navigation":void 0)}}function Pgt(i,r){1&i&&z(0,"kendo-grid-toolbar",46)}function Bgt(i,r){if(1&i){var t=xe();A(0,"span",4),te(1),x(),A(2,"kendo-grid-columnlist",5),Q("apply",function(a){return re(t),D().onApply(a)})("columnChange",function(a){return re(t),D().onChange(a)}),x()}if(2&i){var e=D();k(1),at(e.localization.get("columns")),k(1),y("columns",e.columns)("applyText",e.localization.get("columnsApply"))("resetText",e.localization.get("columnsReset"))("autoSync",e.autoSync)("allowHideAll",e.allowHideAll)}}var Ggt=/^\s*$/,He=function(r){return null!=r},Cb=function(r){return null==r},aV=function(r){return Array.isArray(r)},hs=function(r){return!!r},wr=function(r){return Cb(r)||Ggt.test(r)},VT=function(r){return xn(lt(r),r.changes)},bb=function(){return"undefined"==typeof document},oV=function(r){return"string"==typeof r},Xde=function(r){return"number"==typeof r&&!isNaN(r)},sV=function(r){return oV(r)&&!wr(r)&&r.startsWith("{0:")?r.slice(3,r.length-1):r},Sb=function(r){return function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:this.activeRow,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.activeCol,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.activate(t,e,n)&&(this.virtualRow=t,this.virtualCol=e)}},{key:"activate",value:function(t,e,n){if(!n&&this.isActiveRange(t,e))return!1;var a=this.activeCol,o=this.activeRow;return this.activeCol=e,this.activeRow=t,this.changes.next({colIndex:e,prevColIndex:a,prevRowIndex:o,rowIndex:t}),!0}},{key:"isActiveRange",value:function(t,e){if(this.activeRow!==t)return!1;var n=this.cell,a=this.model.cellRange(n),o=a.start,s=a.end;return!Boolean(n)||o<=e&&e<=s}},{key:"assume",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.activeRow,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.activeCol;this.virtualRow=t,this.virtualCol=e,this.activeCol=e,this.activeRow=t}},{key:"announce",value:function(){this.changes.next({colIndex:this.activeCol,prevColIndex:this.activeCol,prevRowIndex:this.activeRow,rowIndex:this.activeRow})}},{key:"activateVirtualCell",value:function(t){var e=this.model.rowRange(t),n=this.model.cellRange(t),a=this.activeCol,o=this.activeRow;if(e.start<=o&&o<=e.end&&n.start<=a&&a<=n.end)return this.activeRow=t.rowIndex,this.activeCol=t.colIndex,!0}},{key:"isActive",value:function(t,e){return this.activeCol===e&&this.activeRow===t}},{key:"moveUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetRow(-t)}},{key:"moveDown",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetRow(t)}},{key:"moveLeft",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetCol(-t)}},{key:"moveRight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetCol(t)}},{key:"lastCellIndex",value:function(t){return this.metadata.columns.leafColumnsToRender.length-1+(!this.metadata.hasDetailTemplate||t&&t.groupItem?0:1)}},{key:"offsetCol",value:function(t){var e=this.model.findRow(this.virtualRow),n=this.lastCellIndex(e),a=this.virtualCol;this.virtualCol=Math.max(0,Math.min(a+t,n));var o=this.virtualCol,s=this.virtualRow,l=this.model.findCell(this.virtualCol,e);if(!l&&this.metadata.virtualColumns)return this.activate(s,o);if(l.colSpan>1&&l.colIndex<=a&&a0?Math.min(l.colIndex+l.colSpan,n):Math.max(0,l.colIndex+t);var u=this.model.findCell(o,e);this.virtualCol=l!==u?(l=u).colIndex:a}return this.activate(l.rowIndex,l.colIndex)}},{key:"offsetRow",value:function(t){var e=this.virtualCol;if(this.metadata&&this.metadata.isVirtual){var n=this.metadata.maxLogicalRowIndex,a=Math.max(0,Math.min(this.activeRow+t,n));this.metadata.hasDetailTemplate&&!this.model.findRow(a)&&(a=t>0?a+1:a-1,a=Math.max(0,Math.min(a,n))),this.metadata.hasDetailTemplate&&a===n&&this.model.lastRow.index!==n&&a--;var o=this.model.findRow(a);if(o){var s=this.model.findCell(this.virtualCol,o);s.rowIndex<=this.virtualRow&&t>0&&s.rowSpan>1&&(s=this.model.findCell(this.virtualCol,this.model.findRow(s.rowIndex+s.rowSpan-1+t))),a=s.rowIndex,e=s.colIndex}return this.virtualRow=a,this.activate(a,e)}var l=this.model.findRow(this.virtualRow+t)||this.model.nextRow(this.virtualRow,t);if(!l)return!1;var u=this.model.findCell(this.virtualCol,l);return u&&u.rowIndex<=this.virtualRow&&t>0&&u.rowSpan>1&&(u=this.model.findCell(this.virtualCol,this.model.findRow(u.rowIndex+u.rowSpan-1+t))),!u&&this.metadata.virtualColumns?this.activate(this.virtualRow+t,this.virtualCol):(this.virtualRow=u.rowIndex,this.activate(this.virtualRow,u.colIndex))}}]),i}(),Yde=function(){function i(){p(this,i),this.count=0,this.items={}}return v(i,[{key:"first",get:function(){var t;if(this.count>0)return this.forEach(function(e){return t=e,!0}),t}},{key:"last",get:function(){if(this.count>0){var t=Object.keys(this.items);return this.items[t[t.length-1]]}}},{key:"removeItem",value:function(t){this.items[t]&&(delete this.items[t],this.count--)}},{key:"setItem",value:function(t,e){this.items[t]||this.count++,this.items[t]=e}},{key:"getItem",value:function(t){return this.items[t]}},{key:"toArray",value:function(){var t=[];return this.forEach(function(e){t.push(e)}),t}},{key:"forEach",value:function(t){for(var e in this.items)if(this.items.hasOwnProperty(e)&&t(this.items[e]))return this.items[e]}},{key:"find",value:function(t){return this.forEach(t)}}]),i}(),Xgt=function(){function i(){p(this,i),this.rows=new Yde}return v(i,[{key:"firstRow",get:function(){return this.rows.first}},{key:"lastRow",get:function(){return this.rows.last}},{key:"registerCell",value:function(t){var e=this.rows.getItem(t.logicalRowIndex);if(e){var n=t.logicalColIndex,a={uid:t.uid,colIndex:n,rowIndex:e.index,colSpan:t.colSpan,rowSpan:t.rowSpan,detailExpandCell:t.detailExpandCell,dataItem:e.dataItem,dataRowIndex:e.dataRowIndex,focusGroup:t.focusGroup};return e.cells.setItem(n,a),t.groupItem&&(e.groupItem=t.groupItem),a}}},{key:"unregisterCell",value:function(t,e,n){var a=this.rows.getItem(e);if(a){var o=a.cells.getItem(t);o&&o.uid===n.uid&&a.cells.removeItem(t)}}},{key:"registerRow",value:function(t){var e={uid:t.uid,index:t.logicalRowIndex,dataItem:t.dataItem,dataRowIndex:t.dataRowIndex,cells:new Yde};this.rows.setItem(t.logicalRowIndex,e)}},{key:"updateRow",value:function(t){var e=this.rows.getItem(t.logicalRowIndex);e&&Object.assign(e,{dataItem:t.dataItem,dataRowIndex:t.dataRowIndex})}},{key:"unregisterRow",value:function(t,e){var n=this.rows.getItem(t);n&&n.uid===e.uid&&this.rows.removeItem(t)}},{key:"cellRange",value:function(t){return t?{start:t.colIndex,end:t.colIndex+(t.colSpan||1)-1}:{}}},{key:"rowRange",value:function(t){return t?{start:t.rowIndex,end:t.rowIndex+(t.rowSpan||1)-1}:{}}},{key:"nextRow",value:function(t,e){var n=this.rows.toArray(),a=this.rows.getItem(t),o=n.indexOf(a);return n[o+e]}},{key:"findRow",value:function(t){return this.rows.getItem(t)}},{key:"findCell",value:function(t,e){if(e){for(var n=e.index,a=e.cells.getItem(t),o=n;!a&&e;)e=this.rows.getItem(o),a=this.rowCell(t,e),o--;if(a&&n<=e.index+(a.rowSpan||1)-1)return a}}},{key:"rowCell",value:function(t,e){if(e&&e.cells.count){for(var a,n=e.cells.first,o=t;!a&&o>=n.colIndex;)a=e.cells.getItem(o),o--;if(a&&t<=a.colIndex+(a.colSpan||1)-1)return a}}}]),i}(),Zgt=/^(?:a|input|select|option|textarea|button|object)$/i,uV={},Qde=function(r){return String(r).trim().split(" ")},Rv=function(r,t){var e=Qde(t);return Boolean(Qde(r.className).find(function(n){return e.indexOf(n)>=0}))},Hu=function(r){return function(t){return Rv(t,r)}},Ta=function(r){return uV[r]||(uV[r]=function(t){return String(t.nodeName).toLowerCase()===r.toLowerCase()}),uV[r]},Ga=function(r,t){for(;r&&!t(r);)r=r.parentNode;return r},cV=function(r,t,e){for(;r&&r!==e&&!t(r);)r=r.parentNode;if(r!==e)return r},dV=function(r){var t=r.getBoundingClientRect();return(t.width>0&&t.height>0||0!==t.x&&0!==t.y)&&"hidden"!==window.getComputedStyle(r).visibility},Jde=function(r){if(!r.tagName)return!1;var t=r.tagName.toLowerCase(),e=Boolean(r.getAttribute("tabIndex"));return!r.disabled&&Zgt.test(t)||e},wb=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!Jde(r))return!1;var e=!t||dV(r),n="true"===r.getAttribute("aria-hidden"),a=r.getAttribute("tabIndex");return e&&!n&&"-1"!==a},Ku=function i(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(r){if(e&&t(r))return r;for(r=r.firstChild;r;){if(1===r.nodeType){var n=i(r,t);if(n)return n}r=r.nextSibling}}},Qgt=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=null;return Ku(r,function(a){return t(a)&&(n=a),!1},e),n},ehe=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ku(r,function(e){return wb(e,t)},!1)},ju=function(){function i(){p(this,i),this.changes=new Ot,this.pageChange=new Ot}return v(i,[{key:"currentPage",get:function(){return this.skip/this.pageSize}},{key:"notifyChanges",value:function(t){this.total=t.total,this.pageSize=t.pageSize,this.skip=t.skip,this.changes.next(t)}},{key:"changePage",value:function(t){this.pageChange.next({skip:t*this.pageSize,take:this.pageSize})}},{key:"changePageSize",value:function(t){this.pageChange.next({skip:0,take:t})}},{key:"nextPage",value:function(){var t=this.currentPage+1;t*this.pageSize=0&&this.changePage(t)}}]),i}(),HT=function(){var i=function(){function r(){p(this,r),this.requests=new Ot}return v(r,[{key:"scrollTo",value:function(e){this.requests.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hV=function i(r){return He(r)?{group:r.data,groupIndex:r.index,parentGroup:i(r.parentGroup)}:null},Fm=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.rowState=new Set}return v(r,[{key:"reset",value:function(){this.rowState.clear()}},{key:"ngOnDestroy",value:function(){this.reset()}},{key:"isExpanded",value:function(e){return this.userCallback?this.userCallback(e):!this.rowState.has(e.groupIndex)}},{key:"isInExpandedGroup",value:function(e){for(var n=!0;e&&n;)n=this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:hV(e.parentGroup)}),e=e.parentGroup;return n}},{key:"toggleRow",value:function(e){var n=hV(e.parentGroup),a=!this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:n});this.changes.next({group:e.data,expand:a,groupIndex:e.index,parentGroup:n}),!this.userCallback&&(a?this.rowState.delete(e.index):this.rowState.add(e.index))}},{key:"expandChildren",value:function(e){var n=this;this.rowState.forEach(function(a){return function(r,t){return t!==r&&r.startsWith(t)}(a,e)&&n.rowState.delete(a)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Ov=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),imt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Ov),rmt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Ov),Db=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.rowState=new Set}return v(r,[{key:"ngOnDestroy",value:function(){this.rowState.clear()}},{key:"isExpanded",value:function(e,n){return this.userCallback?this.userCallback({index:e,dataItem:n}):this.rowState.has(e)}},{key:"toggleRow",value:function(e,n){this.isExpanded(e,n)?this.collapseRow(e,n):this.expandRow(e,n)}},{key:"expandRow",value:function(e,n){!this.emitEvent({dataItem:n,index:e,expand:!0})&&!this.userCallback&&this.rowState.add(e)}},{key:"collapseRow",value:function(e,n){!this.emitEvent({dataItem:n,index:e,expand:!1})&&!this.userCallback&&this.rowState.delete(e)}},{key:"emitEvent",value:function(e){var n=new(e.expand?rmt:imt)(e);return this.changes.next(n),n.isDefaultPrevented()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),fV=new wt("focus-root-initial-active-state"),Eh=function(){var i=function(){function r(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,r),this.active=t,this.groups=new Set}return v(r,[{key:"registerGroup",value:function(e){this.active&&this.groups.add(e)}},{key:"unregisterGroup",value:function(e){this.active&&this.groups.delete(e)}},{key:"activate",value:function(){this.active&&this.groups.forEach(function(e){return e.activate()})}},{key:"deactivate",value:function(){this.active&&this.groups.forEach(function(e){return e.deactivate()})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fV,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),amt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).action="cellClose",Object.assign(Xe(n),e),n}return v(t)}(Ov),Iv=function(r){return-1===r||void 0===r},Pl=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.changes=new O,this.editedIndices=[],this.keepEditCell=!1,this.closingCell=!1,this.changedSource=new Ot,this.changed=this.changedSource.asObservable().pipe(Nn(function(){return e.ngZone.onStable.asObservable().pipe(It(1))}))}return v(r,[{key:"editRow",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.editedIndices.push({index:e,group:n}),this.onChanged()}},{key:"addRow",value:function(e){this.newItemGroup={group:e},this.onChanged()}},{key:"editCell",value:function(e,n,a){Iv(e)||!1===n.editable||!n.editTemplate&&!n.field||(this.preventCellClose(),this.closeCell()||(this.editRow(e,a),this.column=n,this.onChanged()))}},{key:"isEditing",value:function(){return this.editedIndices.length>0}},{key:"isEditingCell",value:function(){return this.isEditing()&&void 0!==this.column}},{key:"hasNewItem",get:function(){return He(this.newItemGroup)}},{key:"newDataItem",get:function(){return this.hasNewItem?this.newItemGroup.group.value:{}}},{key:"close",value:function(e){Iv(e)?this.newItemGroup=void 0:(this.editedIndices=this.editedIndices.filter(function(r){return function(t){return t.index!==r}}(e)),delete this.column,this.onChanged())}},{key:"closeCell",value:function(e){var n=this;if(this.column&&!this.closingCell)return this.ngZone.run(function(){var a=n.editedIndices[0],l=new amt({column:n.column,formGroup:a.group,originalEvent:e,rowIndex:a.index});return n.closingCell=!0,n.changes.emit(l),n.closingCell=!1,l.isDefaultPrevented()||n.cancelCell(),l.isDefaultPrevented()})}},{key:"cancelCell",value:function(){this.column&&(this.editedIndices=[],delete this.column,this.onChanged())}},{key:"shouldCloseCell",value:function(){return this.column&&!this.keepEditCell}},{key:"preventCellClose",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){window.clearTimeout(e.keepCellTimeout),e.keepEditCell=!0,e.keepCellTimeout=window.setTimeout(function(){e.keepEditCell=!1},0)})}},{key:"context",value:function(e){return Iv(e)?this.newItemGroup:this.findByIndex(e)}},{key:"columnContext",value:function(e,n){return Iv(e)?this.newItemGroup:this.column&&n!==this.column?void 0:this.findByIndex(e)}},{key:"isEdited",value:function(e){return!(!Iv(e)||!He(this.newItemGroup))||!this.column&&He(this.findByIndex(e))}},{key:"hasEdited",value:function(e){return He(this.context(e))}},{key:"isEditedColumn",value:function(e,n){return!(!this.column||this.column!==n)&&He(this.findByIndex(e))}},{key:"beginEdit",value:function(e){this.changes.emit({action:"edit",rowIndex:e})}},{key:"beginAdd",value:function(){this.changes.emit({action:"add"})}},{key:"endEdit",value:function(e){var n=this.context(e);this.changes.emit({action:"cancel",rowIndex:e,formGroup:n.group,isNew:Iv(e)})}},{key:"save",value:function(e){var n=this.context(e);this.changes.emit({action:"save",rowIndex:e,formGroup:n.group,isNew:Iv(e)})}},{key:"remove",value:function(e){this.changes.emit({action:"remove",rowIndex:e})}},{key:"findByIndex",value:function(e){return this.editedIndices.find(function(r){return function(t){return t.index===r}}(e))}},{key:"onChanged",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.changedSource.next()})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),lmt=Ta("button"),umt=Ta("input"),cmt=/(button|checkbox|color|file|radio|reset|submit)/i,fmt=function(){function i(r,t){p(this,i),this.renderer=t,this.element=r.nativeElement,this.focusable=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ku(r,function(e){return wb(e,t)})}(this.element,!1)||this.element}return v(i,[{key:"enabled",get:function(){return this.focusable&&!this.focusable.disabled}},{key:"visible",get:function(){return this.focusable&&dV(this.focusable)}},{key:"isNavigable",value:function(){return this.canFocus()&&function(r){return!r.disabled&&(lmt(r)||function(r){return umt(r)&&cmt.test(r.type)}(r))}(this.element)}},{key:"toggle",value:function(t){this.renderer.setAttribute(this.focusable,"tabIndex",t?"0":"-1")}},{key:"focus",value:function(){this.focusable&&this.focusable.focus()}},{key:"canFocus",value:function(){return this.visible&&this.enabled}},{key:"hasFocus",value:function(){var t=this;return document.activeElement!==this.element&&Ga(document.activeElement,function(e){return e===t.element})}}]),i}(),td=new wt("grid-cell-context"),vmt={},co=function(){var i=function(){function r(t,e,n){p(this,r),this.cellContext=t,this.hostElement=e,this.renderer=n,this.active=!0,this._enabled=!0,this.cellContext&&(this.group=this.cellContext.focusGroup),this.group&&this.group.registerElement(this)}return v(r,[{key:"enabled",get:function(){return this._enabled},set:function(e){(e=""===e||Boolean(e))!==this.enabled&&(this._enabled=e,this.element&&this.element.toggle(this.active&&e))}},{key:"ngAfterViewInit",value:function(){this.element||(this.element=new fmt(this.hostElement,this.renderer)),this.group&&this.element&&this.toggle(this.group.isActive)}},{key:"ngOnDestroy",value:function(){this.group&&this.group.unregisterElement(this)}},{key:"toggle",value:function(e){this.element&&e!==this.active&&(this.element.toggle(this.enabled&&e),this.active=e)}},{key:"canFocus",value:function(){return this.enabled&&this.element&&this.element.canFocus()}},{key:"isNavigable",value:function(){return this.enabled&&this.element&&this.element.isNavigable()}},{key:"focus",value:function(){this.enabled&&this.element&&this.element.focus()}},{key:"hasFocus",value:function(){return this.enabled&&this.element&&this.element.hasFocus()}},{key:"registerElement",value:function(e){this.element=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(td,12),m(ke),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoGridFocusable",""],["","kendoGridEditCommand",""],["","kendoGridRemoveCommand",""],["","kendoGridSaveCommand",""],["","kendoGridCancelCommand",""],["","kendoGridSelectionCheckbox",""]],inputs:{enabled:["kendoGridFocusable","enabled"]}}),i}(),pmt=function(r,t){return Ga(r,Ta("kendo-grid"))===t},gmt=Ta("th"),mmt=Ta("td"),_mt=Ta(".k-grid-footer td"),the=function(r){return mmt(r)||gmt(r)||_mt(r)},vV=function(r,t){var e=function(r,t){for(var e=Ga(r,the);e&&!pmt(e,t);)e=Ga(e.parentElement,the);return e}(r,t),n=Ga(e,Ta("tr"));if(e&&n){var a=n.getAttribute("aria-rowindex");a=a?parseInt(a,10)-1:null;var o=e.getAttribute("aria-colindex");if(o=o?parseInt(o,10)-1:null,null!==a&&null!==o)return{colIndex:o,rowIndex:a,element:e}}},nhe=function(r){return function(r){return r===J.ArrowLeft||r===J.ArrowRight||r===J.ArrowUp||r===J.ArrowDown}(r)||r===J.PageUp||r===J.PageDown||r===J.Home||r===J.End},Cmt=Ta("input"),ihe=function(){function i(r,t){p(this,i),this.firstItemIndex=r,this.lastItemIndex=t}return v(i,[{key:"containsRow",value:function(t){return t<0||t>=this.firstItemIndex&&t<=this.lastItemIndex}},{key:"intersects",value:function(t,e){return t<=this.firstItemIndex&&this.lastItemIndex<=e||this.firstItemIndex<=t&&t<=this.lastItemIndex||this.firstItemIndex<=e&&e<=this.lastItemIndex}}]),i}(),Va=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.zone=t,this.domEvents=e,this.pagerContextService=n,this.scrollRequestService=a,this.groupsService=o,this.detailsService=s,this.focusRoot=l,this.editService=u,this.cd=c,this.localization=d,this.focusableParent=h,this.cellKeydown=new O,this.activeRowIndex=0,this.alive=!1,this.active=!0,this.mode=0,this.model=new Xgt,this.cursor=new qgt(this.model),this.changes=this.cursor.changes}return v(r,[{key:"metadata",get:function(){return this.meta},set:function(e){this.meta=e,this.cursor.metadata=e}},{key:"enabled",get:function(){return this.alive}},{key:"activeCell",get:function(){if(0!==this.mode)return this.cursor.cell}},{key:"activeRow",get:function(){if(0!==this.mode)return Object.assign({},this.cursor.row,{cells:this.cursor.row.cells.toArray()})}},{key:"activeDataRow",get:function(){return Math.max(0,this.activeRowIndex-this.meta.headerRows)}},{key:"init",value:function(e){var n=this;this.alive=!0,this.focusRoot.active=!0,this.metadata=e;var a=function(){for(var u=arguments.length,c=new Array(u),d=0;do&&this.cursor.reset(0,0)}}},{key:"isCellFocusable",value:function(e){return this.alive&&this.active&&2!==this.mode&&this.cursor.isActive(e.logicalRowIndex,e.logicalColIndex)}},{key:"isCellFocused",value:function(e){return 1===this.mode&&this.isCellFocusable(e)}},{key:"navigateTo",value:function(e){if(this.alive){var n=vV(e,this.meta.gridElement.nativeElement);if(n){var a=this.mode,o=function(r,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!Ga(t,function(o){return o===r});if(n)return!1;var a=Ga(t,function(o){return o===t});return a&&(e||a!==r)}(n.element,document.activeElement),s=2===this.mode&&this.activeRowIndex===n.rowIndex&&e!==n.element;if(o)this.mode=2,this.cursor.reset(n.rowIndex,n.colIndex),this.activateRow();else if(!s){this.mode=1,this.deactivateElements();var l=this.cursor.isActive(n.rowIndex,n.colIndex);1===a&&l||this.cursor.reset(n.rowIndex,n.colIndex)}}}}},{key:"tryFocus",value:function(e){this.activateElements();var n=ehe(e);if(n){var a=vV(n,this.meta.gridElement.nativeElement);a&&(this.cursor.reset(a.rowIndex,a.colIndex),this.deactivateElements(),this.enterCell()),n.focus()}else this.deactivateElements();return!!n}},{key:"needsViewport",value:function(){return this.meta&&this.meta.isVirtual}},{key:"setViewport",value:function(e,n){if(this.viewport=new ihe(e,n),this.meta&&this.meta.isVirtual&&this.activeDataRow>-1){var a=this.activeDataRow,s=a-n;e-a>0?this.cursor.reset(e+this.meta.headerRows):s>0&&this.cursor.reset(n-this.meta.headerRows)}}},{key:"setColumnViewport",value:function(e,n){this.columnViewport=new ihe(e,n)}},{key:"focusCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.mode=1,this.cursor.reset(e,n),this.activeCell}},{key:"focusCellByElement",value:function(e){var n=vV(e,this.meta.gridElement.nativeElement);if(n)return this.focusCell(n.rowIndex,n.colIndex)}},{key:"focusNextCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.focusAdjacentCell(!0,e)}},{key:"focusPrevCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.focusAdjacentCell(!1,e)}},{key:"toggle",value:function(e){this.active=e,this.cursor.announce()}},{key:"hasFocus",value:function(){return 1===this.mode||2===this.mode}},{key:"autoFocusCell",value:function(e,n){return!this.meta.virtualColumns||n=this.meta.headerRows&&this.viewport&&!this.viewport.containsRow(n)&&n>-1&&this.scrollRequestService.scrollTo({row:n}),this.meta.virtualColumns&&e.colIndex>=this.meta.columns.lockedLeafColumns.length){var a=this.activeCell,o=this.model.cellRange(a),s=o.start,l=o.end;a||(this.virtualCell=!0),(!a&&0!==this.mode||a&&!this.columnViewport.intersects(s,l))&&this.scrollRequestService.scrollTo({column:e.colIndex-(this.metadata.hasDetailTemplate?1:0)})}}},{key:"onFocusOut",value:function(e){this.mode=dV(e.target)?0:1,this.deactivateElements(),this.cursor.announce()}},{key:"onWindowBlur",value:function(){this.mode=0,this.deactivateElements(),this.cursor.announce()}},{key:"onKeydown",value:function(e){1===this.mode?this.onCursorKeydown(e):2===this.mode&&this.onContentKeydown(e)}},{key:"onTabout",value:function(){this.cursor.cell.focusGroup.isNavigable()||(this.leaveCell(),this.cursor.reset())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Mv),oe(ju),oe(HT),oe(Fm),oe(Db),oe(Eh),oe(Pl),oe(nt),oe(Y),oe(co,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Lm=function(){var i=function(){function r(t,e,n){p(this,r),this.domEvents=t,this.localDataChangesService=e,this.navigationService=n,this.changes=new O,this.lastSelectionStartIndex=0,this.currentSelection=[],this.selectAllChecked=!1,this.active=!1,this.dragging=!1,this.addSubscriptions()}return v(r,[{key:"enableMarquee",get:function(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;var n=this.settings.selectable,a="object"==typeof n&&He(n)&&"multiple"===n.mode&&!1!==n.enabled&&!n.checkboxOnly&&n.drag;return this.active&&a}},{key:"init",value:function(e){if(this.settings=e,this.currentSelection=[],e.selectable&&!1!==e.selectable.enabled){var n=this.getIterator();this._selectAllState=!0;for(var a=n.next();!a.done;){if(a.value&&"data"===a.value.type){var o={dataItem:a.value.data,index:a.value.index};e.rowSelected(o)?this.currentSelection[a.value.index]=o:this._selectAllState=void 0}a=n.next()}0===this.currentSelection.length&&(this._selectAllState=!1)}}},{key:"isSelected",value:function(e){if(this.settings&&this.active)return this.options.enabled&&He(this.currentSelection[e])}},{key:"handleClick",value:function(e,n){if(this.dragging)this.dragging=!1;else{var a,o=n.ctrlKey||n.metaKey;"single"===this.options.mode&&o&&this.isSelected(e.index)?a=this.toggle(e):"multiple"===this.options.mode&&(o&&!n.shiftKey?a=this.toggle(e):n.shiftKey&&(a=this.addAllTo(e,o))),He(a)||(a=this.select(e),this.currentSelection[e.index]={dataItem:e.data,index:e.index}),(a.selectedRows.length||a.deselectedRows.length)&&(a.ctrlKey=o,a.shiftKey=n.shiftKey,this.changes.emit(a))}}},{key:"toggle",value:function(e){var n=[],a=[];this.lastSelectionStartIndex=e.index;var o={dataItem:e.data,index:e.index};return this.isSelected(e.index)?a.push(o):n.push(o),{deselectedRows:a,selectedRows:n}}},{key:"toggleByIndex",value:function(e){var n=this.getIterator();this.selectAllChecked&&this.isSelected(e)&&(this.selectAllChecked=!1);for(var a=n.next();!a.done;){if(a.value&&"data"===a.value.type&&a.value.index===e){var o={data:a.value.data,index:a.value.index};return this.isSelected(e)||"multiple"===this.options.mode?this.toggle(o):this.select(o)}a=n.next()}}},{key:"select",value:function(e){var n=[],a=[];return this.lastSelectionStartIndex=e.index,this.isSelected(e.index)||a.push({dataItem:e.data,index:e.index}),this.currentSelection.forEach(function(o){o.index!==e.index&&n.push(o)}),{deselectedRows:n,selectedRows:a}}},{key:"deselect",value:function(e){for(var n=this.getIterator(),a=n.next();!a.done;){if(a.value&&"data"===a.value.type&&a.value.data===e){var o={dataItem:a.value.data,index:a.value.index};this.isSelected(o.index)&&this.changes.emit({ctrlKey:!1,deselectedRows:[o],selectedRows:[]})}a=n.next()}}},{key:"addAllTo",value:function(e,n){for(var a=[],o=[],s=Math.min(this.lastSelectionStartIndex,e.index),l=Math.max(this.lastSelectionStartIndex,e.index),u=this.getIterator(),c=u.next();!c.done;){if(c.value&&"data"===c.value.type){var d=c.value.index,h={dataItem:c.value.data,index:d};(dl)&&this.isSelected(d)&&!n&&o.push(h),d>=s&&d<=l&&!this.isSelected(d)&&a.push(h)}c=u.next()}return{deselectedRows:o,selectedRows:a}}},{key:"updateAll",value:function(e){this.selectAllChecked=e;for(var n=[],a=[],o=this.getIterator(),s=o.next();!s.done;){if(s.value&&"data"===s.value.type){var l=s.value.index,u={dataItem:s.value.data,index:l};this.isSelected(l)&&!e&&a.push(u),!this.isSelected(l)&&e&&n.push(u)}s=o.next()}(n.length||a.length)&&this.changes.emit({ctrlKey:!0,deselectedRows:a,selectedRows:n,shiftKey:!0})}},{key:"selectRange",value:function(e,n){for(var a=[],o=[],s=Math.min(e,n),l=Math.max(e,n),u=this.getIterator(),c=u.next();!c.done;){if(c.value&&"data"===c.value.type){var d=c.value.index,h={dataItem:c.value.data,index:d};(dl)&&this.isSelected(d)&&o.push(h),d>=s&&d<=l&&!this.isSelected(d)&&a.push(h)}c=u.next()}return{deselectedRows:o,selectedRows:a}}},{key:"selectAllState",get:function(){return this._selectAllState}},{key:"selected",get:function(){return this.currentSelection.map(function(e){return e.index}).filter(function(e){return"number"==typeof e})}},{key:"options",get:function(){var e={checkboxOnly:!1,enabled:!0,mode:"multiple"};return He(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}},{key:"ngOnDestroy",value:function(){this.removeSubscriptions()}},{key:"targetArgs",value:function(){return{index:this.mouseDownEventArgs.rowIndex,dataItem:this.mouseDownEventArgs.dataItem}}},{key:"addSubscriptions",value:function(){var e=this;this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(function(n){e.options.enabled&&!e.options.checkboxOnly&&"contextmenu"!==n.type&&e.active&&e.handleClick({index:n.rowIndex,data:n.dataItem},n.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(function(n){e.mouseDownEventArgs=n,e.options.enabled&&(!e.options.mode||"multiple"===e.options.mode)&&!e.options.checkboxOnly&&n.originalEvent.shiftKey&&e.active&&(n.originalEvent.preventDefault(),e.navigationService.focusCellByElement(n.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(function(n){e.active&&He(n.action)&&"remove"===n.action&&e.deselect(n.item)}))}},{key:"getIterator",value:function(){var e=this.settings.view.accessor();if(e)return e[zu]()}},{key:"removeSubscriptions",value:function(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Mv),oe(ed),oe(Va))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),KT=function(){var i=function(){function r(t,e,n){p(this,r),this.domEvents=t,this.localDataChangesService=e,this.navigationService=n,this.changes=new O,this.mouseUpEvent=new O,this.currentSelection=[],this.active=!1,this.dragging=!1,this.dragSelectDeselect=!1,this.lastSelectionItem={itemKey:0,columnKey:0},this.lastSelectionItemRowIndex=0,this.lastSelectionItemColIndex=0,this.addSubscriptions()}return v(r,[{key:"enableMarquee",get:function(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;var n=this.settings.selectable,a="object"==typeof n&&He(n)&&"multiple"===n.mode&&n.cell&&!1!==n.enabled&&n.drag;return this.active&&a}},{key:"init",value:function(e){var n=this;if(this.settings=e,this.currentSelection=[],e.selectable&&!1!==e.selectable.enabled)for(var a=this.getIterator(),o=a.next();!o.done;)o.value&&"data"===o.value.type&&function(){var s={dataItem:o.value.data,index:o.value.index};e.columns.forEach(function(l){var u=e.cellSelected(s,l,l.leafIndex);u.selected&&n.currentSelection.push(u.item)})}(),o=a.next()}},{key:"isCellSelected",value:function(e,n){if(this.settings&&this.active){var a=this.settings.cellSelected({dataItem:e.data,index:e.index},n,n.leafIndex);return this.options.enabled&&a.selected}return!1}},{key:"handleClick",value:function(e,n){if(this.dragging)this.dragging=!1;else{var a,o=n.ctrlKey||n.metaKey;if("single"===this.options.mode&&o&&this.isCellSelected(e,e.column))a=this.toggle(e);else if("multiple"===this.options.mode)if(o&&!n.shiftKey)a=this.toggle(e);else if(n.shiftKey){var s=Math.min(this.lastSelectionItemRowIndex,e.index),l=Math.min(this.lastSelectionItemColIndex,e.column.leafIndex),u=Math.max(this.lastSelectionItemRowIndex,e.index),c=Math.max(this.lastSelectionItemColIndex,e.column.leafIndex);a=this.selectRange(s,l,u,c)}He(a)||(a=this.select(e),this.currentSelection=[this.lastSelectionItem]),(a.selectedCells.length||a.deselectedCells.length)&&(a.ctrlKey=o,a.shiftKey=n.shiftKey,this.changes.emit(a))}}},{key:"toggle",value:function(e){var n=[],a=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:e.data,index:e.index},e.column,e.column.leafIndex).item,this.lastSelectionItemRowIndex=e.index,this.lastSelectionItemColIndex=e.column.leafIndex,this.isCellSelected(e,e.column)?a.push(this.lastSelectionItem):n.push(this.lastSelectionItem),{deselectedCells:a,selectedCells:n}}},{key:"select",value:function(e){var n=this,a=[],o=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:e.data,index:e.index},e.column,e.column.leafIndex).item,this.lastSelectionItemRowIndex=e.index,this.lastSelectionItemColIndex=e.column.leafIndex,this.isCellSelected(e,e.column)||a.push(this.lastSelectionItem),this.currentSelection.forEach(function(s){(s.itemKey!==n.lastSelectionItem.itemKey||s.columnKey!==n.lastSelectionItem.columnKey)&&o.push(s)}),{deselectedCells:o,selectedCells:a}}},{key:"deselect",value:function(e){for(var s,n=this,a=this.getIterator(),o=a.next();!o.done;){if(o.value&&"data"===o.value.type&&o.value.data===e){s={dataItem:o.value.data,index:o.value.index};break}o=a.next()}if(s){var l=this.currentSelection.filter(function(c){var d=n.settings.cellSelected(s,null,null).item;return c.itemKey===d.itemKey});l.length&&this.changes.emit({ctrlKey:!1,deselectedCells:l,selectedCells:[]})}}},{key:"selectRange",value:function(e,n,a,o){for(var s=this,l=[],u=[],c=Math.min(e,a),d=Math.min(n,o),h=Math.max(e,a),f=Math.max(n,o),g=this.getIterator(),_=g.next();!_.done;)_.value&&"data"===_.value.type&&function(){var C=_.value.index,E={dataItem:_.value.data,index:C};s.settings.columns.forEach(function(M){var N=s.settings.cellSelected(E,M,M.leafIndex).item,V=s.isCellSelected(_.value,M),ve=c<=C&&C<=h&&d<=M.leafIndex&&M.leafIndex<=f;!ve&&V&&u.push(N),ve&&!V&&l.push(N)})}(),_=g.next();return{deselectedCells:u,selectedCells:l}}},{key:"options",get:function(){var e={checkboxOnly:!1,enabled:!0,mode:"multiple"};return He(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}},{key:"ngOnDestroy",value:function(){this.removeSubscriptions()}},{key:"addSubscriptions",value:function(){var e=this;this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(function(n){e.options.enabled&&!e.options.checkboxOnly&&"contextmenu"!==n.type&&e.active&&e.handleClick({index:n.rowIndex,data:n.dataItem,column:n.column},n.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(function(n){e.mouseDownEventArgs=n,e.options.enabled&&(!e.options.mode||"multiple"===e.options.mode)&&!e.options.checkboxOnly&&n.originalEvent.shiftKey&&e.active&&(n.originalEvent.preventDefault(),e.navigationService.focusCellByElement(n.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(function(n){e.active&&He(n.action)&&"remove"===n.action&&e.deselect(n.item)}))}},{key:"getIterator",value:function(){var e=this.settings.view.accessor();if(e)return e[zu]()}},{key:"removeSubscriptions",value:function(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Mv),oe(ed),oe(Va))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rhe={topLeft:{x:2,y:2},topRight:{x:-2,y:2},bottomLeft:{x:2,y:-2},bottomRight:{x:-2,y:-2}},ahe=function(){var i=function(){function r(t,e,n,a){p(this,r),this.draggable=t,this.selection=e,this.cellSelection=n,this.domEvents=a,this.selectionStarted=!1}return v(r,[{key:"webkitUserSelection",get:function(){return this.cellSelection.enableMarquee||this.selection.enableMarquee?"none":null}},{key:"userSelection",get:function(){return this.cellSelection.enableMarquee||this.selection.enableMarquee}},{key:"ngOnInit",value:function(){this.subscriptions=this.draggable.kendoPress.subscribe(this.start.bind(this)),this.subscriptions.add(this.draggable.kendoDrag.subscribe(this.moveMarquee.bind(this)))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe(),this.clean()}},{key:"start",value:function(e){e.originalEvent.target.classList.contains("k-checkbox")?this.pressArgs=null:(this.pressArgs=e,this.pressTarget=null)}},{key:"moveMarquee",value:function(e){this.pressTarget||(this.pressTarget=this.cellSelection.active?this.cellSelection.mouseDownEventArgs:this.selection.mouseDownEventArgs);var n=this.pressArgs;if(n){if(!this.selectionStarted){if(!(Math.sqrt(Math.pow(e.pageX-n.pageX,2)+Math.pow(e.pageY-n.pageY,2))>5))return;this.selectionStarted=!0,this.dragEndSubscription=xn(this.domEvents.cellMouseup.pipe(It(1)),this.draggable.kendoRelease.pipe(Dd(1),It(1))).subscribe(this.endSelection.bind(this))}this.initMarquee();var o=this.marqueeElement,s=this.getMarqueeQuadrant(e.pageX,e.pageY,n.pageX,n.pageY),l=Math.min(e.pageX,n.pageX),u=Math.min(e.pageY,n.pageY),c=Math.abs(e.pageX-n.pageX),d=Math.abs(e.pageY-n.pageY);s&&(l+=rhe[s].x,u+=rhe[s].y),o.style.left="".concat(l,"px"),o.style.top="".concat(u,"px"),o.style.width="".concat(c,"px"),o.style.height="".concat(d,"px")}}},{key:"endSelection",value:function(e){("mouseup"===e.type||"touchend"===e.type)&&(this.cellSelection.active?(this.cellSelection.dragging=!0,this.cellSelection.changes.emit(this.cellSelection.selectRange(this.pressTarget.rowIndex,this.pressTarget.column.leafIndex,e.rowIndex,e.column.leafIndex))):this.selection.active&&(this.selection.dragging=!0,this.selection.changes.emit(this.selection.selectRange(this.pressTarget.rowIndex,e.rowIndex)))),this.clean()}},{key:"clean",value:function(){this.marqueeElement&&(document.body.removeChild(this.marqueeElement),this.marqueeElement=null),this.dragEndSubscription&&this.dragEndSubscription.unsubscribe(),this.dragEndSubscription=null,this.pressTarget=null,this.pressArgs=null,this.selectionStarted=!1,this.cellSelection.active?this.cellSelection.dragging=!1:this.selection.dragging=!1}},{key:"initMarquee",value:function(){this.marqueeElement||(this.marqueeElement=function(){var r=document.createElement("div");r.className="k-marquee";var t=document.createElement("div");return t.className="k-marquee-color",r.appendChild(t),r}(),document.body.appendChild(this.marqueeElement))}},{key:"getMarqueeQuadrant",value:function(e,n,a,o){var s=ea,u=no;return s&&u?"topLeft":s&&c?"bottomLeft":l&&u?"topRight":l&&c?"bottomRight":null}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o),m(Lm),m(KT),m(Mv))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectionMarquee",""]],hostVars:4,hostBindings:function(t,e){2&t&&(Qe("-webkit-user-select",e.webkitUserSelection),ue("user-select-none",e.userSelection))}}),i}(),pV=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return p(this,t),(n=r.call(this,a)).ngZone=e,n}return v(t,[{key:"subscribe",value:function(n,a,o){var l,s=this,u=function(h){return null},c=function(){return null};return n&&"object"==typeof n?(l=function(h){s.ngZone.run(function(){return n.next(h)})},n.error&&(u=function(h){s.ngZone.run(function(){return n.error(h)})}),n.complete&&(c=function(){s.ngZone.run(function(){return n.complete()})})):(l=function(h){s.ngZone.run(function(){return n(h)})},a&&(u=function(h){s.ngZone.run(function(){return a(h)})}),o&&(c=function(){s.ngZone.run(function(){return o()})})),$(q(t.prototype),"subscribe",this).call(this,l,u,c)}}]),t}(O),Emt={name:"@progress/kendo-angular-grid",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652253736,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Nv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCellTemplate",""]]}),i}(),gV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupHeaderTemplate",""]]}),i}(),mV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupHeaderColumnTemplate",""]]}),i}(),jT=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditTemplate",""]]}),i}(),_V=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupFooterTemplate",""]]}),i}(),yV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridHeaderTemplate",""]]}),i}(),kV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridFooterTemplate",""]]}),i}(),WT=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuTemplate",""]]}),i}(),Tmt=0,Bl=function(){var i=function(){function r(){p(this,r),this.prefix="k-grid".concat(Tmt++)}return v(r,[{key:"gridId",value:function(){return this.prefix}},{key:"cellId",value:function(e,n){return"".concat(this.prefix,"-r").concat(e,"c").concat(n)}},{key:"selectionCheckboxId",value:function(e){return"".concat(this.prefix,"-checkbox").concat(e)}},{key:"selectAllCheckboxId",value:function(){return"".concat(this.prefix,"-select-all")}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),CV=function(r){return r.isSpanColumn},ohe=function(r){return r.isCheckboxColumn},Ir=function(){var i=function(){function r(t,e){if(p(this,r),this.parent=t,this.matchesMedia=!0,this.orderIndex=0,this.isColumnGroup=!1,this.isSpanColumn=!1,this.resizable=!0,this.reorderable=!0,this.minResizableWidth=10,this._locked=!1,this.sticky=!1,this.lockable=!0,this.stickable=!0,this.columnMenu=!0,this.includeInChooser=!0,this.headerTemplates=new Ei,this.columnMenuTemplates=new Ei,this.idService=e,t&&e&&t.idService.gridId()===e.gridId()&&!function(r){return r.isColumnGroup||CV(r)}(t))throw new Error("Columns can be nested only inside ColumnGroupComponent")}return v(r,[{key:"leafIndex",get:function(){return this._leafIndex},set:function(e){this._leafIndex=e}},{key:"width",get:function(){return this._width},set:function(e){if("string"==typeof e){var n=this._width=parseInt(e,10);xt()&&console.warn('Expected numeric value for column width, but got a string "'.concat(e,'". Treating as ').concat(n,"px."))}else this._width=e}},{key:"locked",get:function(){return this._locked},set:function(e){this._locked=e}},{key:"level",get:function(){return this.parent&&CV(this.parent)?this.parent.level:this.parent?this.parent.level+1:0}},{key:"isLocked",get:function(){return this.parent?this.parent.isLocked:this.locked}},{key:"colspan",get:function(){return 1}},{key:"rowspan",value:function(e){return this.level0}}]),e}(Ir);return i.\u0275fac=function(t){return new(t||i)(m(Ir,13),m(Bl,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-span-column"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,Nv,4),he(n,jT,4),he(n,Pm,4)),2&t&&(P(a=B())&&(e.template=a),P(a=B())&&(e.editTemplate=a),P(a=B())&&(e.childColumns=a))},inputs:{editable:"editable",locked:"locked"},features:[de([{provide:Ir,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Wu=function(r){return r.reduce(function(t,e){return t.concat($T(e)?e.childrenArray:[e])},[])},lhe=function(r){return r.reduce(function(t,e){return t.concat($T(e)?[e].concat(e.childrenArray):[e])},[])},nd=function(r){return Wu(r).filter(function(t){return t.isVisible})},uhe=function(r){return function(t){return(t||[]).reduce(function(e,n){return e+(n[r]||0)},0)}},xmt=uhe("width"),qT=uhe("colspan"),Mmt=new RegExp("^[$A-Z_a-z][$A-Z_a-z0-9\\.]*$"),XT=function i(r){return r.reduce(function(t,e){return e.isColumnGroup?t=t.concat(i(function(r){return r.children.filter(function(t){return t!==r})}(e))):e.isSpanColumn?t=t.concat(e.childrenArray):t.push(e),t},[]).filter(function(t){return t.isVisible})},wV=function(r){for(var t=arguments.length,e=new Array(t>1?t-1:0),n=1;n",document.body.appendChild(i);var r=i.scrollLeft;i.scrollLeft=-1,EV=i.scrollLeft<0?i.scrollLeft:r,document.body.removeChild(i)}return EV}()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(nt))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),AV=function(r){return void 0!==r.items&&void 0!==r.field},Pmt=function i(r){return r.reduce(function(t,e){return AV(e)?t.concat(i(e.items)):t.concat([e])},[])},Bmt=function(r,t){var e=r[0];return He(e)&&AV(e)?Pmt(r)[t]:r[t]},fhe=function(r,t){var e=t.footers,n=t.level,a=t.dataIndex,o=t.parentGroupIndex,s=t.groupIndex,l=t.parentGroup,u=r[0];return He(u)&&AV(u)?(function(r){return void 0!==r.offset&&void 0!==r.skipHeader}(u)&&(s=He(u.offset)?u.offset:s),new zmt(r,e,n,a,o,s,l)):new Vmt(r,a,o,l)},Gmt=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,i),this.arr=r,this.idx=t,this.arr=r||[]}return v(i,[{key:zu,value:function(){return this}},{key:"next",value:function(){return this.idx1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(a){return a};p(this,i),this.dataIndex=t,this.resultMap=e;var n=r[zu];this._innerIterator=n?r[zu]():new Gmt(r)}return v(i,[{key:zu,value:function(){return this}},{key:"next",value:function(){return this.resultMap(this._innerIterator.next(),this.dataIndex++)}}]),i}(),Vmt=function(i){b(t,i);var r=S(t);function t(e,n,a,o){return p(this,t),r.call(this,e,n,function(s,l){return{done:s.done,value:{data:s.value,groupIndex:a,index:l,type:"data",group:o}}})}return v(t,[{key:"index",get:function(){return this.dataIndex}}]),t}(vhe),zmt=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0;p(this,i),this.arr=r,this.outputFooters=t,this.level=e,this.dataIndex=n,this.parentIndex=a,this.groupIndex=o,this.parentGroup=s,this.currentGroupIndex="",this.arr=r||[],this._iterator=new vhe(this.arr,this.dataIndex)}return v(i,[{key:zu,value:function(){return this}},{key:"nextGroupItem",value:function(){return this.current=this._iterator.next().value,this._innerIterator=null,this.current?(this.currentGroupIndex=function(r,t){return"".concat(r&&r+"_").concat(t)}(this.parentIndex,this.groupIndex++),{done:!1,value:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}):(this.current=null,{done:!0,value:void 0})}},{key:"footerItem",value:function(){if(this.current){var t=this.current;return this.current=null,{done:!1,value:{data:t,groupIndex:this.currentGroupIndex,level:this.level,type:"footer",group:{data:t,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}}}return this.current=null,{done:!0,value:void 0}}},{key:"innerIterator",value:function(t){return this._innerIterator||(this._innerIterator=fhe(t.items,{dataIndex:this.dataIndex,footers:this.outputFooters,level:this.level+1,parentGroupIndex:this.currentGroupIndex,parentGroup:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}})),this._innerIterator}},{key:"nextDataItem",value:function(t){var n=this.innerIterator(t).next();return He(n.value)&&!n.done&&"data"===n.value.type&&(this.dataIndex=n.value.index+1),n.done?void 0:n}},{key:"next",value:function(){return He(this.current)?this.nextDataItem(this.current)||(this.outputFooters?this.footerItem():this.nextGroupItem()):this.nextGroupItem()}},{key:"index",get:function(){return this.dataIndex+1}}]),i}(),Hmt=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,i),this.source=r,this.skip=t,this.groupFooters=e,this.source=this.source?this.source:[],this.isObject=this.isGridDataResult(this.source)}return v(i,[{key:"isGridDataResult",value:function(t){return void 0!==t.total&&void 0!==t.data}},{key:"total",get:function(){return this.isObject?this.source.total:this.source.length}},{key:"data",get:function(){return this.isObject?this.source.data:this.source}},{key:"map",value:function(t){return this.data.map(t)}},{key:"filter",value:function(t){return this.data.filter(t)}},{key:"reduce",value:function(t,e){return this.data.reduce(t,e)}},{key:"forEach",value:function(t){this.data.forEach(t)}},{key:"some",value:function(t){return this.data.some(t)}},{key:zu,value:function(){return fhe(this.data,{dataIndex:this.skip,footers:this.groupFooters,groupIndex:this.skip})}},{key:"toString",value:function(){return this.data.toString()}}]),i}(),Kmt=function(){function i(r){p(this,i),this.accessor=r}return v(i,[{key:"total",get:function(){return this.accessor().total}},{key:"length",get:function(){return this.accessor().data.length}},{key:"first",get:function(){return this.accessor().data[0]}},{key:"last",get:function(){return this.accessor().data[this.length-1]}},{key:"at",value:function(t){return Bmt(this.accessor().data,t)}},{key:"map",value:function(t){return this.accessor().map(t)}},{key:"filter",value:function(t){return this.accessor().filter(t)}},{key:"reduce",value:function(t,e){return this.accessor().reduce(t,e)}},{key:"forEach",value:function(t){this.accessor().forEach(t)}},{key:"some",value:function(t){return this.accessor().some(t)}},{key:zu,value:function(){return this.accessor()[zu]()}},{key:"toString",value:function(){return this.accessor().toString()}}]),i}(),phe=function(){function i(r,t,e){var n=this;p(this,i),this.keysX=new Map,this.totalKeysCount=0,r&&t&&e&&r.forEach(function(a){return n.add(a[t],a[e])})}return v(i,[{key:"size",get:function(){return this.totalKeysCount}},{key:"add",value:function(t,e){this.keysX.has(t)||this.keysX.set(t,new Set),this.has(t,e)||(this.keysX.get(t).add(e),this.totalKeysCount+=1)}},{key:"delete",value:function(t,e){this.has(t,e)&&(this.keysX.get(t).delete(e),this.totalKeysCount-=1)}},{key:"has",value:function(t,e){return this.keysX.has(t)&&this.keysX.get(t).has(e)}},{key:"clear",value:function(){this.keysX.clear(),this.totalKeysCount=0}},{key:"toArray",value:function(t,e){return Array.from(this.keysX).reduce(function(n,a){var o=Gt(a,2),s=o[0];return Array.from(o[1]).forEach(function(u){var c;return n.push((De(c={},t,s),De(c,e,u),c))}),n},[])}}]),i}(),Gm=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),ghe=function(){var i=function(){function r(t,e){p(this,r),this.ctx=t,this.cd=e,this.selectedKeys=[],this.selectedKeysChange=new O,this.rowSelectionState=new Set,this.cellSelectionState=new phe,this.init()}return v(r,[{key:"isCellSelectionMode",get:function(){return He(this.ctx.grid.selectable)&&this.ctx.grid.selectable.cell}},{key:"ngOnChanges",value:function(e){He(e.selectedKeys)&&this.lastSelectionState!==this.selectedKeys&&this.setState(this.selectedKeys)}},{key:"init",value:function(){var e=this;He(this.ctx.grid.rowSelected)||(this.ctx.grid.rowSelected=function(n){return e.rowSelectionState.has(e.getItemKey(n))}),He(this.ctx.grid.cellSelected)||(this.ctx.grid.cellSelected=function(n,a,o){var s=e.getSelectionItem(n,a,o);return{selected:e.cellSelectionState.has(s.itemKey,s.columnKey),item:s}}),this.selectionChangeSubscription=this.ctx.grid.selectionChange.subscribe(this.onSelectionChange.bind(this))}},{key:"destroy",value:function(){this.selectionChangeSubscription.unsubscribe()}},{key:"reset",value:function(){this.rowSelectionState.clear(),this.cellSelectionState.clear()}},{key:"getItemKey",value:function(e){if(this.selectionKey){if("string"==typeof this.selectionKey)return e.dataItem[this.selectionKey];if("function"==typeof this.selectionKey)return this.selectionKey(e)}return e.index}},{key:"getSelectionItem",value:function(e,n,a){var o={};return o.itemKey=this.getItemKey(e),He(n)||He(a)?(this.columnKey&&("string"==typeof this.columnKey&&(o.columnKey=e.dataItem[this.columnKey]),"function"==typeof this.columnKey&&(o.columnKey=this.columnKey(n,a))),{itemKey:o.itemKey,columnKey:o.columnKey?o.columnKey:a}):o}},{key:"onSelectionChange",value:function(e){var n=this;e.selectedRows?(e.deselectedRows.forEach(function(a){var o=n.getItemKey(a);n.rowSelectionState.delete(o)}),"single"===this.ctx.grid.selectableSettings.mode&&this.rowSelectionState.size>0&&this.reset(),e.selectedRows.forEach(function(a){var o=n.getItemKey(a);n.rowSelectionState.add(o)})):(e.deselectedCells.forEach(function(a){n.cellSelectionState.delete(a.itemKey,a.columnKey)}),"single"===this.ctx.grid.selectableSettings.mode&&this.cellSelectionState.size>0&&this.reset(),e.selectedCells.forEach(function(a){n.cellSelectionState.add(a.itemKey,a.columnKey)})),this.cd.markForCheck(),this.notifyChange()}},{key:"notifyChange",value:function(){this.lastSelectionState=this.stateToArray(),this.selectedKeysChange.emit(this.lastSelectionState)}},{key:"setState",value:function(e){this.reset(),this.isCellSelectionMode?this.cellSelectionState=new phe(e,"itemKey","columnKey"):this.rowSelectionState=new Set(e)}},{key:"stateToArray",value:function(){return this.isCellSelectionMode?this.cellSelectionState.toArray("itemKey","columnKey"):Array.from(this.rowSelectionState)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gm),m(nt))},i.\u0275dir=X({type:i,selectors:[["kendo-grid-selection-base"]],inputs:{selectedKeys:"selectedKeys",selectionKey:["kendoGridSelectBy","selectionKey"],columnKey:"columnKey"},outputs:{selectedKeysChange:"selectedKeysChange"},features:[Ie]}),i}(),xV=function(){function i(r){p(this,i),this.columns=r,this.allColumns=new Ei,this.leafColumns=new Ei,this.lockedColumns=new Ei,this.nonLockedColumns=new Ei,this.lockedLeafColumns=new Ei,this.nonLockedLeafColumns=new Ei,this.totalLevels=0,this.changes=new O,this.leafColumnsToRender=[],this.lockedColumnsToRender=[],this.nonLockedColumnsToRender=[],this.hasGroupHeaderColumn=!1,this.hasGroupFooter=!1,this.hasFooter=!1,this.unlockedWidth=0}return v(i,[{key:"refresh",value:function(){var t=this,e=this.totalLevels,n=new Array,a=new Array,o=new Array,s=new Array,l=new Array,u=new Array,c=new Array,d=new Array,h=new Array,f=!1,g=!1,_=!1,C=0,w=0;this.totalLevels=0,this.columns().forEach(function(M){var R=!0===M.isLocked?a:o,N=!0===M.isLocked?s:l,V=!0===M.isLocked?d:h;Bm(M)||(R.push(M),n.push(M),c.push.apply(c,nd([M])),V.push.apply(V,nd([M])),f=f||wV(function(U){return Boolean(U.groupHeaderColumnTemplateRef)},M),g=g||wV(function(U){return Boolean(U.groupFooterTemplateRef)},M),_=_||wV(function(U){return Boolean(U.footerTemplateRef)},M),M.isLocked||(C+=M.width||0),M.isSpanColumn?M.childColumns.forEach(function(U){U.leafIndex=w++}):M.leafIndex=w++),N.push(M),u.push(M),t.totalLevels=M.level>t.totalLevels?M.level:t.totalLevels}),this.hasGroupHeaderColumn=f,this.hasGroupFooter=g,this.hasFooter=_,this.leafColumnsToRender=c,this.lockedColumnsToRender=d,this.nonLockedColumnsToRender=h,this.unlockedWidth=C;var E=function(){for(var r=!1,t=0;t component.")}else e.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Ymt=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.call(this)}return v(t)}(Ov),FV=function(){var i=v(function r(){p(this,r),this.scroll=!1});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Jmt=function(r){return window.matchMedia(r).matches},yhe=function(){var i=function(){function r(){p(this,r),this.matchMedia=Jmt}return v(r,[{key:"matchesMedia",value:function(e){return!e||this.matchMedia(function(r){return{xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[r]||r}(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),eA=function(){var i=function(){function r(){p(this,r),this.saveToExcel=new O,this.exportClick=new O}return v(r,[{key:"save",value:function(e){if(0===this.saveToExcel.observers.length){if(xt())throw new Error("Saving excel requires including the ExcelModule and adding the component.")}else this.saveToExcel.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),LV=function(){var i=function(){function r(t){p(this,r),this.templateRef=t,this._position="top"}return v(r,[{key:"position",get:function(){return this._position},set:function(e){this._position=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridToolbarTemplate",""]],inputs:{position:"position"}}),i}(),tA=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.changes=new Ot,this.elements=[],this.subscriptions=new Je,this.headerSubscription=new Je,this.bodySubscription=new Je,this.subscriptions.add(this.changes.subscribe(function(n){return e.scrollLeft(n)}))}return v(r,[{key:"registerEmitter",value:function(e,n){var a=this;this.unregister(n),this.elements.push({element:e,sourceType:n}),("body"===n||"header"===n)&&this.ngZone.runOutsideAngular(function(){var o=li(e,"scroll").pipe(We(function(l){return{scrollLeft:l.target.scrollLeft,sourceType:n}})),s=o.pipe(function y7e(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zl;return i=null!=i?i:k7e,oi(function(t,e){var n,a=!0;t.subscribe(Wn(e,function(o){var s=r(o);(a||!i(n,s))&&(a=!1,n=s,e.next(o))}))})}(function(l,u){return l.scrollLeft===u.scrollLeft}),Ue(function(l){return!a.source||a.source===l.sourceType}),At(function(l){return a.source=l.sourceType})).subscribe(function(l){return a.changes.next(l)});s.add(o.pipe(Ue(function(l){return a.source&&a.source!==l.sourceType})).subscribe(function(){return a.source=void 0})),"body"===n?a.bodySubscription.add(s):a.headerSubscription.add(s)})}},{key:"destroy",value:function(){this.subscriptions.unsubscribe(),this.headerSubscription.unsubscribe(),this.bodySubscription.unsubscribe()}},{key:"scrollLeft",value:function(e){var n=this,a=e.scrollLeft,o=e.sourceType;this.ngZone.runOutsideAngular(function(){n.elements.filter(function(s){return o!==s.sourceType}).forEach(function(s){return s.element.scrollLeft=a})})}},{key:"unregister",value:function(e){var n=this.elements.findIndex(function(a){return a.sourceType===e});n>-1&&("header"===e?(this.headerSubscription.unsubscribe(),this.headerSubscription=new Je):"body"===e&&(this.bodySubscription.unsubscribe(),this.bodySubscription=new Je),this.elements.splice(n,1))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),PV=function(){var i=function(){function r(){p(this,r),this.resizeSubscription=new Je(function(){}),this.dispatcher=new Ot,this.changes=this.dispatcher.asObservable().pipe(FL(100))}return v(r,[{key:"connect",value:function(e){this.resizeSubscription.add(e.subscribe(this.dispatcher))}},{key:"destroy",value:function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),khe=function i(r){return r.parent?i(r.parent):!!r.locked},Che=function(r,t){return Object.assign({columns:XT([r]),locked:khe(r)},t)},xb=function(){var i=function(){function r(){p(this,r),this.changes=new O,this.tables=[],this.batch=null}return v(r,[{key:"start",value:function(e){this.trackColumns(e);var n=(this.column.isColumnGroup?[e]:[]).concat(XT([e]));this.changes.emit({columns:n,locked:khe(this.column),type:"start"})}},{key:"resizeColumns",value:function(e){var n=Che(this.column,{deltaPercent:e,type:"resizeColumn"});this.changes.emit(n)}},{key:"resizeTable",value:function(e,n){var a=Che(e,{delta:n,type:"resizeTable"});this.changes.emit(a)}},{key:"resizedColumn",value:function(e){this.resizedColumns.push(e)}},{key:"end",value:function(){this.changes.emit({columns:[],resizedColumns:this.resizedColumns,type:"end"})}},{key:"registerTable",value:function(e){var n=this;return this.tables.push(e),function(){n.tables.splice(n.tables.indexOf(e),1)}}},{key:"measureColumns",value:function(e){var a,n=this;null!==this.batch?(a=this.batch).push.apply(a,Ae(e)):this.autoFitBatch(e,function(){return n.end()})}},{key:"autoFit",value:function(){for(var e=this,n=arguments.length,a=new Array(n),o=0;o0&&e[0].column.isLocked,s=this.tables.filter(function(l){return l.locked===o}).map(function(l){return l.autoFit(e)});_7e.apply(void 0,Ae(s)).pipe(It(1)).subscribe(function(l){a.changes.emit({columns:e.map(function(u){return u.column}),type:"autoFitComplete",widths:l,locked:o}),n&&n()}),this.batch=null}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),nA=function(r){return!0===r||"string"==typeof r&&r.indexOf("row")>-1},n_t=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).originalEvent=e,n}return v(t)}(Ov),i_t="k-grid-filter-popup",Mb=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.popupService=t,this.renderer=e,this.ngZone=n,this.localization=o,this.onClose=new Ot,this.scrollSubscription=a.changes.subscribe(function(){return s.destroy()})}return v(r,[{key:"open",value:function(e,n,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i_t,s=He(a)&&this.popupRef===a;if(this.destroy(),!s){var l=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:l},popupAlign:{vertical:"top",horizontal:l},anchor:e,popupClass:o,content:n,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.attachClose(e)}return this.popupRef}},{key:"destroy",value:function(){this.popupRef&&(this.detachClose(),this.popupRef.close(),this.popupRef=null)}},{key:"ngOnDestroy",value:function(){this.destroy(),this.scrollSubscription.unsubscribe()}},{key:"detachClose",value:function(){this.removeClick&&this.removeClick()}},{key:"attachClose",value:function(e){var n=this;this.detachClose(),this.ngZone.runOutsideAngular(function(){return n.removeClick=n.renderer.listen("document","click",function(a){if(!function(r,t){for(;r;){if(n.popupRef.popupElement===(s=r)||s===e)return!0;r=r.parentNode}var s;return!1}(a.target)){var o=new n_t(a);n.onClose.next(o),o.isDefaultPrevented()||n.destroy()}})})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(kr),oe(Ee),oe(be),oe(tA),oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),bhe=function(r){var t=!1;return function(){return t||(document.body.appendChild(r),t=!0),r}},She=function(r){var t=function(r){return r.ownerDocument.documentElement}(r),e=t.clientTop,n=t.clientLeft,a=function(r){return r.ownerDocument.defaultView}(r),o=a.pageYOffset,s=a.pageXOffset,l=r.getBoundingClientRect();return{top:l.top+o-e,left:l.left+s-n}},whe=function(r,t){return 0!=(4&t.compareDocumentPosition(r))},o_t=function(r,t){return r===t||0!=(16&t.compareDocumentPosition(r))},Dhe=function(r,t){var e=She(r);return{left:e.left+(t?0:r.offsetWidth),top:e.top,height:r.offsetHeight}},BV=function(){var i=function(){function r(){p(this,r),this.changes=new O,this.register=[],this.lastTarget=null}return v(r,[{key:"add",value:function(e){this.register.push(e)}},{key:"remove",value:function(e){this.register=this.register.filter(function(n){return n!==e})}},{key:"notifyDrag",value:function(e,n,a){var o=this.targetFor(n);this.lastTarget!==o&&(this.changes.next({draggable:e,mouseEvent:a,target:this.lastTarget,type:"leave"}),o&&this.changes.next({draggable:e,mouseEvent:a,target:o,type:"enter"}),this.lastTarget=o)}},{key:"notifyDrop",value:function(e,n){this.changes.next({draggable:e,mouseEvent:n,target:this.lastTarget,type:"drop"}),this.lastTarget=null}},{key:"targetFor",value:function(e){var n=o_t.bind(null,e);return this.register.find(function(a){return n(a.element.nativeElement)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Ehe=function(r,t){var e=r.querySelector(".k-icon");e.className=e.className.replace(/(plus|cancel)/,t?"plus":"cancel")},The=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=r.querySelectorAll(".k-icon")[1],n=null===t?"":t?"k-i-lock":"k-i-unlock";e.className=e.className.replace(/(k-i-unlock|k-i-lock)/,"")+" ".concat(n)},iA=function(){var i=function(){function r(t){p(this,r),this.santizer=t}return v(r,[{key:"create",value:function(e){this.dom=document.createElement("div"),function(r){r.className="k-header k-drag-clue",r.style.position="absolute",r.style.zIndex="20000"}(this.dom);var n=this.santizer.sanitize(ki.HTML,e);this.dom.innerHTML='\n \n \n \n '.concat(n,"\n ")}},{key:"attach",value:function(){return bhe(this.dom)}},{key:"remove",value:function(){var e;this.dom&&this.dom.parentNode&&(e=this.dom,setTimeout(function(){return document.body.removeChild(e)}),this.dom=null)}},{key:"show",value:function(){this.dom.style.display=""}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"enable",value:function(){Ehe(this.dom,!0)}},{key:"disable",value:function(){Ehe(this.dom,!1)}},{key:"removeLock",value:function(){The(this.dom)}},{key:"toggleLock",value:function(e){The(this.dom,e)}},{key:"move",value:function(e){this.dom.style.top=e.pageY+"px",this.dom.style.left=e.pageX+"px"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(uK))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rA=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"create",value:function(){this.dom=document.createElement("div"),this.dom.className="k-grouping-dropclue",this.hide()}},{key:"attach",value:function(){return bhe(this.dom)}},{key:"remove",value:function(){this.dom&&this.dom.parentElement&&(document.body.removeChild(this.dom),this.dom=null)}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"position",value:function(e){var n=e.left,a=e.top,o=e.height;this.dom.style.display="block",this.dom.style.height=o+"px",this.dom.style.top=a+"px",this.dom.style.left=n-this.dom.offsetWidth/2+"px"}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),GV=function(){var i=function(){function r(){p(this,r),this.changes=new O}return v(r,[{key:"reorder",value:function(e){this.changes.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),l_t=function(i){b(t,i);var r=S(t);function t(e){var n,a=e.column,o=e.newIndex,s=e.oldIndex;return p(this,t),(n=r.call(this)).column=a,n.newIndex=o,n.oldIndex=s,n}return v(t)}(Ov),u_t=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this.dataRows=r,this.headerRows=t,this.isVirtual=e,this.hasPager=n,this.hasDetailTemplate=a,this.gridElement=o,this.virtualColumns=s,this.columns=l}return v(i,[{key:"maxLogicalRowIndex",get:function(){return this.headerRows+(this.hasDetailTemplate?2*this.dataRows:this.dataRows)-1}}]),i}(),c_t={left:"0px",right:"0px"},fs=function(){var i=function(){function r(){p(this,r),this.visibilityChange=new O,this.lockedChange=new O,this.stickyChange=new O,this.columnRangeChange=new O,this.columnsContainer=new xV(function(){return[]})}return v(r,[{key:"lockedLeafColumns",get:function(){return this.columnsContainer.lockedLeafColumns}},{key:"nonLockedLeafColumns",get:function(){return this.columnsContainer.nonLockedLeafColumns}},{key:"isLocked",get:function(){return this.lockedLeafColumns.length>0}},{key:"totalLevels",get:function(){return this.columnsContainer.totalLevels}},{key:"hiddenColumns",get:function(){return this.list?this.list().filter(function(e){return!e.isVisible}):[]}},{key:"leafNamedColumns",get:function(){var e=Wu(this.list().filterSort(function(n){return!n.isColumnGroup})).filter(function(n){return n.matchesMedia&&n.displayTitle});return GE(e,[{field:"locked",dir:"desc"}])}},{key:"unlockedRootCount",get:function(){return this.list().rootColumns().filter(function(e){return!e.locked&&e.isVisible}).length}},{key:"stickyColumnsStyles",value:function(e){if(this.stickyColumns||(this.stickyColumns=this.list().rootColumns().filter(function(a){return a.sticky&&!a.locked&&a.isVisible})),0===this.stickyColumns.length)return c_t;var n=this.stickyColumns.reduce(function(a,o){return o.leafIndexe.leafIndex&&(a.right+=o.width),a},{left:0,right:0});return{left:"".concat(n.left,"px"),right:"".concat(n.right,"px")}}},{key:"init",value:function(e,n){this.columnsContainer=e,this.list=n,this.stickyColumns=null}},{key:"changeVisibility",value:function(e){this.stickyColumns=null,this.visibilityChange.emit(e)}},{key:"changeLocked",value:function(e){this.stickyColumns=null,this.lockedChange.emit(e)}},{key:"changeStuck",value:function(e){this.stickyColumns=null,this.stickyChange.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),aA=function(){function i(){p(this,i),this.changes=new Ot}return v(i,[{key:"sort",value:function(t){this.changes.next(t)}}]),i}(),d_t=v(function i(r){p(this,i),this.columns=r}),Ahe=v(function i(r){p(this,i),this.columns=r});function VV(i,r){return"data"===r.type&&r.isEditing?r.data:i}var f_t=v(function i(r){p(this,i),this.columns=r}),UV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCellLoadingTemplate",""]]}),i}(),zV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLoadingTemplate",""]]}),i}(),HV=function(){var i=function(){function r(t){p(this,r),this.ctx=t,this.context={}}return v(r,[{key:"position",set:function(e){this.context.position=e}},{key:"toolbarTemplateRef",get:function(){return this.ctx.grid.toolbarTemplate?this.ctx.grid.toolbarTemplate.templateRef:void 0}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gm))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-toolbar"]],inputs:{position:"position"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&T(0,Lht,1,2,null,0),2&t&&y("ngIf",e.toolbarTemplateRef)},directives:[qe,En],encapsulation:2}),i}(),Mhe=function(r){return function(r){var t=r.buttonCount,n=r.info,o=r.type,l=r.pageSizes,u=void 0!==l&&l,c=r.previousNext,h=r.responsive,g=r.position;return{buttonCount:void 0===t?10:t,info:void 0===n||n,pageSizes:!0===u?[5,10,20]:u,previousNext:void 0===c||c,type:void 0===o?"numeric":o,responsive:void 0===h||h,position:void 0===g?"bottom":g}}(!0===r?{}:r)},Vm=function(){var i=function(){function r(t){p(this,r),this.root=t,this.active=!0,this.children=[],this.root.registerGroup(this)}return v(r,[{key:"focusableChildren",get:function(){return this.children.filter(function(e){return e.canFocus()})}},{key:"isActive",get:function(){return this.active}},{key:"ngOnDestroy",value:function(){this.root.unregisterGroup(this)}},{key:"registerElement",value:function(e){this.unregisterElement(e),this.children.push(e)}},{key:"unregisterElement",value:function(e){this.children=this.children.filter(function(n){return n!==e})}},{key:"isNavigable",value:function(){var e=this.focusableChildren;return 1===e.length&&e[0].isNavigable()}},{key:"canFocus",value:function(){return this.focusableChildren.length>0}},{key:"focus",value:function(){this.canFocus()&&!this.hasFocus()&&this.focusableChildren[0].focus()}},{key:"activate",value:function(){this.toggleState(!0)}},{key:"deactivate",value:function(){this.toggleState(!1)}},{key:"hasFocus",value:function(){return this.children.reduce(function(e,n){return e||n.hasFocus()},!1)}},{key:"toggleState",value:function(e){this.active!==e&&(this.active=e,this.children.forEach(function(n){return n.toggle(e)}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Eh))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Um=function(){var i=function(){function r(t,e,n){p(this,r),this.localization=t,this.pagerContext=e,this.cd=n,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize}return v(r,[{key:"currentPage",get:function(){return Math.floor((this.skip||0)/this.pageSize)+1}},{key:"totalPages",get:function(){return Math.ceil((this.total||0)/this.pageSize)}},{key:"textFor",value:function(e){return this.localization.get(e)}},{key:"changePage",value:function(e){return this.pagerContext.changePage(e),!1}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ju),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-element-base"]],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),KV=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a,o)).navigationService=s,l}return v(e,[{key:"disabled",get:function(){return 1===this.currentPage||!this.total}},{key:"onChanges",value:function(a){var s=a.skip,l=a.pageSize;this.total=a.total,this.skip=s,this.pageSize=l,this.cd.markForCheck()}}]),e}(Um);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ju),m(nt),m(Va))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-prev-buttons"]],features:[j],decls:4,vars:16,consts:[["role","button",3,"kendoGridFocusable","title","ngClass","click","keydown.enter"],["role","note",3,"ngClass"]],template:function(t,e){1&t&&(A(0,"span",0),Q("click",function(){return 1!==e.currentPage&&e.changePage(0)})("keydown.enter",function(){return 1!==e.currentPage&&e.changePage(0)}),z(1,"span",1),x(),A(2,"span",0),Q("click",function(){return 1!==e.currentPage&&e.changePage(e.currentPage-2)})("keydown.enter",function(){return 1!==e.currentPage&&e.changePage(e.currentPage-2)}),z(3,"span",1),x()),2&t&&(y("kendoGridFocusable",!e.disabled)("title",e.textFor("pagerFirstPage"))("ngClass",ot(10,Pht,e.disabled)),k(1),y("ngClass",Tt(12,Bht)),ie("aria-label",e.textFor("pagerFirstPage")),k(1),y("kendoGridFocusable",!e.disabled)("title",e.textFor("pagerPreviousPage"))("ngClass",ot(13,Hde,e.disabled)),k(1),y("ngClass",Tt(15,Ght)),ie("aria-label",e.textFor("pagerPreviousPage")))},directives:[co,Nt],encapsulation:2,changeDetection:0}),i}(),jV=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,o,a)).pagerContext=o,s.numbersWrapClass=!0,s}return v(e,[{key:"buttons",get:function(){for(var a=[],o=this.start;o<=this.end;o++)a.push(o);return a}},{key:"end",get:function(){return Math.min(this.start+this.buttonCount-1,this.totalPages)}},{key:"start",get:function(){var a=this.currentPage,o=this.buttonCount;if(a>o){var s=a%o;return 0===s?a-o+1:a-s+1}return 1}},{key:"pageLabel",value:function(a){var o=this.textFor("pagerPage");return o?o+" "+a:a.toString()}},{key:"onSelectChange",value:function(a){var o=a.target,s=Number(o.value);Number.isNaN(s)?this.changePage("previousButtons"===o.value?this.start-2:this.end):this.changePage(s-1)}},{key:"onChanges",value:function(a){var s=a.skip,l=a.pageSize;this.total=a.total,this.skip=s,this.pageSize=l,this.cd.markForCheck()}}]),e}(Um);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(nt),m(ju))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-numeric-buttons"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-pager-numbers-wrap",e.numbersWrapClass)},inputs:{buttonCount:"buttonCount"},features:[j],decls:8,vars:8,consts:[["kendoGridFocusable","","tabindex","0",1,"k-dropdownlist","k-pager-nav",3,"change"],["class","k-link","value","previousButtons",3,"selected",4,"ngIf"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["value","nextButtons","class","k-link",3,"selected",4,"ngIf"],[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],["value","previousButtons",1,"k-link",3,"selected"],[3,"value","selected","ngClass"],["value","nextButtons",1,"k-link",3,"selected"],["kendoGridFocusable","","tabindex","0","role","button",1,"k-link","k-pager-nav",3,"click","keydown.enter"],["kendoGridFocusable","","tabindex","0","role","button",3,"ngClass","click","keydown.enter"]],template:function(t,e){1&t&&(A(0,"select",0),Q("change",function(a){return e.onSelectChange(a)}),T(1,Vht,2,2,"option",1),T(2,zht,2,8,"option",2),T(3,Hht,2,2,"option",3),x(),A(4,"ul",4),T(5,Kht,3,1,"li",5),T(6,Wht,3,5,"li",6),T(7,$ht,3,1,"li",5),x()),2&t&&(k(1),y("ngIf",e.start>1),k(1),y("ngForOf",e.buttons),k(1),y("ngIf",e.end1),k(1),y("ngForOf",e.buttons),k(1),y("ngIf",e.end=600&&f<768?(d.renderer.addClass(h,"k-pager-md"),d.renderer.removeClass(h,"k-pager-sm")):d.clearResponsiveClasses()}}}return v(r,[{key:"options",set:function(e){this.settings=Mhe(e)}},{key:"isFocused",get:function(){return this._isFocused}},{key:"pagerAriaLabel",get:function(){return this.navigationService.enabled?this.pagerLabel:void 0}},{key:"pagerLabel",get:function(){var e=this.localizationService.get("pagerLabel")||"";return Ea(Ea(e,"currentPage",this.currentPage.toString()),"totalPages",this.totalPages.toString())}},{key:"focusTrapTabIndex",get:function(){return this.focusGroup.isActive?"0":"-1"}},{key:"onFocusIn",value:function(e){this.navigationService.enabled&&(e.target===this.element.nativeElement?(this._isFocused=!0,this.focusRoot.deactivate()):this.focusRoot.activate())}},{key:"onFocusOut",value:function(){this.navigationService.enabled&&(this._isFocused=!1)}},{key:"onEscape",value:function(){this.navigationService.enabled&&(this.focusRoot.deactivate(),this.element.nativeElement.focus())}},{key:"onEnter",value:function(e){this.navigationService.enabled&&e.target===this.element.nativeElement&&(this.focusRoot.activate(),this.focusFirstElement())}},{key:"navigateToPreviousPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage>1)&&this.pagerContext.prevPage()}},{key:"navigateToNextPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage1)&&this.pagerContext.changePage(0)}},{key:"navigateToLastPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage1&&void 0!==arguments[1])||arguments[1];return Qgt(r,function(e){return wb(e,t)},!1)}(this.element.nativeElement,!0);e&&e.focus()}},{key:"updateCellContext",value:function(){this.cellContext&&(this.cellContext.focusGroup=this.focusGroup)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ju),m(Va),m(ke),m(Ee),m(be),m(Y),m(td,8),m(Eh),m(Vm))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager"]],hostVars:7,hostBindings:function(t,e){1&t&&Q("focusin",function(a){return e.onFocusIn(a)})("focusout",function(){return e.onFocusOut()})("keydown.escape",function(){return e.onEscape()})("keydown.enter",function(a){return e.onEnter(a)})("keydown.arrowleft",function(a){return e.navigateToPreviousPage(a)})("keydown.pageup",function(a){return e.navigateToPreviousPage(a)})("keydown.arrowright",function(a){return e.navigateToNextPage(a)})("keydown.pagedown",function(a){return e.navigateToNextPage(a)})("keydown.home",function(a){return e.navigateToFirstPage(a)})("keydown.end",function(a){return e.navigateToLastPage(a)}),2&t&&(ie("aria-label",e.pagerAriaLabel),ue("k-pager-wrap",e.pagerWrapClass)("k-grid-pager",e.gridPagerClass)("k-state-focused",e.isFocused))},inputs:{total:"total",skip:"skip",pageSize:"pageSize",options:"options",template:"template"},outputs:{pageChange:"pageChange"},features:[de([{provide:fV,useValue:!0},{provide:Eh,deps:[fV],useClass:Eh},{provide:Vm,deps:[Eh],useClass:Vm}]),Ie],decls:5,vars:5,consts:[["class","k-sr-only",3,"tabindex","focusin",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"resize",4,"ngIf"],[1,"k-sr-only",3,"tabindex","focusin"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"buttonCount",4,"ngIf"],[3,"pageSizes",4,"ngIf"],[3,"buttonCount"],[3,"pageSizes"],["pageSizes",""],[3,"resize"]],template:function(t,e){1&t&&(T(0,eft,1,2,"div",0),T(1,tft,1,2,"ng-container",1),T(2,lft,7,6,"ng-container",2),T(3,uft,1,2,"div",0),T(4,cft,1,0,"kendo-resize-sensor",3)),2&t&&(y("ngIf",e.navigationService.enabled),k(1),y("ngIf",null==e.template?null:e.template.templateRef),k(1),y("ngIf",!(null!=e.template&&e.template.templateRef)),k(1),y("ngIf",e.navigationService.enabled),k(1),y("ngIf",e.settings.responsive))},directives:[KV,jV,$V,qV,XV,YV,Gr,qe,En],encapsulation:2}),i}(),Rb=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.service=e,this.context={},this.enter=new O,this.leave=new O,this.drop=new O,this.subscriptions=new Je}return v(r,[{key:"ngOnInit",value:function(){var e=this;this.service.add(this);var n=this.service.changes.pipe(Ue(function(a){return a.target===e}));this.subscriptions.add(n.pipe(Ue(function(a){return"leave"===a.type})).subscribe(function(a){e.leave.next(e.eventArgs(a))})),this.subscriptions.add(n.pipe(Ue(function(a){return"enter"===a.type})).subscribe(function(a){e.enter.next(e.eventArgs(a))})),this.subscriptions.add(n.pipe(Ue(function(a){return"drop"===a.type})).subscribe(function(a){e.drop.next(e.eventArgs(a))}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"eventArgs",value:function(e){return{target:this,mouseEvent:e.mouseEvent,draggable:e.draggable}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(BV))},i.\u0275dir=X({type:i,selectors:[["","kendoDropTarget",""]],inputs:{context:"context"},outputs:{enter:"enter",leave:"leave",drop:"drop"}}),i}(),Rhe=function(){var i=function(){function r(){p(this,r),this.directionChange=new O,this.remove=new O}return v(r,[{key:"groupIndicatorClass",get:function(){return!0}},{key:"dir",get:function(){return this.group.dir?this.group.dir:"asc"}},{key:"toggleDirection",value:function(){return this.directionChange.emit({dir:"asc"===this.dir?"desc":"asc",field:this.group.field}),!1}},{key:"removeDescriptor",value:function(){return this.remove.emit({dir:this.group.dir,field:this.group.field}),!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGroupIndicator",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-group-indicator",e.groupIndicatorClass)},inputs:{group:"group",groupTitle:"groupTitle"},outputs:{directionChange:"directionChange",remove:"remove"},attrs:dft,decls:5,vars:5,consts:[["href","#","tabindex","-1",1,"k-link",3,"click"],[1,"k-icon"],["tabindex","-1",1,"k-button","k-button-flat-base","k-button-flat","k-icon-button","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"click"],[1,"k-button-icon","k-icon","k-i-group-delete"]],template:function(t,e){1&t&&(A(0,"a",0),Q("click",function(){return e.toggleDirection()}),z(1,"span",1),te(2),x(),A(3,"a",2),Q("click",function(){return e.removeDescriptor()}),z(4,"span",3),x()),2&t&&(k(1),ue("k-i-sort-asc-sm","asc"===e.dir)("k-i-sort-desc-sm","desc"===e.dir),k(1),Pt(" ",e.groupTitle,""))},encapsulation:2,changeDetection:0}),i}(),sA=function(r){return function(t){return new RegExp("(^| )".concat(r,"( |$)")).test(t.className)}},g_t=UT(sA("k-i-group-delete"),sA("k-icon-button")),m_t=UT(sA("k-i-sort-asc-sm"),sA("k-i-sort-desc-sm")),__t=lV(Sb(g_t),Sb(m_t),Sb(wb),Sb(Ta("label"))),Ohe=function(r){return document.elementFromPoint(r.clientX,r.clientY)},JV=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.draggable=t,this.element=e,this.zone=n,this.service=a,this.hint=o,this.cue=s,this.nav=l,this.renderer=u,this.context={},this.drag=new O,this.subscriptions=new Je}return v(r,[{key:"enableDrag",set:function(e){this.enabled=e,this.updateTouchAction()}},{key:"hostClass",get:function(){return this.enabled}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.zone.runOutsideAngular(function(){return e.draggable.kendoPress.pipe(Ue(function(n){return e.enabled}),Ue(function(n){var a=n.originalEvent.target;return a===e.element.nativeElement||__t(a)}),At(function(n){var a=n.originalEvent;n.isTouch||a.preventDefault(),e.nav.navigateTo(a.target)}),Nn(function(r){return function(t){return lt(t).pipe(Dd(150),Qr(r))}}(e.draggable.kendoRelease)),At(function(n){e.hint.create(e.context.hint),e.cue.create()}),Nn(function(n){return e.draggable.kendoDrag.pipe(At(function(a){a.isTouch&&a.originalEvent.preventDefault()}),At(e.hint.attach()),At(e.cue.attach()),Qr(e.draggable.kendoRelease),We(function(a){return{move:a,down:n}}))}),At(e.performDrag.bind(e)),TE(e.draggable.kendoRelease)).subscribe(e.drop.bind(e))}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"drop",value:function(e){this.hint.remove(),this.cue.remove(),this.service.notifyDrop(this,e)}},{key:"performDrag",value:function(e){var n=e.move;this.hint.move(n);var a=this.elementUnderCursor(n);a&&this.service.notifyDrag(this,a,n),this.drag.emit({draggable:this,mouseEvent:n})}},{key:"elementUnderCursor",value:function(e){this.hint.hide();var n=Ohe(e);return n&&/k-grouping-dropclue/.test(n.className)&&(n=function(r,t){r.style.display="none";var e=t();return r.style.display="block",e}(n,Ohe.bind(this,e))),this.hint.show(),n}},{key:"updateTouchAction",value:function(){!this.element||(this.enabled?this.renderer.addClass(this.element.nativeElement,"k-touch-action-none"):this.renderer.removeClass(this.element.nativeElement,"k-touch-action-none"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(ke),m(be),m(BV),m(iA),m(rA),m(Va),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoDraggableColumn",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-draggable-header",e.hostClass)},inputs:{context:"context",enableDrag:"enableDrag"},outputs:{drag:"drag"}}),i}(),k_t=function(r){return wr(r.field)},C_t=function(r){var e=r.field;return r.groups.some(function(n){return n.field===e})},T_t=UT(function(r){return r.target.field===r.field},lV(function(r){return r.target.lastTarget},function(r){var t=r.groups,e=r.field;return t.map(function(n){return n.field}).indexOf(e)===t.length-1})),Ihe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.hint=t,this.cue=e,this.groupInfoService=n,this.localization=a,this.cd=o,this.change=new O,this.groups=[],this.dropTargets=new Ei,this.groupTitles=[],this.subscription=new Je}return v(r,[{key:"groupHeaderClass",get:function(){return!0}},{key:"text",get:function(){return this.emptyText?this.emptyText:this.localization.get("groupPanelEmpty")},set:function(e){this.emptyText=e}},{key:"ngAfterViewInit",value:function(){this.subscription.add(VT(this.dropTargets).subscribe(this.attachTargets.bind(this)))}},{key:"ngOnInit",value:function(){var e=this;this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngDoCheck",value:function(){var e=this,n=this.groups.map(function(a){return e.groupInfoService.groupTitle(a)});(n.length!==this.groupTitles.length||n.some(function(a,o){return a!==e.groupTitles[o]}))&&(this.groupTitles=n,this.cd.markForCheck())}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.targetSubscription&&this.targetSubscription.unsubscribe()}},{key:"directionChange",value:function(e){var n=this.groups.findIndex(function(o){return o.field===e.field}),a=[].concat(Ae(this.groups.slice(0,n)),[e],Ae(this.groups.slice(n+1)));this.change.emit(a)}},{key:"insert",value:function(e,n){var a=this.groups.filter(function(o){return o.field!==e});(a.length||0===this.groups.length)&&this.change.emit([].concat(Ae(a.slice(0,n)),[{field:e}],Ae(a.slice(n))))}},{key:"remove",value:function(e){this.change.emit(this.groups.filter(function(n){return n.field!==e.field}))}},{key:"canDrop",value:function(e,n){var o="groupIndicator"===e.type?T_t:function(r){return UT(k_t,C_t,function(r){return function(t){return!r.isGroupable(t.field)}}(r))}(this.groupInfoService);return!o({field:e.field,groups:this.groups,target:n})}},{key:"attachTargets",value:function(){var e=this;this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Je;var n=this.dropTargets.reduce(function(s,l){return xn(s,l.enter)},wi([])),a=this.dropTargets.reduce(function(s,l){return xn(s,l.leave)},wi([])),o=this.dropTargets.reduce(function(s,l){return xn(s,l.drop)},wi([]));this.targetSubscription.add(n.pipe(At(function(s){return e.hint.removeLock()}),Ue(function(s){return e.canDrop(s.draggable.context,s.target.context)}),At(this.enter.bind(this)),TE(o.pipe(Qr(a.pipe(At(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}},{key:"enter",value:function(e){var n=e.draggable,a=e.target;this.hint.enable();var o=a.context.lastTarget||whe(n.element.nativeElement,a.element.nativeElement);this.localization.rtl&&(o=!o),this.cue.position(Dhe(a.element.nativeElement,o))}},{key:"leave",value:function(){this.hint.disable(),this.cue.hide()}},{key:"drop",value:function(e){var n=e.target,o=e.draggable.context.field,s=this.dropTargets.toArray().indexOf(n);this.insert(o,s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(iA),m(rA),m(QT),m(Y),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-group-panel"]],viewQuery:function(t,e){var n;1&t&&ge(Rb,5),2&t&&P(n=B())&&(e.dropTargets=n)},hostVars:4,hostBindings:function(t,e){2&t&&ue("k-grouping-header",e.groupHeaderClass)("k-grouping-header-flex",e.groupHeaderClass)},inputs:{text:"text",groups:"groups"},outputs:{change:"change"},decls:3,vars:3,consts:[[4,"ngIf"],["class","k-indicator-container","kendoDropTarget","",3,"context",4,"ngFor","ngForOf"],["class","k-indicator-container","kendoDropTarget","",3,"context",4,"ngIf"],["kendoDropTarget","",1,"k-indicator-container",3,"context"],["kendoDraggableColumn","","kendoGroupIndicator","","kendoDraggable","",3,"enableDrag","context","group","groupTitle","directionChange","remove"]],template:function(t,e){1&t&&(T(0,hft,3,3,"ng-container",0),T(1,pft,2,10,"div",1),T(2,gft,2,2,"div",2)),2&t&&(y("ngIf",0===e.groups.length),k(1),y("ngForOf",e.groups),k(1),y("ngIf",0!==e.groups.length))},directives:[Rhe,qe,Rb,gn,JV,$o],encapsulation:2,changeDetection:0}),i}(),eU=function(){var i=function(){function r(){p(this,r),this.columns=[],this.groups=[]}return v(r,[{key:"columnsToRender",get:function(){return nd(this.columns)}},{key:"trackBy",value:function(e,n){return e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGridColGroup",""]],inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate"},attrs:mft,decls:4,vars:4,consts:[[3,"k-group-col",4,"ngFor","ngForOf"],[3,"k-hierarchy-col",4,"ngIf"],[3,"width",4,"ngFor","ngForOf","ngForTrackBy"]],template:function(t,e){1&t&&(Ge(0),T(1,_ft,1,2,"col",0),T(2,yft,1,2,"col",1),T(3,kft,1,2,"col",2),Ve()),2&t&&(k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsToRender)("ngForTrackBy",e.trackBy))},directives:[gn,qe],encapsulation:2}),i}(),A_t={allowUnsort:!0,mode:"single",showIndexes:!0,initialDirection:"asc",multiSortKey:"none"},lA=function(){for(var r=arguments.length,t=new Array(r),e=0;er?t.filters[r]:function(r,t,e){return(t=t||{filters:[],logic:"and"}).filters[r]=e,e}(r,t,{field:e,operator:n})},Hm=function(r){return[{text:r.get("filterAndLogic"),value:"and"},{text:r.get("filterOrLogic"),value:"or"}]},Ghe=function i(r){return He(r.filters)?r.filters.reduce(function(t,e){return t.concat(Hc(e)?i(e):[e])},[]):[]},N_t=function i(r,t){He(r)&&He(r.filters)&&(r.filters=r.filters.filter(function(e){return Hc(e)?(i(e,t),e.filters.length):e.field!==t}))},Ob=function(r,t){return Ghe(r||{}).filter(function(e){return e.field===t})},tU=function(r,t){return N_t(r,t),r},cA=function(r){return function(t){return Object.keys(r).map(function(e){return{text:t.get(e),value:r[e]}})}},Km=function(){var i=function(){function r(t){p(this,r),this.filterService=t,this.operatorList=new Ei}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"operators",get:function(){var e;return(null===(e=this._operators)||void 0===e?void 0:e.length)?this._operators:this.defaultOperators},set:function(e){this._operators=e}},{key:"ngAfterContentInit",value:function(){var e=this;this.operationListSubscription=VT(this.operatorList).pipe(We(function(n){return n.toArray()}),We(uA)).subscribe(function(n){e.operators=n})}},{key:"ngOnDestroy",value:function(){this.operationListSubscription&&this.operationListSubscription.unsubscribe()}},{key:"filterByField",value:function(e){return function(r,t){return Gt(Ob(r,t),1)[0]}(this.filter,e)}},{key:"filtersByField",value:function(e){return Ob(this.filter,e)}},{key:"removeFilter",value:function(e){return tU(this.filter,e)}},{key:"updateFilter",value:function(e){var n=this.filter||{filters:[],logic:"and"},s=Gt(Ghe(n).filter(function(l){return l.field===e.field}),1)[0];return He(s)?Object.assign(s,e):n.filters.push(e),n}},{key:"applyFilter",value:function(e){this.filterService.filter(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-base-filter-cell"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Tn,4),2&t&&P(a=B())&&(e.operatorList=a)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filtercell",e.hostClasses)},inputs:{operators:"operators"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),L_t=function(r,t){return r.field!==t.field||r.operator!==t.operator||r.value!==t.value},nU=function i(r){if(r)return Hc(r)?{filters:i(r.filters),logic:r.logic}:Array.isArray(r)?r.map(i):function(r){return function(r){var t={};if(Object.assign(t,r),r.constructor!==Object){var e=r.constructor.prototype;Object.getOwnPropertyNames(e).forEach(function(n){"constructor"!==n&&e.hasOwnProperty(n)&&(t[n]=r[n])})}return t}(r)}(r)},Vhe=function(r,t){return!!(He(r)&&!He(t)||!He(r)&&He(t))||He(r)&&He(t)&&function(r,t){if(r.length!==t.length)return!0;for(var e=0,n=r.length;e0?e.changeRequests.next(n):e.change.emit(n)}),this.subscribeChanges()}},{key:"ngOnChanges",value:function(e){yn("filterDelay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())}},{key:"ngOnDestroy",value:function(){this.unsubscribeChanges(),this.unsubscribeEvents()}},{key:"subscribeChanges",value:function(){var e=this;this.changeRequestsSubscription=this.changeRequests.pipe(function LL(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return oi(function(t,e){var n=null,a=null,o=null,s=function(){if(n){n.unsubscribe(),n=null;var c=a;a=null,e.next(c)}};function l(){var u=o+i,c=r.now();if(c2&&void 0!==arguments[2]?arguments[2]:"and",n=j_t((r||{}).filters||[],t);return He(n)?n.logic:e},iU=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.parentService=t,this.childService=e,this.localization=n,this.cd=a,this.close=new O,this.actionsClass="k-action-buttons k-button-group",this._templateContext={},this.menuTabbingService=o}return v(r,[{key:"filter",get:function(){return this._filter},set:function(e){this._filter=nU(e)}},{key:"childFilter",get:function(){return He(this._childFilter)||(this._childFilter={filters:Ob(this.filter,(this.column||{}).field),logic:W_t(this.filter,(this.column||{}).field)}),this._childFilter}},{key:"ngOnInit",value:function(){var e=this;this.subscription=this.childService.changes.subscribe(function(n){return e._childFilter=n}),this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngAfterViewChecked",value:function(){(!this.menuTabbingService.isColumnMenu||this.isLast&&this.isExpanded)&&(this.menuTabbingService.lastFocusable=this.disabled?this.resetButton.nativeElement:this.filterButton.nativeElement)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.menuTabbingService.lastFocusable=void 0}},{key:"disabled",get:function(){return!this.childFilter.filters.some(Jhe)}},{key:"templateContext",get:function(){return this._templateContext.column=this.column,this._templateContext.filter=this.childFilter,this._templateContext.filterService=this.childService,this._templateContext.$implicit=this.childFilter,this._templateContext}},{key:"hasTemplate",get:function(){return He(this.column)&&He(this.column.filterMenuTemplateRef)}},{key:"submit",value:function(){var e=function(r){return r.filters=r.filters.filter(Jhe),r}(this.childFilter);if(e.filters.length){var n=this.filter||{filters:[],logic:"and"};tU(n,this.column.field),n.filters.push(e),this.parentService.filter(n)}return this.close.emit(),!1}},{key:"reset",value:function(){var e=this.filter||{filters:[],logic:"and"};tU(e,this.column.field),this.parentService.filter(e),this.close.emit()}},{key:"onTab",value:function(e,n){this.menuTabbingService.firstFocusable&&(!this.menuTabbingService.isColumnMenu||this.isLast)&&(e.preventDefault(),"reset"===n?this.disabled?this.menuTabbingService.firstFocusable.focus():this.filterButton.nativeElement.focus():this.menuTabbingService.firstFocusable.focus())}},{key:"clearText",get:function(){return this.localization.get("filterClearButton")}},{key:"filterText",get:function(){return this.localization.get("filterFilterButton")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la,4),m(la),m(Y),m(nt),m(Tb))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-menu-container"]],viewQuery:function(t,e){var n;1&t&&(ge(Aft,5),ge(xft,5)),2&t&&(P(n=B())&&(e.resetButton=n.first),P(n=B())&&(e.filterButton=n.first))},inputs:{column:"column",isLast:"isLast",isExpanded:"isExpanded",menuTabbingService:"menuTabbingService",filter:"filter",actionsClass:"actionsClass"},outputs:{close:"close"},features:[de([la,Tb])],decls:12,vars:7,consts:[[1,"k-filter-menu","k-group","k-reset","k-state-border-up",3,"submit","reset"],[1,"k-filter-menu-container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngClass"],["type","reset",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab"],["resetButton",""],["type","submit",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"disabled","keydown.tab"],["filterButton",""],["kendoFilterMenuHost","",3,"filterService","column","filter","menuTabbingService"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(A(0,"form",0),Q("submit",function(){return e.submit()})("reset",function(){return e.reset()}),A(1,"div",1),Ge(2,2),T(3,Mft,2,4,"ng-container",3),T(4,Ift,2,1,"ng-container",3),Ve(),A(5,"div",4)(6,"button",5,6),Q("keydown.tab",function(a){return e.onTab(a,"reset")}),te(8),x(),A(9,"button",7,8),Q("keydown.tab",function(a){return e.onTab(a,"filter")}),te(11),x()()()()),2&t&&(k(2),y("ngSwitch",e.hasTemplate),k(1),y("ngSwitchCase",!1),k(1),y("ngSwitchCase",!0),k(1),y("ngClass",e.actionsClass),k(3),at(e.clearText),k(1),y("disabled",e.disabled),k(2),at(e.filterText))},directives:[Kee,xee,LE,kd,Gp,Qhe,qe,En,Nt],encapsulation:2}),i}(),rU=function(){var i=function(){function r(t,e,n,a){p(this,r),this.filterService=t,this.popupService=e,this.localization=n,this.navigationService=a,this.tabIndex="-1"}return v(r,[{key:"hasFilters",get:function(){return Ob(this.filter,(this.column||{}).field).length>0}},{key:"filterLabel",get:function(){var e=this.localization.get("filterMenuTitle")||"";return Ea(e,"columnName",this.column.title||this.column.field)}},{key:"toggle",value:function(e,n){return this.popupRef=this.popupService.open(e,n,this.popupRef),this.popupRef||(this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()),!1}},{key:"close",value:function(){this.popupService.destroy(),this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la),m(Mb),m(Y),m(Va))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-menu"]],viewQuery:function(t,e){var n;1&t&&(ge(jde,7),ge(Wde,7,$e)),2&t&&(P(n=B())&&(e.anchor=n.first),P(n=B())&&(e.template=n.first))},inputs:{column:"column",filter:"filter",tabIndex:"tabIndex"},decls:5,vars:5,consts:[["href","#",3,"ngClass","tabindex","click","keydown.enter"],["anchor",""],[1,"k-icon","k-i-filter"],["template",""],[3,"column","filter","close","keydown.escape","keydown.enter"]],template:function(t,e){if(1&t){var n=xe();A(0,"a",0,1),Q("click",function(){re(n);var o=Yt(1),s=Yt(4);return e.toggle(o,s)})("keydown.enter",function(o){return o.stopImmediatePropagation()}),z(2,"span",2),x(),T(3,Nft,1,2,"ng-template",null,3,$n)}2&t&&(y("ngClass",ot(3,Fft,e.hasFilters))("tabindex",e.tabIndex),ie("title",e.filterLabel))},directives:[iU,Nt],encapsulation:2}),i}(),aU=function(){var i=function(){function r(t){p(this,r),this.closeMenu=new O,this.menuTabbingService=t}return v(r,[{key:"close",value:function(){this.closeMenu.emit()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Tb))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Wm=function(){var i=function(){function r(){p(this,r),this.hostClass=!0}return v(r,[{key:"ngOnInit",value:function(){if(xt()&&!this.service)throw new Error("The service input of the predefined column menu components is mandatory.")}},{key:"close",value:function(){this.service.close()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-menu-item-base"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-columnmenu-item-wrapper",e.hostClass)},inputs:{service:"service"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),$m=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuItemContentTemplate",""]]}),i}(),Ah=function(){var i=function(){function r(){p(this,r),this.itemClick=new O,this.expand=new O,this.collapse=new O,this.contentState="collapsed"}return v(r,[{key:"iconClass",get:function(){return"k-i-".concat(this.icon)}},{key:"ngOnChanges",value:function(e){e.expanded&&this.updateContentState()}},{key:"onClick",value:function(e){this.itemClick.emit(e),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),this.expanded?this.expand.emit():this.collapse.emit())}},{key:"updateContentState",value:function(){this.contentState=this.expanded?"expanded":"collapsed"}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,$m,5),2&t&&P(a=B())&&(e.contentTemplate=a.first)},inputs:{icon:"icon",text:"text",selected:"selected",disabled:"disabled",expanded:"expanded"},outputs:{itemClick:"itemClick",expand:"expand",collapse:"collapse"},features:[Ie],decls:4,vars:8,consts:[["role","button",1,"k-columnmenu-item",3,"click","keydown.enter"],["class","k-icon",3,"ngClass",4,"ngIf"],["style","overflow:hidden;","class","k-columnmenu-item-content",4,"ngIf"],[1,"k-icon",3,"ngClass"],[1,"k-columnmenu-item-content",2,"overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(A(0,"div",0),Q("click",function(a){return e.onClick(a)})("keydown.enter",function(a){return e.onClick(a)}),T(1,Lft,1,1,"span",1),te(2),x(),T(3,Pft,3,2,"div",2)),2&t&&(ue("k-state-selected",e.selected)("k-state-disabled",e.disabled),ie("aria-expanded",e.expanded),k(1),y("ngIf",e.icon),k(1),Pt(" ",e.text," "),k(1),y("ngIf",e.contentTemplate))},directives:[qe,Nt,En],encapsulation:2,data:{animation:[ef("state",[Cd("collapsed",Ft({display:"none"})),Cd("expanded",Ft({display:"block"})),iu("collapsed => expanded",[Ft({height:"0px",display:"block"}),Ai("100ms ease-in",Ft({height:"*"}))]),iu("expanded => collapsed",[Ft({height:"*"}),Ai("100ms ease-in",Ft({height:"0px"}))])])]}}),i}(),mA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.columnInfoService=a,s.changeDetector=o,s}return v(e,[{key:"text",get:function(){return this.localization.get(this.locked?"unlock":"lock")}},{key:"icon",get:function(){return this.locked?"unlock":"lock"}},{key:"disabled",get:function(){return!this.locked&&this.columnInfoService.unlockedRootCount<2}},{key:"toggleColumn",value:function(){this.toggleHierarchy(!this.locked),this.close(),this.changeDetector.markForCheck()}},{key:"toggleHierarchy",value:function(a){for(var o=this.service.column;o.parent;)o=o.parent;for(var s=[o],l=[];s.length;){var u=s.shift();u.locked=a,l.push(u),u.hasChildren&&s.push.apply(s,Ae(u.childrenArray))}this.columnInfoService.changeLocked(l)}},{key:"locked",get:function(){return this.service.column.locked}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-lock"]],features:[j],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleColumn()}),x()),2&t&&y("text",e.text)("icon",e.icon)("disabled",e.disabled)},directives:[Ah],encapsulation:2}),i}(),_A=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.columnInfoService=a,s.changeDetector=o,s}return v(e,[{key:"text",get:function(){return this.localization.get(this.sticky?"unstick":"stick")}},{key:"icon",get:function(){return this.sticky?"unstick":"stick"}},{key:"disabled",get:function(){return!this.sticky&&this.columnInfoService.unlockedRootCount<2}},{key:"toggleColumn",value:function(){this.toggleHierarchy(!this.sticky),this.close(),this.changeDetector.markForCheck()}},{key:"toggleHierarchy",value:function(a){for(var o=this.service.column;o.parent;)o=o.parent;for(var s=[o],l=[];s.length;){var u=s.shift();u.sticky=a,l.push(u),u.hasChildren&&s.push.apply(s,Ae(u.childrenArray))}this.columnInfoService.changeStuck(l)}},{key:"sticky",get:function(){return this.service.column.sticky}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-stick"]],features:[j],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleColumn()}),x()),2&t&&y("text",e.text)("icon",e.icon)("disabled",e.disabled)},directives:[Ah],encapsulation:2}),i}(),yA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).localization=n,o.hostElement=a,o.expand=new O,o.collapse=new O,o.expanded=!1,o.actionsClass="k-columnmenu-actions",o._isLast=!1,o}return v(e,[{key:"isLast",get:function(){return this._isLast},set:function(a){this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem(),this._isLast=a}},{key:"onTab",value:function(a,o){this.isLast&&o&&(a.preventDefault(),a.stopImmediatePropagation(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}},{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.expand.emit()}},{key:"getLastFocusableItem",value:function(){var a=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item");return a[this.expanded?a.length-1:0]}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-position"]],inputs:{expanded:"expanded",showLock:"showLock",showStick:"showStick",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","set-column-position",3,"text","expanded","keydown.tab","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"service","keydown.tab",4,"ngIf"],[3,"service","keydown.tab"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("keydown.tab",function(a){return e.onTab(a,!e.expanded)})("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,Vft,2,2,"ng-template",1),x()),2&t&&y("text",e.localization.get("setColumnPosition"))("expanded",e.expanded)},directives:[Ah,mA,_A,$m,qe],encapsulation:2}),i}(),oU=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.ngZone=e,this.renderer=n,this.reset=new O,this.apply=new O,this.columnChange=new O,this.autoSync=!0,this.allowHideAll=!1,this.actionsClass="k-action-buttons",this.unlockedCount=0}return v(r,[{key:"className",get:function(){return!0}},{key:"columns",get:function(){return this._columns},set:function(e){this._columns=e.filter(function(n){return!1!==n.includeInChooser}),this.allColumns=e,this.updateColumnState()}},{key:"isDisabled",value:function(e){return!(this.allowHideAll||this.hasFiltered||e.hidden||this.columns.find(function(n){return n!==e&&!n.hidden}))||this.hasVisibleLocked&&!this.hasUnlockedFiltered&&1===this.unlockedCount&&!e.locked&&!e.hidden}},{key:"ngOnInit",value:function(){var e=this;!this.element||this.ngZone.runOutsideAngular(function(){e.domSubscriptions=e.renderer.listen(e.element.nativeElement,"click",function(n){if(Rv(n.target,"k-checkbox"))if(e.autoSync){var a=parseInt(n.target.getAttribute("data-index"),10),o=e.columns[a],s=!n.target.checked;Boolean(o.hidden)!==s&&e.ngZone.run(function(){o.hidden=s,e.columnChange.emit([o])})}else e.updateDisabled()})})}},{key:"ngOnChanges",value:function(e){!this.service||(e.isLast&&this.isLast&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement),e.isExpanded&&this.isExpanded&&this.isLast&&this.applyButton&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement))}},{key:"ngOnDestroy",value:function(){this.domSubscriptions&&this.domSubscriptions()}},{key:"cancelChanges",value:function(){var e=this;this.forEachCheckBox(function(n,a){n.checked=!e.columns[a].hidden}),this.updateDisabled(),this.reset.emit()}},{key:"applyChanges",value:function(){var e=this,n=[];this.forEachCheckBox(function(a,o){var s=e.columns[o],l=!a.checked;Boolean(s.hidden)!==l&&(s.hidden=l,n.push(s))}),this.updateDisabled(),this.apply.emit(n)}},{key:"onTab",value:function(e){this.isLast&&(e.preventDefault(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}},{key:"forEachCheckBox",value:function(e){for(var n=this.element.nativeElement.getElementsByClassName("k-checkbox"),a=n.length,o=0;o0,this.hasVisibleLocked=this.allColumns.filter(function(n){return n.locked&&!n.hidden}).length>0,this.unlockedCount=this.columns.filter(function(n){return!n.locked&&!n.hidden}).length;var e=this.allColumns.filter(function(n){return!1===n.includeInChooser&&!n.hidden});e.length?(this.hasFiltered=e.length>0,this.hasUnlockedFiltered=e.filter(function(n){return!n.locked}).length>0):(this.hasFiltered=!1,this.hasUnlockedFiltered=!1)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnlist"]],viewQuery:function(t,e){var n;1&t&&ge(Uft,5),2&t&&P(n=B())&&(e.applyButton=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-column-list-wrapper",e.className)},inputs:{columns:"columns",autoSync:"autoSync",allowHideAll:"allowHideAll",applyText:"applyText",resetText:"resetText",actionsClass:"actionsClass",isLast:"isLast",isExpanded:"isExpanded",service:"service"},outputs:{reset:"reset",apply:"apply",columnChange:"columnChange"},features:[Ie],decls:3,vars:2,consts:[[1,"k-column-list"],["class","k-column-list-item",4,"ngFor","ngForOf"],[3,"ngClass",4,"ngIf"],[1,"k-column-list-item"],["type","checkbox",1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"checked","disabled"],[1,"k-checkbox-label"],[3,"ngClass"],["type","button",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"click"],["type","button",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab","click"],["applyButton",""]],template:function(t,e){1&t&&(A(0,"div",0),T(1,zft,4,4,"label",1),x(),T(2,Hft,6,3,"div",2)),2&t&&(k(1),y("ngForOf",e.columns),k(1),y("ngIf",!e.autoSync))},directives:[gn,qe,Nt],encapsulation:2}),i}(),kA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this)).localization=n,l.columnInfoService=a,l.changeDetector=o,l.hostElement=s,l.expand=new O,l.collapse=new O,l.expanded=!1,l.isLast=!1,l.actionsClass="k-columnmenu-actions",l}return v(e,[{key:"columns",get:function(){return this.columnInfoService.leafNamedColumns}},{key:"onApply",value:function(a){this.close(),a.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(a))}},{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.expand.emit()}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-chooser"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","columns",3,"text","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"applyText","resetText","columns","autoSync","allowHideAll","actionsClass","isLast","isExpanded","service","apply"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,Kft,1,9,"ng-template",1),x()),2&t&&y("text",e.localization.get("columns"))("expanded",e.expanded)},directives:[Ah,oU,$m],encapsulation:2}),i}(),Nb=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).localization=n,o.hostElement=a,o.expand=new O,o.collapse=new O,o.expanded=!1,o.isLast=!1,o.actionsClass="k-columnmenu-actions",o}return v(e,[{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.expand.emit()}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-filter"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","filter",3,"text","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"column","menuTabbingService","filter","actionsClass","isLast","isExpanded","keydown.shift.tab","close"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,jft,1,6,"ng-template",1),x()),2&t&&y("text",e.localization.get("filter"))("expanded",e.expanded)},directives:[Ah,iU,$m],encapsulation:2}),i}(),CA=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.hostElement=t,this.renderer=e,this.ngZone=n,this._isFirst=!1,this._isLast=!1,this.subs=new Je,this.onTab=function(o){o.keyCode===J.Tab&&(a.isFirst&&o.shiftKey&&o.target===a.columnMenuItems[0]&&(o.preventDefault(),a.menuItemComponent.service.menuTabbingService.lastFocusable.focus()),a.isLast&&!o.shiftKey)&&a.getLastColumnMenuItem()===o.target&&!a.menuItemComponent.expanded&&(o.preventDefault(),a.menuItemComponent.service.menuTabbingService.firstFocusable.focus())}}return v(r,[{key:"isFirst",get:function(){return this._isFirst},set:function(e){var n=this;if(e){var a=this.columnMenuItems[0];this.menuItemComponent.service.menuTabbingService.firstFocusable=a,this.ngZone.runOutsideAngular(function(){var o=n.renderer.listen(a,"keydown",n.onTab);n.subs.add(o)})}this._isFirst=e}},{key:"isLast",get:function(){return this._isLast},set:function(e){var n=this;if(this.columnMenuItems){if(e){var a=this.getLastColumnMenuItem();this.menuItemComponent.service.menuTabbingService.lastFocusable=a,this.ngZone.runOutsideAngular(function(){var o=n.renderer.listen(a,"keydown",n.onTab);n.subs.add(o)}),this.isExpandableItem()&&(this.menuItemComponent.isLast=!0)}this._isLast=e}}},{key:"ngAfterViewInit",value:function(){var e=this;this.columnMenuItems=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),[].slice.apply(this.columnMenuItems).forEach(function(n){return e.renderer.setAttribute(n,"tabindex","0")}),this.menuItemComponent instanceof Nb&&(this.menuItemComponent.service.menuTabbingService.isColumnMenu=!0)}},{key:"ngOnDestroy",value:function(){this.subs&&this.subs.unsubscribe()}},{key:"getLastColumnMenuItem",value:function(){return 1===this.columnMenuItems.length?this.columnMenuItems[0]:this.columnMenuItems[1]}},{key:"isExpandableItem",value:function(){return this.menuItemComponent instanceof Nb||this.menuItemComponent instanceof kA||this.menuItemComponent instanceof yA}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuItem",""]],inputs:{menuItemComponent:["kendoGridColumnMenuItem","menuItemComponent"]}}),i}(),sU=function(){var i=function(){function r(t,e){p(this,r),this.service=t,this.ngZone=e}return v(r,[{key:"ngAfterContentInit",value:function(){var e=this;!this.columnMenuItems.length||(this.columnMenuItems.first.isFirst=!0,this.columnMenuItems.last.isLast=!0,this.ngZone.onStable.pipe(It(1)).subscribe(function(){return e.service.menuTabbingService.firstFocusable.focus()}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(aU),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-container"]],contentQueries:function(t,e,n){var a;1&t&&he(n,CA,5),2&t&&P(a=B())&&(e.columnMenuItems=a)},ngContentSelectors:rV,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),lU=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.sortService=a,s.renderer=o,s}return v(e,[{key:"sortedAsc",get:function(){var a=this.descriptor;return a&&(!a.dir||"asc"===a.dir)}},{key:"sortedDesc",get:function(){var a=this.descriptor;return a&&"desc"===a.dir}},{key:"toggleSort",value:function(a){var o=this.service.column.field,s=lA(this.service.sortable),u=s.allowUnsort,c=this.descriptor,d="multiple"===s.mode?this.service.sort.filter(function(h){return h.field!==o}):[];if(c&&c.dir===a){if(!u)return}else d.push({field:o,dir:a});this.sortService.sort(d),this.close()}},{key:"descriptor",get:function(){var a=this;return[].concat(this.service.sort||[]).find(function(o){return o.field===a.service.column.field})}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(aA),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-sort"]],features:[j],decls:2,vars:4,consts:[["icon","sort-asc-sm",3,"text","selected","itemClick"],["icon","sort-desc-sm",3,"text","selected","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleSort("asc")}),x(),A(1,"kendo-grid-columnmenu-item",1),Q("itemClick",function(){return e.toggleSort("desc")}),x()),2&t&&(y("text",e.localization.get("sortAscending"))("selected",e.sortedAsc),k(1),y("text",e.localization.get("sortDescending"))("selected",e.sortedDesc))},directives:[Ah],encapsulation:2}),i}(),bA=function(){var i=function(){function r(t,e,n,a){p(this,r),this.popupService=t,this.localization=e,this.service=n,this.navigationService=a,this.standalone=!0,this.settings={},this.sortable=!0,this.tabIndex="-1",this.expandedFilter=!1,this.expandedColumns=!1,this.expandedPosition=!1,this.closeSubscription=n.closeMenu.subscribe(this.close.bind(this))}return v(r,[{key:"isActive",get:function(){var e=this;return this.hasFilter&&Ob(this.filter,this.column.field).length>0||!this.sortable&&this.hasSort&&this.sort.find(function(n){return n.field===e.column.field})}},{key:"hasFilter",get:function(){return Nhe(this.settings,this.column)}},{key:"hasSort",get:function(){return Fhe(this.settings,this.column)}},{key:"hasColumnChooser",get:function(){return Phe(this.settings)}},{key:"hasLock",get:function(){return Lhe(this.settings,this.column)}},{key:"hasStick",get:function(){return function(r,t){return r.stick&&t.stickable&&!(t.parent&&!t.parent.isSpanColumn)}(this.settings,this.column)}},{key:"hasPosition",get:function(){return function(r,t){return r.setColumnPosition&&(t.stickable||t.lockable)&&!(t.parent&&!t.parent.isSpanColumn)}(this.settings,this.column)}},{key:"ngOnChanges",value:function(){this.service.column=this.column,this.service.sort=this.sort,this.service.filter=this.filter,this.service.sortable=this.sortable}},{key:"ngOnDestroy",value:function(){this.close(),this.closeSubscription.unsubscribe()}},{key:"toggle",value:function(e,n,a){e&&(e.preventDefault(),e.stopImmediatePropagation()),this.expandedFilter=this.getExpandedState(this.settings.filter),this.expandedColumns=this.getExpandedState(this.settings.columnChooser),this.expandedPosition=this.getExpandedState(this.settings.setColumnPosition),this.popupRef=this.popupService.open(n,a,this.popupRef,"k-grid-columnmenu-popup"),this.popupRef||(this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus())}},{key:"close",value:function(){this.popupService.destroy(),this.popupRef=null,this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}},{key:"columnMenuTitle",get:function(){var e=this.localization.get("columnMenu")||"";return Ea(e,"columnName",this.column.title||this.column.field)}},{key:"getExpandedState",value:function(e){return"object"==typeof e&&e.expanded}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Mb),m(Y),m(aU),m(Va))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-menu"]],viewQuery:function(t,e){var n;1&t&&(ge(jde,7),ge(Wde,7,$e)),2&t&&(P(n=B())&&(e.anchor=n.first),P(n=B())&&(e.template=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-column-menu-standalone",e.standalone)},inputs:{standalone:"standalone",column:"column",settings:"settings",sort:"sort",filter:"filter",sortable:"sortable",columnMenuTemplate:"columnMenuTemplate",tabIndex:"tabIndex"},features:[de([aU,Tb]),Ie],decls:7,vars:5,consts:[["href","#",1,"k-grid-column-menu","k-grid-filter",3,"ngClass","tabindex","click","keydown.enter"],["anchor",""],[1,"k-icon","k-i-more-vertical"],["template",""],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"keydown.escape","keydown.enter"],[3,"kendoGridColumnMenuItem","service",4,"ngIf"],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"kendoGridColumnMenuItem","service"],["sortItem",""],["lockItem",""],["stickItem",""],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded"],["positionItem",""],[3,"kendoGridColumnMenuItem","service","expanded"],["chooserItem",""],["filterItem",""]],template:function(t,e){if(1&t){var n=xe();A(0,"a",0,1),Q("click",function(o){re(n);var s=Yt(1),l=Yt(4);return e.toggle(o,s,l)})("keydown.enter",function(o){return o.stopImmediatePropagation()}),z(2,"span",2),x(),T(3,$ft,1,5,"ng-template",null,3,$n),T(5,evt,7,6,"ng-template",null,4,$n)}2&t&&(y("ngClass",ot(3,tvt,e.isActive))("tabindex",e.tabIndex),ie("title",e.columnMenuTitle))},directives:[sU,lU,mA,_A,yA,kA,Nb,Nt,En,qe,CA],encapsulation:2}),i}(),uU=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.clearText="Clear",this.operators=[],this.showOperators=!0,this.valueChange=new O,this.clear=new O}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"onChange",value:function(e){this.valueChange.emit(e)}},{key:"clearClick",value:function(){return this.clear.emit(),!1}},{key:"clearKeydown",value:function(e){(e.keyCode===J.Enter||e.keyCode===J.Space)&&this.clear.emit()}},{key:"dropdownKeydown",value:function(e){e.defaultPrevented||e.keyCode===J.Enter&&!this.dropdown.isOpen&&(this.dropdown.toggle(!0),e.preventDefault())}},{key:"ngOnInit",value:function(){var e=this;this.localization.changes.subscribe(function(){return e.clearText=e.localization.get("filterClearButton")})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-cell-operators"]],viewQuery:function(t,e){var n;1&t&&ge(nvt,5),2&t&&P(n=B())&&(e.dropdown=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filtercell-operator",e.hostClasses)},inputs:{operators:"operators",showButton:"showButton",showOperators:"showOperators",value:"value"},outputs:{valueChange:"valueChange",clear:"clear"},decls:2,vars:2,consts:[["kendoGridFocusable","","class","k-dropdown-operator","iconClass","k-i-filter","textField","text","valueField","value",3,"data","value","valuePrimitive","popupSettings","valueChange","keydown",4,"ngIf"],["type","button","kendoGridFocusable","","class","k-button k-button-solid-base k-button-solid k-button-md k-rounded-md k-button-rectangle k-icon-button",3,"title","click","keydown",4,"ngIf"],["kendoGridFocusable","","iconClass","k-i-filter","textField","text","valueField","value",1,"k-dropdown-operator",3,"data","value","valuePrimitive","popupSettings","valueChange","keydown"],["dropdown",""],["type","button","kendoGridFocusable","",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"title","click","keydown"],[1,"k-icon","k-button-icon","k-i-filter-clear"]],template:function(t,e){1&t&&(T(0,ivt,2,5,"kendo-dropdownlist",0),T(1,rvt,2,1,"button",1)),2&t&&(y("ngIf",e.showOperators),k(1),y("ngIf",e.showButton))},directives:[js,qe,co],encapsulation:2}),i}(),q_t=["isnull","isnotnull","isempty","isnotempty"],qm=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,n)).showOperators=!0,a}return v(e,[{key:"hostClasses",get:function(){return!0}},{key:"overrideBaseClasses",get:function(){return!1}},{key:"showButton",get:function(){var a=this.currentFilter;return He(a)&&(!wr(a.value)||q_t.indexOf(String(a.operator))>=0)}},{key:"filterChange",value:function(a){this.applyFilter(a)}}]),e}(Hhe);return i.\u0275fac=function(t){return new(t||i)(m(la))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-wrapper-cell"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-filtercell-wrapper",e.hostClasses)("k-filtercell",e.overrideBaseClasses)},inputs:{showOperators:"showOperators"},features:[j],ngContentSelectors:rV,decls:2,vars:4,consts:[[3,"showOperators","operators","showButton","value","clear","valueChange"]],template:function(t,e){1&t&&(kn(),dn(0),A(1,"kendo-grid-filter-cell-operators",0),Q("clear",function(){return e.onClear()})("valueChange",function(a){return e.currentOperator=a}),x()),2&t&&(k(1),y("showOperators",e.showOperators)("operators",e.operators)("showButton",e.showButton)("value",e.currentOperator))},directives:[uU],encapsulation:2}),i}(),Fb=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).filterDelay=500,o.showOperators=!0,o}return v(e,[{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(zhe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-string-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[j],decls:2,vars:8,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoTextBox","","kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","ngModel"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"input",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("filterDelay",e.filterDelay)("ngModel",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,tie,zc,co,$u,jf,Wf],encapsulation:2}),i}(),SA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).localization=a,o.filterDelay=500,o.showOperators=!0,o}return v(e,[{key:"messageFor",value:function(a){return this.localization.get(a)}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(Whe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-numeric-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[j],decls:3,vars:17,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","step"],[3,"increment","decrement"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-numerictextbox",1),z(2,"kendo-numerictextbox-messages",2),x()()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("filterDelay",e.filterDelay)("autoCorrect",!0)("value",null==e.currentFilter?null:e.currentFilter.value)("format",e.format)("decimals",e.decimals)("spinners",e.spinners)("min",e.min)("max",e.max)("step",e.step),k(1),y("increment",e.messageFor("filterNumericIncrement"))("decrement",e.messageFor("filterNumericDecrement")))},directives:[qm,Jf,sie,co,$u],encapsulation:2}),i}(),wA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a)).cd=o,s}return v(e,[{key:"localizationChange",value:function(){$(q(e.prototype),"localizationChange",this).call(this),this.cd.markForCheck()}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(Yhe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-boolean-filter-cell"]],features:[j],decls:2,vars:11,consts:[[3,"column","filter","showOperators","defaultOperator"],["kendoFilterInput","","kendoGridFocusable","","textField","text","valueField","value",3,"columnLabel","defaultItem","data","popupSettings","valuePrimitive","value"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"kendo-dropdownlist",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("showOperators",!1)("defaultOperator",e.operator),k(1),y("columnLabel",e.columnLabel)("defaultItem",e.defaultItem)("data",e.items)("popupSettings",Tt(10,$de))("valuePrimitive",!0)("value",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,js,$u,co],encapsulation:2}),i}(),DA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).localization=a,o.showOperators=!0,o}return v(e,[{key:"messageFor",value:function(a){return this.localization.get(a)}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(Xhe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-date-filter-cell"]],inputs:{showOperators:"showOperators"},features:[j],decls:3,vars:18,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoFilterInput","","kendoGridFocusable","",3,"columnLabel","value","format","formatPlaceholder","placeholder","activeView","bottomView","topView","min","max","weekNumber"],[3,"toggle","today"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-datepicker",1),z(2,"kendo-datepicker-messages",2),x()()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("value",null==e.currentFilter?null:e.currentFilter.value)("format",e.format)("formatPlaceholder",e.formatPlaceholder)("placeholder",e.placeholder)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("min",e.min)("max",e.max)("weekNumber",e.weekNumber),k(1),y("toggle",e.messageFor("filterDateToggle"))("today",e.messageFor("filterDateToday")))},directives:[qm,FB,Mse,$u,co],encapsulation:2}),i}(),efe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){return p(this,e),t.call(this,n,a)}return v(e,[{key:"componentType",value:function(){return wr(this.column.filter)?Fb:function(r){return{boolean:wA,date:DA,numeric:SA,text:Fb}[r]}(this.column.filter)}}]),e}(Uhe);return i.\u0275fac=function(t){return new(t||i)(m(ei),m(Ts))},i.\u0275dir=X({type:i,selectors:[["","kendoFilterCellHost",""]],features:[j]}),i}(),cU=function(){var i=function(){function r(){p(this,r),this._templateContext={}}return v(r,[{key:"filter",get:function(){return this._filter},set:function(e){this._filter=nU(e)}},{key:"templateContext",get:function(){return this._templateContext.column=this.column,this._templateContext.filter=this.filter,this._templateContext.$implicit=this.filter,this._templateContext}},{key:"hasTemplate",get:function(){return He(this.column.filterCellTemplateRef)}},{key:"isFilterable",get:function(){return He(this.column)&&!wr(this.column.field)&&this.column.filterable}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFilterCell",""]],inputs:{column:"column",filter:"filter"},attrs:avt,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["kendoFilterCellHost","",3,"column","filter"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&T(0,cvt,4,3,"ng-container",0),2&t&&y("ngIf",e.isFilterable)},directives:[qe,kd,Gp,efe,En],encapsulation:2}),i}(),Z_t=0,Xm=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.focusGroup=t,this.element=e,this.columnInfoService=n,this.idService=a,this.navigationService=o,this.renderer=s,this.zone=l,this.cellContext=u,this.logicalSlaveCell=!1,this.colSpan=1,this.rowSpan=1,this.dataRowIndex=-1,this.detailExpandCell=!1,this.uid=function Y_t(){return Z_t++}()}return v(r,[{key:"id",get:function(){if(!this.logicalSlaveCell&&this.columnInfoService.isLocked)return this.idService.cellId(this.logicalRowIndex,this.logicalColIndex)}},{key:"ariaColIndex",get:function(){if(!this.logicalSlaveCell&&-1!==this.logicalColIndex)return this.logicalColIndex+1}},{key:"ngOnInit",value:function(){var e=this;!this.navigationService.enabled||(this.navigationChange=this.navigationService.changes.subscribe(function(n){return e.onNavigationChange(n)}))}},{key:"ngDoCheck",value:function(){!this.navigationService.enabled||-1===this.logicalColIndex||(this.cellContext&&(this.cellContext.focusGroup=this.focusGroup),this.registerNoChanges())}},{key:"ngOnChanges",value:function(e){if(this.navigationService.enabled){var n=Object.keys(e);if((1!==n.length||"groupItem"!==n[0])&&-1!==this.logicalColIndex){var a=e.logicalColIndex,o=e.logicalRowIndex,s=a&&!a.isFirstChange()?a.previousValue:this.logicalColIndex,l=o&&!o.isFirstChange()?o.previousValue:this.logicalRowIndex;this.navigationService.unregisterCell(s,l,this),this.registerChanges(),this.updateElement()}}}},{key:"ngOnDestroy",value:function(){this.navigationChange&&this.navigationChange.unsubscribe(),this.navigationService.unregisterCell(this.logicalColIndex,this.logicalRowIndex,this)}},{key:"onNavigationChange",value:function(e){(this.logicalColIndex===e.colIndex&&this.logicalRowIndex===e.rowIndex||this.logicalColIndex===e.prevColIndex&&this.logicalRowIndex===e.prevRowIndex)&&this.updateElement()}},{key:"updateElement",value:function(){var e=this,n=this.element.nativeElement;this.renderer.setAttribute(n,"tabIndex",this.isFocusable()&&!this.logicalSlaveCell?"0":"-1"),this.isFocused()?(this.focusGroup.isNavigable()?this.focusGroup.focus():(!this.logicalSlaveCell&&this.navigationService.autoFocusCell(this.logicalColIndex,this.logicalColIndex+this.colSpan-1)&&this.microtask(function(){return e.isFocused()&&n.focus()}),this.renderer.addClass(n,"k-state-focused")),this.headerLabelText&&n.setAttribute("aria-label","")):(this.renderer.removeClass(n,"k-state-focused"),this.headerLabelText&&n.setAttribute("aria-label",this.headerLabelText))}},{key:"microtask",value:function(e){this.zone.runOutsideAngular(function(){return Promise.resolve(null).then(e)})}},{key:"registerChanges",value:function(){this.logicalSlaveCell||this.navigationService.registerCell(this)}},{key:"registerNoChanges",value:function(){this.logicalSlaveCell||this.navigationService.registerCellOnCurrentRow(this)}},{key:"isFocusable",value:function(){return this.navigationService.isCellFocusable(this)}},{key:"isFocused",value:function(){return this.navigationService.isCellFocused(this)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Vm),m(ke),m(fs),m(Bl),m(Va),m(Ee),m(be),m(td,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLogicalCell",""]],hostVars:2,hostBindings:function(t,e){2&t&&ie("id",e.id)("aria-colindex",e.ariaColIndex)},inputs:{logicalColIndex:"logicalColIndex",logicalRowIndex:"logicalRowIndex",logicalSlaveCell:"logicalSlaveCell",colIndex:"colIndex",colSpan:"colSpan",rowSpan:"rowSpan",groupItem:"groupItem",dataRowIndex:"dataRowIndex",dataItem:"dataItem",detailExpandCell:"detailExpandCell",headerLabelText:"headerLabelText"},features:[de([{provide:Vm,deps:[Eh],useClass:Vm}]),Ie]}),i}(),dU=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.columnInfoService=e,this.columns=[],this.groups=[],this.filterRowClass=!0}return v(r,[{key:"addStickyStyles",value:function(e){var n=e.sticky?this.columnInfoService.stickyColumnsStyles(e):null;return Object.assign(Object.assign({},n),e.filterStyle)}},{key:"filterLabel",value:function(e){var n=this.localization.get("filterInputLabel")||"";return Ea(n,"columnName",e.title||e.field)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFilterRow",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filter-row",e.filterRowClass)},inputs:{columns:"columns",filter:"filter",groups:"groups",detailTemplate:"detailTemplate",logicalRowIndex:"logicalRowIndex",lockedColumnsCount:"lockedColumnsCount"},attrs:dvt,decls:3,vars:3,consts:[["role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["kendoGridFilterCell","","kendoGridLogicalCell","",3,"k-grid-header-sticky","ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf"],["role","presentation"],["kendoGridFilterCell","","kendoGridLogicalCell","",3,"ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex"]],template:function(t,e){1&t&&(T(0,hvt,1,2,"td",0),T(1,fvt,1,2,"td",1),T(2,vvt,1,9,"td",2)),2&t&&(y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columns))},directives:[cU,gn,qe,Xm,Vi,Nt],encapsulation:2}),i}(),Q_t=0,EA=function(){var i=function(){function r(t,e){p(this,r),this.idService=t,this.navigation=e,this.logicalSlaveRow=!1,this.logicalSlaveCellsCount=0,this.dataRowIndex=-1,this.uid=function J_t(){return Q_t++}()}return v(r,[{key:"hostRole",get:function(){return this.logicalSlaveRow?"presentation":"row"}},{key:"ariaRowIndex",get:function(){return this.logicalRowIndex+1}},{key:"ariaOwns",get:function(){if(this.navigation.enabled&&!this.logicalSlaveRow&&0!==this.logicalSlaveCellsCount){for(var e=[],n=this.logicalCellsCount+this.logicalSlaveCellsCount,a=this.logicalCellsCount;a0||e>0}}()&&void 0===this.selectionService.selectAllState,a=!!n||this.el.nativeElement.checked,o=this.selectionService.options,s=o.enabled&&"multiple"===o.mode,l=ut(this.selectAllChange);(s||l)&&this.ngZone.run(function(){s&&e.selectionService.updateAll(a),l&&e.selectAllChange.emit(a?"checked":"unchecked")})}},{key:"setState",value:function(){var e=this.stateSet?this.stateToBool():this.selectionService.selectAllState,n=this.el.nativeElement;this.renderer.setProperty(n,"indeterminate",!He(e)),this.renderer.setProperty(n,"checked",!!He(e)&&e)}},{key:"stateToBool",value:function(){switch(this.state){case"checked":return!0;case"unchecked":return!1;default:return}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Lm),m(ke),m(Ee),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectAllCheckbox",""]],hostVars:1,hostBindings:function(t,e){2&t&&ie("type",e.type)},inputs:{state:"state"},outputs:{selectAllChange:"selectAllChange"},features:[Ie]}),i}(),fU=function(r){return r.nativeElement.parentElement.offsetWidth},tfe=function(r){return Wu(r).filter(function(t){return!t.isColumnGroup})},nyt=function(r){var t=r.originalEvent;t.stopPropagation(),t.preventDefault()},nfe=function(r){return!(!r.parent||!r.parent.isSpanColumn)},ife=function(){var i=function(){function r(t,e,n,a,o,s,l){p(this,r),this.draggable=t,this.element=e,this.service=n,this.zone=a,this.cdr=o,this.localization=s,this.columnInfoService=l,this.columns=[],this.subscriptions=new Je,this.rtl=!1}return v(r,[{key:"visible",get:function(){return this.column.resizable?"block":"none"}},{key:"leftStyle",get:function(){return hs(this.rtl)?0:null}},{key:"rightStyle",get:function(){return hs(this.rtl)?null:0}},{key:"autoFit",value:function(){var e=this,n=tfe(this.columns),a=XT([this.column]).filter(function(s){return hs(s.resizable)}),o=a.map(function(s){var l=nfe(s),u=!!l&&s.parent.childColumns.last===s,c=function(r,t){for(var e=0,n=0,a=0;ethis.column.minResizableWidth?a:this.column.minResizableWidth-this.column.resizeStartWidth;this.updateWidth(this.column,o),this.service.resizeTable(this.column,s)}},{key:"sizeToFit",value:function(e){var a=e.widths,o=e.columns.indexOf(this.column),s=Math.max.apply(Math,Ae(a.map(function(u){return u[o]})))+1,l=s-this.column.resizeStartWidth;this.updateWidth(this.column,s),this.service.resizeTable(this.column,l)}},{key:"updateWidth",value:function(e,n){e.width=n,this.columnInfoService.hiddenColumns.forEach(function(a){Cb(a.width)&&He(a.implicitWidth)&&(a.width=a.implicitWidth)}),this.cdr.markForCheck()}},{key:"columnsForLevel",value:function(e){return nd(this.columns?this.columns.filter(function(n){return n.level===e}):[])}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(ke),m(xb),m(be),m(nt),m(Y),m(fs))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnHandle",""]],hostVars:6,hostBindings:function(t,e){1&t&&Q("dblclick",function(){return e.autoFit()}),2&t&&Qe("display",e.visible)("left",e.leftStyle)("right",e.rightStyle)},inputs:{columns:"columns",column:"column"}}),i}(),TA=function(){for(var r=arguments.length,t=new Array(r),e=0;e=0},function(r){return r.draggable.context.column.reorderable},function(r){return!che(r.draggable.context.column)},function(r){return r.draggable.element.nativeElement!==r.target.element.nativeElement},function(r){return cyt(r.draggable.context.column,r.target.context.column)},Sb(function(r){var t=r.draggable;return!hs(t.context.column.locked)&&function(r){return!hs(r.parent)}(t.context.column)&&t.context.lastColumn}),function(r){var t=r.draggable;return!1!==t.context.column.lockable||t.context.column.isLocked===r.target.context.column.isLocked}),myt=["alt","ctrl","shift","meta"],rfe=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c){p(this,r),this.popupService=t,this.hint=e,this.cue=n,this.reorderService=a,this.idService=o,this.sortService=s,this.localization=l,this.columnInfoService=u,this.cd=c,this.columns=[],this.groups=[],this.sort=new Array,this.sortable=!1,this.groupable=!1,this.lockedColumnsCount=0,this.resizable=!1,this.reorderable=!1,this.columnMenu=!1,this.totalColumnsCount=0,this.sortedFields={},this.dropTargets=new Ei,this.subscription=new Je}return v(r,[{key:"headerClass",get:function(){return!this.scrollable}},{key:"sortableLabel",get:function(){return this.localization.get("sortable")}},{key:"columnMenuSettings",get:function(){return this.columnMenu}},{key:"unlockedColumnsCount",get:function(){return this.totalColumnsCount-this.lockedColumnsCount-this.columns.length}},{key:"sortColumn",value:function(e){this.sortService.sort(e)}},{key:"getColumnComponent",value:function(e){return e}},{key:"onSortClick",value:function(e,n,a){var o=n.target;if(!e.headerTemplateRef||o===a||!Boolean(cV(o,Jde,a))){var l=this.matchModifier(n),u=this.toggleSort(e,l);this.sortColumn(u)}}},{key:"onHeaderKeydown",value:function(e,n){if(n.keyCode===J.ArrowDown&&n.altKey&&this.showFilterMenu){n.preventDefault(),n.stopImmediatePropagation();var a=this.filterMenus.find(function(l){return l.column===e});a.toggle(a.anchor.nativeElement,a.template)}if(n.keyCode===J.ArrowDown&&n.altKey&&this.showColumnMenu(e)){n.preventDefault(),n.stopImmediatePropagation();var o=this.columnMenus.find(function(l){return l.column===e});o.toggle(null,o.anchor.nativeElement,o.template)}if(this.sortable&&!n.defaultPrevented&&!1!==e.sortable&&n.keyCode===J.Enter&&He(e.field)){var s=this.matchModifier(n);this.sortService.sort(this.toggleSort(e,s))}}},{key:"showSortNumbering",value:function(e){return lA(this.sortable).showIndexes&&this.sort&&this.sort.filter(function(o){return He(o.dir)}).length>1&&this.sortOrder(e.field)>0}},{key:"sortOrder",value:function(e){return this.sort.filter(function(n){return He(n.dir)}).findIndex(function(n){return n.field===e})+1}},{key:"sortIcon",value:function(e){var n=this.sortDescriptor(e);return{"k-icon":He(n.dir),"k-i-sort-desc-sm":"desc"===n.dir,"k-i-sort-asc-sm":"asc"===n.dir}}},{key:"sortState",value:function(e){if(this.isSortable(e)){var n=this.sortDescriptor(e.field);if("asc"===n.dir)return"ascending";if("desc"===n.dir)return"descending"}}},{key:"sortStatus",value:function(e){if(this.sortedFields[e.field]&&this.isSortable(e)){var n="sortedDefault",a=this.sortDescriptor(e.field);return"asc"===a.dir?n="sortedAscending":"desc"===a.dir&&(n="sortedDescending"),this.localization.get(n)}}},{key:"toggleSort",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=lA(this.sortable,e.sortable),o=a.allowUnsort,s=a.mode,l=a.initialDirection,u=this.toggleDirection(e.field,o,l);return"single"!==s&&n?[].concat(Ae(this.sort.filter(function(c){return c.field!==e.field})),[u]):[u]}},{key:"matchModifier",value:function(e){var a=lA(this.sortable).multiSortKey;return"none"===a?myt.every(function(o){return!e["".concat(o,"Key")]}):"ctrl"===a?e.ctrlKey||e.metaKey:e["".concat(a,"Key")]}},{key:"ngAfterViewInit",value:function(){this.subscription.add(VT(this.dropTargets).subscribe(this.attachTargets.bind(this)))}},{key:"ngDoCheck",value:function(){this._leafColumns=nd(this.columns||[]).filter(function(e){return!Bm(e)})}},{key:"ngOnChanges",value:function(e){var n=this,a=e.sort;a&&!a.isFirstChange()&&a.currentValue.forEach(function(o){n.sortedFields[o.field]=!0})}},{key:"ngOnInit",value:function(){var e=this;this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngOnDestroy",value:function(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.popupService&&this.popupService.destroy(),this.subscription.unsubscribe()}},{key:"selectAllCheckboxId",value:function(){return this.idService.selectAllCheckboxId()}},{key:"selectAllCheckboxLabel",get:function(){return this.localization.get("selectAllCheckboxLabel")}},{key:"isFirstOnRow",value:function(e,n){var a=this;return 0===n&&!this.groups.length&&!this.detailTemplate&&function s(l){return l&&(a.columnsForLevel(l.level).indexOf(l)>0||s(l.parent))}(e.parent)}},{key:"logicalColumnIndex",value:function(e){var n=e.leafIndex;return He(n)?n+(He(this.detailTemplate)?1:0):-1}},{key:"showFilterMenu",get:function(){return!this.columnMenu&&function(r){return"string"==typeof r&&r.indexOf("menu")>-1}(this.filterable)}},{key:"showFilterRow",get:function(){return nA(this.filterable)}},{key:"showColumnMenu",value:function(e){return this.columnMenu&&e.columnMenu&&(this.columnMenuTemplate||e.columnMenuTemplates.length||function(r,t){return Phe(r)||Lhe(r,t)||Fhe(r,t)||Nhe(r,t)}(this.columnMenu,e))}},{key:"isFilterable",value:function(e){return!wr(e.field)&&!0===e.filterable}},{key:"canDrop",value:function(e,n){return this.reorderable&&gyt({draggable:e,target:n})}},{key:"shouldActivate",value:function(e){var n=this.reorderable&&e.reorderable;return!(!n&&!Eb(e))&&(this.groupable&&Eb(e)&&!1!==e.groupable||n)}},{key:"isSortable",value:function(e){return!wr(e.field)&&hs(this.sortable)&&hs(e.sortable)}},{key:"isCheckboxColumn",value:function(e){return ohe(e)&&!e.templateRef}},{key:"trackByIndex",value:function(e,n){return e}},{key:"addStickyStyles",value:function(e){var n=this.columnInfoService.stickyColumnsStyles(e);return Object.assign(Object.assign({},e.style),n)}},{key:"toggleDirection",value:function(e,n,a){var o=this.sortDescriptor(e),s=function(r){return"asc"===r?["asc","desc"]:["desc","asc"]}(a),l=Gt(s,2),u=l[0],c=l[1],d=u;return o.dir===u?d=c:o.dir===c&&n&&(d=void 0),{dir:d,field:e}}},{key:"columnsForLevel",value:function(e){var n=this.columns?this.columns.filter(function(a){return a.level===e}):[];return Fv(nd(n))}},{key:"isColumnGroupComponent",value:function(e){return Bm(e)}},{key:"columnLevels",get:function(){return new Array((this.totalColumnLevels||0)+1)}},{key:"sortDescriptor",value:function(e){return this.sort.find(function(n){return n.field===e})||{field:e}}},{key:"leafColumns",get:function(){return this._leafColumns}},{key:"attachTargets",value:function(){var e=this;this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Je;var n=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.enter}))),a=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.leave}))),o=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.drop})));this.targetSubscription.add(n.pipe(At(function(s){var u=s.draggable;if("groupIndicator"!==u.context.type){var c=hs(s.target.context.column.isLocked),d=hs(u.context.column.isLocked);(e.lockedColumnsCount>0||c||d)&&e.hint.toggleLock(c)}}),Ue(function(s){return e.canDrop(s.draggable,s.target)}),Nn(this.trackMove.bind(this,a,o)),We(function(s){return TA(s,{before:e.calculateBefore(s),changeContainer:s.changeContainer})}),We(this.normalizeTarget.bind(this)),At(this.enter.bind(this)),Nn(function(s){return o.pipe(We(function(){return s}),Qr(a.pipe(At(e.leave.bind(e)))))})).subscribe(this.drop.bind(this)))}},{key:"normalizeTarget",value:function(e){var n=e.target,a=n.context.column.parent;if(a&&a.isSpanColumn){var o=this.dropTargets.toArray(),s=o.find(function(c){return c.context.column.parent===a}),l=o.indexOf(s);n=o[l+(e.before?0:a.childColumns.length-1)]}return TA(e,{target:n})}},{key:"trackMove",value:function(e,n,a){var o=a.target.context.column,s=this.columnsForLevel(o.level),l=s.indexOf(o),c=a.draggable.context.column.isLocked!==o.isLocked;return c&&(o.locked?l===s.length-1:0===l)?a.draggable.drag.pipe(Qr(e),Qr(n),We(function(d){return TA({changeContainer:!0},a,{mouseEvent:d.mouseEvent})})):lt(TA({changeContainer:c},a))}},{key:"calculateBefore",value:function(e){var n=e.draggable,o=e.mouseEvent,s=e.changeContainer,u=e.target.element.nativeElement,c=!1;return void 0!==s&&s?(c=She(u).left+u.offsetWidth/2>o.pageX,this.localization.rtl&&(c=!c)):c=whe(n.element.nativeElement,u),c}},{key:"enter",value:function(e){var n=e.target,a=e.before;this.hint.enable(),this.localization.rtl&&(a=!a),this.cue.position(Dhe(n.element.nativeElement,a))}},{key:"leave",value:function(){this.hint.disable(),this.cue.hide()}},{key:"drop",value:function(e){this.reorderService.reorder({before:e.before,changeContainer:e.changeContainer,source:e.draggable.context.column,target:e.target.context.column})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Mb),m(iA),m(rA),m(GV),m(Bl),m(aA),m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridHeader",""]],viewQuery:function(t,e){var n;1&t&&(ge(Rb,5),ge(rU,5),ge(bA,5)),2&t&&(P(n=B())&&(e.dropTargets=n),P(n=B())&&(e.filterMenus=n),P(n=B())&&(e.columnMenus=n))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-header",e.headerClass)},inputs:{totalColumnLevels:"totalColumnLevels",columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",filterable:"filterable",sort:"sort",filter:"filter",sortable:"sortable",groupable:"groupable",lockedColumnsCount:"lockedColumnsCount",resizable:"resizable",reorderable:"reorderable",columnMenu:"columnMenu",columnMenuTemplate:"columnMenuTemplate",totalColumnsCount:"totalColumnsCount",tabIndex:"tabIndex"},features:[Ie],attrs:pvt,decls:3,vars:2,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngFor","ngForOf"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["class","k-group-cell k-header","role","presentation",4,"ngFor","ngForOf"],["class","k-hierarchy-cell k-header","role","presentation","kendoGridLogicalCell","","aria-selected","false",3,"logicalRowIndex","logicalColIndex",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","presentation",1,"k-group-cell","k-header"],["role","presentation","kendoGridLogicalCell","","aria-selected","false",1,"k-hierarchy-cell","k-header",3,"logicalRowIndex","logicalColIndex"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","enableDrag","context","k-filterable","k-first","k-grid-header-sticky","ngClass","ngStyle","keydown",4,"ngIf"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","k-first","k-filterable","k-grid-content-sticky","ngClass","ngStyle",4,"ngIf"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","enableDrag","context","ngClass","ngStyle","keydown"],[4,"ngIf"],["kendoGridColumnHandle","","kendoDraggable","","class","k-column-resizer",3,"column","columns",4,"ngIf"],[3,"column","filter","tabIndex",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex",4,"ngIf"],[3,"templateContext"],[3,"column","filter","tabIndex"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex"],[1,"k-cell-inner"],[1,"k-link",3,"click"],["link",""],["role","note",3,"ngClass"],["class","k-sort-order",4,"ngIf"],["role","status",1,"k-sort-status",2,"position","absolute","left","-10000px",3,"innerHtml"],[1,"k-column-title"],[1,"k-sort-order"],["kendoGridSelectAllCheckbox","","kendoGridFocusable","",1,"k-checkbox","k-checkbox-md","k-rounded-md"],["kendoGridColumnHandle","","kendoDraggable","",1,"k-column-resizer",3,"column","columns"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","ngClass","ngStyle"],[3,"standalone","settings","column","columnMenuTemplate",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"]],template:function(t,e){1&t&&(Ge(0),T(1,Vvt,4,8,"tr",0),T(2,Uvt,1,9,"tr",1),Ve()),2&t&&(k(1),y("ngForOf",e.columnLevels),k(1),y("ngIf",e.showFilterRow))},directives:[rU,bA,dU,gn,EA,qe,Xm,Rb,$o,JV,Nt,Vi,Lb,hU,co,ife],styles:[".k-column-resizer[_ngcontent-%COMP%] {\n cursor: col-resize;\n display: block;\n height: 1000%;\n position: absolute;\n top: 0;\n width: .5em;\n }"]}),i}(),yyt=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0;p(this,i),this.total=r,this.rowHeight=t,this.detailRowHeight=e,this.offsets=[],this.heights=[];for(var n=0,a=0;athis.rowHeight&&this.updateRowHeight(t,-1*this.detailRowHeight)}},{key:"isExpanded",value:function(t){return this.height(t)>this.rowHeight}},{key:"index",value:function(t){if(!(t<0)){var e=this.offsets.reduce(function(n,a,o){return void 0!==n?n:a===t?o:a>t?o-1:void 0},void 0);return void 0===e?this.total-1:e}}},{key:"offset",value:function(t){return this.offsets[t]}},{key:"totalHeight",value:function(){return this.heights.reduce(function(t,e){return t+e},0)}},{key:"updateRowHeight",value:function(t,e){this.total>0&&(this.heights[t]+=e,this.offsets=function(r,t,e){return[].concat(Ae(r.slice(0,t+1)),Ae(r.slice(t+1).map(function(n){return n+e})))}(this.offsets,t,e))}}]),i}(),AA=v(function i(r){p(this,i),this.offset=r}),vU=v(function i(r,t){p(this,i),this.skip=r,this.take=t}),afe=v(function i(){p(this,i)}),Cyt=function(){function i(r){p(this,i),this.scrollObservable=r,this.firstLoaded=0}return v(i,[{key:"create",value:function(t,e,n,a){var o=this;this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+n,this.take=n,this.total=a,this.lastScrollTop=0;var s=new xi(new AA(this.rowHeightService.offset(e)));return this.subscription=An.create(function(l){o.unsubscribe(),o.scrollSubscription=o.scrollObservable.subscribe(function(u){return o.onScroll(u,l)})}).subscribe(function(l){return s.next(l)}),s}},{key:"destroy",value:function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}},{key:"onScroll",value:function(t,e){var n=t.scrollTop,a=t.offsetHeight,o=t.scrollHeight,s=t.clientHeight;if(this.lastScrollTop!==n){var l=this.lastScrollTop>=n;this.lastScrollTop=n;var u=this.rowHeightService.index(n),c=this.rowHeightService.offset(u),d=this.rowHeightService.index(n+a);if(!l)if(d>=this.lastLoaded&&this.lastLoaded0&&(c=this.rowHeightService.offset(u-=h)),this.firstLoaded=u,e.next(new AA(c));var f=this.firstLoaded+this.take;this.lastLoaded=Math.min(f,this.total),f=f>this.total?this.total-this.firstLoaded:this.take,e.next(new vU(this.firstLoaded,this.take))}else o-s-n<2&&e.next(new afe);if(l&&u1&&void 0!==arguments[1]?arguments[1]:"td";return function(e){return e.querySelectorAll("".concat(t,":not(.k-group-cell):not(.k-hierarchy-cell)"))[r]}},xA=function(r){return r.offsetWidth},kU=function(){for(var r=arguments.length,t=new Array(r),e=0;e1&&void 0!==arguments[1]?arguments[1]:null;return r=null!=r?r:i,oi(function(t,e){var n=[],a=0;t.subscribe(Wn(e,function(o){var s=null;a++%r==0&&n.push([]);var u,l=In(n);try{for(l.s();!(u=l.n()).done;){var c=u.value;c.push(o),i<=c.length&&(s=null!=s?s:[]).push(c)}}catch(g){l.e(g)}finally{l.f()}if(s){var h,d=In(s);try{for(d.s();!(h=d.n()).done;){var f=h.value;Nh(n,f),e.next(f)}}catch(g){d.e(g)}finally{d.f()}}},function(){var s,o=In(n);try{for(o.s();!(s=o.n()).done;)e.next(s.value)}catch(u){o.e(u)}finally{o.f()}e.complete()},void 0,function(){n=null}))})}(a))})).subscribe(this.resize.bind(this)),this.autoFitSubscription=this.service.registerTable({autoFit:this.autoFitObservable.bind(this),locked:this.locked})}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.autoFitSubscription&&(this.autoFitSubscription(),this.autoFitSubscription=null)}},{key:"initState",value:function(){this.firstResize=!0,(!this.virtualColumns||this.locked)&&(this.originalWidth=xA(this.element.nativeElement))}},{key:"resize",value:function(e){if(!this.virtualColumns||this.locked){var n=e.reduce(function(o,s){return o+s},0);this.renderer.setStyle(this.element.nativeElement,"width",this.originalWidth+n+"px")}this.cdr.detectChanges()}},{key:"autoFitObservable",value:function(e){var n=this;return An.create(function(a){n.zone.runOutsideAngular(function(){n.renderer.addClass(n.element.nativeElement,"k-autofitting"),n.cdr.detectChanges();var o=e.map(n.measureColumn.bind(n));n.renderer.removeClass(n.element.nativeElement,"k-autofitting"),a.next(o)})})}},{key:"measureColumn",value:function(e){var n=this.element.nativeElement,a=kU(function(r){return function(t){return t.querySelectorAll("thead>tr")[r]}}(e.level),yU(e.headerIndex,"th"),xA)(n),o=0;(!e.isParentSpan||e.isParentSpan&&e.isLastInSpan)&&(o=kU(ufe("tbody>tr:not(.k-grouping-row):not(.k-grid-norecords)"),yU(e.index),xA)(n));var s=kU(ufe("tfoot>tr"),yU(e.index),xA)(n);return Math.max(a,o,s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(xb),m(be),m(nt))},i.\u0275dir=X({type:i,selectors:[["table"]],hostVars:2,hostBindings:function(t,e){2&t&&Qe("min-width",e.minWidth)},inputs:{locked:"locked",virtualColumns:"virtualColumns"}}),i}(),bU=function(){var i=function(){function r(t,e,n,a){p(this,r),this.el=t,this.renderer=e,this.resizeService=n,this.ctx=a,this.enabled=!1}return v(r,[{key:"lockedWidth",set:function(e){this._lockedWidth=e,this.enabled&&(this.attachResize(),this.resize())}},{key:"kendoGridResizableContainer",set:function(e){var n=e!==this.enabled;this.enabled=e,n&&(this.attachResize(),this.resize())}},{key:"ngOnDestroy",value:function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}},{key:"attachResize",value:function(){this.resizeSubscription&&!this.enabled&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=null),!this.resizeSubscription&&this.enabled&&(this.resizeSubscription=this.resizeService.changes.subscribe(this.resize.bind(this)))}},{key:"resize",value:function(){if(this.ctx.grid&&this.ctx.grid.wrapper){var n=Math.max(this.ctx.grid.wrapper.nativeElement.clientWidth-this._lockedWidth,0);this.renderer.setStyle(this.el.nativeElement,"width",this.enabled&&n>0?n+"px":"")}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(PV),m(Gm))},i.\u0275dir=X({type:i,selectors:[["","kendoGridResizableContainer",""]],inputs:{lockedWidth:"lockedWidth",kendoGridResizableContainer:"kendoGridResizableContainer"}}),i}(),cfe=function(r,t,e){for(var n=0,a=0;n0}},{key:"ngOnInit",value:function(){var e=this;this.init(),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowSync.bind(this))),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowNavigationLocked.bind(this))),this.subscriptions.add(xn(this.columns.changes,this.resizeService.changes).subscribe(function(){e.virtualColumns&&e.ngZone.run(function(){e.updateViewportColumns(),e.changeDetector.markForCheck()})})),this.subscriptions.add(this.localization.changes.subscribe(function(n){return e.rtl=n.rtl}))}},{key:"ngOnChanges",value:function(e){e.skip&&e.skip.firstChange&&e.skip.currentValue>0&&this.handleInitialScrollToSkip(),yn("skip",e)&&!this.rebind&&(this.skipScroll=!0,this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),Ki(["total","take"],e)&&this.init(),this.rebind=!1}},{key:"ngDoCheck",value:function(){this.virtualColumns&&(!this.viewportColumns||this.viewportWidthChange())&&this.updateViewportColumns()}},{key:"ngAfterViewInit",value:function(){this.skip&&this.isVirtual&&(this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),this.resetNavigationViewport(),this.attachContainerScroll(),this.initResizeService()}},{key:"ngAfterViewChecked",value:function(){var e=this.isLocked;e&&!this.hasLockedContainer&&this.syncRowsHeight(),this.hasLockedContainer=e}},{key:"syncRowsHeight",value:function(){this.lockedContainer&&_he(this.lockedTable.nativeElement,this.table.nativeElement)}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.resizeService&&this.resizeService.destroy(),this.cleanupScroller()}},{key:"init",value:function(){this.suspendService.scroll||(this.rowHeightService=new yyt(this.total,this.rowHeight,this.detailRowHeight),this.totalHeight=this.rowHeightService.totalHeight(),bb()||this.ngZone.runOutsideAngular(this.createScroller.bind(this)))}},{key:"lockedScroll",value:function(){if(!this.suspendService.scroll){var e=this.lockedContainer.nativeElement.scrollTop;e!==this.containerScrollTop&&(this.container.nativeElement.scrollTop=this.containerScrollTop=e)}}},{key:"lockedMousewheel",value:function(e){if(!e.ctrlKey){!function(r,t){var e=vfe(r),n=t.scrollTop;0===n&&00&&e.total>0})).subscribe(function(o){e.scrollTo({row:e.skip}),a.unsubscribe()})}},{key:"handleRowSync",value:function(){var e=this,n=function(){return He(e.lockedContainer)};return xn(this.changeNotification.changes,this.groupsService.changes.pipe(Ue(n),TE(e.ngZone.onStable.asObservable().pipe(It(1)))),this.editService.changed,this.resizeService.changes,this.columnResizingService.changes.pipe(Ue(function(o){return"end"===o.type})),this.supportService.changes).pipe(At(function(){return e.resetNavigationViewport()}),Ue(n)).subscribe(function(){var o=e.container.nativeElement.scrollTop,s=e.container.nativeElement.scrollLeft;e.syncRowsHeight(),e.syncContainerHeight(),e.lockedContainer.nativeElement.scrollTop=e.container.nativeElement.scrollTop=o,e.container.nativeElement.scrollLeft=s,e.resizeSensors.forEach(function(l){return l.acceptSize()})})}},{key:"handleRowNavigationLocked",value:function(){var e=this;return this.navigationService.changes.pipe(Ue(function(){return He(e.lockedContainer)}),Dd(10)).subscribe(function(n){if(e.lockedLeafColumns.length<=n.prevColIndex&&n.colIndex0?32:0)))}else if(0===a&&this.detailTemplate)this.container.nativeElement.scrollLeft=this.normalizeScrollLeft(0);else{var d=dfe(0,this.table.nativeElement.rows);if(d){var h=function(r,t){return cfe(r,t,function(e){return Rv(e,ofe)?0:parseInt(e.getAttribute("colSpan"),10)||1})}(a,d.cells);h&&(this.container.nativeElement.scrollLeft=this.elementScrollLeft(h))}}}},{key:"resetNavigationViewport",value:function(){if(this.container&&this.navigationService.enabled&&this.navigationService.needsViewport()&&0!==this.data.length){var e=this.container.nativeElement,n=e.scrollTop,o=n+e.offsetHeight,s=this.rowHeightService.index(n),l=this.rowHeightService.index(o),u=this.rowHeightService.offset(l);l>0&&u+this.rowHeight>o&&l--;var d=s,h=l;if(He(this.detailTemplate)){d*=2,h*=2,this.rowHeightService.offset(s)+this.rowHeighto)&&h++}this.navigationService.setViewport(d,h)}}},{key:"cleanupScroller",value:function(){this.scrollerSubscription&&this.scrollerSubscription.unsubscribe(),this.scroller&&this.scroller.destroy()}},{key:"initResizeService",value:function(){this.resizeService.connect(xn.apply(void 0,Ae(this.resizeSensors.map(function(e){return e.resize}))))}},{key:"syncContainerHeight",value:function(){var e=this;[SU(this.lockedContainer)].filter(He).map(function(n){n.style.height="";var a=e.container.nativeElement.offsetHeight;return function(r,t){return r.nativeElement.offsetWidth>t.nativeElement.clientWidth}(e.table,e.container)&&(a-=e.supportService.scrollbarWidth),{el:n,height:a}}).forEach(function(r){return function(t){return r.setStyle(t.el,"height","".concat(t.height,"px"))}}(this.renderer))}},{key:"updateViewportColumns",value:function(e){var n=this.columns.nonLockedLeafColumns.toArray(),a=e||this.calculateViewportColumns(),o=a.startIdx,s=a.endIdx,l=a.offset,u=Math.max(0,o-1),c=Math.min(s+1,n.length-1);if(u=u;d--)l-=n[d].width;var h=n.slice(u,c+1);if(this.viewportColumnsWidth=h.reduce(function(g,_){return g+_.width},0),u>0){var f=new Ir;f.width=l,h.unshift(f)}this.viewportColumns=new Ei,this.viewportColumns.reset(h),this.columnsStartIdx=u,this.columnsEndIdx=c,this.columnInfo.columnRangeChange.emit({start:u,end:c,offset:l}),e||this.updateColumnViewport(o,s)}},{key:"handleColumnScroll",value:function(){var e=this,a=this.container.nativeElement.scrollLeft;if(this.scrollLeft!==a){this.scrollLeft=a;var o=this.calculateViewportColumns();this.updateColumnViewport(o.startIdx,o.endIdx),(o.startIdx0?1:0),l=a+n+(this.detailTemplate?1:0),u=0;us&&(u=f,h=d-(g.width||0)),d>=l){c=f;break}}return!c&&f>0&&(c=o.length-1),{startIdx:u,endIdx:c,offset:h}}},{key:"viewportWidthChange",value:function(){return this.viewportColumns.toArray().reduce(function(n,a){return n+a.width},0)!==this.viewportColumnsWidth}},{key:"normalizeScrollLeft",value:function(e){return this.rtl?function tmt(i,r,t){var e=i;return t<0?e=-i:t>0&&(e=r.scrollWidth-r.offsetWidth-i),e}(e,this.container.nativeElement,this.supportService.rtlScrollLeft):e}},{key:"elementScrollLeft",value:function(e){return this.rtl?this.normalizeScrollLeft(this.container.nativeElement.scrollWidth-e.offsetLeft-e.offsetWidth):e.offsetLeft}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ffe),m(Db),m(JT),m(FV),m(Fm),m(be),m(Ee),m(tA),m(PV),m(Pl),m(TV),m(Va),m(HT),m(Y),m(xb),m(nt),m(Ab),m(fs))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-list"]],viewQuery:function(t,e){var n;1&t&&(ge(tgt,7),ge(ngt,5),ge(igt,5),ge(rgt,7),ge(Gr,5)),2&t&&(P(n=B())&&(e.container=n.first),P(n=B())&&(e.lockedContainer=n.first),P(n=B())&&(e.lockedTable=n.first),P(n=B())&&(e.table=n.first),P(n=B())&&(e.resizeSensors=n))},hostVars:3,hostBindings:function(t,e){2&t&&(ie("role",e.hostRole),ue("k-grid-container",e.hostClass))},inputs:{data:"data",groups:"groups",total:"total",rowHeight:"rowHeight",stickyRowHeight:"stickyRowHeight",detailRowHeight:"detailRowHeight",take:"take",skip:"skip",columns:"columns",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",selectable:"selectable",groupable:"groupable",filterable:"filterable",rowClass:"rowClass",rowSticky:"rowSticky",loading:"loading",trackBy:"trackBy",virtualColumns:"virtualColumns",isVirtual:"isVirtual",cellLoadingTemplate:"cellLoadingTemplate",loadingTemplate:"loadingTemplate"},outputs:{contentScroll:"contentScroll",pageChange:"pageChange",scrollBottom:"scrollBottom"},features:[de([{provide:ffe,useValue:Myt}]),Ie],decls:13,vars:35,consts:[["class","k-grid-content-locked","role","presentation","tabindex","-1",3,"width","kendoEventsOutsideAngular","scope",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content","k-virtual-content",3,"kendoGridResizableContainer","lockedWidth"],["container",""],["role","presentation",1,"k-grid-table-wrap"],["role","presentation",1,"k-grid-table",3,"virtualColumns"],["table",""],["kendoGridColGroup","","role","presentation",3,"groups","columns","detailTemplate"],["kendoGridTableBody","","role","presentation",3,"skipGroupDecoration","data","groups","showGroupFooters","columns","allColumns","detailTemplate","noRecordsTemplate","lockedColumnsCount","totalColumnsCount","skip","selectable","trackBy","filterable","rowClass","rowSticky","virtualColumns","isLoading","isVirtual","cellLoadingTemplate"],[4,"ngIf"],["role","presentation",1,"k-height-container"],["class","k-width-container","role","presentation",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content-locked",3,"kendoEventsOutsideAngular","scope"],["lockedContainer",""],["role","presentation",1,"k-grid-table",3,"locked"],["lockedTable",""],["kendoGridTableBody","","role","presentation",3,"groups","isLocked","data","noRecordsText","columns","totalColumnsCount","detailTemplate","showGroupFooters","skip","selectable","trackBy","filterable","rowClass","isLoading","isVirtual","cellLoadingTemplate"],["role","presentation",1,"k-width-container"]],template:function(t,e){1&t&&(T(0,ogt,10,33,"div",0),A(1,"div",1,2)(3,"div",3)(4,"table",4,5),z(6,"colgroup",6)(7,"tbody",7),x(),T(8,sgt,1,0,"kendo-resize-sensor",8),x(),T(9,lgt,1,0,"kendo-resize-sensor",8),A(10,"div",9),z(11,"div"),x(),T(12,ugt,2,2,"div",10),x()),2&t&&(y("ngIf",e.isLocked),k(1),y("kendoGridResizableContainer",e.lockedLeafColumns.length>0)("lockedWidth",e.lockedWidth+1),k(3),Qe("width",e.nonLockedWidth,"px"),y("virtualColumns",e.virtualColumns),k(2),y("groups",e.isLocked?Tt(34,kb):e.groups)("columns",e.nonLockedColumnsToRender)("detailTemplate",e.detailTemplate),k(1),y("skipGroupDecoration",e.isLocked)("data",e.data)("groups",e.groups)("showGroupFooters",e.showFooter)("columns",e.nonLockedColumnsToRender)("allColumns",e.nonLockedLeafColumns)("detailTemplate",e.detailTemplate)("noRecordsTemplate",e.noRecordsTemplate)("lockedColumnsCount",e.lockedLeafColumns.length)("totalColumnsCount",e.leafColumns.length)("skip",e.skip)("selectable",e.selectable)("trackBy",e.trackBy)("filterable",e.filterable)("rowClass",e.rowClass)("rowSticky",e.rowSticky)("virtualColumns",e.virtualColumns)("isLoading",e.loading)("isVirtual",e.isVirtual)("cellLoadingTemplate",e.cellLoadingTemplate),k(1),y("ngIf",e.isLocked),k(1),y("ngIf",e.isLocked||e.virtualColumns),k(2),Qe("height",e.totalHeight,"px"),k(1),y("ngIf",e.virtualColumns))},directives:[eU,_U,Gr,qe,qi,CU,bU],encapsulation:2}),i}(),mfe=function(){var i=function(){function r(t){p(this,r),this.columnInfoService=t,this.columns=[],this.groups=[],this.lockedColumnsCount=0,this.logicalRowIndex=0}return v(r,[{key:"footerClass",get:function(){return!this.scrollable}},{key:"columnsToRender",get:function(){return nd(this.columns||[])}},{key:"logicalColumnIndex",value:function(e){var n=e.leafIndex;return He(n)?n+(He(this.detailTemplate)?1:0):-1}},{key:"addStickyStyles",value:function(e){var n=this.columnInfoService.stickyColumnsStyles(e);return Object.assign(Object.assign({},e.style),n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(fs))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFooter",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-footer",e.footerClass)},inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",lockedColumnsCount:"lockedColumnsCount",logicalRowIndex:"logicalRowIndex"},attrs:cgt,decls:5,vars:9,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["kendoGridLogicalCell","","role","columnfooter","aria-selected","false",3,"logicalRowIndex","logicalColIndex","k-grid-footer-sticky","ngClass","ngStyle",4,"ngFor","ngForOf"],["role","presentation"],["kendoGridLogicalCell","","role","columnfooter","aria-selected","false",3,"logicalRowIndex","logicalColIndex","ngClass","ngStyle"],[3,"templateContext"]],template:function(t,e){1&t&&(Ge(0),A(1,"tr",0),T(2,dgt,1,2,"td",1),T(3,hgt,1,2,"td",2),T(4,vgt,2,12,"td",3),x(),Ve()),2&t&&(k(1),ue("k-footer-template",!0),y("logicalRowIndex",e.logicalRowIndex)("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.columns.length-e.lockedColumnsCount),k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsToRender))},directives:[EA,gn,qe,Xm,Nt,Vi,Lb],encapsulation:2}),i}(),_fe=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.hostClass=!0}return v(r,[{key:"loadingText",get:function(){return this.localization.get("loading")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridLoading",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-loading-mask",e.hostClass)},inputs:{loadingTemplate:"loadingTemplate"},attrs:pgt,decls:2,vars:2,consts:[[4,"ngIf"],[1,"k-loading-text"],[1,"k-loading-image"],[1,"k-loading-color"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(T(0,ggt,5,1,"ng-container",0),T(1,_gt,1,1,null,0)),2&t&&(y("ngIf",!e.loadingTemplate),k(1),y("ngIf",e.loadingTemplate))},directives:[qe,En],encapsulation:2}),i}(),MA=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-grid-messages-base"]],inputs:{groupPanelEmpty:"groupPanelEmpty",noRecords:"noRecords",pagerLabel:"pagerLabel",pagerFirstPage:"pagerFirstPage",pagerLastPage:"pagerLastPage",pagerPreviousPage:"pagerPreviousPage",pagerNextPage:"pagerNextPage",pagerPage:"pagerPage",pagerItemsPerPage:"pagerItemsPerPage",pagerOf:"pagerOf",pagerItems:"pagerItems",pagerPageNumberInputTitle:"pagerPageNumberInputTitle",filter:"filter",filterInputLabel:"filterInputLabel",filterMenuTitle:"filterMenuTitle",filterMenuOperatorsDropDownLabel:"filterMenuOperatorsDropDownLabel",filterMenuLogicDropDownLabel:"filterMenuLogicDropDownLabel",filterEqOperator:"filterEqOperator",filterNotEqOperator:"filterNotEqOperator",filterIsNullOperator:"filterIsNullOperator",filterIsNotNullOperator:"filterIsNotNullOperator",filterIsEmptyOperator:"filterIsEmptyOperator",filterIsNotEmptyOperator:"filterIsNotEmptyOperator",filterStartsWithOperator:"filterStartsWithOperator",filterContainsOperator:"filterContainsOperator",filterNotContainsOperator:"filterNotContainsOperator",filterEndsWithOperator:"filterEndsWithOperator",filterGteOperator:"filterGteOperator",filterGtOperator:"filterGtOperator",filterLteOperator:"filterLteOperator",filterLtOperator:"filterLtOperator",filterIsTrue:"filterIsTrue",filterIsFalse:"filterIsFalse",filterBooleanAll:"filterBooleanAll",filterAfterOrEqualOperator:"filterAfterOrEqualOperator",filterAfterOperator:"filterAfterOperator",filterBeforeOperator:"filterBeforeOperator",filterBeforeOrEqualOperator:"filterBeforeOrEqualOperator",filterFilterButton:"filterFilterButton",filterClearButton:"filterClearButton",filterAndLogic:"filterAndLogic",filterOrLogic:"filterOrLogic",loading:"loading",gridLabel:"gridLabel",columnMenu:"columnMenu",setColumnPosition:"setColumnPosition",columns:"columns",lock:"lock",unlock:"unlock",stick:"stick",unstick:"unstick",sortable:"sortable",sortAscending:"sortAscending",sortDescending:"sortDescending",sortedAscending:"sortedAscending",sortedDescending:"sortedDescending",sortedDefault:"sortedDefault",columnsApply:"columnsApply",columnsReset:"columnsReset",detailExpand:"detailExpand",detailCollapse:"detailCollapse",filterDateToday:"filterDateToday",filterDateToggle:"filterDateToggle",filterNumericDecrement:"filterNumericDecrement",filterNumericIncrement:"filterNumericIncrement",selectionCheckboxLabel:"selectionCheckboxLabel",selectAllCheckboxLabel:"selectAllCheckboxLabel",groupCollapse:"groupCollapse",groupExpand:"groupExpand"},features:[j]}),i}(),yfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(MA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLocalizedMessages",""]],features:[de([{provide:MA,useExisting:ye(function(){return i})}]),j]}),i}(),kfe=function(r,t){return Ga(r,Hu("k-grid-edit-cell"))&&Ga(r,Ta("kendo-grid"))===t},Gl=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h,f,g,_,C,w,E,M,R,N,V,U,ee,ve,G,I){var K=this;p(this,r),this.supportService=t,this.selectionService=e,this.cellSelectionService=n,this.wrapper=a,this.groupInfoService=o,this.groupsService=s,this.changeNotification=l,this.detailsService=u,this.editService=c,this.filterService=d,this.pdfService=h,this.responsiveService=f,this.renderer=g,this.excelService=_,this.ngZone=C,this.scrollSyncService=w,this.domEvents=E,this.columnResizingService=M,this.changeDetectorRef=R,this.columnReorderService=N,this.columnInfoService=V,this.navigationService=U,this.sortService=ee,this.scrollRequestService=ve,this.localization=G,this.ctx=I,this.data=[],this.scrollable="scrollable",this.selectable=!1,this.trackBy=VV,this.virtualColumns=!1,this.filterable=!1,this.sortable=!1,this.pageable=!1,this.groupable=!1,this.navigable=!1,this.autoSize=!1,this.resizable=!1,this.reorderable=!1,this.loading=!1,this.columnMenu=!1,this.hideHeader=!1,this.filterChange=new O,this.pageChange=new O,this.groupChange=new pV(this.ngZone),this.sortChange=new O,this.selectionChange=new O,this.dataStateChange=new O,this.groupExpand=new O,this.groupCollapse=new O,this.detailExpand=new O,this.detailCollapse=new O,this.edit=new O,this.cancel=new O,this.save=new O,this.remove=new O,this.add=new O,this.cellClose=new O,this.cellClick=new pV(this.ngZone),this.pdfExport=new O,this.excelExport=new O,this.columnResize=new pV(this.ngZone),this.columnReorder=new O,this.columnVisibilityChange=new O,this.columnLockedChange=new O,this.columnStickyChange=new O,this.scrollBottom=new O,this.contentScroll=new O,this.columns=new Ei,this.footer=new Ei,this.selectionDirective=!1,this.columnsContainer=new xV(function(){return K.columnList.filterHierarchy(function(H){return H.matchesMedia=K.matchesMedia(H),H.isVisible})}),this.view=new Kmt(function(){return new Hmt(K.data,K.skip,K.hasGroupFooters)}),this.shouldGenerateColumns=!0,this._sort=new Array,this._group=new Array,this._skip=0,this.cachedWindowWidth=0,this._rowSelected=null,this._cellSelected=null,this.rtl=!1,this._rowClass=function(){return null},jt(Emt),this.ctx.grid=this,this.localizationSubscription=this.localization.changes.subscribe(function(H){K.rtl=H.rtl,K.direction=K.rtl?"rtl":"ltr"}),this.groupInfoService.registerColumnsContainer(function(){return K.columnList}),this.columnInfoService.init(this.columnsContainer,function(){return K.columnList}),this.columnVisibilityChangeSubscription=this.columnInfoService.visibilityChange.subscribe(function(H){K.columnVisibilityChange.emit(new d_t(H))}),this.columnLockedChangeSubscription=this.columnInfoService.lockedChange.subscribe(function(H){K.columnLockedChange.emit(new Ahe(H))}),this.columnStickyChangeSubscription=this.columnInfoService.stickyChange.subscribe(function(H){K.columnStickyChange.emit(new f_t(H))}),this.groupExpandCollapseSubscription=function(r,t,e,n){return r.changes.pipe(Ue(function(a){return He(a.group)})).subscribe(function(a){return a.expand?t.emit(n(a)):e.emit(n(a))})}(s,this.groupExpand,this.groupCollapse,function(H){return{group:H.group,groupIndex:H.groupIndex,parentGroup:H.parentGroup}}),this.detailsServiceSubscription=function(r,t,e,n){return r.changes.pipe(Ue(function(a){return He(a.dataItem)})).subscribe(function(a){return a.expand?t.emit(a):e.emit(a)})}(u,this.detailExpand,this.detailCollapse),this.filterSubscription=this.filterService.changes.subscribe(function(H){K.filterChange.emit(H)}),this.sortSubscription=this.sortService.changes.subscribe(function(H){K.sortChange.emit(H)}),this.attachStateChangesEmitter(),this.attachEditHandlers(),this.attachDomEventHandlers(),this.pdfSubscription=this.pdfService.exportClick.subscribe(this.emitPDFExportEvent.bind(this)),this.excelSubscription=this.excelService.exportClick.subscribe(this.saveAsExcel.bind(this)),this.columnsContainerChange(),this.handleColumnResize(),this.columnList=new OV(this.columns),this.columnReorderSubscription=this.columnReorderService.changes.subscribe(this.reorder.bind(this)),this.columnRangeChangeSubscription=this.columnInfoService.columnRangeChange.subscribe(this.onColumnRangeChange.bind(this))}return v(r,[{key:"skip",get:function(){return this._skip},set:function(e){"number"==typeof e&&e>=0&&(this._skip=e)}},{key:"sort",get:function(){return this._sort},set:function(e){aV(e)&&(this._sort=e)}},{key:"group",get:function(){return this._group},set:function(e){aV(e)&&(this._group=e)}},{key:"showTopToolbar",get:function(){return this.toolbarTemplate&&["top","both"].indexOf(this.toolbarTemplate.position)>-1}},{key:"showBottomToolbar",get:function(){return this.toolbarTemplate&&["bottom","both"].indexOf(this.toolbarTemplate.position)>-1}},{key:"isLocked",get:function(){return this.lockedLeafColumns.length>0}},{key:"showTopPager",get:function(){return!this.isVirtual&&!1!==this.pageable&&["top","both"].indexOf(this.pageable.position)>-1}},{key:"showBottomPager",get:function(){return!this.isVirtual&&!1!==this.pageable&&"top"!==this.pageable.position}},{key:"hasPager",get:function(){return this.showTopPager||this.showBottomPager}},{key:"showGroupPanel",get:function(){return this.groupable&&!1!==this.groupable.enabled}},{key:"groupableEmptyText",get:function(){return this.groupable.emptyText}},{key:"marqueeSelection",get:function(){return this.selectionService.enableMarquee||this.cellSelectionService.enableMarquee}},{key:"navigatable",get:function(){return this.navigable},set:function(e){this.navigable=e}},{key:"rowClass",get:function(){return this._rowClass},set:function(e){if(xt&&"function"!=typeof e)throw new Error("rowClass must be a function, but received ".concat(JSON.stringify(e),"."));this._rowClass=e}},{key:"rowSticky",get:function(){return this._rowSticky},set:function(e){if(xt&&He(e)&&"function"!=typeof e)throw new Error("rowSticky must be a function, but received ".concat(JSON.stringify(e),"."));He(e)&&(this._rowSticky=e)}},{key:"rowSelected",get:function(){return this._rowSelected},set:function(e){if(xt&&"function"!=typeof e)throw new Error("rowSelected must be a function, but received ".concat(JSON.stringify(e),"."));this._rowSelected=e}},{key:"cellSelected",get:function(){return this._cellSelected},set:function(e){if(xt&&"function"!=typeof e)throw new Error("cellSelected must be a function, but received ".concat(JSON.stringify(e),"."));this._cellSelected=e}},{key:"activeCell",get:function(){return this.navigationService.activeCell}},{key:"activeRow",get:function(){return this.navigationService.activeRow}},{key:"dir",get:function(){return this.direction}},{key:"hostClasses",get:function(){return!0}},{key:"lockedClasses",get:function(){return this.lockedLeafColumns.length>0}},{key:"virtualClasses",get:function(){return this.isVirtual}},{key:"noScrollbarClass",get:function(){return 0===this.scrollbarWidth}},{key:"detailTemplate",get:function(){return this._customDetailTemplate?this._customDetailTemplate:this.detailTemplateChildren?this.detailTemplateChildren.first:void 0},set:function(e){this._customDetailTemplate=e}},{key:"cellLoadingTemplate",get:function(){return this._cellLoadingTemplate?this._customDetailTemplate:this.cellLoadingTemplateChildren?this.cellLoadingTemplateChildren.first:void 0},set:function(e){this._cellLoadingTemplate=e}},{key:"loadingTemplate",get:function(){return this._loadingTemplate?this._loadingTemplate:this.loadingTemplateChildren?this.loadingTemplateChildren.first:void 0},set:function(e){this._loadingTemplate=e}},{key:"noRecordsTemplate",get:function(){return this._customNoRecordsTemplate?this._customNoRecordsTemplate:this.noRecordsTemplateChildren?this.noRecordsTemplateChildren.first:void 0},set:function(e){this._customNoRecordsTemplate=e}},{key:"pagerTemplate",get:function(){return this._customPagerTemplate?this._customPagerTemplate:this.pagerTemplateChildren?this.pagerTemplateChildren.first:void 0},set:function(e){this._customPagerTemplate=e}},{key:"toolbarTemplate",get:function(){return this._customToolbarTemplate?this._customToolbarTemplate:this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0},set:function(e){this._customToolbarTemplate=e}},{key:"scrollbarWidth",get:function(){return this.supportService.scrollbarWidth}},{key:"headerPadding",get:function(){if(bb())return"";var e=Math.max(0,this.scrollbarWidth)+"px",a=this.rtl?e:0;return"0 ".concat(this.rtl?0:e," 0 ").concat(a)}},{key:"hasGroupFooters",get:function(){return this.columnsContainer.hasGroupFooter}},{key:"showFooter",get:function(){return this.columnsContainer.hasFooter}},{key:"showGroupFooters",get:function(){return this.groupable&&this.groupable.showFooter}},{key:"ariaRowCount",get:function(){return this.totalColumnLevels+1+this.view.total}},{key:"ariaColCount",get:function(){return this.columnsContainer.leafColumnsToRender.length}},{key:"isVirtual",get:function(){return"virtual"===this.scrollable}},{key:"isScrollable",get:function(){return"none"!==this.scrollable}},{key:"visibleColumns",get:function(){return this.columnsContainer.allColumns}},{key:"lockedColumns",get:function(){return this.columnsContainer.lockedColumns}},{key:"nonLockedColumns",get:function(){return this.columnsContainer.nonLockedColumns}},{key:"lockedLeafColumns",get:function(){return this.columnsContainer.lockedLeafColumns}},{key:"stickyColumns",get:function(){return this.columns.filter(function(e){return e.sticky})}},{key:"nonLockedLeafColumns",get:function(){return this.columnsContainer.nonLockedLeafColumns}},{key:"leafColumns",get:function(){return this.columnsContainer.leafColumns}},{key:"totalColumnLevels",get:function(){return this.columnsContainer.totalLevels}},{key:"headerColumns",get:function(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedColumns}},{key:"headerLeafColumns",get:function(){return this.virtualColumns&&!this.pdfService.exporting?this.leafViewportColumns:this.nonLockedLeafColumns}},{key:"lockedWidth",get:function(){var e=32*this.group.length;return Wu(this.lockedLeafColumns.toArray()).reduce(function(n,a){return n+(a.width||0)},e)}},{key:"nonLockedWidth",get:function(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return this.virtualColumns?this.leafViewportColumns.reduce(function(e,n){return e+(n.width||0)},0):this.columnsContainer.unlockedWidth}},{key:"selectableSettings",get:function(){if(this.selectionService)return this.selectionService.options}},{key:"columnMenuTemplate",get:function(){var e=this.columnMenuTemplates.first;return e?e.templateRef:null}},{key:"totalCount",get:function(){return this.isVirtual||!He(this.pageSize)?this.view.total:this.pageSize}},{key:"expandRow",value:function(e){this.toggleDetailRowLegacy(e,!0)}},{key:"collapseRow",value:function(e){this.toggleDetailRowLegacy(e,!1)}},{key:"expandGroup",value:function(e){this.toggleGroupRowLegacy(e,!0)}},{key:"collapseGroup",value:function(e){this.toggleGroupRowLegacy(e,!1)}},{key:"resetGroupsState",value:function(){this.groupsService.reset()}},{key:"expandGroupChildren",value:function(e){this.groupsService.expandChildren(e)}},{key:"onDataChange",value:function(){this.autoGenerateColumns(),this.changeNotification.notify(),this.pdfService.dataChanged.emit(),He(this.defaultSelection)&&this.defaultSelection.reset(),this.initSelectionService(),this.updateNavigationMetadata()}},{key:"ngOnChanges",value:function(e){var n=this;yn("data",e)&&this.onDataChange(),this.lockedLeafColumns.length&&Ki(["pageSize","skip","sort","group"],e)&&this.changeNotification.notify(),Ki(["pageSize","scrollable","virtualColumns"],e)&&this.updateNavigationMetadata(),yn("virtualColumns",e)&&(this.viewportColumns=this.leafViewportColumns=null),yn("height",e,!1)&&this.renderer.setStyle(this.wrapper.nativeElement,"height","".concat(this.height,"px")),yn("filterable",e)&&this.lockedColumns.length&&this.syncHeaderHeight(this.ngZone.onStable.asObservable().pipe(It(1))),Ki(["columnMenu","sortable","filterable"],e,!1)&&(this.columnMenuOptions=this.columnMenu&&Object.assign({filter:Boolean(this.filterable),sort:Boolean(this.sortable)},this.columnMenu)),yn("scrollable",e)&&this.isScrollable&&this.ngZone.onStable.pipe(It(1)).subscribe(function(){return n.attachScrollSync()}),yn("selectable",e)&&this.shouldResetSelection(e.selectable)&&(this.defaultSelection?this.defaultSelection.reset():this.selectionDirective&&this.selectionDirective.reset()),yn("groupable",e,!0)&&(this.groupable=e.groupable.currentValue)}},{key:"ngAfterViewInit",value:function(){this.attachScrollSync(),this.attachElementEventHandlers(),this.updateNavigationMetadata(),this.applyAutoSize()}},{key:"ngAfterContentChecked",value:function(){this.columnsContainer.refresh(),this.verifySettings(),this.initSelectionService()}},{key:"ngAfterContentInit",value:function(){var e=this;this.shouldGenerateColumns=!this.columns.length,this.autoGenerateColumns(),this.columnList=new OV(this.columns),this.columnsChangeSubscription=this.columns.changes.subscribe(function(){return e.verifySettings()})}},{key:"ngOnInit",value:function(){this.navigable&&this.navigationService.init(this.navigationMetadata())}},{key:"ngOnDestroy",value:function(){this.selectionSubscription&&this.selectionSubscription.unsubscribe(),this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.groupExpandCollapseSubscription&&this.groupExpandCollapseSubscription.unsubscribe(),this.detailsServiceSubscription&&this.detailsServiceSubscription.unsubscribe(),this.editServiceSubscription&&this.editServiceSubscription.unsubscribe(),this.pdfSubscription&&this.pdfSubscription.unsubscribe(),this.filterSubscription&&this.filterSubscription.unsubscribe(),this.sortSubscription&&this.sortSubscription.unsubscribe(),this.columnsChangeSubscription&&this.columnsChangeSubscription.unsubscribe(),this.excelSubscription&&this.excelSubscription.unsubscribe(),this.columnsContainerChangeSubscription&&this.columnsContainerChangeSubscription.unsubscribe(),this.scrollSyncService&&this.scrollSyncService.destroy(),this.detachElementEventHandlers&&this.detachElementEventHandlers(),this.defaultSelection&&this.defaultSelection.destroy(),this.cellClickSubscription&&this.cellClickSubscription.unsubscribe(),this.footerChangeSubscription&&this.footerChangeSubscription.unsubscribe(),this.ngZone=null,this.columnResizingSubscription&&this.columnResizingSubscription.unsubscribe(),this.columnReorderSubscription&&this.columnReorderSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe(),this.columnVisibilityChangeSubscription&&this.columnVisibilityChangeSubscription.unsubscribe(),this.columnLockedChangeSubscription&&this.columnLockedChangeSubscription.unsubscribe(),this.columnStickyChangeSubscription&&this.columnStickyChangeSubscription.unsubscribe(),this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.columnRangeChangeSubscription.unsubscribe()}},{key:"attachScrollSync",value:function(){var e=this;bb()||(this.header&&this.scrollSyncService.registerEmitter(this.header.nativeElement,"header"),this.footer&&(this.footerChangeSubscription=VT(this.footer).subscribe(function(n){return n.map(function(a){return a.nativeElement}).filter(He).forEach(function(a){return e.scrollSyncService.registerEmitter(a,"footer")})})))}},{key:"ariaLabel",get:function(){return this.localization.get("gridLabel")}},{key:"editRow",value:function(e,n,a){if(this.editService.editRow(e,n),!He(a)||!a.skipFocus){var o='tr[data-kendo-grid-item-index="'.concat(e,'"]'),s=a&&a.columnIndex,l=isNaN(s)?o:"".concat(o,' td[data-kendo-grid-column-index="').concat(s,'"]');this.focusEditElement(l)}}},{key:"closeRow",value:function(e){this.editService.close(e)}},{key:"addRow",value:function(e){if(!(e instanceof sC)){var a=Object.keys(e).reduce(function(r){return function(t,e){return t[e]=new JL(r[e]),t}}(e),{});e=new sC(a)}this.editService.addRow(e),this.focusEditElement(".k-grid-add-row")}},{key:"editCell",value:function(e,n,a){var o=this.columnInstance(n);this.editService.editCell(e,o,a),this.focusEditElement(".k-grid-edit-cell")}},{key:"closeCell",value:function(){return!this.editService.closeCell()}},{key:"cancelCell",value:function(){this.editService.cancelCell()}},{key:"isEditing",value:function(){return this.editService.isEditing()}},{key:"isEditingCell",value:function(){return this.editService.isEditingCell()}},{key:"saveAsPDF",value:function(){this.pdfService.save(this)}},{key:"drawPDF",value:function(){var e=function(){var r,t,e=new Promise(function(n,a){r=function(s){return n(s),e},t=function(s){return a(s),e}});return e.resolve=r,e.reject=t,e}();return this.pdfService.draw(this,e),e}},{key:"saveAsExcel",value:function(){this.excelService.save(this)}},{key:"autoFitColumn",value:function(e){this.columnResizingService.autoFit(e)}},{key:"autoFitColumns",value:function(){var e,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.columns;a=n instanceof Ei?n.toArray():n,(e=this.columnResizingService).autoFit.apply(e,Ae(a))}},{key:"notifyPageChange",value:function(e,n){"list"===e&&!this.isVirtual||this.pageChange.emit(n)}},{key:"notifyScrollBottom",value:function(){var e=this;"none"!==this.scrollable&&ut(this.scrollBottom)&&this.ngZone.run(function(){return e.scrollBottom.emit({sender:e})})}},{key:"focusEditElement",value:function(e){var n=this;this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.ngZone.runOutsideAngular(function(){n.focusElementSubscription=n.ngZone.onStable.asObservable().pipe(It(1)).subscribe(function(){var a=n.wrapper.nativeElement;!n.setEditFocus(a.querySelector(e))&&n.isLocked&&n.setEditFocus(a.querySelector(".k-grid-content ".concat(e))),n.focusElementSubscription=null})})}},{key:"focus",value:function(){return this.assertNavigable(),this.navigationService.focusCell()}},{key:"focusCell",value:function(e,n){return this.assertNavigable(),this.navigationService.focusCell(e,n)}},{key:"focusNextCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertNavigable(),this.navigationService.focusNextCell(e)}},{key:"focusPrevCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertNavigable(),this.navigationService.focusPrevCell(e)}},{key:"scrollTo",value:function(e){this.scrollRequestService.scrollTo(e)}},{key:"reorderColumn",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{before:!1},o=Fv(this.allColumnsForLevel(e.level)),s=o[n];if(s){var l=s.isLocked&&!e.isLocked&&1===this.columnsContainer.nonLockedColumns.length;l||($T(s)&&!a.before&&(s=s.childColumns.last),this.reorder({before:a.before,source:e,target:s}))}}},{key:"isDetailExpanded",get:function(){return this.detailsService.userCallback},set:function(e){this.detailsService.userCallback=e}},{key:"isGroupExpanded",get:function(){return this.groupsService.userCallback},set:function(e){this.groupsService.userCallback=e,this.groupable=He(e)}},{key:"reorder",value:function(e){var n=this,a=e.target,o=e.source,s=e.before,l=e.changeContainer;this.ngZone.run(function(){var u=Fv(n.allColumnsForLevel(o.level)),c=u.indexOf(a);a.parent&&a.parent.isSpanColumn&&(c=u.indexOf(a.parent),s&&(a=a.parent));var d=u.indexOf(o);l&&(s&&0c&&c++);var h=new l_t({column:o,oldIndex:d,newIndex:c});n.columnReorder.emit(h),!h.isDefaultPrevented()&&(l&&n.columnLockedChange.emit(new Ahe([o])),n.updateColumnIndices({columnsForLevel:u,source:o,target:a,before:s}),o.locked!==a.locked&&(o.locked=a.locked),n.columnsContainer.refresh(),n.changeDetectorRef.markForCheck())})}},{key:"updateColumnIndices",value:function(e){var a=e.source,o=e.target,s=e.before,l=lhe(e.columnsForLevel),u=l.indexOf(a),c=0,d=0,h=1;a.isSpanColumn&&(h+=a.childColumns.length);for(var f=0;f0}),Nn(function(){return e.ngZone.onStable.asObservable().pipe(It(1))})))}},{key:"handleColumnResize",value:function(){var e=this,n=this.columnResizingService.changes;this.columnResizingSubscription=n.pipe(At(function(a){"start"===a.type?e.renderer.addClass(e.wrapper.nativeElement,"k-grid-column-resizing"):"end"===a.type&&e.renderer.removeClass(e.wrapper.nativeElement,"k-grid-column-resizing")}),Ue(function(a){return"start"===a.type}),Nn(function(){return n.pipe(Qr(n.pipe(Ue(function(a){return"triggerAutoFit"===a.type}))),Ue(function(a){return"end"===a.type}))})).subscribe(this.notifyResize.bind(this))}},{key:"notifyResize",value:function(e){var n=e.resizedColumns.filter(function(a){return hs(a.column.resizable)&&!a.column.isColumnGroup}).map(function(a){return{column:a.column,newWidth:a.column.width,oldWidth:a.oldWidth}});this.columnResize.emit(n)}},{key:"assertNavigable",value:function(){if(xt()&&!this.navigable)throw new Error('The Grid should be configured as [navigable]="true" to control focus')}},{key:"navigationMetadata",value:function(){var e=this.isVirtual,a=e?this.view.total:this.pageSize,o=this.editService.hasNewItem?1:0,s=nA(this.filterable)?1:0;return new u_t(a,this.totalColumnLevels+1+s+o,e,this.hasPager,He(this.detailTemplate),this.wrapper,this.virtualColumns,this.columnsContainer)}},{key:"updateNavigationMetadata",value:function(){this.navigationService.metadata=this.navigationMetadata()}},{key:"applyAutoSize",value:function(){var e=this,n=this.columns.filter(function(a){return e.autoSize?!1!==a.autoSize:a.autoSize});n.length>0&&this.ngZone.onStable.pipe(It(1)).subscribe(function(a){return e.autoFitColumns(n)})}},{key:"onColumnRangeChange",value:function(e){for(var n=this.viewportColumns=[],a=this.columnsContainer.nonLockedLeafColumns.toArray().slice(e.start,e.end+1),o=0;o0){for(var c=a[0],d=e.offset,h=n[0],f=0;h!==c;)d-=h.isColumnGroup?0:h.width,h=n[++f];if(d>0)for(var _,g=this.columnsContainer.totalLevels,C=0;C<=g;C++){var w=C0){var e=i.data[t];i5(i,r,Array.isArray(e)?e:e.update,sc()-ey-1,J_)}J_=0,ey=0}(Bn(),Oe(),i+20)}(1),k(2),y("ngIf",e.showTopToolbar),k(1),y("ngIf",e.showTopPager),k(1),y("ngIf",e.showGroupPanel),k(1),ie("aria-label",e.ariaLabel)("aria-rowcount",e.ariaRowCount)("aria-colcount",e.ariaColCount),k(2),y("ngIf",e.isScrollable),k(1),y("ngIf",!e.isScrollable),k(1),y("ngIf",e.loading),k(1),y("ngIf",e.showBottomPager),k(1),y("ngIf",e.showBottomToolbar))},directives:[HV,QV,Ihe,eU,rfe,gfe,mfe,_U,_fe,yfe,qe,CU,bU,$o,ahe],styles:[" .k-grid .k-grid-aria-root {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n overflow: hidden;\n }\n\n .k-grid .k-filter-row td {\n white-space: nowrap;\n }"],encapsulation:2}),i}(),wU=function(){var i=function(){function r(t,e,n){p(this,r),this.grid=t,this.changeDetector=e,this.localDataChangesService=n,this.state={skip:0},this.originalData=[],n&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(this.rebind.bind(this)))}return v(r,[{key:"skip",set:function(e){He(e)||(e=0),this.grid.skip=this.state.skip=e}},{key:"sort",set:function(e){this.grid.sort=this.state.sort=e}},{key:"filter",set:function(e){this.grid.filter=this.state.filter=e}},{key:"pageSize",set:function(e){this.grid.pageSize=this.state.take=e}},{key:"group",set:function(e){this.grid.group=this.state.group=e}},{key:"data",set:function(e){this.originalData=e||[],this.localDataChangesService&&(this.localDataChangesService.data=e),this.dataChanged=!0}},{key:"ngOnInit",value:function(){this.applyState(this.state),this.stateChangeSubscription=this.grid.dataStateChange.subscribe(this.onStateChange.bind(this))}},{key:"ngOnDestroy",value:function(){this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){Ki(["pageSize","skip","sort","group","filter"],e)&&this.rebind()}},{key:"ngDoCheck",value:function(){this.dataChanged&&this.updateGridData()}},{key:"onStateChange",value:function(e){this.applyState(e),this.rebind()}},{key:"rebind",value:function(){this.data=this.originalData,this.updateGridData(),this.notifyDataChange()}},{key:"notifyDataChange",value:function(){this.grid.onDataChange(),this.changeDetector&&this.changeDetector.markForCheck()}},{key:"process",value:function(e){return Gte(this.originalData,e)}},{key:"applyState",value:function(e){var a=e.take,o=e.sort,s=e.group,l=e.filter;this.skip=e.skip,this.pageSize=a,this.sort=o,this.group=s,this.filter=l}},{key:"updateGridData",value:function(){this.grid.data=this.process(this.state),this.dataChanged=!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(nt),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridBinding",""]],inputs:{skip:"skip",sort:"sort",filter:"filter",pageSize:"pageSize",group:"group",data:["kendoGridBinding","data"]},features:[Ie]}),i}(),Cfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).ctx=n,o}return v(e,[{key:"ngOnInit",value:function(){!1===this.ctx.grid.selectable&&(this.ctx.grid.selectable=!0),this.ctx.grid.selectionDirective=this}},{key:"ngOnDestroy",value:function(){$(q(e.prototype),"destroy",this).call(this)}}]),e}(ghe);return i.\u0275fac=function(t){return new(t||i)(m(Gm),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectBy",""]],features:[j]}),i}(),bfe=function(){var i=function(){function r(t){p(this,r),this.grid=t,this.expandedDetailKeysChange=new O,this.expandedDetailKeys=[],this.initiallyExpanded=!1,this.expandedState=new Set,this.subscriptions=new Je,this.grid.isDetailExpanded=this.isExpanded.bind(this),this.subscriptions.add(xn(this.grid.detailExpand.pipe(We(function(e){return Object.assign({expand:!0},e)})),this.grid.detailCollapse.pipe(We(function(e){return Object.assign({expand:!1},e)}))).subscribe(this.toggleState.bind(this)))}return v(r,[{key:"expandDetailsKey",get:function(){return this._expandBy},set:function(e){this._expandBy=oV(e)?yr(e):e}},{key:"expandDetailBy",get:function(){return this.expandDetailsKey},set:function(e){this.expandDetailsKey=e}},{key:"ngOnChanges",value:function(e){He(e.expandedDetailKeys)&&this.lastExpandedState!==this.expandedDetailKeys&&(this.expandedState=new Set(this.expandedDetailKeys))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"keyGetter",get:function(){return this._expandBy||yr(void 0)}},{key:"isExpanded",value:function(e){var n=this.keyGetter(e.dataItem),a=this.expandedState.has(n);return this.initiallyExpanded?!a:a}},{key:"toggleState",value:function(e){var n=this.keyGetter(e.dataItem);Boolean(this.initiallyExpanded)!==e.expand?this.expandedState.add(n):this.expandedState.delete(n),this.notifyChange()}},{key:"notifyChange",value:function(){this.lastExpandedState=Array.from(this.expandedState),this.expandedDetailKeysChange.emit(this.lastExpandedState)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl))},i.\u0275dir=X({type:i,selectors:[["","kendoGridExpandDetailsBy",""]],inputs:{expandDetailsKey:["kendoGridExpandDetailsBy","expandDetailsKey"],expandDetailBy:"expandDetailBy",expandedDetailKeys:"expandedDetailKeys",initiallyExpanded:"initiallyExpanded"},outputs:{expandedDetailKeysChange:"expandedDetailKeysChange"},exportAs:["kendoGridExpandDetailsBy"],features:[Ie]}),i}(),Gyt=function(r){for(var t=[];r;)t.push({field:r.group.field,value:r.group.value}),r=r.parentGroup;return t},Vyt=function(r){return{field:r.group.field,value:r.group.value,parentGroupKeys:Gyt(r.parentGroup)}},Sfe=function(){var i=function(){function r(t){p(this,r),this.grid=t,this.expandedGroupKeysChange=new O,this.groupsInitiallyExpanded=!1,this.subscriptions=new Je,this.grid.isGroupExpanded=this.isExpanded.bind(this),this.subscriptions.add(xn(this.grid.groupExpand.pipe(We(function(e){return Object.assign({expand:!0},e)})),this.grid.groupCollapse.pipe(We(function(e){return Object.assign({expand:!1},e)}))).subscribe(this.toggleState.bind(this)))}return v(r,[{key:"expandGroupBy",get:function(){return this._expandGroupBy},set:function(e){"function"==typeof e&&(this._expandGroupBy=e)}},{key:"expandedGroupKeys",get:function(){return this._expandedGroupKeys},set:function(e){this._expandedGroupKeys=(e||[]).slice()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"keyGetter",get:function(){return this.expandGroupBy||Vyt}},{key:"isExpanded",value:function(e){return this.getItemIndex(e)>-1?!this.groupsInitiallyExpanded:this.groupsInitiallyExpanded}},{key:"getItemIndex",value:function(e){return this.expandGroupBy?this.expandedGroupKeys.indexOf(this.keyGetter(e)):this.expandedGroupKeys.findIndex(function(n){for(var a=0,o=e.parentGroup;He(o);){if(!He(n.parentGroupKeys)||!He(n.parentGroupKeys[a])||o.group.value!==n.parentGroupKeys[a].value||o.group.field!==n.parentGroupKeys[a].field)return!1;o=o.parentGroup,a++}return n.value===e.group.value&&n.field===e.group.field})}},{key:"toggleState",value:function(e){var n=this.keyGetter(e);if(Boolean(this.groupsInitiallyExpanded)!==e.expand)this.expandedGroupKeys.push(n);else{var a=this.expandedGroupKeys.indexOf(n);this.expandedGroupKeys.splice(a,1)}this.expandedGroupKeysChange.emit(this.expandedGroupKeys.slice())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl))},i.\u0275dir=X({type:i,selectors:[["","kendoGridExpandGroupBy",""]],inputs:{expandGroupBy:["kendoGridExpandGroupBy","expandGroupBy"],expandedGroupKeys:"expandedGroupKeys",groupsInitiallyExpanded:"groupsInitiallyExpanded"},outputs:{expandedGroupKeysChange:"expandedGroupKeysChange"},exportAs:["kendoGridExpandGroupBy"]}),i}(),wfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(MA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-messages"]],features:[de([{provide:MA,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Uyt=cA({filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterEqOperator:"eq",filterNotEqOperator:"neq",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"}),Dfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n)).localization=o,s.showOperators=!0,s.defaultOperators=Uyt(s.localization),s.column=a,s}return v(e,[{key:"valueField",get:function(){return this._valueField?this._valueField:this.column.field},set:function(a){this._valueField=a}},{key:"currentFilter",get:function(){return this.filterByField(this.column.field)}},{key:"currentOperator",get:function(){return this.currentFilter?this.currentFilter.operator:"contains"}}]),e}(Km);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Pm),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-autocomplete-filter-cell"]],inputs:{showOperators:"showOperators",column:"column",filter:"filter",data:"data",valueField:"valueField"},features:[j],decls:2,vars:7,consts:[[3,"column","filter","operators","showOperators"],["kendoFilterInput","",3,"data","valueField","value"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"kendo-autocomplete",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("showOperators",e.showOperators),k(1),y("data",e.data)("valueField",e.valueField)("value",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,qP,$u],encapsulation:2}),i}(),id=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Pm,she,DV,kV,ZT,co]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],Ly,cr]}),i}(),zyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"contains",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-contains-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Hyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"doesnotcontain",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-not-contains-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Kyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"endswith",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-endswith-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),jyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"eq",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-eq-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Wyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isempty",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isempty-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),$yt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnotempty",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnotempty-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),qyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnotnull",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnotnull-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Xyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnull",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnull-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Zyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"neq",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-neq-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Yyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"startswith",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-startswith-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Qyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"gt",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-gt-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Jyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"gte",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-gte-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ekt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"lt",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-lt-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),tkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"lte",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-lte-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),nkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"after",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"gt"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-after-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ikt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"after-eq",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"gte"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-after-eq-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),rkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"before-eq",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"lte"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-before-eq-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),akt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"before",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"lt"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-before-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),okt=[uU,zyt,Hyt,Kyt,jyt,Wyt,$yt,qyt,Xyt,Zyt,Yyt,Qyt,Jyt,ekt,tkt,nkt,ikt,rkt,akt],skt=[bt,lP,uC,aB,rB,_C,aT,Fa,id],Zm=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[].concat(okt)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(skt),bt,lP,uC,aB,rB,_C,aT,Fa,id]}),i}(),DU=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[dU,cU,bV,uU,Fb,SA,Dfe,wA,DA,Zm.exports()]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Zm],Zm]}),i}(),lkt=[bt,_C,Hnt,Mnt,yo,id],Efe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[QV,KV,qV,jV,$V,XV,YV,NV,ZV,WV]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(lkt)]}),i}(),Tfe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),RA=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[gV,mV,_V]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,id,Tfe]]}),i}(),OA=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Ib,SV,fA,vA,gA,jm,pA,Zm.exports()]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Zm],Zm]}),i}(),Afe=function(){var i=function(){function r(t,e,n,a,o,s){p(this,r),this.localization=t,this.columnInfoService=e,this.popupService=n,this.ngZone=a,this.renderer=o,this.changeDetector=s,this.autoSync=!1,this.allowHideAll=!0}return v(r,[{key:"columns",get:function(){return this.columnInfoService.leafNamedColumns}},{key:"ngOnDestroy",value:function(){this.close()}},{key:"toggle",value:function(e,n){var a=this;if(this.popupRef)this.close();else{var o=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:e,content:n,positionMode:"absolute",anchorAlign:{vertical:"bottom",horizontal:o},popupAlign:{vertical:"top",horizontal:o}}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.ngZone.runOutsideAngular(function(){return a.closeClick=a.renderer.listen("document","click",function(s){Ga(s.target,function(u){return u===a.popupRef.popupElement||u===e})||a.close()})})}}},{key:"onApply",value:function(e){this.close(),e.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e))}},{key:"onChange",value:function(e){this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e)}},{key:"close",value:function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.detachClose()}},{key:"detachClose",value:function(){this.closeClick&&(this.closeClick(),this.closeClick=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(kr),m(be),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-chooser"]],inputs:{autoSync:"autoSync",allowHideAll:"allowHideAll"},decls:5,vars:1,consts:[["type","button",1,"k-button","k-button-flat-base","k-button-flat","k-icon-button","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"click"],["anchor",""],[1,"k-button-icon","k-icon","k-i-columns"],["template",""],[1,"k-column-chooser-title"],[3,"columns","applyText","resetText","autoSync","allowHideAll","apply","columnChange"]],template:function(t,e){if(1&t){var n=xe();A(0,"button",0,1),Q("click",function(){re(n);var o=Yt(1),s=Yt(4);return e.toggle(o,s)}),z(2,"span",2),x(),T(3,Bgt,3,6,"ng-template",null,3,$n)}2&t&&ie("title",e.localization.get("columns"))},directives:[oU],encapsulation:2}),i}(),EU=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Afe,Nb,Ah,$m,lU,mA,_A,yA,kA,WT,sU,CA,bA]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,OA]]}),i}(),ukt=[bt,RA,DU,OA,id,Tfe,EU],xfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[yV,hU]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(ukt)]}),i}(),Mfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).parent=n,o.isCheckboxColumn=!0,o}return v(e,[{key:"templateRef",get:function(){return this.template?this.template.templateRef:void 0}}]),e}(Ir);return i.\u0275fac=function(t){return new(t||i)(m(Ir,13),m(Bl,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-checkbox-column"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Nv,5),2&t&&P(a=B())&&(e.template=a.first)},inputs:{showSelectAll:"showSelectAll"},features:[de([{provide:Ir,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Rfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"none":""}},{key:"onClick",value:function(a){a.preventDefault(),this.editService.beginEdit(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(Xa);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(ke),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-edit-command",e.commandClass))},features:[j]}),i}(),Ofe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"":"none"}},{key:"onClick",value:function(a){a.preventDefault(),this.isEdited&&this.editService.endEdit(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(Xa);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(ke),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCancelCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-cancel-command",e.commandClass))},features:[j]}),i}(),Ife=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"":"none"}},{key:"onClick",value:function(a){a.preventDefault(),this.isEdited&&this.editService.save(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(Xa);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(ke),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSaveCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-save-command",e.commandClass))},features:[j]}),i}(),Nfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"none":""}},{key:"onClick",value:function(a){a.preventDefault(),this.editService.remove(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(Xa);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(ke),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridRemoveCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-remove-command",e.commandClass))},features:[j]}),i}(),Ffe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l){var u;return p(this,e),(u=t.call(this,a,o,null,s,l)).editService=n,u}return v(e,[{key:"onClick",value:function(a){a.preventDefault(),this.editService.beginAdd()}},{key:"commandClass",get:function(){return!0}}]),e}(Xa);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(ke),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridAddCommand",""]],hostVars:2,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&ue("k-grid-add-command",e.commandClass)},features:[j]}),i}(),ckt=[bt,lP,uC,id,RA,bP,aT,yo],Lfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[pU,Mfe,gU,Nv,IV,jT,Rfe,Ofe,Ife,Nfe,Ffe,UV,zV]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(ckt)]}),i}(),dkt=[bt,id],Pfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(dkt)]}),i}(),Bfe=function(){function i(r,t){p(this,i),this.grid=r,this.localDataChangesService=t}return v(i,[{key:"create",value:function(t){this.hasLocalData&&this.grid.skip?this.localDataChangesService.data.splice(this.grid.skip,0,t):this.data.unshift(t),this.dataChanged()}},{key:"update",value:function(t){}},{key:"remove",value:function(t){for(var e=this.data,n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.hasLocalData&&this.localDataChangesService.changes.emit(t)}},{key:"hasLocalData",get:function(){return Array.isArray(this.localDataChangesService.data)}},{key:"data",get:function(){if(this.hasLocalData)return this.localDataChangesService.data;var t=this.grid.data;if(Array.isArray(t))return t;if(xt())throw new Error("The default edit service of the editing directives works only when binding to plain array.Please provide an editService.");return[]}}]),i}(),Gfe=function(){var i=function(){function r(t,e){p(this,r),this.grid=t,this.localDataChangesService=e,this.defaultEditService=this.createDefaultService()}return v(r,[{key:"editService",get:function(){return this.userEditService||this.defaultEditService},set:function(e){this.userEditService=e}},{key:"ngOnInit",value:function(){this.subscriptions=this.grid.add.subscribe(this.addHandler.bind(this)),this.subscriptions.add(this.grid.remove.subscribe(this.removeHandler.bind(this))),this.subscriptions.add(this.grid.cancel.subscribe(this.cancelHandler.bind(this))),this.subscriptions.add(this.grid.save.subscribe(this.saveHandler.bind(this))),this.subscriptions.add(this.grid.dataStateChange.subscribe(this.onStateChange.bind(this)))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"createDefaultService",value:function(){return new Bfe(this.grid,this.localDataChangesService)}},{key:"addHandler",value:function(){this.grid.addRow(this.createModel({isNew:!0}))}},{key:"saveHandler",value:function(e){var n=this.saveModel(e);n&&(e.isNew?this.editService.create(n):this.editService.update(n)),this.grid.closeRow(e.rowIndex)}},{key:"cancelHandler",value:function(e){this.closeEditor(e.rowIndex)}},{key:"removeHandler",value:function(e){var n=this,a=e.dataItem,o=function(u){u&&n.editService.remove(a)};if(this.removeConfirmation){var s=this.removeConfirmation(a);s instanceof Promise?s.then(o):s instanceof An?s.pipe(It(1)).subscribe(o):o(s)}else o(!0)}},{key:"onStateChange",value:function(){this.closeEditor()}},{key:"closeEditor",value:function(e){this.grid.closeRow(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditingDirectiveBase",""]],inputs:{editService:"editService",removeConfirmation:"removeConfirmation"}}),i}(),hkt=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"update",value:function(n){this.dataChanged()}}]),t}(Bfe),Vfe=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e,[{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.subscriptions.add(this.grid.edit.subscribe(this.editHandler.bind(this)))}},{key:"createDefaultService",value:function(){return new hkt(this.grid,this.localDataChangesService)}},{key:"addHandler",value:function(){this.closeEditor(),$(q(e.prototype),"addHandler",this).call(this)}},{key:"editHandler",value:function(a){this.closeEditor(),this.rowIndex=a.rowIndex,this.grid.editRow(a.rowIndex,this.createModel(a))}},{key:"saveHandler",value:function(a){$(q(e.prototype),"saveHandler",this).call(this,a),this.clean()}},{key:"closeEditor",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rowIndex;$(q(e.prototype),"closeEditor",this).call(this,a),this.clean()}},{key:"clean",value:function(){delete this.rowIndex}}]),e}(Gfe);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["","kendoGridRowEditingDirectiveBase",""]],features:[j]}),i}(),Ufe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).grid=n,o.localDataChangesService=a,o}return v(e,[{key:"editHandler",value:function(a){$(q(e.prototype),"editHandler",this).call(this,a),this.dataItem=a.dataItem,this.originalValues={},this.editService.assignValues(this.originalValues,this.dataItem)}},{key:"closeEditor",value:function(a){this.dataItem&&this.editService.assignValues(this.dataItem,this.originalValues),$(q(e.prototype),"closeEditor",this).call(this,a)}},{key:"createModel",value:function(a){if(a.isNew)return this.createNewItem()}},{key:"saveModel",value:function(a){return a.dataItem}},{key:"clean",value:function(){$(q(e.prototype),"clean",this).call(this),delete this.dataItem}}]),e}(Vfe);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridTemplateEditing",""]],inputs:{createNewItem:["kendoGridTemplateEditing","createNewItem"]},features:[j]}),i}(),zfe=function i(r){if(r.markAsTouched(),r.hasOwnProperty("controls")){var t=r.controls;for(var e in t)t.hasOwnProperty(e)&&i(t[e])}},Hfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).grid=n,o.localDataChangesService=a,o}return v(e,[{key:"createModel",value:function(a){return this.createFormGroup(a)}},{key:"saveModel",value:function(a){var o=a.dataItem,s=a.formGroup;if(s.dirty||a.isNew){if(s.valid)return this.editService.assignValues(o,s.value),o;zfe(s)}}}]),e}(Vfe);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridReactiveEditing",""]],inputs:{createFormGroup:["kendoGridReactiveEditing","createFormGroup"]},features:[j]}),i}(),Kfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a)).grid=n,s.localDataChangesService=a,s.cdr=o,s}return v(e,[{key:"createModel",value:function(a){return this.createFormGroup(a)}},{key:"saveModel",value:function(a){var o=a.dataItem,s=a.formGroup;if(s.dirty||a.isNew){if(s.valid)return this.editService.assignValues(o,s.value),o;zfe(s)}}},{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.subscriptions.add(this.grid.cellClick.subscribe(this.cellClickHandler.bind(this))),this.subscriptions.add(this.grid.cellClose.subscribe(this.cellCloseHandler.bind(this)))}},{key:"removeHandler",value:function(a){$(q(e.prototype),"removeHandler",this).call(this,a),this.grid.cancelCell()}},{key:"cellClickHandler",value:function(a){!a.isEdited&&"contextmenu"!==a.type&&(this.grid.editCell(a.rowIndex,a.columnIndex,this.createFormGroup(a)),this.cdr.markForCheck())}},{key:"cellCloseHandler",value:function(a){var o=a.formGroup,s=a.dataItem;if(o.valid){if(o.dirty){if(a.originalEvent&&a.originalEvent.keyCode===J.Escape)return;this.editService.assignValues(s,o.value),this.editService.update(s)}}else a.preventDefault()}}]),e}(Gfe);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoGridInCellEditing",""]],inputs:{createFormGroup:["kendoGridInCellEditing","createFormGroup"]},features:[j]}),i}(),fkt=function(r){return r&&r.length&&r[0].field&&r[0].items},jfe=function(r){return He(r)&&r.length>0},Wfe=function(r,t){return Gte(r,t).data},$fe=function(r,t){var e=[];return{group:r.split("_").reduce(function(n,a){var o=parseInt(a,10);return n.items?(e.push(n),n.items[o]):aV(n)?n[o]:n},t),parents:e}},TU=function i(r){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce(function(e,n){if(n.skipHeader||e++,n.items){var a=i(n.items,t);t&&a&&!n.hideFooter&&e++,e+=a}return e},0)},gkt=function i(r,t,e){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!He(e))return r;for(var a=[],o=0,s=r.length;o0;if(t&&(t--,c&&t>=c))t-=c;else if(!d||c){var h=[],f=!0;if(d||e--,e){if(fkt(u)){var g=i(u,t,e,n);h.push.apply(h,Ae(g)),e-=TU(g,n)}else h.push.apply(h,Ae(u.slice(t,Math.min(t+e,u.length)))),e-=h.length;e&&n&&(f=!1,e--),t=0}a.push({aggregates:l.aggregates,field:l.field,hideFooter:f,items:h,offset:o,skipHeader:d,value:l.value})}}return a},qfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){return p(this,e),t.call(this,n,a,o)}return v(e,[{key:"kendoGridGroupBinding",set:function(a){this.groups=null,this.grid.resetGroupsState(),this.data=a}},{key:"data",set:function(a){this.originalData=a||[],this.dataChanged=!0}},{key:"sort",set:function(a){var o=this.state.sort!==a;this.grid.sort=this.state.sort=a,o&&(this.groups=null,this.grid.resetGroupsState())}},{key:"filter",set:function(a){Vhe(this.state.filter,a)&&(this.state.filter=a,this.grid.filter=nU(a),this.groups=null,this.grid.resetGroupsState())}},{key:"group",set:function(a){var o=jfe(this.state.group)||jfe(a),s=this.state.group!==a&&o;this.grid.group=this.state.group=a,s&&(this.groups=null,this.grid.resetGroupsState(),this.skip=0)}},{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.grid.groupExpand.subscribe(this.groupExpand.bind(this)),this.grid.groupCollapse.subscribe(this.groupCollapse.bind(this))}},{key:"ngAfterContentInit",value:function(){if(xt()&&this.grid.isGroupExpanded)throw new Error("Using the `kendoGridGroupBinding` directive in combination with the `kendoGridExpandGroupBy` directive or the `isGroupExpanded` callback is not supported. To use grouping with the `kendoGridGroupBinding` directive, set the Grid `groupable` property to `true`.")}},{key:"groupExpand",value:function(a){var o=a.groupIndex;this.grid.expandGroupChildren(o);var s=$fe(o,this.groups),l=s.group,u=s.parents;if(!l.items.length){var c=this.state.group.filter(function(r,t){return function(e){return e.field!==t.field&&!r.some(function(n){return n.field===e.field})}}(u,l)),d=function(r,t){var e=t.map(function(n){return{field:n.field,operator:"eq",value:n.value}});return Fte(r,{filters:e,logic:"and"})}(this.originalData,u.concat(l));l.items=Wfe(d,{filter:this.state.filter,group:c,sort:this.state.sort})}this.grid.data=this.dataResult(this.state.skip,this.state.take)}},{key:"groupCollapse",value:function(a){var l=$fe(a.groupIndex,this.groups).group;l&&(l.items=[]),this.grid.data=this.dataResult(this.state.skip,this.state.take)}},{key:"process",value:function(a){if(a.group&&a.group.length){var o=this.processGroups(a);return this.grid.skip-=function(r){for(var t=0;r;)r.skipHeader&&t++,r=r.items&&r.items[0]||null;return t}(o.data[0]),o}return this.groups=null,$(q(e.prototype),"process",this).call(this,a)}},{key:"processGroups",value:function(a){return(!this.groups||!this.groups.length)&&(this.groups=Wfe(this.originalData,{filter:a.filter,group:a.group,sort:a.sort})),this.dataResult(a.skip,a.take)}},{key:"dataResult",value:function(a,o){var s=this.grid.showGroupFooters;return{data:gkt(this.groups,a,o,s),total:TU(this.groups,s)}}},{key:"applyState",value:function(a){var s=a.take,l=a.sort,u=a.group,c=a.filter;this.skip=a.skip,this.state.take=s,this.sort=l,this.group=u,this.filter=c}}]),e}(wU);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(nt),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupBinding",""]],inputs:{kendoGridGroupBinding:"kendoGridGroupBinding",sort:"sort",filter:"filter",group:"group"},features:[j]}),i}(),_kt=([Gl,LV,HV,Zde,wU,Cfe,wfe,qfe,Ufe,Hfe,Kfe,bfe,Sfe].concat(Ae(RA.exports()),Ae(id.exports()),Ae(Lfe.exports()),Ae(xfe.exports()),Ae(Pfe.exports()),Ae(Efe.exports()),Ae(DU.exports()),Ae(OA.exports()),Ae(EU.exports())),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,RA,id,Lfe,xfe,Pfe,Efe,DU,OA,yo,EU]]}),i}()),Nkt=(Ta("KENDO-GRID-LIST"),Ta("TABLE"),function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.renderer=e,this.colors={"SEV: LOW":"#ff9800","SEV: MEDIUM":"#ff5d2a","SEV: HIGH":"#d50000",ENHANCEMENT:"#00c853",FEATURE:"#2e7d32",OTHER:"#1ca8dd","PASSED QA":"#57b45b",BUG:"#cf3257","NEEDS QA":"#bc007c",DOCUMENTATION:"#455a64",DEMO:"#673ab7",DELETED:"#f44336","IN PROGRESS":"#ffd600"}}return v(r,[{key:"labelClass",set:function(e){var n=this.matchColor(e);this.renderer.setStyle(this.element.nativeElement,"backgroundColor",n)}},{key:"matchColor",value:function(e){return this.colors[e.toUpperCase()]||this.colors.OTHER}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","appLabelClass",""]],inputs:{labelClass:"labelClass"}}),i}());var Ym={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},Lkt=/[&<>"']/,Pkt=/[&<>"']/g,Bkt=/[<>"']|&(?!#?\w+;)/,Gkt=/[<>"']|&(?!#?\w+;)/g,Vkt={"&":"&","<":"<",">":">",'"':""","'":"'"},ive=function(r){return Vkt[r]};function ua(i,r){if(r){if(Lkt.test(i))return i.replace(Pkt,ive)}else if(Bkt.test(i))return i.replace(Gkt,ive);return i}var Ukt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function rve(i){return i.replace(Ukt,function(r,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var zkt=/(^|[^\[])\^/g;function bi(i,r){i="string"==typeof i?i:i.source,r=r||"";var t={replace:function(n,a){return a=(a=a.source||a).replace(zkt,"$1"),i=i.replace(n,a),t},getRegex:function(){return new RegExp(i,r)}};return t}var Hkt=/[^\w:]/g,Kkt=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ave(i,r,t){if(i){var e;try{e=decodeURIComponent(rve(t)).replace(Hkt,"").toLowerCase()}catch(n){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}r&&!Kkt.test(t)&&(t=function qkt(i,r){IA[" "+i]||(IA[" "+i]=jkt.test(i)?i+"/":FA(i,"/",!0));var t=-1===(i=IA[" "+i]).indexOf(":");return"//"===r.substring(0,2)?t?r:i.replace(Wkt,"$1")+r:"/"===r.charAt(0)?t?r:i.replace($kt,"$1")+r:i+r}(r,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch(n){return null}return t}var IA={},jkt=/^[^:]+:\/*[^/]*$/,Wkt=/^([^:]+:)[\s\S]*$/,$kt=/^([^:]+:\/*[^/]*)[\s\S]*$/,NA={exec:function(){}};function Vl(i){for(var t,e,r=1;r=0&&"\\"===s[u];)l=!l;return l?"|":" |"}).split(/ \|/),n=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>r)e.splice(r);else for(;e.length1;)1&r&&(t+=i),r>>=1,i+=i;return t+i}function uve(i,r,t,e){var n=r.href,a=r.title?ua(r.title):null,o=i[1].replace(/\\([\[\]])/g,"$1");if("!"!==i[0].charAt(0)){e.state.inLink=!0;var s={type:"link",raw:t,href:n,title:a,text:o,tokens:e.inlineTokens(o,[])};return e.state.inLink=!1,s}return{type:"image",raw:t,href:n,title:a,text:ua(o)}}var LU=function(){function i(r){p(this,i),this.options=r||Ym}return v(i,[{key:"space",value:function(t){var e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}},{key:"code",value:function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:FA(n,"\n")}}}},{key:"fences",value:function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],a=function Zkt(i,r){var t=i.match(/^(\s+)(?:```)/);if(null===t)return r;var e=t[1];return r.split("\n").map(function(n){var a=n.match(/^\s+/);return null===a?n:Gt(a,1)[0].length>=e.length?n.slice(e.length):n}).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:a}}}},{key:"heading",value:function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var a=FA(n,"#");(this.options.pedantic||!a||/ $/.test(a))&&(n=a.trim())}var o={type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}},{key:"hr",value:function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}},{key:"blockquote",value:function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}},{key:"list",value:function(t){var e=this.rules.block.list.exec(t);if(e){var n,a,o,s,l,u,c,d,h,f,g,_,C=e[1].trim(),w=C.length>1,E={type:"list",raw:"",ordered:w,start:w?+C.slice(0,-1):"",loose:!1,items:[]};C=w?"\\d{1,9}\\".concat(C.slice(-1)):"\\".concat(C),this.options.pedantic&&(C=w?C:"[*+-]");for(var M=new RegExp("^( {0,3}".concat(C,")((?:[\t ][^\\n]*)?(?:\\n|$))"));t&&(_=!1,(e=M.exec(t))&&!this.rules.block.hr.test(t));){if(t=t.substring((n=e[0]).length),d=e[2].split("\n",1)[0],h=t.split("\n",1)[0],this.options.pedantic?(s=2,g=d.trimLeft()):(s=e[2].search(/[^ ]/),g=d.slice(s=s>4?1:s),s+=e[1].length),u=!1,!d&&/^ *$/.test(h)&&(n+=h+"\n",t=t.substring(h.length+1),_=!0),!_)for(var R=new RegExp("^ {0,".concat(Math.min(3,s-1),"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))")),N=new RegExp("^ {0,".concat(Math.min(3,s-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"));t&&(d=f=t.split("\n",1)[0],this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!R.test(d)&&!N.test(t));){if(d.search(/[^ ]/)>=s||!d.trim())g+="\n"+d.slice(s);else{if(u)break;g+="\n"+d}!u&&!d.trim()&&(u=!0),n+=f+"\n",t=t.substring(f.length+1)}E.loose||(c?E.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(a=/^\[[ xX]\] /.exec(g))&&(o="[ ] "!==a[0],g=g.replace(/^\[[ xX]\] +/,"")),E.items.push({type:"list_item",raw:n,task:!!a,checked:o,loose:!1,text:g}),E.raw+=n}E.items[E.items.length-1].raw=n.trimRight(),E.items[E.items.length-1].text=g.trimRight(),E.raw=E.raw.trimRight();var V=E.items.length;for(l=0;l1)return!0}catch(me){K.e(me)}finally{K.f()}return!1});!E.loose&&U.length&&ee&&(E.loose=!0,E.items[l].loose=!0)}return E}}},{key:"html",value:function(t){var e=this.rules.block.html.exec(t);if(e){var n={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(e[0]):ua(e[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}}},{key:"def",value:function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}}},{key:"table",value:function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:ove(e[1]).map(function(c){return{text:c}}),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var o,s,l,u,a=n.align.length;for(o=0;o/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):ua(e[0]):e[0]}}},{key:"link",value:function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var a=FA(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{var o=function Xkt(i,r){if(-1===i.indexOf(r[1]))return-1;for(var t=i.length,e=0,n=0;n-1){var l=(0===e[0].indexOf("!")?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,l).trim(),e[3]=""}}var u=e[2],c="";if(this.options.pedantic){var d=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(u);d&&(u=d[1],c=d[3])}else c=e[3]?e[3].slice(1,-1):"";return u=u.trim(),/^$/.test(n)?u.slice(1):u.slice(1,-1)),uve(e,{href:u&&u.replace(this.rules.inline._escapes,"$1"),title:c&&c.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}},{key:"reflink",value:function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var a=(n[2]||n[1]).replace(/\s+/g," ");if(!(a=e[a.toLowerCase()])||!a.href){var o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return uve(n,a,n[0],this.lexer)}}},{key:"emStrong",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=this.rules.inline.emStrong.lDelim.exec(t);if(a&&(!a[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=a[1]||a[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){var l,u,s=a[0].length-1,c=s,d=0,h="*"===a[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,e=e.slice(-1*t.length+s);null!=(a=h.exec(e));)if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6]){if(u=l.length,a[3]||a[4]){c+=u;continue}if((a[5]||a[6])&&s%3&&!((s+u)%3)){d+=u;continue}if(!((c-=u)>0)){if(u=Math.min(u,u+c+d),Math.min(s,u)%2){var f=t.slice(1,s+a.index+u);return{type:"em",raw:t.slice(0,s+a.index+u+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}var g=t.slice(2,s+a.index+u-1);return{type:"strong",raw:t.slice(0,s+a.index+u+1),text:g,tokens:this.lexer.inlineTokens(g,[])}}}}}}},{key:"codespan",value:function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),a=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return a&&o&&(n=n.substring(1,n.length-1)),n=ua(n,!0),{type:"codespan",raw:e[0],text:n}}}},{key:"br",value:function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}},{key:"del",value:function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}}},{key:"autolink",value:function(t,e){var a,o,n=this.rules.inline.autolink.exec(t);if(n)return o="@"===n[2]?"mailto:"+(a=ua(this.options.mangle?e(n[1]):n[1])):a=ua(n[1]),{type:"link",raw:n[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}},{key:"url",value:function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var a,o;if("@"===n[2])o="mailto:"+(a=ua(this.options.mangle?e(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);a=ua(n[0]),o="www."===n[1]?"http://"+a:a}return{type:"link",raw:n[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}}},{key:"inlineText",value:function(t,e){var a,n=this.rules.inline.text.exec(t);if(n)return a=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):ua(n[0]):n[0]:ua(this.options.smartypants?e(n[0]):n[0]),{type:"text",raw:n[0],text:a}}}]),i}(),Ht={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:NA,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Ht.def=bi(Ht.def).replace("label",Ht._label).replace("title",Ht._title).getRegex(),Ht.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ht.listItemStart=bi(/^( *)(bull) */).replace("bull",Ht.bullet).getRegex(),Ht.list=bi(Ht.list).replace(/bull/g,Ht.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ht.def.source+")").getRegex(),Ht._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ht._comment=/|$)/,Ht.html=bi(Ht.html,"i").replace("comment",Ht._comment).replace("tag",Ht._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ht.paragraph=bi(Ht._paragraph).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.blockquote=bi(Ht.blockquote).replace("paragraph",Ht.paragraph).getRegex(),Ht.normal=Vl({},Ht),Ht.gfm=Vl({},Ht.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ht.gfm.table=bi(Ht.gfm.table).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.gfm.paragraph=bi(Ht._paragraph).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ht.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.pedantic=Vl({},Ht.normal,{html:bi("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ht._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:NA,paragraph:bi(Ht.normal._paragraph).replace("hr",Ht.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ht.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var _t={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:NA,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:NA,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(e="x"+e.toString(16)),r+="&#"+e+";";return r}_t._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",_t.punctuation=bi(_t.punctuation).replace(/punctuation/g,_t._punctuation).getRegex(),_t.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,_t.escapedEmSt=/\\\*|\\_/g,_t._comment=bi(Ht._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),_t.emStrong.lDelim=bi(_t.emStrong.lDelim).replace(/punct/g,_t._punctuation).getRegex(),_t.emStrong.rDelimAst=bi(_t.emStrong.rDelimAst,"g").replace(/punct/g,_t._punctuation).getRegex(),_t.emStrong.rDelimUnd=bi(_t.emStrong.rDelimUnd,"g").replace(/punct/g,_t._punctuation).getRegex(),_t._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,_t._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,_t._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,_t.autolink=bi(_t.autolink).replace("scheme",_t._scheme).replace("email",_t._email).getRegex(),_t._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,_t.tag=bi(_t.tag).replace("comment",_t._comment).replace("attribute",_t._attribute).getRegex(),_t._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,_t._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,_t._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,_t.link=bi(_t.link).replace("label",_t._label).replace("href",_t._href).replace("title",_t._title).getRegex(),_t.reflink=bi(_t.reflink).replace("label",_t._label).replace("ref",Ht._label).getRegex(),_t.nolink=bi(_t.nolink).replace("ref",Ht._label).getRegex(),_t.reflinkSearch=bi(_t.reflinkSearch,"g").replace("reflink",_t.reflink).replace("nolink",_t.nolink).getRegex(),_t.normal=Vl({},_t),_t.pedantic=Vl({},_t.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:bi(/^!?\[(label)\]\((.*?)\)/).replace("label",_t._label).getRegex(),reflink:bi(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_t._label).getRegex()}),_t.gfm=Vl({},_t.normal,{escape:bi(_t.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[];for(t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,function(c,d,h){return d+" ".repeat(h.length)});t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(c){return!!(a=c.call({lexer:e},t,n))&&(t=t.substring(a.raw.length),n.push(a),!0)}))){if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length),1===a.raw.length&&n.length>0?n[n.length-1].raw+="\n":n.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length),!(o=n[n.length-1])||"paragraph"!==o.type&&"text"!==o.type?n.push(a):(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length),!(o=n[n.length-1])||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title}):(o.raw+="\n"+a.raw,o.text+="\n"+a.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock&&function(){var c=1/0,d=t.slice(1),h=void 0;e.options.extensions.startBlock.forEach(function(f){"number"==typeof(h=f.call({lexer:this},d))&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}(),this.state.top&&(a=this.tokenizer.paragraph(s))){o=n[n.length-1],l&&"paragraph"===o.type?(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(a),l=s.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===o.type?(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(a);continue}if(t){var u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}return this.state.top=!0,n}},{key:"inline",value:function(t,e){this.inlineQueue.push({src:t,tokens:e})}},{key:"inlineTokens",value:function(t){var a,o,s,u,c,d,e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=t;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(h.length>0)for(;null!=(u=this.tokenizer.rules.inline.reflinkSearch.exec(l));)h.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,u.index)+"["+lve("a",u[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(u=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,u.index)+"["+lve("a",u[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(u=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,u.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(c||(d=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(g){return!!(a=g.call({lexer:e},t,n))&&(t=t.substring(a.raw.length),n.push(a),!0)}))){if(a=this.tokenizer.escape(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(t)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===a.type&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(a=this.tokenizer.link(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===a.type&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(t,l,d)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(t,cve)){t=t.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(t,cve))){t=t.substring(a.raw.length),n.push(a);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline&&function(){var g=1/0,_=t.slice(1),C=void 0;e.options.extensions.startInline.forEach(function(w){"number"==typeof(C=w.call({lexer:this},_))&&C>=0&&(g=Math.min(g,C))}),g<1/0&&g>=0&&(s=t.substring(0,g+1))}(),a=this.tokenizer.inlineText(s,Ykt)){t=t.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(d=a.raw.slice(-1)),c=!0,(o=n[n.length-1])&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(t){var f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}return n}}],[{key:"rules",get:function(){return{block:Ht,inline:_t}}},{key:"lex",value:function(t,e){return new i(e).lex(t)}},{key:"lexInline",value:function(t,e){return new i(e).inlineTokens(t)}}]),i}(),PU=function(){function i(r){p(this,i),this.options=r||Ym}return v(i,[{key:"code",value:function(t,e,n){var a=(e||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(t,a);null!=o&&o!==t&&(n=!0,t=o)}return t=t.replace(/\n$/,"")+"\n",a?'
    '+(n?t:ua(t,!0))+"
    \n":"
    "+(n?t:ua(t,!0))+"
    \n"}},{key:"blockquote",value:function(t){return"
    \n".concat(t,"
    \n")}},{key:"html",value:function(t){return t}},{key:"heading",value:function(t,e,n,a){if(this.options.headerIds){var o=this.options.headerPrefix+a.slug(n);return"').concat(t,"\n")}return"").concat(t,"\n")}},{key:"hr",value:function(){return this.options.xhtml?"
    \n":"
    \n"}},{key:"list",value:function(t,e,n){var a=e?"ol":"ul";return"<"+a+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"\n"}},{key:"listitem",value:function(t){return"
  • ".concat(t,"
  • \n")}},{key:"checkbox",value:function(t){return" "}},{key:"paragraph",value:function(t){return"

    ".concat(t,"

    \n")}},{key:"table",value:function(t,e){return e&&(e="".concat(e,"")),"\n\n"+t+"\n"+e+"
    \n"}},{key:"tablerow",value:function(t){return"\n".concat(t,"\n")}},{key:"tablecell",value:function(t,e){var n=e.header?"th":"td";return(e.align?"<".concat(n,' align="').concat(e.align,'">'):"<".concat(n,">"))+t+"\n")}},{key:"strong",value:function(t){return"".concat(t,"")}},{key:"em",value:function(t){return"".concat(t,"")}},{key:"codespan",value:function(t){return"".concat(t,"")}},{key:"br",value:function(){return this.options.xhtml?"
    ":"
    "}},{key:"del",value:function(t){return"".concat(t,"")}},{key:"link",value:function(t,e,n){if(null===(t=ave(this.options.sanitize,this.options.baseUrl,t)))return n;var a='"+n+""}},{key:"image",value:function(t,e,n){if(null===(t=ave(this.options.sanitize,this.options.baseUrl,t)))return n;var a='').concat(n,'":">")}},{key:"text",value:function(t){return t}}]),i}(),dve=function(){function i(){p(this,i)}return v(i,[{key:"strong",value:function(t){return t}},{key:"em",value:function(t){return t}},{key:"codespan",value:function(t){return t}},{key:"del",value:function(t){return t}},{key:"html",value:function(t){return t}},{key:"text",value:function(t){return t}},{key:"link",value:function(t,e,n){return""+n}},{key:"image",value:function(t,e,n){return""+n}},{key:"br",value:function(){return""}}]),i}(),hve=function(){function i(){p(this,i),this.seen={}}return v(i,[{key:"serialize",value:function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(t,e){var n=t,a=0;if(this.seen.hasOwnProperty(n)){a=this.seen[t];do{n=t+"-"+ ++a}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=a,this.seen[n]=0),n}},{key:"slug",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}]),i}(),Jm=function(){function i(r){p(this,i),this.options=r||Ym,this.options.renderer=this.options.renderer||new PU,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new dve,this.slugger=new hve}return v(i,[{key:"parse",value:function(t){var a,o,s,l,u,c,d,h,f,g,_,C,w,E,M,R,N,V,U,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="",ee=t.length;for(a=0;a0&&"paragraph"===M.tokens[0].type?(M.tokens[0].text=V+" "+M.tokens[0].text,M.tokens[0].tokens&&M.tokens[0].tokens.length>0&&"text"===M.tokens[0].tokens[0].type&&(M.tokens[0].tokens[0].text=V+" "+M.tokens[0].tokens[0].text)):M.tokens.unshift({type:"text",text:V}):E+=V),E+=this.parse(M.tokens,w),f+=this.renderer.listitem(E,N,R);n+=this.renderer.list(f,_,C);continue;case"html":n+=this.renderer.html(g.text);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(g.tokens));continue;case"text":for(f=g.tokens?this.parseInline(g.tokens):g.text;a+1An error occurred:

    "+ua(l.message+"",!0)+"
    ";throw l}}en.options=en.setOptions=function(i){return Vl(en.defaults,i),function Fkt(i){Ym=i}(en.defaults),en},en.getDefaults=function nve(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},en.defaults=Ym,en.use=function(){for(var i=arguments.length,r=new Array(i),t=0;tAn error occurred:

    "+ua(e.message+"",!0)+"
    ";throw e}},en.Parser=Jm,en.parser=Jm.parse,en.Renderer=PU,en.TextRenderer=dve,en.Lexer=Qm,en.lexer=Qm.lex,en.Tokenizer=LU,en.Slugger=hve,en.parse=en;var Qkt=en.setOptions,Jkt=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"ngOnChanges",value:function(){var e=Qkt({});this.convertedData=e.parse(this.data)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-markdown"]],inputs:{data:"data"},features:[Ie],decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(t,e){1&t&&z(0,"div",0),2&t&&y("innerHTML",e.convertedData,LS)},encapsulation:2}),i}();function eCt(i,r){1&i&&z(0,"app-loading-spinner")}function tCt(i,r){1&i&&(A(0,"div"),z(1,"img",8),x())}function nCt(i,r){if(1&i&&(A(0,"a",17),te(1),x()),2&i){var t=r.$implicit;k(1),Pt("#",t.number,"")}}var iCt=function(r,t){return{"issue-status":!0,"issue-open":r,"issue-closed":t}};function rCt(i,r){if(1&i&&(z(0,"span",18),te(1)),2&i){var t=r.$implicit;y("ngClass",ln(2,iCt,"open"===t.state,"open"!==t.state)),k(1),Pt(" ",t.title," ")}}function aCt(i,r){if(1&i&&(A(0,"span",20),te(1),x()),2&i){var t=r.$implicit;y("appLabelClass",t.name),k(1),Pt(" ",t.name," ")}}function oCt(i,r){1&i&&T(0,aCt,2,2,"span",19),2&i&&y("ngForOf",r.$implicit.labels)}function sCt(i,r){if(1&i&&te(0),2&i){var t=r.$implicit;Pt(" ",t.milestone?t.milestone.title:""," ")}}var fve=function(){return{width:"30px",height:"30px"}};function lCt(i,r){if(1&i&&z(0,"img",22),2&i){var t=D().$implicit;y("src",t.assignee?t.assignee.avatar_url:void 0,uc)("ngStyle",Tt(2,fve))}}function uCt(i,r){if(1&i&&(T(0,lCt,1,3,"img",21),te(1)),2&i){var t=r.$implicit;y("ngIf",t.assignee),k(1),Pt(" ",t.assignee?t.assignee.login:""," ")}}function cCt(i,r){if(1&i&&(A(0,"div",28)(1,"span",29),te(2,"Closed on"),x(),te(3),ja(4,"date"),x()),2&i){var t=D().$implicit;k(3),Pt(" ",fc(4,1,t.closed_at)," ")}}function dCt(i,r){if(1&i&&(A(0,"div",28)(1,"span",29),te(2,"Assignee"),x(),z(3,"img",22),te(4),x()),2&i){var t=D().$implicit;k(3),y("src",t.assignee?t.assignee.avatar_url:void 0,uc)("ngStyle",Tt(3,fve)),k(1),Pt(" ",t.assignee?t.assignee.login:""," ")}}function hCt(i,r){if(1&i&&(A(0,"span",20),te(1),x()),2&i){var t=r.$implicit;y("appLabelClass",t.name),k(1),Pt(" ",t.name," ")}}var fCt=function(r,t){return{"badge-success":r,"badge-danger":t}};function vCt(i,r){if(1&i&&(A(0,"div",23)(1,"div",24)(2,"span",25),te(3),x(),A(4,"h3",26),te(5),A(6,"span",27),te(7),x()()()(),A(8,"div",23)(9,"div",28)(10,"span",29),te(11,"Created on"),x(),te(12),ja(13,"date"),x(),T(14,cCt,5,3,"div",30),A(15,"div",28)(16,"span",29),te(17,"Milestone"),x(),te(18),x(),A(19,"div",28)(20,"span",29),te(21,"Author"),x(),te(22),x(),T(23,dCt,5,4,"div",30),x(),A(24,"div",23)(25,"div",28)(26,"h4",31),te(27,"Labels"),x(),T(28,hCt,2,2,"span",19),x(),A(29,"div",32)(30,"h4",31),te(31,"Description"),x(),z(32,"app-markdown",33),x()()),2&i){var t=r.$implicit;k(2),y("ngClass",ln(13,fCt,"open"===t.state,"closed"===t.state)),k(1),at(t.state),k(2),Pt(" ",t.title," "),k(2),Pt("#",t.number,""),k(5),Pt(" ",fc(13,11,t.created_at)," "),k(2),y("ngIf",t.closed_at),k(4),Pt(" ",t.milestone?t.milestone.title:""," "),k(4),Pt(" ",t.user.login," "),k(1),y("ngIf",t.assignee),k(5),y("ngForOf",t.labels),k(4),y("data",t.body)}}var pCt=function(){return{pageSizes:!0,buttonCount:3}};function gCt(i,r){if(1&i){var t=xe();A(0,"kendo-grid",9),Q("pageChange",function(a){return re(t),D().onPageChange(a)}),A(1,"kendo-grid-column",10),T(2,nCt,2,1,"ng-template",11),x(),A(3,"kendo-grid-column",12),T(4,rCt,2,5,"ng-template",11),x(),A(5,"kendo-grid-column",13),T(6,oCt,1,1,"ng-template",11),x(),A(7,"kendo-grid-column",14),T(8,sCt,1,1,"ng-template",11),x(),A(9,"kendo-grid-column",15),T(10,uCt,2,2,"ng-template",11),x(),T(11,vCt,33,16,"ng-template",16),x()}if(2&i){var e=D();y("data",e.view)("pageSize",e.pageSize)("pageable",Tt(5,pCt))("skip",e.skip)("scrollable","none")}}var vve,pve,mCt=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.http=t,this.githubService=e,this.issuesProcessor=n,this.isLoading=!0,this.selectedPeriod=3,this.total=5,this.pageSize=10,this.skip=0,this.today=new Date,this.months=3,this.range=this.dateRange(),e.getGithubIssues({pages:5}).subscribe(function(o){o=o.reduce(function(s,l){return[].concat(Ae(s),Ae(l))},[]).filter(function(s){return!s.pull_request}),a.allIssues=o,a.applyPaging(a.issuesProcessor.filterByMonth(a.allIssues,a.months)),a.isLoading=!1},function(){return a.isLoading=!1})}return v(r,[{key:"get_id",get:function(){return"issues"}},{key:"get_class",get:function(){return"issues"}},{key:"onFilterClick",value:function(e){this.selectedPeriod=e,this.skip=0,this.months=e,this.range=this.dateRange(),this.applyPaging(this.issuesProcessor.filterByMonth(this.allIssues,e))}},{key:"onPageChange",value:function(e){this.skip=e.skip,this.view=this.getView(e.skip,e.take)}},{key:"applyPaging",value:function(e){this.issues=e,this.view=this.getView(this.skip,this.pageSize)}},{key:"getView",value:function(e,n){return{data:this.issues.slice(e,e+n),total:this.issues.length}}},{key:"dateRange",value:function(){return{to:new Date,from:this.issuesProcessor.getMonthsRange(this.months)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(tO),m(Jp),m(cD))},i.\u0275cmp=L({type:i,selectors:[["app-issues"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.get_id),Ar(e.get_class))},features:[de([Jp,cD])],decls:19,vars:17,consts:[[1,"row"],[1,"col-md","text-center","text-md-right","mb-4"],[3,"disabled","selection"],["kendoButton","",3,"disabled","selected","click"],[1,"col-md","order-md-first","text-center","text-md-left"],[1,"small","text-uppercase","text-muted","d-block"],[4,"ngIf"],[3,"data","pageSize","pageable","skip","scrollable","pageChange",4,"ngIf"],["src","../../assets/noConnection.png"],[3,"data","pageSize","pageable","skip","scrollable","pageChange"],["field","number","title","ID","width","80"],["kendoGridCellTemplate",""],["field","title","title","Title"],["field","labels","title","Labels","media","sm"],["field","milestone","title","Milestone","width","200","media","xl"],["field","assignee","title","Assignee","width","200","media","xl"],["kendoGridDetailTemplate",""],["href","dataItem.html_url"],[3,"ngClass"],["class","badge",3,"appLabelClass",4,"ngFor","ngForOf"],[1,"badge",3,"appLabelClass"],["class","img-circle",3,"src","ngStyle",4,"ngIf"],[1,"img-circle",3,"src","ngStyle"],[1,"row","my-4"],[1,"col-sm-12"],[1,"badge",3,"ngClass"],[1,"h1"],[1,"text-muted"],[1,"col-sm-2"],[1,"small","d-block","text-muted"],["class","col-sm-2",4,"ngIf"],[1,"small","text-muted"],[1,"col-sm-8"],[3,"data"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"kendo-buttongroup",2)(3,"button",3),Q("click",function(){return e.onFilterClick(3)}),te(4,"3 Months"),x(),A(5,"button",3),Q("click",function(){return e.onFilterClick(6)}),te(6,"6 Months"),x(),A(7,"button",3),Q("click",function(){return e.onFilterClick(12)}),te(8,"1 Year"),x()()(),A(9,"div",4)(10,"h2")(11,"span",5),te(12,"Issues"),x(),te(13),ja(14,"date"),ja(15,"date"),x()()(),T(16,eCt,1,0,"app-loading-spinner",6),T(17,tCt,2,0,"div",6),T(18,gCt,12,6,"kendo-grid",7)),2&t&&(k(2),y("disabled",e.isLoading)("selection","single"),k(1),y("disabled",e.isLoading)("selected",3===e.selectedPeriod),k(2),y("disabled",e.isLoading)("selected",6===e.selectedPeriod),k(2),y("disabled",e.isLoading)("selected",12===e.selectedPeriod),k(6),Jl(" ",fc(14,13,e.range.from)," - ",fc(15,15,e.range.to)," "),k(3),y("ngIf",e.isLoading),k(1),y("ngIf",!e.isLoading&&!e.view),k(1),y("ngIf",e.view))},directives:[BW,Xa,qe,tN,Gl,Pm,Nv,Nt,gn,Nkt,Vi,ZT,Jkt],pipes:[yw],encapsulation:2}),i}();function _Ct(i,r){1&i&&dn(0,0,["*ngIf","!actions"])}function yCt(i,r){if(1&i){var t=xe();A(0,"button",5),Q("click",function(o){var l=re(t).$implicit;return D(2).onButtonClick(l,o)}),te(1),x()}if(2&i){var e=r.$implicit;y("ngClass",D(2).buttonClass(e)),ie("aria-label",e.text),k(1),Pt(" ",e.text," ")}}function kCt(i,r){if(1&i&&(Ge(0),T(1,yCt,2,3,"button",4),Ve()),2&i){var t=D();k(1),y("ngForOf",t.actionsArray)}}function CCt(i,r){}var BU=["*"];function bCt(i,r){if(1&i&&(A(0,"kendo-dialog-titlebar",7),te(1),x()),2&i){var t=D();y("closeTitle",t.closeTitle)("id",t.titleId),k(1),at(t.title)}}function SCt(i,r){1&i&&dn(0,0,["*ngIf","!title"])}function wCt(i,r){1&i&&dn(0,1,["*ngIf","!contentTemplate"])}function DCt(i,r){}function ECt(i,r){1&i&&T(0,DCt,0,0,"ng-template",8),2&i&&y("ngTemplateOutlet",D().contentTemplate)}function TCt(i,r){1&i&&dn(0,2,["*ngIf","!actions"])}function ACt(i,r){if(1&i&&z(0,"kendo-dialog-actions",9),2&i){var t=D();y("actions",t.actions)("layout",t.actionsLayout)}}var xCt=[[["kendo-dialog-titlebar"]],"*",[["kendo-dialog-actions"]]],MCt=["kendo-dialog-titlebar","*","kendo-dialog-actions"],Si=function(r){return null!=r},kve=function(r){return String(r).trim().split(" ")},WCt=/^(?:a|input|select|textarea|button|object)$/i,ri=function(){return function(i){i[i.esc=27]="esc",i[i.tab=9]="tab",i[i.enter=13]="enter",i[i.space=32]="space",i[i.ctrl=17]="ctrl",i[i.shift=16]="shift",i[i.left=37]="left",i[i.up=38]="up",i[i.right=39]="right",i[i.down=40]="down"}(ri||(ri={})),ri}(),Cve="k-dialog-wrapper k-dialog-buttongroup k-dialog-action",e_=function(r,t){var e=kve(t);return Boolean(kve(r.className).find(function(n){return e.indexOf(n)>=0}))},XCt=function(r){var t=r.getBoundingClientRect();return!(!t.width||!t.height)&&"hidden"!==window.getComputedStyle(r).visibility},Pb=function(r){return tbt(r)?ZCt(r):GU(r)?YCt(r):Array.isArray(r)?QCt(r):void 0},ZCt=function(r){var t=[];return Object.keys(r).forEach(function(e){var n=VU(e);r[e]&&n[0]&&t.push.apply(t,Ae(n))}),t},YCt=function(r){var t=[];return VU(r).forEach(function(n){t.push(n)}),t},QCt=function(r){var t=[];return r.forEach(function(e){var n=VU(e);n[0]&&t.push.apply(t,Ae(n))}),t},JCt=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),GU=function(r){return r instanceof String||"string"==typeof r},tbt=function(r){return Si(r)&&!Array.isArray(r)&&"object"==typeof r},t_=function(r){return r+(function(r){return"number"==typeof r&&isFinite(r)}(r)?"px":"")},VU=function(r){return r.trim().replace(/\s+/g," ").split(" ")},Gb=function(){var i=function(){function r(t){p(this,r),this.el=t,this.layout="stretched",this.action=new O,this.buttonGroupClassName=!0}return v(r,[{key:"actions",set:function(e){if(e instanceof $e)this.actionsTemplate=e;else{if(!Array.isArray(e))throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');this.actionsArray=e}}},{key:"className",get:function(){return"stretched"===this.layout}},{key:"onButtonClick",value:function(e,n){this.action.emit(e)}},{key:"buttonClass",value:function(e){var n=["k-button k-button-md k-rounded-md"],a=e.fillMode?e.fillMode:"solid",o=e.themeColor?e.themeColor:"base",s=e.cssClass?Pb(e.cssClass):[];return n.push("k-button-".concat(a," k-button-").concat(a,"-").concat(o)),s.length>0&&(n=n.concat(s)),n.join(" ")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-actions"]],hostVars:6,hostBindings:function(t,e){2&t&&ue("k-dialog-buttongroup",e.buttonGroupClassName)("k-actions",e.buttonGroupClassName)("k-actions-stretched",e.className)},inputs:{actions:"actions",layout:"layout"},outputs:{action:"action"},ngContentSelectors:BU,decls:4,vars:4,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"],["actionTemplate",""],["type","button",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",3,"ngClass","click"]],template:function(t,e){if(1&t&&(kn(),T(0,_Ct,1,0,"ng-content",0),T(1,kCt,2,1,"ng-container",1),T(2,CCt,0,0,"ng-template",2,3,$n)),2&t){var n=Yt(3);y("ngIf",!e.actions),k(1),y("ngIf",e.actionsArray)("ngIfElse",n),k(1),y("ngTemplateOutlet",e.actionsTemplate)}},directives:[qe,gn,Nt,En],encapsulation:2}),i}(),UU=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),Dve=new wt("Dialog LocalizationService"),Eve=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a,o)).dialogLocalization=s,l}return v(e,[{key:"get",value:function(a){return this.dialogLocalization?this.dialogLocalization.get(a):$(q(e.prototype),"get",this).call(this,a)}}]),e}(Y);return i.\u0275fac=function(t){return new(t||i)(oe(Dt),oe(rg,8),oe(Td,8),oe(Dve,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),LA=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-dialog-messages-base"]],inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},features:[j]}),i}(),PA=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(LA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDialogLocalizedMessages",""],["","kendoWindowLocalizedMessages",""],["","kendoDialogTitleBarLocalizedMessages",""]],features:[de([{provide:LA,useExisting:ye(function(){return i})}]),j]}),i}(),Vb=function(){var i=function(){function r(t,e,n){p(this,r),this.zone=t,this.hostElement=e,this.localizationService=n,this.close=new O}return v(r,[{key:"className",get:function(){return!0}},{key:"closeButtonTitle",get:function(){return this.closeTitle||this.localizationService.get("closeTitle")}},{key:"ngAfterViewInit",value:function(){var e=this;this.zone.onStable.pipe(It(1)).subscribe(function(){e.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",e.id)})}},{key:"onCloseClick",value:function(e){e.preventDefault();var n=new UU;this.close.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(be),m(ke),m(Y,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-titlebar"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-window-titlebar",e.className)("k-dialog-titlebar",e.className)},inputs:{id:"id",closeTitle:"closeTitle"},outputs:{close:"close"},features:[de([Eve,{provide:Y,useExisting:Eve},{provide:Dt,useValue:"kendo.dialog"}])],ngContentSelectors:BU,decls:6,vars:2,consts:function(){return[["kendoDialogTitleBarLocalizedMessages","","closeTitle",$localize(vve||(vve=le([":kendo.dialog.closeTitle|The title of the close button:Close"])))],[1,"k-window-title","k-dialog-title"],[1,"k-window-actions","k-dialog-actions"],["role","button",1,"k-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base","k-icon-button","k-window-action","k-dialog-action","k-dialog-close",3,"click"],[1,"k-button-icon","k-icon","k-i-x"]]},template:function(t,e){1&t&&(kn(),Ge(0,0),A(1,"div",1),dn(2),x(),A(3,"div",2)(4,"button",3),Q("click",function(a){return e.onCloseClick(a)}),z(5,"span",4),x()(),Ve()),2&t&&(k(4),ie("title",e.closeButtonTitle)("aria-label",e.closeButtonTitle))},directives:[PA],encapsulation:2}),i}(),Tve={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440923,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},BA=v(function i(){p(this,i)}),zU=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.wrapper=t,this.renderer=e,this.cdr=a,this.ngZone=o,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new O,this.close=new O,this.tabIndex=0,this.subscriptions=[],this.domSubs=new Je,jt(Tve),this.direction=n.rtl?"rtl":"ltr",this.subscriptions.push(n.changes.subscribe(function(l){return s.direction=l.rtl?"rtl":"ltr"})),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}return v(r,[{key:"htmlAttributes",get:function(){return this._htmlAttributes},set:function(e){!function(r,t,e){for(var n in r)n&&t.setAttribute(e,n,r[n])}(e,this.renderer,this.wrapper.nativeElement);var n=this.wrapper.nativeElement,a=n.getAttribute("dir"),o=n.getAttribute("tabindex");this.direction!==a&&a&&(this.direction=a),this.tabIndex!==o&&o&&(this.tabIndex=o),this._htmlAttributes=e}},{key:"cssClass",get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e}},{key:"dir",get:function(){return this.direction}},{key:"ngAfterContentInit",value:function(){var e=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(function(){Si(e.titlebarContent.first)&&(e.titlebarContent.first.id=e.titleId,e.ngZone.onStable.pipe(It(1)).subscribe(function(){e.bubble("close",e.titlebarContent.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))}))}},{key:"ngAfterViewInit",value:function(){var e=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(function(){Si(e.titlebarView.first)&&(e.titlebarView.first.id=e.titleId,e.ngZone.onStable.pipe(It(1)).subscribe(function(){e.bubble("close",e.titlebarView.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))})),this.initDomEvents()}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()}},{key:"focus",value:function(){var e=this.wrapper.nativeElement;Si(e)&&e.focus()}},{key:"initDomEvents",value:function(){var e=this;!this.wrapper||this.ngZone.runOutsideAngular(function(){e.domSubs.add(e.renderer.listen(e.wrapper.nativeElement,"keydown",function(n){e.onKeyDown(n)}))})}},{key:"onKeyDown",value:function(e){var n=this,a=e.target,o=a.parentElement;(e_(a,Cve)||e_(o,Cve))&&e.keyCode===ri.esc&&this.ngZone.run(function(){n.close.emit(new BA)}),e_(a,"k-button")&&e_(o,"k-dialog-buttongroup")&&(e.keyCode===ri.left||e.keyCode===ri.right)&&this.ngZone.run(function(){n.handleActionButtonFocus(o,e.keyCode)}),e.keyCode===ri.tab&&this.ngZone.run(function(){n.keepFocusWithinComponent(a,e)})}},{key:"setServiceClasses",value:function(e,n){var a=this,o=this.wrapper.nativeElement;e&&Pb(e).forEach(function(s){a.renderer.removeClass(o,s)}),n&&Pb(n).forEach(function(s){a.renderer.addClass(o,s)})}},{key:"handleInitialFocus",value:function(){var e=this.wrapper.nativeElement,n=this.findPrimary(e);if(this.autoFocusedElement){var a=e.querySelector(this.autoFocusedElement);a&&a.focus()}else this.shouldFocusPrimary(n)?n.focus():e.focus()}},{key:"findPrimary",value:function(e){return function(r){for(var t=r.length-1;t>=0;t--)for(var e=r[t].classList,n=0;n0){a[o-1].focus();break}if(n===ri.right&&o1&&void 0!==arguments[1])||arguments[1];if(r.tagName){var e=r.tagName.toLowerCase(),n=r.getAttribute("tabIndex"),a=null!==n&&!isNaN(n)&&n>-1;return(WCt.test(e)?!r.disabled:a)&&(!t||XCt(r))}return!1}(e)}},{key:"getAllFocusableChildren",value:function(e){return e.querySelectorAll(JCt)}},{key:"getFirstAndLastFocusable",value:function(e){var n=this.getAllFocusableChildren(e);return[n.length>0?n[0]:e,n.length>0?n[n.length-1]:e]}},{key:"generateTitleId",value:function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()}},{key:"generateContentId",value:function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()}},{key:"wrapperClass",get:function(){return!0}},{key:"styles",get:function(){var e={};return this.width&&(e.width=t_(this.width)),this.height&&(e.height=t_(this.height)),this.minWidth&&(e.minWidth=t_(this.minWidth)),this.maxWidth&&(e.maxWidth=t_(this.maxWidth)),this.minHeight&&(e.minHeight=t_(this.minHeight)),this.maxHeight&&(e.maxHeight=t_(this.maxHeight)),e}},{key:"bubble",value:function(e,n){var a=this;if(n){var s=n[e].subscribe(function(u){return a[e].emit(u)});this.subscriptions.push(s)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(Y),m(nt),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Vb,4),2&t&&P(a=B())&&(e.titlebarContent=a)},viewQuery:function(t,e){var n;1&t&&(ge(Gb,5),ge(Vb,5)),2&t&&(P(n=B())&&(e.actionsView=n.first),P(n=B())&&(e.titlebarView=n))},hostVars:4,hostBindings:function(t,e){2&t&&(ie("dir",e.dir)("tabIndex",e.tabIndex),ue("k-dialog-wrapper",e.wrapperClass))},inputs:{actions:"actions",actionsLayout:"actionsLayout",autoFocusedElement:"autoFocusedElement",title:"title",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",height:"height",minHeight:"minHeight",maxHeight:"maxHeight"},outputs:{action:"action",close:"close"},exportAs:["kendoDialog"],features:[de([Y,{provide:Dve,useExisting:Y},{provide:Dt,useValue:"kendo.dialog"}])],ngContentSelectors:MCt,decls:10,vars:10,consts:function(){return[["kendoDialogLocalizedMessages","","closeTitle",$localize(pve||(pve=le([":kendo.dialog.closeTitle|The title of the close button:Close"])))],[1,"k-overlay"],["role","dialog","aria-modal","true",1,"k-window","k-dialog",3,"ngStyle"],[3,"closeTitle","id",4,"ngIf"],[4,"ngIf"],[1,"k-content","k-window-content","k-dialog-content",3,"id"],[3,"actions","layout",4,"ngIf"],[3,"closeTitle","id"],[3,"ngTemplateOutlet"],[3,"actions","layout"]]},template:function(t,e){1&t&&(kn(xCt),Ge(0,0),z(1,"div",1),A(2,"div",2),T(3,bCt,2,3,"kendo-dialog-titlebar",3),T(4,SCt,1,0,"ng-content",4),A(5,"div",5),T(6,wCt,1,0,"ng-content",4),T(7,ECt,1,1,null,4),x(),T(8,TCt,1,0,"ng-content",4),T(9,ACt,1,2,"kendo-dialog-actions",6),x(),Ve()),2&t&&(k(1),y("@overlayAppear",void 0),k(1),y("ngStyle",e.styles)("@dialogSlideInAppear",void 0),k(1),y("ngIf",e.title),k(1),y("ngIf",!e.title),k(1),y("id",e.contentId),k(1),y("ngIf",!e.contentTemplate),k(1),y("ngIf",e.contentTemplate),k(1),y("ngIf",!e.actions),k(1),y("ngIf",e.actions))},directives:[Vb,Gb,PA,Vi,qe,En],encapsulation:2,data:{animation:[ef("overlayAppear",[Cd("in",Ft({opacity:1})),iu("void => *",[Ft({opacity:.1}),Ai(".3s cubic-bezier(.2, .6, .4, 1)")])]),ef("dialogSlideInAppear",[Cd("in",Ft({transform:"translate(0, 0)"})),iu("void => *",[Ft({transform:"translate(0, -10%)"}),Ai(".3s cubic-bezier(.2, 1, .2, 1)")])])]}}),i}(),Ave=v(function i(){p(this,i)}),rbt=function(){var i=function(){function r(t){p(this,r),this.dialog=t}return v(r,[{key:"ngAfterViewInit",value:function(){var e=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(Ue(function(n){return!n.isDefaultPrevented()})).subscribe(function(){e.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(function(n){return e.dialog.dialog.instance.action.emit(n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ave))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-content-base"]],viewQuery:function(t,e){var n;1&t&&(ge(Vb,5),ge(Gb,5)),2&t&&(P(n=B())&&(e.dialogTitleBar=n.first),P(n=B())&&(e.dialogActions=n.first))},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),xve=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"container",get:function(){return r.container},set:function(e){r.container=e}}]),r}();return i.container=null,i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),obt=function(){function i(r,t){p(this,i),this.getDialogRef=r,this.parentInjector=t}return v(i,[{key:"get",value:function(t,e){return t===Ave?this.getDialogRef():this.parentInjector.get(t,e)}}]),i}(),sbt=function(){var i=function(){function r(t,e){p(this,r),this.resolver=t,this.containerService=e}return v(r,[{key:"open",value:function(e){var n=this.resolver.resolveComponentFactory(zU),a=e.appendTo||this.containerService.container;if(!a)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n ");return this.initializeDialog(e.content,n,a,{close:function(){},content:null,dialog:null,result:null},e)}},{key:"initializeDialog",value:function(e,n,a,o,s){var l=this.contentFrom(e,a,o),u=a.createComponent(n,void 0,void 0,l.nodes);o.dialog=u,u.changeDetectorRef.markForCheck(),this.applyOptions(u.instance,s);var c=new Ot,d=function(E){E instanceof UU&&(E=new BA),c.next(E||new BA),l.componentRef&&l.componentRef.destroy(),u.destroy()},h=xn(c,xn(u.instance.close,u.instance.action).pipe(We(function(w){return w instanceof UU?new BA:w}),Ue(function(w){if(s.preventAction){var E=function(r){return GU(r)||r instanceof $e}(e)?void 0:o;return!s.preventAction(w,E)}return!0}))).pipe(It(1),nx());if(h.subscribe(d),o.close=d,o.result=h,e&&xt()){var f=l.nodes[0]&&l.nodes[0].length>0,g=l.nodes[2]&&l.nodes[2].length>0;e.prototype instanceof rbt?(s.title&&f||s.actions&&g)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(f||g)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")}return o}},{key:"applyOptions",value:function(e,n){e.title=n.title,e.actions=n.actions,e.actionsLayout=n.actionsLayout||"stretched",e.width=n.width,e.minWidth=n.minWidth,e.maxWidth=n.maxWidth,e.height=n.height,e.minHeight=n.minHeight,e.maxHeight=n.maxHeight,e.autoFocusedElement=n.autoFocusedElement,e.closeTitle=n.closeTitle,e.cssClass=n.cssClass,e.htmlAttributes=n.htmlAttributes,n.content instanceof $e&&(e.contentTemplate=n.content)}},{key:"contentFrom",value:function(e,n,a){var o=n.injector.get(Ee),s=[],l=[],u=[],c=null;if("string"==typeof e)s=[o.createText(e)];else if(e&&!(e instanceof $e)){var d=new obt(function(){return a},n.injector),h=this.resolver.resolveComponentFactory(e);c=n.createComponent(h,void 0,d),l=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),s=[c.location.nativeElement],u=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-actions")),a.content=c}return{componentRef:c,nodes:[l,s,u]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Ts),oe(xve))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),cbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],bt]}),i}(),dbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[xve,sbt],imports:[[cbt]]}),i}();function hbt(i,r){1&i&&z(0,"app-loading-spinner")}function fbt(i,r){1&i&&(A(0,"div"),z(1,"img",1),x())}function vbt(i,r){if(1&i){var t=xe();A(0,"kendo-dialog",35),Q("close",function(){return re(t),D(2).onProfileDialogClose()}),A(1,"p"),te(2,"Your profile has been successfully updated"),x(),A(3,"kendo-dialog-actions")(4,"button",36),Q("click",function(){return re(t),D(2).onProfileDialogClose()}),te(5,"OK"),x()()()}}function pbt(i,r){if(1&i){var t=xe();A(0,"kendo-dialog",37),Q("close",function(){return re(t),D(2).onDeleteDialogClose()}),A(1,"p"),te(2,"Account deletetion cannot be undone!"),x(),A(3,"kendo-dialog-actions")(4,"button",36),Q("click",function(){return re(t),D(2).onDeleteDialogClose()}),te(5,"Cancel"),x(),A(6,"button",38),Q("click",function(){return re(t),D(2).onDeleteDialogClose()}),te(7,"Delete Account"),x()()()}2&i&&(k(6),y("primary",!0))}var gbt=function(){return{"max-width":"100%"}};function mbt(i,r){if(1&i){var t=xe();A(0,"div")(1,"div",2)(2,"div",3)(3,"h2")(4,"span",4),te(5,"Account"),x(),te(6),x()(),A(7,"div",5)(8,"button",6),Q("click",function(){return re(t),D().onSignOutClick()}),te(9,"Sign out"),x()()(),A(10,"div",2)(11,"div",7)(12,"div",8)(13,"h3",9),te(14,"Public Profile"),x(),A(15,"div",10)(16,"div",2)(17,"div",11),z(18,"img",12),x(),A(19,"div",13)(20,"div",14)(21,"label",15),te(22,"Username"),x(),z(23,"input",16),x(),A(24,"div",14)(25,"label",15),te(26,"Name"),x(),z(27,"input",17),x(),A(28,"div",14)(29,"label",15),te(30,"Email"),x(),z(31,"input",18),x(),A(32,"div",14)(33,"label",19),z(34,"input",20),te(35," Keep my email address private "),x()(),A(36,"div",14)(37,"label",15),te(38,"Company"),x(),z(39,"input",21),x(),A(40,"div",14)(41,"label",15),te(42,"Location"),x(),z(43,"input",22),x(),A(44,"div",14)(45,"button",23),Q("click",function(){return re(t),D().onUpdateClick()}),te(46,"Update profile"),x()()()()()(),A(47,"div",24)(48,"h3",9),te(49,"Delete Account"),x(),A(50,"div",10)(51,"p"),te(52,"You will immediately lose access to your repositories and all other information associated with your account. "),A(53,"strong"),te(54,"This cannot be undone!"),x()(),A(55,"button",25),Q("click",function(){return re(t),D().onDeleteClick()}),te(56,"Delete Account"),x()()()(),A(57,"div",26)(58,"div",27)(59,"h3",9),te(60,"Notifications"),x(),A(61,"div",10)(62,"h4",15),te(63,"Automatically watch repositories?"),x(),A(64,"p",28),te(65,"When you are given push access to a repository, automatically receive notifications for it."),x(),A(66,"p"),z(67,"kendo-switch"),x(),A(68,"h4",15),te(69,"Receive updates to any conversations via email?"),x(),A(70,"p"),z(71,"kendo-switch",29),x(),A(72,"h4",15),te(73,"Receive updates to any repositories via email?"),x(),A(74,"p"),z(75,"kendo-switch",29),x()()(),A(76,"div",30)(77,"h3",9),te(78,"Update password"),x(),A(79,"div",10)(80,"div",14)(81,"label",15),te(82,"Old password"),x(),z(83,"input",31),x(),A(84,"div",14)(85,"label",15),te(86,"New password"),x(),z(87,"input",31),x(),A(88,"div",14)(89,"label",15),te(90,"Confirm password"),x(),z(91,"input",31),x(),A(92,"div",14)(93,"button",32),te(94,"Change password"),x()()()()()(),T(95,vbt,6,0,"kendo-dialog",33),T(96,pbt,8,1,"kendo-dialog",34),x()}if(2&i){var e=D();k(6),Jl(" ",e.user.login," - ",e.user.name," "),k(12),y("src",e.user.avatar_url,uc)("ngStyle",Tt(13,gbt)),k(5),y("value",e.user.login),k(4),y("value",e.user.name),k(4),y("value",e.user.email),k(8),y("value",e.user.company),k(4),y("value",e.user.location),k(28),y("checked",!0),k(4),y("checked",!0),k(20),y("ngIf",e.profileDialogVisible),k(1),y("ngIf",e.deleteDialogVisible)}}var _bt=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.githubService=t,this.router=e,this.isLoading=!0,this.user={},this.profileDialogVisible=!1,this.deleteDialogVisible=!1,t.getGithubUser("ggkrustev").subscribe(function(a){n.user=a,n.isLoading=!1},function(a){n.isLoading=!1})}return v(r,[{key:"onProfileDialogClose",value:function(){this.profileDialogVisible=!1}},{key:"onSignOutClick",value:function(){this.router.navigate(["/signin"])}},{key:"onUpdateClick",value:function(){this.profileDialogVisible=!0}},{key:"onDeleteClick",value:function(){this.deleteDialogVisible=!0}},{key:"onDeleteDialogClose",value:function(){this.deleteDialogVisible=!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Jp),m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-profile"]],features:[de([Jp])],decls:3,vars:3,consts:[[4,"ngIf"],["src","../../assets/noConnection.png",1,"center"],[1,"row"],[1,"col-md","text-center","text-md-left","mb-3"],[1,"small","text-uppercase","text-muted","d-block"],[1,"col-md","text-center","text-md-right"],[1,"btn","btn-light",3,"click"],[1,"col-12","col-lg-6","col-xl-8"],["id","profile",1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-md-3","col-lg-12","col-xl-3","text-center"],[1,"img-circle","mx-auto","mb-3",3,"src","ngStyle"],[1,"col-md-9","col-lg-12","col-xl-9"],[1,"form-group"],[1,"h6"],["type","text","id","username",1,"form-control",3,"value"],["type","text","id","name",1,"form-control",3,"value"],["type","email","id","email",1,"form-control",3,"value"],[1,"form-check-label","h6"],["type","checkbox","checked","",1,"form-check-input"],["type","text","id","company",1,"form-control",3,"value"],["type","text","id","location",1,"form-control",3,"value"],[1,"btn","btn-primary",3,"click"],["id","delete-account",1,"card"],[1,"btn","btn-danger",3,"click"],[1,"col-12","col-lg-6","col-xl-4"],["id","notifications",1,"card"],[1,"text-muted"],[3,"checked"],["id","password",1,"card"],["type","password",1,"form-control"],[1,"btn","btn-secondary"],["title","Thank you",3,"close",4,"ngIf"],["title","Are you sure you want to do this?",3,"close",4,"ngIf"],["title","Thank you",3,"close"],["kendoButton","",3,"click"],["title","Are you sure you want to do this?",3,"close"],["kendoButton","",3,"primary","click"]],template:function(t,e){1&t&&(T(0,hbt,1,0,"app-loading-spinner",0),T(1,fbt,2,0,"div",0),T(2,mbt,97,14,"div",0)),2&t&&(y("ngIf",e.isLoading),k(1),y("ngIf",!e.isLoading&&!e.user.id),k(1),y("ngIf",e.user.id&&!e.isLoading))},directives:[qe,tN,Vi,eZe,zU,Gb,Xa],styles:[".center{margin-left:auto;margin-right:auto;display:block}\n"],encapsulation:2}),i}(),ybt=function(){var i=function(){function r(t){p(this,r),this.router=t}return v(r,[{key:"id",get:function(){return"signin"}},{key:"appClass",get:function(){return"signin"}},{key:"onLoginClick",value:function(){this.router.navigate(["/dashboard"])}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-signin"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.id),Ar(e.appClass))},decls:15,vars:0,consts:[[1,"signin-form","p-5"],["id","app-title"],["id","app-subtitle"],[1,"form-group","mt-4"],["type","text","placeholder","Email or Username",1,"form-control"],[1,"form-group","mb-4"],["type","password","placeholder","Password",1,"form-control"],[1,"text-xs-right","small"],["href","#"],[1,"form-group"],[1,"btn","btn-primary","btn-block",3,"click"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"h1",1),te(2,"ISSUES"),x(),A(3,"p",2),te(4,"SAMPLE DASHBOARD"),x(),A(5,"div",3),z(6,"input",4),x(),A(7,"div",5),z(8,"input",6),A(9,"p",7)(10,"a",8),te(11,"Forgot it?"),x()()(),A(12,"div",9)(13,"button",10),Q("click",function(){return e.onLoginClick()}),te(14,"Log in"),x()()())},encapsulation:2}),i}(),kbt=[{path:"",pathMatch:"full",redirectTo:"/dashboard"},{path:"dashboard",component:p7e},{path:"issues",component:mCt},{path:"profile",component:_bt},{path:"signin",component:ybt}],Cbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[zj.forRoot(kbt,{useHash:!0,relativeLinkResolution:"legacy"})],zj]}),i}();function bbt(i){return new y1e(i,"./assets/i18n/",".json")}Sy.PLATFORM_TARGET=Sy.PLATFORMS.WEB;var Sbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i,bootstrap:[IAe]}),i.\u0275inj=Fe({providers:[],imports:[[Cbt,h1e.register("ngsw-worker.js",{enabled:true}),oK,GWe,_kt,dbt,_C,gRe,WFe,zEe,wK,_1e.forRoot({loader:{provide:by,useFactory:bbt,deps:[wK]}})]]}),i}();(function pSe(){if(_4)throw new Error("Cannot enable prod mode after platform setup.");m4=!1})(),bDe().bootstrapModule(Sbt).catch(function(i){return console.error(i)})},386:function(Pv,i_,od){var Yu;!function($r,q,zA,$){"use strict";var ho,r_=["","webkit","Moz","MS","ms","o"],v=q.createElement("div"),ps=Math.round,b=Math.abs,Bv=Date.now;function Rh(Z,F,W){return setTimeout(a_(Z,W),F)}function Xe(Z,F,W){return!!Array.isArray(Z)&&(gs(Z,W[F],W),!0)}function gs(Z,F,W){var ce;if(Z)if(Z.forEach)Z.forEach(F,W);else if(Z.length!==$)for(ce=0;ce\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Zt=$r.console&&($r.console.warn||$r.console.log);return Zt&&Zt.call($r.console,ce,Ye),Z.apply(this,arguments)}}ho="function"!=typeof Object.assign?function(F){if(F===$||null===F)throw new TypeError("Cannot convert undefined or null to object");for(var W=Object(F),ce=1;ce-1}function Vv(Z){return Z.trim().split(/\s+/g)}function Ae(Z,F,W){if(Z.indexOf&&!W)return Z.indexOf(F);for(var ce=0;ceda[F]}):ce.sort()),ce}function Er(Z,F){for(var W,ce,Me=F[0].toUpperCase()+F.slice(1),Ye=0;Ye1&&!W.firstMultiple?W.firstMultiple=An(F):1===Me&&(W.firstMultiple=!1);var Ye=W.firstInput,Zt=W.firstMultiple,Gi=Zt?Zt.center:Ye.center,or=F.center=u_(ce);F.timeStamp=Bv(),F.deltaTime=F.timeStamp-Ye.timeStamp,F.angle=Ot(Gi,or),F.distance=Hv(Gi,or),function XU(Z,F){var W=F.center,ce=Z.offsetDelta||{},Me=Z.prevDelta||{},Ye=Z.prevInput||{};(1===F.eventType||4===Ye.eventType)&&(Me=Z.prevDelta={x:Ye.deltaX||0,y:Ye.deltaY||0},ce=Z.offsetDelta={x:W.x,y:W.y}),F.deltaX=Me.x+(W.x-ce.x),F.deltaY=Me.y+(W.y-ce.y)}(W,F),F.offsetDirection=Xb(F.deltaX,F.deltaY);var da=qb(F.deltaTime,F.deltaX,F.deltaY);F.overallVelocityX=da.x,F.overallVelocityY=da.y,F.overallVelocity=b(da.x)>b(da.y)?da.x:da.y,F.scale=Zt?function Yb(Z,F){return Hv(F[0],F[1],zv)/Hv(Z[0],Z[1],zv)}(Zt.pointers,ce):1,F.rotation=Zt?function Zb(Z,F){return Ot(F[1],F[0],zv)+Ot(Z[1],Z[0],zv)}(Zt.pointers,ce):0,F.maxPointers=W.prevInput?F.pointers.length>W.prevInput.maxPointers?F.pointers.length:W.prevInput.maxPointers:F.pointers.length,function $b(Z,F){var Me,Ye,Zt,Gi,W=Z.lastInterval||F,ce=F.timeStamp-W.timeStamp;if(8!=F.eventType&&(ce>25||W.velocity===$)){var or=F.deltaX-W.deltaX,da=F.deltaY-W.deltaY,go=qb(ce,or,da);Ye=go.x,Zt=go.y,Me=b(go.x)>b(go.y)?go.x:go.y,Gi=Xb(or,da),Z.lastInterval=F}else Me=W.velocity,Ye=W.velocityX,Zt=W.velocityY,Gi=W.direction;F.velocity=Me,F.velocityX=Ye,F.velocityY=Zt,F.direction=Gi}(W,F);var go=Z.element;o_(F.srcEvent.target,go)&&(go=F.srcEvent.target),F.target=go}(Z,W),Z.emit("hammer.input",W),Z.recognize(W),Z.session.prevInput=W}function An(Z){for(var F=[],W=0;W=b(F)?Z<0?2:4:F<0?8:16}function Hv(Z,F,W){W||(W=Gh);var ce=F[W[0]]-Z[W[0]],Me=F[W[1]]-Z[W[1]];return Math.sqrt(ce*ce+Me*Me)}function Ot(Z,F,W){return W||(W=Gh),180*Math.atan2(F[W[1]]-Z[W[1]],F[W[0]]-Z[W[0]])/Math.PI}xa.prototype={handler:function(){},init:function(){this.evEl&&De(this.element,this.evEl,this.domHandler),this.evTarget&&De(this.target,this.evTarget,this.domHandler),this.evWin&&De(Uv(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Ih(this.element,this.evEl,this.domHandler),this.evTarget&&Ih(this.target,this.evTarget,this.domHandler),this.evWin&&Ih(Uv(this.element),this.evWin,this.domHandler)}};var oi={mousedown:1,mousemove:2,mouseup:4},Wn="mousedown",KA="mousemove mouseup";function We(){this.evEl=Wn,this.evWin=KA,this.pressed=!1,xa.apply(this,arguments)}Aa(We,xa,{handler:function(F){var W=oi[F.type];1&W&&0===F.button&&(this.pressed=!0),2&W&&1!==F.which&&(W=4),this.pressed&&(4&W&&(this.pressed=!1),this.callback(this.manager,W,{pointers:[F],changedPointers:[F],pointerType:ld,srcEvent:F}))}});var c_={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ZU={2:sd,3:"pen",4:ld,5:"kinect"},d_="pointerdown",jA="pointermove pointerup pointercancel";function Qb(){this.evEl=d_,this.evWin=jA,xa.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}$r.MSPointerEvent&&!$r.PointerEvent&&(d_="MSPointerDown",jA="MSPointerMove MSPointerUp MSPointerCancel"),Aa(Qb,xa,{handler:function(F){var W=this.store,ce=!1,Me=F.type.toLowerCase().replace("ms",""),Ye=c_[Me],Zt=ZU[F.pointerType]||F.pointerType,Gi=Zt==sd,or=Ae(W,F.pointerId,"pointerId");1&Ye&&(0===F.button||Gi)?or<0&&(W.push(F),or=W.length-1):12&Ye&&(ce=!0),!(or<0)&&(W[or]=F,this.callback(this.manager,Ye,{pointers:W,changedPointers:[F],pointerType:Zt,srcEvent:F}),ce&&W.splice(or,1))}});var YU={touchstart:1,touchmove:2,touchend:4,touchcancel:8},QU="touchstart",WA="touchstart touchmove touchend touchcancel";function $A(){this.evTarget=QU,this.evWin=WA,this.started=!1,xa.apply(this,arguments)}function Jb(Z,F){var W=qr(Z.touches),ce=qr(Z.changedTouches);return 12&F&&(W=Hb(W.concat(ce),"identifier",!0)),[W,ce]}Aa($A,xa,{handler:function(F){var W=YU[F.type];if(1===W&&(this.started=!0),this.started){var ce=Jb.call(this,F,W);12&W&&ce[0].length-ce[1].length==0&&(this.started=!1),this.callback(this.manager,W,{pointers:ce[0],changedPointers:ce[1],pointerType:sd,srcEvent:F})}}});var JU={touchstart:1,touchmove:2,touchend:4,touchcancel:8},eS="touchstart touchmove touchend touchcancel";function Kv(){this.evTarget=eS,this.targetIds={},xa.apply(this,arguments)}function ez(Z,F){var W=qr(Z.touches),ce=this.targetIds;if(3&F&&1===W.length)return ce[W[0].identifier]=!0,[W,W];var Me,Ye,Zt=qr(Z.changedTouches),Gi=[],or=this.target;if(Ye=W.filter(function(da){return o_(da.target,or)}),1===F)for(Me=0;Me-1&&ce.splice(Zt,1)},2500)}}function YA(Z){for(var F=Z.srcEvent.clientX,W=Z.srcEvent.clientY,ce=0;ce-1&&this.requireFail.splice(W,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(F){return!!this.simultaneous[F.id]},emit:function(F){var W=this,ce=this.state;function Me(Ye){W.manager.emit(Ye,F)}ce<8&&Me(W.options.event+aS(ce)),Me(W.options.event),F.additionalEvent&&Me(F.additionalEvent),ce>=8&&Me(W.options.event+aS(ce))},tryEmit:function(F){if(this.canEmit())return this.emit(F);this.state=32},canEmit:function(){for(var F=0;FW.threshold&&Ye&W.direction},attrTest:function(F){return Io.prototype.attrTest.call(this,F)&&(2&this.state||!(2&this.state)&&this.directionTest(F))},emit:function(F){this.pX=F.deltaX,this.pY=F.deltaY;var W=oS(F.direction);W&&(F.additionalEvent=this.options.event+W),this._super.emit.call(this,F)}}),Aa(h_,Io,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ud]},attrTest:function(F){return this._super.attrTest.call(this,F)&&(Math.abs(F.scale-1)>this.options.threshold||2&this.state)},emit:function(F){1!==F.scale&&(F.additionalEvent=this.options.event+(F.scale<1?"in":"out")),this._super.emit.call(this,F)}}),Aa(f_,Pi,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(F){var W=this.options,ce=F.pointers.length===W.pointers,Me=F.distanceW.time;if(this._input=F,!Me||!ce||12&F.eventType&&!Ye)this.reset();else if(1&F.eventType)this.reset(),this._timer=Rh(function(){this.state=8,this.tryEmit()},W.time,this);else if(4&F.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(F){8===this.state&&(F&&4&F.eventType?this.manager.emit(this.options.event+"up",F):(this._input.timeStamp=Bv(),this.manager.emit(this.options.event,this._input)))}}),Aa(No,Io,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ud]},attrTest:function(F){return this._super.attrTest.call(this,F)&&(Math.abs(F.rotation)>this.options.threshold||2&this.state)}}),Aa(v_,Io,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Uh.prototype.getTouchAction.call(this)},attrTest:function(F){var ce,W=this.options.direction;return 30&W?ce=F.overallVelocity:6&W?ce=F.overallVelocityX:24&W&&(ce=F.overallVelocityY),this._super.attrTest.call(this,F)&&W&F.offsetDirection&&F.distance>this.options.threshold&&F.maxPointers==this.options.pointers&&b(ce)>this.options.velocity&&4&F.eventType},emit:function(F){var W=oS(F.offsetDirection);W&&this.manager.emit(this.options.event+W,F),this.manager.emit(this.options.event,F)}}),Aa(Bi,Pi,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[nS]},process:function(F){var W=this.options,ce=F.pointers.length===W.pointers,Me=F.distancei.length)&&(r=i.length);for(var t=0,e=new Array(r);t=i.length?{done:!0}:{done:!1,value:i[e++]}},e:function(u){throw u},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,o=!1;return{s:function(){t=t.call(i)},n:function(){var u=t.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&null!=t.return&&t.return()}finally{if(o)throw s}}}}function Aa(i){if(Array.isArray(i))return i}function Gv(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Gt(i,r){return Aa(i)||function a_(i,r){var t=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null!=t){var o,s,e=[],n=!0,a=!1;try{for(t=t.call(i);!(n=(o=t.next()).done)&&(e.push(o.value),!r||e.length!==r);n=!0);}catch(l){a=!0,s=l}finally{try{!n&&null!=t.return&&t.return()}finally{if(a)throw s}}return e}}(i,r)||Oh(i,r)||Gv()}function De(i,r,t){return r in i?Object.defineProperty(i,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[r]=t,i}function Ih(i){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)}function Ae(i){return function Qu(i){if(Array.isArray(i))return ho(i)}(i)||Ih(i)||Oh(i)||function Vv(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qr(i,r,t){return(qr=Bv()?Reflect.construct:function(n,a,o){var s=[null];s.push.apply(s,a);var u=new(Function.bind.apply(n,s));return o&&ps(u,o.prototype),u}).apply(null,arguments)}function Er(i){var r="function"==typeof Map?new Map:void 0;return Er=function(e){if(null===e||!function Hb(i){return-1!==Function.toString.call(i).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return qr(e,arguments,q(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ps(n,e)},Er(i)}function wn(i){return"function"==typeof i}function s_(i){var t=i(function(n){Error.call(n),n.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}od.r($r),od.d($r,{easeOutElastic:function(){return KLe},linear:function(){return HLe},swing:function(){return zLe}});var Uv=s_(function(i){return function(t){i(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(e,n){return"".concat(n+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t}});function Nh(i,r){if(i){var t=i.indexOf(r);0<=t&&i.splice(t,1)}}var i,Je=function(){function i(r){p(this,i),this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return v(i,[{key:"unsubscribe",value:function(){var t;if(!this.closed){this.closed=!0;var e=this._parentage;if(e)if(this._parentage=null,Array.isArray(e)){var a,n=In(e);try{for(n.s();!(a=n.n()).done;)a.value.remove(this)}catch(h){n.e(h)}finally{n.f()}}else e.remove(this);var s=this.initialTeardown;if(wn(s))try{s()}catch(h){t=h instanceof Uv?h.errors:[h]}var l=this._finalizers;if(l){this._finalizers=null;var c,u=In(l);try{for(u.s();!(c=u.n()).done;){var d=c.value;try{sd(d)}catch(h){t=null!=t?t:[],h instanceof Uv?t=[].concat(Ae(t),Ae(h.errors)):t.push(h)}}}catch(h){u.e(h)}finally{u.f()}}if(t)throw new Uv(t)}}},{key:"add",value:function(t){var e;if(t&&t!==this)if(this.closed)sd(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}},{key:"_hasParent",value:function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)}},{key:"_addParent",value:function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}},{key:"_removeParent",value:function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Nh(e,t)}},{key:"remove",value:function(t){var e=this._finalizers;e&&Nh(e,t),t instanceof i&&t._removeParent(this)}}]),i}();Je.EMPTY=((i=new Je).closed=!0,i);var Kb=Je.EMPTY;function jb(i){return i instanceof Je||i&&"closed"in i&&wn(i.remove)&&wn(i.add)&&wn(i.unsubscribe)}function sd(i){wn(i)?i():i.unsubscribe()}var ld={setTimeout:function(i){function r(t,e){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(i,r){for(var t=ld.delegate,e=arguments.length,n=new Array(e>2?e-2:0),a=2;a0}},{key:"_trySubscribe",value:function(a){return this._throwIfClosed(),$(q(e.prototype),"_trySubscribe",this).call(this,a)}},{key:"_subscribe",value:function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)}},{key:"_innerSubscribe",value:function(a){var o=this,u=this.observers;return this.hasError||this.isStopped?Kb:(this.currentObservers=null,u.push(a),new Je(function(){o.currentObservers=null,Nh(u,a)}))}},{key:"_checkFinalizedStatuses",value:function(a){var l=this.isStopped;this.hasError?a.error(this.thrownError):l&&a.complete()}},{key:"asObservable",value:function(){var a=new An;return a.source=this,a}}]),e}(An);return i.create=function(r,t){return new Zb(r,t)},i}(),Zb=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).destination=e,a.source=n,a}return v(t,[{key:"next",value:function(n){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.next)||void 0===o||o.call(a,n)}},{key:"error",value:function(n){var a,o;null===(o=null===(a=this.destination)||void 0===a?void 0:a.error)||void 0===o||o.call(a,n)}},{key:"complete",value:function(){var n,a;null===(a=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===a||a.call(n)}},{key:"_subscribe",value:function(n){var a,o;return null!==(o=null===(a=this.source)||void 0===a?void 0:a.subscribe(n))&&void 0!==o?o:Kb}}]),t}(Ot);function Yb(i){return wn(null==i?void 0:i.lift)}function oi(i){return function(r){if(Yb(r))return r.lift(function(t){try{return i(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}function Wn(i,r,t,e,n){return new KA(i,r,t,e,n)}var KA=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u,c,d,h;return p(this,t),(h=r.call(this,e)).onFinalize=s,h.shouldUnsubscribe=l,h._next=n?function(f){try{n(f)}catch(g){e.error(g)}}:$((u=Xe(h),q(t.prototype)),"_next",u),h._error=o?function(f){try{o(f)}catch(g){e.error(g)}finally{this.unsubscribe()}}:$((c=Xe(h),q(t.prototype)),"_error",c),h._complete=a?function(){try{a()}catch(f){e.error(f)}finally{this.unsubscribe()}}:$((d=Xe(h),q(t.prototype)),"_complete",d),h}return v(t,[{key:"unsubscribe",value:function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var a=this.closed;$(q(t.prototype),"unsubscribe",this).call(this),!a&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}]),t}(tc);function We(i,r){return oi(function(t,e){var n=0;t.subscribe(Wn(e,function(a){e.next(i.call(r,a,n++))}))})}function Zs(i){return this instanceof Zs?(this.v=i,this):new Zs(i)}function XA(i,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t.apply(i,r||[]),a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(h){e[h]&&(n[h]=function(f){return new Promise(function(g,_){a.push([h,f,g,_])>1||s(h,f)})})}function s(h,f){try{!function l(h){h.value instanceof Zs?Promise.resolve(h.value.v).then(u,c):d(a[0][2],h)}(e[h](f))}catch(g){d(a[0][3],g)}}function u(h){s("next",h)}function c(h){s("throw",h)}function d(h,f){h(f),a.shift(),a.length&&s(a[0][0],a[0][1])}}function YA(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=i[Symbol.asyncIterator];return r?r.call(i):(i=function eS(i){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&i[r],e=0;if(t)return t.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&e>=i.length&&(i=void 0),{value:i&&i[e++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),t={},e("next"),e("throw"),e("return"),t[Symbol.asyncIterator]=function(){return this},t);function e(a){t[a]=i[a]&&function(o){return new Promise(function(s,l){!function n(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}(s,l,(o=i[a](o)).done,o.value)})}}}var ic=function(r){return r&&"number"==typeof r.length&&"function"!=typeof r};function Vh(i){return wn(null==i?void 0:i.then)}function Wv(i){return wn(i[l_])}function iS(i){return Symbol.asyncIterator&&wn(null==i?void 0:i[Symbol.asyncIterator])}function rS(i){return new TypeError("You provided ".concat(null!==i&&"object"==typeof i?"an invalid object":"'".concat(i,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var Ua=function $v(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function rc(i){return wn(null==i?void 0:i[Ua])}function _s(){_s=function(){return i};var i={},r=Object.prototype,t=r.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",a=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function s(G,I,K){return Object.defineProperty(G,I,{value:K,enumerable:!0,configurable:!0,writable:!0}),G[I]}try{s({},"")}catch(G){s=function(K,H,se){return K[H]=se}}function l(G,I,K,H){var Ne,Ce,_e,Be,me=Object.create((I&&I.prototype instanceof d?I:d).prototype),ae=new U(H||[]);return me._invoke=(Ne=G,Ce=K,_e=ae,Be="suspendedStart",function(je,kt){if("executing"===Be)throw new Error("Generator is already running");if("completed"===Be){if("throw"===je)throw kt;return{value:void 0,done:!0}}for(_e.method=je,_e.arg=kt;;){var Xt=_e.delegate;if(Xt){var zn=R(Xt,_e);if(zn){if(zn===c)continue;return zn}}if("next"===_e.method)_e.sent=_e._sent=_e.arg;else if("throw"===_e.method){if("suspendedStart"===Be)throw Be="completed",_e.arg;_e.dispatchException(_e.arg)}else"return"===_e.method&&_e.abrupt("return",_e.arg);Be="executing";var On=u(Ne,Ce,_e);if("normal"===On.type){if(Be=_e.done?"completed":"suspendedYield",On.arg===c)continue;return{value:On.arg,done:_e.done}}"throw"===On.type&&(Be="completed",_e.method="throw",_e.arg=On.arg)}}),me}function u(G,I,K){try{return{type:"normal",arg:G.call(I,K)}}catch(H){return{type:"throw",arg:H}}}i.wrap=l;var c={};function d(){}function h(){}function f(){}var g={};s(g,n,function(){return this});var _=Object.getPrototypeOf,C=_&&_(_(ee([])));C&&C!==r&&t.call(C,n)&&(g=C);var w=f.prototype=d.prototype=Object.create(g);function E(G){["next","throw","return"].forEach(function(I){s(G,I,function(K){return this._invoke(I,K)})})}function M(G,I){function K(se,me,ae,Ne){var Ce=u(G[se],G,me);if("throw"!==Ce.type){var _e=Ce.arg,Be=_e.value;return Be&&"object"==typeof Be&&t.call(Be,"__await")?I.resolve(Be.__await).then(function(je){K("next",je,ae,Ne)},function(je){K("throw",je,ae,Ne)}):I.resolve(Be).then(function(je){_e.value=je,ae(_e)},function(je){return K("throw",je,ae,Ne)})}Ne(Ce.arg)}var H;this._invoke=function(se,me){function ae(){return new I(function(Ne,Ce){K(se,me,Ne,Ce)})}return H=H?H.then(ae,ae):ae()}}function R(G,I){var K=G.iterator[I.method];if(void 0===K){if(I.delegate=null,"throw"===I.method){if(G.iterator.return&&(I.method="return",I.arg=void 0,R(G,I),"throw"===I.method))return c;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var H=u(K,G.iterator,I.arg);if("throw"===H.type)return I.method="throw",I.arg=H.arg,I.delegate=null,c;var se=H.arg;return se?se.done?(I[G.resultName]=se.value,I.next=G.nextLoc,"return"!==I.method&&(I.method="next",I.arg=void 0),I.delegate=null,c):se:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,c)}function N(G){var I={tryLoc:G[0]};1 in G&&(I.catchLoc=G[1]),2 in G&&(I.finallyLoc=G[2],I.afterLoc=G[3]),this.tryEntries.push(I)}function V(G){var I=G.completion||{};I.type="normal",delete I.arg,G.completion=I}function U(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(N,this),this.reset(!0)}function ee(G){if(G){var I=G[n];if(I)return I.call(G);if("function"==typeof G.next)return G;if(!isNaN(G.length)){var K=-1,H=function se(){for(;++K=0;--se){var me=this.tryEntries[se],ae=me.completion;if("root"===me.tryLoc)return H("end");if(me.tryLoc<=this.prev){var Ne=t.call(me,"catchLoc"),Ce=t.call(me,"finallyLoc");if(Ne&&Ce){if(this.prev=0;--H){var se=this.tryEntries[H];if(se.tryLoc<=this.prev&&t.call(se,"finallyLoc")&&this.prev=0;--K){var H=this.tryEntries[K];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),V(H),c}},catch:function(I){for(var K=this.tryEntries.length-1;K>=0;--K){var H=this.tryEntries[K];if(H.tryLoc===I){var se=H.completion;if("throw"===se.type){var me=se.arg;V(H)}return me}}throw new Error("illegal catch attempt")},delegateYield:function(I,K,H){return this.delegate={iterator:ee(I),resultName:K,nextLoc:H},"next"===this.method&&(this.arg=void 0),c}},i}function ys(i){return XA(this,arguments,_s().mark(function r(){var t,e,n;return _s().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=i.getReader(),s.prev=1;case 2:return s.next=5,Zs(t.read());case 5:if(n=(e=s.sent).value,!e.done){s.next=12;break}return s.next=11,Zs(void 0);case 11:return s.abrupt("return",s.sent);case 12:return s.next=14,Zs(n);case 14:return s.next=16,s.sent;case 16:s.next=2;break;case 18:return s.prev=18,t.releaseLock(),s.finish(18);case 21:case"end":return s.stop()}},r,null,[[1,,18,21]])}))}function cd(i){return wn(null==i?void 0:i.getReader)}function vo(){vo=function(){return i};var i={},r=Object.prototype,t=r.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",a=e.asyncIterator||"@@asyncIterator",o=e.toStringTag||"@@toStringTag";function s(G,I,K){return Object.defineProperty(G,I,{value:K,enumerable:!0,configurable:!0,writable:!0}),G[I]}try{s({},"")}catch(G){s=function(K,H,se){return K[H]=se}}function l(G,I,K,H){var Ne,Ce,_e,Be,me=Object.create((I&&I.prototype instanceof d?I:d).prototype),ae=new U(H||[]);return me._invoke=(Ne=G,Ce=K,_e=ae,Be="suspendedStart",function(je,kt){if("executing"===Be)throw new Error("Generator is already running");if("completed"===Be){if("throw"===je)throw kt;return{value:void 0,done:!0}}for(_e.method=je,_e.arg=kt;;){var Xt=_e.delegate;if(Xt){var zn=R(Xt,_e);if(zn){if(zn===c)continue;return zn}}if("next"===_e.method)_e.sent=_e._sent=_e.arg;else if("throw"===_e.method){if("suspendedStart"===Be)throw Be="completed",_e.arg;_e.dispatchException(_e.arg)}else"return"===_e.method&&_e.abrupt("return",_e.arg);Be="executing";var On=u(Ne,Ce,_e);if("normal"===On.type){if(Be=_e.done?"completed":"suspendedYield",On.arg===c)continue;return{value:On.arg,done:_e.done}}"throw"===On.type&&(Be="completed",_e.method="throw",_e.arg=On.arg)}}),me}function u(G,I,K){try{return{type:"normal",arg:G.call(I,K)}}catch(H){return{type:"throw",arg:H}}}i.wrap=l;var c={};function d(){}function h(){}function f(){}var g={};s(g,n,function(){return this});var _=Object.getPrototypeOf,C=_&&_(_(ee([])));C&&C!==r&&t.call(C,n)&&(g=C);var w=f.prototype=d.prototype=Object.create(g);function E(G){["next","throw","return"].forEach(function(I){s(G,I,function(K){return this._invoke(I,K)})})}function M(G,I){function K(se,me,ae,Ne){var Ce=u(G[se],G,me);if("throw"!==Ce.type){var _e=Ce.arg,Be=_e.value;return Be&&"object"==typeof Be&&t.call(Be,"__await")?I.resolve(Be.__await).then(function(je){K("next",je,ae,Ne)},function(je){K("throw",je,ae,Ne)}):I.resolve(Be).then(function(je){_e.value=je,ae(_e)},function(je){return K("throw",je,ae,Ne)})}Ne(Ce.arg)}var H;this._invoke=function(se,me){function ae(){return new I(function(Ne,Ce){K(se,me,Ne,Ce)})}return H=H?H.then(ae,ae):ae()}}function R(G,I){var K=G.iterator[I.method];if(void 0===K){if(I.delegate=null,"throw"===I.method){if(G.iterator.return&&(I.method="return",I.arg=void 0,R(G,I),"throw"===I.method))return c;I.method="throw",I.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var H=u(K,G.iterator,I.arg);if("throw"===H.type)return I.method="throw",I.arg=H.arg,I.delegate=null,c;var se=H.arg;return se?se.done?(I[G.resultName]=se.value,I.next=G.nextLoc,"return"!==I.method&&(I.method="next",I.arg=void 0),I.delegate=null,c):se:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,c)}function N(G){var I={tryLoc:G[0]};1 in G&&(I.catchLoc=G[1]),2 in G&&(I.finallyLoc=G[2],I.afterLoc=G[3]),this.tryEntries.push(I)}function V(G){var I=G.completion||{};I.type="normal",delete I.arg,G.completion=I}function U(G){this.tryEntries=[{tryLoc:"root"}],G.forEach(N,this),this.reset(!0)}function ee(G){if(G){var I=G[n];if(I)return I.call(G);if("function"==typeof G.next)return G;if(!isNaN(G.length)){var K=-1,H=function se(){for(;++K=0;--se){var me=this.tryEntries[se],ae=me.completion;if("root"===me.tryLoc)return H("end");if(me.tryLoc<=this.prev){var Ne=t.call(me,"catchLoc"),Ce=t.call(me,"finallyLoc");if(Ne&&Ce){if(this.prev=0;--H){var se=this.tryEntries[H];if(se.tryLoc<=this.prev&&t.call(se,"finallyLoc")&&this.prev=0;--K){var H=this.tryEntries[K];if(H.finallyLoc===I)return this.complete(H.completion,H.afterLoc),V(H),c}},catch:function(I){for(var K=this.tryEntries.length-1;K>=0;--K){var H=this.tryEntries[K];if(H.tryLoc===I){var se=H.completion;if("throw"===se.type){var me=se.arg;V(H)}return me}}throw new Error("illegal catch attempt")},delegateYield:function(I,K,H){return this.delegate={iterator:ee(I),resultName:K,nextLoc:H},"next"===this.method&&(this.arg=void 0),c}},i}function Pi(i){if(i instanceof An)return i;if(null!=i){if(Wv(i))return function aS(i){return new An(function(r){var t=i[l_]();if(wn(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(ic(i))return function oS(i){return new An(function(r){for(var t=0;t3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=r.schedule(function(){t(),n?i.add(this.schedule(null,e)):this.unsubscribe()},e);if(i.add(a),!n)return a}function v_(i,r,t,e,n,a,o,s){var l=[],u=0,c=0,d=!1,h=function(){d&&!l.length&&!u&&r.complete()},f=function(C){return u2&&void 0!==arguments[2]?arguments[2]:1/0;return wn(r)?Bi(function(e,n){return We(function(a,o){return r(e,a,n,o)})(Pi(i(e,n)))},t):("number"==typeof r&&(t=r),oi(function(e,n){return v_(e,n,i,t)}))}function Fo(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return Bi(zl,i)}var po=new An(function(i){return i.complete()});function g_(i){return i&&wn(i.schedule)}function m_(i){return i[i.length-1]}function __(i){return wn(m_(i))?i.pop():void 0}function Z(i){return g_(m_(i))?i.pop():void 0}function F(i,r){return"number"==typeof m_(i)?i.pop():r}function W(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return oi(function(t,e){t.subscribe(Wn(e,function(n){return No(e,i,function(){return e.next(n)},r)},function(){return No(e,i,function(){return e.complete()},r)},function(n){return No(e,i,function(){return e.error(n)},r)}))})}function ce(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return oi(function(t,e){e.add(i.schedule(function(){return t.subscribe(e)},r))})}function or(i,r){if(!i)throw new Error("Iterable cannot be null");return new An(function(t){No(t,r,function(){var e=i[Symbol.asyncIterator]();No(t,r,function(){e.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function wi(i,r){return r?function go(i,r){if(null!=i){if(Wv(i))return function Me(i,r){return Pi(i).pipe(ce(r),W(r))}(i,r);if(ic(i))return function Zt(i,r){return new An(function(t){var e=0;return r.schedule(function(){e===i.length?t.complete():(t.next(i[e++]),t.closed||this.schedule())})})}(i,r);if(Vh(i))return function Ye(i,r){return Pi(i).pipe(ce(r),W(r))}(i,r);if(iS(i))return or(i,r);if(rc(i))return function Gi(i,r){return new An(function(t){var e;return No(t,r,function(){e=i[Ua](),No(t,r,function(){var n,a;try{var o=e.next();n=o.value,a=o.done}catch(s){return void t.error(s)}a?t.complete():t.next(n)},0,!0)}),function(){return wn(null==e?void 0:e.return)&&e.return()}})}(i,r);if(cd(i))return function da(i,r){return or(ys(i),r)}(i,r)}throw rS(i)}(i,r):Pi(i)}function xn(){for(var i=arguments.length,r=new Array(i),t=0;t0&&void 0!==arguments[0]?arguments[0]:{},r=i.connector,t=void 0===r?function(){return new Ot}:r,e=i.resetOnError,n=void 0===e||e,a=i.resetOnComplete,o=void 0===a||a,s=i.resetOnRefCountZero,l=void 0===s||s;return function(u){var c=null,d=null,h=null,f=0,g=!1,_=!1,C=function(){null==d||d.unsubscribe(),d=null},w=function(){C(),c=h=null,g=_=!1},E=function(){var R=c;w(),null==R||R.unsubscribe()};return oi(function(M,R){f++,!_&&!g&&C();var N=h=null!=h?h:t();R.add(function(){0==--f&&!_&&!g&&(d=ix(E,l))}),N.subscribe(R),c||(c=new Bh({next:function(U){return N.next(U)},error:function(U){_=!0,C(),d=ix(w,n,U),N.error(U)},complete:function(){g=!0,C(),d=ix(w,o),N.complete()}}),wi(M).subscribe(c))})(u)}}function ix(i,r){if(!0===r)return i(),null;if(!1===r)return null;for(var t=arguments.length,e=new Array(t>2?t-2:0),n=2;n ".concat(t," ").concat(e," ").concat(r," <=Actual]")))}(r,i,null,"!=")}function pe(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function Fe(i){return{providers:i.providers||[],imports:i.imports||[]}}function sx(i){return iz(i,lS)||iz(i,az)}function iz(i,r){return i.hasOwnProperty(r)?i[r]:null}function rz(i){return i&&(i.hasOwnProperty(lx)||i.hasOwnProperty(wpe))?i[lx]:null}var ux,lS=mi({"\u0275prov":mi}),lx=mi({"\u0275inj":mi}),az=mi({ngInjectableDef:mi}),wpe=mi({ngInjectorDef:mi}),tn=function(){return(tn=tn||{})[tn.Default=0]="Default",tn[tn.Host=1]="Host",tn[tn.Self=2]="Self",tn[tn.SkipSelf=4]="SkipSelf",tn[tn.Optional=8]="Optional",tn}();function Dpe(){return ux}function dd(i){var r=ux;return ux=i,r}function oz(i,r,t){var e=sx(i);return e&&"root"==e.providedIn?void 0===e.value?e.value=e.factory():e.value:t&tn.Optional?null:void 0!==r?r:void sS(si(i),"Injector")}function hd(i){return{toString:i}.toString()}var Ys=function(){return(Ys=Ys||{})[Ys.OnPush=0]="OnPush",Ys[Ys.Default=1]="Default",Ys}(),Qs=function(){return function(i){i[i.Emulated=0]="Emulated",i[i.None=2]="None",i[i.ShadowDom=3]="ShadowDom"}(Qs||(Qs={})),Qs}(),Epe="undefined"!=typeof globalThis&&globalThis,Tpe="undefined"!=typeof window&&window,Ape="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,xpe="undefined"!=typeof global&&global,hi=Epe||xpe||Tpe||Ape,Xv={},yi=[],uS=mi({"\u0275cmp":mi}),cx=mi({"\u0275dir":mi}),dx=mi({"\u0275pipe":mi}),sz=mi({"\u0275mod":mi}),oc=mi({"\u0275fac":mi}),y_=mi({__NG_ELEMENT_ID__:mi}),Mpe=0;function L(i){return hd(function(){var t={},e={type:i.type,providersResolver:null,decls:i.decls,vars:i.vars,factory:null,template:i.template||null,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:i.exportAs||null,onPush:i.changeDetection===Ys.OnPush,directiveDefs:null,pipeDefs:null,selectors:i.selectors||yi,viewQuery:i.viewQuery||null,features:i.features||null,data:i.data||{},encapsulation:i.encapsulation||Qs.Emulated,id:"c",styles:i.styles||yi,_:null,setInput:null,schemas:i.schemas||null,tView:null},n=i.directives,a=i.features,o=i.pipes;return e.id+=Mpe++,e.inputs=dz(i.inputs,t),e.outputs=dz(i.outputs),a&&a.forEach(function(s){return s(e)}),e.directiveDefs=n?function(){return("function"==typeof n?n():n).map(lz)}:null,e.pipeDefs=o?function(){return("function"==typeof o?o():o).map(uz)}:null,e})}function lz(i){return Ma(i)||function fd(i){return i[cx]||null}(i)}function uz(i){return function zh(i){return i[dx]||null}(i)}var cz={};function Le(i){return hd(function(){var r={type:i.type,bootstrap:i.bootstrap||yi,declarations:i.declarations||yi,imports:i.imports||yi,exports:i.exports||yi,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null};return null!=i.id&&(cz[i.id]=i.type),r})}function dz(i,r){if(null==i)return Xv;var t={};for(var e in i)if(i.hasOwnProperty(e)){var n=i[e],a=n;Array.isArray(n)&&(a=n[1],n=n[0]),t[n]=e,r&&(r[n]=a)}return t}var X=L;function fa(i){return{type:i.type,name:i.name,factory:null,pure:!1!==i.pure,onDestroy:i.type.prototype.ngOnDestroy||null}}function Ma(i){return i[uS]||null}function ks(i,r){var t=i[sz]||null;if(!t&&!0===r)throw new Error("Type ".concat(si(i)," does not have '\u0275mod' property."));return t}function Hl(i){return Array.isArray(i)&&"object"==typeof i[1]}function el(i){return Array.isArray(i)&&!0===i[1]}function vx(i){return 0!=(8&i.flags)}function fS(i){return 2==(2&i.flags)}function vS(i){return 1==(1&i.flags)}function tl(i){return null!==i.template}function Lpe(i){return 0!=(512&i[2])}function Wh(i,r){return i.hasOwnProperty(oc)?i[oc]:null}var fz=function(){function i(r,t,e){p(this,i),this.previousValue=r,this.currentValue=t,this.firstChange=e}return v(i,[{key:"isFirstChange",value:function(){return this.firstChange}}]),i}();function Ie(){return vz}function vz(i){return i.type.prototype.ngOnChanges&&(i.setInput=Vpe),Gpe}function Gpe(){var i=gz(this),r=null==i?void 0:i.current;if(r){var t=i.previous;if(t===Xv)i.previous=r;else for(var e in r)t[e]=r[e];i.current=null,this.ngOnChanges(r)}}function Vpe(i,r,t,e){var n=gz(i)||function Upe(i,r){return i[pz]=r}(i,{previous:Xv,current:null}),a=n.current||(n.current={}),o=n.previous,s=this.declaredInputs[t],l=o[s];a[s]=new fz(l&&l.currentValue,r,o===Xv),i[e]=r}Ie.ngInherit=!0;var pz="__ngSimpleChanges__";function gz(i){return i[pz]||null}var yx=void 0;function kx(){return void 0!==yx?yx:"undefined"!=typeof document?document:void 0}function sr(i){return!!i.listen}var mz={createRenderer:function(r,t){return kx()}};function Tr(i){for(;Array.isArray(i);)i=i[0];return i}function pS(i,r){return Tr(r[i])}function Ss(i,r){return Tr(r[i.index])}function Cx(i,r){return i.data[r]}function ep(i,r){return i[r]}function Go(i,r){var t=r[i];return Hl(t)?t:t[0]}function _z(i){return 4==(4&i[2])}function bx(i){return 128==(128&i[2])}function vd(i,r){return null==r?null:i[r]}function yz(i){i[18]=0}function Sx(i,r){i[5]+=r;for(var t=i,e=i[3];null!==e&&(1===r&&1===t[5]||-1===r&&0===t[5]);)e[5]+=r,t=e,e=e[3]}var an={lFrame:Az(null),bindingsEnabled:!0};function Cz(){return an.bindingsEnabled}function Oe(){return an.lFrame.lView}function Bn(){return an.lFrame.tView}function re(i){return an.lFrame.contextLView=i,i[8]}function Fr(){for(var i=bz();null!==i&&64===i.type;)i=i.parent;return i}function bz(){return an.lFrame.currentTNode}function Kl(i,r){var t=an.lFrame;t.currentTNode=i,t.isParent=r}function wx(){return an.lFrame.isParent}function Dx(){an.lFrame.isParent=!1}function za(){var i=an.lFrame,r=i.bindingRootIndex;return-1===r&&(r=i.bindingRootIndex=i.tView.bindingStartIndex),r}function sc(){return an.lFrame.bindingIndex}function tp(){return an.lFrame.bindingIndex++}function lc(i){var r=an.lFrame,t=r.bindingIndex;return r.bindingIndex=r.bindingIndex+i,t}function rge(i,r){var t=an.lFrame;t.bindingIndex=t.bindingRootIndex=i,Ex(r)}function Ex(i){an.lFrame.currentDirectiveIndex=i}function Tx(i){var r=an.lFrame.currentDirectiveIndex;return-1===r?null:i[r]}function Dz(){return an.lFrame.currentQueryIndex}function Ax(i){an.lFrame.currentQueryIndex=i}function oge(i){var r=i[1];return 2===r.type?r.declTNode:1===r.type?i[6]:null}function Ez(i,r,t){if(t&tn.SkipSelf){for(var e=r,n=i;!(null!==(e=e.parent)||t&tn.Host||null===(e=oge(n))||(n=n[15],10&e.type)););if(null===e)return!1;r=e,i=n}var a=an.lFrame=Tz();return a.currentTNode=r,a.lView=i,!0}function mS(i){var r=Tz(),t=i[1];an.lFrame=r,r.currentTNode=t.firstChild,r.lView=i,r.tView=t,r.contextLView=i,r.bindingIndex=t.bindingStartIndex,r.inI18n=!1}function Tz(){var i=an.lFrame,r=null===i?null:i.child;return null===r?Az(i):r}function Az(i){var r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:i,child:null,inI18n:!1};return null!==i&&(i.child=r),r}function xz(){var i=an.lFrame;return an.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}var Mz=xz;function _S(){var i=xz();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function sge(i){var r=an.lFrame.contextLView=function lge(i,r){for(;i>0;)r=r[15],i--;return r}(i,an.lFrame.contextLView);return r[8]}function Ha(){return an.lFrame.selectedIndex}function pd(i){an.lFrame.selectedIndex=i}function lr(){var i=an.lFrame;return Cx(i.tView,i.selectedIndex)}function yS(i,r){for(var t=r.directiveStart,e=r.directiveEnd;t=e)break}else r[l]<0&&(i[18]+=65536),(s>11>16&&(3&i[2])===r){i[2]+=2048;try{a.call(s)}finally{}}}else try{a.call(s)}finally{}}var w_=v(function i(r,t,e){p(this,i),this.factory=r,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=e});function bS(i,r,t){for(var e=sr(i),n=0;nr){o=a-1;break}}}for(;a>16}(i),e=r;t>0;)e=e[15],t--;return e}var Ix=!0;function wS(i){var r=Ix;return Ix=i,r}var Cge=0;function E_(i,r){var t=Fx(i,r);if(-1!==t)return t;var e=r[1];e.firstCreatePass&&(i.injectorIndex=r.length,Nx(e.data,i),Nx(r,null),Nx(e.blueprint,null));var n=DS(i,r),a=i.injectorIndex;if(Nz(n))for(var o=np(n),s=ip(n,r),l=s[1].data,u=0;u<8;u++)r[a+u]=s[o+u]|l[o+u];return r[a+8]=n,a}function Nx(i,r){i.push(0,0,0,0,0,0,0,0,r)}function Fx(i,r){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===r[i.injectorIndex+8]?-1:i.injectorIndex}function DS(i,r){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;for(var t=0,e=null,n=r;null!==n;){var a=n[1],o=a.type;if(null===(e=2===o?a.declTNode:1===o?n[6]:null))return-1;if(t++,n=n[15],-1!==e.injectorIndex)return e.injectorIndex|t<<16}return-1}function ES(i,r,t){!function bge(i,r,t){var e;"string"==typeof t?e=t.charCodeAt(0)||0:t.hasOwnProperty(y_)&&(e=t[y_]),null==e&&(e=t[y_]=Cge++);var n=255&e;r.data[i+(n>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:tn.Default,n=arguments.length>4?arguments[4]:void 0;if(null!==i){var a=Ege(t);if("function"==typeof a){if(!Ez(r,i,e))return e&tn.Host?Pz(n,t,e):Bz(r,t,e,n);try{var o=a(e);if(null!=o||e&tn.Optional)return o;sS(t)}finally{Mz()}}else if("number"==typeof a){var s=null,l=Fx(i,r),u=-1,c=e&tn.Host?r[16][6]:null;for((-1===l||e&tn.SkipSelf)&&(-1!==(u=-1===l?DS(i,r):r[l+8])&&zz(e,!1)?(s=r[1],l=np(u),r=ip(u,r)):l=-1);-1!==l;){var d=r[1];if(Uz(a,l,d.data)){var h=Dge(l,r,t,s,e,c);if(h!==Vz)return h}-1!==(u=r[l+8])&&zz(e,r[1].data[l+8]===c)&&Uz(a,l,r)?(s=d,l=np(u),r=ip(u,r)):l=-1}}}return Bz(r,t,e,n)}var Vz={};function wge(){return new rp(Fr(),Oe())}function Dge(i,r,t,e,n,a){var o=r[1],s=o.data[i+8],c=TS(s,o,t,null==e?fS(s)&&Ix:e!=o&&0!=(3&s.type),n&tn.Host&&a===s);return null!==c?T_(r,o,c,s):Vz}function TS(i,r,t,e,n){for(var a=i.providerIndexes,o=r.data,s=1048575&a,l=i.directiveStart,c=a>>20,h=n?s+c:i.directiveEnd,f=e?s:s+c;f=l&&g.type===t)return f}if(n){var _=o[l];if(_&&tl(_)&&_.type===t)return l}return null}function T_(i,r,t,e){var n=i[t],a=r.data;if(function pge(i){return i instanceof w_}(n)){var o=n;o.resolving&&function _pe(i,r){var t=r?". Dependency path: ".concat(r.join(" > ")," > ").concat(i):"";throw new gt(-200,"Circular dependency in DI detected for ".concat(i).concat(t))}(ha(a[t]));var s=wS(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?dd(o.injectImpl):null;Ez(i,e,tn.Default);try{n=i[t]=o.factory(void 0,a,i,e),r.firstCreatePass&&t>=e.directiveStart&&function fge(i,r,t){var e=r.type.prototype,a=e.ngOnInit,o=e.ngDoCheck;if(e.ngOnChanges){var s=vz(r);(t.preOrderHooks||(t.preOrderHooks=[])).push(i,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i,s)}a&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-i,a),o&&((t.preOrderHooks||(t.preOrderHooks=[])).push(i,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(i,o))}(t,a[t],r)}finally{null!==l&&dd(l),wS(s),o.resolving=!1,Mz()}}return n}function Ege(i){if("string"==typeof i)return i.charCodeAt(0)||0;var r=i.hasOwnProperty(y_)?i[y_]:void 0;return"number"==typeof r?r>=0?255&r:wge:r}function Uz(i,r,t){return!!(t[r+(i>>5)]&1<=i.length?i.push(t):i.splice(r,0,t)}function AS(i,r){return r>=i.length-1?i.pop():i.splice(r,1)[0]}function R_(i,r){for(var t=[],e=0;e=0?i[1|e]=t:function Rge(i,r,t,e){var n=i.length;if(n==r)i.push(t,e);else if(1===n)i.push(e,i[0]),i[0]=t;else{for(n--,i.push(i[n-1],i[n]);n>r;)i[n]=i[n-2],n--;i[r]=t,i[r+1]=e}}(i,e=~e,r,t),e}function Gx(i,r){var t=up(i,r);if(t>=0)return i[1|t]}function up(i,r){return function $z(i,r,t){for(var e=0,n=i.length>>t;n!==e;){var a=e+(n-e>>1),o=i[a<r?n=a:e=a+1}return~(n<1&&void 0!==arguments[1]?arguments[1]:tn.Default;if(void 0===I_){var t="";throw new gt(203,t)}return null===I_?oz(i,void 0,r):I_.get(i,r&tn.Optional?null:void 0,r)}function oe(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn.Default;return(Dpe()||zge)(fn(i),r)}var Hge=oe;function zx(i){for(var r=[],t=0;t3&&void 0!==arguments[3]?arguments[3]:null;i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.substr(2):i;var n=si(r);if(Array.isArray(r))n=r.map(si).join(" -> ");else if("object"==typeof r){var a=[];for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):si(s)))}n="{".concat(a.join(", "),"}")}return"".concat(t).concat(e?"("+e+")":"","[").concat(n,"]: ").concat(i.replace(Gge,"\n "))}("\n"+i.message,n,t,e),i.ngTokenPath=n,i[MS]=null,i}var IS,NS,RS=N_(lp("Inject",function(i){return{token:i}}),-1),md=N_(lp("Optional"),8),F_=N_(lp("SkipSelf"),4);function dp(i){var r;return(null===(r=function Kx(){if(void 0===IS&&(IS=null,hi.trustedTypes))try{IS=hi.trustedTypes.createPolicy("angular",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(i){}return IS}())||void 0===r?void 0:r.createHTML(i))||i}function n3(i){var r;return(null===(r=function jx(){if(void 0===NS&&(NS=null,hi.trustedTypes))try{NS=hi.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(r){return r},createScript:function(r){return r},createScriptURL:function(r){return r}})}catch(i){}return NS}())||void 0===r?void 0:r.createHTML(i))||i}var $h=function(){function i(r){p(this,i),this.changingThisBreaksApplicationSecurity=r}return v(i,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),i}(),ime=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"HTML"}}]),t}($h),rme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"Style"}}]),t}($h),ame=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"Script"}}]),t}($h),ome=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"URL"}}]),t}($h),sme=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),t}($h);function Uo(i){return i instanceof $h?i.changingThisBreaksApplicationSecurity:i}function Wl(i,r){var t=o3(i);if(null!=t&&t!==r){if("ResourceURL"===t&&"URL"===r)return!0;throw new Error("Required a safe ".concat(r,", got a ").concat(t," (see https://g.co/ng/security#xss)"))}return t===r}function o3(i){return i instanceof $h&&i.getTypeName()||null}var fme=function(){function i(r){p(this,i),this.inertDocumentHelper=r}return v(i,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var e=(new window.DOMParser).parseFromString(dp(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(n){return null}}}]),i}(),vme=function(){function i(r){if(p(this,i),this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var e=this.inertDocument.createElement("body");t.appendChild(e)}}return v(i,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=dp(t),e;var n=this.inertDocument.createElement("body");return n.innerHTML=dp(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();Wx.hasOwnProperty(e)&&!u3.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(f3(t))}},{key:"checkClobberedElement",value:function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(t.outerHTML));return e}}]),i}(),Dme=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Eme=/([^\#-~ |!])/g;function f3(i){return i.replace(/&/g,"&").replace(Dme,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(Eme,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}function v3(i,r){var t=null;try{FS=FS||function s3(i){var r=new vme(i);return function pme(){try{return!!(new window.DOMParser).parseFromString(dp(""),"text/html")}catch(i){return!1}}()?new fme(r):r}(i);var e=r?String(r):"";t=FS.getInertBodyElement(e);var n=5,a=e;do{if(0===n)throw new Error("Failed to sanitize html because the input is unstable");n--,e=a,a=t.innerHTML,t=FS.getInertBodyElement(e)}while(e!==a);return dp((new wme).sanitizeChildren(Xx(t)||t))}finally{if(t)for(var l=Xx(t)||t;l.firstChild;)l.removeChild(l.firstChild)}}function Xx(i){return"content"in i&&function Tme(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var ki=function(){return(ki=ki||{})[ki.NONE=0]="NONE",ki[ki.HTML=1]="HTML",ki[ki.STYLE=2]="STYLE",ki[ki.SCRIPT=3]="SCRIPT",ki[ki.URL=4]="URL",ki[ki.RESOURCE_URL=5]="RESOURCE_URL",ki}();function LS(i){var r=G_();return r?n3(r.sanitize(ki.HTML,i)||""):Wl(i,"HTML")?n3(Uo(i)):v3(kx(),rn(i))}function uc(i){var r=G_();return r?r.sanitize(ki.URL,i)||"":Wl(i,"URL")?Uo(i):P_(rn(i))}function G_(){var i=Oe();return i&&i[12]}var m3="__ngContext__";function Oa(i,r){i[m3]=r}function Yx(i){var r=function V_(i){return i[m3]||null}(i);return r?Array.isArray(r)?r:r.lView:null}function Jx(i){return i.ngOriginalError}function Hme(i){for(var r=arguments.length,t=new Array(r>1?r-1:0),e=1;e|^->||--!>|)/;var Jme=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(hi)}();function b3(i){return i.ownerDocument.defaultView}function ql(i){return i instanceof Function?i():i}var zo=function(){return(zo=zo||{})[zo.Important=1]="Important",zo[zo.DashCase=2]="DashCase",zo}();function tM(i,r){return undefined(i,r)}function z_(i){var r=i[3];return el(r)?r[3]:r}function nM(i){return T3(i[13])}function iM(i){return T3(i[4])}function T3(i){for(;null!==i&&!el(i);)i=i[4];return i}function fp(i,r,t,e,n){if(null!=e){var a,o=!1;el(e)?a=e:Hl(e)&&(o=!0,e=e[0]);var s=Tr(e);0===i&&null!==t?null==n?I3(r,t,s):qh(r,t,s,n||null,!0):1===i&&null!==t?qh(r,t,s,n||null,!0):2===i?V3(r,s,o):3===i&&r.destroyNode(s),null!=a&&function p_e(i,r,t,e,n){var a=t[7];a!==Tr(t)&&fp(r,i,e,a,n);for(var s=10;s0&&(i[t-1][4]=e[4]);var a=AS(i,10+r);!function r_e(i,r){H_(i,r,r[11],2,null,null),r[0]=null,r[6]=null}(e[1],e);var o=a[19];null!==o&&o.detachView(a[1]),e[3]=null,e[4]=null,e[2]&=-129}return e}}function M3(i,r){if(!(256&r[2])){var t=r[11];sr(t)&&t.destroyNode&&H_(i,r,t,3,null,null),function s_e(i){var r=i[13];if(!r)return sM(i[1],i);for(;r;){var t=null;if(Hl(r))t=r[13];else{var e=r[10];e&&(t=e)}if(!t){for(;r&&!r[4]&&r!==i;)Hl(r)&&sM(r[1],r),r=r[3];null===r&&(r=i),Hl(r)&&sM(r[1],r),t=r&&r[4]}r=t}}(r)}}function sM(i,r){if(!(256&r[2])){r[2]&=-129,r[2]|=256,function d_e(i,r){var t;if(null!=i&&null!=(t=i.destroyHooks))for(var e=0;e=0?e[n=u]():e[n=-u].unsubscribe(),a+=2}else{var c=e[n=t[a+1]];t[a].call(c)}if(null!==e){for(var d=n+1;da?"":n[d+1].toLowerCase();var f=8&e?h:null;if(f&&-1!==H3(f,u,0)||2&e&&u!==h){if(nl(e))return!1;o=!0}}}}else{if(!o&&!nl(e)&&!nl(l))return!1;if(o&&nl(l))continue;o=!1,e=l|1&e}}return nl(e)||o}function nl(i){return 0==(1&i)}function k_e(i,r,t,e){if(null===r)return-1;var n=0;if(e||!t){for(var a=!1;n-1)for(t++;t2&&void 0!==arguments[2]&&arguments[2],e=0;e0?'="'+s+'"':"")+"]"}else 8&e?n+="."+o:4&e&&(n+=" "+o);else""!==n&&!nl(o)&&(r+=$3(a,n),n=""),e=o,a=a||!nl(e);t++}return""!==n&&(r+=$3(a,n)),r}var on={};function k(i){q3(Bn(),Oe(),Ha()+i,!1)}function q3(i,r,t,e){if(!e)if(3==(3&r[2])){var a=i.preOrderCheckHooks;null!==a&&kS(r,a,t)}else{var o=i.preOrderHooks;null!==o&&CS(r,o,0,t)}pd(t)}function VS(i,r){return i<<17|r<<2}function il(i){return i>>17&32767}function hM(i){return 2|i}function cc(i){return(131068&i)>>2}function fM(i,r){return-131069&i|r<<2}function vM(i){return 1|i}function aH(i,r){var t=i.contentQueries;if(null!==t)for(var e=0;e20&&q3(i,r,20,!1),t(e,n)}finally{pd(a)}}function sH(i,r,t){if(vx(r))for(var n=r.directiveEnd,a=r.directiveStart;a2&&void 0!==arguments[2]?arguments[2]:Ss,e=r.localNames;if(null!==e)for(var n=r.index+1,a=0;a0;){var t=i[--r];if("number"==typeof t&&t<0)return t}return 0})(s)!=l&&s.push(l),s.push(e,n,o)}}function pH(i,r){null!==i.hostBindings&&i.hostBindings(1,r)}function gH(i,r){r.flags|=2,(i.components||(i.components=[])).push(r.index)}function eye(i,r,t){if(t){if(r.exportAs)for(var e=0;e0&&AM(t)}}function AM(i){for(var r=nM(i);null!==r;r=iM(r))for(var t=10;t0&&AM(e)}var o=i[1].components;if(null!==o)for(var s=0;s0&&AM(l)}}function sye(i,r){var t=Go(r,i),e=t[1];(function lye(i,r){for(var t=r.length;t1&&void 0!==arguments[1]?arguments[1]:O_;if(e===O_){var n=new Error("NullInjectorError: No provider for ".concat(si(t),"!"));throw n.name="NullInjectorError",n}return e}}]),i}(),NM=new wt("Set Injector scope."),W_={},fye={},FM=void 0;function TH(){return void 0===FM&&(FM=new EH),FM}function AH(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e=arguments.length>3?arguments[3]:void 0,n=xH(i,r,t,e);return n._resolveInjectorDefTypes(),n}function xH(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e=arguments.length>3?arguments[3]:void 0;return new vye(i,t,r||TH(),e)}var vye=function(){function i(r,t,e){var n=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p(this,i),this.parent=e,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];t&&jl(t,function(l){return n.processProvider(l,r,t)}),jl([r],function(l){return n.processInjectorType(l,[],o)}),this.records.set(IM,mp(void 0,this));var s=this.records.get(NM);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof r?null:si(r))}return v(i,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O_,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn.Default;this.assertNotDestroyed();var a=Zz(this),o=dd(void 0);try{if(!(n&tn.SkipSelf)){var s=this.records.get(t);if(void 0===s){var l=bye(t)&&sx(t);s=l&&this.injectableDefInScope(l)?mp(LM(t),W_):null,this.records.set(t,s)}if(null!=s)return this.hydrate(t,s)}var u=n&tn.Self?TH():this.parent;return u.get(t,e=n&tn.Optional&&e===O_?null:e)}catch(d){if("NullInjectorError"===d.name){var c=d[MS]=d[MS]||[];if(c.unshift(si(t)),a)throw d;return jge(d,t,"R3InjectorError",this.source)}throw d}finally{dd(o),Zz(a)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(n,a){return t.push(si(a))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new gt(205,!1)}},{key:"processInjectorType",value:function(t,e,n){var a=this;if(!(t=fn(t)))return!1;var o=rz(t),s=null==o&&t.ngModule||void 0,l=void 0===s?t:s,d=-1!==n.indexOf(l);if(void 0!==s&&(o=rz(s)),null==o)return!1;if(null!=o.imports&&!d){var h;n.push(l);try{jl(o.imports,function(E){a.processInjectorType(E,e,n)&&(void 0===h&&(h=[]),h.push(E))})}finally{}if(void 0!==h)for(var f=function(M){var R=h[M],N=R.ngModule,V=R.providers;jl(V,function(U){return a.processProvider(U,N,V||yi)})},g=0;g0)throw R_(r,"?"),new gt(204,!1);var e=function bpe(i){var r=i&&(i[lS]||i[az]);if(r){var t=function Spe(i){if(i.hasOwnProperty("name"))return i.name;var r=(""+i).match(/^function\s*([^\s(]+)/);return null===r?"":r[1]}(i);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(t,'" class.')),r}return null}(i);return null!==e?function(){return e.factory(i)}:function(){return new i}}(i);throw new gt(204,!1)}function MH(i,r,t){var e=void 0;if(_p(i)){var n=fn(i);return Wh(n)||LM(n)}if(RH(i))e=function(){return fn(i.useValue)};else if(function _ye(i){return!(!i||!i.useFactory)}(i))e=function(){return i.useFactory.apply(i,Ae(zx(i.deps||[])))};else if(function mye(i){return!(!i||!i.useExisting)}(i))e=function(){return oe(fn(i.useExisting))};else{var a=fn(i&&(i.useClass||i.provide));if(!function kye(i){return!!i.deps}(i))return Wh(a)||LM(a);e=function(){return qr(a,Ae(zx(i.deps)))}}return e}function mp(i,r){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:i,value:r,multi:t?[]:void 0}}function RH(i){return null!==i&&"object"==typeof i&&Uge in i}function _p(i){return"function"==typeof i}function bye(i){return"function"==typeof i||"object"==typeof i&&i instanceof wt}var Jn=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"create",value:function(e,n){var a;if(Array.isArray(e))return AH({name:""},n,e,"");var o=null!==(a=e.name)&&void 0!==a?a:"";return AH({name:o},e.parent,e.providers,o)}}]),r}();return i.THROW_IF_NOT_FOUND=O_,i.NULL=new EH,i.\u0275prov=pe({token:i,providedIn:"any",factory:function(){return oe(IM)}}),i.__NG_ELEMENT_ID__=-1,i}();function Iye(i,r){yS(Yx(i)[1],Fr())}function j(i){for(var r=function GH(i){return Object.getPrototypeOf(i.prototype).constructor}(i.type),t=!0,e=[i];r;){var n=void 0;if(tl(i))n=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new gt(903,"");n=r.\u0275dir}if(n){if(t){e.push(n);var o=i;o.inputs=BM(i.inputs),o.declaredInputs=BM(i.declaredInputs),o.outputs=BM(i.outputs);var s=n.hostBindings;s&&Pye(i,s);var l=n.viewQuery,u=n.contentQueries;if(l&&Fye(i,l),u&&Lye(i,u),rx(i.inputs,n.inputs),rx(i.declaredInputs,n.declaredInputs),rx(i.outputs,n.outputs),tl(n)&&n.data.animation){var c=i.data;c.animation=(c.animation||[]).concat(n.data.animation)}}var d=n.features;if(d)for(var h=0;h=0;e--){var n=i[e];n.hostVars=r+=n.hostVars,n.hostAttrs=SS(n.hostAttrs,t=SS(t,n.hostAttrs))}}(e)}function BM(i){return i===Xv?{}:i===yi?[]:i}function Fye(i,r){var t=i.viewQuery;i.viewQuery=t?function(e,n){r(e,n),t(e,n)}:r}function Lye(i,r){var t=i.contentQueries;i.contentQueries=t?function(e,n,a){r(e,n,a),t(e,n,a)}:r}function Pye(i,r){var t=i.hostBindings;i.hostBindings=t?function(e,n){r(e,n),t(e,n)}:r}var WS=null;function yp(){if(!WS){var i=hi.Symbol;if(i&&i.iterator)WS=i.iterator;else for(var r=Object.getOwnPropertyNames(Map.prototype),t=0;t1&&void 0!==arguments[1]?arguments[1]:tn.Default,t=Oe();if(null===t)return oe(i,r);var e=Fr();return Gz(e,t,fn(i),r)}function Mp(){throw new Error("invalid")}function y(i,r,t){var e=Oe();return Ia(e,tp(),r)&&Ho(Bn(),lr(),e,i,r,e[11],t,!1),y}function HM(i,r,t,e,n){var o=n?"class":"style";DH(i,t,r.inputs[o],o,e)}function A(i,r,t,e){var n=Oe(),a=Bn(),o=20+i,s=n[11],l=n[o]=aM(s,r,function hge(){return an.lFrame.currentNamespace}()),u=a.firstCreatePass?function uke(i,r,t,e,n,a,o){var s=r.consts,u=vp(r,i,2,n,vd(s,a));return EM(r,t,u,vd(s,o)),null!==u.attrs&&jS(u,u.attrs,!1),null!==u.mergedAttrs&&jS(u,u.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,u),u}(o,a,n,0,r,t,e):a.data[o];Kl(u,!0);var c=u.mergedAttrs;null!==c&&bS(s,l,c);var d=u.classes;null!==d&&dM(s,l,d);var h=u.styles;return null!==h&&z3(s,l,h),64!=(64&u.flags)&&BS(a,n,l,u),0===function Ype(){return an.lFrame.elementDepthCount}()&&Oa(l,n),function Qpe(){an.lFrame.elementDepthCount++}(),vS(u)&&(wM(a,n,u),sH(a,u,n)),null!==e&&DM(n,u),A}function x(){var i=Fr();wx()?Dx():Kl(i=i.parent,!1);var r=i;!function Jpe(){an.lFrame.elementDepthCount--}();var t=Bn();return t.firstCreatePass&&(yS(t,i),vx(i)&&t.queries.elementEnd(i)),null!=r.classesWithoutHost&&function mge(i){return 0!=(16&i.flags)}(r)&&HM(t,r,Oe(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function _ge(i){return 0!=(32&i.flags)}(r)&&HM(t,r,Oe(),r.stylesWithoutHost,!1),x}function z(i,r,t,e){return A(i,r,t,e),x(),z}function Ge(i,r,t){var e=Oe(),n=Bn(),a=i+20,o=n.firstCreatePass?function cke(i,r,t,e,n){var a=r.consts,o=vd(a,e),s=vp(r,i,8,"ng-container",o);return null!==o&&jS(s,o,!0),EM(r,t,s,vd(a,n)),null!==r.queries&&r.queries.elementStart(r,s),s}(a,n,e,r,t):n.data[a];Kl(o,!0);var s=e[a]=e[11].createComment("");return BS(n,e,s,o),Oa(s,e),vS(o)&&(wM(n,e,o),sH(n,o,e)),null!=t&&DM(e,o),Ge}function Ve(){var i=Fr(),r=Bn();return wx()?Dx():Kl(i=i.parent,!1),r.firstCreatePass&&(yS(r,i),vx(i)&&r.queries.elementEnd(i)),Ve}function Wt(i,r,t){return Ge(i,r,t),Ve(),Wt}function xe(){return Oe()}function X_(i){return!!i&&"function"==typeof i.then}var KM=function o8(i){return!!i&&"function"==typeof i.subscribe};function Q(i,r,t,e){var n=Oe(),a=Bn(),o=Fr();return function l8(i,r,t,e,n,a,o,s){var l=vS(e),c=i.firstCreatePass&&bH(i),d=r[8],h=CH(r),f=!0;if(3&e.type||s){var g=Ss(e,r),_=s?s(g):g,C=h.length,w=s?function(me){return s(Tr(me[e.index]))}:e.index;if(sr(t)){var E=null;if(!s&&l&&(E=function dke(i,r,t,e){var n=i.cleanup;if(null!=n)for(var a=0;al?s[l]:null}"string"==typeof o&&(a+=2)}return null}(i,r,n,e.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=a,E.__ngLastListenerFn__=a,f=!1;else{a=jM(e,r,d,a,!1);var R=t.listen(_,n,a);h.push(a,R),c&&c.push(n,w,C,C+1)}}else a=jM(e,r,d,a,!0),_.addEventListener(n,a,o),h.push(a),c&&c.push(n,w,C,o)}else a=jM(e,r,d,a,!1);var V,N=e.outputs;if(f&&null!==N&&(V=N[n])){var U=V.length;if(U)for(var ee=0;ee0&&void 0!==arguments[0]?arguments[0]:1;return sge(i)}function hke(i,r){for(var t=null,e=function C_e(i){var r=i.attrs;if(null!=r){var t=r.indexOf(5);if(0==(1&t))return r[t+1]}return null}(i),n=0;n1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,e=Oe(),n=Bn(),a=vp(n,20+i,16,null,t||null);null===a.projection&&(a.projection=r),Dx(),64!=(64&a.flags)&&v_e(n,e,a)}function qS(i,r,t){return WM(i,"",r,"",t),qS}function WM(i,r,t,e,n){var a=Oe(),o=Cp(a,r,t,e);return o!==on&&Ho(Bn(),lr(),a,i,o,a[11],n,!1),WM}function _8(i,r,t,e,n){for(var a=i[t+1],o=null===r,s=e?il(a):cc(a),l=!1;0!==s&&(!1===l||o);){var c=i[s+1];pke(i[s],r)&&(l=!0,i[s+1]=e?vM(c):hM(c)),s=e?il(c):cc(c)}l&&(i[t+1]=e?hM(a):vM(a))}function pke(i,r){return null===i||null==r||(Array.isArray(i)?i[1]:i)===r||!(!Array.isArray(i)||"string"!=typeof r)&&up(i,r)>=0}var Pr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function y8(i){return i.substring(Pr.key,Pr.keyEnd)}function k8(i,r){var t=Pr.textEnd;return t===r?-1:(r=Pr.keyEnd=function yke(i,r,t){for(;r32;)r++;return r}(i,Pr.key=r,t),Rp(i,r,t))}function Rp(i,r,t){for(;r=0;t=k8(r,t))Vo(i,y8(r),!0)}function al(i,r,t,e){var n=Oe(),a=Bn(),o=lc(2);a.firstUpdatePass&&E8(a,i,o,e),r!==on&&Ia(n,o,r)&&A8(a,a.data[Ha()],n,n[11],i,n[o+1]=function xke(i,r){return null==i||("string"==typeof r?i+=r:"object"==typeof i&&(i=si(Uo(i)))),i}(r,t),e,o)}function ol(i,r,t,e){var n=Bn(),a=lc(2);n.firstUpdatePass&&E8(n,null,a,e);var o=Oe();if(t!==on&&Ia(o,a,t)){var s=n.data[Ha()];if(M8(s,e)&&!D8(n,a)){var u=e?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(t=ax(u,t||"")),HM(n,s,o,t,e)}else!function Ake(i,r,t,e,n,a,o,s){n===on&&(n=yi);for(var l=0,u=0,c=0=i.expandoStartIndex}function E8(i,r,t,e){var n=i.data;if(null===n[t+1]){var a=n[Ha()],o=D8(i,t);M8(a,e)&&null===r&&!o&&(r=!1),r=function Ske(i,r,t,e){var n=Tx(i),a=e?r.residualClasses:r.residualStyles;if(null===n)0===(e?r.classBindings:r.styleBindings)&&(t=Z_(t=$M(null,i,r,t,e),r.attrs,e),a=null);else{var s=r.directiveStylingLast;if(-1===s||i[s]!==n)if(t=$M(n,i,r,t,e),null===a){var u=function wke(i,r,t){var e=t?r.classBindings:r.styleBindings;if(0!==cc(e))return i[il(e)]}(i,r,e);void 0!==u&&Array.isArray(u)&&function Dke(i,r,t,e){i[il(t?r.classBindings:r.styleBindings)]=e}(i,r,e,u=Z_(u=$M(null,i,r,u[1],e),r.attrs,e))}else a=function Eke(i,r,t){for(var e=void 0,n=r.directiveEnd,a=1+r.directiveStylingLast;a0)&&(u=!0):c=t,n)if(0!==l){var f=il(i[s+1]);i[e+1]=VS(f,s),0!==f&&(i[f+1]=fM(i[f+1],e)),i[s+1]=function A_e(i,r){return 131071&i|r<<17}(i[s+1],e)}else i[e+1]=VS(s,0),0!==s&&(i[s+1]=fM(i[s+1],e)),s=e;else i[e+1]=VS(l,0),0===s?s=e:i[l+1]=fM(i[l+1],e),l=e;u&&(i[e+1]=hM(i[e+1])),_8(i,c,e,!0),_8(i,c,e,!1),function vke(i,r,t,e,n){var a=n?i.residualClasses:i.residualStyles;null!=a&&"string"==typeof r&&up(a,r)>=0&&(t[e+1]=vM(t[e+1]))}(r,c,i,e,a),o=VS(s,l),a?r.classBindings=o:r.styleBindings=o}(n,a,r,t,o,e)}}function $M(i,r,t,e,n){var a=null,o=t.directiveEnd,s=t.directiveStylingLast;for(-1===s?s=t.directiveStart:s++;s0;){var l=i[n],u=Array.isArray(l),c=u?l[1]:l,d=null===c,h=t[n+1];h===on&&(h=d?yi:void 0);var f=d?Gx(h,e):c===e?h:void 0;if(u&&!XS(f)&&(f=Gx(l,e)),XS(f)&&(s=f,o))return s;var g=i[n+1];n=o?il(g):cc(g)}if(null!==r){var _=a?r.residualClasses:r.residualStyles;null!=_&&(s=Gx(_,e))}return s}function XS(i){return void 0!==i}function M8(i,r){return 0!=(i.flags&(r?16:32))}function te(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Oe(),e=Bn(),n=i+20,a=e.firstCreatePass?vp(e,n,1,r,null):e.data[n],o=t[n]=rM(t[11],r);BS(e,t,o,a),Kl(a,!1)}function at(i){return Pt("",i,""),at}function Pt(i,r,t){var e=Oe(),n=Cp(e,i,r,t);return n!==on&&dc(e,Ha(),n),Pt}function Jl(i,r,t,e,n){var a=Oe(),o=function bp(i,r,t,e,n,a){var s=Xh(i,sc(),t,n);return lc(2),s?r+rn(t)+e+rn(n)+a:on}(a,i,r,t,e,n);return o!==on&&dc(a,Ha(),o),Jl}function qM(i,r,t,e,n,a,o,s,l,u,c){var d=Oe(),h=function Dp(i,r,t,e,n,a,o,s,l,u,c,d){var h=sc(),f=Es(i,h,t,n,o,l);return f=Ia(i,h+4,c)||f,lc(5),f?r+rn(t)+e+rn(n)+a+rn(o)+s+rn(l)+u+rn(c)+d:on}(d,i,r,t,e,n,a,o,s,l,u,c);return h!==on&&dc(d,Ha(),h),qM}function XM(i,r,t){var e=Oe();return Ia(e,tp(),r)&&Ho(Bn(),lr(),e,i,r,e[11],t,!0),XM}function ZM(i,r,t){var e=Oe();if(Ia(e,tp(),r)){var a=Bn(),o=lr();Ho(a,o,e,i,r,function SH(i,r,t){return(null===i||tl(i))&&(t=function qpe(i){for(;Array.isArray(i);){if("object"==typeof i[1])return i;i=i[0]}return null}(t[r.index])),t[11]}(Tx(a.data),o,e),t,!0)}return ZM}var Zh=void 0,qke=["en",[["a","p"],["AM","PM"],Zh],[["AM","PM"],Zh,Zh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Zh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Zh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Zh,"{1} 'at' {0}",Zh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function $ke(i){var t=Math.floor(Math.abs(i)),e=i.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===e?1:5}],Op={};function Ka(i){var r=function Xke(i){return i.toLowerCase().replace(/_/g,"-")}(i),t=$8(r);if(t)return t;var e=r.split("-")[0];if(t=$8(e))return t;if("en"===e)return qke;throw new Error('Missing locale data for the locale "'.concat(i,'".'))}function $8(i){return i in Op||(Op[i]=hi.ng&&hi.ng.common&&hi.ng.common.locales&&hi.ng.common.locales[i]),Op[i]}var st=function(){return(st=st||{})[st.LocaleId=0]="LocaleId",st[st.DayPeriodsFormat=1]="DayPeriodsFormat",st[st.DayPeriodsStandalone=2]="DayPeriodsStandalone",st[st.DaysFormat=3]="DaysFormat",st[st.DaysStandalone=4]="DaysStandalone",st[st.MonthsFormat=5]="MonthsFormat",st[st.MonthsStandalone=6]="MonthsStandalone",st[st.Eras=7]="Eras",st[st.FirstDayOfWeek=8]="FirstDayOfWeek",st[st.WeekendRange=9]="WeekendRange",st[st.DateFormat=10]="DateFormat",st[st.TimeFormat=11]="TimeFormat",st[st.DateTimeFormat=12]="DateTimeFormat",st[st.NumberSymbols=13]="NumberSymbols",st[st.NumberFormats=14]="NumberFormats",st[st.CurrencyCode=15]="CurrencyCode",st[st.CurrencySymbol=16]="CurrencySymbol",st[st.CurrencyName=17]="CurrencyName",st[st.Currencies=18]="Currencies",st[st.Directionality=19]="Directionality",st[st.PluralCase=20]="PluralCase",st[st.ExtraData=21]="ExtraData",st}(),Zke=["zero","one","two","few","many"],ZS="en-US",YS={marker:"element"},QS={marker:"ICU"},q8=ZS;function Q_(i,r){var t=i.data[r];return null===t||"string"==typeof t?null:t.hasOwnProperty("currentCaseLViewIndex")?t:t.value}function JS(i,r){var t=r[i.currentCaseLViewIndex];return null===t?t:t<0?~t:t}function J8(i){return i>>>17}function e5(i){return(131070&i)>>>1}var J_=0,ey=0;function n5(i,r,t,e){for(var o,n=t[11],a=null,s=0;s>>1,t),null,null,E,M,null)}else switch(l){case QS:var R=r[++s],N=r[++s];null===t[N]&&Oa(t[N]=i_e(n,R),t);break;case YS:var U=r[++s],ee=r[++s];null===t[ee]&&Oa(t[ee]=aM(n,U,null),t)}}}function i5(i,r,t,e,n){for(var a=0;a>>2;switch(3&c){case 1:var h=t[++u],f=t[++u],g=i.data[d];"string"==typeof g?TM(r[11],r[d],null,g,h,l,f):Ho(i,g,r,h,l,r[11],f,!1);break;case 0:var _=r[d];null!==_&&A3(r[11],_,l);break;case 2:dCe(i,Q_(i,d),r,l);break;case 3:r5(i,Q_(i,d),e,r)}}}else{var C=t[a+1];if(C>0&&3==(3&C)){var E=Q_(i,C>>>2);r[E.currentCaseLViewIndex]<0&&r5(i,E,e,r)}}a+=s}}function r5(i,r,t,e){var n=e[r.currentCaseLViewIndex];if(null!==n){var a=J_;n<0&&(n=e[r.currentCaseLViewIndex]=~n,a=-1),i5(i,e,r.update[n],t,a)}}function dCe(i,r,t,e){var n=function hCe(i,r){var t=i.cases.indexOf(r);if(-1===t)switch(i.type){case 1:var e=function Yke(i,r){var t=function W8(i){return Ka(i)[st.PluralCase]}(r)(parseInt(i,10)),e=Zke[t];return void 0!==e?e:"other"}(r,function eCe(){return q8}());-1===(t=i.cases.indexOf(e))&&"other"!==e&&(t=i.cases.indexOf("other"));break;case 0:t=i.cases.indexOf("other")}return-1===t?null:t}(r,e);if(JS(r,t)!==n&&(a5(i,r,t),t[r.currentCaseLViewIndex]=null===n?null:~n,null!==n)){var o=t[r.anchorIdx];o&&n5(i,r.create[n],t,o)}}function a5(i,r,t){var e=JS(r,t);if(null!==e)for(var n=r.remove[e],a=0;a0){var s=pS(o,t);null!==s&&V3(t[11],s)}else a5(i,Q_(i,~o),t)}}var ew=/\ufffd(\d+):?\d*\ufffd/gi,vCe=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi;function Ip(i,r,t,e,n,a){var o=i.length,s=o+1;i.push(null,null);for(var l=o+2,u=r.split(ew),c=0,d=0;d>20;if(_p(i)||!i.multi){var g=new w_(u,n,m),_=nR(l,r,n?d:d+f,h);-1===_?(ES(E_(c,s),o,l),tR(o,i,r.length),r.push(l),c.directiveStart++,c.directiveEnd++,n&&(c.providerIndexes+=1048576),t.push(g),s.push(g)):(t[_]=g,s[_]=g)}else{var C=nR(l,r,d+f,h),w=nR(l,r,d,d+f),M=w>=0&&t[w];if(n&&!M||!n&&!(C>=0&&t[C])){ES(E_(c,s),o,l);var R=function jCe(i,r,t,e,n){var a=new w_(i,t,m);return a.multi=[],a.index=r,a.componentProviders=0,y5(a,n,e&&!t),a}(n?KCe:HCe,t.length,n,e,u);!n&&M&&(t[w].providerFactory=R),tR(o,i,r.length,0),r.push(l),c.directiveStart++,c.directiveEnd++,n&&(c.providerIndexes+=1048576),t.push(R),s.push(R)}else tR(o,i,C>-1?C:w,y5(t[n?w:C],u,!n&&e));!n&&e&&M&&t[w].componentProviders++}}}function tR(i,r,t,e){var n=_p(r),a=function yye(i){return!!i.useClass}(r);if(n||a){var l=(a?fn(r.useClass):r).prototype.ngOnDestroy;if(l){var u=i.destroyHooks||(i.destroyHooks=[]);if(!n&&r.multi){var c=u.indexOf(t);-1===c?u.push(t,[e,l]):u[c+1].push(e,l)}else u.push(t,l)}}}function y5(i,r,t){return t&&i.componentProviders++,i.multi.push(r)-1}function nR(i,r,t,e){for(var n=t;n1&&void 0!==arguments[1]?arguments[1]:[];return function(t){t.providersResolver=function(e,n){return zCe(e,n?n(i):i,r)}}}var WCe=v(function i(){p(this,i)}),k5=v(function i(){p(this,i)}),qCe=function(){function i(){p(this,i)}return v(i,[{key:"resolveComponentFactory",value:function(t){throw function $Ce(i){var r=Error("No component factory found for ".concat(si(i),". Did you add it to @NgModule.entryComponents?"));return r.ngComponent=i,r}(t)}}]),i}(),Ts=function(){var i=v(function r(){p(this,r)});return i.NULL=new qCe,i}();function XCe(){return Np(Fr(),Oe())}function Np(i,r){return new ke(Ss(i,r))}var ke=function(){var i=v(function r(t){p(this,r),this.nativeElement=t});return i.__NG_ELEMENT_ID__=XCe,i}();function ZCe(i){return i instanceof ke?i.nativeElement:i}var ny=v(function i(){p(this,i)}),Ee=function(){var i=v(function r(){p(this,r)});return i.__NG_ELEMENT_ID__=function(){return function QCe(){var i=Oe(),t=Go(Fr().index,i);return function YCe(i){return i[11]}(Hl(t)?t:i)}()},i}(),JCe=function(){var i=v(function r(){p(this,r)});return i.\u0275prov=pe({token:i,providedIn:"root",factory:function(){return null}}),i}(),iy=v(function i(r){p(this,i),this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}),ebe=new iy("13.3.10"),rR={};function tw(i,r,t,e){for(var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==t;){var a=r[t.index];if(null!==a&&e.push(Tr(a)),el(a))for(var o=10;o-1&&(oM(t,n),AS(e,n))}this._attachedToViewContainer=!1}M3(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){dH(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){xM(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){!function RM(i,r,t){var e=r[10];e.begin&&e.begin();try{gp(i,r,i.template,t)}catch(n){throw wH(r,n),n}finally{e.end&&e.end()}}(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new gt(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function o_e(i,r){H_(i,r,r[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new gt(902,"");this._appRef=t}}]),i}(),tbe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e))._view=e,n}return v(t,[{key:"detectChanges",value:function(){kH(this._view)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),t}(ry),b5=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).ngModule=e,n}return v(t,[{key:"resolveComponentFactory",value:function(n){var a=Ma(n);return new aR(a,this.ngModule)}}]),t}(Ts);function S5(i){var r=[];for(var t in i)i.hasOwnProperty(t)&&r.push({propName:i[t],templateName:t});return r}var aR=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).componentDef=e,a.ngModule=n,a.componentType=e.type,a.selector=function E_e(i){return i.map(D_e).join(",")}(e.selectors),a.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],a.isBoundToModule=!!n,a}return v(t,[{key:"inputs",get:function(){return S5(this.componentDef.inputs)}},{key:"outputs",get:function(){return S5(this.componentDef.outputs)}},{key:"create",value:function(n,a,o,s){var E,M,l=(s=s||this.ngModule)?function ibe(i,r){return{get:function(e,n,a){var o=i.get(e,rR,a);return o!==rR||n===rR?o:r.get(e,n,a)}}}(n,s.injector):n,u=l.get(ny,mz),c=l.get(JCe,null),d=u.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",f=o?function cH(i,r,t){if(sr(i))return i.selectRootElement(r,t===Qs.ShadowDom);var n="string"==typeof r?i.querySelector(r):r;return n.textContent="",n}(d,o,this.componentDef.encapsulation):aM(u.createRenderer(null,this.componentDef),h,function nbe(i){var r=i.toLowerCase();return"svg"===r?"svg":"math"===r?"math":null}(h)),g=this.componentDef.onPush?576:528,_=function BH(i,r){return{components:[],scheduler:i||Jme,clean:cye,playerHandler:r||null,flags:0}}(),C=HS(0,null,null,1,0,null,null,null,null,null),w=K_(null,C,_,g,null,null,u,d,c,l);mS(w);try{var R=function LH(i,r,t,e,n,a){var o=t[1];t[20]=i;var l=vp(o,20,2,"#host",null),u=l.mergedAttrs=r.hostAttrs;null!==u&&(jS(l,u,!0),null!==i&&(bS(n,i,u),null!==l.classes&&dM(n,i,l.classes),null!==l.styles&&z3(n,i,l.styles)));var c=e.createRenderer(i,r),d=K_(t,lH(r),null,r.onPush?64:16,t[20],l,e,c,a||null,null);return o.firstCreatePass&&(ES(E_(l,t),o,r.type),gH(o,l),mH(l,t.length,1)),KS(t,d),t[20]=d}(f,this.componentDef,w,u,d);if(f)if(o)bS(d,f,["ng-version",ebe.full]);else{var N=function T_e(i){for(var r=[],t=[],e=1,n=2;e0&&dM(d,f,U.join(" "))}if(M=Cx(C,20),void 0!==a)for(var ee=M.projection=[],ve=0;ve1&&void 0!==arguments[1]?arguments[1]:Jn.THROW_IF_NOT_FOUND,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:tn.Default;return n===Jn||n===hc||n===IM?this:this._r3Injector.get(n,a,o)}},{key:"destroy",value:function(){var n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(function(a){return a()}),this.destroyCbs=null}},{key:"onDestroy",value:function(n){this.destroyCbs.push(n)}}]),t}(hc),oR=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).moduleType=e,null!==ks(e)&&function sbe(i){var r=new Set;!function t(e){var n=ks(e,!0),a=n.id;null!==a&&(function D5(i,r,t){if(r&&r!==t)throw new Error("Duplicate module registered for ".concat(i," - ").concat(si(r)," vs ").concat(si(r.name)))}(a,Fp.get(a),e),Fp.set(a,e));var u,l=In(ql(n.imports));try{for(l.s();!(u=l.n()).done;){var c=u.value;r.has(c)||(r.add(c),t(c))}}catch(d){l.e(d)}finally{l.f()}}(i)}(e),n}return v(t,[{key:"create",value:function(n){return new T5(this.moduleType,n)}}]),t}(w5);function Tt(i,r,t){var e=za()+i,n=Oe();return n[e]===on?Zl(n,e,t?r.call(t):r()):q_(n,e)}function ot(i,r,t,e){return x5(Oe(),za(),i,r,t,e)}function ln(i,r,t,e,n){return M5(Oe(),za(),i,r,t,e,n)}function va(i,r,t,e,n,a){return R5(Oe(),za(),i,r,t,e,n,a)}function eu(i,r,t,e,n,a,o){return function O5(i,r,t,e,n,a,o,s,l){var u=r+t;return Es(i,u,n,a,o,s)?Zl(i,u+4,l?e.call(l,n,a,o,s):e(n,a,o,s)):oy(i,u+4)}(Oe(),za(),i,r,t,e,n,a,o)}function ay(i,r,t,e,n,a,o,s,l){var u=za()+i,c=Oe(),d=Es(c,u,t,e,n,a);return Xh(c,u+4,o,s)||d?Zl(c,u+6,l?r.call(l,t,e,n,a,o,s):r(t,e,n,a,o,s)):q_(c,u+6)}function sR(i,r,t,e,n,a,o,s,l,u){var c=za()+i,d=Oe(),h=Es(d,c,t,e,n,a);return $S(d,c+4,o,s,l)||h?Zl(d,c+7,u?r.call(u,t,e,n,a,o,s,l):r(t,e,n,a,o,s,l)):q_(d,c+7)}function lR(i,r,t,e){return function I5(i,r,t,e,n,a){for(var o=r+t,s=!1,l=0;l=0;t--){var e=r[t];if(i===e.name)return e}}(r,t.pipeRegistry),t.data[n]=e,e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)):e=t.data[n];var a=e.factory||(e.factory=Wh(e.type)),o=dd(m);try{var s=wS(!1),l=a();return wS(s),function jye(i,r,t,e){t>=i.data.length&&(i.data[t]=null,i.blueprint[t]=null),r[t]=e}(t,Oe(),n,l),l}finally{dd(o)}}function fc(i,r,t){var e=i+20,n=Oe(),a=ep(n,e);return sy(n,e)?x5(n,za(),r,a.transform,t,a):a.transform(t)}function nw(i,r,t,e){var n=i+20,a=Oe(),o=ep(a,n);return sy(a,n)?M5(a,za(),r,o.transform,t,e,o):o.transform(t,e)}function iw(i,r,t,e,n){var a=i+20,o=Oe(),s=ep(o,a);return sy(o,a)?R5(o,za(),r,s.transform,t,e,n,s):s.transform(t,e,n)}function sy(i,r){return i[1].data[r].pure}var hbe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p(this,t),(e=r.call(this)).__isAsync=n,e}return v(t,[{key:"emit",value:function(n){$(q(t.prototype),"next",this).call(this,n)}},{key:"subscribe",value:function(n,a,o){var s,l,u,c=n,d=a||function(){return null},h=o;if(n&&"object"==typeof n){var f=n;c=null===(s=f.next)||void 0===s?void 0:s.bind(f),d=null===(l=f.error)||void 0===l?void 0:l.bind(f),h=null===(u=f.complete)||void 0===u?void 0:u.bind(f)}this.__isAsync&&(d=uR(d),c&&(c=uR(c)),h&&(h=uR(h)));var g=$(q(t.prototype),"subscribe",this).call(this,{next:c,error:d,complete:h});return n instanceof Je&&n.add(g),g}}]),t}(Ot);function uR(i){return function(r){setTimeout(i,void 0,r)}}var O=hbe;function fbe(){return this._results[yp()]()}var Ei=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,i),this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var t=yp(),e=i.prototype;e[t]||(e[t]=fbe)}return v(i,[{key:"changes",get:function(){return this._changes||(this._changes=new O)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){var n=this;n.dirty=!1;var a=ws(t);(this._changesDetected=!function xge(i,r,t){if(i.length!==r.length)return!1;for(var e=0;e0;)this.remove(this.length-1)}},{key:"get",value:function(n){var a=F5(this._lContainer);return null!==a&&a[n]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(n,a,o){var s=n.createEmbeddedView(a||{});return this.insert(s,o),s}},{key:"createComponent",value:function(n,a,o,s,l){var c,u=n&&!function M_(i){return"function"==typeof i}(n);if(u)c=a;else{var d=a||{};c=d.index,o=d.injector,s=d.projectableNodes,l=d.ngModuleRef}var h=u?n:new aR(Ma(n)),f=o||this.parentInjector;if(!l&&null==h.ngModule){var _=(u?f:this.parentInjector).get(hc,null);_&&(l=_)}var C=h.create(f,s,void 0,l);return this.insert(C.hostView,c),C}},{key:"insert",value:function(n,a){var o=n._lView,s=o[1];if(function Zpe(i){return el(i[3])}(o)){var l=this.indexOf(n);if(-1!==l)this.detach(l);else{var u=o[3],c=new N5(u,u[6],u[3]);c.detach(c.indexOf(n))}}var d=this._adjustIndex(a),h=this._lContainer;!function l_e(i,r,t,e){var n=10+e,a=t.length;e>0&&(t[n-1][4]=r),e1&&void 0!==arguments[1]?arguments[1]:0;return null==n?this.length+a:n}}]),t}(ei);function F5(i){return i[8]}function cR(i){return i[8]||(i[8]=[])}function L5(i,r){var t,e=r[i.index];if(el(e))t=e;else{var n;if(8&i.type)n=Tr(e);else{var a=r[11];n=a.createComment("");var o=Ss(i,r);qh(a,PS(a,o),n,function f_e(i,r){return sr(i)?i.nextSibling(r):r.nextSibling}(a,o),!1)}r[i.index]=t=yH(e,r,n,i),KS(r,t)}return new N5(t,i,r)}var Cbe=function(){function i(r){p(this,i),this.queryList=r,this.matches=null}return v(i,[{key:"clone",value:function(){return new i(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),i}(),bbe=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,i),this.queries=r}return v(i,[{key:"createEmbeddedView",value:function(t){var e=t.queries;if(null!==e){for(var n=null!==t.contentQueries?t.contentQueries[0]:e.length,a=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;p(this,i),this.predicate=r,this.flags=t,this.read=e}),Sbe=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,i),this.queries=r}return v(i,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;p(this,i),this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}return v(i,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new i(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var a=0;a0)e.push(o[s/2]);else{for(var u=a[s+1],c=r[-l],d=10;d0&&(s=setTimeout(function(){o._callbacks=o._callbacks.filter(function(l){return l.timeoutId!==s}),e(o._didWork,o.getPendingTasks())},n)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:a})}},{key:"whenStable",value:function(e,n,a){if(a&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,a),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,n,a){return[]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rSe=function(){var i=function(){function r(){p(this,r),this._applications=new Map,SR.addToWindow(this)}return v(r,[{key:"registerApplication",value:function(e,n){this._applications.set(e,n)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return SR.findTestabilityInTree(this,e,n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}(),aSe=function(){function i(){p(this,i)}return v(i,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),i}(),SR=new aSe,Yh=null,c4=new wt("AllowMultipleToken"),d4=new wt("PlatformOnDestroy");function sSe(i,r,t){var e=new oR(t);return Promise.resolve(e)}var h4=v(function i(r,t){p(this,i),this.name=r,this.token=t});function uSe(i){if(Yh&&!Yh.get(c4,!1))throw new gt(400,"");Yh=i;var t=i.get(v4),e=i.get(a4,null);return e&&e.forEach(function(n){return n()}),t}function f4(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],e="Platform: ".concat(r),n=new wt(e);return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=wR();if(!o||o.injector.get(c4,!1)){var s=[].concat(Ae(t),Ae(a),[{provide:n,useValue:!0}]);i?i(s):uSe(dSe(s,e))}return cSe()}}function cSe(i){var r=wR();if(!r)throw new gt(401,"");return r}function dSe(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;return Jn.create({name:r,providers:[{provide:NM,useValue:"platform"},{provide:d4,useValue:function(){return Yh=null}}].concat(Ae(i))})}function wR(){var i;return null!==(i=null==Yh?void 0:Yh.get(v4))&&void 0!==i?i:null}var v4=function(){var i=function(){function r(t){p(this,r),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return v(r,[{key:"bootstrapModuleFactory",value:function(e,n){var a=this,u=function hSe(i,r){return"noop"===i?new iSe:("zone.js"===i?void 0:i)||new be({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})}(n?n.ngZone:void 0,{ngZoneEventCoalescing:n&&n.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:n&&n.ngZoneRunCoalescing||!1}),c=[{provide:be,useValue:u}];return u.run(function(){var d=Jn.create({providers:c,parent:a.injector,name:e.moduleType.name}),h=e.create(d),f=h.injector.get(U_,null);if(!f)throw new gt(402,"");return u.runOutsideAngular(function(){var _=u.onError.subscribe({next:function(w){f.handleError(w)}});h.onDestroy(function(){DR(a._modules,h),_.unsubscribe()})}),function fSe(i,r,t){try{var e=t();return X_(e)?e.catch(function(n){throw r.runOutsideAngular(function(){return i.handleError(n)}),n}):e}catch(n){throw r.runOutsideAngular(function(){return i.handleError(n)}),n}}(f,u,function(){var _=h.injector.get(mR);return _.runInitializers(),_.donePromise.then(function(){return function Jke(i){Po(i,"Expected localeId to be defined"),"string"==typeof i&&(q8=i.toLowerCase().replace(/_/g,"-"))}(h.injector.get(Ko,ZS)||ZS),a._moduleDoBootstrap(h),h})})})}},{key:"bootstrapModule",value:function(e){var n=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=p4({},a);return sSe(0,0,e).then(function(s){return n.bootstrapModuleFactory(s,o)})}},{key:"_moduleDoBootstrap",value:function(e){var n=e.injector.get(dy);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(o){return n.bootstrap(o)});else{if(!e.instance.ngDoBootstrap)throw new gt(403,"");e.instance.ngDoBootstrap(n)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new gt(404,"");this._modules.slice().forEach(function(a){return a.destroy()}),this._destroyListeners.forEach(function(a){return a()});var n=this._injector.get(d4,null);null==n||n(),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}();function p4(i,r){return Array.isArray(r)?r.reduce(p4,i):Object.assign(Object.assign({},i),r)}var dy=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this._zone=t,this._injector=e,this._exceptionHandler=n,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){o._zone.run(function(){o.tick()})}});var s=new An(function(u){o._stable=o._zone.isStable&&!o._zone.hasPendingMacrotasks&&!o._zone.hasPendingMicrotasks,o._zone.runOutsideAngular(function(){u.next(o._stable),u.complete()})}),l=new An(function(u){var c;o._zone.runOutsideAngular(function(){c=o._zone.onStable.subscribe(function(){be.assertNotInAngularZone(),yR(function(){!o._stable&&!o._zone.hasPendingMacrotasks&&!o._zone.hasPendingMicrotasks&&(o._stable=!0,u.next(!0))})})});var d=o._zone.onUnstable.subscribe(function(){be.assertInAngularZone(),o._stable&&(o._stable=!1,o._zone.runOutsideAngular(function(){u.next(!1)}))});return function(){c.unsubscribe(),d.unsubscribe()}});this.isStable=xn(s,l.pipe(nx()))}return v(r,[{key:"bootstrap",value:function(e,n){var s,a=this;if(!this._initStatus.done)throw new gt(405,"");s=e instanceof k5?e:this._injector.get(Ts).resolveComponentFactory(e),this.componentTypes.push(s.componentType);var u=function lSe(i){return i.isBoundToModule}(s)?void 0:this._injector.get(hc),d=s.create(Jn.NULL,[],n||s.selector,u),h=d.location.nativeElement,f=d.injector.get(bR,null),g=f&&d.injector.get(rSe);return f&&g&&g.registerApplication(h,f),d.onDestroy(function(){a.detachView(d.hostView),DR(a.components,d),g&&g.unregisterApplication(h)}),this._loadComponent(d),d}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new gt(101,"");try{this._runningTick=!0;var o,a=In(this._views);try{for(a.s();!(o=a.n()).done;)o.value.detectChanges()}catch(d){a.e(d)}finally{a.f()}}catch(d){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(d)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var n=e;this._views.push(n),n.attachToAppRef(this)}},{key:"detachView",value:function(e){var n=e;DR(this._views,n),n.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(o4,[]).concat(this._bootstrapListeners).forEach(function(a){return a(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Jn),oe(U_),oe(mR))},i.\u0275prov=pe({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function DR(i,r){var t=i.indexOf(r);t>-1&&i.splice(t,1)}var m4=!0,_4=!1;function xt(){return _4=!0,m4}var nt=function(){var i=v(function r(){p(this,r)});return i.__NG_ELEMENT_ID__=gSe,i}();function gSe(i){return function mSe(i,r,t){if(fS(i)&&!t){var e=Go(i.index,r);return new ry(e,e)}return 47&i.type?new ry(r[16],r):null}(Fr(),Oe(),16==(16&i))}var b4=function(){function i(){p(this,i)}return v(i,[{key:"supports",value:function(t){return $_(t)}},{key:"create",value:function(t){return new CSe(t)}}]),i}(),kSe=function(r,t){return t},CSe=function(){function i(r){p(this,i),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||kSe}return v(i,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,a=0,o=null;e||n;){var s=!n||e&&e.currentIndex0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(a)}},{key:"getState",value:function(){return this._history.state}}]),e}(Jh);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:function(){return function FSe(){return new A4(oe(pa))}()},providedIn:"platform"}),i}();function x4(){return!!window.history.pushState}function RR(i,r){if(0==i.length)return r;if(0==r.length)return i;var t=0;return i.endsWith("/")&&t++,r.startsWith("/")&&t++,2==t?i+r.substring(1):1==t?i+r:i+"/"+r}function M4(i){var r=i.match(/#|\?|$/),t=r&&r.index||i.length;return i.slice(0,t-("/"===i[t-1]?1:0))+i.slice(t)}function vc(i){return i&&"?"!==i[0]?"?"+i:i}var Bp=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:function(){return function LSe(i){var r=oe(pa).location;return new R4(oe(Jh),r&&r.origin||"")}()},providedIn:"root"}),i}(),OR=new wt("appBaseHref"),R4=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;if(p(this,e),(o=t.call(this))._platformLocation=n,o._removeListenerFns=[],null==a&&(a=o._platformLocation.getBaseHrefFromDOM()),null==a)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return o._baseHref=a,o}return v(e,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(a){return RR(this._baseHref,a)}},{key:"path",value:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this._platformLocation.pathname+vc(this._platformLocation.search),s=this._platformLocation.hash;return s&&a?"".concat(o).concat(s):o}},{key:"pushState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));this._platformLocation.pushState(a,o,u)}},{key:"replaceState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));this._platformLocation.replaceState(a,o,u)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),e}(Bp);return i.\u0275fac=function(t){return new(t||i)(oe(Jh),oe(OR,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),PSe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this))._platformLocation=n,o._baseHref="",o._removeListenerFns=[],null!=a&&(o._baseHref=a),o}return v(e,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var o=this._platformLocation.hash;return null==o&&(o="#"),o.length>0?o.substring(1):o}},{key:"prepareExternalUrl",value:function(a){var o=RR(this._baseHref,a);return o.length>0?"#"+o:o}},{key:"pushState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.pushState(a,o,u)}},{key:"replaceState",value:function(a,o,s,l){var u=this.prepareExternalUrl(s+vc(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.replaceState(a,o,u)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var o,s,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(s=(o=this._platformLocation).historyGo)||void 0===s||s.call(o,a)}}]),e}(Bp);return i.\u0275fac=function(t){return new(t||i)(oe(Jh),oe(OR,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),IR=function(){var i=function(){function r(t,e){var n=this;p(this,r),this._subject=new O,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=M4(O4(a)),this._platformStrategy.onPopState(function(o){n._subject.emit({url:n.path(!0),pop:!0,state:o.state,type:o.type})})}return v(r,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+vc(n))}},{key:"normalize",value:function(e){return r.stripTrailingSlash(function GSe(i,r){return i&&r.startsWith(i)?r.substring(i.length):r}(this._baseHref,O4(e)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(a,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vc(n)),a)}},{key:"replaceState",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(a,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+vc(n)),a)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var n,a,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(a=(n=this._platformStrategy).historyGo)||void 0===a||a.call(n,e)}},{key:"onUrlChange",value:function(e){var n=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(a){n._notifyUrlChangeListeners(a.url,a.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(a){return a(e,n)})}},{key:"subscribe",value:function(e,n,a){return this._subject.subscribe({next:e,error:n,complete:a})}}]),r}();return i.normalizeQueryParams=vc,i.joinWithSlash=RR,i.stripTrailingSlash=M4,i.\u0275fac=function(t){return new(t||i)(oe(Bp),oe(Jh))},i.\u0275prov=pe({token:i,factory:function(){return function BSe(){return new IR(oe(Bp),oe(Jh))}()},providedIn:"root"}),i}();function O4(i){return i.replace(/\/index.html$/,"")}var _o=function(){return(_o=_o||{})[_o.Decimal=0]="Decimal",_o[_o.Percent=1]="Percent",_o[_o.Currency=2]="Currency",_o[_o.Scientific=3]="Scientific",_o}(),_r=function(){return(_r=_r||{})[_r.Format=0]="Format",_r[_r.Standalone=1]="Standalone",_r}(),Dn=function(){return(Dn=Dn||{})[Dn.Narrow=0]="Narrow",Dn[Dn.Abbreviated=1]="Abbreviated",Dn[Dn.Wide=2]="Wide",Dn[Dn.Short=3]="Short",Dn}(),$i=function(){return($i=$i||{})[$i.Short=0]="Short",$i[$i.Medium=1]="Medium",$i[$i.Long=2]="Long",$i[$i.Full=3]="Full",$i}(),Kt=function(){return(Kt=Kt||{})[Kt.Decimal=0]="Decimal",Kt[Kt.Group=1]="Group",Kt[Kt.List=2]="List",Kt[Kt.PercentSign=3]="PercentSign",Kt[Kt.PlusSign=4]="PlusSign",Kt[Kt.MinusSign=5]="MinusSign",Kt[Kt.Exponential=6]="Exponential",Kt[Kt.SuperscriptingExponent=7]="SuperscriptingExponent",Kt[Kt.PerMille=8]="PerMille",Kt[Kt.Infinity=9]="Infinity",Kt[Kt.NaN=10]="NaN",Kt[Kt.TimeSeparator=11]="TimeSeparator",Kt[Kt.CurrencyDecimal=12]="CurrencyDecimal",Kt[Kt.CurrencyGroup=13]="CurrencyGroup",Kt}();function cw(i,r){return xs(Ka(i)[st.DateFormat],r)}function dw(i,r){return xs(Ka(i)[st.TimeFormat],r)}function hw(i,r){return xs(Ka(i)[st.DateTimeFormat],r)}function As(i,r){var t=Ka(i),e=t[st.NumberSymbols][r];if(void 0===e){if(r===Kt.CurrencyDecimal)return t[st.NumberSymbols][Kt.Decimal];if(r===Kt.CurrencyGroup)return t[st.NumberSymbols][Kt.Group]}return e}function N4(i){if(!i[st.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(i[st.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function xs(i,r){for(var t=r;t>-1;t--)if(void 0!==i[t])return i[t];throw new Error("Locale data API: locale data undefined")}function FR(i){var t=Gt(i.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var QSe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,fy={},JSe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Br=function(){return(Br=Br||{})[Br.Short=0]="Short",Br[Br.ShortGMT=1]="ShortGMT",Br[Br.Long=2]="Long",Br[Br.Extended=3]="Extended",Br}(),$t=function(){return($t=$t||{})[$t.FullYear=0]="FullYear",$t[$t.Month=1]="Month",$t[$t.Date=2]="Date",$t[$t.Hours=3]="Hours",$t[$t.Minutes=4]="Minutes",$t[$t.Seconds=5]="Seconds",$t[$t.FractionalSeconds=6]="FractionalSeconds",$t[$t.Day=7]="Day",$t}(),pn=function(){return(pn=pn||{})[pn.DayPeriods=0]="DayPeriods",pn[pn.Days=1]="Days",pn[pn.Months=2]="Months",pn[pn.Eras=3]="Eras",pn}();function ewe(i,r,t,e){var n=function uwe(i){if(P4(i))return i;if("number"==typeof i&&!isNaN(i))return new Date(i);if("string"==typeof i){if(i=i.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(i)){var t=Gt(i.split("-").map(function(d){return+d}),3),n=t[1],o=t[2];return fw(t[0],(void 0===n?1:n)-1,void 0===o?1:o)}var u,l=parseFloat(i);if(!isNaN(i-l))return new Date(l);if(u=i.match(QSe))return function cwe(i){var r=new Date(0),t=0,e=0,n=i[8]?r.setUTCFullYear:r.setFullYear,a=i[8]?r.setUTCHours:r.setHours;i[9]&&(t=Number(i[9]+i[10]),e=Number(i[9]+i[11])),n.call(r,Number(i[1]),Number(i[2])-1,Number(i[3]));var o=Number(i[4]||0)-t,s=Number(i[5]||0)-e,l=Number(i[6]||0),u=Math.floor(1e3*parseFloat("0."+(i[7]||0)));return a.call(r,o,s,l,u),r}(u)}var c=new Date(i);if(!P4(c))throw new Error('Unable to convert "'.concat(i,'" into a date'));return c}(i);r=pc(t,r)||r;for(var s,o=[];r;){if(!(s=JSe.exec(r))){o.push(r);break}var l=(o=o.concat(s.slice(1))).pop();if(!l)break;r=l}var u=n.getTimezoneOffset();e&&(u=L4(e,u),n=function lwe(i,r,t){var e=t?-1:1,n=i.getTimezoneOffset();return function swe(i,r){return(i=new Date(i.getTime())).setMinutes(i.getMinutes()+r),i}(i,e*(L4(r,n)-n))}(n,e,!0));var c="";return o.forEach(function(d){var h=function owe(i){if(PR[i])return PR[i];var r;switch(i){case"G":case"GG":case"GGG":r=Ti(pn.Eras,Dn.Abbreviated);break;case"GGGG":r=Ti(pn.Eras,Dn.Wide);break;case"GGGGG":r=Ti(pn.Eras,Dn.Narrow);break;case"y":r=Mr($t.FullYear,1,0,!1,!0);break;case"yy":r=Mr($t.FullYear,2,0,!0,!0);break;case"yyy":r=Mr($t.FullYear,3,0,!1,!0);break;case"yyyy":r=Mr($t.FullYear,4,0,!1,!0);break;case"Y":r=mw(1);break;case"YY":r=mw(2,!0);break;case"YYY":r=mw(3);break;case"YYYY":r=mw(4);break;case"M":case"L":r=Mr($t.Month,1,1);break;case"MM":case"LL":r=Mr($t.Month,2,1);break;case"MMM":r=Ti(pn.Months,Dn.Abbreviated);break;case"MMMM":r=Ti(pn.Months,Dn.Wide);break;case"MMMMM":r=Ti(pn.Months,Dn.Narrow);break;case"LLL":r=Ti(pn.Months,Dn.Abbreviated,_r.Standalone);break;case"LLLL":r=Ti(pn.Months,Dn.Wide,_r.Standalone);break;case"LLLLL":r=Ti(pn.Months,Dn.Narrow,_r.Standalone);break;case"w":r=LR(1);break;case"ww":r=LR(2);break;case"W":r=LR(1,!0);break;case"d":r=Mr($t.Date,1);break;case"dd":r=Mr($t.Date,2);break;case"c":case"cc":r=Mr($t.Day,1);break;case"ccc":r=Ti(pn.Days,Dn.Abbreviated,_r.Standalone);break;case"cccc":r=Ti(pn.Days,Dn.Wide,_r.Standalone);break;case"ccccc":r=Ti(pn.Days,Dn.Narrow,_r.Standalone);break;case"cccccc":r=Ti(pn.Days,Dn.Short,_r.Standalone);break;case"E":case"EE":case"EEE":r=Ti(pn.Days,Dn.Abbreviated);break;case"EEEE":r=Ti(pn.Days,Dn.Wide);break;case"EEEEE":r=Ti(pn.Days,Dn.Narrow);break;case"EEEEEE":r=Ti(pn.Days,Dn.Short);break;case"a":case"aa":case"aaa":r=Ti(pn.DayPeriods,Dn.Abbreviated);break;case"aaaa":r=Ti(pn.DayPeriods,Dn.Wide);break;case"aaaaa":r=Ti(pn.DayPeriods,Dn.Narrow);break;case"b":case"bb":case"bbb":r=Ti(pn.DayPeriods,Dn.Abbreviated,_r.Standalone,!0);break;case"bbbb":r=Ti(pn.DayPeriods,Dn.Wide,_r.Standalone,!0);break;case"bbbbb":r=Ti(pn.DayPeriods,Dn.Narrow,_r.Standalone,!0);break;case"B":case"BB":case"BBB":r=Ti(pn.DayPeriods,Dn.Abbreviated,_r.Format,!0);break;case"BBBB":r=Ti(pn.DayPeriods,Dn.Wide,_r.Format,!0);break;case"BBBBB":r=Ti(pn.DayPeriods,Dn.Narrow,_r.Format,!0);break;case"h":r=Mr($t.Hours,1,-12);break;case"hh":r=Mr($t.Hours,2,-12);break;case"H":r=Mr($t.Hours,1);break;case"HH":r=Mr($t.Hours,2);break;case"m":r=Mr($t.Minutes,1);break;case"mm":r=Mr($t.Minutes,2);break;case"s":r=Mr($t.Seconds,1);break;case"ss":r=Mr($t.Seconds,2);break;case"S":r=Mr($t.FractionalSeconds,1);break;case"SS":r=Mr($t.FractionalSeconds,2);break;case"SSS":r=Mr($t.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":r=pw(Br.Short);break;case"ZZZZZ":r=pw(Br.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=pw(Br.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":r=pw(Br.Long);break;default:return null}return PR[i]=r,r}(d);c+=h?h(n,t,u):"''"===d?"'":d.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function fw(i,r,t){var e=new Date(0);return e.setFullYear(i,r,t),e.setHours(0,0,0),e}function pc(i,r){var t=function VSe(i){return Ka(i)[st.LocaleId]}(i);if(fy[t]=fy[t]||{},fy[t][r])return fy[t][r];var e="";switch(r){case"shortDate":e=cw(i,$i.Short);break;case"mediumDate":e=cw(i,$i.Medium);break;case"longDate":e=cw(i,$i.Long);break;case"fullDate":e=cw(i,$i.Full);break;case"shortTime":e=dw(i,$i.Short);break;case"mediumTime":e=dw(i,$i.Medium);break;case"longTime":e=dw(i,$i.Long);break;case"fullTime":e=dw(i,$i.Full);break;case"short":var n=pc(i,"shortTime"),a=pc(i,"shortDate");e=vw(hw(i,$i.Short),[n,a]);break;case"medium":var o=pc(i,"mediumTime"),s=pc(i,"mediumDate");e=vw(hw(i,$i.Medium),[o,s]);break;case"long":var l=pc(i,"longTime"),u=pc(i,"longDate");e=vw(hw(i,$i.Long),[l,u]);break;case"full":var c=pc(i,"fullTime"),d=pc(i,"fullDate");e=vw(hw(i,$i.Full),[c,d])}return e&&(fy[t][r]=e),e}function vw(i,r){return r&&(i=i.replace(/\{([^}]+)}/g,function(t,e){return null!=r&&e in r?r[e]:t})),i}function sl(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",e=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,a="";(i<0||n&&i<=0)&&(n?i=1-i:(i=-i,a=t));for(var o=String(i);o.length2&&void 0!==arguments[2]?arguments[2]:0,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s=nwe(i,a);if((t>0||s>-t)&&(s+=t),i===$t.Hours)0===s&&-12===t&&(s=12);else if(i===$t.FractionalSeconds)return twe(s,r);var l=As(o,Kt.MinusSign);return sl(s,r,l,e,n)}}function nwe(i,r){switch(i){case $t.FullYear:return r.getFullYear();case $t.Month:return r.getMonth();case $t.Date:return r.getDate();case $t.Hours:return r.getHours();case $t.Minutes:return r.getMinutes();case $t.Seconds:return r.getSeconds();case $t.FractionalSeconds:return r.getMilliseconds();case $t.Day:return r.getDay();default:throw new Error('Unknown DateType value "'.concat(i,'".'))}}function Ti(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_r.Format,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(n,a){return iwe(n,a,i,r,t,e)}}function iwe(i,r,t,e,n,a){switch(t){case pn.Months:return function HSe(i,r,t){var e=Ka(i),a=xs([e[st.MonthsFormat],e[st.MonthsStandalone]],r);return xs(a,t)}(r,n,e)[i.getMonth()];case pn.Days:return function zSe(i,r,t){var e=Ka(i),a=xs([e[st.DaysFormat],e[st.DaysStandalone]],r);return xs(a,t)}(r,n,e)[i.getDay()];case pn.DayPeriods:var o=i.getHours(),s=i.getMinutes();if(a){var l=function $Se(i){var r=Ka(i);return N4(r),(r[st.ExtraData][2]||[]).map(function(e){return"string"==typeof e?FR(e):[FR(e[0]),FR(e[1])]})}(r),u=function qSe(i,r,t){var e=Ka(i);N4(e);var a=xs([e[st.ExtraData][0],e[st.ExtraData][1]],r)||[];return xs(a,t)||[]}(r,n,e),c=l.findIndex(function(h){if(Array.isArray(h)){var f=Gt(h,2),g=f[0],_=f[1],C=o>=g.hours&&s>=g.minutes,w=o<_.hours||o===_.hours&&s<_.minutes;if(g.hours<_.hours){if(C&&w)return!0}else if(C||w)return!0}else if(h.hours===o&&h.minutes===s)return!0;return!1});if(-1!==c)return u[c]}return function USe(i,r,t){var e=Ka(i),a=xs([e[st.DayPeriodsFormat],e[st.DayPeriodsStandalone]],r);return xs(a,t)}(r,n,e)[o<12?0:1];case pn.Eras:return function KSe(i,r){return xs(Ka(i)[st.Eras],r)}(r,e)[i.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(t))}}function pw(i){return function(r,t,e){var n=-1*e,a=As(t,Kt.MinusSign),o=n>0?Math.floor(n/60):Math.ceil(n/60);switch(i){case Br.Short:return(n>=0?"+":"")+sl(o,2,a)+sl(Math.abs(n%60),2,a);case Br.ShortGMT:return"GMT"+(n>=0?"+":"")+sl(o,1,a);case Br.Long:return"GMT"+(n>=0?"+":"")+sl(o,2,a)+":"+sl(Math.abs(n%60),2,a);case Br.Extended:return 0===e?"Z":(n>=0?"+":"")+sl(o,2,a)+":"+sl(Math.abs(n%60),2,a);default:throw new Error('Unknown zone width "'.concat(i,'"'))}}}function awe(i){var r=fw(i,0,1).getDay();return fw(i,0,1+(r<=4?4:11)-r)}function F4(i){return fw(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))}function LR(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t,e){var n;if(r){var a=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();n=1+Math.floor((o+a)/7)}else{var s=F4(t),l=awe(s.getFullYear()),u=s.getTime()-l.getTime();n=1+Math.round(u/6048e5)}return sl(n,i,As(e,Kt.MinusSign))}}function mw(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(t,e){return sl(F4(t).getFullYear(),i,As(e,Kt.MinusSign),r)}}var PR={};function L4(i,r){i=i.replace(/:/g,"");var t=Date.parse("Jan 01, 1970 00:00:00 "+i)/6e4;return isNaN(t)?r:t}function P4(i){return i instanceof Date&&!isNaN(i.valueOf())}var dwe=/^(\d+)?\.((\d+)(-(\d+))?)?$/,vy="0";function _we(i){if(0===i.digits[0])return i;var r=i.digits.length-i.integerLen;return i.exponent?i.exponent+=2:(0===r?i.digits.push(0,0):1===r&&i.digits.push(0),i.integerLen+=2),i}function ywe(i){var e,n,a,o,s,r=Math.abs(i)+"",t=0;for((n=r.indexOf("."))>-1&&(r=r.replace(".","")),(a=r.search(/e/i))>0?(n<0&&(n=a),n+=+r.slice(a+1),r=r.substring(0,a)):n<0&&(n=r.length),a=0;r.charAt(a)===vy;a++);if(a===(s=r.length))e=[0],n=1;else{for(s--;r.charAt(s)===vy;)s--;for(n-=a,e=[],o=0;a<=s;a++,o++)e[o]=Number(r.charAt(a))}return n>22&&(e=e.splice(0,21),t=n-1,n=1),{digits:e,exponent:t,integerLen:n}}function kwe(i,r,t){if(r>t)throw new Error("The minimum number of digits after fraction (".concat(r,") is higher than the maximum (").concat(t,")."));var e=i.digits,n=e.length-i.integerLen,a=Math.min(Math.max(r,n),t),o=a+i.integerLen,s=e[o];if(o>0){e.splice(Math.max(i.integerLen,o));for(var l=o;l=5)if(o-1<0){for(var c=0;c>o;c--)e.unshift(0),i.integerLen++;e.unshift(1),i.integerLen++}else e[o-1]++;for(;n=h?w.pop():d=!1),_>=10?1:0},0);f&&(e.unshift(f),i.integerLen++)}function UR(i){var r=parseInt(i);if(isNaN(r))throw new Error("Invalid integer literal when parsing "+i);return r}function U4(i,r){r=encodeURIComponent(r);var e,t=In(i.split(";"));try{for(t.s();!(e=t.n()).done;){var n=e.value,a=n.indexOf("="),s=Gt(-1==a?[n,""]:[n.slice(0,a),n.slice(a+1)],2),u=s[1];if(s[0].trim()===r)return decodeURIComponent(u)}}catch(c){t.e(c)}finally{t.f()}return null}var Nt=function(){var i=function(){function r(t,e,n,a){p(this,r),this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=a,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return v(r,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&($_(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var n=this._keyValueDiffer.diff(this._rawClass);n&&this._applyKeyValueChanges(n)}}},{key:"_applyKeyValueChanges",value:function(e){var n=this;e.forEachAddedItem(function(a){return n._toggleClass(a.key,a.currentValue)}),e.forEachChangedItem(function(a){return n._toggleClass(a.key,a.currentValue)}),e.forEachRemovedItem(function(a){a.previousValue&&n._toggleClass(a.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var n=this;e.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(si(a.item)));n._toggleClass(a.item,!0)}),e.forEachRemovedItem(function(a){return n._toggleClass(a.item,!1)})}},{key:"_applyClasses",value:function(e){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(a){return n._toggleClass(a,!0)}):Object.keys(e).forEach(function(a){return n._toggleClass(a,!!e[a])}))}},{key:"_removeClasses",value:function(e){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(a){return n._toggleClass(a,!1)}):Object.keys(e).forEach(function(a){return n._toggleClass(a,!1)}))}},{key:"_toggleClass",value:function(e,n){var a=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(o){n?a._renderer.addClass(a._ngEl.nativeElement,o):a._renderer.removeClass(a._ngEl.nativeElement,o)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(hy),m(Pp),m(ke),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),i}(),Swe=function(){function i(r,t,e,n){p(this,i),this.$implicit=r,this.ngForOf=t,this.index=e,this.count=n}return v(i,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),i}(),gn=function(){var i=function(){function r(t,e,n){p(this,r),this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return v(r,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var n=this,a=this._viewContainer;e.forEachOperation(function(c,d,h){if(null==c.previousIndex)a.createEmbeddedView(n._template,new Swe(c.item,n._ngForOf,-1,-1),null===h?void 0:h);else if(null==h)a.remove(null===d?void 0:d);else if(null!==d){var f=a.get(d);a.move(f,h),z4(f,c)}});for(var o=0,s=a.length;o1&&void 0!==arguments[1]?arguments[1]:"mediumDate",a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return ewe(e,n,o||this.locale,null!==(s=null!=a?a:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(l){throw ll()}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ko,16),m(Fwe,24))},i.\u0275pipe=fa({name:"date",type:i,pure:!0}),i}(),W4=function(){var i=function(){function r(t){p(this,r),this._locale=t}return v(r,[{key:"transform",value:function(e,n,a){if(!function jR(i){return!(null==i||""===i||i!=i)}(e))return null;a=a||this._locale;try{return function gwe(i,r,t){return function GR(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",l=!1;if(isFinite(i)){var u=ywe(i);o&&(u=_we(u));var c=r.minInt,d=r.minFrac,h=r.maxFrac;if(a){var f=a.match(dwe);if(null===f)throw new Error("".concat(a," is not a valid digit info"));var g=f[1],_=f[3],C=f[5];null!=g&&(c=UR(g)),null!=_&&(d=UR(_)),null!=C?h=UR(C):null!=_&&d>h&&(h=d)}kwe(u,d,h);var w=u.digits,E=u.integerLen,M=u.exponent,R=[];for(l=w.every(function(V){return!V});E0?R=w.splice(E,w.length):(R=w,w=[0]);var N=[];for(w.length>=r.lgSize&&N.unshift(w.splice(-r.lgSize,w.length).join(""));w.length>r.gSize;)N.unshift(w.splice(-r.gSize,w.length).join(""));w.length&&N.unshift(w.join("")),s=N.join(As(t,e)),R.length&&(s+=As(t,n)+R.join("")),M&&(s+=As(t,Kt.Exponential)+"+"+M)}else s=As(t,Kt.Infinity);return i<0&&!l?r.negPre+s+r.negSuf:r.posPre+s+r.posSuf}(i,function VR(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},e=i.split(";"),n=e[0],a=e[1],o=-1!==n.indexOf(".")?n.split("."):[n.substring(0,n.lastIndexOf(vy)+1),n.substring(n.lastIndexOf(vy)+1)],s=o[0],l=o[1]||"";t.posPre=s.substr(0,s.indexOf("#"));for(var u=0;u1&&void 0!==arguments[1])||arguments[1],o=t.findTestabilityInTree(n,a);if(null==o)throw new Error("Could not find testability for element.");return o},hi.getAllAngularTestabilities=function(){return t.getAllTestabilities()},hi.getAllAngularRootElements=function(){return t.getAllRootElements()},hi.frameworkStabilizers||(hi.frameworkStabilizers=[]),hi.frameworkStabilizers.push(function(a){var o=hi.getAllAngularTestabilities(),s=o.length,l=!1,u=function(d){l=l||d,0==--s&&a(l)};o.forEach(function(c){c.whenStable(u)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var a=t.getTestability(e);return null!=a?a:n?tu().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){!function oSe(i){SR=i}(new i)}}]),i}(),rDe=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"build",value:function(){return new XMLHttpRequest}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Cw=new wt("EventManagerPlugins"),bw=function(){var i=function(){function r(t,e){var n=this;p(this,r),this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(a){return a.manager=n}),this._plugins=t.slice().reverse()}return v(r,[{key:"addEventListener",value:function(e,n,a){return this._findPluginFor(n).addEventListener(e,n,a)}},{key:"addGlobalEventListener",value:function(e,n,a){return this._findPluginFor(n).addGlobalEventListener(e,n,a)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var n=this._eventNameToPlugin.get(e);if(n)return n;for(var a=this._plugins,o=0;o-1&&(o.splice(h,1),u+=d+".")}),u+=l,0!=o.length||0===l.length)return null;var c={};return c.domEventName=s,c.fullKey=u,c}},{key:"getEventFullKey",value:function(a){var o="",s=function mDe(i){var r=i.key;if(null==r){if(null==(r=i.keyIdentifier))return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===i.location&&aK.hasOwnProperty(r)&&(r=aK[r]))}return vDe[r]||r}(a);return" "===(s=s.toLowerCase())?s="space":"."===s&&(s="dot"),rK.forEach(function(l){l!=s&&(0,pDe[l])(a)&&(o+=l+".")}),o+=s}},{key:"eventCallback",value:function(a,o,s){return function(l){e.getEventFullKey(l)===a&&s.runGuarded(function(){return o(l)})}}},{key:"_normalizeKey",value:function(a){return"esc"===a?"escape":a}}]),e}(Y4);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),CDe=[{provide:cy,useValue:$4},{provide:a4,useValue:function _De(){Qwe.makeCurrent(),iDe.init()},multi:!0},{provide:pa,useFactory:function kDe(){return function Wpe(i){yx=i}(document),document},deps:[]}],bDe=f4(ASe,"browser",CDe),SDe=[{provide:NM,useValue:"root"},{provide:U_,useFactory:function yDe(){return new U_},deps:[]},{provide:Cw,useClass:hDe,multi:!0,deps:[pa,be,cy]},{provide:Cw,useClass:gDe,multi:!0,deps:[pa]},{provide:ww,useClass:ww,deps:[bw,gy,uy]},{provide:ny,useExisting:ww},{provide:Q4,useExisting:gy},{provide:gy,useClass:gy,deps:[pa]},{provide:bR,useClass:bR,deps:[be]},{provide:bw,useClass:bw,deps:[Cw,be]},{provide:$R,useClass:rDe,deps:[]}],oK=function(){var i=function(){function r(t){if(p(this,r),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return v(r,null,[{key:"withServerTransition",value:function(e){return{ngModule:r,providers:[{provide:uy,useValue:e.appId},{provide:Z4,useExisting:uy},nDe]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(i,12))},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:SDe,imports:[bt,xSe]}),i}();"undefined"!=typeof window&&window;var uK=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:function(t){return t?new(t||i):oe(cK)},providedIn:"root"}),i}(),cK=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this))._doc=n,a}return v(e,[{key:"sanitize",value:function(a,o){if(null==o)return null;switch(a){case ki.NONE:return o;case ki.HTML:return Wl(o,"HTML")?Uo(o):v3(this._doc,String(o)).toString();case ki.STYLE:return Wl(o,"Style")?Uo(o):o;case ki.SCRIPT:if(Wl(o,"Script"))return Uo(o);throw new Error("unsafe value used in a script context");case ki.URL:return o3(o),Wl(o,"URL")?Uo(o):P_(String(o));case ki.RESOURCE_URL:if(Wl(o,"ResourceURL"))return Uo(o);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(a," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(a){return function lme(i){return new ime(i)}(a)}},{key:"bypassSecurityTrustStyle",value:function(a){return function ume(i){return new rme(i)}(a)}},{key:"bypassSecurityTrustScript",value:function(a){return function cme(i){return new ame(i)}(a)}},{key:"bypassSecurityTrustUrl",value:function(a){return function dme(i){return new ome(i)}(a)}},{key:"bypassSecurityTrustResourceUrl",value:function(a){return function hme(i){return new sme(i)}(a)}}]),e}(uK);return i.\u0275fac=function(t){return new(t||i)(oe(pa))},i.\u0275prov=pe({token:i,factory:function(t){var e;return e=t?new t:function RDe(i){return new cK(i.get(pa))}(oe(Jn)),e},providedIn:"root"}),i}();function lt(){for(var i=arguments.length,r=new Array(i),t=0;t0){var a=e.slice(0,n),o=a.toLowerCase(),s=e.slice(n+1).trim();t.maybeSetNormalizedName(a,o),t.headers.has(o)?t.headers.get(o).push(s):t.headers.set(o,[s])}})}:function(){t.headers=new Map,Object.keys(r).forEach(function(e){var n=r[e],a=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(t.headers.set(a,n),t.maybeSetNormalizedName(e,a))})}:this.headers=new Map}return v(i,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(t){var e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var a=("a"===t.op?this.headers.get(e):void 0)||[];a.push.apply(a,Ae(n)),this.headers.set(e,a);break;case"d":var o=t.value;if(o){var s=this.headers.get(e);if(!s)return;0===(s=s.filter(function(l){return-1===o.indexOf(l)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),i}(),ODe=function(){function i(){p(this,i)}return v(i,[{key:"encodeKey",value:function(t){return fK(t)}},{key:"encodeValue",value:function(t){return fK(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),i}();function IDe(i,r){var t=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(function(n){var a=n.indexOf("="),s=Gt(-1==a?[r.decodeKey(n),""]:[r.decodeKey(n.slice(0,a)),r.decodeValue(n.slice(a+1))],2),l=s[0],u=s[1],c=t.get(l)||[];c.push(u),t.set(l,c)}),t}var NDe=/%(\d[a-f0-9])/gi,FDe={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function fK(i){return encodeURIComponent(i).replace(NDe,function(r,t){var e;return null!==(e=FDe[t])&&void 0!==e?e:r})}function vK(i){return"".concat(i)}var Up=function(){function i(){var r=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(p(this,i),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new ODe,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=IDe(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];r.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return v(i,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var a=t[n];Array.isArray(a)?a.forEach(function(o){e.push({param:n,value:o,op:"a"})}):e.push({param:n,value:a,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(a){return n+"="+t.encoder.encodeValue(a)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(vK(e.value)),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var a=t.map.get(e.param)||[],o=a.indexOf(vK(e.value));-1!==o&&a.splice(o,1),a.length>0?t.map.set(e.param,a):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),i}(),LDe=function(){function i(){p(this,i),this.map=new Map}return v(i,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"has",value:function(t){return this.map.has(t)}},{key:"keys",value:function(){return this.map.keys()}}]),i}();function pK(i){return"undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer}function gK(i){return"undefined"!=typeof Blob&&i instanceof Blob}function mK(i){return"undefined"!=typeof FormData&&i instanceof FormData}var QR=function(){function i(r,t,e,n){var a;if(p(this,i),this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=r.toUpperCase(),function PDe(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||n?(this.body=void 0!==e?e:null,a=n):a=e,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new Vp),this.context||(this.context=new LDe),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{var s=t.indexOf("?");this.urlWithParams=t+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,a=t.url||this.url,o=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,l=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,u=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,c=t.headers||this.headers,d=t.params||this.params,h=null!==(e=t.context)&&void 0!==e?e:this.context;return void 0!==t.setHeaders&&(c=Object.keys(t.setHeaders).reduce(function(f,g){return f.set(g,t.setHeaders[g])},c)),t.setParams&&(d=Object.keys(t.setParams).reduce(function(f,g){return f.set(g,t.setParams[g])},d)),new i(n,a,s,{params:d,headers:c,context:h,reportProgress:u,responseType:o,withCredentials:l})}}]),i}(),Rr=function(){return(Rr=Rr||{})[Rr.Sent=0]="Sent",Rr[Rr.UploadProgress=1]="UploadProgress",Rr[Rr.ResponseHeader=2]="ResponseHeader",Rr[Rr.DownloadProgress=3]="DownloadProgress",Rr[Rr.Response=4]="Response",Rr[Rr.User=5]="User",Rr}(),JR=v(function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";p(this,i),this.headers=r.headers||new Vp,this.status=void 0!==r.status?r.status:t,this.statusText=r.statusText||e,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}),GDe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).type=Rr.ResponseHeader,e}return v(t,[{key:"clone",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}]),t}(JR),_K=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).type=Rr.Response,e.body=void 0!==n.body?n.body:null,e}return v(t,[{key:"clone",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}]),t}(JR),yK=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),n.error=e.error||null,n}return v(t)}(JR);function eO(i,r){return{body:r,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}var tO=function(){var i=function(){function r(t){p(this,r),this.handler=t}return v(r,[{key:"request",value:function(e,n){var s,a=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof QR)s=e;else{var l=void 0;l=o.headers instanceof Vp?o.headers:new Vp(o.headers);var u=void 0;o.params&&(u=o.params instanceof Up?o.params:new Up({fromObject:o.params})),s=new QR(e,n,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var c=lt(s).pipe(nu(function(h){return a.handler.handle(h)}));if(e instanceof QR||"events"===o.observe)return c;var d=c.pipe(Ue(function(h){return h instanceof _K}));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return d.pipe(We(function(h){if(null!==h.body&&!(h.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return h.body}));case"blob":return d.pipe(We(function(h){if(null!==h.body&&!(h.body instanceof Blob))throw new Error("Response is not a Blob.");return h.body}));case"text":return d.pipe(We(function(h){if(null!==h.body&&"string"!=typeof h.body)throw new Error("Response is not a string.");return h.body}));default:return d.pipe(We(function(h){return h.body}))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(o.observe,"}"))}}},{key:"delete",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,n)}},{key:"get",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,n)}},{key:"head",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,n)}},{key:"jsonp",value:function(e,n){return this.request("JSONP",e,{params:(new Up).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,n)}},{key:"patch",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,eO(a,n))}},{key:"post",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,eO(a,n))}},{key:"put",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,eO(a,n))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(dK))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),kK=function(){function i(r,t){p(this,i),this.next=r,this.interceptor=t}return v(i,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),i}(),CK=new wt("HTTP_INTERCEPTORS"),VDe=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"intercept",value:function(e,n){return n.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),UDe=/^\)\]\}',?\n/,bK=function(){var i=function(){function r(t){p(this,r),this.xhrFactory=t}return v(r,[{key:"handle",value:function(e){var n=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new An(function(a){var o=n.xhrFactory.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach(function(w,E){return o.setRequestHeader(w,E.join(","))}),e.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var s=e.detectContentTypeHeader();null!==s&&o.setRequestHeader("Content-Type",s)}if(e.responseType){var l=e.responseType.toLowerCase();o.responseType="json"!==l?l:"text"}var u=e.serializeBody(),c=null,d=function(){if(null!==c)return c;var E=o.statusText||"OK",M=new Vp(o.getAllResponseHeaders()),R=function zDe(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(o)||e.url;return c=new GDe({headers:M,status:o.status,statusText:E,url:R})},h=function(){var E=d(),M=E.headers,R=E.status,N=E.statusText,V=E.url,U=null;204!==R&&(U=void 0===o.response?o.responseText:o.response),0===R&&(R=U?200:0);var ee=R>=200&&R<300;if("json"===e.responseType&&"string"==typeof U){var ve=U;U=U.replace(UDe,"");try{U=""!==U?JSON.parse(U):null}catch(G){U=ve,ee&&(ee=!1,U={error:G,text:U})}}ee?(a.next(new _K({body:U,headers:M,status:R,statusText:N,url:V||void 0})),a.complete()):a.error(new yK({error:U,headers:M,status:R,statusText:N,url:V||void 0}))},f=function(E){var M=d(),N=new yK({error:E,status:o.status||0,statusText:o.statusText||"Unknown Error",url:M.url||void 0});a.error(N)},g=!1,_=function(E){g||(a.next(d()),g=!0);var M={type:Rr.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),"text"===e.responseType&&!!o.responseText&&(M.partialText=o.responseText),a.next(M)},C=function(E){var M={type:Rr.UploadProgress,loaded:E.loaded};E.lengthComputable&&(M.total=E.total),a.next(M)};return o.addEventListener("load",h),o.addEventListener("error",f),o.addEventListener("timeout",f),o.addEventListener("abort",f),e.reportProgress&&(o.addEventListener("progress",_),null!==u&&o.upload&&o.upload.addEventListener("progress",C)),o.send(u),a.next({type:Rr.Sent}),function(){o.removeEventListener("error",f),o.removeEventListener("abort",f),o.removeEventListener("load",h),o.removeEventListener("timeout",f),e.reportProgress&&(o.removeEventListener("progress",_),null!==u&&o.upload&&o.upload.removeEventListener("progress",C)),o.readyState!==o.DONE&&o.abort()}})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe($R))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),nO=new wt("XSRF_COOKIE_NAME"),iO=new wt("XSRF_HEADER_NAME"),SK=v(function i(){p(this,i)}),HDe=function(){var i=function(){function r(t,e,n){p(this,r),this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return v(r,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=U4(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(pa),oe(cy),oe(nO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rO=function(){var i=function(){function r(t,e){p(this,r),this.tokenService=t,this.headerName=e}return v(r,[{key:"intercept",value:function(e,n){var a=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||a.startsWith("http://")||a.startsWith("https://"))return n.handle(e);var o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),n.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(SK),oe(iO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),KDe=function(){var i=function(){function r(t,e){p(this,r),this.backend=t,this.injector=e,this.chain=null}return v(r,[{key:"handle",value:function(e){if(null===this.chain){var n=this.injector.get(CK,[]);this.chain=n.reduceRight(function(a,o){return new kK(a,o)},this.backend)}return this.chain.handle(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(hK),oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),jDe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"disable",value:function(){return{ngModule:r,providers:[{provide:rO,useClass:VDe}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.cookieName?{provide:nO,useValue:e.cookieName}:[],e.headerName?{provide:iO,useValue:e.headerName}:[]]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[rO,{provide:CK,useExisting:rO,multi:!0},{provide:SK,useClass:HDe},{provide:nO,useValue:"XSRF-TOKEN"},{provide:iO,useValue:"X-XSRF-TOKEN"}]}),i}(),wK=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[tO,{provide:dK,useClass:KDe},bK,{provide:hK,useExisting:bK}],imports:[[jDe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),i}(),zp=v(function i(){p(this,i)}),WDe=v(function i(){p(this,i)}),ul="*";function ef(i,r){return{type:7,name:i,definitions:r,options:{}}}function Ai(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:r,timings:i}}function Dw(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:i,options:r}}function Ft(i){return{type:6,styles:i,offset:null}}function Cd(i,r,t){return{type:0,name:i,styles:r,options:t}}function iu(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:i,animation:r,options:t}}function DK(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:i,animation:r,options:t}}function EK(i,r){return{type:12,timings:i,animation:r}}function TK(i){Promise.resolve(null).then(i)}var my=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,i),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+t}return v(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;TK(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(n){return n()}),e.length=0}}]),i}(),AK=function(){function i(r){var t=this;p(this,i),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;var e=0,n=0,a=0,o=this.players.length;0==o?TK(function(){return t._onFinish()}):this.players.forEach(function(s){s.onDone(function(){++e==o&&t._onFinish()}),s.onDestroy(function(){++n==o&&t._onDestroy()}),s.onStart(function(){++a==o&&t._onStart()})}),this.totalTime=this.players.reduce(function(s,l){return Math.max(s,l.totalTime)},0)}return v(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(n){var a=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(a)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(e,n){return null===e||n.totalTime>e.totalTime?n:e},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(n){return n()}),e.length=0}}]),i}(),Mn=!1;function xK(i){return new gt(3e3,Mn)}function f0e(i){return new gt(3502,Mn)}function p0e(){return new gt(3300,Mn)}function g0e(i){return new gt(3504,Mn)}function w0e(){return"undefined"!=typeof window&&void 0!==window.document}function oO(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function bd(i){switch(i.length){case 0:return new my;case 1:return i[0];default:return new AK(i)}}function MK(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,u=null;if(e.forEach(function(c){var d=c.offset,h=d==l,f=h&&u||{};Object.keys(c).forEach(function(g){var _=g,C=c[g];if("offset"!==g)switch(_=r.normalizePropertyName(_,o),C){case"!":C=n[g];break;case ul:C=a[g];break;default:C=r.normalizeStyleValue(g,_,C,o)}f[_]=C}),h||s.push(f),u=f,l=d}),o.length)throw f0e();return s}function sO(i,r,t,e){switch(r){case"start":i.onStart(function(){return e(t&&lO(t,"start",i))});break;case"done":i.onDone(function(){return e(t&&lO(t,"done",i))});break;case"destroy":i.onDestroy(function(){return e(t&&lO(t,"destroy",i))})}}function lO(i,r,t){var e=t.totalTime,a=uO(i.element,i.triggerName,i.fromState,i.toState,r||i.phaseName,null==e?i.totalTime:e,!!t.disabled),o=i._data;return null!=o&&(a._data=o),a}function uO(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:i,triggerName:r,fromState:t,toState:e,phaseName:n,totalTime:a,disabled:!!o}}function jo(i,r,t){var e;return i instanceof Map?(e=i.get(r))||i.set(r,e=t):(e=i[r])||(e=i[r]=t),e}function RK(i){var r=i.indexOf(":");return[i.substring(1,r),i.substr(r+1)]}var cO=function(r,t){return!1},OK=function(r,t,e){return[]},IK=null;function dO(i){var r=i.parentNode||i.host;return r===IK?null:r}(oO()||"undefined"!=typeof Element)&&(w0e()?(IK=function(){return document.documentElement}(),cO=function(r,t){for(;t;){if(t===r)return!0;t=dO(t)}return!1}):cO=function(r,t){return r.contains(t)},OK=function(r,t,e){if(e)return Array.from(r.querySelectorAll(t));var n=r.querySelector(t);return n?[n]:[]});var tf=null,NK=!1;function FK(i){tf||(tf=function T0e(){return"undefined"!=typeof document?document.body:null}()||{},NK=!!tf.style&&"WebkitAppearance"in tf.style);var r=!0;return tf.style&&!function E0e(i){return"ebkit"==i.substring(1,6)}(i)&&!(r=i in tf.style)&&NK&&(r="Webkit"+i.charAt(0).toUpperCase()+i.substr(1)in tf.style),r}var LK=cO,PK=OK,BK=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"validateStyleProperty",value:function(e){return FK(e)}},{key:"matchesElement",value:function(e,n){return!1}},{key:"containsElement",value:function(e,n){return LK(e,n)}},{key:"getParentElement",value:function(e){return dO(e)}},{key:"query",value:function(e,n,a){return PK(e,n,a)}},{key:"computeStyle",value:function(e,n,a){return a||""}},{key:"animate",value:function(e,n,a,o,s){return new my(a,o)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hO=function(){var i=v(function r(){p(this,r)});return i.NOOP=new BK,i}(),VK="ng-enter",fO="ng-leave",Tw="ng-trigger",Aw=".ng-trigger",UK="ng-animating",vO=".ng-animating";function nf(i){if("number"==typeof i)return i;var r=i.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:pO(parseFloat(r[1]),r[2])}function pO(i,r){return"s"===r?1e3*i:i}function xw(i,r,t){return i.hasOwnProperty("duration")?i:function M0e(i,r,t){var n,a=0,o="";if("string"==typeof i){var s=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return r.push(xK()),{duration:0,delay:0,easing:""};n=pO(parseFloat(s[1]),s[2]);var l=s[3];null!=l&&(a=pO(parseFloat(l),s[4]));var u=s[5];u&&(o=u)}else n=i;if(!t){var c=!1,d=r.length;n<0&&(r.push(function $De(){return new gt(3100,Mn)}()),c=!0),a<0&&(r.push(function qDe(){return new gt(3101,Mn)}()),c=!0),c&&r.splice(d,0,xK())}return{duration:n,delay:a,easing:o}}(i,r,t)}function Hp(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(i).forEach(function(t){r[t]=i[t]}),r}function Sd(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r)for(var e in i)t[e]=i[e];else Hp(i,t);return t}function zK(i,r,t){return t?r+":"+t+";":""}function HK(i){for(var r="",t=0;t *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(i,t);if("function"==typeof e)return void r.push(e);i=e}var n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return t.push(function c0e(i){return new gt(3015,Mn)}()),r;var a=n[1],o=n[2],s=n[3];r.push(WK(a,s)),"<"==o[0]&&!("*"==a&&"*"==s)&&r.push(WK(s,a))}(e,t,r)}):t.push(i),t}var Fw=new Set(["true","1"]),Lw=new Set(["false","0"]);function WK(i,r){var t=Fw.has(i)||Lw.has(i),e=Fw.has(r)||Lw.has(r);return function(n,a){var o="*"==i||i==n,s="*"==r||r==a;return!o&&t&&"boolean"==typeof n&&(o=n?Fw.has(i):Lw.has(i)),!s&&e&&"boolean"==typeof a&&(s=a?Fw.has(r):Lw.has(r)),o&&s}}var U0e=new RegExp("s*".concat(":self","s*,?"),"g");function qK(i,r,t,e){return new z0e(i).build(r,t,e)}var z0e=function(){function i(r){p(this,i),this._driver=r}return v(i,[{key:"build",value:function(t,e,n){var a=new j0e(e);this._resetContextStyleTimingState(a);var o=Wo(this,_y(t),a);return a.unsupportedCSSPropertiesFound.size&&Ae(a.unsupportedCSSPropertiesFound.keys()),o}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,e){var n=this,a=e.queryCount=0,o=e.depCount=0,s=[],l=[];return"@"==t.name.charAt(0)&&e.errors.push(function JDe(){return new gt(3006,Mn)}()),t.definitions.forEach(function(u){if(n._resetContextStyleTimingState(e),0==u.type){var c=u,d=c.name;d.toString().split(/\s*,\s*/).forEach(function(f){c.name=f,s.push(n.visitState(c,e))}),c.name=d}else if(1==u.type){var h=n.visitTransition(u,e);a+=h.queryCount,o+=h.depCount,l.push(h)}else e.errors.push(function e0e(){return new gt(3007,Mn)}())}),{type:7,name:t.name,states:s,transitions:l,queryCount:a,depCount:o,options:null}}},{key:"visitState",value:function(t,e){var n=this.visitStyle(t.styles,e),a=t.options&&t.options.params||null;if(n.containsDynamicStyles){var o=new Set,s=a||{};n.styles.forEach(function(u){if(Pw(u)){var c=u;Object.keys(c).forEach(function(d){KK(c[d]).forEach(function(h){s.hasOwnProperty(h)||o.add(h)})})}}),o.size&&(Rw(o.values()),e.errors.push(function t0e(i,r){return new gt(3008,Mn)}()))}return{type:0,name:t.name,style:n,options:a?{params:a}:null}}},{key:"visitTransition",value:function(t,e){e.queryCount=0,e.depCount=0;var n=Wo(this,_y(t.animation),e);return{type:1,matchers:B0e(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:af(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(a){return Wo(n,a,e)}),options:af(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,a=e.currentTime,o=0,s=t.steps.map(function(l){e.currentTime=a;var u=Wo(n,l,e);return o=Math.max(o,e.currentTime),u});return e.currentTime=o,{type:3,steps:s,options:af(t.options)}}},{key:"visitAnimate",value:function(t,e){var n=function $0e(i,r){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return _O(xw(i,r).duration,0,"");var e=i,n=e.split(/\s+/).some(function(s){return"{"==s.charAt(0)&&"{"==s.charAt(1)});if(n){var a=_O(0,0,"");return a.dynamic=!0,a.strValue=e,a}var o=xw(e,r);return _O(o.duration,o.delay,o.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;var a,o=t.styles?t.styles:Ft({});if(5==o.type)a=this.visitKeyframes(o,e);else{var s=t.styles,l=!1;if(!s){l=!0;var u={};n.easing&&(u.easing=n.easing),s=Ft(u)}e.currentTime+=n.duration+n.delay;var c=this.visitStyle(s,e);c.isEmptyStep=l,a=c}return e.currentAnimateTimings=null,{type:4,timings:n,style:a,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(s){"string"==typeof s?s==ul?n.push(s):e.errors.push(function n0e(i){return new gt(3002,Mn)}()):n.push(s)}):n.push(t.styles);var a=!1,o=null;return n.forEach(function(s){if(Pw(s)){var l=s,u=l.easing;if(u&&(o=u,delete l.easing),!a)for(var c in l)if(l[c].toString().indexOf("{{")>=0){a=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:a,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,a=e.currentAnimateTimings,o=e.currentTime,s=e.currentTime;a&&s>0&&(s-=a.duration+a.delay),t.styles.forEach(function(l){"string"!=typeof l&&Object.keys(l).forEach(function(u){if(!n._driver.validateStyleProperty(u))return delete l[u],void e.unsupportedCSSPropertiesFound.add(u);var c=e.collectedStyles[e.currentQuerySelector],d=c[u],h=!0;d&&(s!=o&&s>=d.startTime&&o<=d.endTime&&(e.errors.push(function i0e(i,r,t,e,n){return new gt(3010,Mn)}()),h=!1),s=d.startTime),h&&(c[u]={startTime:s,endTime:o}),e.options&&function R0e(i,r,t){var e=r.params||{},n=KK(i);n.length&&n.forEach(function(a){e.hasOwnProperty(a)||t.push(function XDe(i){return new gt(3001,Mn)}())})}(l[u],e.options,e.errors)})})}},{key:"visitKeyframes",value:function(t,e){var n=this,a={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function r0e(){return new gt(3011,Mn)}()),a;var s=0,l=[],u=!1,c=!1,d=0,h=t.steps.map(function(M){var R=n._makeStyleAst(M,e),N=null!=R.offset?R.offset:function W0e(i){if("string"==typeof i)return null;var r=null;if(Array.isArray(i))i.forEach(function(e){if(Pw(e)&&e.hasOwnProperty("offset")){var n=e;r=parseFloat(n.offset),delete n.offset}});else if(Pw(i)&&i.hasOwnProperty("offset")){var t=i;r=parseFloat(t.offset),delete t.offset}return r}(R.styles),V=0;return null!=N&&(s++,V=R.offset=N),c=c||V<0||V>1,u=u||V0&&s0?R==_?1:g*R:l[R],V=N*E;e.currentTime=C+w.delay+V,w.duration=V,n._validateStyleAst(M,e),M.offset=N,a.styles.push(M)}),a}},{key:"visitReference",value:function(t,e){return{type:8,animation:Wo(this,_y(t.animation),e),options:af(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:af(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:af(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,a=t.options||{};e.queryCount++,e.currentQuery=t;var o=function H0e(i){var r=!!i.split(/\s*,\s*/).find(function(t){return":self"==t});return r&&(i=i.replace(U0e,"")),i=i.replace(/@\*/g,Aw).replace(/@\w+/g,function(t){return Aw+"-"+t.substr(1)}).replace(/:animating/g,vO),[i,r]}(t.selector),s=Gt(o,2),l=s[0],u=s[1];e.currentQuerySelector=n.length?n+" "+l:l,jo(e.collectedStyles,e.currentQuerySelector,{});var c=Wo(this,_y(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:l,limit:a.limit||0,optional:!!a.optional,includeSelf:u,animation:c,originalSelector:t.selector,options:af(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push(function l0e(){return new gt(3013,Mn)}());var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:xw(t.timings,e.errors,!0);return{type:12,animation:Wo(this,_y(t.animation),e),timings:n,options:null}}}]),i}(),j0e=v(function i(r){p(this,i),this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set});function Pw(i){return!Array.isArray(i)&&"object"==typeof i}function af(i){return i?(i=Hp(i)).params&&(i.params=function K0e(i){return i?Hp(i):null}(i.params)):i={},i}function _O(i,r,t){return{duration:i,delay:r,easing:t}}function yO(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:i,keyframes:r,preStyleProps:t,postStyleProps:e,duration:n,delay:a,totalTime:n+a,easing:o,subTimeline:s}}var kO=function(){function i(){p(this,i),this._map=new Map}return v(i,[{key:"get",value:function(t){return this._map.get(t)||[]}},{key:"append",value:function(t,e){var n,a=this._map.get(t);a||this._map.set(t,a=[]),(n=a).push.apply(n,Ae(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),i}(),Z0e=new RegExp(":enter","g"),Q0e=new RegExp(":leave","g");function ZK(i,r,t,e,n){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new J0e).buildKeyframes(i,r,t,e,n,a,o,s,l,u)}var J0e=function(){function i(){p(this,i)}return v(i,[{key:"buildKeyframes",value:function(t,e,n,a,o,s,l,u,c){var d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];c=c||new kO;var h=new eEe(t,e,c,a,o,d,[]);h.options=u,h.currentTimeline.setStyles([s],null,h.errors,u),Wo(this,n,h);var f=h.timelines.filter(function(w){return w.containsAnimation()});if(Object.keys(l).length){for(var g,_=f.length-1;_>=0;_--){var C=f[_];if(C.element===e){g=C;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([l],null,h.errors,u)}return f.length?f.map(function(w){return w.buildKeyframes()}):[yO(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.get(e.element);if(n){var a=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(n,a,a.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var o=e.currentTimeline.currentTime,s=null!=n.duration?nf(n.duration):null,l=null!=n.delay?nf(n.delay):null;return 0!==s&&t.forEach(function(u){var c=e.appendInstructionToTimeline(u,s,l);o=Math.max(o,c.duration+c.delay)}),o}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Wo(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,a=e.subContextCount,o=e,s=t.options;if(s&&(s.params||s.delay)&&((o=e.createSubContext(s)).transformIntoNewTimeline(),null!=s.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Bw);var l=nf(s.delay);o.delayNextStep(l)}t.steps.length&&(t.steps.forEach(function(u){return Wo(n,u,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>a&&o.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,a=[],o=e.currentTimeline.currentTime,s=t.options&&t.options.delay?nf(t.options.delay):0;t.steps.forEach(function(l){var u=e.createSubContext(t.options);s&&u.delayNextStep(s),Wo(n,l,u),o=Math.max(o,u.currentTimeline.currentTime),a.push(u.currentTimeline)}),a.forEach(function(l){return e.currentTimeline.mergeTimelineCollectedStyles(l)}),e.transformIntoNewTimeline(o),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return xw(e.params?Mw(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),a=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),a.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(n.duration),this.visitStyle(o,e),a.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,a=e.currentAnimateTimings;!a&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=a&&a.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(o):n.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,a=e.currentTimeline.duration,o=n.duration,l=e.createSubContext().currentTimeline;l.easing=n.easing,t.styles.forEach(function(u){l.forwardTime((u.offset||0)*o),l.setStyles(u.styles,u.easing,e.errors,e.options),l.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(l),e.transformIntoNewTimeline(a+o),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,a=e.currentTimeline.currentTime,o=t.options||{},s=o.delay?nf(o.delay):0;s&&(6===e.previousNode.type||0==a&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Bw);var l=a,u=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,e.errors);e.currentQueryTotal=u.length;var c=null;u.forEach(function(d,h){e.currentQueryIndex=h;var f=e.createSubContext(t.options,d);s&&f.delayNextStep(s),d===e.element&&(c=f.currentTimeline),Wo(n,t.animation,f),f.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,f.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(l),c&&(e.currentTimeline.mergeTimelineCollectedStyles(c),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,a=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),l=s*(e.currentQueryTotal-1),u=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":u=l-u;break;case"full":u=n.currentStaggerTime}var d=e.currentTimeline;u&&d.delayNextStep(u);var h=d.currentTime;Wo(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=a.currentTime-h+(a.startTime-n.currentTimeline.startTime)}}]),i}(),Bw={},eEe=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this._driver=r,this.element=t,this.subInstructions=e,this._enterClassName=n,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Bw,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new YK(this._driver,t,0),s.push(this.currentTimeline)}return v(i,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var n=this;if(t){var a=t,o=this.options;null!=a.duration&&(o.duration=nf(a.duration)),null!=a.delay&&(o.delay=nf(a.delay));var s=a.params;if(s){var l=o.params;l||(l=this.options.params={}),Object.keys(s).forEach(function(u){(!e||!l.hasOwnProperty(u))&&(l[u]=Mw(s[u],l,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(a){n[a]=e[a]})}}return t}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,a=e||this.element,o=new i(this._driver,a,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(a,n||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Bw,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var a={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},o=new tEe(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,a,t.stretchStartingKeyframe);return this.timelines.push(o),a}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,a,o,s){var l=[];if(a&&l.push(this.element),t.length>0){t=(t=t.replace(Z0e,"."+this._enterClassName)).replace(Q0e,"."+this._leaveClassName);var c=this._driver.query(this.element,t,1!=n);0!==n&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),l.push.apply(l,Ae(c))}return!o&&0==l.length&&s.push(function u0e(i){return new gt(3014,Mn)}()),l}}]),i}(),YK=function(){function i(r,t,e,n){p(this,i),this._driver=r,this.element=t,this.startTime=e,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return v(i,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(t,e){return this.applyStylesToKeyframe(),new i(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(n){e._backFill[n]=e._globalTimelineStyles[n]||ul,e._currentKeyframe[n]=ul}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,a){var o=this;e&&(this._previousKeyframe.easing=e);var s=a&&a.params||{},l=function nEe(i,r){var e,t={};return i.forEach(function(n){"*"===n?(e=e||Object.keys(r)).forEach(function(a){t[a]=ul}):Sd(n,!1,t)}),t}(t,this._globalTimelineStyles);Object.keys(l).forEach(function(u){var c=Mw(l[u],s,n);o._pendingStyles[u]=c,o._localTimelineStyles.hasOwnProperty(u)||(o._backFill[u]=o._globalTimelineStyles.hasOwnProperty(u)?o._globalTimelineStyles[u]:ul),o._updateStyle(u,c)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(a){t._currentKeyframe[a]=e[a]}),Object.keys(this._localTimelineStyles).forEach(function(a){t._currentKeyframe.hasOwnProperty(a)||(t._currentKeyframe[a]=t._localTimelineStyles[a])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var a=e._styleSummary[n],o=t._styleSummary[n];(!a||o.time>a.time)&&e._updateStyle(n,o.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,a=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(d,h){var f=Sd(d,!0);Object.keys(f).forEach(function(g){var _=f[g];"!"==_?e.add(g):_==ul&&n.add(g)}),a||(f.offset=h/t.duration),o.push(f)});var s=e.size?Rw(e.values()):[],l=n.size?Rw(n.values()):[];if(a){var u=o[0],c=Hp(u);u.offset=0,c.offset=1,o=[u,c]}return yO(this.element,o,s,l,this.duration,this.startTime,this.easing,!1)}}]),i}(),tEe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return p(this,t),(u=r.call(this,e,n,l.delay)).keyframes=a,u.preStyleProps=o,u.postStyleProps=s,u._stretchStartingKeyframe=c,u.timings={duration:l.duration,delay:l.delay,easing:l.easing},u}return v(t,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var n=this.keyframes,a=this.timings,o=a.delay,s=a.duration,l=a.easing;if(this._stretchStartingKeyframe&&o){var u=[],c=s+o,d=o/c,h=Sd(n[0],!1);h.offset=0,u.push(h);var f=Sd(n[0],!1);f.offset=QK(d),u.push(f);for(var g=n.length-1,_=1;_<=g;_++){var C=Sd(n[_],!1);C.offset=QK((o+C.offset*s)/c),u.push(C)}s=c,o=0,l="",n=u}return yO(this.element,n,this.preStyleProps,this.postStyleProps,s,o,l,!0)}}]),t}(YK);function QK(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=Math.pow(10,r-1);return Math.round(i*t)/t}var CO=v(function i(){p(this,i)}),iEe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"normalizePropertyName",value:function(n,a){return mO(n)}},{key:"normalizeStyleValue",value:function(n,a,o,s){var l="",u=o.toString().trim();if(rEe[a]&&0!==o&&"0"!==o)if("number"==typeof o)l="px";else{var c=o.match(/^[+-]?[\d\.]+([a-z]*)$/);c&&0==c[1].length&&s.push(function QDe(i,r){return new gt(3005,Mn)}())}return u+l}}]),t}(CO),rEe=function(){return function aEe(i){var r={};return i.forEach(function(t){return r[t]=!0}),r}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","))}();function JK(i,r,t,e,n,a,o,s,l,u,c,d,h){return{type:0,element:i,triggerName:r,isRemovalTransition:n,fromState:t,fromStyles:a,toState:e,toStyles:o,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:h}}var bO={},e6=function(){function i(r,t,e){p(this,i),this._triggerName=r,this.ast=t,this._stateStyles=e}return v(i,[{key:"match",value:function(t,e,n,a){return function oEe(i,r,t,e,n){return i.some(function(a){return a(r,t,e,n)})}(this.ast.matchers,t,e,n,a)}},{key:"buildStyles",value:function(t,e,n){var a=this._stateStyles["*"],o=this._stateStyles[t],s=a?a.buildStyles(e,n):{};return o?o.buildStyles(e,n):s}},{key:"build",value:function(t,e,n,a,o,s,l,u,c,d){var h=[],f=this.ast.options&&this.ast.options.params||bO,_=this.buildStyles(n,l&&l.params||bO,h),C=u&&u.params||bO,w=this.buildStyles(a,C,h),E=new Set,M=new Map,R=new Map,N="void"===a,V={params:Object.assign(Object.assign({},f),C)},U=d?[]:ZK(t,e,this.ast.animation,o,s,_,w,V,c,h),ee=0;if(U.forEach(function(G){ee=Math.max(G.duration+G.delay,ee)}),h.length)return JK(e,this._triggerName,n,a,N,_,w,[],[],M,R,ee,h);U.forEach(function(G){var I=G.element,K=jo(M,I,{});G.preStyleProps.forEach(function(se){return K[se]=!0});var H=jo(R,I,{});G.postStyleProps.forEach(function(se){return H[se]=!0}),I!==e&&E.add(I)});var ve=Rw(E.values());return JK(e,this._triggerName,n,a,N,_,w,U,ve,M,R,ee)}}]),i}(),sEe=function(){function i(r,t,e){p(this,i),this.styles=r,this.defaultParams=t,this.normalizer=e}return v(i,[{key:"buildStyles",value:function(t,e){var n=this,a={},o=Hp(this.defaultParams);return Object.keys(t).forEach(function(s){var l=t[s];null!=l&&(o[s]=l)}),this.styles.styles.forEach(function(s){if("string"!=typeof s){var l=s;Object.keys(l).forEach(function(u){var c=l[u];c.length>1&&(c=Mw(c,o,e));var d=n.normalizer.normalizePropertyName(u,e);c=n.normalizer.normalizeStyleValue(u,d,c,e),a[d]=c})}}),a}}]),i}(),uEe=function(){function i(r,t,e){var n=this;p(this,i),this.name=r,this.ast=t,this._normalizer=e,this.transitionFactories=[],this.states={},t.states.forEach(function(a){n.states[a.name]=new sEe(a.style,a.options&&a.options.params||{},e)}),t6(this.states,"true","1"),t6(this.states,"false","0"),t.transitions.forEach(function(a){n.transitionFactories.push(new e6(r,a,n.states))}),this.fallbackTransition=function cEe(i,r,t){return new e6(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(o,s){return!0}],options:null,queryCount:0,depCount:0},r)}(r,this.states)}return v(i,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,n,a){return this.transitionFactories.find(function(s){return s.match(t,e,n,a)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}]),i}();function t6(i,r,t){i.hasOwnProperty(r)?i.hasOwnProperty(t)||(i[t]=i[r]):i.hasOwnProperty(t)&&(i[r]=i[t])}var dEe=new kO,hEe=function(){function i(r,t,e){p(this,i),this.bodyNode=r,this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return v(i,[{key:"register",value:function(t,e){var n=[],o=qK(this._driver,e,n,[]);if(n.length)throw function v0e(i){return new gt(3503,Mn)}();this._animations[t]=o}},{key:"_buildPlayer",value:function(t,e,n){var a=t.element,o=MK(this._driver,this._normalizer,a,t.keyframes,e,n);return this._driver.animate(a,o,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var l,n=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],s=this._animations[t],u=new Map;if(s?(l=ZK(this._driver,e,s,VK,fO,{},{},a,dEe,o)).forEach(function(h){var f=jo(u,h.element,{});h.postStyleProps.forEach(function(g){return f[g]=null})}):(o.push(p0e()),l=[]),o.length)throw g0e();u.forEach(function(h,f){Object.keys(h).forEach(function(g){h[g]=n._driver.computeStyle(f,g,ul)})});var c=l.map(function(h){var f=u.get(h.element);return n._buildPlayer(h,{},f)}),d=bd(c);return this._playersById[t]=d,d.onDestroy(function(){return n.destroy(t)}),this.players.push(d),d}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw function m0e(i){return new gt(3301,Mn)}();return e}},{key:"listen",value:function(t,e,n,a){var o=uO(e,"","","");return sO(this._getPlayer(t),n,o,a),function(){}}},{key:"command",value:function(t,e,n,a){if("register"!=n)if("create"!=n){var s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(a[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,a[0]||{});else this.register(t,a[0])}}]),i}(),n6="ng-animate-queued",SO="ng-animate-disabled",pEe="ng-star-inserted",mEe=[],i6={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_Ee={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ms="__ng_removed",wO=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";p(this,i),this.namespaceId=t;var e=r&&r.hasOwnProperty("value"),n=e?r.value:r;if(this.value=bEe(n),e){var a=Hp(r);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return v(i,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(a){null==n[a]&&(n[a]=e[a])})}}}]),i}(),yy="void",DO=new wO(yy),yEe=function(){function i(r,t,e){p(this,i),this.id=r,this.hostElement=t,this._engine=e,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Rs(t,this._hostClassName)}return v(i,[{key:"listen",value:function(t,e,n,a){var o=this;if(!this._triggers.hasOwnProperty(e))throw function _0e(i,r){return new gt(3302,Mn)}();if(null==n||0==n.length)throw function y0e(i){return new gt(3303,Mn)}();if(!function SEe(i){return"start"==i||"done"==i}(n))throw function k0e(i,r){return new gt(3400,Mn)}();var s=jo(this._elementListeners,t,[]),l={name:e,phase:n,callback:a};s.push(l);var u=jo(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Rs(t,Tw),Rs(t,Tw+"-"+e),u[e]=DO),function(){o._engine.afterFlush(function(){var c=s.indexOf(l);c>=0&&s.splice(c,1),o._triggers[e]||delete u[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw function C0e(i){return new gt(3401,Mn)}();return e}},{key:"trigger",value:function(t,e,n){var a=this,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=this._getTrigger(e),l=new EO(this.id,e,t),u=this._engine.statesByElement.get(t);u||(Rs(t,Tw),Rs(t,Tw+"-"+e),this._engine.statesByElement.set(t,u={}));var c=u[e],d=new wO(n,this.id),h=n&&n.hasOwnProperty("value");!h&&c&&d.absorbOptions(c.options),u[e]=d,c||(c=DO);var f=d.value===yy;if(f||c.value!==d.value){var w=jo(this._engine.playersByElement,t,[]);w.forEach(function(R){R.namespaceId==a.id&&R.triggerName==e&&R.queued&&R.destroy()});var E=s.matchTransition(c.value,d.value,t,d.params),M=!1;if(!E){if(!o)return;E=s.fallbackTransition,M=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:E,fromState:c,toState:d,player:l,isFallbackTransition:M}),M||(Rs(t,n6),l.onStart(function(){Kp(t,n6)})),l.onDone(function(){var R=a.players.indexOf(l);R>=0&&a.players.splice(R,1);var N=a._engine.playersByElement.get(t);if(N){var V=N.indexOf(l);V>=0&&N.splice(V,1)}}),this.players.push(l),w.push(l),l}if(!EEe(c.params,d.params)){var g=[],_=s.matchStyles(c.value,c.params,g),C=s.matchStyles(d.value,d.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(function(){rf(t,_),ru(t,C)})}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(n,a){delete n[t]}),this._elementListeners.forEach(function(n,a){e._elementListeners.set(a,n.filter(function(o){return o.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(n){return n.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,a=this._engine.driver.query(t,Aw,!0);a.forEach(function(o){if(!o[Ms]){var s=n._engine.fetchNamespacesByElement(o);s.size?s.forEach(function(l){return l.triggerLeaveAnimation(o,e,!1,!0)}):n.clearElementCache(o)}}),this._engine.afterFlushAnimationsDone(function(){return a.forEach(function(o){return n.clearElementCache(o)})})}},{key:"triggerLeaveAnimation",value:function(t,e,n,a){var o=this,s=this._engine.statesByElement.get(t),l=new Map;if(s){var u=[];if(Object.keys(s).forEach(function(c){if(l.set(c,s[c].value),o._triggers[c]){var d=o.trigger(t,c,yy,a);d&&u.push(d)}}),u.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,l),n&&bd(u).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t),a=this._engine.statesByElement.get(t);if(n&&a){var o=new Set;n.forEach(function(s){var l=s.name;if(!o.has(l)){o.add(l);var c=e._triggers[l].fallbackTransition,d=a[l]||DO,h=new wO(yy),f=new EO(e.id,l,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:l,transition:c,fromState:d,toState:h,player:f,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,e){var n=this,a=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var o=!1;if(a.totalAnimations){var s=a.players.length?a.playersByQueriedElement.get(t):[];if(s&&s.length)o=!0;else for(var l=t;l=l.parentNode;)if(a.statesByElement.get(l)){o=!0;break}}if(this.prepareLeaveAnimationListeners(t),o)a.markElementAsRemoved(this.id,t,!1,e);else{var c=t[Ms];(!c||c===i6)&&(a.afterFlush(function(){return n.clearElementCache(t)}),a.destroyInnerAnimations(t),a._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){Rs(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach(function(a){var o=a.player;if(!o.destroyed){var s=a.element,l=e._elementListeners.get(s);l&&l.forEach(function(u){if(u.name==a.triggerName){var c=uO(s,a.triggerName,a.fromState.value,a.toState.value);c._data=t,sO(a.player,u.phase,c,u.callback)}}),o.markedForDestroy?e._engine.afterFlush(function(){o.destroy()}):n.push(a)}}),this._queue=[],n.sort(function(a,o){var s=a.transition.ast.depCount,l=o.transition.ast.depCount;return 0==s||0==l?s-l:e._engine.driver.containsElement(a.element,o.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(n){return n.element===t})||e}}]),i}(),kEe=function(){function i(r,t,e){p(this,i),this.bodyNode=r,this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(n,a){}}return v(i,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(n){n.queued&&t.push(n)})}),t}},{key:"createNamespace",value:function(t,e){var n=new yEe(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList,a=this.namespacesByHostElement,o=n.length-1;if(o>=0){var s=!1;if(void 0!==this.driver.getParentElement)for(var l=this.driver.getParentElement(e);l;){var u=a.get(l);if(u){var c=n.indexOf(u);n.splice(c+1,0,t),s=!0;break}l=this.driver.getParentElement(l)}else for(var d=o;d>=0;d--)if(this.driver.containsElement(n[d].hostElement,e)){n.splice(d+1,0,t),s=!0;break}s||n.unshift(t)}else n.push(t);return a.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var a=this._namespaceLookup[t];a&&a.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var a=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(a.hostElement),delete n._namespaceLookup[t];var o=n._namespaceList.indexOf(a);o>=0&&n._namespaceList.splice(o,1)}),this.afterFlushAnimationsDone(function(){return a.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var a=Object.keys(n),o=0;o=0&&this.collectedLeaveElements.splice(s,1)}if(t){var l=this._fetchNamespace(t);l&&l.insertNode(e,n)}a&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Rs(t,SO)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Kp(t,SO))}},{key:"removeNode",value:function(t,e,n,a){if(Gw(e)){var o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,a):this.markElementAsRemoved(t,e,!1,a),n){var s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,a)}}else this._onRemovalComplete(e,a)}},{key:"markElementAsRemoved",value:function(t,e,n,a,o){this.collectedLeaveElements.push(e),e[Ms]={namespaceId:t,setForRemoval:a,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:o}}},{key:"listen",value:function(t,e,n,a,o){return Gw(e)?this._fetchNamespace(t).listen(e,n,a,o):function(){}}},{key:"_buildInstruction",value:function(t,e,n,a,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,a,t.fromState.options,t.toState.options,e,o)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,Aw,!0);n.forEach(function(a){return e.destroyActiveAnimationsForElement(a)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,vO,!0)).forEach(function(a){return e.finishActiveQueriedAnimationOnElement(a)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(n){n.queued?n.markedForDestroy=!0:n.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(n){return n.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return bd(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var n,e=this,a=t[Ms];if(a&&a.setForRemoval){if(t[Ms]=i6,a.namespaceId){this.destroyInnerAnimations(t);var o=this._fetchNamespace(a.namespaceId);o&&o.clearElementCache(t)}this._onRemovalComplete(t,a.setForRemoval)}(null===(n=t.classList)||void 0===n?void 0:n.contains(SO))&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(s){e.markElementAsDisabled(s,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(h,f){return t._balanceNamespaceList(h,f)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var a=0;a=0;K--)this._namespaceList[K].drainQueuedTransitions(e).forEach(function(it){var ct=it.player,Et=it.element;if(G.push(ct),n.collectedEnterElements.length){var gi=Et[Ms];if(gi&&gi.setForMove){if(gi.previousTriggersValues&&gi.previousTriggersValues.has(it.triggerName)){var qu=gi.previousTriggersValues.get(it.triggerName),Oo=n.statesByElement.get(it.element);Oo&&Oo[it.triggerName]&&(Oo[it.triggerName].value=qu)}return void ct.destroy()}}var xh=!f||!n.driver.containsElement(f,Et),Lv=ee.get(Et),GA=C.get(Et),Dr=n._buildInstruction(it,a,GA,Lv,xh);if(Dr.errors&&Dr.errors.length)I.push(Dr);else{if(xh)return ct.onStart(function(){return rf(Et,Dr.fromStyles)}),ct.onDestroy(function(){return ru(Et,Dr.toStyles)}),void o.push(ct);if(it.isFallbackTransition)return ct.onStart(function(){return rf(Et,Dr.fromStyles)}),ct.onDestroy(function(){return ru(Et,Dr.toStyles)}),void o.push(ct);var Ub=[];Dr.timelines.forEach(function(Xu){Xu.stretchStartingKeyframe=!0,n.disabledNodes.has(Xu.element)||Ub.push(Xu)}),Dr.timelines=Ub,a.append(Et,Dr.timelines),l.push({instruction:Dr,player:ct,element:Et}),Dr.queriedElements.forEach(function(Xu){return jo(u,Xu,[]).push(ct)}),Dr.preStyleProps.forEach(function(Xu,Mh){var zb=Object.keys(Xu);if(zb.length){var Zu=c.get(Mh);Zu||c.set(Mh,Zu=new Set),zb.forEach(function(UA){return Zu.add(UA)})}}),Dr.postStyleProps.forEach(function(Xu,Mh){var zb=Object.keys(Xu),Zu=d.get(Mh);Zu||d.set(Mh,Zu=new Set),zb.forEach(function(UA){return Zu.add(UA)})})}});if(I.length){var se=[];I.forEach(function(it){se.push(function S0e(i,r){return new gt(3505,Mn)}())}),G.forEach(function(it){return it.destroy()}),this.reportError(se)}var me=new Map,ae=new Map;l.forEach(function(it){var ct=it.element;a.has(ct)&&(ae.set(ct,ct),n._beforeAnimationBuild(it.player.namespaceId,it.instruction,me))}),o.forEach(function(it){var ct=it.element;n._getPreviousPlayers(ct,!1,it.namespaceId,it.triggerName,null).forEach(function(gi){jo(me,ct,[]).push(gi),gi.destroy()})});var Ne=E.filter(function(it){return l6(it,c,d)}),Ce=new Map;a6(Ce,this.driver,R,d,ul).forEach(function(it){l6(it,c,d)&&Ne.push(it)});var Be=new Map;_.forEach(function(it,ct){a6(Be,n.driver,new Set(it),c,"!")}),Ne.forEach(function(it){var ct=Ce.get(it),Et=Be.get(it);Ce.set(it,Object.assign(Object.assign({},ct),Et))});var je=[],kt=[],Xt={};l.forEach(function(it){var ct=it.element,Et=it.player,gi=it.instruction;if(a.has(ct)){if(h.has(ct))return Et.onDestroy(function(){return ru(ct,gi.toStyles)}),Et.disabled=!0,Et.overrideTotalTime(gi.totalTime),void o.push(Et);var qu=Xt;if(ae.size>1){for(var Oo=ct,xh=[];Oo=Oo.parentNode;){var Lv=ae.get(Oo);if(Lv){qu=Lv;break}xh.push(Oo)}xh.forEach(function(Ub){return ae.set(Ub,qu)})}var GA=n._buildAnimation(Et.namespaceId,gi,me,s,Be,Ce);if(Et.setRealPlayer(GA),qu===Xt)je.push(Et);else{var Dr=n.playersByElement.get(qu);Dr&&Dr.length&&(Et.parentPlayer=bd(Dr)),o.push(Et)}}else rf(ct,gi.fromStyles),Et.onDestroy(function(){return ru(ct,gi.toStyles)}),kt.push(Et),h.has(ct)&&o.push(Et)}),kt.forEach(function(it){var ct=s.get(it.element);if(ct&&ct.length){var Et=bd(ct);it.setRealPlayer(Et)}}),o.forEach(function(it){it.parentPlayer?it.syncPlayerEvents(it.parentPlayer):it.destroy()});for(var zn=0;zn0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new my(t.duration,t.delay)}}]),i}(),EO=function(){function i(r,t,e){p(this,i),this.namespaceId=r,this.triggerName=t,this.element=e,this._player=new my,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return v(i,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(a){return sO(t,n,void 0,a)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){jo(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),i}();function bEe(i){return null!=i?i:null}function Gw(i){return i&&1===i.nodeType}function r6(i,r){var t=i.style.display;return i.style.display=null!=r?r:"none",t}function a6(i,r,t,e,n){var a=[];t.forEach(function(l){return a.push(r6(l))});var o=[];e.forEach(function(l,u){var c={};l.forEach(function(d){var h=c[d]=r.computeStyle(u,d,n);(!h||0==h.length)&&(u[Ms]=_Ee,o.push(u))}),i.set(u,c)});var s=0;return t.forEach(function(l){return r6(l,a[s++])}),o}function o6(i,r){var t=new Map;if(i.forEach(function(s){return t.set(s,[])}),0==r.length)return t;var n=new Set(r),a=new Map;function o(s){if(!s)return 1;var l=a.get(s);if(l)return l;var u=s.parentNode;return l=t.has(u)?u:n.has(u)?1:o(u),a.set(s,l),l}return r.forEach(function(s){var l=o(s);1!==l&&t.get(l).push(s)}),t}function Rs(i,r){var t;null===(t=i.classList)||void 0===t||t.add(r)}function Kp(i,r){var t;null===(t=i.classList)||void 0===t||t.remove(r)}function wEe(i,r,t){bd(t).onDone(function(){return i.processLeaveNode(r)})}function s6(i,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),i}();function TEe(i,r){var t=null,e=null;return Array.isArray(r)&&r.length?(t=TO(r[0]),r.length>1&&(e=TO(r[r.length-1]))):r&&(t=TO(r)),t||e?new AEe(i,t,e):null}var AEe=function(){var i=function(){function r(t,e,n){p(this,r),this._element=t,this._startStyles=e,this._endStyles=n,this._state=0;var a=r.initialStylesByElement.get(t);a||r.initialStylesByElement.set(t,a={}),this._initialStyles=a}return v(r,[{key:"start",value:function(){this._state<1&&(this._startStyles&&ru(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(ru(this._element,this._initialStyles),this._endStyles&&(ru(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(rf(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rf(this._element,this._endStyles),this._endStyles=null),ru(this._element,this._initialStyles),this._state=3)}}]),r}();return i.initialStylesByElement=new WeakMap,i}();function TO(i){for(var r=null,t=Object.keys(i),e=0;e5&&void 0!==arguments[5]?arguments[5]:[],l=0==a?"both":"forwards",u={duration:n,delay:a,fill:l};o&&(u.easing=o);var c={},d=s.filter(function(f){return f instanceof u6});N0e(n,a)&&d.forEach(function(f){var g=f.currentSnapshot;Object.keys(g).forEach(function(_){return c[_]=g[_]})});var h=TEe(t,e=F0e(t,e=e.map(function(f){return Sd(f,!1)}),c));return new u6(t,e,u,h)}}]),i}(),REe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this))._nextAnimationId=0,o._renderer=n.createRenderer(a.body,{id:"0",encapsulation:Qs.None,styles:[],data:{animation:[]}}),o}return v(e,[{key:"build",value:function(a){var o=this._nextAnimationId.toString();this._nextAnimationId++;var s=Array.isArray(a)?Dw(a):a;return c6(this._renderer,null,o,"register",[s]),new OEe(o,this._renderer)}}]),e}(zp);return i.\u0275fac=function(t){return new(t||i)(oe(ny),oe(pa))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),OEe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this))._id=e,a._renderer=n,a}return v(t,[{key:"create",value:function(n,a){return new IEe(this._id,n,a||{},this._renderer)}}]),t}(WDe),IEe=function(){function i(r,t,e,n){p(this,i),this.id=r,this.element=t,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",e)}return v(i,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,a)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,a){this.delegate.setAttribute(t,e,n,a)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,a){this.delegate.setStyle(t,e,n,a)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)&&e==d6?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),i}(),FEe=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,n,a,o)).factory=e,s.namespaceId=n,s}return v(t,[{key:"setProperty",value:function(n,a,o){"@"==a.charAt(0)?"."==a.charAt(1)&&a==d6?this.disableAnimations(n,o=void 0===o||!!o):this.engine.process(this.namespaceId,n,a.substr(1),o):this.delegate.setProperty(n,a,o)}},{key:"listen",value:function(n,a,o){var s=this;if("@"==a.charAt(0)){var l=function LEe(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(n),u=a.substr(1),c="";if("@"!=u.charAt(0)){var d=function PEe(i){var r=i.indexOf(".");return[i.substring(0,r),i.substr(r+1)]}(u),h=Gt(d,2);u=h[0],c=h[1]}return this.engine.listen(this.namespaceId,l,u,c,function(f){s.factory.scheduleListenerCallback(f._data||-1,o,f)})}return this.delegate.listen(n,a,o)}}]),t}(h6),BEe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){return p(this,e),t.call(this,n.body,a,o)}return v(e,[{key:"ngOnDestroy",value:function(){this.flush()}}]),e}(Vw);return i.\u0275fac=function(t){return new(t||i)(oe(pa),oe(hO),oe(CO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),f6=new wt("AnimationModuleType"),v6=[{provide:zp,useClass:REe},{provide:CO,useFactory:function GEe(){return new iEe}},{provide:Vw,useClass:BEe},{provide:ny,useFactory:function VEe(i,r,t){return new NEe(i,r,t)},deps:[ww,Vw,be]}],p6=[{provide:hO,useFactory:function(){return new MEe}},{provide:f6,useValue:"BrowserAnimations"}].concat(v6),UEe=[{provide:hO,useClass:BK},{provide:f6,useValue:"NoopAnimations"}].concat(v6),zEe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"withConfig",value:function(e){return{ngModule:r,providers:e.disableAnimations?UEe:p6}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:p6,imports:[oK]}),i}();function jp(i){return new An(function(r){Pi(i()).subscribe(r)})}function ky(i,r){var t=wn(i)?i:function(){return i},e=function(a){return a.error(t())};return new An(r?function(n){return r.schedule(e,0,n)}:e)}var HEe=Array.isArray;function AO(i){return We(function(r){return function KEe(i,r){return HEe(r)?i.apply(void 0,Ae(r)):i(r)}(i,r)})}var jEe=["addListener","removeListener"],WEe=["addEventListener","removeEventListener"],$Ee=["on","off"];function li(i,r,t,e){if(wn(t)&&(e=t,t=void 0),e)return li(i,r,t).pipe(AO(e));var a=Gt(function ZEe(i){return wn(i.addEventListener)&&wn(i.removeEventListener)}(i)?WEe.map(function(l){return function(u){return i[l](r,u,t)}}):function qEe(i){return wn(i.addListener)&&wn(i.removeListener)}(i)?jEe.map(g6(i,r)):function XEe(i){return wn(i.on)&&wn(i.off)}(i)?$Ee.map(g6(i,r)):[],2),o=a[0],s=a[1];if(!o&&ic(i))return Bi(function(l){return li(l,r,t)})(Pi(i));if(!o)throw new TypeError("Invalid event target");return new An(function(l){var u=function(){for(var d=arguments.length,h=new Array(d),f=0;f1&&void 0!==arguments[1]?arguments[1]:JEe,t=r.connector;return oi(function(e,n){var a=t();wi(i(QEe(a))).subscribe(n),n.add(e.subscribe(a))})}function At(i,r,t){var e=wn(i)||r||t?{next:i,error:r,complete:t}:i;return e?oi(function(n,a){var o;null===(o=e.subscribe)||void 0===o||o.call(e);var s=!0;n.subscribe(Wn(a,function(l){var u;null===(u=e.next)||void 0===u||u.call(e,l),a.next(l)},function(){var l;s=!1,null===(l=e.complete)||void 0===l||l.call(e),a.complete()},function(l){var u;s=!1,null===(u=e.error)||void 0===u||u.call(e,l),a.error(l)},function(){var l,u;s&&(null===(l=e.unsubscribe)||void 0===l||l.call(e)),null===(u=e.finalize)||void 0===u||u.call(e)}))}):zl}var n1e=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),r.call(this)}return v(t,[{key:"schedule",value:function(n){return this}}]),t}(Je),zw={setInterval:function(i){function r(t,e){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(i,r){for(var t=zw.delegate,e=arguments.length,n=new Array(e>2?e-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=n;var o=this.id,s=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(s,o,a)),this.pending=!0,this.delay=a,this.id=this.id||this.requestAsyncId(s,this.id,a),this}},{key:"requestAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return zw.setInterval(n.flush.bind(n,this),o)}},{key:"recycleAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&this.delay===o&&!1===this.pending)return a;zw.clearInterval(a)}},{key:"execute",value:function(n,a){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(n,a);if(o)return o;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(n,a){var s,o=!1;try{this.work(n)}catch(l){o=!0,s=l||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s}},{key:"unsubscribe",value:function(){if(!this.closed){var n=this.id,a=this.scheduler,o=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Nh(o,this),null!=n&&(this.id=this.recycleAsyncId(a,n,null)),this.delay=null,$(q(t.prototype),"unsubscribe",this).call(this)}}}]),t}(n1e),xO={now:function(){return(xO.delegate||Date).now()},delegate:void 0},MO=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;p(this,i),this.schedulerActionCtor=r,this.now=t}return v(i,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.schedulerActionCtor(this,t).schedule(n,e)}}]),i}();MO.now=xO.now;var C6=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:MO.now;return p(this,t),(n=r.call(this,e,a)).actions=[],n._active=!1,n._scheduled=void 0,n}return v(t,[{key:"flush",value:function(n){var a=this.actions;if(this._active)a.push(n);else{var o;this._active=!0;do{if(o=n.execute(n.state,n.delay))break}while(n=a.shift());if(this._active=!1,o){for(;n=a.shift();)n.unsubscribe();throw o}}}}]),t}(MO),Wp=new C6(k6),i1e=Wp;function b6(i,r){return r?function(t){return sf(r.pipe(It(1),function r1e(){return oi(function(i,r){i.subscribe(Wn(r,Fh))})}()),t.pipe(b6(i)))}:Bi(function(t,e){return i(t,e).pipe(It(1),function a1e(i){return We(function(){return i})}(t))})}function o1e(i){return i instanceof Date&&!isNaN(i)}function Hw(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i1e,e=-1;return null!=r&&(g_(r)?t=r:e=r),new An(function(n){var a=o1e(i)?+i-t.now():i;a<0&&(a=0);var o=0;return t.schedule(function(){n.closed||(n.next(o++),0<=e?this.schedule(void 0,e):n.complete())},a)})}function Dd(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp,t=Hw(i,r);return b6(function(){return t})}var Cy="Service workers are disabled or not supported by this browser",Kw=function(){function i(r){if(p(this,i),this.serviceWorker=r,r){var e=li(r,"controllerchange").pipe(We(function(){return r.controller})),a=sf(jp(function(){return lt(r.controller)}),e);this.worker=a.pipe(Ue(function(c){return!!c})),this.registration=this.worker.pipe(Nn(function(){return r.getRegistration()}));var u=li(r,"message").pipe(We(function(c){return c.data})).pipe(Ue(function(c){return c&&c.type})).pipe(function t1e(i){return i?function(r){return y6(i)(r)}:function(r){return function e1e(i,r){var t=wn(i)?i:function(){return i};return wn(r)?y6(r,{connector:t}):function(e){return new _6(e,t)}}(new Ot)(r)}}());u.connect(),this.events=u}else this.worker=this.events=this.registration=function s1e(i){return jp(function(){return ky(new Error(i))})}(Cy)}return v(i,[{key:"postMessage",value:function(t,e){return this.worker.pipe(It(1),At(function(n){n.postMessage(Object.assign({action:t},e))})).toPromise().then(function(){})}},{key:"postMessageWithOperation",value:function(t,e,n){var a=this.waitForOperationCompleted(n),o=this.postMessage(t,e);return Promise.all([o,a]).then(function(s){return Gt(s,2)[1]})}},{key:"generateNonce",value:function(){return Math.round(1e7*Math.random())}},{key:"eventsOfType",value:function(t){return this.events.pipe(Ue("string"==typeof t?function(a){return a.type===t}:function(a){return t.includes(a.type)}))}},{key:"nextEventOfType",value:function(t){return this.eventsOfType(t).pipe(It(1))}},{key:"waitForOperationCompleted",value:function(t){return this.eventsOfType("OPERATION_COMPLETED").pipe(Ue(function(e){return e.nonce===t}),It(1),We(function(e){if(void 0!==e.result)return e.result;throw new Error(e.error)})).toPromise()}},{key:"isEnabled",get:function(){return!!this.serviceWorker}}]),i}(),l1e=function(){var i=function(){function r(t){if(p(this,r),this.sw=t,this.subscriptionChanges=new Ot,!t.isEnabled)return this.messages=wd,this.notificationClicks=wd,void(this.subscription=wd);this.messages=this.sw.eventsOfType("PUSH").pipe(We(function(n){return n.data})),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(We(function(n){return n.data})),this.pushManager=this.sw.registration.pipe(We(function(n){return n.pushManager}));var e=this.pushManager.pipe(Nn(function(n){return n.getSubscription()}));this.subscription=xn(e,this.subscriptionChanges)}return v(r,[{key:"isEnabled",get:function(){return this.sw.isEnabled}},{key:"requestSubscription",value:function(e){var n=this;if(!this.sw.isEnabled)return Promise.reject(new Error(Cy));for(var a={userVisibleOnly:!0},o=this.decodeBase64(e.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),s=new Uint8Array(new ArrayBuffer(o.length)),l=0;l1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:r,providers:[{provide:S6,useValue:e},{provide:RO,useValue:n},{provide:Kw,useFactory:d1e,deps:[RO,cy]},{provide:lw,useFactory:c1e,deps:[Jn,S6,RO,cy],multi:!0}]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[l1e,u1e]}),i}();function $p(i){return!!i&&(i instanceof An||wn(i.lift)&&wn(i.subscribe))}var f1e=Array.isArray,v1e=Object.getPrototypeOf,p1e=Object.prototype,g1e=Object.keys;function E6(i){if(1===i.length){var r=i[0];if(f1e(r))return{args:r,keys:null};if(function m1e(i){return i&&"object"==typeof i&&v1e(i)===p1e}(r)){var t=g1e(r);return{args:t.map(function(e){return r[e]}),keys:t}}}return{args:i,keys:null}}function T6(i,r){return i.reduce(function(t,e,n){return t[e]=r[n],t},{})}function OO(){for(var i=arguments.length,r=new Array(i),t=0;t0&&void 0!==arguments[0]?arguments[0]:1/0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xO;return p(this,t),(e=r.call(this))._bufferSize=n,e._windowTime=a,e._timestampProvider=o,e._buffer=[],e._infiniteTimeWindow=!0,e._infiniteTimeWindow=a===1/0,e._bufferSize=Math.max(1,n),e._windowTime=Math.max(1,a),e}return v(t,[{key:"next",value:function(n){var o=this._buffer,s=this._infiniteTimeWindow,l=this._timestampProvider,u=this._windowTime;this.isStopped||(o.push(n),!s&&o.push(l.now()+u)),this._trimBuffer(),$(q(t.prototype),"next",this).call(this,n)}},{key:"_subscribe",value:function(n){this._throwIfClosed(),this._trimBuffer();for(var a=this._innerSubscribe(n),o=this._infiniteTimeWindow,l=this._buffer.slice(),u=0;u5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c=arguments.length>8?arguments[8]:void 0;p(this,r),this.store=t,this.currentLoader=e,this.compiler=n,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=l,this.extend=u,this.pending=!1,this._onTranslationChange=new O,this._onLangChange=new O,this._onDefaultLangChange=new O,this._langs=[],this._translations={},this._translationRequests={},c&&this.setDefaultLang(c)}return v(r,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var n=this;if(e!==this.defaultLang){var a=this.retrieveTranslations(e);void 0!==a?(null==this.defaultLang&&(this.defaultLang=e),a.pipe(It(1)).subscribe(function(o){n.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var n=this;if(e===this.currentLang)return lt(this.translations[e]);var a=this.retrieveTranslations(e);return void 0!==a?(this.currentLang||(this.currentLang=e),a.pipe(It(1)).subscribe(function(o){n.changeLang(e)}),a):(this.changeLang(e),lt(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var n;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),n=this._translationRequests[e]),n}},{key:"getTranslation",value:function(e){var n=this;this.pending=!0;var a=this.currentLoader.getTranslation(e).pipe(x6(1),It(1));return this.loadingTranslations=a.pipe(We(function(o){return n.compiler.compileTranslations(o,e)}),x6(1),It(1)),this.loadingTranslations.subscribe({next:function(s){n.translations[e]=n.extend&&n.translations[e]?Object.assign(Object.assign({},s),n.translations[e]):s,n.updateLangs(),n.pending=!1},error:function(s){n.pending=!1}}),a}},{key:"setTranslation",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n=this.compiler.compileTranslations(n,e),this.translations[e]=(a||this.extend)&&this.translations[e]?I6(this.translations[e],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var n=this;e.forEach(function(a){-1===n.langs.indexOf(a)&&n.langs.push(a)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,n,a){var o;if(n instanceof Array){var c,s={},l=!1,u=In(n);try{for(u.s();!(c=u.n()).done;){var d=c.value;s[d]=this.getParsedResult(e,d,a),$p(s[d])&&(l=!0)}}catch(g){u.e(g)}finally{u.f()}return l?OO(n.map(function(g){return $p(s[g])?s[g]:lt(s[g])})).pipe(We(function(g){var _={};return g.forEach(function(C,w){_[n[w]]=C}),_})):s}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,n),a)),void 0===o&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),a)),void 0===o){var f={key:n,translateService:this};void 0!==a&&(f.interpolateParams=a),o=this.missingTranslationHandler.handle(f)}return void 0!==o?o:n}},{key:"get",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(nu(function(s){return $p(s=a.getParsedResult(s,e,n))?s:lt(s)}));var o=this.getParsedResult(this.translations[this.currentLang],e,n);return $p(o)?o:lt(o)}},{key:"getStreamOnTranslationChange",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');return sf(jp(function(){return a.get(e,n)}),this.onTranslationChange.pipe(Nn(function(o){var s=a.getParsedResult(o.translations,e,n);return"function"==typeof s.subscribe?s:lt(s)})))}},{key:"stream",value:function(e,n){var a=this;if(!lf(e)||!e.length)throw new Error('Parameter "key" required');return sf(jp(function(){return a.get(e,n)}),this.onLangChange.pipe(Nn(function(o){var s=a.getParsedResult(o.translations,e,n);return $p(s)?s:lt(s)})))}},{key:"instant",value:function(e,n){if(!lf(e)||!e.length)throw new Error('Parameter "key" required');var a=this.getParsedResult(this.translations[this.currentLang],e,n);if($p(a)){if(e instanceof Array){var o={};return e.forEach(function(s,l){o[e[l]]=e[l]}),o}return e}return a}},{key:"set",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[a][e]=this.compiler.compile(n,a),this.updateLangs(),this.onTranslationChange.emit({lang:a,translations:this.translations[a]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;if(void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage))return-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(L6),oe(by),oe(Ww),oe(jw),oe(IO),oe(LO),oe(FO),oe(BO),oe(PO))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),_1e=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.loader||{provide:by,useClass:M6},e.compiler||{provide:Ww,useClass:F6},e.parser||{provide:jw,useClass:N6},e.missingTranslationHandler||{provide:IO,useClass:R6},L6,{provide:FO,useValue:e.isolate},{provide:LO,useValue:e.useDefaultLang},{provide:BO,useValue:e.extend},{provide:PO,useValue:e.defaultLanguage},P6]}}},{key:"forChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:r,providers:[e.loader||{provide:by,useClass:M6},e.compiler||{provide:Ww,useClass:F6},e.parser||{provide:jw,useClass:N6},e.missingTranslationHandler||{provide:IO,useClass:R6},{provide:FO,useValue:e.isolate},{provide:LO,useValue:e.useDefaultLang},{provide:BO,useValue:e.extend},{provide:PO,useValue:e.defaultLanguage},P6]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),y1e=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";p(this,i),this.http=r,this.prefix=t,this.suffix=e}return v(i,[{key:"getTranslation",value:function(t){return this.http.get("".concat(this.prefix).concat(t).concat(this.suffix))}}]),i}(),Sy=function(){function i(){p(this,i)}return v(i,null,[{key:"IS_WEB",get:function(){return i.PLATFORM_TARGET===i.PLATFORMS.WEB}},{key:"IS_MOBILE_NATIVE",get:function(){return i.PLATFORM_TARGET===i.PLATFORMS.MOBILE_NATIVE}}]),i}();Sy.PLATFORMS={WEB:"web",MOBILE_NATIVE:"mobile_native"},Sy.PLATFORM_TARGET=Sy.PLATFORMS.WEB;var xi=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._value=e,n}return v(t,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(n){var a=$(q(t.prototype),"_subscribe",this).call(this,n);return!a.closed&&n.next(this._value),a}},{key:"getValue",value:function(){var o=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),o}},{key:"next",value:function(n){$(q(t.prototype),"next",this).call(this,this._value=n)}}]),t}(Ot);function GO(){for(var i=arguments.length,r=new Array(i),t=0;t2&&void 0!==arguments[2]?arguments[2]:zl;return function(e){B6(r,function(){for(var n=i.length,a=new Array(n),o=n,s=n,l=function(d){B6(r,function(){var h=wi(i[d],r),f=!1;h.subscribe(Wn(e,function(g){a[d]=g,f||(f=!0,s--),s||e.next(t(a.slice()))},function(){--o||e.complete()}))},e)},u=0;u=2,!0))}function cl(i){return oi(function(r,t){var a,e=null,n=!1;e=r.subscribe(Wn(t,void 0,void 0,function(o){a=Pi(i(o,cl(i)(r))),e?(e.unsubscribe(),e=null,a.subscribe(t)):n=!0})),n&&(e.unsubscribe(),e=null,a.subscribe(t))})}function UO(i){return i<=0?function(){return po}:oi(function(r,t){var e=[];r.subscribe(Wn(t,function(n){e.push(n),i0&&void 0!==arguments[0]?arguments[0]:b1e;return oi(function(r,t){var e=!1;r.subscribe(Wn(t,function(n){e=!0,t.next(n)},function(){return e?t.complete():t.error(i())}))})}function b1e(){return new $w}function U6(i){return oi(function(r,t){var e=!1;r.subscribe(Wn(t,function(n){e=!0,t.next(n)},function(){e||t.next(i),t.complete()}))})}function qp(i,r){var t=arguments.length>=2;return function(e){return e.pipe(i?Ue(function(n,a){return i(n,a,e)}):zl,It(1),t?U6(r):V6(function(){return new $w}))}}function z6(i){return oi(function(r,t){try{r.subscribe(t)}finally{t.add(i)}})}var gc=v(function i(r,t){p(this,i),this.id=r,this.url=t}),zO=function(i){b(t,i);var r=S(t);function t(e,n){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return p(this,t),(a=r.call(this,e,n)).navigationTrigger=o,a.restoredState=s,a}return v(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(gc),wy=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).urlAfterRedirects=a,o}return v(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),t}(gc),H6=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).reason=a,o}return v(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),t}(gc),w1e=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e,n)).error=a,o}return v(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),t}(gc),D1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),E1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),T1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s){var l;return p(this,t),(l=r.call(this,e,n)).urlAfterRedirects=a,l.state=o,l.shouldActivate=s,l}return v(t,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),t}(gc),A1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),x1e=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this,e,n)).urlAfterRedirects=a,s.state=o,s}return v(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),t}(gc),K6=function(){function i(r){p(this,i),this.route=r}return v(i,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),i}(),j6=function(){function i(r){p(this,i),this.route=r}return v(i,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),i}(),M1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),R1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),O1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),I1e=function(){function i(r){p(this,i),this.snapshot=r}return v(i,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),W6=function(){function i(r,t,e){p(this,i),this.routerEvent=r,this.position=t,this.anchor=e}return v(i,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),i}(),bn="primary",N1e=function(){function i(r){p(this,i),this.params=r||{}}return v(i,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),i}();function Xp(i){return new N1e(i)}var $6="ngNavigationCancelingError";function HO(i){var r=Error("NavigationCancelingError: "+i);return r[$6]=!0,r}function L1e(i,r,t){var e=t.path.split("/");if(e.length>i.length||"full"===t.pathMatch&&(r.hasChildren()||e.length0?i[i.length-1]:null}function ga(i,r){for(var t in i)i.hasOwnProperty(t)&&r(i[t],t)}function ou(i){return KM(i)?i:X_(i)?wi(Promise.resolve(i)):lt(i)}var G1e={exact:function J6(i,r,t){if(!cf(i.segments,r.segments)||!qw(i.segments,r.segments,t)||i.numberOfChildren!==r.numberOfChildren)return!1;for(var e in r.children)if(!i.children[e]||!J6(i.children[e],r.children[e],t))return!1;return!0},subset:ej},Y6={exact:function V1e(i,r){return au(i,r)},subset:function U1e(i,r){return Object.keys(r).length<=Object.keys(i).length&&Object.keys(r).every(function(t){return q6(i[t],r[t])})},ignored:function(){return!0}};function Q6(i,r,t){return G1e[t.paths](i.root,r.root,t.matrixParams)&&Y6[t.queryParams](i.queryParams,r.queryParams)&&!("exact"===t.fragment&&i.fragment!==r.fragment)}function ej(i,r,t){return tj(i,r,r.segments,t)}function tj(i,r,t,e){if(i.segments.length>t.length){var n=i.segments.slice(0,t.length);return!(!cf(n,t)||r.hasChildren()||!qw(n,t,e))}if(i.segments.length===t.length){if(!cf(i.segments,t)||!qw(i.segments,t,e))return!1;for(var a in r.children)if(!i.children[a]||!ej(i.children[a],r.children[a],e))return!1;return!0}var o=t.slice(0,i.segments.length),s=t.slice(i.segments.length);return!!(cf(i.segments,o)&&qw(i.segments,o,e)&&i.children[bn])&&tj(i.children[bn],r,s,e)}function qw(i,r,t){return r.every(function(e,n){return Y6[t](i[n].parameters,e.parameters)})}var uf=function(){function i(r,t,e){p(this,i),this.root=r,this.queryParams=t,this.fragment=e}return v(i,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Xp(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return K1e.serialize(this)}}]),i}(),Rn=function(){function i(r,t){var e=this;p(this,i),this.segments=r,this.children=t,this.parent=null,ga(t,function(n,a){return n.parent=e})}return v(i,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Xw(this)}}]),i}(),Dy=function(){function i(r,t){p(this,i),this.path=r,this.parameters=t}return v(i,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Xp(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return oj(this)}}]),i}();function cf(i,r){return i.length===r.length&&i.every(function(t,e){return t.path===r[e].path})}var nj=v(function i(){p(this,i)}),ij=function(){function i(){p(this,i)}return v(i,[{key:"parse",value:function(t){var e=new J1e(t);return new uf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e="/".concat(Ey(t.root,!0)),n=function $1e(i){var r=Object.keys(i).map(function(t){var e=i[t];return Array.isArray(e)?e.map(function(n){return"".concat(Zw(t),"=").concat(Zw(n))}).join("&"):"".concat(Zw(t),"=").concat(Zw(e))}).filter(function(t){return!!t});return r.length?"?".concat(r.join("&")):""}(t.queryParams),a="string"==typeof t.fragment?"#".concat(function j1e(i){return encodeURI(i)}(t.fragment)):"";return"".concat(e).concat(n).concat(a)}}]),i}(),K1e=new ij;function Xw(i){return i.segments.map(function(r){return oj(r)}).join("/")}function Ey(i,r){if(!i.hasChildren())return Xw(i);if(r){var t=i.children[bn]?Ey(i.children[bn],!1):"",e=[];return ga(i.children,function(a,o){o!==bn&&e.push("".concat(o,":").concat(Ey(a,!1)))}),e.length>0?"".concat(t,"(").concat(e.join("//"),")"):t}var n=function H1e(i,r){var t=[];return ga(i.children,function(e,n){n===bn&&(t=t.concat(r(e,n)))}),ga(i.children,function(e,n){n!==bn&&(t=t.concat(r(e,n)))}),t}(i,function(a,o){return o===bn?[Ey(i.children[bn],!1)]:["".concat(o,":").concat(Ey(a,!1))]});return 1===Object.keys(i.children).length&&null!=i.children[bn]?"".concat(Xw(i),"/").concat(n[0]):"".concat(Xw(i),"/(").concat(n.join("//"),")")}function rj(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zw(i){return rj(i).replace(/%3B/gi,";")}function KO(i){return rj(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Yw(i){return decodeURIComponent(i)}function aj(i){return Yw(i.replace(/\+/g,"%20"))}function oj(i){return"".concat(KO(i.path)).concat(function W1e(i){return Object.keys(i).map(function(r){return";".concat(KO(r),"=").concat(KO(i[r]))}).join("")}(i.parameters))}var q1e=/^[^\/()?;=#]+/;function Qw(i){var r=i.match(q1e);return r?r[0]:""}var X1e=/^[^=?&#]+/,Y1e=/^[^&#]+/,J1e=function(){function i(r){p(this,i),this.url=r,this.remaining=r}return v(i,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rn([],{}):new Rn([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[bn]=new Rn(t,e)),n}},{key:"parseSegment",value:function(){var t=Qw(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Dy(Yw(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Qw(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var a=Qw(this.remaining);a&&this.capture(n=a)}t[Yw(e)]=Yw(n)}}},{key:"parseQueryParam",value:function(t){var e=function Z1e(i){var r=i.match(X1e);return r?r[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var a=function Q1e(i){var r=i.match(Y1e);return r?r[0]:""}(this.remaining);a&&this.capture(n=a)}var o=aj(e),s=aj(n);if(t.hasOwnProperty(o)){var l=t[o];Array.isArray(l)||(t[o]=l=[l]),l.push(s)}else t[o]=s}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Qw(this.remaining),a=this.remaining[n.length];if("/"!==a&&")"!==a&&";"!==a)throw new Error("Cannot parse url '".concat(this.url,"'"));var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=bn);var s=this.parseChildren();e[o]=1===Object.keys(s).length?s[bn]:new Rn([],s),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),i}(),sj=function(){function i(r){p(this,i),this._root=r}return v(i,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=jO(t,this._root);return e?e.children.map(function(n){return n.value}):[]}},{key:"firstChild",value:function(t){var e=jO(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=WO(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(a){return a.value}).filter(function(a){return a!==t})}},{key:"pathFromRoot",value:function(t){return WO(t,this._root).map(function(e){return e.value})}}]),i}();function jO(i,r){if(i===r.value)return r;var e,t=In(r.children);try{for(t.s();!(e=t.n()).done;){var a=jO(i,e.value);if(a)return a}}catch(o){t.e(o)}finally{t.f()}return null}function WO(i,r){if(i===r.value)return[r];var e,t=In(r.children);try{for(t.s();!(e=t.n()).done;){var a=WO(i,e.value);if(a.length)return a.unshift(r),a}}catch(o){t.e(o)}finally{t.f()}return[]}var mc=function(){function i(r,t){p(this,i),this.value=r,this.children=t}return v(i,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),i}();function Zp(i){var r={};return i&&i.children.forEach(function(t){return r[t.value.outlet]=t}),r}var lj=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e)).snapshot=n,$O(Xe(a),e),a}return v(t,[{key:"toString",value:function(){return this.snapshot.toString()}}]),t}(sj);function uj(i,r){var t=function eTe(i,r){var o=new Jw([],{},{},"",{},bn,r,null,i.root,-1,{});return new dj("",new mc(o,[]))}(i,r),e=new xi([new Dy("",{})]),n=new xi({}),a=new xi({}),o=new xi({}),s=new xi(""),l=new Yp(e,n,o,s,a,bn,r,t.root);return l.snapshot=t.root,new lj(new mc(l,[]),t)}var Yp=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this.url=r,this.params=t,this.queryParams=e,this.fragment=n,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=l}return v(i,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(We(function(t){return Xp(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(We(function(t){return Xp(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),i}();function cj(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",t=i.pathFromRoot,e=0;if("always"!==r)for(e=t.length-1;e>=1;){var n=t[e],a=t[e-1];if(n.routeConfig&&""===n.routeConfig.path)e--;else{if(a.component)break;e--}}return tTe(t.slice(e))}function tTe(i){return i.reduce(function(r,t){return{params:Object.assign(Object.assign({},r.params),t.params),data:Object.assign(Object.assign({},r.data),t.data),resolve:Object.assign(Object.assign({},r.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var Jw=function(){function i(r,t,e,n,a,o,s,l,u,c,d){p(this,i),this.url=r,this.params=t,this.queryParams=e,this.fragment=n,this.data=a,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,this._resolve=d}return v(i,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Xp(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Xp(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(n){return n.toString()}).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}}]),i}(),dj=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).url=e,$O(Xe(a),n),a}return v(t,[{key:"toString",value:function(){return hj(this._root)}}]),t}(sj);function $O(i,r){r.value._routerState=i,r.children.forEach(function(t){return $O(i,t)})}function hj(i){var r=i.children.length>0?" { ".concat(i.children.map(hj).join(", ")," } "):"";return"".concat(i.value).concat(r)}function qO(i){if(i.snapshot){var r=i.snapshot,t=i._futureSnapshot;i.snapshot=t,au(r.queryParams,t.queryParams)||i.queryParams.next(t.queryParams),r.fragment!==t.fragment&&i.fragment.next(t.fragment),au(r.params,t.params)||i.params.next(t.params),function P1e(i,r){if(i.length!==r.length)return!1;for(var t=0;tn;){if(a-=n,!(e=e.parent))throw new Error("Invalid number of '../'");n=e.segments.length}return new YO(e,!1,n-a)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+a,i.numberOfDoubleDots)}(a,r,i),s=o.processChildren?tD(o.segmentGroup,o.index,a.commands):pj(o.segmentGroup,o.index,a.commands);return ZO(r.root,o.segmentGroup,s,e,n)}function eD(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function Ay(i){return"object"==typeof i&&null!=i&&i.outlets}function ZO(i,r,t,e,n){var a={};if(e&&ga(e,function(s,l){a[l]=Array.isArray(s)?s.map(function(u){return"".concat(u)}):"".concat(s)}),i===r)return new uf(t,a,n);var o=fj(i,r,t);return new uf(o,a,n)}function fj(i,r,t){var e={};return ga(i.children,function(n,a){e[a]=n===r?t:fj(n,r,t)}),new Rn(i.segments,e)}var vj=function(){function i(r,t,e){if(p(this,i),this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=e,r&&e.length>0&&eD(e[0]))throw new Error("Root segment cannot have matrix parameters");var n=e.find(Ay);if(n&&n!==Z6(e))throw new Error("{outlets:{}} has to be the last command")}return v(i,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),i}(),YO=v(function i(r,t,e){p(this,i),this.segmentGroup=r,this.processChildren=t,this.index=e});function pj(i,r,t){if(i||(i=new Rn([],{})),0===i.segments.length&&i.hasChildren())return tD(i,r,t);var e=function cTe(i,r,t){for(var e=0,n=r,a={match:!1,pathIndex:0,commandIndex:0};n=t.length)return a;var o=i.segments[n],s=t[e];if(Ay(s))break;var l="".concat(s),u=e0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!mj(l,u,o))return a;e+=2}else{if(!mj(l,{},o))return a;e++}n++}return{match:!0,pathIndex:n,commandIndex:e}}(i,r,t),n=t.slice(e.commandIndex);if(e.match&&e.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",t=0;t0)?Object.assign({},Cj):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};var a=(r.matcher||L1e)(t,i,r);if(!a)return Object.assign({},Cj);var o={};ga(a.posParams,function(l,u){o[u]=l.path});var s=a.consumed.length>0?Object.assign(Object.assign({},o),a.consumed[a.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:a.consumed,remainingSegments:t.slice(a.consumed.length),parameters:s,positionalParamSegments:null!==(e=a.posParams)&&void 0!==e?e:{}}}function iD(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(t.length>0&&ETe(i,t,e)){var a=new Rn(r,DTe(i,r,e,new Rn(t,i.children)));return a._sourceSegment=i,a._segmentIndexShift=r.length,{segmentGroup:a,slicedSegments:[]}}if(0===t.length&&TTe(i,t,e)){var o=new Rn(i.segments,wTe(i,r,t,e,i.children,n));return o._sourceSegment=i,o._segmentIndexShift=r.length,{segmentGroup:o,slicedSegments:t}}var s=new Rn(i.segments,i.children);return s._sourceSegment=i,s._segmentIndexShift=r.length,{segmentGroup:s,slicedSegments:t}}function wTe(i,r,t,e,n,a){var l,o={},s=In(e);try{for(s.s();!(l=s.n()).done;){var u=l.value;if(rD(i,t,u)&&!n[Os(u)]){var c=new Rn([],{});c._sourceSegment=i,c._segmentIndexShift="legacy"===a?i.segments.length:r.length,o[Os(u)]=c}}}catch(d){s.e(d)}finally{s.f()}return Object.assign(Object.assign({},n),o)}function DTe(i,r,t,e){var n={};n[bn]=e,e._sourceSegment=i,e._segmentIndexShift=r.length;var o,a=In(t);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Os(s)!==bn){var l=new Rn([],{});l._sourceSegment=i,l._segmentIndexShift=r.length,n[Os(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return n}function ETe(i,r,t){return t.some(function(e){return rD(i,r,e)&&Os(e)!==bn})}function TTe(i,r,t){return t.some(function(e){return rD(i,r,e)})}function rD(i,r,t){return(!(i.hasChildren()||r.length>0)||"full"!==t.pathMatch)&&""===t.path}function bj(i,r,t,e){return!!(Os(i)===e||e!==bn&&rD(r,t,i))&&("**"===i.path||nD(r,i,t).matched)}function Sj(i,r,t){return 0===r.length&&!i.children[t]}var aD=v(function i(r){p(this,i),this.segmentGroup=r||null}),wj=v(function i(r){p(this,i),this.urlTree=r});function Oy(i){return ky(new aD(i))}function Dj(i){return ky(new wj(i))}function ATe(i){return ky(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(i,"'")))}var RTe=function(){function i(r,t,e,n,a){p(this,i),this.configLoader=t,this.urlSerializer=e,this.urlTree=n,this.config=a,this.allowRedirects=!0,this.ngModule=r.get(hc)}return v(i,[{key:"apply",value:function(){var t=this,e=iD(this.urlTree.root,[],[],this.config).segmentGroup,n=new Rn(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,bn).pipe(We(function(s){return t.createUrlTree(nI(s),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(cl(function(s){if(s instanceof wj)return t.allowRedirects=!1,t.match(s.urlTree);throw s instanceof aD?t.noMatchError(s):s}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,bn).pipe(We(function(o){return e.createUrlTree(nI(o),t.queryParams,t.fragment)})).pipe(cl(function(o){throw o instanceof aD?e.noMatchError(o):o}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var a=t.segments.length>0?new Rn([],De({},bn,t)):t;return new uf(a,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,a){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(We(function(o){return new Rn([],o)})):this.expandSegment(t,n,e,n.segments,a,!0)}},{key:"expandChildren",value:function(t,e,n){for(var a=this,o=[],s=0,l=Object.keys(n.children);s=2;return function(e){return e.pipe(i?Ue(function(n,a){return i(n,a,e)}):zl,UO(1),t?U6(r):V6(function(){return new $w}))}}())}},{key:"expandSegment",value:function(t,e,n,a,o,s){var l=this;return wi(n).pipe(nu(function(u){return l.expandSegmentAgainstRoute(t,e,n,u,a,o,s).pipe(cl(function(d){if(d instanceof aD)return lt(null);throw d}))}),qp(function(u){return!!u}),cl(function(u,c){if(u instanceof $w||"EmptyError"===u.name)return Sj(e,a,o)?lt(new Rn([],{})):Oy(e);throw u}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,a,o,s,l){return bj(a,e,o,s)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(t,e,a,o,s):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,a,o,s):Oy(e):Oy(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,a,o,s){return"**"===a.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,a,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,a,o,s)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,a){var o=this,s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Dj(s):this.lineralizeSegments(n,s).pipe(Bi(function(l){var u=new Rn(l,{});return o.expandSegment(t,u,e,l,a,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,a,o,s){var l=this,u=nD(e,a,o),d=u.consumedSegments,h=u.remainingSegments,f=u.positionalParamSegments;if(!u.matched)return Oy(e);var g=this.applyRedirectCommands(d,a.redirectTo,f);return a.redirectTo.startsWith("/")?Dj(g):this.lineralizeSegments(a,g).pipe(Bi(function(_){return l.expandSegment(t,e,n,_.concat(h),s,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,a,o){var s=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?lt(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(We(function(g){return n._loadedConfig=g,new Rn(a,{})})):lt(new Rn(a,{}));var u=nD(e,n,a),d=u.consumedSegments,h=u.remainingSegments;return u.matched?this.getChildConfig(t,n,a).pipe(Bi(function(g){var _=g.module,C=g.routes,w=iD(e,d,h,C),E=w.segmentGroup,M=w.slicedSegments,R=new Rn(E.segments,E.children);if(0===M.length&&R.hasChildren())return s.expandChildren(_,C,R).pipe(We(function(ee){return new Rn(d,ee)}));if(0===C.length&&0===M.length)return lt(new Rn(d,{}));var V=Os(n)===o;return s.expandSegment(_,R,C,M,V?bn:o,!0).pipe(We(function(ee){return new Rn(d.concat(ee.segments),ee.children)}))})):Oy(e)}},{key:"getChildConfig",value:function(t,e,n){var a=this;return e.children?lt(new JO(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?lt(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Bi(function(o){return o?a.configLoader.load(t.injector,e).pipe(We(function(s){return e._loadedConfig=s,s})):function xTe(i){return ky(HO("Cannot load children because the guard of the route \"path: '".concat(i.path,"'\" returned false")))}(e)})):lt(new JO([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var a=this,o=e.canLoad;if(!o||0===o.length)return lt(!0);var s=o.map(function(l){var c,u=t.get(l);if(function gTe(i){return i&&Ed(i.canLoad)}(u))c=u.canLoad(e,n);else{if(!Ed(u))throw new Error("Invalid CanLoad guard");c=u(e,n)}return ou(c)});return lt(s).pipe(My(),At(function(l){if(df(l)){var u=HO('Redirecting to "'.concat(a.urlSerializer.serialize(l),'"'));throw u.url=l,u}}),We(function(l){return!0===l}))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],a=e.root;;){if(n=n.concat(a.segments),0===a.numberOfChildren)return lt(n);if(a.numberOfChildren>1||!a.children[bn])return ATe(t.redirectTo);a=a.children[bn]}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,a){var o=this.createSegmentGroup(t,e.root,n,a);return new uf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return ga(t,function(a,o){if("string"==typeof a&&a.startsWith(":")){var l=a.substring(1);n[o]=e[l]}else n[o]=a}),n}},{key:"createSegmentGroup",value:function(t,e,n,a){var o=this,s=this.createSegments(t,e.segments,n,a),l={};return ga(e.children,function(u,c){l[c]=o.createSegmentGroup(t,u,n,a)}),new Rn(s,l)}},{key:"createSegments",value:function(t,e,n,a){var o=this;return e.map(function(s){return s.path.startsWith(":")?o.findPosParam(t,s,a):o.findOrReturn(s,n)})}},{key:"findPosParam",value:function(t,e,n){var a=n[e.path.substring(1)];if(!a)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return a}},{key:"findOrReturn",value:function(t,e){var o,n=0,a=In(e);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s.path===t.path)return e.splice(n),s;n++}}catch(l){a.e(l)}finally{a.f()}return t}}]),i}();function nI(i){for(var r={},t=0,e=Object.keys(i.children);t0||o.hasChildren())&&(r[n]=o)}return function OTe(i){if(1===i.numberOfChildren&&i.children[bn]){var r=i.children[bn];return new Rn(i.segments.concat(r.segments),r.children)}return i}(new Rn(i.segments,r))}var Ej=v(function i(r){p(this,i),this.path=r,this.route=this.path[this.path.length-1]}),oD=v(function i(r,t){p(this,i),this.component=r,this.route=t});function NTe(i,r,t){var e=i._root;return Iy(e,r?r._root:null,t,[e.value])}function sD(i,r,t){var e=function LTe(i){if(!i)return null;for(var r=i.parent;r;r=r.parent){var t=r.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(r);return(e?e.module.injector:t).get(i)}function Iy(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Zp(r);return i.children.forEach(function(o){PTe(o,a[o.value.outlet],t,e.concat([o.value]),n),delete a[o.value.outlet]}),ga(a,function(o,s){return Ny(o,t.getContext(s),n)}),n}function PTe(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=i.value,o=r?r.value:null,s=t?t.getContext(i.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var l=BTe(o,a,a.routeConfig.runGuardsAndResolvers);l?n.canActivateChecks.push(new Ej(e)):(a.data=o.data,a._resolvedData=o._resolvedData),Iy(i,r,a.component?s?s.children:null:t,e,n),l&&s&&s.outlet&&s.outlet.isActivated&&n.canDeactivateChecks.push(new oD(s.outlet.component,o))}else o&&Ny(r,s,n),n.canActivateChecks.push(new Ej(e)),Iy(i,null,a.component?s?s.children:null:t,e,n);return n}function BTe(i,r,t){if("function"==typeof t)return t(i,r);switch(t){case"pathParamsChange":return!cf(i.url,r.url);case"pathParamsOrQueryParamsChange":return!cf(i.url,r.url)||!au(i.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!XO(i,r)||!au(i.queryParams,r.queryParams);default:return!XO(i,r)}}function Ny(i,r,t){var e=Zp(i),n=i.value;ga(e,function(a,o){Ny(a,n.component?r?r.children.getContext(o):null:r,t)}),t.canDeactivateChecks.push(new oD(n.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,n))}var $Te=v(function i(){p(this,i)});function Tj(i){return new An(function(r){return r.error(i)})}var XTe=function(){function i(r,t,e,n,a,o){p(this,i),this.rootComponentType=r,this.config=t,this.urlTree=e,this.url=n,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return v(i,[{key:"recognize",value:function(){var t=iD(this.urlTree.root,[],[],this.config.filter(function(s){return void 0===s.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,bn);if(null===e)return null;var n=new Jw([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},bn,this.rootComponentType,null,this.urlTree.root,-1,{}),a=new mc(n,e),o=new dj(this.url,a);return this.inheritParamsAndData(o._root),o}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,a=cj(n,this.paramsInheritanceStrategy);n.params=Object.freeze(a.params),n.data=Object.freeze(a.data),t.children.forEach(function(o){return e.inheritParamsAndData(o)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],a=0,o=Object.keys(e.children);a0?Z6(n).parameters:{};o=new Jw(n,u,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Rj(t),Os(t),t.component,t,xj(e),Mj(e)+n.length,Oj(t))}else{var c=nD(e,t,n);if(!c.matched)return null;l=c.remainingSegments,o=new Jw(s=c.consumedSegments,c.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Rj(t),Os(t),t.component,t,xj(e),Mj(e)+s.length,Oj(t))}var d=function YTe(i){return i.children?i.children:i.loadChildren?i._loadedConfig.routes:[]}(t),h=iD(e,s,l,d.filter(function(E){return void 0===E.redirectTo}),this.relativeLinkResolution),f=h.segmentGroup,g=h.slicedSegments;if(0===g.length&&f.hasChildren()){var _=this.processChildren(d,f);return null===_?null:[new mc(o,_)]}if(0===d.length&&0===g.length)return[new mc(o,[])];var C=Os(t)===a,w=this.processSegment(d,f,g,C?bn:a);return null===w?null:[new mc(o,w)]}}]),i}();function Aj(i){var n,r=[],t=new Set,e=In(i);try{var a=function(){var h=n.value;if(!function QTe(i){var r=i.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}(h))return r.push(h),"continue";var g,f=r.find(function(_){return h.value.routeConfig===_.value.routeConfig});void 0!==f?((g=f.children).push.apply(g,Ae(h.children)),t.add(f)):r.push(h)};for(e.s();!(n=e.n()).done;)a()}catch(d){e.e(d)}finally{e.f()}var l,s=In(t);try{for(s.s();!(l=s.n()).done;){var u=l.value,c=Aj(u.children);r.push(new mc(u.value,c))}}catch(d){s.e(d)}finally{s.f()}return r.filter(function(d){return!t.has(d)})}function xj(i){for(var r=i;r._sourceSegment;)r=r._sourceSegment;return r}function Mj(i){for(var r=i,t=r._segmentIndexShift?r._segmentIndexShift:0;r._sourceSegment;)t+=(r=r._sourceSegment)._segmentIndexShift?r._segmentIndexShift:0;return t-1}function Rj(i){return i.data||{}}function Oj(i){return i.resolve||{}}function Ij(i){return[].concat(Ae(Object.keys(i)),Ae(Object.getOwnPropertySymbols(i)))}function iI(i){return Nn(function(r){var t=i(r);return t?wi(t).pipe(We(function(){return r})):lt(r)})}var rAe=v(function i(){p(this,i)}),aAe=function(){function i(){p(this,i)}return v(i,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),i}(),oAe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(aAe),rI=new wt("ROUTES"),Nj=function(){function i(r,t,e,n){p(this,i),this.injector=r,this.compiler=t,this.onLoadStartListener=e,this.onLoadEndListener=n}return v(i,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var o=this.loadModuleFactory(e.loadChildren).pipe(We(function(s){n.onLoadEndListener&&n.onLoadEndListener(e);var l=s.create(t);return new JO(X6(l.injector.get(rI,void 0,tn.Self|tn.Optional)).map(tI),l)}),cl(function(s){throw e._loader$=void 0,s}));return e._loader$=new _6(o,function(){return new Ot}).pipe(m6()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return ou(t()).pipe(Bi(function(n){return n instanceof w5?lt(n):wi(e.compiler.compileModuleAsync(n))}))}}]),i}(),sAe=v(function i(){p(this,i)}),lAe=function(){function i(){p(this,i)}return v(i,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),i}();function uAe(i){throw i}function cAe(i,r,t){return r.parse("/")}function Fj(i,r){return lt(null)}var dAe={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hAe={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Na=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=a,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ot,this.errorHandler=uAe,this.malformedUriErrorHandler=cAe,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Fj,afterPreactivation:Fj},this.urlHandlingStrategy=new lAe,this.routeReuseStrategy=new oAe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(hc),this.console=o.get($be);var h=o.get(be);this.isNgZoneEnabled=h instanceof be&&be.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function B1e(){return new uf(new Rn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Nj(o,s,function(g){return u.triggerEvent(new K6(g))},function(g){return u.triggerEvent(new j6(g))}),this.routerState=uj(this.currentUrlTree,this.rootComponentType),this.transitions=new xi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return v(r,[{key:"browserPageId",get:function(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}},{key:"setupNavigations",value:function(e){var n=this,a=this.events;return e.pipe(Ue(function(o){return 0!==o.id}),We(function(o){return Object.assign(Object.assign({},o),{extractedUrl:n.urlHandlingStrategy.extract(o.rawUrl)})}),Nn(function(o){var s=!1,l=!1;return lt(o).pipe(At(function(u){n.currentNavigation={id:u.id,initialUrl:u.currentRawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:n.lastSuccessfulNavigation?Object.assign(Object.assign({},n.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Nn(function(u){var c=n.browserUrlTree.toString(),d=!n.navigated||u.extractedUrl.toString()!==c||c!==n.currentUrlTree.toString();if(("reload"===n.onSameUrlNavigation||d)&&n.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return Lj(u.source)&&(n.browserUrlTree=u.extractedUrl),lt(u).pipe(Nn(function(N){var V=n.transitions.getValue();return a.next(new zO(N.id,n.serializeUrl(N.extractedUrl),N.source,N.restoredState)),V!==n.transitions.getValue()?po:Promise.resolve(N)}),function ITe(i,r,t,e){return Nn(function(n){return function MTe(i,r,t,e,n){return new RTe(i,r,t,e,n).apply()}(i,r,t,n.extractedUrl,e).pipe(We(function(a){return Object.assign(Object.assign({},n),{urlAfterRedirects:a})}))})}(n.ngModule.injector,n.configLoader,n.urlSerializer,n.config),At(function(N){n.currentNavigation=Object.assign(Object.assign({},n.currentNavigation),{finalUrl:N.urlAfterRedirects})}),function JTe(i,r,t,e,n){return Bi(function(a){return function qTe(i,r,t,e){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new XTe(i,r,t,e,n,a).recognize();return null===o?Tj(new $Te):lt(o)}catch(s){return Tj(s)}}(i,r,a.urlAfterRedirects,t(a.urlAfterRedirects),e,n).pipe(We(function(o){return Object.assign(Object.assign({},a),{targetSnapshot:o})}))})}(n.rootComponentType,n.config,function(N){return n.serializeUrl(N)},n.paramsInheritanceStrategy,n.relativeLinkResolution),At(function(N){if("eager"===n.urlUpdateStrategy){if(!N.extras.skipLocationChange){var V=n.urlHandlingStrategy.merge(N.urlAfterRedirects,N.rawUrl);n.setBrowserUrl(V,N)}n.browserUrlTree=N.urlAfterRedirects}var U=new D1e(N.id,n.serializeUrl(N.extractedUrl),n.serializeUrl(N.urlAfterRedirects),N.targetSnapshot);a.next(U)}));if(d&&n.rawUrlTree&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){var _=u.extractedUrl,C=u.source,w=u.restoredState,E=u.extras,M=new zO(u.id,n.serializeUrl(_),C,w);a.next(M);var R=uj(_,n.rootComponentType).snapshot;return lt(Object.assign(Object.assign({},u),{targetSnapshot:R,urlAfterRedirects:_,extras:Object.assign(Object.assign({},E),{skipLocationChange:!1,replaceUrl:!1})}))}return n.rawUrlTree=u.rawUrl,u.resolve(null),po}),iI(function(u){var g=u.extras;return n.hooks.beforePreactivation(u.targetSnapshot,{navigationId:u.id,appliedUrlTree:u.extractedUrl,rawUrlTree:u.rawUrl,skipLocationChange:!!g.skipLocationChange,replaceUrl:!!g.replaceUrl})}),At(function(u){var c=new E1e(u.id,n.serializeUrl(u.extractedUrl),n.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);n.triggerEvent(c)}),We(function(u){return Object.assign(Object.assign({},u),{guards:NTe(u.targetSnapshot,u.currentSnapshot,n.rootContexts)})}),function GTe(i,r){return Bi(function(t){var e=t.targetSnapshot,n=t.currentSnapshot,a=t.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?lt(Object.assign(Object.assign({},t),{guardsResult:!0})):function VTe(i,r,t,e){return wi(i).pipe(Bi(function(n){return function WTe(i,r,t,e,n){var a=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!a||0===a.length)return lt(!0);var o=a.map(function(s){var u,l=sD(s,r,n);if(function yTe(i){return i&&Ed(i.canDeactivate)}(l))u=ou(l.canDeactivate(i,r,t,e));else{if(!Ed(l))throw new Error("Invalid CanDeactivate guard");u=ou(l(i,r,t,e))}return u.pipe(qp())});return lt(o).pipe(My())}(n.component,n.route,t,r,e)}),qp(function(n){return!0!==n},!0))}(s,e,n,i).pipe(Bi(function(l){return l&&function pTe(i){return"boolean"==typeof i}(l)?function UTe(i,r,t,e){return wi(r).pipe(nu(function(n){return sf(function HTe(i,r){return null!==i&&r&&r(new M1e(i)),lt(!0)}(n.route.parent,e),function zTe(i,r){return null!==i&&r&&r(new O1e(i)),lt(!0)}(n.route,e),function jTe(i,r,t){var e=r[r.length-1],n=r.slice(0,r.length-1).reverse().map(function(o){return function FTe(i){var r=i.routeConfig?i.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:i,guards:r}:null}(o)}).filter(function(o){return null!==o}),a=n.map(function(o){return jp(function(){var s=o.guards.map(function(l){var c,u=sD(l,o.node,t);if(function _Te(i){return i&&Ed(i.canActivateChild)}(u))c=ou(u.canActivateChild(e,i));else{if(!Ed(u))throw new Error("Invalid CanActivateChild guard");c=ou(u(e,i))}return c.pipe(qp())});return lt(s).pipe(My())})});return lt(a).pipe(My())}(i,n.path,t),function KTe(i,r,t){var e=r.routeConfig?r.routeConfig.canActivate:null;if(!e||0===e.length)return lt(!0);var n=e.map(function(a){return jp(function(){var s,o=sD(a,r,t);if(function mTe(i){return i&&Ed(i.canActivate)}(o))s=ou(o.canActivate(r,i));else{if(!Ed(o))throw new Error("Invalid CanActivate guard");s=ou(o(r,i))}return s.pipe(qp())})});return lt(n).pipe(My())}(i,n.route,t))}),qp(function(n){return!0!==n},!0))}(e,o,i,r):lt(l)}),We(function(l){return Object.assign(Object.assign({},t),{guardsResult:l})}))})}(n.ngModule.injector,function(u){return n.triggerEvent(u)}),At(function(u){if(df(u.guardsResult)){var c=HO('Redirecting to "'.concat(n.serializeUrl(u.guardsResult),'"'));throw c.url=u.guardsResult,c}var d=new T1e(u.id,n.serializeUrl(u.extractedUrl),n.serializeUrl(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);n.triggerEvent(d)}),Ue(function(u){return!!u.guardsResult||(n.restoreHistory(u),n.cancelNavigationTransition(u,""),!1)}),iI(function(u){if(u.guards.canActivateChecks.length)return lt(u).pipe(At(function(c){var d=new A1e(c.id,n.serializeUrl(c.extractedUrl),n.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);n.triggerEvent(d)}),Nn(function(c){var d=!1;return lt(c).pipe(function eAe(i,r){return Bi(function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return lt(t);var a=0;return wi(n).pipe(nu(function(o){return function tAe(i,r,t,e){return function nAe(i,r,t,e){var n=Ij(i);if(0===n.length)return lt({});var a={};return wi(n).pipe(Bi(function(o){return function iAe(i,r,t,e){var n=sD(i,r,e);return ou(n.resolve?n.resolve(r,t):n(r,t))}(i[o],r,t,e).pipe(At(function(s){a[o]=s}))}),UO(1),Bi(function(){return Ij(a).length===n.length?lt(a):po}))}(i._resolve,i,r,e).pipe(We(function(a){return i._resolvedData=a,i.data=Object.assign(Object.assign({},i.data),cj(i,t).resolve),null}))}(o.route,e,i,r)}),At(function(){return a++}),UO(1),Bi(function(o){return a===n.length?lt(t):po}))})}(n.paramsInheritanceStrategy,n.ngModule.injector),At({next:function(){return d=!0},complete:function(){d||(n.restoreHistory(c),n.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),At(function(c){var d=new x1e(c.id,n.serializeUrl(c.extractedUrl),n.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);n.triggerEvent(d)}))}),iI(function(u){var g=u.extras;return n.hooks.afterPreactivation(u.targetSnapshot,{navigationId:u.id,appliedUrlTree:u.extractedUrl,rawUrlTree:u.rawUrl,skipLocationChange:!!g.skipLocationChange,replaceUrl:!!g.replaceUrl})}),We(function(u){var c=function nTe(i,r,t){var e=Ty(i,r._root,t?t._root:void 0);return new lj(e,r)}(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return Object.assign(Object.assign({},u),{targetRouterState:c})}),At(function(u){n.currentUrlTree=u.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl),n.routerState=u.targetRouterState,"deferred"===n.urlUpdateStrategy&&(u.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,u),n.browserUrlTree=u.urlAfterRedirects)}),function(r,t,e){return We(function(n){return new fTe(t,n.targetRouterState,n.currentRouterState,e).activate(r),n})}(n.rootContexts,n.routeReuseStrategy,function(u){return n.triggerEvent(u)}),At({next:function(){s=!0},complete:function(){s=!0}}),z6(function(){var u;if(!s&&!l){var c="Navigation ID ".concat(o.id," is not equal to the current navigation id ").concat(n.navigationId);n.cancelNavigationTransition(o,c)}(null===(u=n.currentNavigation)||void 0===u?void 0:u.id)===o.id&&(n.currentNavigation=null)}),cl(function(u){if(l=!0,function F1e(i){return i&&i[$6]}(u)){var c=df(u.url);c||(n.navigated=!0,n.restoreHistory(o,!0));var d=new H6(o.id,n.serializeUrl(o.extractedUrl),u.message);a.next(d),c?setTimeout(function(){var f=n.urlHandlingStrategy.merge(u.url,n.rawUrlTree),g={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||Lj(o.source)};n.scheduleNavigation(f,"imperative",null,g,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{n.restoreHistory(o,!0);var h=new w1e(o.id,n.serializeUrl(o.extractedUrl),u);a.next(h);try{o.resolve(n.errorHandler(u))}catch(f){o.reject(f)}}return po}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(n){var a="popstate"===n.type?"popstate":"hashchange";"popstate"===a&&setTimeout(function(){var o,s={replaceUrl:!0},l=(null===(o=n.state)||void 0===o?void 0:o.navigationId)?n.state:null;if(l){var u=Object.assign({},l);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(s.state=u)}var c=e.parseUrl(n.url);e.scheduleNavigation(c,a,l,s)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){yj(e),this.config=e.map(tI),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.relativeTo,o=n.queryParams,s=n.fragment,l=n.queryParamsHandling,u=n.preserveFragment,c=a||this.routerState.root,d=u?this.currentUrlTree.fragment:s,h=null;switch(l){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),o);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=o||null}return null!==h&&(h=this.removeEmptyProps(h)),aTe(c,this.currentUrlTree,e,h,null!=d?d:null)}},{key:"navigateByUrl",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},a=df(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(a,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,n)}},{key:"navigate",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return fAe(e),this.navigateByUrl(this.createUrlTree(e,n),n)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var n;try{n=this.urlSerializer.parse(e)}catch(a){n=this.malformedUriErrorHandler(a,this.urlSerializer,e)}return n}},{key:"isActive",value:function(e,n){var a;if(a=!0===n?Object.assign({},dAe):!1===n?Object.assign({},hAe):n,df(e))return Q6(this.currentUrlTree,e,a);var o=this.parseUrl(e);return Q6(this.currentUrlTree,o,a)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(n,a){var o=e[a];return null!=o&&(n[a]=o),n},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(n){e.navigated=!0,e.lastSuccessfulId=n.id,e.currentPageId=n.targetPageId,e.events.next(new wy(n.id,e.serializeUrl(n.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,n.resolve(!0)},function(n){e.console.warn("Unhandled Navigation Error: ".concat(n))})}},{key:"scheduleNavigation",value:function(e,n,a,o,s){var l,u,c,d,h;if(this.disposed)return Promise.resolve(!1);s?(c=s.resolve,d=s.reject,h=s.promise):h=new Promise(function(C,w){c=C,d=w});var g,f=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(a=this.location.getState()),g=a&&a.\u0275routerPageId?a.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?null!==(l=this.browserPageId)&&void 0!==l?l:0:(null!==(u=this.browserPageId)&&void 0!==u?u:0)+1):g=0,this.setTransition({id:f,targetPageId:g,source:n,restoredState:a,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:c,reject:d,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(function(C){return Promise.reject(C)})}},{key:"setBrowserUrl",value:function(e,n){var a=this.urlSerializer.serialize(e),o=Object.assign(Object.assign({},n.extras.state),this.generateNgRouterState(n.id,n.targetPageId));this.location.isCurrentPathEqualTo(a)||n.extras.replaceUrl?this.location.replaceState(a,"",o):this.location.go(a,"",o)}},{key:"restoreHistory",value:function(e){var a,o,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var s=this.currentPageId-e.targetPageId,l="popstate"===e.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(a=this.currentNavigation)||void 0===a?void 0:a.finalUrl);l&&0!==s?this.location.historyGo(s):this.currentUrlTree===(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)&&0===s&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,n){var a=new H6(e.id,this.serializeUrl(e.extractedUrl),n);this.triggerEvent(a),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,n){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":n}:{navigationId:e}}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function fAe(i){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};p(this,r),this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}return v(r,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(n){n instanceof zO?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=n.navigationTrigger,e.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof wy&&(e.lastId=n.id,e.scheduleScrollEvent(n,e.router.parseUrl(n.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(n){n instanceof W6&&(n.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,n){this.router.triggerEvent(new W6(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hf=new wt("ROUTER_CONFIGURATION"),Uj=new wt("ROUTER_FORROOT_GUARD"),gAe=[IR,{provide:nj,useClass:ij},{provide:Na,useFactory:function CAe(i,r,t,e,n,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=new Na(null,i,r,t,e,n,X6(a));return s&&(u.urlHandlingStrategy=s),l&&(u.routeReuseStrategy=l),bAe(o,u),o.enableTracing&&u.events.subscribe(function(c){var d,h;null===(d=console.group)||void 0===d||d.call(console,"Router Event: ".concat(c.constructor.name)),console.log(c.toString()),console.log(c),null===(h=console.groupEnd)||void 0===h||h.call(console)}),u},deps:[nj,Ry,IR,Jn,s4,rI,hf,[sAe,new md],[rAe,new md]]},Ry,{provide:Yp,useFactory:function SAe(i){return i.routerState.root},deps:[Na]},Vj,Gj,pAe,{provide:hf,useValue:{enableTracing:!1}}];function mAe(){return new h4("Router",Na)}var zj=function(){var i=function(){function r(t,e){p(this,r)}return v(r,null,[{key:"forRoot",value:function(e,n){return{ngModule:r,providers:[gAe,Hj(e),{provide:Uj,useFactory:kAe,deps:[[Na,new md,new F_]]},{provide:hf,useValue:n||{}},{provide:Bp,useFactory:yAe,deps:[Jh,[new RS(OR),new md],hf]},{provide:oI,useFactory:_Ae,deps:[Na,qwe,hf]},{provide:Bj,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Gj},{provide:h4,multi:!0,useFactory:mAe},[sI,{provide:lw,multi:!0,useFactory:wAe,deps:[sI]},{provide:Kj,useFactory:DAe,deps:[sI]},{provide:o4,multi:!0,useExisting:Kj}]]}}},{key:"forChild",value:function(e){return{ngModule:r,providers:[Hj(e)]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Uj,8),oe(Na,8))},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}();function _Ae(i,r,t){return t.scrollOffset&&r.setOffset(t.scrollOffset),new oI(i,r,t)}function yAe(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.useHash?new PSe(i,r):new R4(i,r)}function kAe(i){return"guarded"}function Hj(i){return[{provide:Age,multi:!0,useValue:i},{provide:rI,multi:!0,useValue:i}]}function bAe(i,r){i.errorHandler&&(r.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(r.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(r.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(r.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(r.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(r.canceledNavigationResolution=i.canceledNavigationResolution)}var sI=function(){var i=function(){function r(t){p(this,r),this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ot}return v(r,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(NSe,Promise.resolve(null)).then(function(){if(e.destroyed)return Promise.resolve(!0);var a=null,o=new Promise(function(u){return a=u}),s=e.injector.get(Na),l=e.injector.get(hf);return"disabled"===l.initialNavigation?(s.setUpLocationChangeListener(),a(!0)):"enabled"===l.initialNavigation||"enabledBlocking"===l.initialNavigation?(s.hooks.afterPreactivation=function(){return e.initNavigation?lt(null):(e.initNavigation=!0,a(!0),e.resultOfPreactivationDone)},s.initialNavigation()):a(!0),o})}},{key:"bootstrapListener",value:function(e){var n=this.injector.get(hf),a=this.injector.get(Vj),o=this.injector.get(oI),s=this.injector.get(Na),l=this.injector.get(dy);e===l.components[0]&&(("enabledNonBlocking"===n.initialNavigation||void 0===n.initialNavigation)&&s.initialNavigation(),a.setUpPreloading(),o.init(),s.resetRootComponentType(l.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function wAe(i){return i.appInitializer.bind(i)}function DAe(i){return i.bootstrapListener.bind(i)}var Kj=new wt("Router Initializer"),TAe=function(){return["./dashboard"]},AAe=function(){return["./issues"]},xAe=function(){return["./profile"]},MAe=function(){return["./signin"]};function RAe(i,r){if(1&i){var t=xe();A(0,"div",4)(1,"span",5),Q("click",function(){return re(t),D().toggleNav()}),z(2,"span",6),x(),A(3,"h1",7),te(4,"Issues"),x(),A(5,"p",8),te(6,"Sample Dashboard"),x(),z(7,"hr"),A(8,"p",9),te(9,"Project"),x(),A(10,"ul",10)(11,"li",11)(12,"a",12),te(13,"Dashboard"),x()(),A(14,"li",13)(15,"a",12),te(16,"Issues"),x()()(),A(17,"p",9),te(18,"Account"),x(),A(19,"ul",10)(20,"li",14)(21,"a",12),te(22,"My Profile"),x()(),A(23,"li",15)(24,"a",12),te(25,"Sign Out"),x()()(),A(26,"p",9),te(27,"Resources"),x(),A(28,"ul",10)(29,"li",16)(30,"a",17),te(31,"Download on Github"),x()(),A(32,"li",18)(33,"a",19),te(34,"Documentation"),x()()(),z(35,"hr",20),A(36,"div",21)(37,"p"),te(38),z(39,"br"),A(40,"a",22),te(41,"Progress Software Corporation"),x(),te(42," and/or its subsidiaries or affiliates."),x(),A(43,"p"),te(44,"All Rights Reserved."),x()()()}if(2&i){var e=D();y("@toggleNav",e.navState),k(12),y("routerLink",Tt(6,TAe)),k(3),y("routerLink",Tt(7,AAe)),k(6),y("routerLink",Tt(8,xAe)),k(3),y("routerLink",Tt(9,MAe)),k(14),Pt("Copyright \xa9 ",e.year,",")}}var OAe=function(){var i=function(){function r(t){p(this,r),this.router=t,this.year=(new Date).getFullYear(),this.navState=window.innerWidth<768?"collapsed":"expanded"}return v(r,[{key:"id",get:function(){return"app"}},{key:"appClass",get:function(){return"app container-fluid"}},{key:"onResize",value:function(e){this.navState=e.target.innerWidth<768?"collapsed":"expanded"}},{key:"showNav",value:function(){return"/signin"!==this.router.url}},{key:"toggleNav",value:function(){this.navState="expanded"===this.navState?"collapsed":"expanded"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-main-menu"]],hostVars:3,hostBindings:function(t,e){1&t&&Q("resize",function(a){return e.onResize(a)},!1,b3),2&t&&(ie("id",e.id),Ar(e.appClass))},decls:5,vars:1,consts:[[1,"row"],["id","top-bar",1,"top-bar","col-xs-12","bg-dark","d-md-none"],["id","nav","class","col-xs-3 bg-dark text-white py-5 k-vbox",4,"ngIf"],[1,"col-xs","p-4","py-md-5"],["id","nav",1,"col-xs-3","bg-dark","text-white","py-5","k-vbox"],["id","nav-toggle",1,"nav-toggle","d-md-none",3,"click"],[1,"k-icon","k-i-hamburger"],["id","app-title"],["id","app-subtitle"],[1,"h4","mt-5"],[1,"nav","nav-pills","flex-column"],["id","dashbaord",1,"nav-item"],["routerLinkActive","active",1,"nav-link",3,"routerLink"],["id","issues",1,"nav-item"],["id","profile",1,"nav-item"],["id","signout",1,"nav-item"],["id","source",1,"nav-item"],["href","https://github.com/telerik/kendo-angular/tree/master/examples/projects/integration-pwa","target","_blank","role","button",1,"nav-link"],["id","documentation",1,"nav-item"],["href","https://www.telerik.com/kendo-angular-ui/components","target","_blank","role","button",1,"nav-link"],[1,"k-flex"],["id","copy"],["href","http://www.progress.com"]],template:function(t,e){1&t&&(A(0,"div",0),z(1,"div",1),T(2,RAe,45,10,"div",2),A(3,"main",3),z(4,"router-outlet"),x()()),2&t&&(k(2),y("ngIf",e.showNav()))},directives:[qe,lD,Pj,eI],styles:["html,body{height:100%;font-family:Arial,Helvetica,sans-serif}span.active{background-color:gray}.col-xs{flex-basis:0;flex-grow:1;max-width:100%}.col-xs-12{flex:0 0 100%}.nav-toggle .k-i-hamburger{font-size:32px}\n"],encapsulation:2,data:{animation:[ef("toggleNav",[Cd("collapsed, void",Ft({transform:"translateX(-100%)"})),Cd("expanded",Ft({transform:"translateX(0)"})),iu("collapsed <=> expanded",[Ai(200),Ai(200)])])]}}),i}(),IAe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-maestro-app"]],decls:1,vars:0,template:function(t,e){1&t&&z(0,"app-main-menu")},directives:[OAe],encapsulation:2}),i}(),uD="https://api.github.com/repos/telerik/kendo-ui-core/issues",FAe=["6170ac11463601b547","224777b801f2e889077ca9"].join(""),Fy=new Vp({Authorization:"token ".concat(FAe)}),Jp=function(){var i=function(){function r(t){p(this,r),this.http=t}return v(r,[{key:"getGithubIssues",value:function(e){return OO(this.getIssuesUrls(e))}},{key:"getTotalIssuesCount",value:function(){return this.http.get("".concat(uD,"?since='").concat("2018-01-01T00:00:00","'"),{headers:Fy})}},{key:"getIssuesUrls",value:function(e){for(var n=e.pages,a=[],o=1;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{open:[],closed:[]},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{Enhancement:[],Others:[],"SEV: Low":[],"SEV: Medium":[],"SEV: High":[],Feature:[]},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{lowest:{close_rate:0,created_at:(new Date).toISOString()},highest:{close_rate:0,created_at:(new Date).toISOString()},average:0};p(this,i),this.active=r,this.open=t,this.closed=e,this.groupedIssues=n,this.issueTypes=a,this.typesDistribution=o,this.closeRate=s}),lI={"SEV: LOW":"#ff9800","SEV: MEDIUM":"#ff5d2a","SEV: HIGH":"#d50000",ENHANCEMENT:"#00c853",FEATURE:"#2e7d32",OTHER:"#1ca8dd","PASSED QA":"#57b45b",BUG:"#cf3257","NEEDS QA":"#bc007c",DOCUMENTATION:"#455a64",DEMO:"#673ab7",DELETED:"#f44336","IN PROGRESS":"#ffd600"},cD=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"process",value:function(e,n){var a=this.filterByMonth(r.mapIssues(e),n),o=this.groupIssues(a);return new jj(a,o.open.length,o.closed.length,o,this.groupLabels(a),this.distribution(a),this.closeRate(o))}},{key:"flatten",value:function(e){return e.reduce(function(n,a){return n.concat(a)})}},{key:"aggregate",value:function(e,n){return e.reduce(function(a,o){return a[o[n]]=(a[o[n]]||0)+1,a},{})}},{key:"closeRate",value:function(e){var n=this.aggregate(e.closed.map(function(s){return{created_at:new Date(s.created_at).setHours(0,0,0,0)}}),"created_at"),a=this.aggregate(e.open.map(function(s){return{created_at:new Date(s.created_at).setHours(0,0,0,0)}}),"created_at"),o=Object.keys(n).map(function(s){var l=n[s]||0;return{created_at:s,close_rate:l/(l+(a[s]||0))}});return{lowest:o.reduce(function(s,l){return s.close_ratel.close_rate?s:l}),average:e.closed.length/(e.open.length+e.closed.length)}}},{key:"groupIssues",value:function(e){return e.reduce(function(n,a){return n[a.state].push(a),n},{open:[],closed:[]})}},{key:"groupLabels",value:function(e){var n=this.aggregate(this.flatten(e.map(function(d){return d.labels})),"name"),a=n["SEV: Low"]/e.length,o=n["SEV: Medium"]/e.length,s=n["SEV: High"]/e.length,l=n.Enhancement/e.length,u=n.Feature/e.length,c=1-a-o-s-l-u;return[{type:"SEV: LOW",value:parseFloat(a.toFixed(2))},{type:"SEV: MEDIUM",value:parseFloat(o.toFixed(2))},{type:"SEV: HIGH",value:parseFloat(s.toFixed(2))},{type:"ENHANCEMENT",value:parseFloat(l.toFixed(2))},{type:"FEATURE",value:parseFloat(u.toFixed(2))},{type:"OTHER",value:parseFloat(c.toFixed(2))}]}},{key:"distribution",value:function(e){var n=this;return e.map(function(a){return{created_at:new Date(a.created_at).setHours(0,0,0,0),label:n.cleanupLabels(a.labels)}}).reduce(function(a,o){return a[o.label].push({date:new Date(o.created_at),value:1}),a},{Others:[],Enhancement:[],"SEV: Low":[],"SEV: Medium":[],"SEV: High":[],Feature:[]})}},{key:"cleanupLabels",value:function(e){var n=e.filter(function(a){return"SEV: Low"===a.name||"SEV: High"===a.name||"Feature"===a.name||"Enhancement"===a.name||"SEV: Medium"===a.name}).map(function(a){return a.name});return 0===n.length?"Others":n[0]}},{key:"filterByMonth",value:function(e,n){var a=this;return e.filter(function(o){return new Date(o.created_at).getTime()>a.getMonthsRange(n).getTime()})}},{key:"filterByUsername",value:function(e,n){return this.process(e,12).active.filter(function(a){return a.assignee===n})}},{key:"getMonthsRange",value:function(e){var n=new Date;return n.setMonth(n.getMonth()-e),n}}],[{key:"mapIssues",value:function(e){return e.reduce(function(n,a){return[].concat(Ae(n),Ae(a))},[]).filter(function(n){return!n.pull_request}).map(r.mapIssue)}},{key:"mapIssue",value:function(e){return{id:e.number,title:e.title,body:e.body,author:r.mapUser(e.user),assignees:e.assignees?e.assignees.map(r.mapUser):[],state:e.state,date:new Date(e.created_at),dateClosed:e.closed_at?new Date(e.closed_at):void 0,count:1,labels:e.labels.map(r.mapLabels),milestone:e.milestone,created_at:e.created_at,assignee:e.assignee?e.assignee.login:"none"}}},{key:"mapLabels",value:function(e){var n=e.name.toUpperCase();return e.color=n in lI?lI[n]:lI.OTHER,e}},{key:"mapUser",value:function(e){return{id:e.id,name:e.login,avatarUrl:e.avatar_url,avatarUrlThumb:e.avatar_url+"&size=60"}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),eg=(od(386),function(r,t){return function(e){return t(r(e))}}),dl=function(r,t,e){return r.addEventListener&&r.addEventListener(t,e)},$a=function(r,t,e){return r&&r.removeEventListener&&r.removeEventListener(t,e)},tg=function(){},uI=function(r){return r.preventDefault()},LAe=/touch/;function ng(i){return i.type.match(LAe)?{pageX:i.changedTouches[0].pageX,pageY:i.changedTouches[0].pageY,clientX:i.changedTouches[0].clientX,clientY:i.changedTouches[0].clientY,type:i.type,originalEvent:i,isTouch:!0}:{pageX:i.pageX,pageY:i.pageY,clientX:i.clientX,clientY:i.clientY,offsetX:i.offsetX,offsetY:i.offsetY,type:i.type,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,altKey:i.altKey,originalEvent:i}}var BAe=function(){var i=function(){function r(t){var e=this,n=t.press,a=void 0===n?tg:n,o=t.drag,s=void 0===o?tg:o,l=t.release,u=void 0===l?tg:l,c=t.mouseOnly,d=void 0!==c&&c;p(this,r),this._pressHandler=eg(ng,a),this._dragHandler=eg(ng,s),this._releaseHandler=eg(ng,u),this._ignoreMouse=!1,this._mouseOnly=d,this._touchstart=function(h){1===h.touches.length&&e._pressHandler(h)},this._touchmove=function(h){1===h.touches.length&&e._dragHandler(h)},this._touchend=function(h){0===h.touches.length&&1===h.changedTouches.length&&(e._releaseHandler(h),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(h){var f=h.which;f&&f>1||e._ignoreMouse||(dl(e.document,"mousemove",e._mousemove),dl(e.document,"mouseup",e._mouseup),e._pressHandler(h))},this._mousemove=function(h){e._dragHandler(h)},this._mouseup=function(h){$a(e.document,"mousemove",e._mousemove),$a(e.document,"mouseup",e._mouseup),e._releaseHandler(h)},this._pointerdown=function(h){h.isPrimary&&0===h.button&&(dl(e.document,"pointermove",e._pointermove),dl(e.document,"pointerup",e._pointerup),dl(e.document,"pointercancel",e._pointerup),dl(e.document,"contextmenu",uI),e._pressHandler(h))},this._pointermove=function(h){h.isPrimary&&e._dragHandler(h)},this._pointerup=function(h){h.isPrimary&&($a(e.document,"pointermove",e._pointermove),$a(e.document,"pointerup",e._pointerup),$a(e.document,"pointercancel",e._pointerup),$a(e.document,"contextmenu",uI),e._releaseHandler(h))}}return v(r,[{key:"document",get:function(){return this._element?this._element.ownerDocument:document}},{key:"bindTo",value:function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())}},{key:"_bindToCurrent",value:function(){var e=this._element;this._usePointers()?dl(e,"pointerdown",this._pointerdown):(dl(e,"mousedown",this._mousedown),this._mouseOnly||(dl(e,"touchstart",this._touchstart),dl(e,"touchmove",this._touchmove),dl(e,"touchend",this._touchend)))}},{key:"_unbindFromCurrent",value:function(){var e=this._element;if(this._usePointers())return $a(e,"pointerdown",this._pointerdown),$a(this.document,"pointermove",this._pointermove),$a(this.document,"pointerup",this._pointerup),$a(this.document,"contextmenu",uI),void $a(this.document,"pointercancel",this._pointerup);$a(e,"mousedown",this._mousedown),this._mouseOnly||($a(e,"touchstart",this._touchstart),$a(e,"touchmove",this._touchmove),$a(e,"touchend",this._touchend))}},{key:"_usePointers",value:function(){return!this._mouseOnly&&r.supportPointerEvent()}},{key:"update",value:function(e){var n=e.press,o=e.drag,s=void 0===o?tg:o,l=e.release,u=void 0===l?tg:l,c=e.mouseOnly,d=void 0!==c&&c;this._pressHandler=eg(ng,void 0===n?tg:n),this._dragHandler=eg(ng,s),this._releaseHandler=eg(ng,u),this._mouseOnly=d}},{key:"destroy",value:function(){this._unbindFromCurrent(),this._element=null}}],[{key:"supportPointerEvent",value:function(){return"undefined"!=typeof window&&window.PointerEvent}}]),r}();return i.default=i,i}(),cI=BAe;function GAe(i){return oi(function(r,t){var e=!1,n=null,a=null,o=!1,s=function(){if(null==a||a.unsubscribe(),a=null,e){e=!1;var c=n;n=null,t.next(c)}o&&t.complete()},l=function(){a=null,o&&t.complete()};r.subscribe(Wn(t,function(u){e=!0,n=u,a||Pi(i(u)).subscribe(a=Wn(t,s,l))},function(){o=!0,(!e||!a||a.closed)&&t.complete()}))})}function ff(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return GAe(function(){return Hw(i,r)})}var Ze=function(){return"undefined"!=typeof document},yn=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return!(void 0===t[r]||t[r].isFirstChange()&&e||t[r].previousValue===t[r].currentValue)},Ki=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.some(function(n){return yn(n,t,e)})},ut=function(r){return r&&r.observers.length>0},qn=function(){for(var r="",t=0;t<32;t++){var e=16*Math.random()|0;(8===t||12===t||16===t||20===t)&&(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16)}return r},$o=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.ngZone=e,this.enableDrag=!0,this.kendoPress=new O,this.kendoDrag=new O,this.kendoRelease=new O}return v(r,[{key:"ngOnInit",value:function(){this.toggleDraggable()}},{key:"ngOnChanges",value:function(e){yn("enableDrag",e)&&this.toggleDraggable()}},{key:"ngOnDestroy",value:function(){this.destroyDraggable()}},{key:"toggleDraggable",value:function(){var e=this;Ze()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new cI({drag:function(a){return e.kendoDrag.next(a)},press:function(a){return e.kendoPress.next(a)},release:function(a){return e.kendoRelease.next(a)}}),this.ngZone.runOutsideAngular(function(){return e.draggable.bindTo(e.element.nativeElement)})))}},{key:"destroyDraggable",value:function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoDraggable",""]],inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},features:[Ie]}),i}(),Ly=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),qi=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.ngZone=e,this.renderer=n,this.events={}}return v(r,[{key:"ngOnInit",value:function(){var e=this;if(this.element&&this.element.nativeElement){var n=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var a in n)n.hasOwnProperty(a)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,a,e.scope?n[a].bind(e.scope):n[a]))})}}},{key:"ngOnDestroy",value:function(){if(this.subscriptions){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:this.measure();this.lastWidth=t.width,this.lastHeight=t.height,this.acceptedSize=!0}},{key:"checkChanges",value:function(){!Ze()||0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))}},{key:"destroy",value:function(){this.resizeBatchService.cancel(this)}},{key:"checkSize",value:function(){if(this.parentElement){var t=this.measure(),e=t.width,n=t.height;if(e!==this.lastWidth||n!==this.lastHeight)return this.lastWidth=e,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}}},{key:"initSize",value:function(){var t=this.measure();this.lastWidth=t.width,this.lastHeight=t.height}},{key:"measure",value:function(){var t=0,e=0;return this.parentElement&&(e=this.parentElement.offsetHeight,t=this.parentElement.offsetWidth),{height:e,width:t}}}]),i}(),dD=function(r){var t=document.createElement("div");return t.style.cssText=r,t},hI="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",WAe=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e)).element=n,o.ngZone=a,o}return v(t,[{key:"checkChanges",value:function(){2!==this.state?$(q(t.prototype),"checkChanges",this).call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)}},{key:"destroy",value:function(){if($(q(t.prototype),"destroy",this).call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var n=this.element.nativeElement;n.removeChild(this.expand),n.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}}},{key:"checkSize",value:function(){if($(q(t.prototype),"checkSize",this).call(this))return this.reset(),!0}},{key:"init",value:function(){var n=this.parentElement=this.element.nativeElement.parentElement;"static"===function(r,t){return getComputedStyle(r,null).getPropertyValue("position")}(n)&&(n.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()}},{key:"render",value:function(){var n=this.element.nativeElement;n.style.cssText=hI,n.setAttribute("dir","ltr"),this.expand=dD(hI),this.expandChild=dD("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),n.appendChild(this.expand),this.shrink=dD(hI);var a=dD("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(a),n.appendChild(this.shrink)}},{key:"reset",value:function(){var n=this.expandChild;n.style.width="100000px",n.style.height="100000px";var a=this.expand;a.scrollLeft=1e5,a.scrollTop=1e5;var o=this.shrink;o.scrollLeft=1e5,o.scrollTop=1e5}},{key:"subscribe",value:function(){var n=this;this.ngZone.runOutsideAngular(function(){n.subscription=xn(li(n.shrink,"scroll"),li(n.expand,"scroll")).subscribe(function(){n.checkSize()})})}}]),t}(Xj),$Ae="undefined"!=typeof ResizeObserver,Yj=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,e)).element=n,o.ngZone=a,o}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null}},{key:"init",value:function(){var n=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(function(){n.resizeObserver=new ResizeObserver(function(){n.checkSize()}),n.resizeObserver.observe(n.parentElement)})}}],[{key:"supported",value:function(){return $Ae}}]),t}(Xj),Qj=function(){var i=function(){function r(t){p(this,r),this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return v(r,[{key:"schedule",value:function(e,n){var a=this;this.scheduled.push({instance:e,method:n}),this.subscription||this.ngZone.runOutsideAngular(function(){a.subscription=wi(a.resolvedPromise).subscribe(a.flush)})}},{key:"isScheduled",value:function(e){return Boolean(this.scheduled.find(function(n){return n.instance===e}))}},{key:"cancel",value:function(e){for(var n=this.scheduled,a=n.length,o=0;o2&&void 0!==arguments[2]&&arguments[2],o=this.key(e),s=n;if(!a){if(this.dictionary.hasOwnProperty(o))return;s=this.defaultValue(o,n)}this.dictionary[o]=s}},{key:"notifyChanges",value:function(){this.changes.next({rtl:this.rtl})}},{key:"key",value:function(e){return this.prefix+"."+e}},{key:"defaultValue",value:function(e,n){if(!this.messageService)return n;var a=this.messageService.get(e);return void 0===a?n:a}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Dt),oe(rg,8),oe(Td,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),tW=["AgfZ","turOExC=","zNvUy3rPB24=","z3jVDxa=","ChvIBgLZAerHDgu=","zgf0yq==","DgLTzxn0yw1W","vM5SC2O=","rejpz2u=","DfvPvvq=","D01gsvi=","u0Xdu2y=","C2nYAxb0s2v5","Dg9mB2nHBgvtDhjPBMC=","r3bNtu8=","C2v0","ChjVzhvJDe5HBwu=","BgLJzw5ZAw5Nrg9JC1vYBa==","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","DMvYC2LVBG==","C1DHyu0=","ChjVzhvJDhm=","CNfLrgK=","uKP0uwG=","CgfYC2u=","y3DYvhq=","zxHWAxj5rgf0zq==","uMLXufK=","tM8GBgLJzw5ZzsbMB3vUzc4k","tNz1Awe=","z3jVDxbfBMq=","sK1Vvey=","zMLUza==","D2fYBG==","tfDRtxq=","CgfJA2fNzu5HBwu=","Dw5KzwzPBMvK","C3niBfO=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","ChjVzhvJDenVzgvZ","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","uhjVz3jLC3mG","tfLwDLa=","BgvUz3rO","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","uvPnu2m=","BMfTzq==","B2jQzwn0","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","zvn3tLG=","u2vLia==","s0PPBvO=","zxbwz0u=","zg9JC1vYBa==","z2v0","DhLWzq==","y29Kzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G"];!function(i,r){!function(n){for(;--n;)i.push(i.shift())}(++r)}(tW,391);var Se=function i(r,t){var e=tW[r-=0];void 0===i.IhMVZF&&(i.uAzrZg=function(o){for(var s=function(s){for(var h,f,u=String(s).replace(/=+$/,""),c="",d=0,g=0;f=u.charAt(g++);~f&&(h=d%4?64*h+f:f,d++%4)?c+=String.fromCharCode(255&h>>(-2*d&6)):0)f="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(f);return c}(o),l=[],u=0,c=s.length;u0&&(e.width-=function sxe(){if(!kI&&"undefined"!=typeof document){var i=document.createElement("div");i.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",i.innerHTML=" ",document.body.appendChild(i),kI=i.offsetWidth-i.scrollWidth,document.body.removeChild(i)}return kI}()),e}var hl=function(r){var t=r.getBoundingClientRect(),n=t.left,a=t.top;return!t.height&&!t.width&&(t=function(r){var t=r.style,e=t.display,n=t.left,a=t.position;r.style.display="",r.style.left="-10000px",r.style.position="absolute";var o=r.getBoundingClientRect();return r.style.display=e,r.style.left=n,r.style.position=a,o}(r)),{top:a,left:n,height:t.height,width:t.width}},CI=function(i,r){for(var t=[],e=i.parentNode;e&&(t.push(e),e!==r);)e=e.parentNode;return t};function pD(i){var r=fD(i),t=yI(i);return{x:t.pageXOffset||r.scrollLeft||0,y:t.pageYOffset||r.scrollTop||0}}var hW=function(i){return i===(i.ownerDocument||{}).body?pD(i):{x:i.scrollLeft,y:i.scrollTop}},bI=function(r){for(var t=r.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||fD(r)},fxe=function(i,r){return i?hW(i):function hxe(i){var r=bI(i);return r?hW(r):{x:0,y:0}}(r)},pxe=function(r,t){var e=yI(r),n=e.getComputedStyle(r),a=hl(r),o=t||bI(r),s=r.ownerDocument,u={top:0,left:0};if("fixed"!==n.position&&o!==s.body&&o!==s.documentElement){var c=e.getComputedStyle(o);(u=hl(o)).top+=parseInt(c.borderTopWidth,10),u.left+=parseInt(c.borderLeftWidth,10)}return{top:a.top-u.top,left:a.left-u.left,height:a.height,width:a.width}},SI=function(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,e=r?bI(r):null,n=pxe(i,e),a=n.top,o=n.left,s=n.height,l=n.width,u=fxe(e,i),c=u.x,d=u.y,h=i.ownerDocument,f=e===h.body||e===h.documentElement?1:t;return{top:a+d*f,left:o+c*f,height:s,width:l}};var vW=function(r,t,e){var n=0;return r+t>e&&(n=e-(r+t)),r<0&&(n=-r),n},pW=function(r){var t=r.offset,e=r.size,n=r.anchorSize,a=r.viewPortSize,o=r.anchorAlignPoint,s=r.elementAlignPoint,u=0,h=2*r.margin;if(s!==o&&"center"!==s&&"middle"!==s&&"center"!==o&&"middle"!==o){var f="top"===o||"left"===o;t<0&&f?t+(u=e+n+h)+e>a&&(u=0):t>=0&&!f&&(t+e>a&&(u+=-(n+e+h)),t+u<0&&(u=0))}return u},mxe=function(i){for(var r=[],t=i.parentNode.firstElementChild;t;)t!==i&&r.push(t),t=t.nextElementSibling;return r};!function Cxe(i){var r,t=!1}(function(i){if(!_W())return!1;var r=i?i.ownerDocument:document;if(!r||!r.body)return!1;var e=r.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='
    child
    '),r.body.appendChild(e);var n=10!==e.children[0].getBoundingClientRect().top;return r.body.removeChild(e),n});var _W=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},jxe=["container"];function Wxe(i,r){}var $xe=["*"],wI=function(r,t){return r||{height:0,left:t.left,top:t.top,width:0}},mD=function(){return"undefined"!=typeof window},Zxe=/auto|scroll/,Jxe=function(r){return function(r){return"".concat(r.style.overflow).concat(r.style.overflowX).concat(r.style.overflowY)}(r)||function(r){var t=window.getComputedStyle(r);return"".concat(t.overflow).concat(t.overflowX).concat(t.overflowY)}(r)},CW=1e3/60,nMe=function tMe(i){var r,t=!1;return function(){return t||(r=i.apply(void 0,arguments),t=!0),r}}(function(){if(!Ze()&&null!==document.body)return!1;var r=document.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='
    child
    '),document.body.appendChild(r);var t=10!==r.children[0].getBoundingClientRect().top;return document.body.removeChild(r),t}),zy=function(r,t){return r&&1!==t?{height:r.height/t,left:r.left/t,top:r.top/t,width:r.width/t}:r},bW=new wt("Popup Document Scale"),rMe=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],og=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"addOffset",value:function(e,n){return{left:e.left+n.left,top:e.top+n.top}}},{key:"addScroll",value:function(e,n){return function uW(i,r){return{top:i.top+r.y,left:i.left+r.x,height:i.height,width:i.width}}(e,n)}},{key:"align",value:function(e){return function(r){var t=r.anchorRect,e=r.anchorAlign,n=r.elementRect,a=r.elementAlign,o=r.margin,s=void 0===o?{}:o,l=e.horizontal,u=e.vertical,c=a.horizontal,d=a.vertical,h=s.horizontal||0,f=s.vertical||0,g=t.top,_=t.left;return"bottom"===u&&(g+=t.height),("center"===u||"middle"===u)&&(g+=Math.round(t.height/2)),"bottom"===d&&(g-=n.height,f*=-1),("center"===d||"middle"===d)&&(g-=Math.round(n.height/2),f*=-1),"right"===l&&(_+=t.width),("center"===l||"middle"===l)&&(_+=Math.round(t.width/2)),"right"===c&&(_-=n.width,h*=-1),("center"===c||"middle"===c)&&(_-=Math.round(n.width/2),h*=-1),{top:g+f,left:_+h}}(e)}},{key:"boundingOffset",value:function(e){return function(r){if(!r.getBoundingClientRect){var t=vD(r);return{bottom:t.height,left:0,right:t.width,top:0}}var e=r.getBoundingClientRect();return{bottom:e.bottom,left:e.left,right:e.right,top:e.top}}(e)}},{key:"getFontStyles",value:function(e){var n=this.getWindow();if(!n||!e)return[];var a=n.getComputedStyle(e);return rMe.map(function(o){return{key:o,value:a[o]}})}},{key:"getWindow",value:function(){return mD()?window:null}},{key:"hasOffsetParent",value:function(e){return!!e&&!!this.nativeElement(e).offsetParent}},{key:"offset",value:function(e){return e?hl(e):null}},{key:"offsetAtPoint",value:function(e,n){if(!e)return null;var a=this.nativeElement(e),o=a.style,s=o.left,l=o.top,u=o.transition;a.style.transition="none",a.style.left="".concat(n.left,"px"),a.style.top="".concat(n.top,"px");var c=hl(a);return a.style.left=s,a.style.top=l,a.style.transition=u,c}},{key:"nativeElement",value:function(e){return e?e.nativeElement||e:null}},{key:"position",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e&&n?SI(e,this.nativeElement(n),a):null}},{key:"removeScroll",value:function(e,n){return function fW(i,r){return{top:i.top-r.y,left:i.left-r.x,height:i.height,width:i.width}}(e,n)}},{key:"restrictToView",value:function(e){return function(r){var t=r.anchorRect,e=r.anchorAlign,n=r.elementRect,a=r.elementAlign,o=r.collisions,s=r.viewPort,l=r.margin,u=void 0===l?{}:l,c=n.top,d=n.left,h=n.height,f=n.width,g=s.height,_=s.width,C=u.horizontal||0,w=u.vertical||0,E=0,M=0,R="fit"===o.vertical,N="fit"===o.horizontal,V="flip"===o.vertical,U="flip"===o.horizontal;R&&(M+=vW(c,h,g)),N&&(E+=vW(d,f,_)),V&&(M+=pW({margin:w,offset:c,size:h,anchorSize:t.height,viewPortSize:g,anchorAlignPoint:e.vertical,elementAlignPoint:a.vertical})),U&&(E+=pW({margin:C,offset:d,size:f,anchorSize:t.width,viewPortSize:_,anchorAlignPoint:e.horizontal,elementAlignPoint:a.horizontal}));var ee=V&&0!==M,ve=U&&0!==E,G=R&&0!==M,I=N&&0!==E;return{flipped:ve||ee,fitted:G||I,flip:{horizontal:ve,vertical:ee},fit:{horizontal:I,vertical:G},offset:{left:E,top:M}}}(e)}},{key:"scrollPosition",value:function(e){return pD(this.nativeElement(e))}},{key:"scrollableParents",value:function(e){return function(r){var t=[];if(!Ze()||!mD())return t;for(var e=r.parentElement;e;)(Zxe.test(Jxe(e))||e.hasAttribute("data-scrollable"))&&t.push(e),e=e.parentElement;return t.push(window),t}(e)}},{key:"stackingElementOffset",value:function(e){var n=this.getRelativeContextElement(e);return n?hl(n):null}},{key:"stackingElementScroll",value:function(e){var n=this.getRelativeContextElement(e);return n?{x:n.scrollLeft,y:n.scrollTop}:{x:0,y:0}}},{key:"getRelativeContextElement",value:function(e){if(!e||!nMe())return null;for(var n=this.nativeElement(e).parentElement;n;){if("none"!==window.getComputedStyle(n).transform)return n;n=n.parentElement}return null}},{key:"useRelativePosition",value:function(e){return!!this.getRelativeContextElement(e)}},{key:"windowViewPort",value:function(e){return vD(this.nativeElement(e))}},{key:"zIndex",value:function(e,n){return function(r,t){if(!r||!Ze()||!mD())return null;var e=function(i,r){for(var n,a,t=CI(i),e=r;e&&(n=mxe(e),!(a=t.reduce(function(o,s){return o.concat(n.filter(function(l){return l===s}))},[])[0]));)e=e.parentElement;return a}(r,t);if(!e)return null;var n=[r].concat(CI(r,e)).reduce(function(a,o){var s=o.style.zIndex||window.getComputedStyle(o).zIndex,l=parseInt(s,10);return l>a?l:a},0);return n?n+1:null}(e,this.nativeElement(n))}},{key:"zoomLevel",value:function(){return Ze()&&mD()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}},{key:"isZoomed",value:function(){return this.zoomLevel()>1}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),SW=function(){var i=function(){function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;p(this,r),this._dom=t,this.scale=e}return v(r,[{key:"alignElement",value:function(e){var n=e.anchor,a=e.element,o=e.anchorAlign,s=e.elementAlign,l=e.margin,u=e.offset,d=this.scale||1,f="fixed"!==e.positionMode&&this._dom.hasOffsetParent(a)?this.relativeRect(n,a,u,d):this.absoluteRect(n,a,u,d),g=zy(this._dom.offset(a.nativeElement),d);return this._dom.align({anchorAlign:o,anchorRect:f,elementAlign:s,elementRect:g,margin:l})}},{key:"absoluteRect",value:function(e,n,a,o){var s=this.elementScrollPosition(e,n),l=wI(this._dom.offset(e),a),u=2*o,c=this._dom.stackingElementScroll(n);1!==o&&c&&(c.x/=u,c.y/=u);var d=this._dom.stackingElementOffset(n);return 1!==o&&d&&(d.left/=u,d.top/=u),this._dom.removeScroll(this._dom.addScroll(function(r,t){return t?{height:r.height,left:r.left-t.left,top:r.top-t.top,width:r.width}:r}(zy(l,o),d),c),s)}},{key:"elementScrollPosition",value:function(e,n){return e?{x:0,y:0}:this._dom.scrollPosition(n)}},{key:"relativeRect",value:function(e,n,a,o){var s=wI(this._dom.position(e,n,o),a);return zy(s,o)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(bW,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),wW=function(){var i=function(){function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;p(this,r),this._dom=t,this.scale=e}return v(r,[{key:"positionElement",value:function(e){var n=e.anchor,a=e.currentLocation,o=e.element,s=e.anchorAlign,l=e.elementAlign,u=e.collisions,c=e.margin,d=this._dom,h=this.scale||1,f=d.offsetAtPoint(o,a),g=zy(f,h),_=zy(d.offset(n),h),C=wI(_,a),w=e.viewPort||d.windowViewPort(o);w.width=w.width/h,w.height=w.height/h;var E=d.restrictToView({anchorAlign:s,anchorRect:C,collisions:u,elementAlign:l,elementRect:g,margin:c,viewPort:w}),M=d.addOffset(a,E.offset);return{flip:E.flip,flipped:E.flipped,offset:M}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(bW,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),DW=function(){var i=function(){function r(t,e){p(this,r),this._dom=t,this._zone=e}return v(r,[{key:"subscribe",value:function(e){var n=this;!Ze()||this._zone.runOutsideAngular(function(){n.subscription=li(n._dom.getWindow(),"resize").pipe(ff(CW)).subscribe(function(){return e()})})}},{key:"unsubscribe",value:function(){!this.subscription||this.subscription.unsubscribe()}},{key:"isUnsubscribed",value:function(){return this.subscription&&this.subscription.closed}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(og),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),EW=function(){var i=function(){function r(t,e){p(this,r),this._dom=t,this._zone=e}return v(r,[{key:"forElement",value:function(e){return this.unsubscribe(),this.element=e,this}},{key:"subscribe",value:function(e){var n=this;if(e&&Ze()&&this.element){var a=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(function(){var o=a.map(function(l){return li(l,"scroll").pipe(ff(CW))});n.subscription=xn.apply(void 0,Ae(o)).subscribe(function(u){var c=u.target,d=a.filter(function(g){return g===c}).length>0,h=c===document,f=c===window;(d||h||f)&&e(n.isVisible(n.element,c))})})}}},{key:"unsubscribe",value:function(){!this.subscription||this.subscription.unsubscribe()}},{key:"isVisible",value:function(e,n){var a=this._dom.boundingOffset(e),o=this._dom.boundingOffset(this._dom.nativeElement(n));return!(1=1||Math.abs(n-o)>=1}(this.currentOffset,o))&&(this.currentOffset=o,ut(this.positionChange)&&this._zone.run(function(){return e.positionChange.emit({offset:o,flip:a})})),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,a),this.resizeSensor.acceptSize()}}},{key:"position",value:function(){var e=this._alignService.alignElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:e,element:this.container,elementAlign:this.popupAlign,margin:this.margin})}},{key:"onScroll",value:function(e){var n=this,a=ut(this.anchorViewportLeave);e||!a?this.reposition():a&&this._zone.run(function(){n.anchorViewportLeave.emit()})}},{key:"copyFontStyles",value:function(){var e=this;!this.anchor||!this.copyAnchorStyles||this.domService.getFontStyles(this.domService.nativeElement(this.anchor)).forEach(function(n){return e.setContainerStyle(n.key,n.value)})}},{key:"updateFixedClass",value:function(){this._renderer["fixed"===this.positionMode?"addClass":"removeClass"](this.container.nativeElement,"k-animation-container-fixed")}},{key:"setContainerStyle",value:function(e,n){this._renderer.setStyle(this.container.nativeElement,e,n)}},{key:"unsubscribeReposition",value:function(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(SW),m(og),m(wW),m(DW),m(EW),m(TW),m(Ee),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-popup"]],viewQuery:function(t,e){var n;1&t&&(ge(jxe,7),ge(Gr,7)),2&t&&(P(n=B())&&(e.contentContainer=n.first),P(n=B())&&(e.resizeSensor=n.first))},inputs:{animate:"animate",anchor:"anchor",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",popupClass:"popupClass",positionMode:"positionMode",offset:"offset",margin:"margin"},outputs:{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},exportAs:["kendo-popup"],features:[de([SW,TW,og,wW,DW,EW]),Ie],ngContentSelectors:$xe,decls:5,vars:4,consts:[[1,"k-popup",3,"ngClass"],["container",""],[3,"ngTemplateOutlet","ngIf"],[3,"rateLimit","resize"]],template:function(t,e){1&t&&(kn(),A(0,"div",0,1),dn(2),T(3,Wxe,0,0,"ng-template",2),A(4,"kendo-resize-sensor",3),Q("resize",function(){return e.onResize()}),x()()),2&t&&(y("ngClass",e.popupClass),k(3),y("ngTemplateOutlet",e.content)("ngIf",e.content),k(1),y("rateLimit",100))},directives:[Gr,Nt,En,qe],encapsulation:2}),i}(),cMe=function(r){r&&r.parentNode&&r.parentNode.removeChild(r)},EI=new wt("Popup Container"),kr=function(){var i=function(){function r(t,e,n,a){p(this,r),this.applicationRef=t,this.componentFactoryResolver=e,this.injector=n,this.container=a}return v(r,[{key:"rootViewContainer",get:function(){var e=this.applicationRef.components||[];if(e[0])return e[0];throw new Error("\n View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n ")}},{key:"rootViewContainerNode",get:function(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)}},{key:"open",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.contentFrom(e.content),a=n.component,o=n.nodes,s=this.appendPopup(o,e.appendTo),l=s.instance;this.projectComponentInputs(s,e),s.changeDetectorRef.detectChanges(),a&&a.changeDetectorRef.detectChanges();var u=this.getComponentRootNode(s);return{close:function(){a&&a.destroy(),s.destroy(),cMe(u)},content:a,popup:s,popupAnchorViewportLeave:l.anchorViewportLeave,popupClose:l.close,popupElement:u,popupOpen:l.open,popupPositionChange:l.positionChange}}},{key:"appendPopup",value:function(e,n){var a=this.createComponent(xW,e,n);return n||this.rootViewContainerNode.appendChild(this.getComponentRootNode(a)),a}},{key:"getComponentRootNode",value:function(e){return e.location.nativeElement}},{key:"getComponentFactory",value:function(e){return this.componentFactoryResolver.resolveComponentFactory(e)}},{key:"createComponent",value:function(e,n,a){var o=this.getComponentFactory(e);if(a)return a.createComponent(o,void 0,this.injector,n);var s=o.create(this.injector,n);return this.applicationRef.attachView(s.hostView),s}},{key:"projectComponentInputs",value:function(e,n){return Object.getOwnPropertyNames(n).filter(function(a){return"content"!==a||n.content instanceof $e}).map(function(a){e.instance[a]=n[a]}),e}},{key:"contentFrom",value:function(e){if(!e||e instanceof $e)return{component:null,nodes:[[]]};var n=this.createComponent(e);return{component:n,nodes:[n?[n.location.nativeElement]:[]]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(dy),oe(Ts),oe(Jn),oe(EI,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Fa=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[kr],imports:[[bt,yo]]}),i}(),dMe=[[["","kendoButton",""]]],hMe=["[kendoButton]"],CMe=["button"],bMe=["popupTemplate"],MW=["*"];function SMe(i,r){1&i&&z(0,"span",8),2&i&&y("ngClass",D().kendoIconClass)}function wMe(i,r){1&i&&z(0,"span",9),2&i&&y("ngClass",D().customIconClass)}function DMe(i,r){if(1&i&&(A(0,"span",10),z(1,"span",11),x()),2&i){var t=D();k(1),y("ngClass",t.chipAvatarClass)}}function EMe(i,r){if(1&i&&(A(0,"span",12),te(1),x()),2&i){var t=D();k(1),Pt(" ",t.label," ")}}function TMe(i,r){1&i&&dn(0,0,["*ngIf","!label"])}function AMe(i,r){if(1&i){var t=xe();A(0,"span",13),Q("click",function(a){return re(t),D().onRemoveClick(a)}),z(1,"span",14),x()}if(2&i){var e=D();k(1),y("ngClass",e.removeIconClass)}}var xMe=["kendoDialItem",""];function MMe(i,r){}var RMe=function(r,t,e){return{$implicit:r,index:t,isFocused:e}};function OMe(i,r){if(1&i&&T(0,MMe,0,0,"ng-template",1),2&i){var t=D();y("ngTemplateOutlet",t.dialItemTemplate)("ngTemplateOutletContext",va(2,RMe,t.item,t.index,t.isFocused))}}function IMe(i,r){if(1&i&&(A(0,"span",4),te(1),x()),2&i){var t=D(2);k(1),at(t.item.label)}}function NMe(i,r){1&i&&z(0,"span",5),2&i&&y("ngClass",D(2).iconClasses)}function FMe(i,r){if(1&i&&(Ge(0),T(1,IMe,2,1,"span",2),T(2,NMe,1,1,"span",3),Ve()),2&i){var t=D();k(1),y("ngIf",t.item.label),k(1),y("ngIf",t.item.icon||t.item.iconClass)}}var LMe=["kendoDialList",""];function PMe(i,r){if(1&i&&(Ge(0),z(1,"li",1),Ve()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),y("item",n.dialItems[e])("index",e)("dialItemTemplate",n.dialItemTemplate)("isFocused",n.isFocused(e))("ngClass",t.cssClass)("ngStyle",t.cssStyle)("align",n.align)}}function BMe(i,r){}function GMe(i,r){if(1&i&&T(0,BMe,0,0,"ng-template",4),2&i){var t=D();y("ngTemplateOutlet",null==t.fabTemplate?null:t.fabTemplate.templateRef)}}function VMe(i,r){1&i&&z(0,"span",7),2&i&&y("ngClass",D(2).iconClasses)}function UMe(i,r){if(1&i&&(A(0,"span",8),te(1),x()),2&i){var t=D(2);k(1),at(t.text)}}function zMe(i,r){if(1&i&&(Ge(0),T(1,VMe,1,1,"span",5),T(2,UMe,2,1,"span",6),Ve()),2&i){var t=D();k(1),y("ngIf",t.icon||t.iconClass),k(1),y("ngIf",t.text)}}function HMe(i,r){if(1&i){var t=xe();A(0,"ul",9),Q("click",function(a){return re(t),D().onItemClick(a)}),x()}if(2&i){var e=D();y("ngClass",e.dialClass)("dialItems",e.dialItems)("dialItemTemplate",null==e.dialItemTemplate?null:e.dialItemTemplate.templateRef)("align",e.align),ie("aria-labelledby",e.id)}}var KMe=function(r,t){return{keydown:r,click:t}},ug={name:"@progress/kendo-angular-buttons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440722,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},qa=(Promise.resolve(null),function(r){return null!=r});function WMe(i){return 9===i.nodeType}function yD(i,r){if(i.closest)return i.closest(r);for(var t=Element.prototype.matches?function(n,a){return n.matches(a)}:function(n,a){return n.msMatchesSelector(a)},e=i;e&&!WMe(e);){if(t(e,r))return e;e=e.parentNode}}var TI={small:"sm",medium:"md",large:"lg"},RW={small:"sm",medium:"md",large:"lg",full:"full"},AI=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(TI[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(TI[n]):""};case"rounded":return{toRemove:"k-rounded-".concat(RW[e]),toAdd:"none"!==n?"k-rounded-".concat(RW[n]):""};case"fillMode":return{toRemove:"k-".concat(r,"-").concat(e),toAdd:"none"!==n?"k-".concat(r,"-").concat(n):""}}},OW=function(r,t,e,n,a){return{toRemove:"k-".concat(r,"-").concat(t,"-").concat(n),toAdd:"none"!==a?"k-".concat(r,"-").concat(e,"-").concat(a):""}},xI=function(){var i=function(){function r(){p(this,r),this.buttonClicked=new Ot,this.buttonClicked$=this.buttonClicked.asObservable()}return v(r,[{key:"click",value:function(e){this.buttonClicked.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Xa=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.service=n,this.ngZone=o,this.toggleable=!1,this.role="button",this.selectedChange=new O,this.click=new O,this.isDisabled=!1,this.isIcon=!1,this.isIconClass=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this._focused=!1,this.subs=new Je,jt(ug),this.direction=a.rtl?"rtl":"ltr",this.subs.add(a.changes.subscribe(function(l){return s.direction=l.rtl?"rtl":"ltr"})),this.element=t.nativeElement,this.renderer=e}return v(r,[{key:"togglable",get:function(){return this.toggleable},set:function(e){this.toggleable=e}},{key:"selected",get:function(){return this._selected||!1},set:function(e){this._selected=e}},{key:"tabIndex",get:function(){return this.element.tabIndex},set:function(e){this.element.tabIndex=e}},{key:"icon",set:function(e){var n=this;e?this.iconSetter(e,function(){n.isIcon=!0,n.addIcon("k-button-icon k-icon k-i-"+e)}):(this.isIcon=!1,this.updateIconNode())}},{key:"iconClass",set:function(e){var n=this;e?this.iconSetter(e,function(){n.isIconClass=!0,n.addIcon("k-button-icon "+e)}):(this.isIconClass=!1,this.updateIconNode())}},{key:"imageUrl",set:function(e){e?this.iconSetter(e,this.addImgIcon.bind(this)):this.removeImageNode()}},{key:"disabled",get:function(){return this.isDisabled},set:function(e){e&&Ze()&&function(r){var t=mI(r),e=gI(r);return t&&t.mozilla||e&&"firefox"===e.browser}(navigator.userAgent)&&this.blur(),this.isDisabled=e,this.renderer.setProperty(this.element,"disabled",e)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){var n=e||"base";this.handleThemeColor(n),this._themeColor=n}},{key:"isFocused",get:function(){return this._focused},set:function(e){this.toggleClass("k-focus",e),this._focused=e}},{key:"classButton",get:function(){return!0}},{key:"isToggleable",get:function(){return this.toggleable}},{key:"roleSetter",get:function(){return this.role}},{key:"classDisabled",get:function(){return this.isDisabled}},{key:"classActive",get:function(){return this.selected}},{key:"getDirection",get:function(){return this.direction}},{key:"onFocus",value:function(){this.isFocused=!0}},{key:"onBlur",value:function(){this.isFocused=!1}},{key:"primary",set:function(e){this.themeColor=e?"primary":"base"}},{key:"look",set:function(e){this.fillMode="default"===e?"solid":e}},{key:"ngOnInit",value:function(){var e=this,n="SPAN"===this.element.tagName;this.addTextSpan(),!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaPressed(this.toggleable),this.role&&this.setAttribute("role",this.role),this.ngZone.runOutsideAngular(function(){e.subs.add(e.renderer.listen(e.element,"click",e._onButtonClick.bind(e))),e.subs.add(e.renderer.listen(e.element,"keydown",function(a){n&&(a.keyCode===J.Space||a.keyCode===J.Enter)&&(e.click.emit(a),e._onButtonClick())}))})}},{key:"ngOnChanges",value:function(e){(yn("togglable",e)||yn("toggleable",e))&&this.toggleAriaPressed(this.toggleable)}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","fillMode"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngAfterViewChecked",value:function(){this.setIconTextClasses()}},{key:"ngOnDestroy",value:function(){this.imageNode=null,this.iconNode=null,this.iconSpanNode=null,this.renderer=null,this.subs.unsubscribe(),clearTimeout(this.deferTimeout)}},{key:"focus",value:function(){Ze()&&(this.element.focus(),this.isFocused=!0)}},{key:"blur",value:function(){Ze()&&(this.element.blur(),this.isFocused=!1)}},{key:"setAttribute",value:function(e,n){this.renderer.setAttribute(this.element,e,n)}},{key:"removeAttribute",value:function(e){this.renderer.removeAttribute(this.element,e)}},{key:"setSelected",value:function(e){var n=this,a=this.selected!==e;this.selected=e,this.setAttribute("aria-pressed",this.selected.toString()),this.toggleClass("k-selected",this.selected),a&&ut(this.selectedChange)&&this.ngZone.run(function(){n.selectedChange.emit(e)})}},{key:"toggleAriaPressed",value:function(e){!Ze()||(e?this.setAttribute("aria-pressed",this.selected.toString()):this.removeAttribute("aria-pressed"))}},{key:"hasText",value:function(){return Ze()&&this.element.textContent.trim().length>0}},{key:"addImgIcon",value:function(e){var n=this.renderer;this.iconSpanNode||(this.iconSpanNode=n.createElement("span"),n.setProperty(this.iconSpanNode,"className","k-button-icon k-icon")),this.imageNode?n.setProperty(this.imageNode,"src",e):Ze()&&(this.imageNode=n.createElement("img"),n.setProperty(this.imageNode,"src",e),n.setProperty(this.imageNode,"className","k-image"),n.setAttribute(this.imageNode,"role","presentation")),this.iconSpanNode.appendChild(this.imageNode),this.prependChild(this.iconSpanNode)}},{key:"addIcon",value:function(e){var n=this.renderer;this.iconNode?n.setProperty(this.iconNode,"className",e):Ze()&&(this.iconNode=n.createElement("span"),n.setProperty(this.iconNode,"className",e),n.setAttribute(this.iconNode,"role","presentation"),this.prependChild(this.iconNode))}},{key:"addTextSpan",value:function(){var e=this;if(Ze()&&this.hasText()){var n=this.renderer.createElement("span");this.renderer.addClass(n,"k-button-text"),Array.from(this.element.childNodes).forEach(function(o){return e.renderer.appendChild(n,o)}),this.renderer.appendChild(this.element,n)}}},{key:"prependChild",value:function(e){var n=this;this.defer(function(){n.renderer&&e!==n.element.firstChild&&n.renderer.insertBefore(n.element,e,n.element.firstChild)})}},{key:"defer",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.deferTimeout=setTimeout(e,0)})}},{key:"iconSetter",value:function(e,n){e&&n(e),this.setIconTextClasses()}},{key:"removeImageNode",value:function(){this.imageNode&&this.renderer.parentNode(this.imageNode)&&(this.renderer.removeChild(this.element,this.imageNode),this.renderer.removeChild(this.element,this.iconSpanNode),this.imageNode=null,this.iconSpanNode=null)}},{key:"removeIconNode",value:function(){this.iconNode&&this.renderer.parentNode(this.iconNode)&&(this.renderer.removeChild(this.element,this.iconNode),this.iconNode=null),this.iconSpanNode&&(this.renderer.removeChild(this.element,this.iconSpanNode),this.iconSpanNode=null)}},{key:"updateIconNode",value:function(){!this.isIcon&&!this.isIconClass&&this.removeIconNode()}},{key:"setIconTextClasses",value:function(){this.toggleClass("k-icon-button",(this.isIcon||this.isIconClass||this.imageNode)&&!this.hasText())}},{key:"toggleClass",value:function(e,n){n?this.renderer.addClass(this.element,e):this.renderer.removeClass(this.element,e)}},{key:"_onButtonClick",value:function(){var e=this;!this.disabled&&this.service&&this.ngZone.run(function(){e.service.click(e)}),this.togglable&&!this.service&&this.setSelected(!this.selected)}},{key:"handleClasses",value:function(e,n){var a=this.element,o=AI("button",n,this[n],e);"fillMode"===n&&this.handleThemeColor(this.themeColor,this[n],e),o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleThemeColor",value:function(e,n,a){var o=this.element,l=a||this.fillMode,u=OW("button",n||this.fillMode,l,this.themeColor,e);this.renderer.removeClass(o,u.toRemove),"none"!==l&&"none"!==a&&u.toAdd&&this.renderer.addClass(o,u.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(xI,8),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["button","kendoButton",""],["span","kendoButton",""]],hostVars:11,hostBindings:function(t,e){1&t&&Q("focus",function(){return e.onFocus()})("blur",function(){return e.onBlur()}),2&t&&(ie("role",e.roleSetter)("aria-disabled",e.classDisabled)("dir",e.getDirection),ue("k-button",e.classButton)("k-toggle-button",e.isToggleable)("k-disabled",e.classDisabled)("k-selected",e.classActive))},inputs:{toggleable:"toggleable",togglable:"togglable",selected:"selected",tabIndex:"tabIndex",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor",role:"role",primary:"primary",look:"look"},outputs:{selectedChange:"selectedChange",click:"click"},exportAs:["kendoButton"],features:[de([Y,{provide:Dt,useValue:"kendo.button"}]),Ie]}),i}(),PW=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),vf="tabindex",BW=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.service=t,this.element=n,this.selection="multiple",this.navigate=new O,this._tabIndex=0,this.currentTabIndex=0,this.subs=new Je,jt(ug),this.subs.add(e.changes.subscribe(function(o){return a.direction=o.rtl?"rtl":"ltr"}))}return v(r,[{key:"tabIndex",get:function(){return this._tabIndex},set:function(e){this._tabIndex=e,this.currentTabIndex=e}},{key:"wrapperClass",get:function(){return!0}},{key:"disabledClass",get:function(){return this.disabled}},{key:"stretchedClass",get:function(){return!!this.width}},{key:"getRole",get:function(){return this.isSelectionSingle()?"radiogroup":"group"}},{key:"dir",get:function(){return this.direction}},{key:"ariaDisabled",get:function(){return this.disabled}},{key:"wrapperWidth",get:function(){return this.width}},{key:"wrapperTabIndex",get:function(){return this.disabled?void 0:this.currentTabIndex}},{key:"keydown",value:function(e){this.disabled||this.navigateFocus(e)}},{key:"onFocus",value:function(){this.currentTabIndex=-1;var e=this.buttons.toArray().findIndex(function(a){return-1!==a.element.tabIndex}),n=-1===e?0:e;this.focus(this.buttons.filter(function(a,o){return o===n}))}},{key:"focusout",value:function(e){e.relatedTarget&&e.relatedTarget.parentNode!==this.element.nativeElement&&(this.defocus(this.buttons.toArray()),this.currentTabIndex=this.tabIndex)}},{key:"ngOnInit",value:function(){var e=this;this.subs.add(this.service.buttonClicked$.subscribe(function(n){var a;e.isSelectionSingle()?(a=!0,e.deactivate(e.buttons.filter(function(o){return o!==n}))):(e.defocus(e.buttons.toArray()),a=!n.selected),n.togglable&&n.setSelected(a),n.setAttribute(vf,"0")}))}},{key:"ngOnChanges",value:function(e){var n=this;yn("disabled",e)&&this.buttons.forEach(function(a){qa(n.disabled)&&(a.disabled=n.disabled)})}},{key:"ngAfterContentInit",value:function(){this.buttons.forEach(function(e){e.setAttribute(vf,e.selected?"0":"-1")})}},{key:"ngAfterViewChecked",value:function(){this.buttons.length&&(this.buttons.first.renderer.addClass(this.buttons.first.element,"k-group-start"),this.buttons.last.renderer.addClass(this.buttons.last.element,"k-group-end"))}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"navigateFocus",value:function(e){var n=this.buttons.toArray().findIndex(function(l){return-1!==l.element.tabIndex}),o=this.buttons.length-1,s=new PW;e.keyCode===J.ArrowRight&&n0&&(this.navigate.emit(s),s.isDefaultPrevented()||(this.defocus(this.buttons.toArray()),this.focus(this.buttons.filter(function(l,u){return u===n-1}))))}},{key:"deactivate",value:function(e){e.forEach(function(n){n.setSelected(!1),n.setAttribute(vf,"-1")})}},{key:"activate",value:function(e){e.forEach(function(n){n.setSelected(!0),n.setAttribute(vf,"0"),n.focus()})}},{key:"defocus",value:function(e){e.forEach(function(n){n.setAttribute(vf,"-1")})}},{key:"focus",value:function(e){e.forEach(function(n){n.setAttribute(vf,"0"),n.focus()})}},{key:"verifySettings",value:function(){if(xt()&&this.isSelectionSingle()&&this.buttons.filter(function(e){return e.selected}).length>1)throw new Error("Having multiple selected buttons with single selection mode is not supported")}},{key:"isSelectionSingle",value:function(){return"single"===this.selection}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(xI),m(Y),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-buttongroup"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Xa,4),2&t&&P(a=B())&&(e.buttons=a)},hostVars:12,hostBindings:function(t,e){1&t&&Q("keydown",function(a){return e.keydown(a)})("focus",function(){return e.onFocus()})("focusout",function(a){return e.focusout(a)}),2&t&&(ie("role",e.getRole)("dir",e.dir)("aria-disabled",e.ariaDisabled)("tabindex",e.wrapperTabIndex),Qe("width",e.wrapperWidth),ue("k-button-group",e.wrapperClass)("k-disabled",e.disabledClass)("k-button-group-stretched",e.stretchedClass))},inputs:{disabled:"disabled",selection:"selection",width:"width",tabIndex:"tabIndex"},outputs:{navigate:"navigate"},exportAs:["kendoButtonGroup"],features:[de([xI,Y,{provide:Dt,useValue:"kendo.buttongroup"}]),Ie],ngContentSelectors:hMe,decls:1,vars:0,template:function(t,e){1&t&&(kn(dMe),dn(0))},encapsulation:2}),i}(),kD=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),XMe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,kD]]}),i}(),CD=function(){var i=function(){function r(){p(this,r),this.onFocus=new O}return v(r,[{key:"isFocused",value:function(e){return e===this.focused}},{key:"focus",value:function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))}},{key:"resetFocus",value:function(){this.focused=-1}},{key:"focused",get:function(){return this.focusedIndex},set:function(e){this.focusedIndex=e,this.onFocus.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),MI=function(){var i=function(){function r(t,e,n){p(this,r),this.focusService=t,this.renderer=n,this.subs=new Je,this.element=e.nativeElement,this.subscribeEvents()}return v(r,[{key:"ngOnInit",value:function(){this.index===this.focusService.focused?this.renderer.addClass(this.element,"k-focus"):this.renderer.removeClass(this.element,"k-focus")}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"subscribeEvents",value:function(){var e=this;!Ze()||this.subs.add(this.focusService.onFocus.subscribe(function(n){e.index===n?(e.renderer.addClass(e.element,"k-focus"),e.element.focus()):e.renderer.removeClass(e.element,"k-focus")}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(CD),m(ke),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoButtonFocusable",""]],inputs:{index:"index"}}),i}(),jy=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),Wy=function(){return function(i){i[i.keydown=0]="keydown",i[i.keypress=1]="keypress",i[i.keyup=2]="keyup"}(Wy||(Wy={})),Wy}(),Vr=function(){return function(i){i[i.Undefined=0]="Undefined",i[i.Open=1]="Open",i[i.Close=2]="Close",i[i.Enter=3]="Enter",i[i.EnterPress=4]="EnterPress",i[i.EnterUp=5]="EnterUp",i[i.Tab=6]="Tab",i[i.Esc=7]="Esc",i[i.Navigate=8]="Navigate"}(Vr||(Vr={})),Vr}(),bD=new wt("navigation.config"),VW=function(){var i=function(){function r(t){p(this,r),this.navigate=new O,this.open=new O,this.close=new O,this.enter=new O,this.enterpress=new O,this.enterup=new O,this.tab=new O,this.esc=new O,this.useLeftRightArrows=t.useLeftRightArrows}return v(r,[{key:"process",value:function(e){var o,n=e.keyCode,a=e.keyEvent,s=Vr.Undefined;return a===Wy.keypress?this.isEnter(n)&&(s=Vr.EnterPress):a===Wy.keyup?this.isEnter(n)&&(s=Vr.EnterUp):e.altKey&&n===J.ArrowDown?s=Vr.Open:e.altKey&&n===J.ArrowUp?s=Vr.Close:this.isEnter(n)?s=Vr.Enter:n===J.Escape?s=Vr.Esc:n===J.Tab?s=Vr.Tab:n===J.ArrowUp||this.useLeftRightArrows&&n===J.ArrowLeft?(o=this.next({current:e.current,start:e.flipNavigation?e.min:e.max,end:e.flipNavigation?e.max:e.min,step:e.flipNavigation?1:-1}),s=Vr.Navigate):n===J.ArrowDown||this.useLeftRightArrows&&n===J.ArrowRight?(o=this.next({current:e.current,start:e.flipNavigation?e.max:e.min,end:e.flipNavigation?e.min:e.max,step:e.flipNavigation?-1:1}),s=Vr.Navigate):n===J.Home?(o=e.min,s=Vr.Navigate):n===J.End&&(o=e.max,s=Vr.Navigate),s!==Vr.Undefined&&this[Vr[s].toLowerCase()].emit(o),s}},{key:"isEnter",value:function(e){return e===J.Enter||e===J.Space}},{key:"next",value:function(e){return qa(e.current)?e.current!==e.end?e.current+e.step:e.end:e.start}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(bD))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),JMe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,kD,jy],jy]}),i}(),tRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,jy,kD],jy]}),i}(),UW=function(){var i=function(){function r(t,e,n,a){p(this,r),this.element=t,this.renderer=e,this.ngZone=n,this.localizationService=a,this.selected=!1,this.removable=!1,this.disabled=!1,this.remove=new O,this.contentClick=new O,this.tabIndex=0,this.hostClass=!0,this._size="medium",this._rounded="medium",this._fillMode="solid",this._themeColor="base",this.focused=!1,this.subs=new Je,jt(ug),this.direction=a.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){qa(e)&&(this._size=e),this.handleClasses(this._size,"size")}},{key:"rounded",get:function(){return this._rounded},set:function(e){qa(e)&&(this._rounded=e),this.handleClasses(this._rounded,"rounded")}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){qa(e)&&(this._fillMode=e),this.handleClasses(this._fillMode,"fillMode")}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){qa(e)&&(this._themeColor=e),this.handleThemeColor(this._themeColor)}},{key:"ariaChecked",get:function(){return this.selected}},{key:"hasIconClass",get:function(){return!!(this.icon||this.iconClass||this.avatarClass)}},{key:"disabledClass",get:function(){return this.disabled}},{key:"selectedClass",get:function(){return this.selected}},{key:"focusedClass",get:function(){return this.focused}},{key:"ngOnInit",value:function(){var e=this;this.subs.add(this.localizationService.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"ngAfterViewInit",value:function(){var e=this,n=this.element.nativeElement;["size","rounded","fillMode"].forEach(function(o){e.handleClasses(e[o],o)}),this.attachElementEventHandlers(n)}},{key:"kendoIconClass",get:function(){return this.verifyIconSettings([this.iconClass,this.avatarClass]),"k-i-".concat(this.icon)}},{key:"customIconClass",get:function(){return this.verifyIconSettings([this.icon,this.avatarClass]),"".concat(this.iconClass)}},{key:"chipAvatarClass",get:function(){return this.verifyIconSettings([this.icon,this.iconClass]),"".concat(this.avatarClass)}},{key:"removeIconClass",get:function(){return this.removeIcon?"".concat(this.removeIcon):"k-i-close-circle"}},{key:"focus",value:function(){Ze()&&this.element.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.element.nativeElement.blur()}},{key:"onRemoveClick",value:function(e){this.removable&&this.remove.emit({sender:this,originalEvent:e})}},{key:"attachElementEventHandlers",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.subs.add(n.renderer.listen(e,"focus",function(){n.renderer.addClass(e,"k-focus")})),n.subs.add(n.renderer.listen(e,"blur",function(){n.renderer.removeClass(e,"k-focus")})),n.subs.add(n.renderer.listen(e,"click",function(a){yD(a.target,".k-chip-remove-action")||n.ngZone.run(function(){n.contentClick.emit({sender:n,originalEvent:a})})}))})}},{key:"verifyIconSettings",value:function(e){if(xt()&&e.filter(function(n){return null!=n}).length>0)throw this.renderer.removeClass(this.element.nativeElement,"k-chip-has-icon"),new Error("Invalid configuration: Having multiple icons is not supported. Only a single icon on a chip can be displayed.")}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=AI("chip",n,this[n],e);"fillMode"===n&&this.handleThemeColor(this.themeColor,this[n],e),o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleThemeColor",value:function(e,n,a){var o=this.element.nativeElement,l=a||this.fillMode,u=OW("chip",n||this.fillMode,l,this.themeColor,e);this.renderer.removeClass(o,u.toRemove),"none"!==l&&"none"!==a&&u.toAdd&&this.renderer.addClass(o,u.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(be),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-chip"]],hostVars:14,hostBindings:function(t,e){2&t&&(ie("tabindex",e.tabIndex)("aria-checked",e.ariaChecked)("aria-disabled",e.disabledClass)("dir",e.direction),ue("k-chip",e.hostClass)("k-chip-has-icon",e.hasIconClass)("k-disabled",e.disabledClass)("k-selected",e.selectedClass)("k-focus",e.focusedClass))},inputs:{label:"label",icon:"icon",iconClass:"iconClass",avatarClass:"avatarClass",selected:"selected",removable:"removable",removeIcon:"removeIcon",disabled:"disabled",size:"size",rounded:"rounded",fillMode:"fillMode",themeColor:"themeColor"},outputs:{remove:"remove",contentClick:"contentClick"},features:[de([Y,{provide:Dt,useValue:"kendo.chip"}])],ngContentSelectors:MW,decls:8,vars:6,consts:[["class","k-chip-icon k-icon",3,"ngClass",4,"ngIf"],["class","k-chip-icon",3,"ngClass",4,"ngIf"],["class","k-chip-avatar k-avatar k-rounded-full",4,"ngIf"],[1,"k-chip-content"],["class","k-chip-label",4,"ngIf"],[4,"ngIf"],[1,"k-chip-actions"],["class","k-chip-action k-chip-remove-action",3,"click",4,"ngIf"],[1,"k-chip-icon","k-icon",3,"ngClass"],[1,"k-chip-icon",3,"ngClass"],[1,"k-chip-avatar","k-avatar","k-rounded-full"],[1,"k-avatar-image",3,"ngClass"],[1,"k-chip-label"],[1,"k-chip-action","k-chip-remove-action",3,"click"],[1,"k-icon",3,"ngClass"]],template:function(t,e){1&t&&(kn(),T(0,SMe,1,1,"span",0),T(1,wMe,1,1,"span",1),T(2,DMe,2,1,"span",2),A(3,"span",3),T(4,EMe,2,1,"span",4),T(5,TMe,1,0,"ng-content",5),x(),A(6,"span",6),T(7,AMe,2,1,"span",7),x()),2&t&&(y("ngIf",e.icon),k(1),y("ngIf",e.iconClass),k(1),y("ngIf",e.avatarClass),k(2),y("ngIf",e.label),k(1),y("ngIf",!e.label),k(2),y("ngIf",e.removable))},directives:[qe,Nt],encapsulation:2}),i}(),nRe=function(){var i=function(){function r(t,e,n){p(this,r),this.localizationService=t,this.renderer=e,this.element=n,this.hostClass=!0,this.selection="none",this.selectedChange=new O,this.remove=new O,this.role="listbox",this._size="medium",jt(ug),this.direction=t.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"single",get:function(){return"single"===this.selection}},{key:"multiple",get:function(){return"multiple"===this.selection}},{key:"onClick",value:function(e){var n=e.target,a=yD(n,".k-chip-remove-action"),o=yD(n,".k-chip"),s=this.chips.find(function(u){return o===u.element.nativeElement});a&&o&&this.remove.emit({sender:this,originalEvent:e,removedChip:s}),"none"!==this.selection&&o&&!a&&this.setSelection(s)}},{key:"ngOnInit",value:function(){var e=this;this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){var e=this;["size"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngAfterContentInit",value:function(){var e=this;this.chips.forEach(function(n){e.renderer.setAttribute(n.element.nativeElement,"role","option")})}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"selectedChips",value:function(){return this.chips.reduce(function(e,n,a){return n.selected?e.concat(a):e},[])}},{key:"setSelection",value:function(e){"single"===this.selection&&this.clearSelection(e),e.selected=!e.selected,this.selectedChange.emit(this.selectedChips())}},{key:"clearSelection",value:function(e){this.chips.forEach(function(n){e!==n&&(n.selected=!1)})}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=AI("chip-list",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-chiplist"],["kendo-chip-list"]],contentQueries:function(t,e,n){var a;1&t&&he(n,UW,4),2&t&&P(a=B())&&(e.chips=a)},hostVars:8,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(ie("dir",e.direction)("role",e.role),ue("k-chip-list",e.hostClass)("k-selection-single",e.single)("k-selection-multiple",e.multiple))},inputs:{selection:"selection",size:"size"},outputs:{selectedChange:"selectedChange",remove:"remove"},features:[de([Y,{provide:Dt,useValue:"kendo.chiplist"}])],ngContentSelectors:MW,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),rRe=([].concat([UW,nRe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}());function aRe(i,r){var t={horizontal:r?"right":"left",vertical:"bottom"};return"end"===i.horizontal&&(t.horizontal=r?"left":"right"),"bottom"===i.vertical&&(t.vertical="top"),"bottom"===i.vertical&&"end"===i.horizontal&&(t.horizontal=r?"left":"right",t.vertical="top"),t}function oRe(i,r){var t={horizontal:r?"right":"left",vertical:"top"};return"end"===i.horizontal&&(t.horizontal=r?"left":"right"),"bottom"===i.vertical&&(t.vertical="bottom"),"bottom"===i.vertical&&"end"===i.horizontal&&(t.horizontal=r?"left":"right",t.vertical="bottom"),t}var zW=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDialItemTemplate",""]]}),i}(),HW=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoFloatingActionButtonTemplate",""]]}),i}(),KW=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.localisationService=n,this.hostClass=!0,this.role="menuitem"}return v(r,[{key:"disabledClass",get:function(){return this.item.disabled}},{key:"title",get:function(){return this.item.label||this.itemTitle}},{key:"indexAttr",get:function(){return this.index}},{key:"iconClasses",get:function(){var e=[];return this.item.iconClass&&e.push("".concat(this.item.iconClass)),this.item.icon&&e.push("k-fab-item-icon k-icon k-i-".concat(this.item.icon)),e}},{key:"itemTitle",get:function(){var e=this.item.icon,n=this.item.itemTitle;return e&&n?n:e}},{key:"ngAfterViewInit",value:function(){this.renderer.addClass(this.element.nativeElement,this.getTextDirectionClass(this.localisationService.rtl,this.align.horizontal))}},{key:"getTextDirectionClass",value:function(e,n){return{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[e?"rtl":"ltr"]["end"===n?"end":"start"]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoDialItem",""]],hostVars:9,hostBindings:function(t,e){2&t&&(ie("role",e.role)("aria-disabled",e.disabledClass)("title",e.title)("aria-label",e.title)("data-fab-item-index",e.indexAttr),ue("k-fab-item",e.hostClass)("k-disabled",e.disabledClass))},inputs:{cssClass:"cssClass",cssStyle:"cssStyle",isFocused:"isFocused",index:"index",item:"item",dialItemTemplate:"dialItemTemplate",align:"align"},attrs:xMe,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","k-fab-item-text",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"k-fab-item-text"],[3,"ngClass"]],template:function(t,e){1&t&&(T(0,OMe,1,6,null,0),T(1,FMe,3,2,"ng-container",0)),2&t&&(y("ngIf",e.dialItemTemplate),k(1),y("ngIf",!e.dialItemTemplate))},directives:[qe,En,Nt],encapsulation:2}),i}(),jW=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.focusService=t,this.cdr=e,this.hostClass=!0,this.subscriptions=new Je,this.subscriptions.add(this.focusService.onFocus.subscribe(function(){return n.cdr.detectChanges()}))}return v(r,[{key:"bottomClass",get:function(){return"top"===this.align.vertical||"middle"===this.align.vertical}},{key:"topClass",get:function(){return"bottom"===this.align.vertical}},{key:"isFocused",value:function(e){return this.focusService.isFocused(e)}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(CD),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoDialList",""]],hostVars:6,hostBindings:function(t,e){2&t&&ue("k-fab-items",e.hostClass)("k-fab-items-bottom",e.bottomClass)("k-fab-items-top",e.topClass)},inputs:{dialItems:"dialItems",dialItemTemplate:"dialItemTemplate",align:"align"},attrs:LMe,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoButtonFocusable","","kendoDialItem","",3,"item","index","dialItemTemplate","isFocused","ngClass","ngStyle","align"]],template:function(t,e){1&t&&T(0,PMe,2,7,"ng-container",0),2&t&&y("ngForOf",e.dialItems)},directives:[KW,gn,MI,Nt,Vi],encapsulation:2}),i}(),cRe={provide:bD,useValue:{useLeftRightArrows:!1}},WW={small:"k-fab-sm",medium:"k-fab-md",large:"k-fab-lg"},$W={small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"},qW="k-fab-solid",SD="16px",YW="primary",fRe=function(){var i=function(){function r(t,e,n,a,o,s,l,u){var c=this;p(this,r),this.renderer=t,this.element=e,this.focusService=n,this.navigationService=a,this.ngZone=o,this.popupService=s,this.builder=l,this.localizationService=u,this.positionMode="fixed",this.dialItemAnimation=!0,this.tabIndex=0,this.dialItems=[],this.onBlur=new O,this.onFocus=new O,this.dialItemClick=new O,this.open=new O,this.close=new O,this.id="k-".concat(qn()),this._themeColor=YW,this._size="medium",this._rounded="full",this._disabled=!1,this._align={horizontal:"end",vertical:"bottom"},this._offset={x:SD,y:SD},this.subscriptions=new Je,this.rtl=!1,this.animationEnd=new O,this.initialSetup=!0,jt(ug),this.subscribeNavigationEvents(),this.subscriptions.add(this.localizationService.changes.subscribe(function(d){c.rtl=d.rtl,c.direction=c.rtl?"rtl":"ltr"}))}return v(r,[{key:"fixedClass",get:function(){return"fixed"===this.positionMode}},{key:"absoluteClass",get:function(){return"absolute"===this.positionMode}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){var n=e||YW;this.handleClasses(n,"themeColor"),this._themeColor=n}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"full";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=e}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign(this._align,e)}},{key:"offset",get:function(){return this._offset},set:function(e){this._offset=Object.assign(this._offset,e),this.offsetStyles()}},{key:"componentTabIndex",get:function(){return this.disabled?-1:this.tabIndex}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","themeColor"].forEach(function(n){return e.handleClasses(e[n],n)}),this.renderer.addClass(this.element.nativeElement,this.alignClass()),this.offsetStyles(),this.initialSetup=!1}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"isOpen",get:function(){return qa(this.popupRef)}},{key:"focus",value:function(){Ze()&&this.button.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.button.nativeElement.blur()}},{key:"toggleDial",value:function(e){var n=this;if(!this.disabled&&this.hasDialItems){var a=qa(e)?e:!this.isOpen;this.disabled||a===this.isOpen||(a?setTimeout(function(){return n.openDial()}):this.closeDial())}}},{key:"role",get:function(){return this.dialItems&&this.dialItems.length?"menubutton":"button"}},{key:"ariaExpanded",get:function(){return qa(this.isOpen)}},{key:"ariaHasPopup",get:function(){return qa(this.isOpen)}},{key:"iconClasses",get:function(){var e=[];return this.iconClass&&e.push("".concat(this.iconClass)),this.icon&&e.push("k-fab-icon k-icon k-i-".concat(this.icon)),e}},{key:"clickHandler",value:function(){var e=this;this.disabled||!this.hasDialItems||this.ngZone.run(function(){e.toggleDialWithEvents(!e.isOpen)})}},{key:"keyDownHandler",value:function(e){this.keyHandler(e)}},{key:"keyHandler",value:function(e,n){if(!this.disabled){var s=this.navigationService.process({altKey:e.altKey,current:this.focusService.focused||0,keyCode:e.keyCode,keyEvent:n,max:this.dialItems?this.dialItems.length-1:0,min:0,flipNavigation:"bottom"===this.align.vertical});s!==Vr.Undefined&&s!==Vr.Tab&&e.preventDefault()}}},{key:"onItemClick",value:function(e){var n=yD(e.target,".k-fab-item");if(n){var a=n.getAttribute("data-fab-item-index");this.emitItemClick(a)}}},{key:"focusHandler",value:function(){this.disabled||this.onFocus.emit()}},{key:"blurHandler",value:function(){this.onBlur.emit(),this.toggleDialWithEvents(!1)}},{key:"handleClasses",value:function(e,n){if(qa(this.button)&&(this[n]!==e||this.initialSetup)){var a=this.button.nativeElement,o={themeColor:"".concat(qW,"-").concat(this.themeColor),size:WW[this.size],rounded:$W[this.rounded]},s={themeColor:"none"!==e?"".concat(qW,"-").concat(e):"",size:WW[e],rounded:$W[e]};this.renderer.removeClass(a,o[n]),s[n]&&this.renderer.addClass(a,s[n])}}},{key:"onEnterPressed",value:function(){this.emitItemClick(this.focusService.focused)}},{key:"emitItemClick",value:function(e){var n=this.dialItems[e];n&&!n.disabled&&(this.dialItemClick.emit({item:n,index:e}),this.toggleDialWithEvents(!1))}},{key:"subscribeNavigationEvents",value:function(){this.subscriptions.add(this.navigationService.navigate.subscribe(this.onArrowKeyNavigate.bind(this))),this.subscriptions.add(this.navigationService.enter.subscribe(this.onNavigationEnterPress.bind(this))),this.subscriptions.add(xn(this.navigationService.close,this.navigationService.esc).subscribe(this.onNavigationClose.bind(this)))}},{key:"onArrowKeyNavigate",value:function(e){this.focusService.focus(e)}},{key:"onNavigationEnterPress",value:function(){var e=this;this.ngZone.run(function(){if(e.isOpen){var n=e.focusService.focused,a=e.dialItems[n];if(a&&a.disabled)return;if(qa(n)&&-1!==n)return void e.onEnterPressed()}!e.isOpen&&Ze()&&(e.toggleDialWithEvents(!0),e.button.nativeElement.focus())})}},{key:"onNavigationClose",value:function(){var e=this;this.isOpen&&this.ngZone.run(function(){e.toggleDialWithEvents(!1),Ze()&&e.button.nativeElement.focus()})}},{key:"alignClass",value:function(){return"k-pos-".concat(this.align.vertical,"-").concat(this.align.horizontal)}},{key:"toggleDialWithEvents",value:function(e){if(e!==this.isOpen){var n=new PW;e?this.open.emit(n):this.close.emit(n),!n.isDefaultPrevented()&&(e?this.openDial():this.closeDial())}}},{key:"openPopup",value:function(){var e=this;if(!this.isOpen){var n=this.icon&&!this.text,a=this.rtl,o=this.align;this.popupRef=this.popupService.open({anchor:this.element.nativeElement,animate:!1,content:this.popupTemplate,anchorAlign:aRe(o,a),popupAlign:oRe(o,a),popupClass:"k-fab-popup k-popup-transparent"});var s=this.popupRef.popupElement;this.renderer.setStyle(s,"box-shadow","none"),n&&this.subscriptions.add(this.popupRef.popupOpen.subscribe(function(){return e.positionPopup()})),this.ngZone.runOutsideAngular(function(){e.popupMouseDownListener=e.renderer.listen(s,"mousedown",function(l){l.preventDefault()})}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.toggleDialWithEvents(!1)})}}},{key:"closePopup",value:function(){this.isOpen&&(this.popupMouseDownListener&&this.popupMouseDownListener(),this.popupRef.close(),this.popupRef=null)}},{key:"openDial",value:function(){this.openPopup(),this.focusService.focus(0),this.dialItemAnimation&&this.isValidAnimation()&&this.playAnimation(!0)}},{key:"closeDial",value:function(){var e=this;this.dialItemAnimation&&this.isValidAnimation()?(this.playAnimation(!1),this.animationEnd.pipe(It(1)).subscribe(function(){return e.closePopup()})):this.closePopup()}},{key:"isValidAnimation",value:function(){var e=this.dialItemAnimation;return"boolean"==typeof e||0!==e.duration}},{key:"positionPopup",value:function(){if(!this.dialItemTemplate){var n=this.element.nativeElement.getBoundingClientRect().width,a=this.popupRef.popupElement,o=a.querySelector(".k-fab-item-icon");if(o){var l=n/2-o.getBoundingClientRect().width/2,u=a.getBoundingClientRect().left,c="end"===this.align.horizontal;a.style.left="".concat(this.rtl?c?l+u:u-l:c?u-l:l+u,"px")}}}},{key:"offsetStyles",value:function(){var e=this.element.nativeElement;this.renderer.setStyle(e,this.horizontalPosition,this.horizontalOffset),this.renderer.setStyle(e,this.verticalPosition,this.verticalOffset)}},{key:"hasDialItems",get:function(){return qa(this.dialItems)&&0!==this.dialItems.length}},{key:"verticalPosition",get:function(){return{top:"top",middle:"top",bottom:"bottom"}[this.align.vertical]}},{key:"verticalOffset",get:function(){return"middle"===this.align.vertical?this.offset.y===SD?"50%":"calc(50% + ".concat(this.offset.y,")"):this.offset.y}},{key:"horizontalPosition",get:function(){return{end:this.rtl?"left":"right",center:"left",start:this.rtl?"right":"left"}[this.align.horizontal]}},{key:"horizontalOffset",get:function(){return"center"===this.align.horizontal?this.offset.x===SD?"50%":"calc(50% + ".concat(this.offset.x,")"):this.offset.x}},{key:"playerFor",value:function(e,n){return this.builder.build(n).create(e)}},{key:"playAnimation",value:function(e){var n=this,a=this.durationSettings(),o={duration:a.duration,gap:a.gap,align:this.align},s=e?function sRe(i){var t=i.duration,e=i.gap;return Dw([DK(".k-fab-item",[Ft({opacity:0,transform:"translateY(".concat("bottom"===i.align.vertical?"8px":"-8px",")")}),EK(e,[Ai("".concat(t,"ms ease-in"),Ft({opacity:"*",transform:"translateY(0)"}))])],{optional:!0})])}(o):function lRe(i){var r="bottom"===i.align.vertical,t=i.duration,e=i.gap;return Dw([DK(".k-fab-item",[Ft({opacity:"*",transform:"translateY(0)"}),EK(-e,[Ai("".concat(t,"ms ease-in"),Ft({opacity:0,transform:"translateY(".concat(r?"8px":"-8px",")")}))])],{optional:!0})])}(o),l=this.playerFor(this.popupRef.popupElement,s);l.play(),l.onDone(function(){l&&(n.animationEnd.emit(),l.destroy(),l=null)})}},{key:"durationSettings",value:function(){return{duration:this.animationDuration(),gap:this.animationGap()}}},{key:"animationGap",value:function(){var e=this.dialItemAnimation;return"boolean"!=typeof e&&qa(e.gap)?e.gap:90}},{key:"animationDuration",value:function(){var e=this.dialItemAnimation;return"boolean"!=typeof e&&qa(e.duration)?e.duration:180}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(CD),m(VW),m(be),m(kr),m(zp),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-floatingactionbutton"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,zW,5),he(n,HW,5)),2&t&&(P(a=B())&&(e.dialItemTemplate=a.first),P(a=B())&&(e.fabTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(CMe,7),ge(bMe,7)),2&t&&(P(n=B())&&(e.button=n.first),P(n=B())&&(e.popupTemplate=n.first))},hostVars:5,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-pos-fixed",e.fixedClass)("k-pos-absolute",e.absoluteClass))},inputs:{themeColor:"themeColor",size:"size",rounded:"rounded",disabled:"disabled",align:"align",offset:"offset",positionMode:"positionMode",icon:"icon",iconClass:"iconClass",buttonClass:"buttonClass",dialClass:"dialClass",text:"text",dialItemAnimation:"dialItemAnimation",tabIndex:"tabIndex",dialItems:"dialItems"},outputs:{onBlur:"blur",onFocus:"focus",dialItemClick:"dialItemClick",open:"open",close:"close"},features:[de([CD,VW,cRe,Y,{provide:Dt,useValue:"kendo.floatingactionbutton"}])],decls:6,vars:17,consts:[["type","button",1,"k-fab","k-fab-solid",3,"tabIndex","ngClass","disabled","kendoEventsOutsideAngular","scope","focus","blur"],["button",""],[4,"ngIf"],["popupTemplate",""],[3,"ngTemplateOutlet"],[3,"ngClass",4,"ngIf"],["class","k-fab-text",4,"ngIf"],[3,"ngClass"],[1,"k-fab-text"],["kendoDialList","",3,"ngClass","dialItems","dialItemTemplate","align","click"]],template:function(t,e){1&t&&(A(0,"button",0,1),Q("focus",function(){return e.focusHandler()})("blur",function(){return e.blurHandler()}),T(2,GMe,1,1,null,2),T(3,zMe,3,2,"ng-container",2),x(),T(4,HMe,1,5,"ng-template",null,3,$n)),2&t&&(ue("k-disabled",e.disabled),y("tabIndex",e.componentTabIndex)("ngClass",e.buttonClass)("disabled",e.disabled)("kendoEventsOutsideAngular",ln(14,KMe,e.keyDownHandler,e.clickHandler))("scope",e),ie("id",e.id)("role",e.role)("aria-disabled",e.disabled)("aria-expanded",e.ariaExpanded)("aria-haspopup",e.ariaHasPopup),k(2),y("ngIf",e.fabTemplate),k(1),y("ngIf",!e.fabTemplate))},directives:[jW,Nt,qi,qe,En],encapsulation:2}),i}(),pRe=([].concat([fRe,zW,HW],[jW,KW]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Fa,jy,cr]]}),i}()),gRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[XMe,kD,JMe,tRe,rRe,pRe]}),i}();function le(i,r){return r||(r=i.slice(0)),Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(r)}}))}function Qr(i){return oi(function(r,t){Pi(i).subscribe(Wn(t,function(){return t.complete()},Fh)),!t.closed&&r.subscribe(t)})}var mRe=["progressStatus"],_Re=["progressStatusWrap"];function yRe(i,r){if(1&i&&(A(0,"span",6),te(1),x()),2&i){var t=D();k(1),at(t.formattedLabelValue)}}function kRe(i,r){if(1&i&&(A(0,"span",6),te(1),x()),2&i){var t=D();k(1),at(t.formattedLabelValue)}}var t7,n7,bRe={name:"@progress/kendo-angular-progressbar",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650441158,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},QW=function(r,t,e){return Math.max(Math.min(e,t),r)},RI=function(r,t,e){return Math.max((e-r)/(t-r),1e-4)},OI=function(r,t,e){return r[t]&&void 0!==r[t].currentValue?r[t].currentValue:e},JW=function(){var i=function(){function r(t){var e=this;p(this,r),this.localization=t,this.widgetClasses=!0,this.roleAttribute="progressbar",this.max=100,this.min=0,this.value=0,this.orientation="horizontal",this.disabled=!1,this.reverse=!1,this.indeterminate=!1,this.displayValue=0,this.previousValue=0,jt(bRe),this.localizationChangeSubscription=t.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"})}return v(r,[{key:"isHorizontal",get:function(){return"horizontal"===this.orientation}},{key:"isVertical",get:function(){return"vertical"===this.orientation}},{key:"disabledClass",get:function(){return this.disabled}},{key:"reverseClass",get:function(){return this.reverse}},{key:"indeterminateClass",get:function(){return this.indeterminate}},{key:"dirAttribute",get:function(){return this.direction}},{key:"ariaMinAttribute",get:function(){return String(this.min)}},{key:"ariaMaxAttribute",get:function(){return String(this.max)}},{key:"ariaValueAttribute",get:function(){return this.indeterminate?void 0:String(this.displayValue)}},{key:"isCompleted",get:function(){return this.value===this.max}},{key:"statusWidth",get:function(){return"horizontal"===this.orientation?100*this._progressRatio:100}},{key:"statusHeight",get:function(){return"vertical"===this.orientation?100*this._progressRatio:100}},{key:"statusWrapperWidth",get:function(){return"horizontal"===this.orientation?100/this._progressRatio:100}},{key:"statusWrapperHeight",get:function(){return"vertical"===this.orientation?100/this._progressRatio:100}},{key:"_progressRatio",get:function(){return RI(this.min,this.max,this.displayValue)}},{key:"ngOnChanges",value:function(e){var n=OI(e,"min",this.min),a=OI(e,"max",this.max),o=OI(e,"value",this.value);if(e.min||e.max||e.value){if((e.min||e.max)&&function(r,t){if(xt&&r>t)throw new Error("The max value should be greater than the min.")}(n,a),e.value){(null==o||Number.isNaN(o))&&(this.value=n);var s=this.displayValue;this.displayValue=QW(this.min,this.max,o),this.previousValue=s}this.min=n,this.max=a,this.displayValue=QW(this.min,this.max,o)}}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["ng-component"]],hostVars:19,hostBindings:function(t,e){2&t&&(ie("dir",e.dirAttribute)("role",e.roleAttribute)("aria-valuemin",e.ariaMinAttribute)("aria-valuemax",e.ariaMaxAttribute)("aria-valuenow",e.ariaValueAttribute),ue("k-widget",e.widgetClasses)("k-progressbar",e.widgetClasses)("k-progressbar-horizontal",e.isHorizontal)("k-progressbar-vertical",e.isVertical)("k-state-disabled",e.disabledClass)("k-progressbar-reverse",e.reverseClass)("k-progressbar-indeterminate",e.indeterminateClass))},inputs:{max:"max",min:"min",value:"value",orientation:"orientation",disabled:"disabled",reverse:"reverse",indeterminate:"indeterminate"},features:[Ie],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),e7=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n)).localization=n,s.zone=a,s.renderer=o,s.label=!0,s.animation=!1,s.animationEnd=new O,s}return v(e,[{key:"showLabel",get:function(){return"boolean"==typeof this.label?this.label:(this.label&&!this.label.hasOwnProperty("visible")&&(this.label.visible=!0),this.label.visible)}},{key:"labelPosition",get:function(){return"boolean"==typeof this.label?"end":(this.label&&!this.label.hasOwnProperty("position")&&(this.label.position="end"),this.label.position)}},{key:"isPositionStart",get:function(){return"start"===this.labelPosition}},{key:"isPositionCenter",get:function(){return"center"===this.labelPosition}},{key:"isPositionEnd",get:function(){return"end"===this.labelPosition}},{key:"formattedLabelValue",get:function(){return function(r,t,e,n){var a=function(r){var t=r.toString().split(".");return 1===t.length?"".concat(t[0]):"".concat(t[0],".").concat(t[1].substr(0,3))}(r);if("boolean"!=typeof n){if("string"!=typeof n.format)return"function"==typeof n.format?n.format(r):a;switch(n.format){case"value":default:return a;case"percent":return"".concat(Math.floor(function(r,t,e){var n=Math.abs((e-t)/100);return Math.abs((r-t)/n)}(r,t,e)),"%")}}return a}(this.displayValue,this.min,this.max,this.label)}},{key:"ngOnChanges",value:function(a){$(q(e.prototype),"ngOnChanges",this).call(this,a),this.isAnimationInProgress&&function(r){var t=Boolean(r.animation);return t&&!(t&&r.animation.currentValue)}(a)&&(this.cancelCurrentAnimation=!0),function(r,t,e,n){return t&&"undefined"!=typeof requestAnimationFrame&&r.value&&e!==n}(a,this.animation,this.previousValue,this.displayValue)&&!a.value.firstChange&&this.startAnimation(this.previousValue)}},{key:"ngOnDestroy",value:function(){this.animationFrame&&cancelAnimationFrame(this.animationFrame)}},{key:"startAnimation",value:function(a){var o=this;this.isAnimationInProgress=!0;var s=this.progressStatusElement.nativeElement,l=this.progressStatusWrapperElement.nativeElement,u=this.getAnimationOptions(a);this.zone.runOutsideAngular(function(){o.animationFrame&&cancelAnimationFrame(o.animationFrame),function d(){var h=(new Date).getTime()-u.startTime,f=Math.min(h/u.duration,1),g=u.startSize+u.deltaSize*f;if(o.renderValueChange(s,l,u.property,g,100/g*100),f<1){if(o.cancelCurrentAnimation)return void o.resetProgress(s,l,u.property);o.animationFrame=requestAnimationFrame(d)}else o.stopAnimation(a)}()})}},{key:"animationDuration",get:function(){return"boolean"==typeof this.animation?400:(this.animation&&!this.animation.hasOwnProperty("duration")&&(this.animation.duration=400),this.animation.duration)}},{key:"stopAnimation",value:function(a){var o=this;ut(this.animationEnd)&&this.zone.run(function(){o.animationEnd.emit({from:a,to:o.displayValue})}),this.zone.run(function(){o.isAnimationInProgress=!1})}},{key:"getAnimationOptions",value:function(a){var o="horizontal"===this.orientation,s=RI(this.min,this.max,a),l=o?100*s:100,u=o?100:100*s,c=o?"width":"height",d=(new Date).getTime(),f=o?this.statusWidth-l:this.statusHeight-u;return{property:c,startTime:d,startSize:o?l:u,deltaSize:f,duration:this.animationDuration*Math.abs(f/100)}}},{key:"renderValueChange",value:function(a,o,s,l,u){this.renderer.setStyle(a,s,l+"%"),this.renderer.setStyle(o,s,u+"%")}},{key:"resetProgress",value:function(a,o,s){var l=this,u=RI(this.min,this.max,this.value);this.renderValueChange(a,o,s,100*u,100/u),this.zone.run(function(){l.cancelCurrentAnimation=!1,l.isAnimationInProgress=!1})}}]),e}(JW);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-progressbar"]],viewQuery:function(t,e){var n;1&t&&(ge(mRe,5),ge(_Re,5)),2&t&&(P(n=B())&&(e.progressStatusElement=n.first),P(n=B())&&(e.progressStatusWrapperElement=n.first))},inputs:{label:"label",progressCssStyle:"progressCssStyle",progressCssClass:"progressCssClass",emptyCssStyle:"emptyCssStyle",emptyCssClass:"emptyCssClass",animation:"animation"},outputs:{animationEnd:"animationEnd"},exportAs:["kendoProgressBar"],features:[de([Y,{provide:Dt,useValue:"kendo.progressbar"}]),j,Ie],decls:7,vars:28,consts:[[1,"k-progress-status-wrap",3,"ngStyle","ngClass"],["class","k-progress-status",4,"ngIf"],[1,"k-state-selected",3,"ngStyle","ngClass"],["progressStatus",""],[1,"k-progress-status-wrap"],["progressStatusWrap",""],[1,"k-progress-status"]],template:function(t,e){1&t&&(A(0,"span",0),T(1,yRe,2,1,"span",1),x(),A(2,"div",2,3)(4,"span",4,5),T(6,kRe,2,1,"span",1),x()()),2&t&&(ue("k-progress-start",e.isPositionStart)("k-progress-center",e.isPositionCenter)("k-progress-end",e.isPositionEnd),y("ngStyle",e.emptyCssStyle)("ngClass",e.emptyCssClass),k(1),y("ngIf",e.showLabel),k(1),Qe("width",e.statusWidth,"%")("height",e.statusHeight,"%"),ue("k-complete",e.isCompleted),y("ngStyle",e.progressCssStyle)("ngClass",e.progressCssClass),k(2),Qe("width",e.statusWrapperWidth,"%")("height",e.statusWrapperHeight,"%"),ue("k-progress-start",e.isPositionStart)("k-progress-center",e.isPositionCenter)("k-progress-end",e.isPositionEnd),k(2),y("ngIf",e.showLabel))},directives:[Vi,Nt,qe],encapsulation:2}),i}(),NRe=[bt],FRe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[NRe]}),i}(),LRe=["header"],PRe=["contentWrapper"];function BRe(i,r){1&i&&z(0,"span",6),2&i&&y("ngClass",D().iconClasses)}function GRe(i,r){1&i&&z(0,"img",7),2&i&&y("src",D().imageUrl,uc)}function VRe(i,r){if(1&i&&(Ge(0),A(1,"span",8),te(2),x(),Ve()),2&i){var t=D();k(2),at(t.title)}}function URe(i,r){}var zRe=function(r,t,e,n,a,o,s,l,u,c){return{title:r,id:t,icon:e,iconClass:n,imageUrl:a,selected:o,expanded:s,disabled:l,focused:u,content:c}},HRe=function(r){return{item:r}};function KRe(i,r){if(1&i&&T(0,URe,0,0,"ng-template",9),2&i){var t=D();y("ngTemplateOutlet",t.titleTemplate)("ngTemplateOutletContext",ot(13,HRe,lR(2,zRe,[t.title,t.id,t.icon,t.iconClass,t.imageUrl,t.selected,t.expanded,t.disabled,t.focused,t.content])))}}var jRe=function(r,t){return{"k-i-arrow-chevron-up k-panelbar-collapse":r,"k-i-arrow-chevron-down k-panelbar-expand":t}};function WRe(i,r){if(1&i&&z(0,"span",10),2&i){var t=D();y("ngClass",ln(1,jRe,t.expanded,!t.expanded))}}function $Re(i,r){if(1&i&&(A(0,"div",14),dn(1),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight)}}function qRe(i,r){}var i7=function(r,t,e,n,a,o){return{title:r,id:t,icon:e,imageUrl:n,disabled:a,content:o}},II=function(r){return{$implicit:r}};function XRe(i,r){if(1&i&&(A(0,"div",15),T(1,qRe,0,0,"ng-template",9),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngTemplateOutlet",t.contentTemplate.first.templateRef)("ngTemplateOutletContext",ot(13,II,ay(6,i7,t.title,t.id,t.icon,t.imageUrl,t.disabled,t.content)))}}function ZRe(i,r){if(1&i&&z(0,"kendo-panelbar-item",18),2&i){var t=D().$implicit,e=D(3);y("title",t.title)("id",t.id)("icon",t.icon)("iconClass",t.iconClass)("imageUrl",t.imageUrl)("selected",!!t.selected)("expanded",!!t.expanded)("disabled",!!t.disabled)("template",e.template)("items",t.children)("content",t.content)}}function YRe(i,r){if(1&i&&(Ge(0),T(1,ZRe,1,11,"kendo-panelbar-item",17),Ve()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.hidden)}}function QRe(i,r){if(1&i&&(A(0,"div",14),T(1,YRe,2,1,"ng-container",16),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngForOf",t.items)}}function JRe(i,r){}function eOe(i,r){1&i&&te(0),2&i&&at(D(3).content)}function tOe(i,r){if(1&i&&(A(0,"div",15),T(1,JRe,0,0,"ng-template",9),T(2,eOe,1,1,"ng-template",19),x()),2&i){var t=D(2);Qe("overflow",t.contentOverflow)("height",t.contentHeight),k(1),y("ngTemplateOutlet",t.template)("ngTemplateOutletContext",ot(14,II,ay(7,i7,t.title,t.id,t.icon,t.imageUrl,t.disabled,t.content))),k(1),y("ngIf",!t.template)}}function nOe(i,r){if(1&i&&(A(0,"div",null,11),T(2,$Re,2,4,"div",12),T(3,XRe,2,15,"div",13),T(4,QRe,2,5,"div",12),T(5,tOe,3,16,"div",13),x()),2&i){var t=D();y("@toggle",t.state),ie("role","group")("aria-hidden",!t.disabled&&!t.expanded),k(2),y("ngIf",t.hasChildItems&&!(null!=t.items&&t.items.length)),k(1),y("ngIf",t.hasContent&&!t.content),k(1),y("ngIf",t.hasItems),k(1),y("ngIf",t.content)}}var r7=[[["kendo-panelbar-item"]]],a7=["kendo-panelbar-item"];function iOe(i,r){1&i&&dn(0,0,["*ngIf","contentChildItems && !items"])}function rOe(i,r){if(1&i&&z(0,"kendo-panelbar-item",4),2&i){var t=D().$implicit,e=D(2);y("title",t.title)("id",t.id)("icon",t.icon)("iconClass",t.iconClass)("imageUrl",t.imageUrl)("selected",!!t.selected)("expanded",!!t.expanded)("disabled",!!t.disabled)("template",e.templateRef)("items",t.children)("content",t.content)}}function aOe(i,r){if(1&i&&(Ge(0),T(1,rOe,1,11,"kendo-panelbar-item",3),Ve()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.hidden)}}function oOe(i,r){1&i&&T(0,aOe,2,1,"ng-container",2),2&i&&y("ngForOf",D().items)}function sOe(i,r){1&i&&(Ge(0),dn(1),Ve())}function lOe(i,r){1&i&&z(0,"div",2)}var _a=["*"];function uOe(i,r){if(1&i&&z(0,"kendo-splitter-bar",2),2&i){var t=D().index,e=D();y("index",t)("orientation",e.orientation)}}function cOe(i,r){if(1&i&&(Ge(0),T(1,uOe,1,2,"kendo-splitter-bar",1),Ve()),2&i){var t=r.last;k(1),y("ngIf",!t)}}var dOe=[[["kendo-splitter-pane"]]],hOe=["kendo-splitter-pane"],fOe=["kendoTabStripScrollableButton",""],vOe=["kendoTabStripTab",""];function pOe(i,r){if(1&i&&(A(0,"span",2),te(1),x()),2&i){var t=D();k(1),at(t.tab.title)}}function gOe(i,r){}function mOe(i,r){if(1&i&&(A(0,"span",2),T(1,gOe,0,0,"ng-template",3),x()),2&i){var t=D();k(1),y("ngTemplateOutlet",null==t.tab.tabTitle?null:t.tab.tabTitle.templateRef)}}function _Oe(i,r){if(1&i){var t=xe();A(0,"span",4),Q("click",function(){re(t);var a=D();return a.closeTab(a.index)}),z(1,"span",5),x()}if(2&i){var e=D();y("title",e.closeButtonTitle),ie("aria-label",e.closeButtonTitle),k(1),y("ngClass",e.closeButtonClasses)}}var yOe=["tablist"],kOe=["prevScrollButton"],COe=["nextScrollButton"],bOe=["tabHeaderContainer"];function SOe(i,r){1&i&&Wt(0)}function wOe(i,r){1&i&&Wt(0)}function DOe(i,r){if(1&i&&(Ge(0),T(1,SOe,1,0,"ng-container",5),T(2,wOe,1,0,"ng-container",5),Ve()),2&i){D();var t=Yt(4),e=Yt(6);k(1),y("ngTemplateOutlet",t),k(1),y("ngTemplateOutlet",e)}}function EOe(i,r){1&i&&Wt(0)}function TOe(i,r){1&i&&Wt(0)}function AOe(i,r){if(1&i&&(Ge(0),T(1,EOe,1,0,"ng-container",5),T(2,TOe,1,0,"ng-container",5),Ve()),2&i){D();var t=Yt(6),e=Yt(4);k(1),y("ngTemplateOutlet",t),k(1),y("ngTemplateOutlet",e)}}function xOe(i,r){if(1&i){var t=xe();A(0,"span",11,12),Q("tabScroll",function(a){return re(t),D(2).tabScroll.emit(a)})("onClick",function(a){return re(t),D(2).onScrollButtonClick(a)}),x()}if(2&i){var e=D(2);y("scrollable",e.scrollable)("tabPosition",e.tabPosition)("prev",!0)}}function MOe(i,r){if(1&i){var t=xe();Ge(0),A(1,"li",13,14),Q("tabClose",function(s){return re(t),D(2).tabClose.emit(s)})("click",function(s){var u=re(t).index;return D(2).onTabClick(s,u)}),x(),Ve()}if(2&i){var e=r.$implicit,n=r.index,a=D(2);k(1),y("ngClass",e.cssClass)("ngStyle",e.cssStyle)("tab",e)("index",n)("tabStripClosable",a.closable)("tabStripCloseIcon",a.closeIcon)("id","k-tabstrip-tab-"+n),ie("aria-controls","k-tabstrip-tabpanel-"+n)}}function ROe(i,r){if(1&i){var t=xe();A(0,"span",11,15),Q("tabScroll",function(a){return re(t),D(2).tabScroll.emit(a)})("onClick",function(a){return re(t),D(2).onScrollButtonClick(a)}),x()}if(2&i){var e=D(2);y("scrollable",e.scrollable)("tabPosition",e.tabPosition)("prev",!1)}}function OOe(i,r){if(1&i&&(A(0,"div",6),T(1,xOe,2,3,"span",7),A(2,"ul",8,9),T(4,MOe,3,8,"ng-container",10),x(),T(5,ROe,2,3,"span",7),x()),2&i){var t=D();y("ngClass",t.itemsWrapperClass),k(1),y("ngIf",t.hasScrollButtons),k(1),Qe("justify-content",t.tabsAlignmentStyles)("width",t.tabListWidth)("height",t.tabListHeight),k(2),y("ngForOf",t.tabs),k(1),y("ngIf",t.hasScrollButtons)}}function IOe(i,r){}function NOe(i,r){if(1&i&&(A(0,"div",18),T(1,IOe,0,0,"ng-template",19),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D(2);y("@state",e.selected&&a.animate?"active":"inactive")("ngClass",!a.keepTabContent||e.selected?"k-content k-state-active":"k-content")("tabIndex",0)("id","k-tabstrip-tabpanel-"+n),ie("aria-hidden",!e.selected)("aria-expanded",e.selected)("aria-labelledby","k-tabstrip-tab-"+n)("aria-disabled",e.disabled),k(1),y("ngTemplateOutlet",null==e.tabContent?null:e.tabContent.templateRef)}}function FOe(i,r){if(1&i&&T(0,NOe,2,9,"div",17),2&i){var t=r.$implicit,e=D(2);y("ngIf",t.selected||e.keepTabContent)}}function LOe(i,r){1&i&&T(0,FOe,1,1,"ng-template",16),2&i&&y("ngForOf",D().tabs)}function POe(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().onResize()}),x()}}var BOe=["kendoDrawerItem",""];function GOe(i,r){}function VOe(i,r){if(1&i&&T(0,GOe,0,0,"ng-template",2),2&i){var t=D();y("ngTemplateOutlet",t.itemTemplate)("ngTemplateOutletContext",ot(2,II,t.item))}}function UOe(i,r){if(1&i&&(Ge(0),z(1,"span",4),A(2,"span",5),te(3),x(),Ve()),2&i){var t=D(2);k(1),y("ngClass",t.iconClasses),k(2),at(t.item.text)}}function zOe(i,r){if(1&i&&(Ge(0),z(1,"span",4),Ve()),2&i){var t=D(2);k(1),y("ngClass",t.iconClasses)}}function HOe(i,r){if(1&i&&(T(0,UOe,4,2,"ng-container",3),T(1,zOe,2,1,"ng-container",3)),2&i){var t=D();y("ngIf",t.expanded),k(1),y("ngIf",t.mini&&!t.expanded)}}var KOe=["kendoDrawerList",""];function jOe(i,r){if(1&i&&z(0,"li",3),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("item",e)("index",n)("mini",a.mini)("expanded",a.expanded)("itemTemplate",a.itemTemplate)("ngClass",e.cssClass)("ngStyle",e.cssStyle),ie("data-kendo-drawer-index",n)}}function WOe(i,r){if(1&i&&(A(0,"li",4),te(1," \xa0 "),x()),2&i){var t=D().$implicit;y("ngClass",t.cssClass)("ngStyle",t.cssStyle)}}function $Oe(i,r){if(1&i&&(Ge(0),T(1,jOe,1,8,"li",1),T(2,WOe,2,2,"li",2),Ve()),2&i){var t=r.$implicit;k(1),y("ngIf",!t.separator),k(1),y("ngIf",t.separator)}}function qOe(i,r){}function XOe(i,r){if(1&i&&T(0,qOe,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",null==t.headerTemplate?null:t.headerTemplate.templateRef)}}function ZOe(i,r){}function YOe(i,r){if(1&i&&T(0,ZOe,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",null==t.footerTemplate?null:t.footerTemplate.templateRef)}}function QOe(i,r){if(1&i){var t=xe();Ge(0),T(1,XOe,1,1,null,2),A(2,"ul",3),Q("select",function(a){return re(t),D(2).onSelect(a)}),x(),T(3,YOe,1,1,null,2),Ve()}if(2&i){var e=D(2);k(1),y("ngIf",e.headerTemplate),k(1),y("items",e.items)("mini",e.mini)("expanded",e.expanded)("itemTemplate",null==e.itemTemplate?null:e.itemTemplate.templateRef),k(1),y("ngIf",e.footerTemplate)}}function JOe(i,r){}function eIe(i,r){if(1&i&&T(0,JOe,0,0,"ng-template",4),2&i){var t=D(2);y("ngTemplateOutlet",null==t.drawerTemplate?null:t.drawerTemplate.templateRef)}}function tIe(i,r){if(1&i&&(A(0,"div",1),T(1,QOe,4,6,"ng-container",2),T(2,eIe,1,1,null,2),x()),2&i){var t=D();Qe("width",t.drawerWidth,"px"),k(1),y("ngIf",!t.drawerTemplate),k(1),y("ngIf",t.drawerTemplate)}}function nIe(i,r){if(1&i){var t=xe();A(0,"div",1),Q("click",function(){return re(t),D().closeDrawer()}),x()}}var iIe=["stepLink"],rIe=["kendoStepperStep",""];function aIe(i,r){}var NI=function(r,t){return{$implicit:r,index:t}};function oIe(i,r){if(1&i&&T(0,aIe,0,0,"ng-template",3),2&i){var t=D();y("ngTemplateOutlet",t.stepTemplate)("ngTemplateOutletContext",ln(2,NI,t.step,t.index))}}function sIe(i,r){}function lIe(i,r){if(1&i&&T(0,sIe,0,0,"ng-template",3),2&i){var t=D(3);y("ngTemplateOutlet",t.indicatorTemplate)("ngTemplateOutletContext",ln(2,NI,t.step,t.index))}}function uIe(i,r){1&i&&z(0,"span",9),2&i&&y("ngClass",D(4).indicatorIconClasses)}function cIe(i,r){if(1&i&&(A(0,"span",10),te(1),x()),2&i){var t=D(4);k(1),at(t.indicatorText)}}function dIe(i,r){if(1&i&&(Ge(0),T(1,uIe,1,1,"span",7),T(2,cIe,2,1,"span",8),Ve()),2&i){var t=D(3);k(1),y("ngIf",t.showIndicatorIcon),k(1),y("ngIf",!t.showIndicatorIcon)}}function hIe(i,r){if(1&i&&(A(0,"span",6),T(1,lIe,1,5,null,2),T(2,dIe,3,2,"ng-container",2),x()),2&i){var t=D(2);Qe("transition-duration",t.transitionDuration,"ms"),k(1),y("ngIf",t.indicatorTemplate),k(1),y("ngIf",!t.indicatorTemplate)}}function fIe(i,r){}function vIe(i,r){if(1&i&&T(0,fIe,0,0,"ng-template",3),2&i){var t=D(3);y("ngTemplateOutlet",t.labelTemplate)("ngTemplateOutletContext",ln(2,NI,t.step,t.index))}}function pIe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D(4);k(1),at(t.step.label)}}function gIe(i,r){1&i&&z(0,"span",16),2&i&&y("ngClass",D(4).validationIconClasses)}function mIe(i,r){if(1&i&&(A(0,"span",17),te(1),x()),2&i){var t=D(4);k(1),Pt("(",t.optionalText,")")}}function _Ie(i,r){if(1&i&&(Ge(0),T(1,pIe,2,1,"span",12),T(2,gIe,1,1,"span",13),T(3,mIe,2,1,"span",14),Ve()),2&i){var t=D(3);k(1),y("ngIf",t.showLabelText),k(1),y("ngIf",t.showLabelIcon),k(1),y("ngIf",t.step.optional)}}function yIe(i,r){if(1&i&&(A(0,"span",11),T(1,vIe,1,5,null,2),T(2,_Ie,4,3,"ng-container",2),x()),2&i){var t=D(2);k(1),y("ngIf",t.labelTemplate),k(1),y("ngIf",!t.labelTemplate)}}function kIe(i,r){if(1&i&&(Ge(0),T(1,hIe,3,4,"span",4),T(2,yIe,3,2,"span",5),Ve()),2&i){var t=D();k(1),y("ngIf",t.showIndicator),k(1),y("ngIf",t.showLabel)}}var CIe=["kendoStepperList",""];function bIe(i,r){if(1&i&&(Ge(0),z(1,"li",1),Ve()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),Qe("max-width",n.maxStepWidth,"%")("max-height",n.maxStepHeight,"%"),ue("k-step-first",0===e)("k-step-last",e===n.steps.length-1)("k-step-done",e0?this.titleTemplates.toArray()[0].templateRef:void 0}},{key:"headerHeight",value:function(){return this.element.nativeElement.offsetHeight-(this.contentWrapper?this.contentWrapper.nativeElement.offsetHeight:0)}},{key:"ngOnInit",value:function(){this.addLevelClass()}},{key:"ngAfterContentChecked",value:function(){var e=this;this.hasItems=this.items&&this.items.filter(function(n){return!n.hidden}).length>0,this.hasChildItems=this.contentItems.filter(function(n){return n!==e}).length>0||this.hasItems,this.hasContent=void 0!==this.contentTemplate&&this.contentTemplate.length>0||void 0!==this.content,this.validateConfiguration()}},{key:"ngAfterViewChecked",value:function(){var e=this;this.childrenItems=this.items?this.viewChildItems.toArray():this.contentItems.filter(function(n){return n!==e})}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"onItemAction",value:function(){this.disabled||this.eventService.onSelect(this)}},{key:"onItemClick",value:function(e){wD(e.target)||this.onItemAction()}},{key:"iconClasses",get:function(){return De({},(this.icon?"k-i-"+this.icon:null)||this.iconClass,!0)}},{key:"serialize",value:function(){return{content:this.content,disabled:this.disabled,expanded:this.expanded,focused:this.focused,icon:this.icon,iconClass:this.iconClass,id:this.id,imageUrl:this.imageUrl,selected:this.selected,title:this.title}}},{key:"subTreeViewItems",value:function(){var e=[];return this.viewChildItems.forEach(function(n){(e=e.concat(n.subTreeViewItems())).push(n)}),e}},{key:"validateConfiguration",value:function(){if(xt()&&this.content&&void 0!==this.contentTemplate&&this.contentTemplate.length>0)throw new Error("Invalid configuration: mixed template components and component property.")}},{key:"toggleAnimationState",value:function(e){!this.animate||(this.state=e&&this.eventService.expandMode!==vl.Single?"active":"activeWithoutAnimation")}},{key:"toggleExpandedChildAnimations",value:function(e){this.childrenItems&&this.childrenItems.forEach(function(n){n.expanded&&(n.toggleAnimationState(e),n.toggleExpandedChildAnimations(e))})}},{key:"addLevelClass",value:function(){this.level>=0&&this.renderer.addClass(this.element.nativeElement,"k-level-".concat(this.level))}},{key:"onWrapperFocusChange",value:function(e){this.wrapperFocused=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(i,13),m(LI),m(ke),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-panelbar-item"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,i,4),he(n,o7,4),he(n,s7,4)),2&t&&(P(a=B())&&(e.contentItems=a),P(a=B())&&(e.contentTemplate=a),P(a=B())&&(e.titleTemplates=a))},viewQuery:function(t,e){var n;1&t&&(ge(LRe,5),ge(PRe,5),ge(i,5)),2&t&&(P(n=B())&&(e.header=n.first),P(n=B())&&(e.contentWrapper=n.first),P(n=B())&&(e.viewChildItems=n))},hostVars:18,hostBindings:function(t,e){2&t&&(XM("id",e.itemId),ie("role",e.role)("title",e.titleAttribute)("aria-expanded",e.ariaExpanded)("aria-selected",e.ariaSelected)("aria-disabled",e.ariaDisabled),ue("k-item",e.kItemClass)("k-state-default",e.kStateDefaultClass)("k-state-disabled",e.kStateDisabledClass)("k-state-expanded",e.kStateExpandedClass)("k-panelbar-header",e.headerClass)("k-panelbar-item",e.childClass))},inputs:{title:"title",id:"id",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled",expanded:"expanded",selected:"selected",content:"content",items:"items",template:"template"},exportAs:["kendoPanelbarItem"],ngContentSelectors:a7,decls:8,vars:12,consts:[[3,"click"],["header",""],["class","k-icon k-panelbar-item-icon",3,"ngClass",4,"ngIf"],["class","k-image k-panelbar-item-icon","alt","",3,"src",4,"ngIf"],[4,"ngIf"],["class","k-icon k-panelbar-toggle",3,"ngClass",4,"ngIf"],[1,"k-icon","k-panelbar-item-icon",3,"ngClass"],["alt","",1,"k-image","k-panelbar-item-icon",3,"src"],[1,"k-panelbar-item-text"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-icon","k-panelbar-toggle",3,"ngClass"],["contentWrapper",""],["class","k-panel k-group k-panelbar-group",3,"overflow","height",4,"ngIf"],["class","k-content k-panelbar-content",3,"overflow","height",4,"ngIf"],[1,"k-panel","k-group","k-panelbar-group"],[1,"k-content","k-panelbar-content"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content"],[3,"ngIf"]],template:function(t,e){1&t&&(kn(r7),A(0,"span",0,1),Q("click",function(a){return e.onItemClick(a)}),T(2,BRe,1,1,"span",2),T(3,GRe,1,1,"img",3),T(4,VRe,3,1,"ng-container",4),T(5,KRe,1,15,null,4),T(6,WRe,1,4,"span",5),x(),T(7,nOe,6,7,"div",4)),2&t&&(ue("k-link",!0)("k-state-selected",!e.disabled&&e.selected)("k-state-focused",e.focused&&e.wrapperFocused),k(2),y("ngIf",e.icon||e.iconClass),k(1),y("ngIf",e.imageUrl),k(1),y("ngIf",!e.titleTemplate),k(1),y("ngIf",e.titleTemplate),k(1),y("ngIf",e.hasChildItems||e.hasContent),k(1),y("ngIf",e.keepContent||!e.disabled&&e.expanded&&(e.hasChildItems||e.hasContent)))},directives:[i,qe,Nt,En,gn],encapsulation:2,data:{animation:[ef("toggle",[Cd("inactive",Ft({display:"none"})),iu("* => active",[Ft({overflow:"hidden",display:"block",height:0}),Ai(200,Ft({height:ul}))]),iu("active => *",[Ft({overflow:"hidden",height:ul}),Ai(200,Ft({height:0,display:"none"}))])])]}}),i}(),p7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoPanelBarItemTemplate",""]]}),i}(),PI=function(){function i(r){p(this,i),this.prevented=!1,Object.assign(this,r)}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),tNe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(PI),nNe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(PI),iNe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t)}(PI),g7=v(function i(){p(this,i)}),rNe=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.localization=n,this.expandMode=vl.Default,this.selectable=!0,this.animate=!0,this.height="400px",this.stateChange=new O,this.select=new O,this.expand=new O,this.collapse=new O,this.tabIndex=0,this.role="tree",this.hostClass=!0,this.activeDescendant="",this.isViewInit=!0,this.focused=!1,this._keepItemContent=!1,this.updateChildrenHeight=function(){var o=0,s=a.elementRef.nativeElement.offsetHeight,l=a.expandMode===vl.Full?"auto":"visible";a.childrenItems.forEach(function(u){o+=u.headerHeight()}),a.childrenItems.forEach(function(u){u.contentHeight=vl.Full===a.expandMode?s-o+"px":"auto",u.contentOverflow=l})},jt(fl),this.keyBindings=this.computedKeys,this.elementRef=t,this.eventService=e,this.eventService.children$.subscribe(function(o){return a.onItemAction(o)})}return v(r,[{key:"keepItemContent",get:function(){return this._keepItemContent},set:function(e){this._keepItemContent=e,this.eventService.onKeepContent(e)}},{key:"items",get:function(){return this._items},set:function(e){e&&(this._items=jIe(e))}},{key:"hostHeight",get:function(){return this.expandMode===vl.Full?this.height:"auto"}},{key:"overflow",get:function(){return this.expandMode===vl.Full?"hidden":"visible"}},{key:"dir",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"invertKeys",value:function(e,n){return this.localization.rtl?n:e}},{key:"computedKeys",get:function(){var n,e=this;return De(n={},J.Space,function(){return e.selectFocusedItem()}),De(n,J.Enter,function(){return e.selectFocusedItem()}),De(n,J.ArrowUp,function(){return e.focusPreviousItem()}),De(n,this.invertKeys(J.ArrowLeft,J.ArrowRight),function(){return e.collapseItem()}),De(n,J.ArrowDown,function(){return e.focusNextItem()}),De(n,this.invertKeys(J.ArrowRight,J.ArrowLeft),function(){return e.expandItem()}),De(n,J.End,function(){return e.focusLastItem()}),De(n,J.Home,function(){return e.focusFirstItem()}),n}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"ngOnInit",value:function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(){return e.keyBindings=e.computedKeys}),this.eventService.animate=this.animate,this.eventService.expandMode=this.expandMode}},{key:"ngAfterViewChecked",value:function(){var e=this;this.items?(this.childrenItems=this.viewChildItems.toArray(),this.allItems=this.viewItems):(this.childrenItems=this.contentChildItems.toArray(),this.allItems=this.contentItems.toArray()),this.isViewInit&&this.childrenItems.length&&(this.isViewInit=!1,setTimeout(function(){return e.updateChildrenHeight()})),this.validateConfiguration()}},{key:"ngOnChanges",value:function(e){(e.height||e.expandMode||e.items)&&this.childrenItems&&setTimeout(this.updateChildrenHeight),e.animate&&(this.eventService.animate=this.animate),e.expandMode&&(this.eventService.expandMode=this.expandMode)}},{key:"templateRef",get:function(){return this.template?this.template.templateRef:void 0}},{key:"onComponentClick",value:function(e){var n=this.visibleItems().some(function(a){return a.header.nativeElement.contains(e.target)});!wD(e.target)&&!this.focused&&n&&this.elementRef.nativeElement.focus()}},{key:"onComponentFocus",value:function(){if(this.eventService.onFocus(),this.focused=!0,this.allItems.length>0){var e=this.visibleItems();!e.filter(function(a){return a.focused}).length&&e.length>0&&(e[0].focused=!0,this.activeDescendant=e[0].itemId)}}},{key:"onComponentBlur",value:function(){this.eventService.onBlur(),this.focused=!1,this.activeDescendant=""}},{key:"onComponentKeyDown",value:function(e){if(e.target===this.elementRef.nativeElement){(e.keyCode===J.Space||e.keyCode===J.ArrowUp||e.keyCode===J.ArrowDown||e.keyCode===J.ArrowLeft||e.keyCode===J.ArrowRight||e.keyCode===J.Home||e.keyCode===J.End||e.keyCode===J.PageUp||e.keyCode===J.PageDown)&&e.preventDefault();var n=this.keyBindings[e.keyCode];n&&n()}}},{key:"emitEvent",value:function(e,n){var a;switch(e){case"select":a=new iNe;break;case"collapse":a=new tNe;break;default:a=new nNe}return a.item=n.serialize(),this[e].emit(a),a}},{key:"viewItems",get:function(){var e=[];return this.viewChildItems.toArray().forEach(function(n){e.push(n),e=e.concat(n.subTreeViewItems())}),e}},{key:"validateConfiguration",value:function(){if(xt()&&this.items&&this.contentItems&&this.contentItems.length>0)throw new Error("Invalid configuration: mixed template components and items property.")}},{key:"onItemAction",value:function(e){var n=this;if(e){var a=new Array,o=[];if(this.allItems.forEach(function(h){var f=h===e,g=f;h.selected===(f=n.selectable?f:h.selected)&&h.focused===g||(f&&n.emitEvent("select",h).isDefaultPrevented()?o.push(h):(h.selected=f,h.focused=g,n.activeDescendant=g?h.itemId:"",a.push(h)))}),this.expandMode===vl.Multiple)!e.hasChildItems&&!e.hasContent||o.includes(e)||(e.expanded?this.emitEvent("collapse",e).isDefaultPrevented():this.emitEvent("expand",e).isDefaultPrevented())||(e.expanded=!e.expanded,a.indexOf(e)<0&&a.push(e));else{var u,l=e.parent?e.parent.childrenItems:this.childrenItems,c=[];(e.hasChildItems||e.hasContent)&&!o.includes(e)&&(l.forEach(function(h){var f=h===e;if(h.expanded!==f){var g=h.expanded?n.emitEvent("collapse",h).isDefaultPrevented():n.emitEvent("expand",h).isDefaultPrevented();g?g&&h.expanded&&(u=h):(h.expanded=f,h.expanded&&c.push(h),a.indexOf(h)<0&&a.push(h))}else h.expanded===f&&f&&(n.emitEvent("collapse",h).isDefaultPrevented()||(h.expanded=!h.expanded,a.indexOf(h)<0&&a.push(h)))}),c.forEach(function(h){if(u&&h.id!==u.id&&(h.expanded=!1,xt())){var f=vl[n.expandMode].toLowerCase();console.warn("\n The ".concat(f," expandMode allows the expansion of only one item at a time.\n See https://www.telerik.com/kendo-angular-ui-develop/components/layout/panelbar/expand-modes/"))}}))}if(a.length>0){var d=new g7;d.items=a.map(function(h){return h.serialize()}),this.stateChange.emit(d)}}}},{key:"isVisible",value:function(e){return this.visibleItems().some(function(a){return a===e})}},{key:"getVisibleParent",value:function(e){var n=this.visibleItems();return e.parent?n.some(function(a){return a===e.parent})?e.parent:this.getVisibleParent(e.parent):e}},{key:"focusItem",value:function(e){var s,n=this.visibleItems(),a=n.findIndex(function(u){return u.focused}),o=n[a];if(-1===a){var l=this.allItems.find(function(u){return u.focused});l.focused=!1,o=this.getVisibleParent(l),a=n.findIndex(function(u){return u===o})}switch(e){case"lastItem":s=n[n.length-1];break;case"firstItem":s=n[0];break;case"nextItem":s=n[a0?a-1:n.length-1]}o&&s&&o!==s&&this.moveFocus(o,s)}},{key:"moveFocus",value:function(e,n){e.focused=!1,n.focused=!0,this.activeDescendant=n.itemId;var a=new Array(e.serialize(),n.serialize()),o=new g7;o.items=a,this.stateChange.emit(o)}},{key:"focusLastItem",value:function(){this.focusItem("lastItem")}},{key:"focusFirstItem",value:function(){this.focusItem("firstItem")}},{key:"focusNextItem",value:function(){this.focusItem("nextItem")}},{key:"focusPreviousItem",value:function(){this.focusItem("previousItem")}},{key:"expandItem",value:function(){var e=this.allItems.filter(function(a){return a.focused})[0];if(this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e.hasChildItems||e.hasContent)if(e.expanded){if(e.hasChildItems){var n=e.childrenItems.findIndex(function(a){return!a.disabled});n>-1&&this.moveFocus(e,e.childrenItems[n])}}else this.onItemAction(e)}},{key:"collapseItem",value:function(){var e=this.allItems.filter(function(n){return n.focused})[0];e.expanded?this.onItemAction(e):e.parent&&this.moveFocus(e,e.parent)}},{key:"selectFocusedItem",value:function(){var e=this.allItems.filter(function(n){return n.focused})[0];this.isVisible(e)||(e.focused=!1,e=this.getVisibleParent(e)),e&&e.onItemAction()}},{key:"visibleItems",value:function(){return this.flatVisibleItems(this.childrenItems)}},{key:"flatVisibleItems",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Array,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Array;return n.forEach(function(o){a.push(o),o.expanded&&o.hasChildItems&&e.flatVisibleItems(o.childrenItems,a)}),a}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(LI),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-panelbar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,p7,5),he(n,$y,5),he(n,$y,4)),2&t&&(P(a=B())&&(e.template=a.first),P(a=B())&&(e.contentItems=a),P(a=B())&&(e.contentChildItems=a))},viewQuery:function(t,e){var n;1&t&&ge($y,5),2&t&&P(n=B())&&(e.viewChildItems=n)},hostVars:10,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onComponentClick(a)})("focus",function(){return e.onComponentFocus()})("blur",function(){return e.onComponentBlur()})("keydown",function(a){return e.onComponentKeyDown(a)}),2&t&&(ie("tabIndex",e.tabIndex)("role",e.role)("aria-activedescendant",e.activeDescendant)("dir",e.dir),Qe("height",e.hostHeight)("overflow",e.overflow),ue("k-panelbar",e.hostClass))},inputs:{expandMode:"expandMode",selectable:"selectable",animate:"animate",height:"height",keepItemContent:"keepItemContent",items:"items"},outputs:{stateChange:"stateChange",select:"select",expand:"expand",collapse:"collapse"},exportAs:["kendoPanelbar"],features:[de([LI,Y,{provide:Dt,useValue:"kendo.panelbar"}]),Ie],ngContentSelectors:a7,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngIf"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content"]],template:function(t,e){1&t&&(kn(r7),T(0,iOe,1,0,"ng-content",0),T(1,oOe,1,1,"ng-template",1)),2&t&&(y("ngIf",e.contentChildItems&&!e.items),k(1),y("ngIf",null==e.items?null:e.items.length))},directives:[$y,qe,gn],encapsulation:2}),i}(),BI=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.cdr=n,this.resizable=!0,this.collapsible=!1,this.scrollable=!0,this.collapsed=!1,this.orientation="horizontal",this.overlayContent=!1,this.sizeChange=new O,this.collapsedChange=new O,this.ariaRole="group",this.hostClass=!0,this.forceExpand=!1,this.isResized=!1}return v(r,[{key:"order",get:function(){return this._order},set:function(e){this._order=e,this.setOrderStyles()}},{key:"size",get:function(){return this._size},set:function(e){this._size=e;var n=this.element.nativeElement;this.renderer.setStyle(n,"-ms-flex-preferred-size",e),this.renderer.setStyle(n,"flex-basis",e),this.staticPaneClass?this.renderer.addClass(n,"k-pane-static"):this.renderer.removeClass(n,"k-pane-static")}},{key:"containsSplitter",set:function(e){var n=this.element.nativeElement;e?this.renderer.addClass(n,"k-pane-flex"):this.renderer.removeClass(n,"k-pane-flex")}},{key:"isHidden",get:function(){return this.collapsed}},{key:"staticPaneClass",get:function(){return!this.forceExpand&&(!this.resizable&&!this.collapsible||this.fixedSize)}},{key:"scrollablePaneClass",get:function(){return this.scrollable}},{key:"fixedSize",get:function(){return this.size&&this.size.length>0}},{key:"ngAfterViewChecked",value:function(){var e=this.element.nativeElement;this.isHidden?(this.renderer.addClass(e,"k-state-hidden"),this.renderer.addClass(e,"hidden")):(this.renderer.removeClass(e,"k-state-hidden"),this.renderer.removeClass(e,"hidden"))}},{key:"computedSize",get:function(){return"vertical"===this.orientation?this.element.nativeElement.offsetHeight:this.element.nativeElement.offsetWidth}},{key:"toggleOverlay",value:function(e){this.overlayContent=e,this.cdr.detectChanges()}},{key:"detectChanges",value:function(){this.cdr.detectChanges()}},{key:"setOrderStyles",value:function(){var e=this.element.nativeElement;this.renderer.setStyle(e,"-ms-flex-order",this.order),this.renderer.setStyle(e,"order",this.order)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter-pane"]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("role",e.ariaRole),ue("k-pane",e.hostClass)("k-pane-static",e.staticPaneClass)("k-scrollable",e.scrollablePaneClass))},inputs:{order:"order",size:"size",min:"min",max:"max",resizable:"resizable",collapsible:"collapsible",scrollable:"scrollable",collapsed:"collapsed",orientation:"orientation",containsSplitter:"containsSplitter",overlayContent:"overlayContent"},outputs:{sizeChange:"sizeChange",collapsedChange:"collapsedChange"},exportAs:["kendoSplitterPane"],ngContentSelectors:_a,decls:2,vars:2,consts:[[4,"ngIf"],["class","k-splitter-overlay k-overlay",4,"ngIf"],[1,"k-splitter-overlay","k-overlay"]],template:function(t,e){1&t&&(kn(),T(0,sOe,2,0,"ng-container",0),T(1,lOe,1,0,"div",1)),2&t&&(y("ngIf",!e.collapsed),k(1),y("ngIf",e.overlayContent))},directives:[qe],encapsulation:2}),i}(),GI=function(){var i=function(){function r(t){p(this,r),this.zone=t,this.layoutChange=new O,this.containerSize=function(){}}return v(r,[{key:"tryToggle",value:function(e){var n=this.pane(e);n.collapsible&&(n.collapsed=!n.collapsed,n.collapsedChange.emit(n.collapsed),this.emit(this.layoutChange,{}),n.collapsed&&n.detectChanges());var a=this.panes.filter(function(s){return!s.collapsed}),o=a.every(function(s){return s.fixedSize});return a[a.length-1].forceExpand=!!o,n.collapsible}},{key:"toggleContentOverlay",value:function(e,n){this.pane(e).toggleOverlay(n),this.pane(e+1).toggleOverlay(n)}},{key:"dragState",value:function(e){var n=this,a=this.pane(e),o=this.pane(e+1),s=a.computedSize+o.computedSize,l=function(c){return n.toPixels(c)};return{prev:{index:e,initialSize:a.computedSize,min:l(a.min)||s-l(o.max)||0,max:l(a.max)||s-l(o.min)||s},next:{index:e+1,initialSize:o.computedSize,min:l(o.min)||s-l(a.max)||0,max:l(o.max)||s-l(a.min)||s}}}},{key:"setSize",value:function(e,n){var a=this,s=function(d,h){var C,f=a.pane(d.index),g=a.containerSize(),_=function(d,h,f){return Math.min(h,Math.max(d,f))}(d.min,d.max,d.initialSize+h);C=a.isPercent(f.size)?100*_/g+"%":_+"px",f.size=C,f.isResized=!0,a.emit(f.sizeChange,C)},l=this.pane(e.prev.index),u=this.pane(e.next.index);l.fixedSize&&u.fixedSize?(s(e.prev,n),s(e.next,-n)):u.collapsible||u.fixedSize?s(e.next,-n):s(e.prev,n),this.emit(this.layoutChange,{})}},{key:"isDraggable",value:function(e){var n=this.pane(e),a=this.pane(e+1);return n.resizable&&a.resizable&&!(n.collapsed||a.collapsed)}},{key:"isStatic",value:function(e){var n=this.pane(e),a=this.pane(e+1);return!(n.resizable&&a.resizable||n.collapsible||a.collapsible)}},{key:"pane",value:function(e){if(!this.panes)throw new Error("Panes not initialized");if(e<0||e>=this.panes.length)throw new Error("Index out of range");return this.panes[e]}},{key:"configure",value:function(e){var n=e.panes,a=e.orientation,o=e.containerSize;if(this.panes=n,this.panes.forEach(function(u,c){u.order=2*c,u.orientation=a}),xt()){var s=n.length&&!n.some(function(u){return!u.fixedSize}),l=n.length&&n.some(function(u){return u.isResized});if(s&&!l)throw new Error("\n The Splitter should have at least one pane without a set size.\n See ".concat("https://www.telerik.com/kendo-angular-ui/components/layout/splitter/panes/#toc-size"," for more information.\n "))}this.containerSize=o}},{key:"isPercent",value:function(e){return/%$/.test(e)}},{key:"toPixels",value:function(e){var n=parseFloat(e);return this.isPercent(e)&&(n=this.containerSize()*n/100),n}},{key:"emit",value:function(e,n){e.observers.length&&this.zone.run(function(){return e.emit(n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),oNe=function(r){var t=r.originalEvent;t.stopPropagation(),t.preventDefault()},VI=function(r){return Object.keys(r).filter(function(t){return r[t]}).join(" ")},UI=function(){var i=function(){function r(t,e,n,a){p(this,r),this.draggable=t,this.element=e,this.splitter=n,this.localization=a,this.orientation="horizontal",this.index=0,this.ariaRole="separator",this.focused=!1,this.subscriptions=new Je}return v(r,[{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"tabIndex",get:function(){return this.splitter.isStatic(this.index)?-1:0}},{key:"hostClasses",get:function(){var e="horizontal"===this.orientation,n=this.splitter.isDraggable(this.index),a=this.splitter.isStatic(this.index);return VI({"k-state-focused":this.focused,"k-splitbar":!0,"k-splitbar-horizontal":e,"k-splitbar-vertical":!e,"k-splitbar-draggable-horizontal":e&&n,"k-splitbar-draggable-vertical":!e&&n,"k-splitbar-static-horizontal":e&&a,"k-splitbar-static-vertical":!e&&a,"k-touch-action-none":n})}},{key:"order",get:function(){return 2*this.index+1}},{key:"collapseAny",value:function(){this.expandLast?this.toggleNext():this.tryToggleNearest()}},{key:"onFocusIn",value:function(){this.focused=!0}},{key:"onFocusOut",value:function(){this.focused=!1}},{key:"onKeyDown",value:function(e){var n=this,a=e&&e.keyCode,o="horizontal"===this.orientation,s=function(u){e.preventDefault();var c=n.splitter.dragState(n.index);n.splitter.setSize(c,u)};a===J.Enter?(e.preventDefault(),this.collapseAny()):o&&a===J.ArrowLeft?s(-10):o&&a===J.ArrowRight?s(10):o||a!==J.ArrowUp?!o&&a===J.ArrowDown&&s(10):s(-10)}},{key:"expandLast",get:function(){var e=this.splitter.panes;return 2===e.length&&e[1].collapsed}},{key:"ngOnInit",value:function(){var n,e=this,a=this.draggable.kendoPress.pipe(At(oNe),Ue(function(){return e.splitter.isDraggable(e.index)}),At(function(){return n=e.splitter.dragState(e.index)}),At(function(){return e.splitter.toggleContentOverlay(e.index,!0)}),Nn(function(r){return function(t){return lt(t).pipe(Dd(150),Qr(r))}}(this.draggable.kendoRelease)),Nn(function(r){return function(t){return r.kendoDrag.pipe(Qr(r.kendoRelease),We(function(e){return{originalX:t.pageX,originalY:t.pageY,pageX:e.pageX,pageY:e.pageY}}))}}(this.draggable))).subscribe(function(o){var s=o.pageX,u=o.originalX;e.splitter.setSize(n,"vertical"===e.orientation?o.pageY-o.originalY:"rtl"===e.direction?u-s:s-u)});this.subscriptions.add(a),this.subscriptions.add(this.draggable.kendoRelease.subscribe(function(){return e.splitter.toggleContentOverlay(e.index,!1)}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"togglePrevious",value:function(){this.splitter.tryToggle(this.index)}},{key:"toggleNext",value:function(){this.splitter.tryToggle(this.index+1)}},{key:"previousArrowClass",value:function(){var e=this.splitter.pane(this.index),n=this.splitter.pane(this.index+1),a=e.collapsible,o=e.collapsed,s="horizontal"===this.orientation;return VI({"k-icon":!0,"k-hidden":!a||n.isHidden,"k-collapse-prev":a,"k-i-arrow-60-left":a&&s&&!o,"k-i-arrow-60-right":a&&s&&o,"k-i-arrow-60-up":a&&!s&&!o,"k-i-arrow-60-down":a&&!s&&o})}},{key:"nextArrowClass",value:function(){var e=this.splitter.pane(this.index+1),n=this.splitter.pane(this.index),a=e.collapsible,o=e.collapsed,s="horizontal"===this.orientation;return VI({"k-icon":!0,"k-hidden":!a||n.isHidden,"k-collapse-next":a,"k-i-arrow-60-right":a&&s&&!o,"k-i-arrow-60-left":a&&s&&o,"k-i-arrow-60-down":a&&!s&&!o,"k-i-arrow-60-up":a&&!s&&o})}},{key:"tryToggleNearest",value:function(){var n=this.index+1;this.splitter.tryToggle(this.index)||this.splitter.tryToggle(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(ke),m(GI),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter-bar"]],hostVars:11,hostBindings:function(t,e){1&t&&Q("dblclick",function(){return e.collapseAny()})("focusin",function(){return e.onFocusIn()})("focusout",function(){return e.onFocusOut()})("keydown",function(a){return e.onKeyDown(a)}),2&t&&(ie("aria-orientation",e.orientation)("role",e.ariaRole)("tabindex",e.tabIndex),Ar(e.hostClasses),Qe("-ms-flex-order",e.order)("order",e.order),ue("k-state-focused",e.focused))},inputs:{orientation:"orientation",index:"index"},decls:3,vars:4,consts:[[3,"click"],[1,"k-resize-handle"]],template:function(t,e){1&t&&(A(0,"div",0),Q("click",function(){return e.togglePrevious()}),x(),z(1,"div",1),A(2,"div",0),Q("click",function(){return e.toggleNext()}),x()),2&t&&(Ar(e.previousArrowClass()),k(2),Ar(e.nextArrowClass()))},encapsulation:2}),i}(),uNe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.element=t,this.splitterService=e,this.localization=n,this.renderer=a,this.enclosingPane=o,this.orientation="horizontal",jt(fl),o&&(o.containsSplitter=!0),this.layoutChange=this.splitterService.layoutChange,this.configure=this.configure.bind(this)}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"horizontalHostClasses",get:function(){return"horizontal"===this.orientation}},{key:"verticalHostClasses",get:function(){return"vertical"===this.orientation}},{key:"dir",get:function(){return this.direction}},{key:"splitbars",set:function(e){var n=this;Mi(e)&&Mi(this.panes)&&[].concat(Ae(this.panes.toArray()),Ae(e.toArray())).sort(function(s,l){return s.order-l.order}).map(function(s){return s.element.nativeElement}).forEach(function(s){return n.renderer.appendChild(n.element.nativeElement,s)})}},{key:"ngAfterContentInit",value:function(){this.reconfigure()}},{key:"ngOnChanges",value:function(e){e.orientation&&!e.orientation.isFirstChange()&&this.reconfigure()}},{key:"ngOnDestroy",value:function(){this.enclosingPane&&(this.enclosingPane.containsSplitter=!1),this.unsubscribeChanges()}},{key:"reconfigure",value:function(){this.unsubscribeChanges(),this.configure(),this.paneChangesSubscription=this.panes.changes.subscribe(this.configure)}},{key:"unsubscribeChanges",value:function(){this.paneChangesSubscription&&(this.paneChangesSubscription.unsubscribe(),this.paneChangesSubscription=null)}},{key:"configure",value:function(){var e=this;this.splitterService.configure({panes:this.panes.toArray(),orientation:this.orientation,containerSize:function(){return"vertical"===e.orientation?e.element.nativeElement.clientHeight:e.element.nativeElement.clientWidth}})}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(GI),m(Y),m(Ee),m(BI,9))},i.\u0275cmp=L({type:i,selectors:[["kendo-splitter"]],contentQueries:function(t,e,n){var a;1&t&&he(n,BI,4),2&t&&P(a=B())&&(e.panes=a)},viewQuery:function(t,e){var n;1&t&&ge(UI,5),2&t&&P(n=B())&&(e.splitbars=n)},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-splitter",e.hostClasses)("k-splitter-flex",e.hostClasses)("k-splitter-horizontal",e.horizontalHostClasses)("k-splitter-vertical",e.verticalHostClasses))},inputs:{orientation:"orientation"},outputs:{layoutChange:"layoutChange"},exportAs:["kendoSplitter"],features:[de([GI,Y,{provide:Dt,useValue:"kendo.spliter"}]),Ie],ngContentSelectors:hOe,decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoDraggable","",3,"index","orientation",4,"ngIf"],["kendoDraggable","",3,"index","orientation"]],template:function(t,e){1&t&&(kn(dOe),dn(0),T(1,cOe,2,1,"ng-container",0)),2&t&&(k(1),y("ngForOf",e.panes))},directives:[UI,gn,qe,$o],encapsulation:2}),i}(),zI=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoTabContent",""]]}),i}(),m7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoTabTitle",""]]}),i}(),HI=function(){var i=function(){function r(){p(this,r),this.disabled=!1,this._tabContent=new Ei,this.focused=!1}return v(r,[{key:"tabContent",get:function(){return this._tabContent.first}},{key:"tabTitle",get:function(){return this._tabTitleDirective.first}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip-tab"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,zI,4),he(n,m7,4)),2&t&&(P(a=B())&&(e._tabContent=a),P(a=B())&&(e._tabTitleDirective=a))},inputs:{title:"title",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle",selected:"selected",closable:"closable",closeIcon:"closeIcon"},exportAs:["kendoTabStripTab"],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),cNe=v(function i(r,t){p(this,i),this.index=r,this.tab=t}),dNe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).index=e,a.title=n,a}return v(t)}(Is),_7=function(r){return r.enabled&&r.mouseScroll},KI=function(r){var t,e,n=-1,a=-1;return r.forEach(function(o,s){o.selected?(e=o,a=s):o.focused&&(t=o,n=s)}),n>=0?{tab:t,index:n}:{tab:e,index:a}},jI=function(r,t){var e=r.filter(function(n,a){return a===t});return e.length>0?e[0]:null},ko=function(r){return"top"===r||"bottom"===r},y7=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.ngZone=e}return v(r,[{key:"onKeyDown",value:function(e){if(function(r){var t=r.getAttribute("id");return!!(Mi(t)||t.indexOf("k-tabstrip-tab-")>=0)}(e.target)){var n=e.keyCode;if(!this.shouldHandleKey(n))return;e.preventDefault(),h7(n)||function(r){return c7(r)||d7(r)}(n)?this.onNavigate(n):n===J.Delete&&this.onDelete()}}},{key:"onTabSelect",value:function(e,n){var a=new dNe(n,e.title);if(this.owner.tabSelect.emit(a),!a.isDefaultPrevented()){if(e.selected)return void this.focusTabHeader(n);this.selectTab(e,n)}}},{key:"selectTab",value:function(e,n){(function(r){r.forEach(function(t){t.selected=!1})})(this.owner.tabs),this.focusTabHeader(n),e.selected=!0,this.owner.isScrollable&&this.owner.scrollToSelectedTab()}},{key:"onNavigate",value:function(e){var n=this,a=KI(this.owner.tabs),o=a.tab,s=a.index;be.isInAngularZone()||this.ngZone.run(function(){if(s<0)n.owner.selectTab(n.firstNavigatableIndex());else{o.focused=!1;var l=n.computeNextIndex(s,e);n.activateTab(l)}})}},{key:"onDelete",value:function(){var e=this,n=KI(this.owner.tabs),a=n.tab,o=n.index;(function(r,t){return void 0!==r.closable?r.closable:t})(a,this.owner.closable)&&!a.disabled&&this.ngZone.run(function(){e.owner.tabClose.emit({tab:a,index:o})})}},{key:"activateTab",value:function(e){var n=jI(this.owner.tabs,e);n.disabled?(this.focusTabHeader(e),n.focused=!0):this.onTabSelect(n,e)}},{key:"focusTabHeader",value:function(e){var n=function(r,t){var e=r.filter(function(n,a){return a===t});return e.length>0?e[0]:null}(this.owner.tabHeaderContainers,e);n.nativeElement.focus()}},{key:"shouldHandleKey",value:function(e){return!!(h7(e)||ko(this.owner.tabPosition)&&c7(e)||!ko(this.owner.tabPosition)&&d7(e)||e===J.Delete)}},{key:"computeNextIndex",value:function(e,n){switch(n){case this.invertKeys(J.ArrowLeft,J.ArrowRight):case this.invertKeys(J.ArrowUp,J.ArrowDown):return this.prevNavigatableIndex(e);case this.invertKeys(J.ArrowRight,J.ArrowLeft):case this.invertKeys(J.ArrowDown,J.ArrowUp):return this.nextNavigatableIndex(e);case J.Home:return this.firstNavigatableIndex();case J.End:return this.lastNavigatableIndex();default:return}}},{key:"invertKeys",value:function(e,n){return this.localization.rtl?n:e}},{key:"firstNavigatableIndex",value:function(){return 0}},{key:"lastNavigatableIndex",value:function(){return this.owner.tabs.length-1}},{key:"prevNavigatableIndex",value:function(e){return e-1<0?this.lastNavigatableIndex():e-1}},{key:"nextNavigatableIndex",value:function(e){return e+1>=this.owner.tabs.length?this.firstNavigatableIndex():e+1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),C7=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.position=0,this.scrollButtonActiveStateChange=new Ot,this.isDisabled=function(n){return e.owner["".concat(n,"ScrollButton")].host.nativeElement.classList.contains("k-disabled")}}return v(r,[{key:"tablistElement",get:function(){return this.owner.tablist.nativeElement}},{key:"tabstripSize",get:function(){var e=this.owner.wrapper.nativeElement,n=parseFloat(getComputedStyle(e).width),a=parseFloat(getComputedStyle(e).height);return ko(this.owner.tabPosition)?n:a}},{key:"tablistOverflowSize",get:function(){if(!Ze())return 0;var e=ko(this.owner.tabPosition),n=Math.floor(this.tablistElement[e?"scrollWidth":"scrollHeight"]-this.tablistElement.getBoundingClientRect()[e?"width":"height"]);return n<0?0:n}},{key:"tabsOverflow",get:function(){return this.tablistOverflowSize>0}},{key:"scrollButtonsSize",get:function(){if(!this.owner.hasScrollButtons)return 0;var e=this.owner.prevScrollButton.hostBoundingClientRect,n=ko(this.owner.tabPosition)?e.width:e.height,a=this.owner.nextScrollButton.hostBoundingClientRect;return n+(ko(this.owner.tabPosition)?a.width:a.height)}},{key:"toggleScrollButtonsState",value:function(){var e=this;if(this.owner.hasScrollButtons){var a=!this.isDisabled("prev"),o=!this.isDisabled("next"),s=this.position>0&&this.tablistOverflowSize>0,l=this.position0;s!==a&&this.ngZone.run(function(){return e.toggleButtonActiveState("prev",s)}),l!==o&&this.ngZone.run(function(){return e.toggleButtonActiveState("next",l)})}}},{key:"scrollToSelectedTab",value:function(){var e=this;if(this.tabsOverflow){var a=KI(this.owner.tabs).index;if(-1!==a&&(this.position+=this.getScrollOffset(a),ko(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState(),this.owner.hasScrollButtons)){var l=a===this.owner.tabs.length-1;0===a&&!this.isDisabled("prev")&&this.ngZone.run(function(){return e.toggleButtonActiveState("prev",!1)}),l&&!this.isDisabled("next")&&this.ngZone.run(function(){return e.toggleButtonActiveState("next",!1)})}}}},{key:"getScrollOffset",value:function(e){if(!Ze())return 0;var n=ko(this.owner.tabPosition);this.tablistElement["scroll".concat(n?"Left":"Top")]=this.position;var a=this.tablistElement.children[e].getBoundingClientRect(),o=this.tablistElement.getBoundingClientRect(),s=n?"right":"bottom",l=n?"left":"top",u=a[l],c=a[s],d=o[l],h=o[s],f=c<=h,g=u>=d;return f&&g?0:f?g?void 0:u-d:c-h}},{key:"onMouseScroll",value:function(e){e.preventDefault(),_7(this.owner.scrollable)&&(this.calculateListPosition(e.deltaY<0?"prev":"next",this.owner.scrollable.mouseScrollSpeed),ko(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState())}},{key:"scrollTabs",value:function(e){this.calculateListPosition(e,this.owner.scrollable.buttonScrollSpeed),ko(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position,behavior:"smooth"}):this.tablistElement.scrollTo({top:this.position,behavior:"smooth"}),this.toggleScrollButtonsState()}},{key:"calculateListPosition",value:function(e,n){var a=this.tablistOverflowSize+this.scrollButtonsSize;if("prev"===e&&this.position>0)this.position=this.position-n<=0?0:this.position-n;else if("next"===e&&this.positiona)return void(this.position=a);this.position+=n}}},{key:"restoreScrollPosition",value:function(){ko(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position}):this.tablistElement.scrollTo({top:this.position}),this.toggleScrollButtonsState()}},{key:"toggleButtonActiveState",value:function(e,n){this.scrollButtonActiveStateChange.next({buttonType:e,active:n})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),b7=function(r){return function(r){var t=r.enabled,n=r.scrollButtons,o=r.mouseScroll,l=r.buttonScrollSpeed,c=r.mouseScrollSpeed;return{enabled:void 0===t||t,scrollButtons:void 0===n?"auto":n,mouseScroll:void 0===o||o,buttonScrollSpeed:void 0===l?100:l,mouseScrollSpeed:void 0===c?10:c,prevButtonIcon:r.prevButtonIcon,nextButtonIcon:r.nextButtonIcon}}(!1===r?{enabled:!1}:r)},S7=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),w7=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.host=t,this.renderer=e,this.ngZone=n,this.btnClasses=!0,this.prev=!1,this.tabScroll=new O,this.onClick=new O,this.subs=new Je,this.clickHandler=function(o){a.emitScrollEvent(o).isDefaultPrevented()||a.onClick.emit(a.prev?"prev":"next")}}return v(r,[{key:"prevClass",get:function(){return this.prev}},{key:"nextClass",get:function(){return!this.prev}},{key:"hostBoundingClientRect",get:function(){return this.host.nativeElement.getBoundingClientRect()}},{key:"iconClass",get:function(){return this.scrollButtonIconClass[this.prev?"prevScrollButton":"nextScrollButton"]}},{key:"ngAfterViewInit",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.subs.add(e.renderer.listen(e.host.nativeElement,"click",e.clickHandler))})}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"toggle",value:function(e){this.renderer[e?"removeClass":"addClass"](this.host.nativeElement,"k-hidden")}},{key:"scrollButtonIconClass",get:function(){var e=ko(this.tabPosition)?"k-i-arrow-60-left":"k-i-arrow-60-up",n=ko(this.tabPosition)?"k-i-arrow-60-right":"k-i-arrow-60-down";return"object"==typeof this.scrollable?{prevScrollButton:void 0===this.scrollable.prevButtonIcon?e:this.scrollable.prevButtonIcon,nextScrollButton:void 0===this.scrollable.nextButtonIcon?n:this.scrollable.nextButtonIcon}:{prevScrollButton:e,nextScrollButton:n}}},{key:"emitScrollEvent",value:function(e){var n=new S7({originalEvent:e});return this.tabScroll.emit(n),n}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(be))},i.\u0275cmp=L({type:i,selectors:[["","kendoTabStripScrollableButton",""]],hostVars:16,hostBindings:function(t,e){2&t&&ue("k-button",e.btnClasses)("k-button-md",e.btnClasses)("k-icon-button",e.btnClasses)("k-rounded-md",e.btnClasses)("k-button-flat",e.btnClasses)("k-button-flat-base",e.btnClasses)("k-tabstrip-prev",e.prevClass)("k-tabstrip-next",e.nextClass)},inputs:{prev:"prev",tabPosition:"tabPosition",scrollable:"scrollable"},outputs:{tabScroll:"tabScroll",onClick:"onClick"},attrs:fOe,decls:1,vars:1,consts:[[1,"k-icon","k-button-icon",3,"ngClass"]],template:function(t,e){1&t&&z(0,"span",0),2&t&&y("ngClass",e.iconClass)},directives:[Nt],encapsulation:2}),i}(),D7=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.tabClose=new O,this.hostClasses=!0}return v(r,[{key:"activeClass",get:function(){return this.tab.selected}},{key:"disabledClass",get:function(){return this.tab.disabled}},{key:"focusedClass",get:function(){return this.tab.focused}},{key:"tabIndex",get:function(){return this.tab.selected||this.tab.focused?0:-1}},{key:"tabClosable",get:function(){return void 0!==this.tab.closable?this.tab.closable:this.tabStripClosable}},{key:"closeButtonClasses",get:function(){return Mi(this.tab.closeIcon)?this.tab.closeIcon:this.tabStripCloseIcon}},{key:"closeButtonTitle",get:function(){return this.localization.get("closeTitle")}},{key:"closeTab",value:function(e){var n=new cNe(e,this.tab);this.tabClose.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoTabStripTab",""]],hostVars:13,hostBindings:function(t,e){2&t&&(ie("aria-selected",e.activeClass)("aria-disabled",e.disabledClass)("tabindex",e.tabIndex),ue("k-item",e.hostClasses)("k-state-default",e.hostClasses)("k-state-active",e.activeClass)("k-state-disabled",e.disabledClass)("k-state-focused",e.focusedClass))},inputs:{tab:"tab",index:"index",tabStripClosable:"tabStripClosable",tabStripCloseIcon:"tabStripCloseIcon"},outputs:{tabClose:"tabClose"},attrs:vOe,decls:3,vars:3,consts:[["class","k-link",4,"ngIf"],["class","k-remove-tab k-button k-icon-button k-flat","role","button",3,"title","click",4,"ngIf"],[1,"k-link"],[3,"ngTemplateOutlet"],["role","button",1,"k-remove-tab","k-button","k-icon-button","k-flat",3,"title","click"],[3,"ngClass"]],template:function(t,e){1&t&&(T(0,pOe,2,1,"span",0),T(1,mOe,2,1,"span",0),T(2,_Oe,2,3,"span",1)),2&t&&(y("ngIf",!e.tab.tabTitle),k(1),y("ngIf",e.tab.tabTitle),k(1),y("ngIf",e.tabClosable))},directives:[qe,En,Nt],encapsulation:2}),i}(),TD=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-tabstrip-messages-base"]],inputs:{closeTitle:"closeTitle"},features:[j]}),i}(),E7=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(TD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoTabStripLocalizedMessages",""]],features:[de([{provide:TD,useExisting:ye(function(){return i})}]),j]}),i}(),T7=function(){var i=function(){function r(t,e,n,a,o,s){var l=this;p(this,r),this.localization=t,this.renderer=e,this.wrapper=n,this.tabstripService=a,this.scrollService=o,this.ngZone=s,this.animate=!0,this.tabPosition="top",this.keepTabContent=!1,this.closable=!1,this.closeIcon="k-icon k-i-x",this.tabSelect=new O,this.tabClose=new O,this.tabScroll=new O,this.hostClasses=!0,this.tabs=new Ei,this._scrollableSettings=b7(!1),this.subscriptions=new Je,this.subscriptionsArePresent=!1,jt(fl),this.tabstripService.owner=this,this.scrollService.owner=this,this.subscriptions.add(this.scrollService.scrollButtonActiveStateChange.subscribe(function(u){l.hasScrollButtons&&l.renderer["".concat(u.active?"remove":"add","Class")](l["".concat(u.buttonType,"ScrollButton")].host.nativeElement,"k-disabled")}))}return v(r,[{key:"height",get:function(){return this._height},set:function(e){this._height=e,this.renderer.setStyle(this.wrapper.nativeElement,"height",e)}},{key:"scrollable",get:function(){return this._scrollableSettings},set:function(e){this._scrollableSettings=b7(e),this.tablist&&(this.toggleScrollButtons(this.scrollService.tabsOverflow),this.attachWheelHandler(this.tablist.nativeElement))}},{key:"tabsAtTop",get:function(){return"top"===this.tabPosition}},{key:"tabsAtRight",get:function(){return"right"===this.tabPosition}},{key:"tabsAtBottom",get:function(){return"bottom"===this.tabPosition}},{key:"tabsAtLeft",get:function(){return"left"===this.tabPosition}},{key:"dir",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"tabStripScrollable",get:function(){return this._scrollableSettings.enabled}},{key:"ngAfterViewInit",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.toggleScrollButtons(!!e.scrollService.tabsOverflow),setTimeout(function(){e.scrollToSelectedTab()})}),this.initDomEvents()}},{key:"ngOnChanges",value:function(e){var n=this,a=e.tabPosition;if(a){var o="bottom"===a.previousValue||"bottom"===a.currentValue;this.ngZone.onStable.pipe(It(1)).subscribe(function(){o&&(n.subscriptionsArePresent&&(n.subscriptions.unsubscribe(),n.subscriptions=new Je,n.subscriptionsArePresent=!1),n.initDomEvents()),n.scrollService.restoreScrollPosition()})}}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"tabsAlignmentStyles",get:function(){return{start:"flex-start",end:"flex-end",center:"center",justify:"space-between"}[this.tabAlignment]}},{key:"tabListWidth",get:function(){return"top"===this.tabPosition||"bottom"===this.tabPosition?"100%":null}},{key:"tabListHeight",get:function(){return"left"===this.tabPosition||"right"===this.tabPosition?"100%":null}},{key:"isScrollable",get:function(){return this._scrollableSettings.enabled}},{key:"hasScrollButtons",get:function(){return function(r){return r.enabled&&"hidden"!==r.scrollButtons}(this._scrollableSettings)}},{key:"mouseScrollEnabled",get:function(){return _7(this._scrollableSettings)}},{key:"itemsWrapperClass",get:function(){return ko(this.tabPosition)?"k-hstack":"k-vstack"}},{key:"selectTab",value:function(e){var n=jI(this.tabs,e);!n||n.disabled||(this.tabstripService.selectTab(n,e),this.scrollToSelectedTab())}},{key:"onTabClick",value:function(e,n){if(!wD(e.target)){var a=e.target;if(!DD(a,"k-remove-tab")&&!DD(a.parentElement,"k-remove-tab")){var s=jI(this.tabs,n);this.tabstripService.onTabSelect(s,n),this.scrollToSelectedTab()}}}},{key:"onResize",value:function(){var e=this;this.toggleScrollButtons(!!this.scrollService.tabsOverflow),this.ngZone.runOutsideAngular(function(){e.scrollService.toggleScrollButtonsState()})}},{key:"scrollToSelectedTab",value:function(){this._scrollableSettings.enabled&&this.scrollService.scrollToSelectedTab()}},{key:"onScrollButtonClick",value:function(e){this.scrollService.scrollTabs(e)}},{key:"initDomEvents",value:function(){var e=this;if(this.wrapper&&!this.subscriptionsArePresent){var n=this.tablist.nativeElement;this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(n,"keydown",function(a){e.tabstripService.onKeyDown(a)}))}),this.subscriptions.add(this.renderer.listen(n,"focusout",function(){!function(r){r.forEach(function(t){t.focused=!1})}(e.tabs)})),this.isScrollable&&this.mouseScrollEnabled&&this.attachWheelHandler(n),this.subscriptionsArePresent=!0}}},{key:"toggleScrollButtons",value:function(e){var n=this;this.ngZone.onStable.pipe(It(1)).subscribe(function(){var a=n._scrollableSettings.scrollButtons,o=n.prevScrollButton&&n.nextScrollButton,s=o&&e,u="visible"===a;o&&!e&&"visible"!==a?(n.prevScrollButton.toggle(!1),n.nextScrollButton.toggle(!1)):(s||u)&&(n.prevScrollButton.toggle(!0),n.nextScrollButton.toggle(!0)),o&&u&&n.ngZone.runOutsideAngular(function(){n.scrollService.toggleScrollButtonsState()})})}},{key:"attachWheelHandler",value:function(e){var n=this;this.ngZone.runOutsideAngular(function(){n.subscriptions.add(n.renderer.listen(e,"wheel",function(a){var o=new S7({originalEvent:a});n.tabScroll.emit(o),o.isDefaultPrevented()||!n.scrollService.tabsOverflow||n.scrollService.onMouseScroll(a)}))})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee),m(ke),m(y7),m(C7),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip"]],contentQueries:function(t,e,n){var a;1&t&&he(n,HI,4),2&t&&P(a=B())&&(e.tabs=a)},viewQuery:function(t,e){var n;1&t&&(ge(yOe,5),ge(kOe,5),ge(COe,5),ge(bOe,5,ke)),2&t&&(P(n=B())&&(e.tablist=n.first),P(n=B())&&(e.prevScrollButton=n.first),P(n=B())&&(e.nextScrollButton=n.first),P(n=B())&&(e.tabHeaderContainers=n))},hostVars:15,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-tabstrip",e.hostClasses)("k-floatwrap",e.hostClasses)("k-tabstrip-top",e.tabsAtTop)("k-tabstrip-right",e.tabsAtRight)("k-tabstrip-bottom",e.tabsAtBottom)("k-tabstrip-left",e.tabsAtLeft)("k-tabstrip-scrollable",e.tabStripScrollable))},inputs:{height:"height",animate:"animate",tabAlignment:"tabAlignment",tabPosition:"tabPosition",keepTabContent:"keepTabContent",closable:"closable",scrollable:"scrollable",closeIcon:"closeIcon"},outputs:{tabSelect:"tabSelect",tabClose:"tabClose",tabScroll:"tabScroll"},exportAs:["kendoTabStrip"],features:[de([y7,C7,Y,{provide:Dt,useValue:"kendo.tabstrip"}]),Ie],decls:8,vars:3,consts:function(){return[["kendoTabStripLocalizedMessages","","closeTitle",$localize(t7||(t7=le([":kendo.tabstrip.closeTitle|The title for the **Close** button in the TabStrip tab.:Close"])))],[4,"ngIf"],["heading",""],["content",""],[3,"resize",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"k-tabstrip-items-wrapper",3,"ngClass"],["kendoTabStripScrollableButton","",3,"scrollable","tabPosition","prev","tabScroll","onClick",4,"ngIf"],["role","tablist",1,"k-reset","k-tabstrip-items"],["tablist",""],[4,"ngFor","ngForOf"],["kendoTabStripScrollableButton","",3,"scrollable","tabPosition","prev","tabScroll","onClick"],["prevScrollButton",""],["kendoTabStripTab","","role","tab",3,"ngClass","ngStyle","tab","index","tabStripClosable","tabStripCloseIcon","id","tabClose","click"],["tabHeaderContainer",""],["nextScrollButton",""],["ngFor","",3,"ngForOf"],["role","tabpanel",3,"ngClass","tabIndex","id",4,"ngIf"],["role","tabpanel",3,"ngClass","tabIndex","id"],[3,"ngTemplateOutlet"],[3,"resize"]]},template:function(t,e){1&t&&(Wt(0,0),T(1,DOe,3,2,"ng-container",1),T(2,AOe,3,2,"ng-container",1),T(3,OOe,6,10,"ng-template",null,2,$n),T(5,LOe,1,1,"ng-template",null,3,$n),T(7,POe,1,0,"kendo-resize-sensor",4)),2&t&&(k(1),y("ngIf",!e.tabsAtBottom),k(1),y("ngIf",e.tabsAtBottom),k(5),y("ngIf",e.isScrollable))},directives:[w7,D7,Gr,E7,qe,En,Nt,gn,Vi],encapsulation:2,data:{animation:[ef("state",[Cd("active",Ft({opacity:1})),iu("* => active",[Ft({opacity:0}),Ai("400ms ease-in")])])]}}),i}(),bNe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(TD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-tabstrip-messages"]],features:[de([{provide:TD,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),A7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerTemplate",""]]}),i}(),x7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerItemTemplate",""]]}),i}(),M7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerHeaderTemplate",""]]}),i}(),R7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoDrawerFooterTemplate",""]]}),i}(),AD=function(){var i=function(){function r(){p(this,r),this.selectedIndices=[]}return v(r,[{key:"onSelect",value:function(e){this.selectedIndices=[e];var n=this.owner;n.autoCollapse&&!n.minimized&&n.toggle(!1)}},{key:"initSelection",value:function(){var e=this.owner.items;this.selectedIndices=[];for(var n=0;n=0}},{key:"label",get:function(){return this.item.text?this.item.text:null}},{key:"ngAfterViewInit",value:function(){var e=I7(this.element.nativeElement,".k-drawer-link");e&&this.renderer.removeAttribute(e,"tabindex")}},{key:"iconClasses",get:function(){var e=[];return this.item.icon&&e.push("k-icon ".concat(this.item.icon)),this.item.iconClass&&e.push("".concat(this.item.iconClass)),e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(AD),m(ke),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["","kendoDrawerItem",""]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("aria-disabled",e.disabledClass)("aria-selected",e.selectedClass)("aria-label",e.label),ue("k-state-disabled",e.disabledClass)("k-state-selected",e.selectedClass))},inputs:{item:"item",index:"index",itemTemplate:"itemTemplate",mini:"mini",expanded:"expanded",disabled:"disabled",cssClass:"cssClass",cssStyle:"cssStyle"},attrs:BOe,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf"],[3,"ngClass"],[1,"k-item-text"]],template:function(t,e){if(1&t&&(T(0,VOe,1,4,null,0),T(1,HOe,2,2,"ng-template",null,1,$n)),2&t){var n=Yt(2);y("ngIf",e.itemTemplate)("ngIfElse",n)}},directives:[qe,En,Nt],encapsulation:2}),i}(),F7=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.drawerService=t,this.renderer=e,this.ngZone=n,this.changeDetector=a,this.element=o,this.select=new O,this.subscriptions=new Je}return v(r,[{key:"ngOnInit",value:function(){this.initialSelection(),this.initDomEvents()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"initialSelection",value:function(){0===this.drawerService.selectedIndices.length&&this.drawerService.initSelection()}},{key:"initDomEvents",value:function(){var e=this;!this.element||this.ngZone.runOutsideAngular(function(){var n=e.element.nativeElement;e.subscriptions.add(e.renderer.listen(n,"click",e.clickHandler.bind(e))),e.subscriptions.add(e.renderer.listen(n,"keydown",e.keyDownHandler.bind(e)))})}},{key:"clickHandler",value:function(e){var n=this,a=this.getDrawerItemIndex(e.target),o=this.items[a];if(o){if(o.disabled)return void e.preventDefault();var s={index:a,item:o,originalEvent:e};this.ngZone.run(function(){var l=new PNe(s);n.select.emit(l),l.isDefaultPrevented()||(n.drawerService.onSelect(a),n.changeDetector.detectChanges())})}}},{key:"keyDownHandler",value:function(e){if(e.keyCode===J.Enter||e.keyCode===J.Space){this.clickHandler(e);var a=I7(this.element.nativeElement,":focus:not(.k-state-disabled) .k-drawer-link");return a&&a.click(),!1}}},{key:"getDrawerItemIndex",value:function(e){var n=v7(e,O7,this.element.nativeElement);if(n)return f7(n,O7)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(AD),m(Ee),m(be),m(nt),m(ke))},i.\u0275cmp=L({type:i,selectors:[["","kendoDrawerList",""]],inputs:{items:"items",itemTemplate:"itemTemplate",mini:"mini",expanded:"expanded"},outputs:{select:"select"},attrs:KOe,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoDrawerItem","","class","k-drawer-item","tabindex","0",3,"item","index","mini","expanded","itemTemplate","ngClass","ngStyle",4,"ngIf"],["class","k-drawer-item k-drawer-separator",3,"ngClass","ngStyle",4,"ngIf"],["kendoDrawerItem","","tabindex","0",1,"k-drawer-item",3,"item","index","mini","expanded","itemTemplate","ngClass","ngStyle"],[1,"k-drawer-item","k-drawer-separator",3,"ngClass","ngStyle"]],template:function(t,e){1&t&&T(0,$Oe,3,2,"ng-container",0),2&t&&y("ngForOf",e.items)},directives:[N7,gn,qe,Nt,Vi],encapsulation:2}),i}(),L7={type:"slide",duration:200},P7=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.element=t,this.builder=e,this.localizationService=n,this.drawerService=a,this.hostClasses=!0,this.mode="overlay",this.position="start",this.mini=!1,this.expanded=!1,this.width=240,this.miniWidth=50,this.autoCollapse=!0,this.animation=L7,this.expand=new O,this.collapse=new O,this.select=new O,this.expandedChange=new O,this.animationEnd=new O,this.rtl=!1,this._items=[],jt(fl),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(s){o.rtl=s.rtl,o.direction=o.rtl?"rtl":"ltr"}),this.drawerService.owner=this}return v(r,[{key:"startPositionClass",get:function(){return"start"===this.position}},{key:"endPositionClass",get:function(){return"end"===this.position}},{key:"overlayTransofrmStyles",get:function(){if("push"!==this.mode)return this.expanded||this.minimized?"translateX(0px)":"translateX(-100%)"}},{key:"flexStyles",get:function(){if("overlay"!==this.mode)return this.expanded||this.minimized?this.drawerWidth:0}},{key:"items",get:function(){return this._items},set:function(e){Mi(e)&&(this._items=e,this.drawerService.initSelection())}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"minimized",get:function(){return this.mini&&!this.expanded}},{key:"drawerWidth",get:function(){return this.minimized?this.miniWidth:this.width}},{key:"toggle",value:function(e){var n=this,a=this.expanded,o=Mi(e)?e:!a;o!==a&&(!0===o?this.setExpanded(!0):!1===o&&!this.animation&&this.setExpanded(!1),this.animation?(this.animationEnd.pipe(It(1)).subscribe(function(){n.onAnimationEnd(o)}),this.animate(o)):this[o?"expand":"collapse"].emit())}},{key:"onSelect",value:function(e){this.select.emit(Object.assign(e,{sender:this}))}},{key:"onAnimationEnd",value:function(e){e?this.expand.emit():(this.setExpanded(!1),this.collapse.emit())}},{key:"setExpanded",value:function(e){this.expanded=e,this.expandedChange.emit(e)}},{key:"animate",value:function(e){var n={mode:this.mode,mini:this.mini,miniWidth:this.miniWidth,width:this.width,rtl:this.rtl,position:this.position,animation:"boolean"!=typeof this.animation?this.animation:L7},a=e?function INe(i){var r=i.animation.duration,t=i.width,e=i.miniWidth,n=i.mode,a=i.mini,o=i.rtl,s=i.position;return a&&"push"===n?function SNe(i,r,t){return[Ft({overflow:"hidden",flexBasis:"".concat(t,"px")}),Ai("".concat(i,"ms ease-in"),Ft({flexBasis:"".concat(r,"px")}))]}(r,t,e):a||"push"!==n?a||"overlay"!==n?a&&"overlay"===n?function DNe(i,r,t){return[Ft({width:"".concat(t,"px")}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",width:"".concat(r,"px")}))]}(r,t,e):void 0:o?function ANe(i){return[Ft({transform:"translateX(100%)"}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",transform:"translateX(0)"}))]}(r):function xNe(i,r){return[Ft({transform:"translateX(".concat("end"!==r?"-100%":"100%",")")}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",transform:"translateX(0)"}))]}(r,s):function ENe(i,r){return[Ft({overflow:"hidden",flexBasis:"0px"}),Ai("".concat(i,"ms ease-in"),Ft({flexBasis:"".concat(r,"px")}))]}(r,t)}(n):function NNe(i){var r=i.animation.duration,t=i.width,e=i.miniWidth,n=i.mode,a=i.mini,o=i.rtl,s=i.position;return a&&"push"===n?function wNe(i,r,t){return[Ft({overflow:"hidden",flexBasis:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Ft({flexBasis:"".concat(t,"px")}))]}(r,t,e):a||"push"!==n?a||"overlay"!==n?a&&"overlay"===n?function MNe(i,r,t){return[Ft({width:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",width:"".concat(t,"px")}))]}(r,t,e):void 0:o?function ONe(i){return[Ft({transform:"translateX(0)"}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",transform:"translateX(100%)"}))]}(r):function RNe(i,r){var t="end"!==r?"-100%":"100%";return[Ft({transform:"translateX(0)"}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",transform:"translateX(".concat(t,")")}))]}(r,s):function TNe(i,r){return[Ft({flexBasis:"".concat(r,"px")}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",flexBasis:"0px"}))]}(r,t)}(n);this.createPlayer(a,this.element.nativeElement).play()}},{key:"createPlayer",value:function(e,n){var a=this,s=this.builder.build(e).create(n);return s.onDone(function(){s&&(a.animationEnd.emit(),s.destroy(),s=null)}),s}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(zp),m(Y),m(AD))},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,A7,5),he(n,R7,5),he(n,M7,5),he(n,x7,5)),2&t&&(P(a=B())&&(e.drawerTemplate=a.first),P(a=B())&&(e.footerTemplate=a.first),P(a=B())&&(e.headerTemplate=a.first),P(a=B())&&(e.itemTemplate=a.first))},hostVars:13,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("transform",e.overlayTransofrmStyles)("flex-basis",e.flexStyles,"px"),ue("k-widget",e.hostClasses)("k-drawer",e.hostClasses)("k-drawer-start",e.startPositionClass)("k-drawer-end",e.endPositionClass))},inputs:{mode:"mode",position:"position",mini:"mini",expanded:"expanded",width:"width",miniWidth:"miniWidth",autoCollapse:"autoCollapse",items:"items",animation:"animation"},outputs:{expand:"expand",collapse:"collapse",select:"select",expandedChange:"expandedChange"},exportAs:["kendoDrawer"],features:[de([Y,AD,{provide:Dt,useValue:"kendo.drawer"}])],decls:1,vars:1,consts:[["class","k-drawer-wrapper",3,"width",4,"ngIf"],[1,"k-drawer-wrapper"],[4,"ngIf"],["kendoDrawerList","",1,"k-drawer-items",3,"items","mini","expanded","itemTemplate","select"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&T(0,tIe,3,4,"div",0),2&t&&y("ngIf",e.expanded||e.mini)},directives:[F7,qe,En],encapsulation:2}),i}(),BNe=function(){var i=function(){function r(t){var e=this;p(this,r),this.localizationService=t,this.rtl=!1,this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){e.rtl=n.rtl,e.direction=e.rtl?"rtl":"ltr"})}return v(r,[{key:"hostClass",get:function(){return!0}},{key:"overlayClass",get:function(){return"overlay"===this.drawer.mode}},{key:"miniClass",get:function(){return this.drawer.mini}},{key:"pushClass",get:function(){return"push"===this.drawer.mode}},{key:"isExpandedClass",get:function(){return this.drawer.expanded}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"overlay",get:function(){return Mi(this.drawer)&&this.drawer.expanded&&"overlay"===this.drawer.mode}},{key:"closeDrawer",value:function(){this.overlay&&this.drawer.autoCollapse&&this.drawer.toggle(!1)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer-container"]],contentQueries:function(t,e,n){var a;1&t&&he(n,P7,5),2&t&&P(a=B())&&(e.drawer=a.first)},hostVars:11,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-drawer-container",e.hostClass)("k-drawer-overlay",e.overlayClass)("k-drawer-mini",e.miniClass)("k-drawer-push",e.pushClass)("k-drawer-expanded",e.isExpandedClass))},features:[de([Y,{provide:Dt,useValue:"kendo.drawer.container"}])],ngContentSelectors:_a,decls:2,vars:1,consts:[["class","k-overlay",3,"click",4,"ngIf"],[1,"k-overlay",3,"click"]],template:function(t,e){1&t&&(kn(),T(0,nIe,1,0,"div",0),dn(1)),2&t&&y("ngIf",e.overlay)},directives:[qe],encapsulation:2}),i}(),GNe=function(){var i=v(function r(){p(this,r),this.hostClasses=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-drawer-content"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-drawer-content",e.hostClasses)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),B7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperStepTemplate",""]]}),i}(),G7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperLabelTemplate",""]]}),i}(),V7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoStepperIndicatorTemplate",""]]}),i}(),su={};su[J.ArrowLeft]="left",su[J.ArrowRight]="right",su[J.ArrowUp]="up",su[J.ArrowDown]="down",su[J.Home]="home",su[J.End]="end",su[J.Enter]="enter",su[J.Space]="enter";var WI=Object.assign({},su);WI[J.ArrowLeft]="right",WI[J.ArrowRight]="left";var UNe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),$I=function(){var i=function(){function r(t,e,n){p(this,r),this.localization=t,this.ngZone=e,this.changeDetector=n,this.currentStep=0,this.triggerValidation=new O,this.focusedStepChange=new O}return v(r,[{key:"handlers",get:function(){return this.localization.rtl?WI:su}},{key:"emit",value:function(e,n){var a=this.owner;return ut(a[e])&&a[e].emit(n),n.isDefaultPrevented()}},{key:"onActivate",value:function(e,n){var a=this,o=new UNe({index:e,step:this.owner.steps[e],originalEvent:n,sender:this.owner});this.ngZone.run(function(){a.emit("activate",o)||(a.currentStep=e,a.owner.currentStepChange.emit(e),a.changeDetector.detectChanges())})}},{key:"validateSteps",value:function(){this.triggerValidation.emit()}},{key:"keydown",value:function(e){var a=this.handlers[e.keyCode];!Mi(this.focusedStep||this.currentStep)||a&&(e.preventDefault(),this[a](e))}},{key:"left",value:function(){!this.isHorizontal||this.focusPrevStep()}},{key:"right",value:function(){!this.isHorizontal||this.focusNextStep()}},{key:"up",value:function(){this.isHorizontal||this.focusPrevStep()}},{key:"down",value:function(){this.isHorizontal||this.focusNextStep()}},{key:"home",value:function(){this.focusedStep=0,this.focusedStepChange.emit()}},{key:"end",value:function(){this.focusedStep=this.owner.steps.length-1,this.focusedStepChange.emit()}},{key:"enter",value:function(e){this.focusedStep!==this.currentStep&&(this.isStepDisabled(this.focusedStep)||this.owner.linear&&!1===this.isPrevOrNextStep(this.focusedStep)||this.onActivate(this.focusedStep,e))}},{key:"focus",value:function(e){this.focusedStep=e}},{key:"focusNextStep",value:function(){this.focusedStep0&&(this.focusedStep-=1,this.focusedStepChange.emit())}},{key:"isStepDisabled",value:function(e){return this.owner.steps[e].disabled}},{key:"isPrevOrNextStep",value:function(e){return e===this.currentStep+1||e===this.currentStep-1}},{key:"isHorizontal",get:function(){return"horizontal"===this.owner.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y),oe(be),oe(nt))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),U7="data-kendo-stepper-index",z7=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.service=t,this.localization=e,this.ngZone=n,this.isStepValid=void 0,this.shouldCheckValidity=void 0,jt(fl),this.subs=this.service.focusedStepChange.subscribe(function(){a.onFocusedStepChange()}),this.subs.add(this.service.triggerValidation.subscribe(function(){a.handleValidityChecks()}))}return v(r,[{key:"errorStepClass",get:function(){return!!Mi(this.isStepValid)&&!this.isStepValid}},{key:"successStepClass",get:function(){return!!Mi(this.isStepValid)&&this.isStepValid}},{key:"ngOnInit",value:function(){this.handleValidityChecks()}},{key:"ngOnChanges",value:function(e){e.current&&!e.current.firstChange&&this.handleValidityChecks()}},{key:"ngOnDestroy",value:function(){this.subs&&this.subs.unsubscribe()}},{key:"onFocusedStepChange",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.index===e.service.focusedStep&&e.stepLink.nativeElement.focus()})}},{key:"onFocus",value:function(){this.service.focus(this.index)}},{key:"tabIndexAttr",get:function(){return this.index===(this.service.focusedStep||this.service.currentStep)?0:-1}},{key:"indicatorIconClasses",get:function(){return this.step.icon?"k-icon k-i-".concat(this.step.icon):this.step.iconClass?"".concat(this.step.iconClass):this.shouldCheckValidity?this.validationIconClasses:void 0}},{key:"showIndicatorIcon",get:function(){return!!(this.shouldCheckValidity||this.step.icon||this.step.iconClass)}},{key:"showLabelIcon",get:function(){return!(!this.shouldCheckValidity||"label"!==this.type&&!this.step.icon&&!this.step.iconClass)}},{key:"showLabelText",get:function(){return"label"===this.type||"full"===this.type}},{key:"validationIconClasses",get:function(){return this.isStepValid?this.successIcon?"".concat(this.successIcon):"k-icon k-i-check":this.errorIcon?"".concat(this.errorIcon):"k-icon k-i-warning"}},{key:"indicatorText",get:function(){return this.step.text||this.index+1}},{key:"updateStepValidity",value:function(){return"boolean"==typeof this.step.isValid?this.step.isValid:"function"==typeof this.step.isValid?this.step.isValid(this.index):void 0}},{key:"showIndicator",get:function(){return"indicator"===this.type||"full"===this.type}},{key:"showLabel",get:function(){return"label"===this.type||"full"===this.type||this.step.optional}},{key:"optionalText",get:function(){return this.localization.get("optional")}},{key:"transitionDuration",get:function(){return this.service.owner.animationDuration}},{key:"_shouldCheckValidity",value:function(){if(Mi(this.step.validate)){if("boolean"==typeof this.step.validate)return this.step.validate;if("function"==typeof this.step.validate)return this.step.validate(this.index)}return Mi(this.step.isValid)&&this.index0&&(this._steps=e)}},{key:"ngOnInit",value:function(){this.applyHostStyling()}},{key:"ngOnChanges",value:function(e){e.steps&&!e.steps.firstChange&&this.applyHostStyling(),e.orientation&&(this.resetHostStyling(),this.applyHostStyling())}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}},{key:"validateSteps",value:function(){this.stepperService.validateSteps()}},{key:"applyHostStyling",value:function(){var e="horizontal"===this.orientation?"grid-template-columns":"grid-template-rows",n="repeat(".concat(2*this.steps.length,", 1fr)");this.renderer.setStyle(this.elem.nativeElement,e,n)}},{key:"resetHostStyling",value:function(){this.renderer.removeStyle(this.elem.nativeElement,"grid-template-columns"),this.renderer.removeStyle(this.elem.nativeElement,"grid-template-rows")}},{key:"progressAnimation",get:function(){return{duration:this.animationDuration}}},{key:"animationDuration",get:function(){return"number"==typeof this.animation?this.animation:"boolean"==typeof this.animation&&this.animation?400:0}},{key:"stepsListStyling",get:function(){return"horizontal"===this.orientation?{"grid-column-start":1,"grid-column-end":-1}:{"grid-row-start":1,"grid-row-end":-1}}},{key:"progressBarStyling",get:function(){return"horizontal"===this.orientation?{"grid-column-start":2,"grid-column-end":2*this.steps.length}:{"grid-row-start":2,"grid-row-end":2*this.steps.length}}},{key:"onListKeydown",value:function(e){this.stepperService.keydown(e)}},{key:"onListClick",value:function(e){e.stepIdx!==e.currentStep?e.linear&&!1===this.stepperService.isPrevOrNextStep(e.stepIdx)||this.stepperService.onActivate(e.stepIdx,e.originalEvent):this.stepperService.focus(e.stepIdx)}},{key:"isHorizontal",get:function(){return"horizontal"===this.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(Y),m($I))},i.\u0275cmp=L({type:i,selectors:[["kendo-stepper"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,B7,5),he(n,G7,5),he(n,V7,5)),2&t&&(P(a=B())&&(e.stepTemplate=a.first),P(a=B())&&(e.labelTemplate=a.first),P(a=B())&&(e.indicatorTemplate=a.first))},hostVars:10,hostBindings:function(t,e){2&t&&(ie("role",e.ariaRole)("dir",e.direction),Qe("display",e.displayStyle),ue("k-widget",e.hostClasses)("k-stepper",e.hostClasses)("k-stepper-linear",e.linearClass))},inputs:{stepType:"stepType",linear:"linear",orientation:"orientation",currentStep:"currentStep",steps:"steps",successIcon:"successIcon",errorIcon:"errorIcon",animation:"animation"},outputs:{activate:"activate",currentStepChange:"currentStepChange"},exportAs:["kendoStepper"],features:[de([Y,$I,{provide:Dt,useValue:"kendo.stepper"}]),Ie],decls:3,vars:16,consts:function(){return[["kendoStepperLocalizedMessages","","optional",$localize(n7||(n7=le([":kendo.stepper.optional|The text for the optional segment of the step label:Optional"])))],["kendoStepperList","",1,"k-step-list",3,"stepType","linear","orientation","steps","currentStep","successIcon","errorIcon","indicatorTemplate","labelTemplate","stepTemplate","ngStyle","listKeydown","listClick"],[3,"animation","max","label","orientation","reverse","value","ngStyle",4,"ngIf"],[3,"animation","max","label","orientation","reverse","value","ngStyle"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"ol",1),Q("listKeydown",function(a){return e.onListKeydown(a)})("listClick",function(a){return e.onListClick(a)}),x(),T(2,SIe,1,8,"kendo-progressbar",2)),2&t&&(k(1),ue("k-step-list-horizontal",e.isHorizontal)("k-step-list-vertical",!e.isHorizontal),y("stepType",e.stepType)("linear",e.linear)("orientation",e.orientation)("steps",e.steps)("currentStep",e.currentStep)("successIcon",e.successIcon)("errorIcon",e.errorIcon)("indicatorTemplate",null==e.indicatorTemplate?null:e.indicatorTemplate.templateRef)("labelTemplate",null==e.labelTemplate?null:e.labelTemplate.templateRef)("stepTemplate",null==e.stepTemplate?null:e.stepTemplate.templateRef)("ngStyle",e.stepsListStyling),k(1),y("ngIf",e.steps.length>0))},directives:[H7,e7,K7,Vi,qe],encapsulation:2}),i}(),KNe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(xD);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-stepper-messages"]],features:[de([{provide:xD,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),$7="primary",jNe=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.element=e,this.hostClass=!0,this.border=!1,this._themeColor=$7,this._size="medium",this._fillMode="solid",this._rounded="full",jt(fl)}return v(r,[{key:"borderClass",get:function(){return this.border}},{key:"flexBasis",get:function(){return this.width}},{key:"shape",set:function(e){this.rounded=function(r){return KIe[r]||"none"}(e)}},{key:"size",get:function(){return this._size},set:function(e){if(e!==this._size){var n=e||"medium";this.handleClasses("size",n),this._size=n}}},{key:"rounded",get:function(){return this._rounded},set:function(e){if(e!==this._rounded){var n=e||"full";this.handleClasses("rounded",n),this._rounded=n}}},{key:"themeColor",get:function(){return this._themeColor},set:function(e){e!==this._themeColor&&(this._themeColor=e||$7,this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor))}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){e!==this.fillMode&&(this._fillMode=e||"solid",this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor))}},{key:"fill",set:function(e){this.fillMode=e}},{key:"avatarWidth",get:function(){return this.width}},{key:"avatarHeight",get:function(){return this.height}},{key:"ngOnInit",value:function(){this.verifyProperties()}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded"].forEach(function(a){e.handleClasses(a,e[a])}),this.handleFillModeAndThemeColorClasses(this.fillMode,this.themeColor)}},{key:"iconClasses",value:function(){return this.icon?"k-icon k-i-".concat(this.icon):this.iconClass?"".concat(this.iconClass):void 0}},{key:"customAvatar",get:function(){return!(this.imageSrc||this.initials||this.icon||this.iconClass)}},{key:"verifyProperties",value:function(){if(xt()&&[this.icon||this.iconClass,this.imageSrc,this.initials].filter(function(a){return a}).length>1)throw new Error("\n Invalid property configuration given.\n The kendo-avatar component can accept only one of:\n icon, imageSrc or initials properties.\n ")}},{key:"handleClasses",value:function(e,n){var a=this.element.nativeElement,o=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(l7[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(l7[n]):""};case"rounded":return{toRemove:"k-rounded-".concat(u7[e]),toAdd:"none"!==n?"k-rounded-".concat(u7[n]):""}}}("avatar",e,this[e],n);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}},{key:"handleFillModeAndThemeColorClasses",value:function(e,n){var a=this,o=this.element.nativeElement;Array.from(o.classList).filter(function(u){return u.startsWith("k-avatar-solid")||u.startsWith("k-avatar-outline")}).forEach(function(u){return a.renderer.removeClass(o,u)}),"none"!==e&&this.renderer.addClass(o,"k-avatar-".concat(e)),"none"!==e&&"none"!==n&&this.renderer.addClass(o,"k-avatar-".concat(e,"-").concat(n))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-avatar"]],hostVars:10,hostBindings:function(t,e){2&t&&(Qe("flex-basis",e.flexBasis)("width",e.avatarWidth)("height",e.avatarHeight),ue("k-avatar",e.hostClass)("k-avatar-bordered",e.borderClass))},inputs:{shape:"shape",size:"size",rounded:"rounded",themeColor:"themeColor",fillMode:"fillMode",fill:"fill",border:"border",iconClass:"iconClass",width:"width",height:"height",cssStyle:"cssStyle",initials:"initials",icon:"icon",imageSrc:"imageSrc"},ngContentSelectors:_a,decls:4,vars:4,consts:[[4,"ngIf"],[1,"k-avatar-image"],[3,"src","ngStyle"],[1,"k-avatar-text",3,"ngStyle"],[1,"k-avatar-icon",3,"ngStyle","ngClass"]],template:function(t,e){1&t&&(kn(),T(0,wIe,1,0,"ng-content",0),T(1,DIe,3,2,"ng-container",0),T(2,EIe,3,2,"ng-container",0),T(3,TIe,2,2,"ng-container",0)),2&t&&(y("ngIf",e.customAvatar),k(1),y("ngIf",e.imageSrc),k(1),y("ngIf",e.initials),k(1),y("ngIf",e.icon||e.iconClass))},directives:[qe,Vi,Nt],encapsulation:2}),i}(),WNe=function(){var i=function(){function r(t){var e=this;p(this,r),this.localizationService=t,this.hostClass=!0,this.orientation="vertical",this.width="285px",this.rtl=!1,jt(fl),this.dynamicRTLSubscription=this.localizationService.changes.subscribe(function(n){e.rtl=n.rtl,e.direction=e.rtl?"rtl":"ltr"})}return v(r,[{key:"widthStyle",get:function(){return this.width}},{key:"vertical",get:function(){return"vertical"===this.orientation}},{key:"horizontal",get:function(){return"horizontal"===this.orientation}},{key:"ngOnDestroy",value:function(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-card"]],hostVars:11,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("width",e.widthStyle),ue("k-widget",e.hostClass)("k-card",e.hostClass)("k-card-vertical",e.vertical)("k-card-horizontal",e.horizontal))},inputs:{orientation:"orientation",width:"width"},features:[de([Y,{provide:Dt,useValue:"kendo.card.component"}])],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),$Ne=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-header"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-header",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),qNe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-body"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-body",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),XNe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-footer"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-footer",e.hostClass)},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),ZNe=function(){var i=function(){function r(){p(this,r),this.hostClass=!0,this.orientation="horizontal",this.layout="start",this.action=new O}return v(r,[{key:"stretchedClass",get:function(){return"stretched"===this.layout}},{key:"startClass",get:function(){return"start"===this.layout}},{key:"endClass",get:function(){return"end"===this.layout}},{key:"centerClass",get:function(){return"center"===this.layout}},{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}},{key:"actions",set:function(e){Array.isArray(e)?this.actionsArray=e:e instanceof $e&&(this.actionsTemplate=e)}},{key:"onClick",value:function(e){this.action.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-card-actions"]],hostVars:14,hostBindings:function(t,e){2&t&&ue("k-card-actions",e.hostClass)("k-card-actions-stretched",e.stretchedClass)("k-card-actions-start",e.startClass)("k-card-actions-end",e.endClass)("k-card-actions-center",e.centerClass)("k-card-actions-vertical",e.verticalClass)("k-card-actions-horizontal",e.horizontalClass)},inputs:{orientation:"orientation",layout:"layout",actions:"actions"},outputs:{action:"action"},ngContentSelectors:_a,decls:3,vars:3,consts:[[4,"ngIf"],["type","button","class","k-button",3,"k-primary","k-flat","click",4,"ngFor","ngForOf"],["type","button",1,"k-button",3,"click"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(kn(),T(0,AIe,1,0,"ng-content",0),T(1,MIe,2,1,"ng-container",0),T(2,OIe,1,1,null,0)),2&t&&(y("ngIf",!e.actionsArray&&!e.actionsTemplate),k(1),y("ngIf",e.actionsArray),k(1),y("ngIf",e.actionsTemplate))},directives:[qe,gn,En],encapsulation:2}),i}(),YNe=function(){var i=function(){function r(){p(this,r),this.hostClass=!0,this.orientation="horizontal"}return v(r,[{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardSeparator",""]],hostVars:8,hostBindings:function(t,e){2&t&&(Qe("color",e.color),ue("k-card-separator",e.hostClass)("k-separator-vertical",e.verticalClass)("k-separator-horizontal",e.horizontalClass))},inputs:{color:"color",orientation:"orientation"}}),i}(),QNe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardTitle",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-title",e.hostClass)}}),i}(),JNe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardSubtitle",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-subtitle",e.hostClass)}}),i}(),eFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["","kendoCardMedia",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-card-media",e.hostClass)}}),i}(),X7=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoExpansionPanelTitleDirective",""]]}),i}(),iFe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Is),qI="k-hidden",aFe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.renderer=t,this.hostElement=e,this.ngZone=n,this.localizationService=a,this.builder=o,this.title="",this.subtitle="",this.disabled=!1,this.animation=!0,this.expandedChange=new O,this.action=new O,this.expand=new O,this.collapse=new O,this.hostClass=!0,this.tabindex=0,this.focused=!1,this.animationEnd=new O,this.subscriptions=new Je,this._expanded=!1,jt(fl),this.direction=a.rtl?"rtl":"ltr"}return v(r,[{key:"expanded",get:function(){return this._expanded},set:function(e){e!==this.expanded&&(this._expanded=e,this.expanded?this.removeContentHiddenClass():this.addContentHiddenClass())}},{key:"expandedClass",get:function(){return this.expanded&&!this.disabled}},{key:"focusClass",get:function(){return this.focused}},{key:"disabledClass",get:function(){return this.disabled}},{key:"onComponentBlur",value:function(){this.focused&&(this.focused=!1)}},{key:"onComponentFocus",value:function(){this.focused||(this.focused=!0)}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.hostElement.nativeElement,"title"),this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){this.initDomEvents(),this.expanded||this.renderer.addClass(this.content.nativeElement,qI)}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"initDomEvents",value:function(){var e=this;!this.hostElement||this.disabled||this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(e.hostElement.nativeElement,"keydown",e.keyDownHandler.bind(e)))})}},{key:"keyDownHandler",value:function(e){var n=this;e.keyCode!==J.Enter&&e.keyCode!==J.Space||DD(e.target,"k-expander")&&(e.preventDefault(),this.ngZone.run(function(){n.onHeaderAction()}))}},{key:"onHeaderClick",value:function(e){!wD(e.target)&&!this.disabled&&this.onHeaderAction()}},{key:"onHeaderAction",value:function(){this.focused=!0;var e=new iFe;if(e.action=this.expanded?"collapse":"expand",this.action.emit(e),!e.isDefaultPrevented()){if(this.setExpanded(!this.expanded),this.expanded&&this.removeContentHiddenClass(),this.animation)return void this.animateContent();this.expanded||this.addContentHiddenClass(),this.emitExpandCollapseEvent()}}},{key:"indicatorClasses",get:function(){return this.expanded?this.collapseIcon?this.collapseIcon:"k-icon k-i-arrow-chevron-up":this.expandIcon?this.expandIcon:"k-icon k-i-arrow-chevron-down"}},{key:"toggle",value:function(e){var n=this.expanded,a=Mi(e)?e:!n;if(a!==n){if(this.setExpanded(a),this.expanded&&this.removeContentHiddenClass(),this.animation)return void this.animateContent();this.expanded||this.addContentHiddenClass(),this.emitExpandCollapseEvent()}}},{key:"setExpanded",value:function(e){this._expanded=e,this.expandedChange.emit(e)}},{key:"animateContent",value:function(){var e=this,n="boolean"==typeof this.animation?200:this.animation,a=getComputedStyle(this.content.nativeElement).height,o=this.expanded?function tFe(i,r){return[Ft({overflow:"hidden",display:"block",height:0}),Ai("".concat(i,"ms ease-in"),Ft({height:"".concat(r)}))]}(n,a):function nFe(i,r){return[Ft({overflow:"hidden",height:"".concat(r)}),Ai("".concat(i,"ms ease-in"),Ft({overflow:"hidden",height:0}))]}(n,a),s=this.createPlayer(o,this.content.nativeElement);this.animationEnd.pipe(It(1)).subscribe(function(){e.expanded||e.addContentHiddenClass(),e.emitExpandCollapseEvent()}),s.play()}},{key:"createPlayer",value:function(e,n){var a=this,s=this.builder.build(e).create(n);return s.onDone(function(){s&&(a.animationEnd.emit(),s.destroy(),s=null)}),s}},{key:"emitExpandCollapseEvent",value:function(){this[this.expanded?"expand":"collapse"].emit()}},{key:"addContentHiddenClass",value:function(){this.renderer.addClass(this.content.nativeElement,qI)}},{key:"removeContentHiddenClass",value:function(){this.renderer.removeClass(this.content.nativeElement,qI)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(be),m(Y),m(zp))},i.\u0275cmp=L({type:i,selectors:[["kendo-expansionpanel"]],contentQueries:function(t,e,n){var a;1&t&&he(n,X7,5),2&t&&P(a=B())&&(e.titleTemplate=a.first)},viewQuery:function(t,e){var n;1&t&&ge(IIe,7),2&t&&P(n=B())&&(e.content=n.first)},hostVars:11,hostBindings:function(t,e){1&t&&Q("blur",function(){return e.onComponentBlur()})("focus",function(){return e.onComponentFocus()}),2&t&&(ie("aria-disabled",e.disabledClass)("dir",e.direction)("tabindex",e.tabindex),ue("k-expander",e.hostClass)("k-expanded",e.expandedClass)("k-state-focus",e.focusClass)("k-state-disabled",e.disabledClass))},inputs:{title:"title",subtitle:"subtitle",disabled:"disabled",expanded:"expanded",expandIcon:"expandIcon",collapseIcon:"collapseIcon",animation:"animation"},outputs:{expandedChange:"expandedChange",action:"action",expand:"expand",collapse:"collapse"},exportAs:["kendoExpansionPanel"],features:[de([Y,{provide:Dt,useValue:"kendo.expansionpanel"}])],ngContentSelectors:_a,decls:9,vars:7,consts:[["role","button",3,"click"],[4,"ngIf"],[1,"k-expander-indicator"],[3,"ngClass"],[1,"k-expander-content-wrapper"],["content",""],[1,"k-expander-content"],["class","k-expander-title",4,"ngIf"],[1,"k-spacer"],["class","k-expander-sub-title",4,"ngIf"],[1,"k-expander-title"],[1,"k-expander-sub-title"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(kn(),A(0,"div",0),Q("click",function(a){return e.onHeaderClick(a)}),T(1,LIe,4,2,"ng-container",1),T(2,BIe,1,1,null,1),A(3,"span",2),z(4,"span",3),x()(),A(5,"div",4,5)(7,"div",6),dn(8),x()()),2&t&&(ue("k-expander-header",!0),ie("aria-expanded",e.expanded&&!e.disabled),k(1),y("ngIf",!e.titleTemplate),k(1),y("ngIf",e.titleTemplate),k(2),y("ngClass",e.indicatorClasses),k(3),ie("aria-hidden",!e.expanded))},directives:[qe,En,Nt],encapsulation:2}),i}(),XI=function(r){return r?+r:void 0},Z7=function(r,t){for(var e=0;e5&&void 0!==arguments[5]&&arguments[5],s=t.getBoundingClientRect(),l=(s.height-e.rows)/(n.height+e.rows),u=r.y-s.y,c=r.x-s.x,d=s.right-r.x,h=Math.floor((o?d:c)/(e.columns+n.width)),f=Math.min(h+1,a),g=Math.floor(u/(e.rows+n.height)),_=Math.min(g+1,l),C=Math.max(f,0),w=Math.max(_,0);return{row:w,col:C}},J7=["ew","ns","nwse"],e9=["ew","ns","nesw"],cg={ew:{width:9,overlapX:5},ns:{height:9,overlapY:5},nwse:{width:25,height:25,overlapX:18,overlapY:18},nesw:{width:25,height:25,overlapX:18,overlapY:18}},uFe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l,u,c){var d;return p(this,t),(d=r.call(this)).item=e,d.items=n,d.newIndex=a,d.oldIndex=o,d.newCol=s,d.oldCol=l,d.newRow=u,d.oldRow=c,d}return v(t)}(Is),cFe=function(i){b(t,i);var r=S(t);function t(e,n,a,o,s,l){var u;return p(this,t),(u=r.call(this)).item=e,u.items=n,u.newRowSpan=a,u.oldRowSpan=o,u.newColSpan=s,u.oldColSpan=l,u}return v(t)}(Is),ZI=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.zone=t,this.renderer=e,this.localization=n,this.reorderable=new xi(null),this.resizable=new xi(null),this.reorder=new Ot,this.resize=new Ot,this.lastDragCursorOffset={x:0,y:0},this.localizationSubscription=this.localization.changes.subscribe(function(o){return a.rtl=o.rtl})}return v(r,[{key:"colStart",get:function(){return this.currentColStart}},{key:"rowStart",get:function(){return this.currentRowStart}},{key:"itemWrapper",get:function(){return this.draggedItemWrapper}},{key:"order",get:function(){return this.targetOrder}},{key:"ngOnDestroy",value:function(){this.localizationSubscription.unsubscribe()}},{key:"handlePress",value:function(e){var n=this,a=!!e.target.classList.contains("k-resize-handle"),o=FI(e.target,function(d){return d.classList.contains("k-tilelayout-item")},this.tileLayoutSettings.tileLayoutElement),s=FI(e.target,function(d){return d.classList.contains("k-tilelayout-item-header")},this.tileLayoutSettings.tileLayoutElement);if(o){this.zone.run(function(){n.draggedItemWrapper=o,n.draggedItem=n.tileLayoutSettings.items.find(function(d){return d.order===+o.style.order})});var l=!a&&this.reorderable.getValue()&&this.draggedItem.reorderable&&s;if(!l&&!a)return;e.preventDefault(),this.zone.run(function(){n.reordering=l,n.resizing=a});var u=this.draggedItemWrapper.getBoundingClientRect();if(this.zone.run(function(){n.offset={top:e.clientY-u.top,left:e.clientX-u.left,x:u.x,y:u.y,width:u.width,height:u.height},n.targetSize={rowSpan:n.draggedItem.rowSpan,colSpan:n.draggedItem.colSpan},n.cellSize={width:(u.width-(n.targetSize.colSpan-1)*n.tileLayoutSettings.gap.columns)/n.targetSize.colSpan,height:(u.height-(n.targetSize.rowSpan-1)*n.tileLayoutSettings.gap.rows)/n.targetSize.rowSpan},n.lastDragCursorOffset={x:e.clientX,y:e.clientY}}),Co(this.renderer,this.draggedItemWrapper,{left:u.left+window.pageXOffset+"px",top:u.top+window.pageYOffset+"px",width:u.width+"px",height:u.height+"px",zIndex:10}),Co(this.renderer,this.tileLayoutSettings.hintElement,{display:"flex",height:u.height-2+"px"}),this.zone.run(function(){return n.targetOrder=n.draggedItem.order}),Co(this.renderer,this.draggedItemWrapper,{position:"absolute"}),this.reorderable.getValue()&&!a){this.zone.run(function(){n.currentColStart=n.draggedItem.colStart,n.currentRowStart=n.draggedItem.rowStart});var c=this.draggedItem.elem.nativeElement.querySelector(".k-tilelayout-item-header");this.renderer.addClass(c,"k-cursor-grabbing")}else this.resizable&&a&&this.zone.run(function(){n.startingPoint={top:e.clientY,left:e.clientX},n.currentResizingColSpan=n.draggedItem.colSpan,n.currentResizingRowSpan=n.draggedItem.rowSpan,n.draggedItem.col&&(n.currentColStart=n.draggedItem.col.toString()),n.draggedItem.row&&(n.currentRowStart=n.draggedItem.row.toString()),n.direction=e.target.classList[1]})}}},{key:"handleDrag",value:function(e){this.draggedItemWrapper&&(this.reordering?this.reorderItems(e):this.resizing&&this.resizeItem(e),this.lastDragCursorOffset={x:e.clientX,y:e.clientY})}},{key:"handleRelease",value:function(e){var n=this;if(e.preventDefault(),this.reordering){var a=this.draggedItem.order,o=this.draggedItem.col,s=this.draggedItem.row,l=XI(this.currentColStart),u=XI(this.currentRowStart);if(Z7([this.targetOrder,l,u],[a,o,s])){var c=new uFe(this.draggedItem,this.tileLayoutSettings.items,this.targetOrder,a,XI(this.currentColStart),o,u,s);this.reorder.next(c),c.isDefaultPrevented()||(this.zone.run(this.targetOrder>a?function(){for(var w=function(R){n.tileLayoutSettings.items.find(function(N){return N.order===R}).order=R-1},E=a+1;E<=n.targetOrder;E++)w(E)}:function(){for(var w=function(R){n.tileLayoutSettings.items.find(function(N){return N.order===R}).order=R+1},E=n.targetOrder;E0?"right":l<0?"left":void 0,d=e.clientY-this.lastDragCursorOffset.y>0?"down":l<0?"up":void 0,h=this.draggedItemWrapper.getBoundingClientRect(),f=this.tileLayoutSettings.gap.columns,g=this.tileLayoutSettings.gap.rows;if(c&&this.draggedItem.col){var _=pf({x:"right"===c?h.right-f:h.left+f,y:e.clientY},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),w=this.getTargetCol(_.col,c);this.currentColStart=w.toString()}if(d&&this.draggedItem.row){var E=pf({x:e.clientX,y:"down"===d?h.bottom-g:h.top+g},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),R=this.getTargetRow(E.row,d);this.currentRowStart=R.toString()}}var N=sthis.targetOrder;this.zone.run(function(){return n.targetOrder=s}),N?this.tileLayoutSettings.tileLayoutElement.insertBefore(this.tileLayoutSettings.hintElement,this.tileLayoutSettings.tileLayoutElement.firstChild):V&&this.tileLayoutSettings.tileLayoutElement.appendChild(this.tileLayoutSettings.hintElement),Co(this.renderer,this.draggedItemWrapper,{top:e.pageY-this.offset.top+"px",left:e.pageX-this.offset.left+"px"})}},{key:"resizeItem",value:function(e){var n=this;Co(this.renderer,this.tileLayoutSettings.tileLayoutElement,{cursor:this.direction.split("k-cursor-")[1]});var a=this.rtl?this.offset.width+(this.offset.x-e.clientX):this.offset.width+(e.clientX-this.startingPoint.left),o=this.offset.height+(e.clientY-this.startingPoint.top),s=this.tileLayoutSettings.hintElement.getBoundingClientRect(),l=s.width,u=s.height,c=e.clientX-this.lastDragCursorOffset.x,d=e.clientY-this.lastDragCursorOffset.y,h=this.draggedItem.col?this.draggedItem.col:pf({x:this.rtl?s.right:s.x,y:s.y},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl).col,f=(this.tileLayoutSettings.columns-h)*(this.cellSize.width+this.tileLayoutSettings.gap.columns)+this.cellSize.width,g=function(){if(Co(n.renderer,n.draggedItemWrapper,{width:Math.min(Math.max(a,n.cellSize.width),f)+"px"}),n.rtl&&a>n.cellSize.width){var w=n.tileLayoutSettings.columns*(n.cellSize.width+n.tileLayoutSettings.gap.columns),E=n.tileLayoutSettings.tileLayoutElement.getBoundingClientRect().right-w;Co(n.renderer,n.draggedItemWrapper,{left:Math.max(e.clientX,E)+"px"})}var M=a-l,R=n.draggedItem.elem.nativeElement.getBoundingClientRect(),ee=pf({x:n.rtl?R.right:R.x,y:R.y},n.tileLayoutSettings.tileLayoutElement,n.tileLayoutSettings.gap,n.cellSize,n.tileLayoutSettings.columns,n.rtl),K=n.rtl?c>0:c<0;M>.3*n.cellSize.width&&(n.rtl?c<0:c>0)&&ee.col+n.currentResizingColSpan<=n.tileLayoutSettings.columns?n.currentResizingColSpan++:n.currentResizingColSpan>1&&K&&M<-.7*n.cellSize.width&&n.currentResizingColSpan--,Co(n.renderer,n.tileLayoutSettings.hintElement,{gridColumnEnd:"span ".concat(n.currentResizingColSpan)})};this.direction.indexOf("ew")>-1?g():(this.direction.indexOf("ns")>-1||g(),function(){Co(n.renderer,n.draggedItemWrapper,{height:Math.max(o,n.cellSize.height)+"px"});var w=o-u;w>.3*n.cellSize.height&&d>0?n.currentResizingRowSpan++:n.currentResizingRowSpan>1&&d<0&&w<-.7*n.cellSize.height&&n.currentResizingRowSpan--,Co(n.renderer,n.tileLayoutSettings.hintElement,{gridRowEnd:"span ".concat(n.currentResizingRowSpan)}),Co(n.renderer,n.tileLayoutSettings.hintElement,{height:"".concat(n.calculateHintHeight(),"px")})}())}},{key:"cleanUp",value:function(){if(this.targetOrder=this.currentResizingColSpan=this.currentColStart=this.currentResizingRowSpan=this.currentRowStart=void 0,this.resizing=this.reordering=!1,this.direction=null,this.draggedItemWrapper){var e=this.draggedItemWrapper.querySelector(".k-cursor-grab");e&&this.renderer.removeClass(e,"k-cursor-grabbing"),Co(this.renderer,this.draggedItemWrapper,{top:"",left:"",display:"",width:"",height:"",zIndex:"",position:""}),Co(this.renderer,this.tileLayoutSettings.hintElement,{display:"none",height:"auto"}),Co(this.renderer,this.tileLayoutSettings.tileLayoutElement,{cursor:"default"}),this.draggedItemWrapper=this.offset=this.draggedItem=this.resizing=this.reordering=this.currentResizingColSpan=this.currentResizingRowSpan=this.startingPoint=void 0,this.lastDragCursorOffset={x:0,y:0}}}},{key:"targetSpan",value:function(){var e=this.draggedItem.elem.nativeElement.getBoundingClientRect(),n=pf({x:this.rtl?e.right:e.x,y:e.y},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl),a=pf({x:this.rtl?e.x+.3*this.cellSize.width:e.right-.3*this.cellSize.width,y:e.bottom-.3*this.cellSize.height},this.tileLayoutSettings.tileLayoutElement,this.tileLayoutSettings.gap,this.cellSize,this.tileLayoutSettings.columns,this.rtl);return{targetColSpan:a.col-n.col+1,targetRowSpan:a.row-n.row+1}}},{key:"getTargetCol",value:function(e,n){return this.rtl?"left"===n?e-this.draggedItem.colSpan+1:e:"right"===n?e-this.draggedItem.colSpan+1:e}},{key:"getTargetRow",value:function(e,n){return"down"===n?e-this.draggedItem.rowSpan+1:e}},{key:"calculateHintHeight",value:function(){return this.currentResizingRowSpan*this.cellSize.height+(this.currentResizingRowSpan-1)*this.tileLayoutSettings.gap.rows-2}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Ee),oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),YI=function(){var i=function(){function r(t,e){p(this,r),this.hostEl=t,this.renderer=e,this.hostClass=!0}return v(r,[{key:"reorderable",set:function(e){var n=this.hostEl.nativeElement;e?(this.renderer.addClass(n,"k-touch-action-none"),this.renderer.removeClass(n,"k-touch-action-auto")):(this.renderer.addClass(n,"k-touch-action-auto"),this.renderer.removeClass(n,"k-touch-action-none"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item-header"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-tilelayout-item-header",e.hostClass)("k-card-header",e.hostClass)},inputs:{reorderable:"reorderable"},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),i9=function(){var i=function(){function r(t,e){p(this,r),this.el=t,this.renderer=e}return v(r,[{key:"ngOnInit",value:function(){this.sizeHandle()}},{key:"setHorizontalPosition",value:function(e){this.renderer.setStyle(e,this.rtl?"left":"right",-cg[this.resizeDirection].overlapX+"px")}},{key:"setBottom",value:function(e){this.renderer.setStyle(e,"bottom",-cg[this.resizeDirection].overlapY+"px")}},{key:"sizeHandle",value:function(){var e=this.el.nativeElement,n=cg[this.resizeDirection].width?"".concat(cg[this.resizeDirection].width,"px"):"100%",a=cg[this.resizeDirection].height?"".concat(cg[this.resizeDirection].height,"px"):"100%";this.renderer.setStyle(e,"width",n),this.renderer.setStyle(e,"height",a),"ew"===this.resizeDirection?this.setHorizontalPosition(e):("ns"===this.resizeDirection||this.setHorizontalPosition(e),this.setBottom(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoTileLayoutResizeHandle",""]],inputs:{resizeDirection:"resizeDirection",rtl:"rtl"}}),i}(),r9=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.elem=t,this.renderer=e,this.localization=n,this.draggingService=a,this.rowSpan=1,this.colSpan=1,this.reorderable=!0,this.resizable=!0,this.itemClass=!0,this.subs=new Je,this.subs.add(this.localization.changes.subscribe(function(s){o.rtl=s.rtl})),this.subs.add(this.draggingService.resizable.subscribe(function(s){o.resizeDirections=s&&o.resizable?o.rtl?e9:J7:void 0}))}return v(r,[{key:"order",get:function(){return this._order},set:function(e){this._order=e,this.renderer.setStyle(this.elem.nativeElement,"order","".concat(this._order))}},{key:"colEnd",get:function(){return"span ".concat(this.colSpan)}},{key:"rowEnd",get:function(){return"span ".concat(this.rowSpan)}},{key:"colStart",get:function(){return Mi(this.col)?this.col.toString():void 0}},{key:"rowStart",get:function(){return Mi(this.row)?this.row.toString():void 0}},{key:"reorderableHeader",get:function(){return this.reorderable&&this.draggingService.reorderable.getValue()}},{key:"ngAfterViewInit",value:function(){var e=this;this.subs.add(this.draggingService.reorderable.subscribe(function(n){var a;e.toggleCursorClass(n&&e.reorderable),(null===(a=e.headers)||void 0===a?void 0:a.first)&&(e.headers.first.reorderable=n&&e.reorderable)}))}},{key:"ngOnChanges",value:function(e){e.reorderable&&!e.reorderable.firstChange&&this.toggleCursorClass(e.reorderable.currentValue&&this.draggingService.reorderable.getValue()),e.resizable&&(this.resizeDirections=this.resizable&&this.draggingService.resizable.getValue()?this.rtl?e9:J7:void 0)}},{key:"ngOnDestroy",value:function(){this.subs.unsubscribe()}},{key:"toggleCursorClass",value:function(e){var n=this.elem.nativeElement.querySelector(".k-tilelayout-item-header");!n||(e?this.renderer.addClass(n,"k-cursor-grab"):this.renderer.removeClass(n,"k-cursor-grab"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(Y),m(ZI))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,YI,4),2&t&&P(a=B())&&(e.headers=a)},hostVars:12,hostBindings:function(t,e){2&t&&(Qe("grid-column-end",e.colEnd)("grid-row-end",e.rowEnd)("grid-column-start",e.colStart)("grid-row-start",e.rowStart),ue("k-tilelayout-item",e.itemClass)("k-card",e.itemClass))},inputs:{title:"title",rowSpan:"rowSpan",colSpan:"colSpan",order:"order",col:"col",row:"row",reorderable:"reorderable",resizable:"resizable"},features:[Ie],ngContentSelectors:_a,decls:3,vars:2,consts:[[3,"reorderable",4,"ngIf"],[4,"ngIf"],[3,"reorderable"],[1,"k-card-title"],["kendoTileLayoutResizeHandle","",3,"class","rtl","resizeDirection",4,"ngFor","ngForOf"],["kendoTileLayoutResizeHandle","",3,"rtl","resizeDirection"]],template:function(t,e){1&t&&(kn(),T(0,GIe,3,2,"kendo-tilelayout-item-header",0),dn(1),T(2,UIe,2,1,"ng-container",1)),2&t&&(y("ngIf",e.title),k(2),y("ngIf",e.resizable))},directives:[YI,qe,gn,i9],encapsulation:2}),i}(),QI={column:"k-grid-flow-col",row:"k-grid-flow-row","column-dense":"k-grid-flow-col-dense","row-dense":"k-grid-flow-row-dense"},dFe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.elem=t,this.renderer=e,this.localization=n,this.draggingService=a,this.zone=o,this.columns=1,this.columnWidth="1fr",this.reorderable=!1,this.resizable=!1,this.rowHeight="1fr",this.autoFlow="column",this.reorder=new O,this.resize=new O,this.hostClass=!0,this.subs=new Je,this._gap={rows:16,columns:16},jt(fl)}return v(r,[{key:"gap",get:function(){return this._gap},set:function(e){this._gap="number"==typeof e?{rows:e,columns:e}:Object.assign(this._gap,e)}},{key:"gapStyle",get:function(){return"".concat(this.gap.rows,"px ").concat(this.gap.columns,"px")}},{key:"currentColStart",get:function(){return this.draggingService.colStart}},{key:"currentRowStart",get:function(){return this.draggingService.rowStart}},{key:"draggedItemWrapper",get:function(){return this.draggingService.itemWrapper}},{key:"targetOrder",get:function(){return this.draggingService.order}},{key:"ngOnInit",value:function(){var e=this;this.applyColStyling(),this.applyRowStyling(),this.draggingService.reorderable.next(this.reorderable),this.draggingService.resizable.next(this.resizable),ut(this.reorder)&&this.subs.add(this.draggingService.reorder.subscribe(function(n){return e.reorder.emit(n)})),ut(this.resize)&&this.subs.add(this.draggingService.resize.subscribe(function(n){return e.resize.emit(n)})),this.subs.add(this.draggingService.reorderable.subscribe(function(n){n&&!e.draggable&&e.initializeDraggable()})),this.subs.add(this.draggingService.resizable.subscribe(function(n){n&&!e.draggable&&e.initializeDraggable()})),this.subs.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngAfterViewInit",value:function(){var e=this;this.draggingService.tileLayoutSettings=this.draggingServiceConfig(),this.applyAutoFlow(null,QI[this.autoFlow]),this.items.changes.subscribe(function(){e.setItemsOrder(),e.draggingService.tileLayoutSettings.items=e.items.toArray()})}},{key:"ngAfterContentInit",value:function(){this.setItemsOrder()}},{key:"ngOnChanges",value:function(e){(e.columns||e.columnWidth)&&this.applyColStyling(),e.rowHeight&&this.applyRowStyling(),e.reorderable&&this.draggingService.reorderable.next(e.reorderable.currentValue),e.resizable&&this.draggingService.resizable.next(e.resizable.currentValue),(e.gap||e.autoFlow||e.columns)&&(this.draggingService.tileLayoutSettings=this.draggingServiceConfig(),e.autoFlow&&this.applyAutoFlow(QI[e.autoFlow.previousValue]||"",QI[e.autoFlow.currentValue]))}},{key:"ngOnDestroy",value:function(){this.draggable&&this.draggable.destroy(),this.subs.unsubscribe()}},{key:"handlePress",value:function(e){this.draggingService.handlePress(e.originalEvent)}},{key:"handleDrag",value:function(e){this.draggingService.handleDrag(e.originalEvent)}},{key:"handleRelease",value:function(e){this.draggingService.handleRelease(e.originalEvent)}},{key:"applyColStyling",value:function(){var e="number"==typeof this.columnWidth?"".concat(this.columnWidth,"px"):this.columnWidth,n="repeat(".concat(this.columns,", ").concat(e,")");this.renderer.setStyle(this.elem.nativeElement,"grid-template-columns",n)}},{key:"applyRowStyling",value:function(){var e="number"==typeof this.rowHeight?"".concat(this.rowHeight,"px"):this.rowHeight,n="".concat(e);this.renderer.setStyle(this.elem.nativeElement,"grid-auto-rows",n)}},{key:"draggingServiceConfig",value:function(){return{tileLayoutElement:this.elem?this.elem.nativeElement:void 0,hintElement:this.hint?this.hint.nativeElement:void 0,gap:this.gap,columns:this.columns,autoFlow:this.autoFlow,items:this.items?this.items.toArray():[]}}},{key:"initializeDraggable",value:function(){var e=this;this.draggable=new cI({press:this.handlePress.bind(this),drag:this.handleDrag.bind(this),release:this.handleRelease.bind(this)}),this.zone.runOutsideAngular(function(){return e.draggable.bindTo(e.elem.nativeElement)})}},{key:"applyAutoFlow",value:function(e,n){var a=this.elem.nativeElement;e&&this.renderer.removeClass(a,e),"none"!==this.autoFlow&&Mi(n)&&this.renderer.addClass(a,n)}},{key:"setItemsOrder",value:function(){this.items.forEach(function(e,n){Mi(e.order)||(e.order=n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(Y),m(ZI),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout"]],contentQueries:function(t,e,n){var a;1&t&&he(n,r9,4),2&t&&P(a=B())&&(e.items=a)},viewQuery:function(t,e){var n;1&t&&ge(zIe,5),2&t&&P(n=B())&&(e.hint=n.first)},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),Qe("gap",e.gapStyle)("padding",e.gapStyle),ue("k-widget",e.hostClass)("k-tilelayout",e.hostClass))},inputs:{columns:"columns",columnWidth:"columnWidth",gap:"gap",reorderable:"reorderable",resizable:"resizable",rowHeight:"rowHeight",autoFlow:"autoFlow"},outputs:{reorder:"reorder",resize:"resize"},features:[de([Y,ZI,{provide:Dt,useValue:"kendo.tilelayout.component"}]),Ie],ngContentSelectors:_a,decls:3,vars:14,consts:[[1,"k-layout-item-hint","k-layout-item-hint-reorder"],["hint",""]],template:function(t,e){1&t&&(kn(),dn(0),z(1,"div",0,1)),2&t&&(k(1),Qe("display","none")("order",e.targetOrder)("grid-column-end",null==e.draggedItemWrapper?null:e.draggedItemWrapper.style.gridColumnEnd)("grid-row-end",null==e.draggedItemWrapper?null:e.draggedItemWrapper.style.gridRowEnd)("grid-column-start",e.currentColStart)("grid-row-start",e.currentRowStart)("z-index","1"))},encapsulation:2}),i}(),hFe=function(){var i=v(function r(){p(this,r),this.hostClass=!0,this.minHeight=0});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-tilelayout-item-body"]],hostVars:6,hostBindings:function(t,e){2&t&&(Qe("min-height",e.minHeight),ue("k-tilelayout-item-body",e.hostClass)("k-card-body",e.hostClass))},ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),vFe=([].concat([jNe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),mFe=(Ae([WNe,$Ne,qNe,XNe,ZNe].concat([QNe,JNe,YNe,eFe])),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),yFe=[P7,BNe,GNe].concat([A7,M7,R7,x7]),kFe=([N7,F7].concat(Ae(yFe)),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),bFe=([].concat([aFe,X7]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}()),wFe=([].concat([rNe,$y,o7,p7,s7]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),EFe=([UI].concat([uNe,BI]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Ly]]}),i}()),AFe=[HNe,KNe].concat([B7,G7,V7]),xFe=([z7,H7,K7].concat(Ae(AFe)),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,FRe]]}),i}()),RFe=([].concat([T7,HI,zI,m7,D7,bNe,E7],[w7]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,yo]]}),i}()),IFe=([].concat([dFe,r9,YI,hFe,i9]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),JI={top:"start",middle:"center",bottom:"end",stretch:"stretch"},a9="k-justify-content",eN="k-align-items",GFe=function(){var i=function(){function r(t,e,n){p(this,r),this.renderer=t,this.element=e,this.localization=n,this.hostClass=!0,this.gap=0,this.orientation="horizontal",this._align={horizontal:"stretch",vertical:"stretch"},jt(fl)}return v(r,[{key:"horizontalClass",get:function(){return"horizontal"===this.orientation}},{key:"verticalClass",get:function(){return"vertical"===this.orientation}},{key:"dir",get:function(){return this.direction}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign({},this._align,e),this.handleAlignClasses()}},{key:"ngAfterViewInit",value:function(){this.handleAlignClasses(),this.setGap()}},{key:"ngOnChanges",value:function(e){yn("gap",e)&&this.setGap(),yn("orientation",e)&&this.handleAlignClasses()}},{key:"handleAlignClasses",value:function(){var e=this.element.nativeElement;Mi(this.justifyClass)&&this.renderer.removeClass(e,this.justifyClass),Mi(this.alignClass)&&this.renderer.removeClass(e,this.alignClass),"horizontal"===this.orientation?(this.justifyClass="".concat(a9,"-").concat(this.align.horizontal),this.alignClass="".concat(eN,"-").concat(JI[this.align.vertical])):(this.justifyClass="".concat(a9,"-").concat(JI[this.align.vertical]),this.alignClass="".concat(eN,"-").concat(this.align.horizontal)),this.renderer.addClass(e,this.justifyClass),this.renderer.addClass(e,this.alignClass)}},{key:"setGap",value:function(){var e=function(r){return"number"==typeof r&&isFinite(r)}(this.gap)?"".concat(this.gap,"px"):this.gap;this.renderer.setStyle(this.element.nativeElement,"gap",e)}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-stacklayout"]],hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-stack-layout",e.hostClass)("k-hstack",e.horizontalClass)("k-vstack",e.verticalClass))},inputs:{align:"align",gap:"gap",orientation:"orientation"},exportAs:["kendoStackLayout"],features:[de([Y,{provide:Dt,useValue:"kendo.stacklayout"}]),Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),UFe=([].concat([GFe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),zFe=function(){var i=function(){function r(t,e,n){p(this,r),this.renderer=t,this.element=e,this.localization=n,this.hostClass=!0,this.gap=0,this._align={horizontal:"stretch",vertical:"stretch"},jt(fl)}return v(r,[{key:"dir",get:function(){return this.direction}},{key:"align",get:function(){return this._align},set:function(e){this._align=Object.assign({},this._align,e),this.handleAlignClasses()}},{key:"ngAfterViewInit",value:function(){this.handleAlignClasses(),this.handleGridTemplateStyling("rows"),this.handleGridTemplateStyling("cols"),this.setGap()}},{key:"ngOnChanges",value:function(e){yn("gap",e)&&this.setGap(),yn("rows",e)&&this.handleGridTemplateStyling("rows"),yn("cols",e)&&this.handleGridTemplateStyling("cols")}},{key:"handleAlignClasses",value:function(){var e=this.element.nativeElement;Mi(this.justifyClass)&&this.renderer.removeClass(e,this.justifyClass),Mi(this.alignClass)&&this.renderer.removeClass(e,this.alignClass),this.justifyClass="".concat("k-justify-items","-").concat(this.align.horizontal),this.alignClass="".concat(eN,"-").concat(JI[this.align.vertical]),this.renderer.addClass(e,this.justifyClass),this.renderer.addClass(e,this.alignClass)}},{key:"setGap",value:function(){var e=function(r){if("number"==typeof r||"string"==typeof r)return{cols:r,rows:r};var t={};return t.rows=r.rows?r.rows:0,t.cols=r.cols?r.cols:0,t}(this.gap),n=function(r){if(r.rows===r.cols)return"number"==typeof r.rows?"".concat(r.rows,"px"):r.rows;var t="".concat("number"==typeof r.rows?r.rows+"px":r.rows),e="".concat("number"==typeof r.cols?r.cols+"px":r.cols);return"".concat(t," ").concat(e)}(e);this.renderer.setStyle(this.element.nativeElement,"gap",n)}},{key:"handleGridTemplateStyling",value:function(e){if(Mi(this[e])){var n=function(r){var e,t=In(r);try{for(t.s();!(e=t.n()).done;){var n=e.value;if("number"!=typeof n&&"string"!=typeof n&&("object"!=typeof n||null===n))return!1}}catch(l){t.e(l)}finally{t.f()}return!0}(this[e]);if(!n&&xt()){var a="rows"===e?"GridLayoutRowSize":"GridLayoutColSize";throw new Error("The provided ".concat(e," value contains invalid elements. The array supports values of type number, string or ").concat(a,"."))}var o="rows"===e?"grid-template-rows":"grid-template-columns",s=function(r,t){var e=[];return r.forEach(function(n){if("number"==typeof n)e.push("".concat(n,"px"));else if("string"==typeof n)e.push(n);else if("rows"===t){var a=n.height;e.push(a?"number"==typeof a?"".concat(a,"px"):a:"0px")}else{var o=n.width;e.push(o?"number"==typeof o?"".concat(o,"px"):o:"0px")}}),e}(this[e],e);this.renderer.setStyle(this.element.nativeElement,o,s.join(" "))}}},{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-gridlayout"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-grid-layout",e.hostClass))},inputs:{rows:"rows",cols:"cols",gap:"gap",align:"align"},exportAs:["kendoGridLayout"],features:[de([Y,{provide:Dt,useValue:"kendo.gridlayout"}]),Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),HFe=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.element=e}return v(r,[{key:"ngOnInit",value:function(){this.setItemStyle()}},{key:"ngOnChanges",value:function(){this.setItemStyle()}},{key:"setItemStyle",value:function(){var e=this.row||"auto",n=this.col||"auto",a=this.rowSpan?"span ".concat(this.rowSpan):"auto",o=this.colSpan?"span ".concat(this.colSpan):"auto",s="".concat(e," / ").concat(n," / ").concat(a," / ").concat(o);this.renderer.setStyle(this.element.nativeElement,"grid-area",s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-gridlayout-item"]],inputs:{row:"row",col:"col",rowSpan:"rowSpan",colSpan:"colSpan"},features:[Ie],ngContentSelectors:_a,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),jFe=([].concat([zFe,HFe]),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}()),WFe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[vFe,mFe,kFe,wFe,bFe,EFe,xFe,RFe,IFe,UFe,jFe]}),i}(),tN=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-loading-spinner"]],decls:1,vars:0,consts:[[1,"k-i-loading"]],template:function(t,e){1&t&&z(0,"div",0)},styles:[".k-i-loading[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;font-size:100px;color:#252830}"]}),i}(),Ad="arc",Xi="#000",Zn="bottom",Qt="center",pl="circle",xd="date",s9="12px sans-serif",c9=/\{\d+:?/,OD="height",iN="inside",Sn="left",Zi=Number.MAX_VALUE,Cr=-Number.MAX_VALUE,rN="none",aN="object",ID="outside",Gn="right",h9="roundedRect",oN="string",Fn="top",qo="value",Ln="#fff",ND="width",yt="x",Ct="y";function Jr(i){return Array.isArray(i)}function Za(i,r){for(var t=Jr(r)?r:[r],e=0;e1&&void 0!==arguments[1]?arguments[1]:0,t={top:0,right:0,bottom:0,left:0};return"number"==typeof i?t.top=t[Gn]=t[Zn]=t[Sn]=i:(t.top=i.top||r,t[Gn]=i[Gn]||r,t[Zn]=i[Zn]||r,t[Sn]=i[Sn]||r),t}var _9={compile:function(r){return r}},a2e=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){_9=t}},{key:"compile",value:function(t){return _9.compile(t)}}]),i}(),y9=a2e;function ea(){var r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.template?i.template=r=y9.compile(i.template):Ri(i.content)&&(r=i.content),r}var o2e=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,Xy={};function yc(i){if(Xy[i])return Xy[i];var r=[];return i.replace(o2e,function(t,e,n,a){r.push(Vt(e)?e:n||a)}),Xy[i]=function(t){for(var e=t,n=0;n1?e-1:0),a=1;a0?Math.ceil(r):Math.floor(r)}var mt=v(function i(){p(this,i)});function S9(i){var r=window.console;void 0!==r&&r.log&&r.log(i)}function Yy(i,r){return i.push.apply(i,r),i}var h2e={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"};function LD(i){for(var r=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],t="";i>0;)i>>6),r+=Ls(128|63&e)):e<65536?(r+=Ls(224|e>>>12),r+=Ls(128|e>>>6&63),r+=Ls(128|63&e)):e<1114111&&(r+=Ls(240|e>>>18),r+=Ls(128|e>>>12&63),r+=Ls(128|e>>>6&63),r+=Ls(128|63&e))}return r}(i);t>2,l=(3&n)<<4|a>>4,u=(15&a)<<2|o>>6,c=63&o;isNaN(a)?u=c=64:isNaN(o)&&(c=64),r=r+BD.charAt(s)+BD.charAt(l)+BD.charAt(u)+BD.charAt(c)}return r}function w9(i){return Vt((i.x||{}).location)?{x:i.x.location,y:i.y.location}:{x:i.pageX||i.clientX||0,y:i.pageY||i.clientY||0}}function D9(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.touch?i.touch.initialTouch:i.target}function mf(i){return""===i||null===i||"none"===i||"transparent"===i||!Vt(i)}function Zo(i){if(i)return i[i.length-1]}function VD(i,r,t){return Math.max(Math.min(i,t),r)}function UD(i,r){return i.length<2?i.slice():function e(n){if(n.length<=1)return n;var a=Math.floor(n.length/2),o=n.slice(0,a),s=n.slice(a);return function t(e,n){for(var a=[],o=0,s=0,l=0;o1&&void 0!==arguments[1]?arguments[1]:{};for(var t in r)for(var e=t.trim().split(" "),n=0;n0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return p(this,t),(e=r.call(this)).a=n,e.b=a,e.c=o,e.d=s,e.e=l,e.f=u,e}return v(t,[{key:"multiplyCopy",value:function(n){return new t(this.a*n.a+this.c*n.b,this.b*n.a+this.d*n.b,this.a*n.c+this.c*n.d,this.b*n.c+this.d*n.d,this.a*n.e+this.c*n.f+this.e,this.b*n.e+this.d*n.f+this.f)}},{key:"invert",value:function(){var n=this.a,a=this.b,o=this.c,s=this.d,l=this.e,u=this.f,c=n*s-a*o;return 0===c?null:new t(s/c,-a/c,-o/c,n/c,(o*u-s*l)/c,(a*l-n*u)/c)}},{key:"clone",value:function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)}},{key:"equals",value:function(n){return!!n&&this.a===n.a&&this.b===n.b&&this.c===n.c&&this.d===n.d&&this.e===n.e&&this.f===n.f}},{key:"round",value:function(n){return this.a=Ci(this.a,n),this.b=Ci(this.b,n),this.c=Ci(this.c,n),this.d=Ci(this.d,n),this.e=Ci(this.e,n),this.f=Ci(this.f,n),this}},{key:"toArray",value:function(n){var a=[this.a,this.b,this.c,this.d,this.e,this.f];if(Vt(n))for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:",";return this.toArray(n).join(a)}}],[{key:"translate",value:function(n,a){return new t(1,0,0,1,n,a)}},{key:"unit",value:function(){return new t(1,0,0,1,0,0)}},{key:"rotate",value:function(n,a,o){var s=new t;return s.a=Math.cos(lu(n)),s.b=Math.sin(lu(n)),s.c=-s.b,s.d=s.a,s.e=a-a*s.a+o*s.b||0,s.f=o-o*s.a-a*s.b||0,s}},{key:"scale",value:function(n,a){return new t(n,0,0,a,0,0)}}]),t}(mt);vN.IDENTITY=vN.unit();var ta=vN,_2e=/matrix\((.*)\)/;function M9(i){var r=getComputedStyle(i).transform;return"none"===r?ta.unit():function y2e(i){var r=i.match(_2e);if(null===r||2!==r.length)return ta.unit();var t=r[1].split(",").map(function(e){return parseFloat(e)});return qr(ta,Ae(t))}(r)}function R9(i){if(!i)return ta.unit();for(var r=M9(i),t=i.parentElement;t;){var e=M9(t);r=r.multiplyCopy(e),t=t.parentElement}return r.b=r.c=r.e=r.f=0,r}var k2e=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._size=e,n._length=0,n._map={},n}return v(t,[{key:"put",value:function(n,a){var o=this._map,s={key:n,value:a};o[n]=s,this._head?(this._tail.newer=s,s.older=this._tail,this._tail=s):this._head=this._tail=s,this._length>=this._size?(o[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++}},{key:"get",value:function(n){var a=this._map[n];if(a)return a===this._head&&a!==this._tail&&(this._head=a.newer,this._head.older=null),a!==this._tail&&(a.older&&(a.older.newer=a.newer,a.newer.older=a.older),a.older=this._tail,a.newer=null,this._tail.newer=a,this._tail=a),a.value}}]),t}(mt),O9=k2e,C2e=/\r?\n|\r|\t/g;function pN(i){return String(i).replace(C2e," ")}function I9(i){var r=[];for(var t in i)r.push(t+i[t]);return r.sort().join("")}function N9(i){for(var r=2166136261,t=0;t>>0}var gN,S2e={baselineMarkerSize:1};"undefined"!=typeof document&&((gN=document.createElement("div")).style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");var mN=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._cache=new O9(1e3),n.options=Object.assign({},S2e,e),n}return v(t,[{key:"measure",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==n)return{width:0,height:0,baseline:0};var s=I9(a),l=N9(n+s),u=this._cache.get(l);if(u)return u;var c={width:0,height:0,baseline:0},d=o.box||gN,h=this._baselineMarker().cloneNode(!1);for(var f in a){var g=a[f];void 0!==g&&(d.style[f]=g)}var _=!1!==o.normalizeText?pN(n):String(n);return d.textContent=_,d.appendChild(h),document.body.appendChild(d),_.length&&(c.width=d.offsetWidth-this.options.baselineMarkerSize,c.height=d.offsetHeight,c.baseline=h.offsetTop+this.options.baselineMarkerSize),c.width>0&&c.height>0&&this._cache.put(l,c),d.parentNode.removeChild(d),c}},{key:"_baselineMarker",value:function(){var n=document.createElement("div");return n.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",n}}]),t}(mt);mN.current=new mN;var L9=mN;function ek(i,r,t){return L9.current.measure(i,r,t)}var _f=Yu.append,tk=Yu.bindEvents,Te=Yu.defined,Rd=Yu.deg,nk=Yu.elementOffset,kc=Yu.elementSize,w2e=Yu.eventCoordinates,_l=Yu.eventElement,D2e=Yu.hashKey,Yi=Yu.last,Mt=Yu.limitValue,E2e=Yu.objectKey,br=Yu.rad,tt=Yu.round,ik=Yu.unbindEvents,qt=Yu.valueOrDefault,T2e=function(){function i(){p(this,i)}return v(i,null,[{key:"fetchFonts",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{depth:0},a=5;!t||n.depth>a||!document.fonts||Object.keys(t).forEach(function(o){var s=t[o];"dataSource"===o||"$"===o[0]||!s||("font"===o?e.push(s):"object"==typeof s&&(n.depth++,i.fetchFonts(s,e,n),n.depth--))})}},{key:"loadFonts",value:function(t,e){var n=[];if(t.length>0&&document.fonts){try{n=t.map(function(a){return document.fonts.load(a)})}catch(a){S9(a)}Promise.all(n).then(e,e)}else e()}},{key:"preloadFonts",value:function(t,e){var n=[];i.fetchFonts(t,n),i.loadFonts(n,e)}}]),i}(),A2e=T2e;function ze(i,r){var t=i.prototype;t.options=t.options?ne({},t.options,r):r}function _N(i){for(var r=Zi,t=Cr,e=0,n=i.length;e.5?h/(2-s-l):h/(s+l),s){case n:u=(a-o)/h+(a2&&void 0!==arguments[2]?arguments[2]:"0",e=i.toString(16);r>e.length;)e=t+e;return e}var yN=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this)).h=e,s.s=n,s.v=a,s.a=o,s}return v(t,[{key:"toRGB",value:function(){var s,l,u,n=this.h,a=this.s,o=this.v;if(0===a)s=l=u=o;else{n/=60;var c=Math.floor(n),d=n-c,h=o*(1-a),f=o*(1-a*d),g=o*(1-a*(1-d));switch(c){case 0:s=o,l=g,u=h;break;case 1:s=f,l=o,u=h;break;case 2:s=h,l=o,u=g;break;case 3:s=h,l=f,u=o;break;case 4:s=g,l=h,u=o;break;default:s=o,l=h,u=f}}return new Od(s,l,u,this.a)}},{key:"toHSL",value:function(){return this.toRGB().toHSL()}},{key:"toBytes",value:function(){return this.toRGB().toBytes()}}]),t}(KD),U9=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;return p(this,t),(s=r.call(this)).h=e,s.s=n,s.l=a,s.a=o,s}return v(t,[{key:"toRGB",value:function(){var s,l,u,n=this.h/360,a=this.s/100,o=this.l/100;if(0===a)s=l=u=o;else{var c=o<.5?o*(1+a):o+a-o*a,d=2*o-c;s=kN(d,c,n+1/3),l=kN(d,c,n),u=kN(d,c,n-1/3)}return new Od(s,l,u,this.a)}},{key:"toHSV",value:function(){return this.toRGB().toHSV()}},{key:"toBytes",value:function(){return this.toRGB().toBytes()}}]),t}(KD);function kN(i,r,t){var e=t;return e<0&&(e+=1),e>1&&(e-=1),e<1/6?i+6*(r-i)*e:e<.5?r:e<2/3?i+(r-i)*(2/3-e)*6:i}function z9(i){return parseFloat(parseFloat(parseInt(i,16)/255).toFixed(3))}function Ps(i,r){var t,e;if(null==i||"none"===i)return null;if(i instanceof KD)return i;var n=i.toLowerCase();if(t=V9(n))return(n="transparent"===t[1]?new Od(1,1,1,0):Ps(vg[t[1]],r)).match=[t[1]],n;if((t=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?e=new Cc(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1):(t=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?e=new Cc(parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),1):(t=/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(n))?e=new Cc(parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),z9(t[4]+t[4])):(t=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(n))?e=new Cc(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),z9(t[4])):(t=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(n))?e=new Cc(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),1):(t=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(n))?e=new Cc(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])):(t=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(n))?e=new Od(parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])/100,1):(t=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(n))&&(e=new Od(parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])/100,parseFloat(t[4]))),e)e.match=t;else if(!r)throw new Error("Cannot parse color: "+n);return e}var N2e=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;if(p(this,e),a=t.call(this),1===arguments.length)for(var o=e.formats,s=a.resolveColor(n),l=0;l255?255:a}},{key:"padDigit",value:function(a){return 1===a.length?"0"+a:a}},{key:"brightness",value:function(a){var o=Math.round;return this.r=o(this.normalizeByte(this.r*a)),this.g=o(this.normalizeByte(this.g*a)),this.b=o(this.normalizeByte(this.b*a)),this}},{key:"percBrightness",value:function(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)}},{key:"isDark",value:function(){return this.percBrightness()<180}}],[{key:"fromBytes",value:function(a,o,s,l){return new Cc(a,o,s,null!=l?l:1)}},{key:"fromRGB",value:function(a,o,s,l){return new Od(a,o,s,null!=l?l:1)}},{key:"fromHSV",value:function(a,o,s,l){return new yN(a,o,s,null!=l?l:1)}},{key:"fromHSL",value:function(a,o,s,l){return new U9(a,o,s,null!=l?l:1)}}]),e}(mt);return i.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i.namedColors=vg,i}(),Bs=N2e,CN=function F2e(i){return new Bs(i).isDark()?Ln:Xi},H9={},L2e=function(){function i(r){p(this,i),this._index={},this._values=r?r.slice(0):[];for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};n.element=this,this.trigger("optionsChange",n)}},{key:"geometryChange",value:function(){this.trigger("geometryChange",{element:this})}},{key:"suspend",value:function(){return this._suspended=(this._suspended||0)+1,this}},{key:"resume",value:function(){return this._suspended=Math.max((this._suspended||0)-1,0),this}},{key:"_observerField",value:function(n,a){this[n]&&this[n].removeObserver(this),this[n]=a,a.addObserver(this)}}]),t}(mt),Gs=U2e;function z2e(i){return function(r){return this[i]!==r&&(this[i]=r,this.geometryChange()),this}}function H2e(i){return function(){return this[i]}}var WD=function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function K2e(i,r){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:n;return this.x*=n,this.y*=a,this.geometryChange(),this}},{key:"scaleCopy",value:function(n,a){return this.clone().scale(n,a)}},{key:"transform",value:function(n){var a=yf(n),o=this.x,s=this.y;return this.x=a.a*o+a.c*s+a.e,this.y=a.b*o+a.d*s+a.f,this.geometryChange(),this}},{key:"transformCopy",value:function(n){var a=this.clone();return n&&a.transform(n),a}},{key:"distanceTo",value:function(n){var a=this.x-n.x,o=this.y-n.y;return Math.sqrt(a*a+o*o)}},{key:"round",value:function(n){return this.x=Ci(this.x,n),this.y=Ci(this.y,n),this.geometryChange(),this}},{key:"toArray",value:function(n){var a=Vt(n);return[a?Ci(this.x,n):this.x,a?Ci(this.y,n):this.y]}},{key:"toString",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",o=this.x,s=this.y;return Vt(n)&&(o=Ci(o,n),s=Ci(s,n)),o+a+s}}],[{key:"create",value:function(n,a){if(Vt(n))return n instanceof t?n:1===arguments.length&&2===n.length?new t(n[0],n[1]):new t(n,a)}},{key:"min",value:function(){for(var n=hg,a=hg,o=0;o0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new kf,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(this,t),(e=r.call(this)).setOrigin(n),e.setSize(a),e.setCornerRadius(o),e}return v(t,[{key:"clone",value:function(){return new t(this.origin.clone(),this.size.clone())}},{key:"equals",value:function(n){return n&&n.origin.equals(this.origin)&&n.size.equals(this.size)}},{key:"setOrigin",value:function(n){return this._observerField("origin",Pe.create(n)),this.geometryChange(),this}},{key:"getOrigin",value:function(){return this.origin}},{key:"setCornerRadius",value:function(n){return this.cornerRadius=Array.isArray(n)?n:[n,n],this.geometryChange(),this}},{key:"getCornerRadius",value:function(){return this.cornerRadius}},{key:"setSize",value:function(n){return this._observerField("size",kf.create(n)),this.geometryChange(),this}},{key:"getSize",value:function(){return this.size}},{key:"width",value:function(){return this.size.width}},{key:"height",value:function(){return this.size.height}},{key:"topLeft",value:function(){return this.origin.clone()}},{key:"bottomRight",value:function(){return this.origin.clone().translate(this.width(),this.height())}},{key:"topRight",value:function(){return this.origin.clone().translate(this.width(),0)}},{key:"bottomLeft",value:function(){return this.origin.clone().translate(0,this.height())}},{key:"center",value:function(){return this.origin.clone().translate(this.width()/2,this.height()/2)}},{key:"bbox",value:function(n){var a=this.topLeft().transformCopy(n),o=this.topRight().transformCopy(n),s=this.bottomRight().transformCopy(n),l=this.bottomLeft().transformCopy(n);return t.fromPoints(a,o,s,l)}},{key:"transformCopy",value:function(n){return t.fromPoints(this.topLeft().transform(n),this.bottomRight().transform(n))}},{key:"expand",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return this.size.width+=2*n,this.size.height+=2*a,this.origin.translate(-n,-a),this}},{key:"expandCopy",value:function(n,a){return this.clone().expand(n,a)}},{key:"containsPoint",value:function(n){var a=this.origin,o=this.bottomRight();return!(n.x=this.x1&&n.x<=this.x2&&n.y>=this.y1&&n.y<=this.y2}},{key:"points",value:function(){return[new Ut(this.x1,this.y1),new Ut(this.x2,this.y1),new Ut(this.x2,this.y2),new Ut(this.x1,this.y2)]}},{key:"getHash",value:function(){return[this.x1,this.y1,this.x2,this.y2].join(",")}},{key:"overlaps",value:function(n){return!(n.y2=o*o&&w<=s*s}},{key:"getBBox",value:function(){var d,n=new et(Zi,Zi,Cr,Cr),a=tt(this.startAngle%360),o=tt((a+this.angle)%360),s=this.innerRadius,l=[0,90,180,270,a,o].sort(Y2e),u=l.indexOf(a),c=l.indexOf(o);d=a===o?l:u0&&void 0!==arguments[0]?arguments[0]:[];return p(this,t),(e=r.call(this)).length=0,e._splice(0,n.length,n),e}return v(t,[{key:"elements",value:function(n){return n?(this._splice(0,this.length,n),this._change(),this):this.slice(0)}},{key:"push",value:function(){var n=arguments,a=Q2e.apply(this,n);return this._add(n),a}},{key:"slice",value:function(){return W9.call(this)}},{key:"pop",value:function(){var n=this.length,a=J2e.apply(this);return n&&this._remove([a]),a}},{key:"splice",value:function(n,a){var o=W9.call(arguments,2),s=this._splice(n,a,o);return this._change(),s}},{key:"shift",value:function(){var n=this.length,a=tLe.apply(this);return n&&this._remove([a]),a}},{key:"unshift",value:function(){var n=arguments,a=nLe.apply(this,n);return this._add(n),a}},{key:"indexOf",value:function(n){for(var a=this.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:"";for(var o in p(this,t),(n=r.call(this)).prefix=a,e){var s=e[o];s=n._wrap(s,o),n[o]=s}return n}return v(t,[{key:"get",value:function(n){for(var a=n.split("."),o=this;a.length&&o;)o=o[a.shift()];return o}},{key:"set",value:function(n,a){this.get(n)!==a&&(this._set(n,this._wrap(a,n)),this.optionsChange({field:this.prefix+n,value:a}))}},{key:"_set",value:function(n,a){var o=n.indexOf(".")>=0,s=this,l=n;if(o){for(var u=l.split("."),c=this.prefix;u.length>1;){c+=(l=u.shift())+".";var d=s[l];d||((d=new t({},c)).addObserver(this),s[l]=d),s=d}l=u[0]}s._clear(l),s[l]=a}},{key:"_clear",value:function(n){var a=this[n];a&&a.removeObserver&&a.removeObserver(this)}},{key:"_wrap",value:function(n,a){var o=aLe.call(n),s=n;return null!==s&&Vt(s)&&"[object Object]"===o&&(!(n instanceof t)&&!(n instanceof mt)&&(s=new t(s,this.prefix+a+".")),s.addObserver(this)),s}}]),t}(Gs),X9=oLe,sLe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ta.unit();return p(this,t),(e=r.call(this))._matrix=n,e}return v(t,[{key:"clone",value:function(){return new t(this._matrix.clone())}},{key:"equals",value:function(n){return n&&n._matrix.equals(this._matrix)}},{key:"translate",value:function(n,a){return this._matrix=this._matrix.multiplyCopy(ta.translate(n,a)),this._optionsChange(),this}},{key:"scale",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=o;return s&&(s=Pe.create(s),this._matrix=this._matrix.multiplyCopy(ta.translate(s.x,s.y))),this._matrix=this._matrix.multiplyCopy(ta.scale(n,a)),s&&(this._matrix=this._matrix.multiplyCopy(ta.translate(-s.x,-s.y))),this._optionsChange(),this}},{key:"rotate",value:function(n,a){var o=Pe.create(a)||Pe.ZERO;return this._matrix=this._matrix.multiplyCopy(ta.rotate(n,o.x,o.y)),this._optionsChange(),this}},{key:"multiply",value:function(n){var a=yf(n);return this._matrix=this._matrix.multiplyCopy(a),this._optionsChange(),this}},{key:"matrix",value:function(n){return n?(this._matrix=n,this._optionsChange(),this):this._matrix}},{key:"_optionsChange",value:function(){this.optionsChange({field:"transform",value:this})}}]),t}(Gs),Z9=sLe;function Hn(i){return null===i?null:i instanceof Z9?i:new Z9(i)}var lLe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this))._initOptions(e),n}return v(t,[{key:"nodeType",get:function(){return"Rect"}},{key:"_initOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=n.clip,o=n.transform;o&&(n.transform=Hn(o)),a&&!a.id&&(a.id=PD()),this.options=new X9(n),this.options.addObserver(this)}},{key:"transform",value:function(n){if(!Vt(n))return this.options.get("transform");this.options.set("transform",Hn(n))}},{key:"parentTransform",value:function(){for(var a,n=this;n.parent;){var o=(n=n.parent).transform();o&&(a=o.matrix().multiplyCopy(a||ta.unit()))}if(a)return Hn(a)}},{key:"currentTransform",value:function(){var l,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.parentTransform(),a=this.transform(),o=yf(a),s=yf(n);if(l=o&&s?s.multiplyCopy(o):o||s)return Hn(l)}},{key:"visible",value:function(n){return Vt(n)?(this.options.set("visible",n),this):!1!==this.options.get("visible")}},{key:"clip",value:function(n){var a=this.options;return Vt(n)?(n&&!n.id&&(n.id=PD()),a.set("clip",n),this):a.get("clip")}},{key:"opacity",value:function(n){return Vt(n)?(this.options.set("opacity",n),this):dN(this.options.get("opacity"),1)}},{key:"clippedBBox",value:function(n){var a=this._clippedBBox(n);if(a){var o=this.clip();return o?cn.intersect(a,o.bbox(n)):a}}},{key:"containsPoint",value:function(n,a){if(this.visible()){var o=this.currentTransform(a),s=n;return o&&(s=n.transformCopy(o.matrix().invert())),this._hasFill()&&this._containsPoint(s)||this._isOnPath&&this._hasStroke()&&this._isOnPath(s)}return!1}},{key:"_hasFill",value:function(){var n=this.options.fill;return n&&!mf(n.color)}},{key:"_hasStroke",value:function(){var n=this.options.stroke;return n&&n.width>0&&!mf(n.color)}},{key:"_clippedBBox",value:function(n){return this.bbox(n)}}]),t}(Gs),Id=lLe,ok=function(r){return function(t){b(n,t);var e=S(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"fill",value:function(o,s){var l=this.options;if(Vt(o)){if(o&&"Gradient"!==o.nodeType){var u={color:o};Vt(s)&&(u.opacity=s),l.set("fill",u)}else l.set("fill",o);return this}return l.get("fill")}},{key:"stroke",value:function(o,s,l){return Vt(o)?(this.options.set("stroke.color",o),Vt(s)&&this.options.set("stroke.width",s),Vt(l)&&this.options.set("stroke.opacity",l),this):this.options.get("stroke")}}]),n}(r)},dLe=ta.IDENTITY.toString(),qD=function(r){return function(t){b(n,t);var e=S(n);function n(){return p(this,n),e.apply(this,arguments)}return v(n,[{key:"bbox",value:function(o){var u,s=yf(this.currentTransform(o)),l=s?s.toString():dLe;this._bboxCache&&this._matrixHash===l?u=this._bboxCache.clone():(u=this._bbox(s),this._bboxCache=u?u.clone():null,this._matrixHash=l);var c=this.options.get("stroke.width");return c&&u&&u.expand(c/2),u}},{key:"geometryChange",value:function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}}]),n}(r)};function Y9(i,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return 0===Ci(Math.abs(i-r),t)}function bN(i,r,t){return i0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this)).setCenter(n),e.radiusX=a.radiusX,e.radiusY=a.radiusY||a.radiusX,e.startAngle=a.startAngle,e.endAngle=a.endAngle,e.anticlockwise=a.anticlockwise||!1,e.xRotation=a.xRotation,e}return v(t,[{key:"clone",value:function(){return new t(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})}},{key:"setCenter",value:function(n){return this._observerField("center",Pe.create(n)),this.geometryChange(),this}},{key:"getCenter",value:function(){return this.center}},{key:"pointAt",value:function(n){var a=this.center,o=lu(n);return new Pe(a.x+this.radiusX*Math.cos(o),a.y+this.radiusY*Math.sin(o))}},{key:"curvePoints",value:function(){var h,n=this.startAngle,a=this.anticlockwise?-1:1,o=[this.pointAt(n)],s=this._arcInterval(),l=s.endAngle-s.startAngle,u=Math.ceil(l/45),c=l/u,d=n;this.xRotation&&(h=Hn().rotate(this.xRotation,this.center));for(var f=1;f<=u;f++){var g=d+a*c,_=this._intervalCurvePoints(d,g,h);o.push(_.cp1,_.cp2,_.p2),d=g}return o}},{key:"bbox",value:function(n){for(var a=this._arcInterval(),o=a.startAngle,s=a.endAngle,l=Q9(0,this.radiusX,this.radiusY,n),u=Md(l.x),c=Md(l.y),d=this.pointAt(s).transformCopy(n),h=e$(u,o),f=e$(c,o),g=this.pointAt(o).transformCopy(n),_=Pe.min(g,d),C=Pe.max(g,d);ha||o&&n===a)&&(a+=360),{startAngle:n,endAngle:a}}},{key:"_intervalCurvePoints",value:function(n,a,o){var s=this.pointAt(n),l=this.pointAt(a),u=this._derivativeAt(n),c=this._derivativeAt(a),d=(lu(a)-lu(n))/3,h=new Pe(s.x+d*u.x,s.y+d*u.y),f=new Pe(l.x-d*c.x,l.y-d*c.y);return o&&(s.transform(o),l.transform(o),h.transform(o),f.transform(o)),{p1:s,cp1:h,cp2:f,p2:l}}},{key:"_derivativeAt",value:function(n){var a=lu(n);return new Pe(-this.radiusX*Math.sin(a),this.radiusY*Math.cos(a))}},{key:"containsPoint",value:function(n){var C,a=this._arcInterval(),o=a.endAngle-a.startAngle,s=this.center,l=this.radiusX,u=this.radiusY,c=s.distanceTo(n),d=Math.atan2(n.y-s.y,n.x-s.x),h=l*u/Math.sqrt(XD(l,2)*XD(Math.sin(d),2)+XD(u,2)*XD(Math.cos(d),2)),f=this.pointAt(this.startAngle).round(10),g=this.pointAt(this.endAngle).round(10),_=function fLe(i,r,t,e){var n=r.x-i.x,a=e.x-t.x,o=r.y-i.y,s=e.y-t.y,l=i.x-t.x,u=i.y-t.y,c=n*s-a*o,d=(n*u-o*l)/c,h=(a*u-s*l)/c;if(d>=0&&d<=1&&h>=0&&h<=1)return new Pe(i.x+h*n,i.y+h*o)}(s,n.round(10),f,g);if(o<180)C=_&&bN(s.distanceTo(_),c)&&bN(c,h);else{var w=J9(s.x,s.y,l,u,n.x,n.y);360!==w&&(w=(360+w)%360);var E=a.startAngle<=w&&w<=a.endAngle;C=E&&bN(c,h)||!E&&(!_||_.equals(n))}return C}},{key:"_isOnPath",value:function(n,a){var o=this._arcInterval(),s=this.center,l=J9(s.x,s.y,this.radiusX,this.radiusY,n.x,n.y);return 360!==l&&(l=(360+l)%360),o.startAngle<=l&&l<=o.endAngle&&this.pointAt(l).distanceTo(n)<=a}}],[{key:"fromPoints",value:function(n,a,o,s,l,u,c){var d=function mLe(i){var r=i.x1,t=i.y1,e=i.x2,n=i.y2,a=i.rx,o=i.ry,s=i.largeArc,l=i.swipe,u=i.rotation,c=void 0===u?0:u,d=lu(c),h=Math.cos(d),f=Math.sin(d),g=h*(r-e)/2+f*(t-n)/2,_=-f*(r-e)/2+h*(t-n)/2,C=s!==l?1:-1,w=Math.pow(g,2),E=Math.pow(_,2),M=Math.pow(a,2),R=Math.pow(o,2),N=w/M+E/R;N>1&&(a*=N=Math.sqrt(w/M+E/R),M=Math.pow(a,2),o*=N,R=Math.pow(o,2));var V=C*Math.sqrt((M*R-M*E-R*w)/(M*E+R*w));isNaN(V)&&(V=0);var U=V*(a*_)/o,ee=o*g*-V/a,ve=h*U-f*ee+(r+e)/2,G=f*U+h*ee+(t+n)/2,I=(g-U)/a,K=(_-ee)/o,H=-(g+U)/a,se=-(_+ee)/o,me=(K>=0?1:-1)*Md(Math.acos(I/Math.sqrt(I*I+K*K))),ae=Ci((I*H+K*se)/(Math.sqrt(I*I+K*K)*Math.sqrt(H*H+se*se)),10),Ne=(I*se-K*H>=0?1:-1)*Md(Math.acos(ae));!l&&Ne>0&&(Ne-=360),l&&Ne<0&&(Ne+=360);var Ce=me+Ne,_e=Ce>=0?1:-1;return Ce=Math.abs(Ce)%360*_e,{center:new Pe(ve,G),startAngle:me,endAngle:Ce,radiusX:a,radiusY:o,xRotation:c}}({x1:n.x,y1:n.y,x2:a.x,y2:a.y,rx:o,ry:s,largeArc:l,swipe:u,rotation:c});return new t(d.center,{startAngle:d.startAngle,endAngle:d.endAngle,radiusX:d.radiusX,radiusY:d.radiusY,xRotation:d.xRotation,anticlockwise:0===u})}}]),t}(WD(Gs,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]));function J9(i,r,t,e,n,a){var o=Ci((n-i)/t,3),s=Ci((a-r)/e,3);return Ci(Md(Math.atan2(s,o)))}function e$(i,r){for(var t=i;t0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(this,t),(e=r.call(this)).real=n,e.img=a,e}return v(t,[{key:"add",value:function(n){return new t(Ci(this.real+n.real,10),Ci(this.img+n.img,10))}},{key:"addConstant",value:function(n){return new t(this.real+n,this.img)}},{key:"negate",value:function(){return new t(-this.real,-this.img)}},{key:"multiply",value:function(n){return new t(this.real*n.real-this.img*n.img,this.real*n.img+this.img*n.real)}},{key:"multiplyConstant",value:function(n){return new t(this.real*n,this.img*n)}},{key:"nthRoot",value:function(n){var a=Math.atan2(this.img,this.real),o=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),s=Math.pow(o,1/n);return new t(s*Math.cos(a/n),s*Math.sin(a/n))}},{key:"equals",value:function(n){return this.real===n.real&&this.img===n.img}},{key:"isReal",value:function(){return 0===this.img}}]),t}(mt),sk=_Le;function i$(i){return i<0?-1:1}function r$(i,r,t,e){if(0===i)return function yLe(i,r,t){var e=Math.sqrt(Math.pow(r,2)-4*i*t);return[(-r+e)/(2*i),(-r-e)/(2*i)]}(r,t,e);var u,c,d,h,f,g,_,n=(3*i*t-Math.pow(r,2))/(3*Math.pow(i,2)),a=(2*Math.pow(r,3)-9*i*r*t+27*Math.pow(i,2)*e)/(27*Math.pow(i,3)),o=Math.pow(n/3,3)+Math.pow(a/2,2),s=new sk(0,1),l=-r/(3*i);o<0?(u=new sk(-a/2,Math.sqrt(-o)).nthRoot(3),c=new sk(-a/2,-Math.sqrt(-o)).nthRoot(3)):(u=-a/2+Math.sqrt(o),u=new sk(i$(u)*Math.pow(Math.abs(u),1/3)),c=-a/2-Math.sqrt(o),c=new sk(i$(c)*Math.pow(Math.abs(c),1/3))),d=u.add(c),g=u.add(c).multiplyConstant(-.5),_=u.add(c.negate()).multiplyConstant(Math.sqrt(3)/2),h=g.add(s.multiply(_)),f=g.add(s.negate().multiply(_));var C=[];return d.isReal()&&C.push(Ci(d.real+l,10)),h.isReal()&&C.push(Ci(h.real+l,10)),f.isReal()&&C.push(Ci(f.real+l,10)),C}function YD(i,r,t,e,n){for(var s,a=n$(i,e),o=r$(a[0],a[1],a[2],a[3]-r[e]),l=0;l0?t.x-n:a-t.x)/(a-n)+o-t.y>=0}return e?1:0}function CLe(i){var r="_"+i;return function(t){return Vt(t)?(this._observerField(r,Pe.create(t)),this.geometryChange(),this):this[r]}}var QD=function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function bLe(i,r){for(var t=0;t1)&&(g=0);var _=Math.min(Math.max(h,f),1);return(_>1||_<0)&&(_=1),{min:g,max:_}}},{key:"_intersectionsTo",value:function(n,a){var o;return o=this.controlOut()&&n.controlIn()?function kLe(i,r,t){for(var a,e=n$(i,"x"),n=r$(e[0],e[1],e[2],e[3]-r.x),s=0,l=0;lr.y)&&((0===n[l]||1===n[l])&&t.bottomRight().x>r.x||00){var s=Zo(this.segments),l=new yl(o,a);this.suspend(),s.controlOut(n),this.resume(),this.segments.push(l)}return this}},{key:"arc",value:function(n,a,o,s,l){if(this.segments.length>0){var c=Zo(this.segments).anchor(),d=lu(n),h=new Pe(c.x-o*Math.cos(d),c.y-s*Math.sin(d)),f=new Sc(h,{startAngle:n,endAngle:a,radiusX:o,radiusY:s,anticlockwise:l});this._addArcSegments(f)}return this}},{key:"arcTo",value:function(n,a,o,s,l,u){if(this.segments.length>0){var d=Zo(this.segments).anchor(),h=Sc.fromPoints(d,Pe.create(n),a,o,s,l,u);this._addArcSegments(h)}return this}},{key:"_addArcSegments",value:function(n){this.suspend();for(var a=n.curvePoints(),o=1;o1){if(o[0]._isOnPathTo(o[1],n,l,"start"))return!0;for(var u=2;u<=s-2;u++)if(o[u-1]._isOnPathTo(o[u],n,l))return!0;if(o[s-2]._isOnPathTo(o[s-1],n,l,"end"))return!0}return!1}},{key:"_bbox",value:function(n){var s,a=this.segments,o=a.length;if(1===o){var l=a[0].anchor().transformCopy(n);s=new cn(l,kf.ZERO)}else if(o>0)for(var u=1;u0&&Zo(this.paths).lineTo(n,a),this}},{key:"curveTo",value:function(n,a,o){return this.paths.length>0&&Zo(this.paths).curveTo(n,a,o),this}},{key:"arc",value:function(n,a,o,s,l){return this.paths.length>0&&Zo(this.paths).arc(n,a,o,s,l),this}},{key:"arcTo",value:function(n,a,o,s,l,u){return this.paths.length>0&&Zo(this.paths).arcTo(n,a,o,s,l,u),this}},{key:"close",value:function(){return this.paths.length>0&&Zo(this.paths).close(),this}},{key:"_bbox",value:function(n){return JD(this.paths,!0,n)}},{key:"rawBBox",value:function(){return JD(this.paths,!1)}},{key:"_containsPoint",value:function(n){for(var a=this.paths,o=0;o2&&(l="l",c.splice(0,2))),d$[l])d$[l](i,{parameters:c,position:t,isRelative:u,previousCommand:e}),s&&"z"===s.toLowerCase()&&i.close();else if("m"!==l)throw new Error("Error while parsing SVG path. Unsupported command: "+l);e=l}),i}(new t(a),n)}}]),t}(ok(qD(Id))),SN=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createRing",value:function(n,a){var o=n.startAngle+180,s=n.angle+o;n.angle>0&&o===s&&(s+=.001);var l=new Pe(n.center.x,n.center.y),u=Math.max(n.radius,0),c=Math.max(n.innerRadius,0),d=new Sc(l,{startAngle:o,endAngle:s,radiusX:u,radiusY:u}),h=dt.fromArc(d,a).close();if(c){d.radiusX=d.radiusY=c;var f=d.pointAt(s);h.lineTo(f.x,f.y),h.arc(s,o,c,c,!0)}else h.lineTo(l.x,l.y);return h}}]),t}(mt);SN.current=new SN;var e0=SN,v$=Math.PI/2,NLe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Pe,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(this,t),(e=r.call(this)).setCenter(n),e.setRadius(a),e}return v(t,[{key:"setCenter",value:function(n){return this._observerField("center",Pe.create(n)),this.geometryChange(),this}},{key:"getCenter",value:function(){return this.center}},{key:"equals",value:function(n){return n&&n.center.equals(this.center)&&n.radius===this.radius}},{key:"clone",value:function(){return new t(this.center.clone(),this.radius)}},{key:"pointAt",value:function(n){return this._pointAt(lu(n))}},{key:"bbox",value:function(n){for(var a=Q9(0,this.radius,this.radius,n),o=Pe.maxPoint(),s=Pe.minPoint(),l=0;l<4;l++){var u=this._pointAt(a.x+l*v$).transformCopy(n),c=this._pointAt(a.y+l*v$).transformCopy(n),d=new Pe(u.x,c.y);o=Pe.min(o,d),s=Pe.max(s,d)}return cn.fromPoints(o,s)}},{key:"_pointAt",value:function(n){var a=this.center,o=this.radius;return new Pe(a.x+o*Math.cos(n),a.y+o*Math.sin(n))}},{key:"containsPoint",value:function(n){var a=this.center,o=this.radius;return Math.pow(n.x-a.x,2)+Math.pow(n.y-a.y,2)<=Math.pow(o,2)}},{key:"_isOnPath",value:function(n,a){var s=this.radius,l=this.center.distanceTo(n);return s-a<=l&&l<=s+a}}]),t}(WD(Gs,["radius"])),bo=NLe;function FLe(i){var r="_"+i;return function(t){return Vt(t)?(this._observerField(r,t),this.geometryChange(),this):this[r]}}function LLe(i,r){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:["geometry"],e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return LLe(e.prototype,t),e},GLe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new bo,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this,a)).geometry(n),Vt(e.options.stroke)||e.stroke("#000"),e}return v(t,[{key:"nodeType",get:function(){return"Circle"}},{key:"rawBBox",value:function(){return this._geometry.bbox()}},{key:"_bbox",value:function(n){return this._geometry.bbox(n)}},{key:"_containsPoint",value:function(n){return this.geometry().containsPoint(n)}},{key:"_isOnPath",value:function(n){return this.geometry()._isOnPath(n,this.options.stroke.width/2)}}]),t}(ok(qD(wN(Id)))),kl=GLe,DN=function(r,t){return function(e){b(a,e);var n=S(a);function a(){return p(this,a),n.apply(this,arguments)}return v(a,[{key:"traverse",value:function(s){for(var l=this[t],u=0;u=0&&(this.children.splice(a,1),n.parent=null,this.childrenChange("remove",[n],a)),this}},{key:"removeAt",value:function(n){if(0<=n&&na);l++);this.visual.insert(l,n)}},{key:"traverse",value:function(n){for(var a=this.children,o=a.length,s=0;s1?new t(n[0],n[1],n[2]):new t(n.offset,n.color,n.opacity)}}]),t}(function(r,t){var e=function(n){b(o,n);var a=S(o);function o(){return p(this,o),a.apply(this,arguments)}return v(o)}(r);return function ZLe(i,r){for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this)).stops=new qLe(e._createStops(n.stops)),e.stops.addObserver(Xe(e)),e._userSpace=n.userSpace,e.id=PD(),e}return v(t,[{key:"nodeType",get:function(){return"Gradient"}},{key:"userSpace",value:function(n){return Vt(n)?(this._userSpace=n,this.optionsChange(),this):this._userSpace}},{key:"_createStops",value:function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=[],o=0;o=0&&this.stops.splice(a,1)}},{key:"optionsChange",value:function(n){this.trigger("optionsChange",{field:"gradient"+(n?"."+n.field:""),value:this})}},{key:"geometryChange",value:function(){this.optionsChange()}}]),t}(Gs),lk=tPe,iPe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).start(n.start||new Pe),e.end(n.end||new Pe(1,0)),e}return v(t)}(QD(lk,["start","end"])),t0=iPe,rPe=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,t),(e=r.call(this,n)).center(n.center||new Pe),e._radius=Vt(n.radius)?n.radius:1,e._fallbackFill=n.fallbackFill,e}return v(t,[{key:"radius",value:function(n){return Vt(n)?(this._radius=n,this.geometryChange(),this):this._radius}},{key:"fallbackFill",value:function(n){return Vt(n)?(this._fallbackFill=n,this.optionsChange(),this):this._fallbackFill}}]),t}(QD(lk,["center"])),n0=rPe,uk="radial",sPe={glass:{type:"linear",rotation:0,stops:[{offset:0,color:Ln,opacity:0},{offset:.25,color:Ln,opacity:.3},{offset:1,color:Ln,opacity:0}]},sharpBevel:{type:uk,stops:[{offset:0,color:Ln,opacity:.55},{offset:.65,color:Ln,opacity:0},{offset:.95,color:Ln,opacity:.25}]},roundedBevel:{type:uk,stops:[{offset:.33,color:Ln,opacity:.06},{offset:.83,color:Ln,opacity:.2},{offset:.95,color:Ln,opacity:0}]},roundedGlass:{type:uk,supportVML:!1,stops:[{offset:0,color:Ln,opacity:0},{offset:.5,color:Ln,opacity:.3},{offset:.99,color:Ln,opacity:0}]},sharpGlass:{type:uk,supportVML:!1,stops:[{offset:0,color:Ln,opacity:.2},{offset:.15,color:Ln,opacity:.15},{offset:.17,color:Ln,opacity:.35},{offset:.85,color:Ln,opacity:.05},{offset:.87,color:Ln,opacity:.15},{offset:.99,color:Ln,opacity:0}]},bubbleShadow:{type:uk,center:[.5,.5],radius:.5}};function lPe(i,r){if(i.x1===r.x1&&i.y1===r.y1&&i.x2===r.x2&&i.y2===r.y2)return r;var t=Math.min(i.x1,r.x1),e=Math.max(i.x1,r.x1),n=Math.min(i.x2,r.x2),a=Math.max(i.x2,r.x2),o=Math.min(i.y1,r.y1),s=Math.max(i.y1,r.y1),l=Math.min(i.y2,r.y2),u=Math.max(i.y2,r.y2),c=[];return c[0]=new et(e,o,n,s),c[1]=new et(t,s,e,l),c[2]=new et(n,s,a,l),c[3]=new et(e,l,n,u),i.x1===t&&i.y1===o||r.x1===t&&r.y1===o?(c[4]=new et(t,o,e,s),c[5]=new et(n,l,a,u)):(c[4]=new et(n,o,a,s),c[5]=new et(t,l,e,u)),Xo(c,function(d){return d.height()>0&&d.width()>0})[0]}var k$=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=(n=r.call(this,e)).options;return a.width=parseInt(a.width,10),a.height=parseInt(a.height,10),n.gradients={},n}return v(t,[{key:"reflow",value:function(){var n=this.options,a=this.children,o=new et(0,0,n.width,n.height);this.box=o.unpad(n.margin);for(var s=0;sc&&(h.push({groupElements:w,groupSize:f,groupElementsSize:g}),C=Math.max(C,g),_+=u+f,f=0,g=0,w=[]),f=Math.max(f,R[s]),g>0&&(g+=l),g+=R[o],w.push(M)}return h.push({groupElements:w,groupSize:f,groupElementsSize:g}),{groups:h,groupsSize:_+=f,maxGroupElementsSize:C=Math.max(C,g)}}},{key:"elementSize",value:function(n){return{width:n.box.width(),height:n.box.height()}}},{key:"createVisual",value:function(){}}]),t}(Kn);ze(C$,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var AN=C$,dPe="12px sans-serif",fPe=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Pe,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(this,t),(n=r.call(this,o)).content(e),n.position(a),n.options.font||(n.options.font=dPe),Vt(n.options.fill)||n.fill("#000"),n}return v(t,[{key:"nodeType",get:function(){return"Text"}},{key:"content",value:function(n){return Vt(n)?(this.options.set("content",n),this):this.options.get("content")}},{key:"measure",value:function(){return ek(this.content(),{font:this.options.get("font")})}},{key:"rect",value:function(){var n=this.measure(),a=this.position().clone();return new cn(a,[n.width,n.height])}},{key:"bbox",value:function(n){var a=yf(this.currentTransform(n));return this.rect().bbox(a)}},{key:"rawBBox",value:function(){return this.rect().bbox()}},{key:"_containsPoint",value:function(n){return this.rect().containsPoint(n)}}]),t}(ok(QD(Id,["position"]))),xN=fPe,vPe=xN,b$=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).content=e,a.reflow(new et),a}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=a.size=ek(this.content,{font:a.font});this.baseline=o.baseline,this.box=new et(n.x1,n.y1,n.x1+o.width,n.y1+o.height)}},{key:"createVisual",value:function(){var n=this.options,a=n.font,o=n.color,s=n.opacity,l=n.cursor;this.visual=new vPe(this.content,this.box.toRect().topLeft(),{font:a,fill:{color:o,opacity:s},cursor:l})}}]),t}(Kn);ze(b$,{font:s9,color:Xi});var pPe=b$;function r0(i){var r=i.origin,t=i.bottomRight();return new et(r.x,r.y,t.x,t.y)}var gPe=/\n/m,mPe=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).content=e,o.data=a,o._initContainer(),!1!==o.options._autoReflow&&o.reflow(new et),o}return v(t,[{key:"_initContainer",value:function(){var n=this.options,a=String(this.content).split(gPe),o=new AN({vertical:!0,align:n.align,wrap:!1}),s=ne({},n,{opacity:1,animation:null});this.container=o,this.append(o);for(var l=0;l1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{};p(this,i),this._intlService=t.intlService,this.sender=t.sender||r,this.format=new SPe(t.intlService),this.chart=r,this.rtl=Boolean(t.rtl)}return v(i,[{key:"intl",get:function(){return this._intlService||M$.implementation},set:function(t){this._intlService=t,this.format.intl=t}},{key:"notify",value:function(t,e){this.chart&&this.chart.trigger(t,e)}},{key:"isPannable",value:function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t}}]),i}(),MN=wPe,DPe=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){RN=t}},{key:"create",value:function(t,e){if(RN)return RN.create(t,e)}}]),i}(),ON=DPe;function R$(i,r){var t=i.tickX,e=i.tickY,n=i.position,a=new dt({stroke:{width:r.width,color:r.color}});return i.vertical?a.moveTo(t,n).lineTo(t+r.size,n):a.moveTo(n,e).lineTo(n,e+r.size),Ns(a),a}function O$(i,r){var t=i.lineStart,e=i.lineEnd,n=i.position,a=new dt({stroke:{width:r.width,color:r.color,dashType:r.dashType}});return i.vertical?a.moveTo(t,n).lineTo(e,n):a.moveTo(n,t).lineTo(n,e),Ns(a),a}var I$=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new MN;return p(this,t),(n=r.call(this,e)).chartService=a,n.options.visible||(n.options=ne({},n.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),n.options.minorTicks=ne({},{color:n.options.line.color,width:n.options.line.width,visible:n.options.minorTickType!==rN},n.options.minorTicks,{size:n.options.minorTickSize,align:n.options.minorTickType}),n.options.majorTicks=ne({},{color:n.options.line.color,width:n.options.line.width,visible:n.options.majorTickType!==rN},n.options.majorTicks,{size:n.options.majorTickSize,align:n.options.majorTickType}),n.initFields(),n.options._deferLabels||n.createLabels(),n.createTitle(),n.createNotes(),n}return v(t,[{key:"initFields",value:function(){}},{key:"labelsRange",value:function(){return{min:this.options.labels.skip,max:this.labelsCount()}}},{key:"normalizeLabelRotation",value:function(n){var a=n.rotation;gl(a)&&(n.alignRotation=a.align,n.rotation=a.angle)}},{key:"createLabels",value:function(){var n=this.options,o=ne({},n.labels,{align:n.vertical?Gn:Qt,zIndex:n.zIndex}),s=Math.max(1,o.step);if(this.clearLabels(),o.visible){this.normalizeLabelRotation(o),"auto"===o.rotation&&(o.rotation=0,n.autoRotateLabels=!0);for(var l=this.labelsRange(),u=l.min;u0&&a.visible){var s=new dt({stroke:{width:a.width,color:a.color,dashType:a.dashType}});s.moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),n._alignLines&&Ns(s);var l=this._lineGroup=new sn;l.append(s),this.visual.append(l),this.createTicks(l)}}},{key:"getActualTickSize",value:function(){var n=this.options,a=0;return n.majorTicks.visible&&n.minorTicks.visible?a=Math.max(n.majorTicks.size,n.minorTicks.size):n.majorTicks.visible?a=n.majorTicks.size:n.minorTicks.visible&&(a=n.minorTicks.size),a}},{key:"createBackground",value:function(){var o=this.options.background;o&&(this._backgroundPath=dt.fromRect(this.box.toRect(),{fill:{color:o},stroke:null}),this.visual.append(this._backgroundPath))}},{key:"createPlotBands",value:function(){var n=this,a=this.options,o=a.plotBands||[],s=a.vertical,l=this.plotArea;if(0!==o.length){for(var u=this._plotbandGroup=new sn({zIndex:-1}),c=Xo(this.pane.axes,function(M){return M.options.vertical!==n.options.vertical})[0],d=0;d3&&void 0!==arguments[3]?arguments[3]:o,l=this.options,u=l.vertical,c=this.lineBox(),d=this.getActualTickSize()+l.margin;if(u){var f=c.x2;a?(f+=d,n.options.rotationOrigin=Sn):(f-=d+n.box.width(),n.options.rotationOrigin=Gn),h=n.box.move(f,o)}else{var g=c.y1;a?(g-=d+n.box.height(),n.options.rotationOrigin=Zn):(g+=d,n.options.rotationOrigin=Fn),h=new et(o,g,s,g+n.box.height())}n.reflow(h)}},{key:"autoRotateLabelAngle",value:function(n,a){return n.width()a?-90:-45}},{key:"autoRotateLabels",value:function(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(var n=this.getMajorTickPositions(),a=this.labels,o=Math.min(a.length,n.length-1),s=0,l=0;l0&&(!Te(u.max)||s<=u.max))return null;if(a0||ss&&l>0&&(h=Mt(a,o,s),d=Mt(a-c,o,s-c)),{min:d,max:h}}},{key:"valueRange",value:function(){return{min:this.seriesMin,max:this.seriesMax}}},{key:"lineDir",value:function(){var n=this.options;return(n.vertical?-1:1)*(n.reverse?-1:1)}},{key:"lineInfo",value:function(){var n=this.options.vertical,a=this.lineBox(),o=n?a.height():a.width(),s=n?Ct:yt,l=this.lineDir(),c=s+(1===l?1:2).toString();return{axis:s,axisOrigin:c,axisDir:l,lineBox:a,lineSize:o,lineStart:a[c]}}},{key:"pointOffset",value:function(n){var a=this.lineInfo(),o=a.axis,l=a.axisOrigin,u=a.lineBox;return(a.axisDir>0?n[o]-u[l]:u[l]-n[o])/a.lineSize}},{key:"scaleToDelta",value:function(n,a){var s=Mt(n,-.999,.999);return s>0?a*Math.min(1,s):a-a/(1+s)}},{key:"labelsBetweenTicks",value:function(){return!this.options.justified}},{key:"prepareUserOptions",value:function(){}}]),t}(Kn);ze(I$,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:Xi,visible:!0},title:{visible:!0,position:Qt},majorTicks:{align:ID,size:4,skip:0,step:1},minorTicks:{align:ID,size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:ID,minorTickType:rN,majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:Xi,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var ck=I$,a0="milliseconds",IN="seconds",NN="minutes",dk="hours",cu="days",hk="weeks",Sf="months",wc="years",gg=6e4,o0=60*gg,Dc=24*o0,LN=7*Dc,PN=31*Dc,BN=365*Dc,du={years:BN,months:PN,weeks:LN,days:Dc,hours:o0,minutes:gg,seconds:1e3,milliseconds:1};function GN(i,r){return i.getTime()-r-(i.getTimezoneOffset()-r.getTimezoneOffset())*gg}function zr(i,r){return new Date(i.getTime()+r)}function ni(i){var r;return i instanceof Date?r=i:i&&(r=new Date(i)),r}function s0(i,r){return 0===r&&23===i.getHours()&&(i.setHours(i.getHours()+2),!0)}function Ya(i,r,t,e){var n=i;if(i){var a=ni(i),o=a.getHours();t===wc?s0(n=new Date(a.getFullYear()+r,0,1),0):t===Sf?s0(n=new Date(a.getFullYear(),a.getMonth()+r,1),o):t===hk?(n=Ya(function TPe(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=0,e=i.getDay();if(!isNaN(e))for(;e!==r;)0===e?e=6:e--,t++;return zr(i,-t*Dc)}(a,e),7*r,cu),s0(n,o)):t===cu?s0(n=new Date(a.getFullYear(),a.getMonth(),a.getDate()+r),o):t===dk?n=function APe(i,r){var t=new Date(i);t.setMinutes(0,0,0);var e=(i.getTimezoneOffset()-t.getTimezoneOffset())*gg;return zr(t,e+r*o0)}(a,r):t===NN?(n=zr(a,r*gg)).getSeconds()>0&&n.setSeconds(0):t===IN?n=zr(a,1e3*r):t===a0&&(n=zr(a,r)),t!==a0&&n.getMilliseconds()>0&&n.setMilliseconds(0)}return n}function VN(i,r,t){return Ya(ni(i),0,r,t)}function N$(i,r,t){var e=ni(i);return e&&VN(e,r,t).getTime()===e.getTime()?e:Ya(e,1,r,t)}function wf(i,r){return i&&r?i.getTime()-r.getTime():-1}function hu(i,r){return i.getTime()-r}function ii(i){if(Jr(i)){for(var r=[],t=0;t0){var o=this.options.vertical?Ct:yt,s=n[o+1],l=n[o+2],u=a[0],c=Yi(a);(u.box[o+1]>l||u.box[o+2]l||c.box[o+2]=0;)c--;return n.slice(u,c+1)}},{key:"lineInfo",value:function(){var n=this.options,a=n.vertical,o=n.reverse,s=this.lineBox(),l=a?s.height():s.width(),u=a?Ct:yt,c=o?-1:1,h=u+(1===c?1:2).toString();return{axis:u,axisOrigin:h,axisDir:c,lineBox:s,lineSize:l,lineStart:s[h]}}},{key:"lineDir",value:function(){return this.options.reverse?-1:1}},{key:"getSlot",value:function(n,a,o){var s=this.options,l=s.reverse,u=s.justified,c=this.scaleOptions(),d=c.scale,h=c.box,f=c.min,g=this.lineInfo(),_=g.axis,C=g.lineStart,w=h.clone(),E=!Te(a),M=qt(n,0),R=qt(a,M);R=Math.max(R-1,M);var N=C+(M-f)*d,V=C+((R=Math.max(M,R))+1-f)*d;return E&&u&&(V=N),o&&(N=Mt(N,h[_+1],h[_+2]),V=Mt(V,h[_+1],h[_+2])),w[_+1]=l?V:N,w[_+2]=l?N:V,w}},{key:"limitSlot",value:function(n){var o=this.options.vertical?Ct:yt,s=this.lineBox(),l=n.clone();return l[o+1]=Mt(n[o+1],s[o+1],s[o+2]),l[o+2]=Mt(n[o+2],s[o+1],s[o+2]),l}},{key:"slot",value:function(n,a,o){var s=Math.floor(this.options.min||0),l=n,u=a;return"string"==typeof l?l=this.categoryIndex(l):un(l)&&(l-=s),"string"==typeof u?u=this.categoryIndex(u):un(u)&&(u-=s),$(q(t.prototype),"slot",this).call(this,l,u,o)}},{key:"pointCategoryIndex",value:function(n){var a=this.options,o=a.reverse,s=a.justified,u=a.vertical?Ct:yt,c=this.scaleOptions(),h=c.box,C=h[u+1],E=n[u];if(Eh[u+2])return null;var M=(o?c.max:c.min)+(E-C)/c.scale,R=M%1;return s?M=Math.round(M):0===R&&M>0&&M--,Math.floor(M)}},{key:"getCategory",value:function(n){var a=this.pointCategoryIndex(n);return null===a?null:this.options.categories[a]}},{key:"categoryIndex",value:function(n){return this.totalIndex(n)-Math.floor(this.options.min||0)}},{key:"categoryAt",value:function(n,a){var o=this.options;return(a?o.srcCategories:o.categories)[n]}},{key:"categoriesCount",value:function(){return(this.options.categories||[]).length}},{key:"translateRange",value:function(n){var a=this.options,o=this.lineBox(),s=a.vertical?o.height():o.width(),l=a.categories.length,c=tt(n/(s/l),10);return{min:c,max:l+c}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),s=this.totalRangeIndices(),u=this.scaleToDelta(n,s.max-s.min),h=s.min+o*u,f=s.max-(1-o)*u;return f-h<.1&&(f=h+.1),{min:h,max:f}}},{key:"zoomRange",value:function(n,a){var o=this.totalRange(),s=o.min,l=o.max,u=this.scaleRange(n,a);return{min:Mt(u.min,s,l),max:Mt(u.max,s,l)}}},{key:"labelsCount",value:function(){var n=this.labelsRange();return n.max-n.min}},{key:"labelsRange",value:function(){var n=this.options,a=n.justified,o=n.labels,s=this.totalRangeIndices(!0),l=s.min,u=s.max,c=Math.floor(l);return a?(l=Math.ceil(l),u=Math.floor(u)):(l=Math.floor(l),u=Math.ceil(u)),{min:(l>o.skip?o.skip+o.step*Math.ceil((l-o.skip)/o.step):o.skip)-c,max:(n.categories.length?u+(a?1:0):0)-c}}},{key:"createAxisLabel",value:function(n,a,o){var s=this.options,l=s.dataItems?s.dataItems[n]:null,u=qt(s.categories[n],"");o.dataItem=l;var c=this.axisLabelText(u,a,o);return new bf(u,c,n,l,a)}},{key:"shouldRenderNote",value:function(n){var a=this.totalRangeIndices();return Math.floor(a.min)<=n&&n<=Math.ceil(a.max)}},{key:"noteSlot",value:function(n){var o=n-Math.floor(this.options.min||0);return this.getSlot(o)}},{key:"arrangeNotes",value:function(){$(q(t.prototype),"arrangeNotes",this).call(this),this.hideOutOfRangeNotes()}},{key:"hideOutOfRangeNotes",value:function(){var n=this.notes,a=this.box;if(n&&n.length)for(var o=this.options.vertical?Ct:yt,s=a[o+1],l=a[o+2],u=0;u=.01)return{min:M,max:R}}},{key:"valueRange",value:function(){return this.range()}},{key:"totalIndex",value:function(n){var a=this.options,o=this._categoriesMap?this._categoriesMap.get(n):function MPe(i,r){if(i instanceof Date){for(var t=r.length,e=0;e=o;){h=h||a[u].slice(0);do{g=h.shift()}while(g&&r===u&&go&&(f=Math.ceil(d/o));break}u=Tc[l++]||Yi(Tc),d=n/du[u],h=null}}i.baseUnitStep=f,i.baseUnit=u}var K$=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"clone",value:function(){var n=new t(Object.assign({},this.options),this.chartService);return n.createLabels(),n}},{key:"categoriesHash",value:function(){var n=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+n}},{key:"initUserOptions",value:function(n){return n}},{key:"initFields",value:function(){$(q(t.prototype),"initFields",this).call(this);var n=this.chartService,a=n.intl,o=this.options,s=o.categories||[];if(s._parsed||((s=L$(a,s))._parsed=!0),o=ne({roundToBaseUnit:!0},o,{categories:s,min:ya(a,o.min),max:ya(a,o.max),weekStartDay:P$(o,a)}),n.panning&&n.isPannable(o.vertical?Ct:yt)&&(o.roundToBaseUnit=!1),o.userSetBaseUnit=o.userSetBaseUnit||o.baseUnit,o.userSetBaseUnitStep=o.userSetBaseUnitStep||o.baseUnitStep,this.options=o,o.srcCategories=s,s.length>0){var l=u0(s),u=o.maxDivisions;if(this.dataRange=new HN(l.min,l.max,function NPe(i){var r=(i.baseUnit||"").toLowerCase();return r!==l0&&!hn(r,Tc)&&function IPe(i){for(var n,a,r=i.categories,t=Te(r)?r.length:0,e=Zi,o=0;o0&&(a=(e=Math.min(e,l))>=BN?wc:e>=PN-3*Dc?Sf:e>=LN?hk:e>=Dc?cu:e>=o0?dk:e>=gg?NN:IN)}n=s}i.baseUnit=a||cu}(i),(r===l0||"auto"===i.baseUnitStep)&&H$(i),i}(o)),u){var c=this.dataRange.displayRange(),d=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:c.min,max:c.max,maxDateGroups:u}),h=this.dataRange.options;H$(d,h.baseUnit,h.baseUnitStep),this.divisionRange=new HN(l.min,l.max,d)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||cu,this.dataRange=this.divisionRange=new OPe(o);this.rangeLabels=[]}},{key:"tickIndices",value:function(n){var a=this.dataRange,o=this.divisionRange,s=o.valuesCount();if(!this.options.maxDivisions||!s)return $(q(t.prototype),"tickIndices",this).call(this,n);var l=[],u=o.values(),c=0;this.options.justified||(u=u.concat(o.dateAt(s)),c=.5);for(var d=0;d=1){var h=l.length-1;l.splice(d,0,l[h-1]+(l[h]-l[h-1])*n)}return l}},{key:"shouldRenderNote",value:function(n){var a=this.range(),o=this.options.categories||[];return wf(n,a.min)>=0&&wf(n,a.max)<=0&&o.length}},{key:"parseNoteValue",value:function(n){return ya(this.chartService.intl,n)}},{key:"noteSlot",value:function(n){return this.getSlot(n)}},{key:"translateRange",value:function(n){var a=this.options,o=a.baseUnit,s=a.weekStartDay,l=a.vertical,u=this.lineBox(),c=l?u.height():u.width(),d=this.range(),f=tt(n/(c/(d.max-d.min)),10);if(d.min&&d.max){var g=zr(a.min||d.min,f),_=zr(a.max||d.max,f);d={min:Ya(g,0,o,s),max:Ya(_,0,o,s)}}return d}},{key:"labelsRange",value:function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}}},{key:"pan",value:function(n){if(this.isEmpty())return null;var a=this.options,o=this.lineBox(),s=a.vertical?o.height():o.width(),l=this.dataRange.displayRange(),u=l.min,c=l.max,d=this.dataRange.total(),f=tt(n/(s/(c-u)),10)*(a.reverse?-1:1),g=zr(u,f),_=zr(c,f),C=this.limitRange(ii(g),ii(_),ii(d.min),ii(d.max),f);return C?(C.min=ni(C.min),C.max=ni(C.max),C.baseUnit=a.baseUnit,C.baseUnitStep=a.baseUnitStep||1,C.userSetBaseUnit=a.userSetBaseUnit,C.userSetBaseUnitStep=a.userSetBaseUnitStep,C):void 0}},{key:"pointsRange",value:function(n,a){if(this.isEmpty())return null;var o=$(q(t.prototype),"pointsRange",this).call(this,n,a),s=this.dataRange.displayRange(),l=this.dataRange.displayIndices(),u=hu(s.max,s.min)/(l.max-l.min),c=this.options;return{min:zr(s.min,o.min*u),max:zr(s.min,o.max*u),baseUnit:c.userSetBaseUnit||c.baseUnit,baseUnitStep:c.userSetBaseUnitStep||c.baseUnitStep}}},{key:"scaleRange",value:function(n,a){if(this.isEmpty())return{};var o=this.options,s=o.userSetBaseUnit===l0,l=this.dataRange.total(),u=this.dataRange.displayRange(),c=u.min,d=u.max,h=Math.abs(this.pointOffset(a)),g=this.scaleToDelta(n,d-c),_=Math.round(h*g),C=Math.round((1-h)*g),w=this.dataRange.options.baseUnit,E=new Date(c.getTime()+_),M=new Date(d.getTime()-C);if(s){var G,I,R=o.autoBaseUnitSteps,N=o.maxDateGroups,V=Yi(R[w])*N*du[w],U=hu(d,c),ee=hu(M,E),ve=Tc.indexOf(w);if(eeV&&w!==wc){var K=0;do{ve++,K=0,I=2*du[w=Tc[ve]];do{G=R[w][K],K++}while(K0&&(E=zr(c,-I),M=zr(d,I),E=zr(E,Mt(M,l.min,l.max)-M),M=zr(M,Mt(E,l.min,l.max)-E))}}return E&&M&&hu(M,E)>0?{min:E,max:M,baseUnit:o.userSetBaseUnit||o.baseUnit,baseUnitStep:o.userSetBaseUnitStep||o.baseUnitStep}:void 0}},{key:"zoomRange",value:function(n,a){var o=this.dataRange.total(),s=this.scaleRange(n,a);return s&&(s.mino.max&&(s.max=o.max)),s}},{key:"range",value:function(){return this.dataRange.displayRange()}},{key:"createLabels",value:function(){$(q(t.prototype),"createLabels",this).call(this),this.createRangeLabels()}},{key:"clearLabels",value:function(){$(q(t.prototype),"clearLabels",this).call(this),this.rangeLabels=[]}},{key:"arrangeLabels",value:function(){this.arrangeRangeLabels(),$(q(t.prototype),"arrangeLabels",this).call(this)}},{key:"arrangeRangeLabels",value:function(){var n=this.options,a=this.rangeLabels;if(0!==a.length){var o=this.lineBox(),s=n.vertical,l=n.rangeLabels.mirror||n.labels.mirror,u=a[0];if(u){var c=s?o.y1-u.box.height()/2:o.x1;this.positionLabel(u,l,c)}var d=a[1];if(d){var h=s?o.y2-d.box.height()/2:o.x2;this.positionLabel(d,l,h)}}}},{key:"autoRotateLabels",value:function(){$(q(t.prototype),"autoRotateLabels",this).call(this),this.autoRotateRangeLabels()}},{key:"hideOutOfRangeLabels",value:function(){$(q(t.prototype),"hideOutOfRangeLabels",this).call(this),this.hideOverlappingLabels()}},{key:"hideOverlappingLabels",value:function(){var n=this.rangeLabels,a=this.labels;if(0!==n.length){var s=n[0];if(s&&s.options.visible)for(var l=0;l0&&o(c,a[d]);--d);}function o(f,g){return!(g.options.visible&&!g.box.overlaps(f.box)||(g.options.visible=!1,0))}}},{key:"contentBox",value:function(){for(var n=$(q(t.prototype),"contentBox",this).call(this),a=this.rangeLabels,o=0;o2&&void 0!==arguments[2]?arguments[2]:{},s=this.options,l=s.dataItems&&!s.maxDivisions?s.dataItems[n]:null,u=this.divisionRange.dateAt(n),c=a.dateFormats[this.divisionRange.options.baseUnit];a.format=a.format||c,o.dataItem=l;var d=this.axisLabelText(u,a,o);if(d)return new bf(u,d,n,l,a)}},{key:"createRangeLabels",value:function(){var n=this,a=this.divisionRange,o=a.displayStart,s=a.displayEnd,l=this.options,u=Object.assign({},l.labels,l.rangeLabels,{align:Qt,zIndex:l.zIndex});if(!0===u.visible){this.normalizeLabelRotation(u),u.alignRotation=Qt,"auto"===u.rotation&&(u.rotation=0,l.autoRotateRangeLabels=!0),u.format=u.format||u.dateFormats[this.divisionRange.options.baseUnit];var d=function(_,C,w){if(w){var E=new bf(C,w,_,null,u);n.append(E),n.rangeLabels.push(E)}};d(0,o,this.axisLabelText(o,u,{index:0,count:2})),d(1,s,this.axisLabelText(s,u,{index:1,count:2}))}}},{key:"autoRotateRangeLabels",value:function(){var n=this,a=this.rangeLabels;if(this.options.autoRotateRangeLabels&&!this.options.vertical&&2===a.length){var o=function(u,c,d){var h=2*Math.abs(c[d+1]-c[d]),f=n.autoRotateLabelAngle(u.box,h);0!==f&&(u.options.rotation=f,u.reflow(new et))},s=this.getMajorTickPositions();o(a[0],s,0),o(a[1],s,s.length-2)}}},{key:"categoryIndex",value:function(n){return this.dataRange.valueIndex(n)}},{key:"slot",value:function(n,a,o){var s=this.dataRange,l=n,u=a;l instanceof Date&&(l=s.dateIndex(l)),u instanceof Date&&(u=s.dateIndex(u));var c=this.getSlot(l,u,o);if(c)return c.toRect()}},{key:"getSlot",value:function(n,a,o){var s=n,l=a;return typeof s===aN&&(s=this.categoryIndex(s)),typeof l===aN&&(l=this.categoryIndex(l)),$(q(t.prototype),"getSlot",this).call(this,s,l,o)}},{key:"valueRange",value:function(){var a=u0(this.options.srcCategories);return{min:ni(a.min),max:ni(a.max)}}},{key:"categoryAt",value:function(n,a){return this.dataRange.dateAt(n,a)}},{key:"categoriesCount",value:function(){return this.dataRange.valuesCount()}},{key:"rangeIndices",value:function(){return this.dataRange.displayIndices()}},{key:"labelsBetweenTicks",value:function(){return!this.divisionRange.options.justified}},{key:"prepareUserOptions",value:function(){this.isEmpty()||(this.options.categories=this.dataRange.values())}},{key:"getCategory",value:function(n){var a=this.pointCategoryIndex(n);return null===a?null:this.dataRange.dateAt(a)}},{key:"totalIndex",value:function(n){return this.dataRange.totalIndex(n)}},{key:"currentRangeIndices",value:function(){var n=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(n.min),max:this.dataRange.totalIndex(n.max)}}},{key:"totalRange",value:function(){return this.dataRange.total()}},{key:"totalCount",value:function(){return this.dataRange.totalCount()}},{key:"isEmpty",value:function(){return!this.options.srcCategories.length}},{key:"roundedRange",value:function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var n=this.options,a=u0(n.srcCategories);return new HN(a.min,a.max,Object.assign({},n,{justified:!1,roundToBaseUnit:!0,justifyEnd:n.justified})).displayRange()}}]),t}(Ec);ze(K$,{type:xd,labels:{dateFormats:U$},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var fk=K$;function j$(i,r){return tt(Math.floor(i/r)*r,10)}function c0(i,r){return tt(Math.ceil(i/r)*r,10)}function d0(i){return Math.max(Math.min(i,3e5),-3e5)}var KN=Math.pow(10,-9),W$=function(i){b(t,i);var r=S(t);function t(e,n,a,o){return p(this,t),r.call(this,Object.assign({},a,{seriesMin:e,seriesMax:n}),o)}return v(t,[{key:"initUserOptions",value:function(n){var a=function PPe(i,r,t){var e=t.narrowRange,n=function FPe(i,r,t){if(!i&&!r)return 0;var e;if(i>=0&&r>=0){var n=i===r?0:i;if(!1===t||!t&&(r-n)/r>.2)return 0;e=Math.max(0,n-(r-n)/2)}else e=i;return e}(i,r,e),a=function LPe(i,r,t){if(!i&&!r)return 1;var e;if(i<=0&&r<=0){var n=i===r?0:r,a=Math.abs((n-i)/n);if(!1===t||!t&&a>.2)return 0;e=Math.min(0,n-(i-n)/2)}else e=r;return e}(i,r,e),o=rk(n,a),s={majorUnit:o};return!1!==t.roundToMajorUnit&&(n<0&&$$(n,o,1/3)&&(n-=o),a>0&&$$(a,o,1/3)&&(a+=o)),s.min=j$(n,o),s.max=c0(a,o),s}(n.seriesMin,n.seriesMax,n);return this.totalOptions=function BPe(i,r){return{min:Te(r.min)?Math.min(i.min,r.min):i.min,max:Te(r.max)?Math.max(i.max,r.max):i.max,majorUnit:i.majorUnit}}(a,n),function VPe(i,r){var e,n,t=r;if(r){(function GPe(i,r){for(var t=0;t0?r.min=0:r.max=1),r.majorUnit?(i.min=j$(i.min,r.majorUnit),i.max=c0(i.max,r.majorUnit)):a&&(t=ne(i,r),i.majorUnit=rk(t.min,t.max))}i.minorUnit=(t.majorUnit||i.majorUnit)/5;var o=ne(i,t);return o.min>=o.max&&(e&&!n?o.max=o.min+o.majorUnit:!e&&n&&(o.min=o.max-o.majorUnit)),o}(a,n)}},{key:"initFields",value:function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax}},{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"startValue",value:function(){return 0}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"getDivisions",value:function(n){if(0===n)return 1;var a=this.options;return Math.floor(tt((a.max-a.min)/n,3))+1}},{key:"getTickPositions",value:function(n,a){var o=this.options,s=this.lineInfo(),l=s.axisDir,u=s.axisOrigin,c=s.lineBox,g=n*(s.lineSize/(o.max-o.min)),_=this.getDivisions(n),C=[],w=c[u],E=0;a&&(E=a/n);for(var M=0;M<_;M++)M%E!=0&&C.push(tt(w,3)),w+=g*l;return C}},{key:"getMajorTickPositions",value:function(){return this.getTickPositions(this.options.majorUnit)}},{key:"getMinorTickPositions",value:function(){return this.getTickPositions(this.options.minorUnit)}},{key:"getSlot",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=this.options,l=this.lineInfo(),u=l.axis,c=l.axisDir,d=l.lineBox,h=l.lineSize,f=l.lineStart,g=c*(h/(s.max-s.min)),_=qt(n,a||0),C=qt(a,n||0);o&&(_=Mt(_,s.min,s.max),C=Mt(C,s.min,s.max));var w=Math.min(_,C)-s.min,E=Math.max(_,C)-s.min,M=new et(d.x1,d.y1,d.x1,d.y1);return M[u+1]=d0(f+g*(c>0?w:E)),M[u+2]=d0(f+g*(c>0?E:w)),M}},{key:"getValue",value:function(n){var a=this.options,o=Number(a.max),s=Number(a.min),l=this.pointOffset(n);return l<0||l>1?null:tt(s+l*(o-s),10)}},{key:"translateRange",value:function(n){var a=this.options,o=a.vertical,s=a.reverse,l=a.max,u=a.min,c=this.lineInfo(),g=tt(n/(c.lineSize/(l-u)),10);return(o||s)&&!(o&&s)&&(g=-g),{min:u+g,max:l+g,offset:g}}},{key:"labelsCount",value:function(){return this.getDivisions(this.options.majorUnit)}},{key:"createAxisLabel",value:function(n,a,o){var s=this.options,l=tt(s.min+n*s.majorUnit,10),u=this.axisLabelText(l,a,o);return new bf(l,u,n,null,a)}},{key:"shouldRenderNote",value:function(n){var a=this.range();return a.min<=n&&n<=a.max}},{key:"pan",value:function(n){var a=this.translateRange(n);return this.limitRange(a.min,a.max,this.totalMin,this.totalMax,a.offset)}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a),l=Math.min(o,s),u=Math.max(o,s);if(this.isValidRange(l,u))return{min:l,max:u}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),l=this.scaleToDelta(n,this.options.max-this.options.min),c=(1-o)*l,d=tt(this.options.min+o*l,10),h=tt(this.options.max-c,10);return h-dKN}}]),t}(ck);function $$(i,r,t){var e=tt(Math.abs(i%r),10);return 0===e||e>r*(1-t)}ze(W$,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Xi},labels:{format:"#.####################"},zIndex:1});var Us=W$,X$=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t);var l=ni(e),u=ni(n),c=o.intl,d=a||{};d=function zPe(i,r,t){var e=t.min||i,n=t.max||r,a=t.baseUnit||(n&&e?function UPe(i){var r=dk;return i>=BN?r=wc:i>=PN?r=Sf:i>=LN?r=hk:i>=Dc&&(r=cu),r}(GN(n,e)):dk),o=du[a],s=t.weekStartDay||0,l=VN(ii(e)-1,a,s)||ni(n),u=N$(ii(n)+1,a,s),d=(t.majorUnit?t.majorUnit:void 0)||c0(rk(l.getTime(),u.getTime()),o)/o,h=zN(l,u,a),g=c0(h,d)-h,_=Math.floor(g/2),C=g-_;return t.baseUnit||delete t.baseUnit,t.baseUnit=t.baseUnit||a,t.min=t.min||Ya(l,-_,a,s),t.max=t.max||Ya(u,C,a,s),t.minorUnit=t.minorUnit||d/5,t.majorUnit=d,t}(l,u,d=ne(d||{},{min:ya(c,d.min),max:ya(c,d.max),axisCrossingValue:L$(c,d.axisCrossingValues||d.axisCrossingValue),weekStartDay:P$(d,c)})),(s=r.call(this,d,o)).intlService=c,s.seriesMin=l,s.seriesMax=u;var h=d.weekStartDay||0;return s.totalMin=ii(VN(ii(l)-1,d.baseUnit,h)),s.totalMax=ii(N$(ii(u)+1,d.baseUnit,h)),s}return v(t,[{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"getDivisions",value:function(n){var a=this.options;return Math.floor(zN(a.min,a.max,a.baseUnit)/n+1)}},{key:"getTickPositions",value:function(n){for(var a=this.options,o=this.lineInfo(),s=o.axisDir,l=o.lineSize,u=o.lineStart,c=this.getDivisions(n),h=l/hu(a.max,a.min),f=a.weekStartDay||0,g=[u],_=1;_0&&(c=Ya(c,l,s.baseUnit,s.weekStartDay||0)),a.format=a.format||a.dateFormats[s.baseUnit];var h=this.axisLabelText(c,a,o);return new bf(c,h,n,null,a)}},{key:"translateRange",value:function(n){var a=this.options,o=this.lineBox(),s=a.vertical,l=a.reverse,u=s?o.height():o.width(),c=this.range(),d=u/hu(c.max,c.min),h=tt(n/d,10);return(s||l)&&(!s||!l)&&(h=-h),{min:zr(a.min,h),max:zr(a.max,h),offset:h}}},{key:"shouldRenderNote",value:function(n){var a=this.range();return wf(n,a.min)>=0&&wf(n,a.max)<=0}},{key:"pan",value:function(n){var a=this.translateRange(n,!0),o=this.limitRange(ii(a.min),ii(a.max),this.totalMin,this.totalMax,a.offset);if(o)return{min:ni(o.min),max:ni(o.max)}}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a),l=Math.min(o,s),u=Math.max(o,s);return{min:ni(l),max:ni(u)}}},{key:"scaleRange",value:function(n,a){var o=Math.abs(this.pointOffset(a)),l=this.scaleToDelta(n,this.options.max-this.options.min),u=o*l,c=(1-o)*l,d=ni(ii(this.options.min)+u),h=ni(ii(this.options.max)-c);return h-d<1e3&&(h=ni(ii(d)+1e3)),{min:d,max:h}}},{key:"zoomRange",value:function(n,a){var o=this.scaleRange(n,a);return{min:ni(Mt(ii(o.min),this.totalMin,this.totalMax)),max:ni(Mt(ii(o.max),this.totalMin,this.totalMax))}}}]),t}(ck);ze(X$,{type:xd,majorGridLines:{visible:!0,width:1,color:Xi},labels:{dateFormats:U$}});var Z$=X$,J$=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t);var l=ne({majorUnit:10,min:e,max:n},a),u=l.majorUnit,c=function jPe(i,r){var t=tt(Cl(i,r),10)%1;return i<=0?r:0!==t&&(t<.3||t>.9)?Math.pow(r,Cl(i,r)+.2):Math.pow(r,Math.ceil(Cl(i,r)))}(n,u),d=function KPe(i,r,t){var e=t.majorUnit,n=i;return i<=0?n=r<=1?Math.pow(e,-2):1:t.narrowRange||(n=Math.pow(e,Math.floor(Cl(i,e)))),n}(e,n,l),h=function HPe(i,r,t,e){var n=t.min,a=t.max;return Te(t.axisCrossingValue)&&t.axisCrossingValue<=0&&jN(),Te(e.max)?e.max<=0&&jN():a=r,Te(e.min)?e.min<=0&&jN():n=i,{min:n,max:a}}(d,c,l,a);return l.max=h.max,l.min=h.min,l.minorUnit=a.minorUnit||tt(u-1,10),(s=r.call(this,l,o)).totalMin=Te(a.min)?Math.min(d,a.min):d,s.totalMax=Te(a.max)?Math.max(c,a.max):c,s.logMin=tt(Cl(h.min,u),10),s.logMax=tt(Cl(h.max,u),10),s.seriesMin=e,s.seriesMax=n,s.createLabels(),s}return v(t,[{key:"clone",value:function(){return new t(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)}},{key:"startValue",value:function(){return this.options.min}},{key:"getSlot",value:function(n,a,o){var s=this.options,l=this.logMin,u=this.logMax,c=s.majorUnit,d=s.min,h=s.max,f=this.lineInfo(),g=f.axis,_=f.axisDir,C=f.lineBox,E=f.lineStart,M=_*(f.lineSize/(u-l)),R=qt(n,a||1),N=qt(a,n||1);if(R<=0||N<=0)return null;o&&(R=Mt(R,d,h),N=Mt(N,d,h)),R=Cl(R,c),N=Cl(N,c);var V=Math.min(R,N)-l,U=Math.max(R,N)-l,ee=new et(C.x1,C.y1,C.x1,C.y1);return ee[g+1]=d0(E+M*(_>0?V:U)),ee[g+2]=d0(E+M*(_>0?U:V)),ee}},{key:"getValue",value:function(n){var o=this.logMin,s=this.logMax,l=this.options.majorUnit,u=this.lineInfo(),f=u.lineSize,_=u.axisDir*(n[u.axis]-u.lineStart);return _<0||_>f?null:tt(Math.pow(l,o+_*((s-o)/f)),10)}},{key:"range",value:function(){var n=this.options;return{min:n.min,max:n.max}}},{key:"translateRange",value:function(n){var a=this.options,o=this.logMin,s=this.logMax,l=a.reverse,u=a.vertical,c=a.majorUnit,d=this.lineBox(),h=u?d.height():d.width(),g=tt(n/(h/(s-o)),10);return(u||l)&&!(u&&l)&&(g=-g),{min:Math.pow(c,o+g),max:Math.pow(c,s+g),offset:g}}},{key:"labelsCount",value:function(){var n=Math.floor(this.logMax);return Math.floor(n-this.logMin)+1}},{key:"getMajorTickPositions",value:function(){var n=[];return this.traverseMajorTicksPositions(function(a){n.push(a)},{step:1,skip:0}),n}},{key:"createTicks",value:function(n){var a=this.options,o=a.majorTicks,s=a.minorTicks,l=a.vertical,u=a.labels.mirror,c=this.lineBox(),h={vertical:l};function f(g,_){h.tickX=u?c.x2:c.x2-_.size,h.tickY=u?c.y1-_.size:c.y1,h.position=g,n.append(R$(h,_))}return o.visible&&this.traverseMajorTicksPositions(f,o),s.visible&&this.traverseMinorTicksPositions(f,s),[]}},{key:"createGridLines",value:function(n){var a=this.options,o=a.minorGridLines,s=a.majorGridLines,l=a.vertical,u=n.lineBox(),c={lineStart:u[l?"x1":"y1"],lineEnd:u[l?"x2":"y2"],vertical:l},d=[],h=this.gridLinesVisual();function f(g,_){hn(g,d)||(c.position=g,h.append(O$(c,_)),d.push(g))}return s.visible&&this.traverseMajorTicksPositions(f,s),o.visible&&this.traverseMinorTicksPositions(f,o),h.children}},{key:"traverseMajorTicksPositions",value:function(n,a){for(var o=this.lineInfo(),s=o.lineStart,l=o.step,u=this.logMin,c=this.logMax,d=Math.ceil(u)+a.skip;d<=c;d+=a.step)n(tt(s+l*(d-u),10),a)}},{key:"traverseMinorTicksPositions",value:function(n,a){for(var o=this.options,s=o.min,l=o.max,u=o.minorUnit,c=o.majorUnit,d=this.lineInfo(),h=d.lineStart,f=d.step,g=this.logMin,_=this.logMax,w=Math.floor(g);w<_;w++)for(var E=this._minorIntervalOptions(w),M=a.skip;Ml)break;R>=s&&n(tt(h+f*(Cl(R,c)-g),10),a)}}},{key:"createAxisLabel",value:function(n,a,o){var s=Math.ceil(this.logMin+n),l=Math.pow(this.options.majorUnit,s),u=this.axisLabelText(l,a,o);return new bf(l,u,n,null,a)}},{key:"shouldRenderNote",value:function(n){var a=this.range();return a.min<=n&&n<=a.max}},{key:"pan",value:function(n){var a=this.translateRange(n);return this.limitRange(a.min,a.max,this.totalMin,this.totalMax,a.offset)}},{key:"pointsRange",value:function(n,a){var o=this.getValue(n),s=this.getValue(a);return{min:Math.min(o,s),max:Math.max(o,s)}}},{key:"scaleRange",value:function(n,a){var o=this.options.majorUnit,s=Cl(this.options.min,o),l=Cl(this.options.max,o),u=Math.abs(this.pointOffset(a)),d=this.scaleToDelta(n,l-s),h=Math.pow(o,s+u*d),f=Math.pow(o,l-(1-u)*d);return f-h<1e-6&&(f=h+1e-6),{min:h,max:f}}},{key:"zoomRange",value:function(n,a){var o=this.scaleRange(n,a),s=this.totalMin,l=this.totalMax;return{min:Mt(o.min,s,l),max:Mt(o.max,s,l)}}},{key:"_minorIntervalOptions",value:function(n){var a=this.options,o=a.minorUnit,s=a.majorUnit,l=Math.pow(s,n);return{value:l,minorStep:(Math.pow(s,n+1)-l)/o}}},{key:"lineInfo",value:function(){var n=$(q(t.prototype),"lineInfo",this).call(this);return n.step=n.axisDir*(n.lineSize/(this.logMax-this.logMin)),n}}]),t}(ck);function jN(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function Cl(i,r){return Math.log(i)/Math.log(r)}ze(J$,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:Xi},zIndex:1,_deferLabels:!0});var h0=J$,WPe={createGridLines:function(r){var o,s,t=this.options,e=Math.abs(this.box.center().y-r.lineBox().y1),n=[],a=!1;return t.majorGridLines.visible&&(o=this.majorGridLineAngles(r),a=!0,n=this.renderMajorGridLines(o,e,t.majorGridLines)),t.minorGridLines.visible&&(s=this.minorGridLineAngles(r,a),_f(n,this.renderMinorGridLines(s,e,t.minorGridLines,r,a))),n},renderMajorGridLines:function(r,t,e){return this.renderGridLines(r,t,e)},renderMinorGridLines:function(r,t,e,n,a){var o=this.radiusCallback&&this.radiusCallback(t,n,a);return this.renderGridLines(r,t,e,o)},renderGridLines:function(r,t,e,n){for(var a={stroke:{width:e.width,color:e.color,dashType:e.dashType}},o=this.box.center(),s=new bo([o.x,o.y],t),l=this.gridLinesVisual(),u=0;u3&&void 0!==arguments[3]&&arguments[3],l=this.options,u=l.categories.length,c=u/n||1,d=360/c,h=a||0,f=o||1,g=[],_=0,C=h;C3&&void 0!==arguments[3]&&arguments[3],l=this.options.min,u=this.getDivisions(n),c=[],d=a||0,h=o||1,f=d;f1&&void 0!==arguments[1]?arguments[1]:n,o=this.options,s=360-o.startAngle,l=this.getSlot(n,a),u=Math.min(n,a),c=Math.max(n,a);return o.reverse?(d=u,h=c):(d=360-c,h=360-u),new Sc([l.center.x,l.center.y],{startAngle:d=(d+s)%360,endAngle:h=(h+s)%360,radiusX:l.radius,radiusY:l.radius})}},{key:"getValue",value:function(n){var a=this.options,o=this.box.center(),u=Math.round(Rd(Math.atan2(n.y-o.y,n.x-o.x))),c=a.startAngle;return a.reverse||(u*=-1,c*=-1),(u+c+360)%360}},{key:"valueRange",value:function(){return{min:0,max:2*Math.PI}}}]),t}(ck);ze(qN,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:ti(10)},majorGridLines:{color:Xi,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),ne(qN.prototype,eq,{createPlotBands:$N.prototype.createPlotBands,majorAngles:$N.prototype.majorAngles,range:Us.prototype.range,labelsCount:Us.prototype.labelsCount,createAxisLabel:Us.prototype.createAxisLabel});var $Pe=qN,qPe={options:{majorGridLines:{visible:!0}},createPlotBands:function(){for(var r=this.options,t=r.majorGridLines.type,e=r.plotBands,n=void 0===e?[]:e,a=this.plotArea.polarAxis,o=a.majorAngles(),s=a.box.center(),l=this._plotbandGroup=new sn({zIndex:-1}),u=0;u0){var f=new bo([r.x,r.y],h);if(n.type===Ad)c.append(new kl(f,a));else{for(var g=new dt(a),_=0;_1){var c=(Rd(Math.atan2(r.y-a.y,r.x-a.x))+540)%360;n.sort(function(_,C){return f0(_,c)-f0(C,c)});var d=f0(n[0],n[1])/2,h=f0(c,n[0]),f=90-d;s=o*(Math.sin(br(180-h-f))/Math.sin(br(f)))}return this.axisType().prototype.getValue.call(this,new Ut(t.x1,t.y2-s))}};function f0(i,r){return 180-Math.abs(Math.abs(i-r)-180)}var tq=qPe,nq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"radarMajorGridLinePositions",value:function(){return this.getTickPositions(this.options.majorUnit)}},{key:"radarMinorGridLinePositions",value:function(){var n=this.options,a=0;return n.majorGridLines.visible&&(a=n.majorUnit),this.getTickPositions(n.minorUnit,a)}},{key:"axisType",value:function(){return Us}}]),t}(Us);ne(nq.prototype,tq);var XPe=nq,iq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"radarMajorGridLinePositions",value:function(){var n=[];return this.traverseMajorTicksPositions(function(a){n.push(a)},this.options.majorGridLines),n}},{key:"radarMinorGridLinePositions",value:function(){var n=[];return this.traverseMinorTicksPositions(function(a){n.push(a)},this.options.minorGridLines),n}},{key:"axisType",value:function(){return h0}}]),t}(h0);ne(iq.prototype,tq);var ZPe=iq,QPe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).closed=e,n}return v(t,[{key:"process",value:function(n){var a=n.slice(0),o=[],s=this.closed,l=a.length;if(l>2&&(this.removeDuplicates(0,a),l=a.length),l<2||2===l&&a[0].equals(a[1]))return o;var f,g,u=a[0],c=a[1],d=a[2];for(o.push(new yl(u));u.equals(a[l-1]);)s=!0,a.pop(),l--;if(2===l){var h=this.tangent(u,c,yt,Ct);return Yi(o).controlOut(this.firstControlPoint(h,u,c,yt,Ct)),o.push(new yl(c,this.secondControlPoint(h,u,c,yt,Ct))),o}if(s){var _=this.controlPoints(u=a[l-1],c=a[0],d=a[1]);f=_[1],g=_[0]}else{var C=this.tangent(u,c,yt,Ct);f=this.firstControlPoint(C,u,c,yt,Ct)}for(var w=f,E=0;E<=l-3;E++)if(this.removeDuplicates(E,a),E+3<=(l=a.length)){var M=this.controlPoints(u=a[E],c=a[E+1],d=a[E+2]);Yi(o).controlOut(w),w=M[1],o.push(new yl(c,M[0]))}if(s){var N=this.controlPoints(u=a[l-2],c=a[l-1],d=a[0]);Yi(o).controlOut(w),o.push(new yl(c,N[0])),Yi(o).controlOut(N[1]),o.push(new yl(d,g))}else{var V=this.tangent(c,d,yt,Ct);Yi(o).controlOut(w),o.push(new yl(d,this.secondControlPoint(V,c,d,yt,Ct)))}return o}},{key:"removeDuplicates",value:function(n,a){for(;a[n+1]&&(a[n].equals(a[n+1])||a[n+1].equals(a[n+2]));)a.splice(n+1,1)}},{key:"invertAxis",value:function(n,a,o){var s=!1;if(n.x===a.x)s=!0;else if(a.x===o.x)(a.y=u||(s=!0)}return s}},{key:"isLine",value:function(n,a,o){var s=this.lineFunction(n,a),l=this.calculateFunction(s,o.x);return n.x===a.x&&a.x===o.x||tt(l,1)===tt(o.y,1)}},{key:"lineFunction",value:function(n,a){var o=(a.y-n.y)/(a.x-n.x);return[n.y-o*n.x,o]}},{key:"controlPoints",value:function(n,a,o){var d,s=yt,l=Ct,u=!1,c=!1;if(this.isLine(n,a,o))d=this.tangent(n,a,yt,Ct);else{var h={x:this.isMonotonicByField(n,a,o,yt),y:this.isMonotonicByField(n,a,o,Ct)};h.x&&h.y?(d=this.tangent(n,o,yt,Ct),u=!0):(this.invertAxis(n,a,o)&&(s=Ct,l=yt),h[s]?d=0:(d=.01*(o[l]a[s]&&a[s]>n[s]||o[s]2&&void 0!==arguments[2])||arguments[2];return this._axis.slot(n,a,o)}},{key:"range",value:function(){return this._axis.range()}},{key:"valueRange",value:function(){return this._axis.valueRange()}}]),t}(mt),eBe=JPe;function oq(i,r){for(var t=0;t0&&(e=YN.sum(r)/t),e},first:function(r){for(var t=r.length,e=0;e1&&void 0!==arguments[1]?arguments[1]:[qo],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=0;s2&&void 0!==arguments[2]?arguments[2]:a,s={};if(a)for(var l=a.length,u=0;u=0){this.valueGetter=this.createValueGetter(a,o);var f=this.getStandardError(s,this.getAverage(s));this.globalRange=function(g){return{low:g-f,high:g+f}}}}},{key:"createValueGetter",value:function(n,a){var c,o=n.data,s=Qi.current,l=s.valueFields(n),u=Te(o[0])?o[0]:{};return Jr(u)?c=yc("["+(a?l.indexOf(a):0)+"]"):un(u)?c=yc():typeof u===aN&&(c=yc(s.sourceFields(n,l)[l.indexOf(a)])),c}},{key:"getErrorRange",value:function(n,a){var o,s,l;if(!Te(a))return null;if(this.globalRange)return this.globalRange(n);if(Jr(a))o=n-a[0],s=n+a[1];else if(un(l=parseFloat(a)))o=n-l,s=n+l;else{if(!(l=sBe.exec(a)))throw new Error("Invalid ErrorBar value: "+a);var u=n*(parseFloat(l[1])/100);o=n-Math.abs(u),s=n+Math.abs(u)}return{low:o,high:s}}},{key:"getStandardError",value:function(n,a){return this.getStandardDeviation(n,a,!0)/Math.sqrt(a.count)}},{key:"getStandardDeviation",value:function(n,a,o){for(var s=n.length,l=o?a.count-1:a.count,u=0,c=0;c2&&void 0!==arguments[2]?arguments[2]:{},e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=t.defaults=t.defaults||{},a=t.depth=t.depth||0,o=!1;if(t.excluded=t.excluded||[],a>5)return null;for(var s in i)if(!hn(s,t.excluded)&&i.hasOwnProperty(s)){var l=i[s];Ri(l)?(o=!0,e||(i[s]=qt(l(r),n[s]))):gl(l)&&(e||(t.defaults=n[s]),t.depth++,o=Mc(l,r,t,e)||o,t.depth--)}return o}function dF(i){for(var r=i.length,t=0,e=0;e0)return n.value/l}return n.value}},{key:"plotRange",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.categoryPoints[n.categoryIx];if(this.options.isStacked){for(var s=this.plotValue(n),l=s>=0,u=a,c=!1,d=0;d=0&&l||_<0&&!l)&&(u+=_,s+=_,c=!0,this.options.isStacked100&&(s=Math.min(s,1)))}}return c&&(u-=a),[u,s]}var C=n.series,w=this.seriesValueAxis(C),E=this.categoryAxisCrossingValue(w);return[E,p9(n.value)?n.value:E]}},{key:"stackLimits",value:function(n,a){for(var o=Zi,s=Cr,l=0;l0&&(this.errorTotals.positive[a]=Math.max(this.errorTotals.positive[a]||0,l)),{low:s,high:l}}},{key:"addValue",value:function(n,a){var o=a.categoryIx,s=a.series,l=a.seriesIx,u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]);var c=this.seriesPoints[l];c||(this.seriesPoints[l]=c=[]);var d=this.createPoint(n,a);d&&(Object.assign(d,a),d.owner=this,d.noteText=n.fields.noteText,Te(d.dataItem)||(d.dataItem=s.data[o]),this.addErrorBar(d,n,o)),this.points.push(d),c.push(d),u.push(d),this.updateRange(n.valueFields,a)}},{key:"evalPointOptions",value:function(n,a,o,s,l,u){var c={defaults:l._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},d=this._evalSeries[u];Te(d)||(this._evalSeries[u]=d=Mc(n,{},c,!0));var h=n;return d&&Mc(h=ne({},h),{value:a,category:o,index:s,series:l,dataItem:l.data[s]},c),h}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=n.value,l=this.valueAxisRanges[o];isFinite(s)&&null!==s&&((l=this.valueAxisRanges[o]=l||{min:Zi,max:Cr}).min=Math.min(l.min,s),l.max=Math.max(l.max,s))}},{key:"seriesValueAxis",value:function(n){var a=this.plotArea,o=n.axis,s=o?a.namedValueAxes[o]:a.valueAxis;if(!s)throw new Error("Unable to locate value axis with name "+o);return s}},{key:"reflow",value:function(n){var a=this,o=this.categorySlots=[],s=this.points,l=this.categoryAxis,u=0;this.traverseDataPoints(function(c,d){var h=d.categoryIx,g=a.seriesValueAxis(d.series),_=s[u++],C=o[h];if(C||(o[h]=C=a.categorySlot(l,h,g)),_){var w=a.plotRange(_,g.startValue()),E=a.valueSlot(g,w);if(E){var M=a.pointSlot(C,E);_.aboveAxis=a.aboveAxis(_,g),_.stackValue=w[1],a.options.isStacked100&&(_.percentage=a.plotValue(_)),a.reflowPoint(_,M)}else _.visible=!1}}),this.reflowCategories(o),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=n}},{key:"valueSlot",value:function(n,a){return n.getSlot(a[0],a[1],!this.options.clip)}},{key:"limitPoints",value:function(){for(var n=this.categoryPoints,a=n[0].concat(Yi(n)),o=0;o=o}},{key:"categoryAxisCrossingValue",value:function(n){var a=this.categoryAxis,o=n.options;return[].concat(o.axisCrossingValues||o.axisCrossingValue)[a.axisIndex||0]||0}},{key:"reflowPoint",value:function(n,a){n.reflow(a)}},{key:"reflowCategories",value:function(){}},{key:"pointSlot",value:function(n,a){var s=this.options.invertAxes,l=s?a:n,u=s?n:a;return new et(l.x1,u.y1,l.x2,u.y2)}},{key:"categorySlot",value:function(n,a){return n.getSlot(a)}},{key:"traverseDataPoints",value:function(n){for(var a=this.options.series,o=dF(a),s=a.length,l=0;l1&&(a=this.createSegment(c,s,o,a),this._addSegment(a)),c=[])}c.length>1&&(a=this.createSegment(c,s,o,a),this._addSegment(a))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(r){this._segments.push(r),r.parent=this},sortPoints:function(r){return r},seriesMissingValues:function(r){var t=r.missingValues;return!t&&this.options.isStacked?Ac:t||mg},getNearestPoint:function(r,t,e){for(var s,n=new Ut(r,t),a=this.seriesPoints[e],o=Zi,l=0;l0&&!1!==o.visible&&this.createStroke({stroke:ne({color:s,opacity:n.opacity,lineCap:"butt"},o)})}},{key:"strokeSegments",value:function(){var n=this._strokeSegments;return n||(n=this._strokeSegments=this.createStrokeSegments()),n}},{key:"createStrokeSegments",value:function(){return this.segmentsFromPoints(this.points())}},{key:"stackSegments",value:function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)}},{key:"createStackSegments",value:function(n){return this.segmentsFromPoints(this.toGeometryPoints(n)).reverse()}},{key:"segmentsFromPoints",value:function(n){return n.map(function(a){return new yl(a)})}},{key:"createStroke",value:function(n){var a=new dt(n);a.segments.push.apply(a.segments,this.strokeSegments()),this.visual.append(a)}},{key:"hasStackSegment",value:function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length}},{key:"createFill",value:function(n){var a=this.strokeSegments(),o=a.slice(0),s=this.hasStackSegment();if(s){var l=this.stackSegments();_f(o,l)}var u=new dt(n);u.segments.push.apply(u.segments,o),!s&&a.length>1&&this.fillToAxes(u),this.visual.append(u)}},{key:"fillToAxes",value:function(n){var a=this.parent,o=a.options.invertAxes,s=a.seriesValueAxis(this.series),l=a.categoryAxisCrossingValue(s),u=s.getSlot(l,l,!0),c=this.strokeSegments(),d=c[0].anchor(),h=Yi(c).anchor(),f=o?u.x1:u.y1;o?n.lineTo(f,h.y).lineTo(f,d.y):n.lineTo(h.x,f).lineTo(d.x,f)}}]),t}(Mg),Rg=PBe,wq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createStrokeSegments",value:function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))}},{key:"createStackSegments",value:function(n){return this.segmentsFromPoints(this.calculateStepPoints(n)).reverse()}}]),t}(Rg);ne(wq.prototype,fF);var BBe=wq,GBe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createStrokeSegments",value:function(){var n=new v0(this.options.closed),a=this.points();return n.process(a)}},{key:"createStackSegments",value:function(){for(var n=this.strokeSegments(),a=[],o=n.length-1;o>=0;o--){var s=n[o];a.push(new yl(s.anchor(),s.controlOut(),s.controlIn()))}return a}}]),t}(Rg),_F=GBe,VBe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createSegment",value:function(n,a,o,s){var c,d,u=(a.line||{}).style;return this.options.isStacked&&o>0&&s&&("gap"!==this.seriesMissingValues(a)?(d=s.linePoints,c=s):d=this._gapStackPoints(n,o,u)),new(u===pk?BBe:u===_g?_F:Rg)(n,a,o,c,d)}},{key:"reflow",value:function(n){$(q(t.prototype),"reflow",this).call(this,n);var a=this._stackPoints;if(a)for(var o=0;o0&&!C);if(C)o!==pk&&f>l&&!s[_][g-1]&&h.push(this._previousSegmentPoint(f,g,g-1,_)),h.push(C),o!==pk&&f+10&&!c;)c=l[--u][o];return c?c=l[u][a]:(c=this._createGapStackPoint(n),this._stackPoints.push(c)),c}},{key:"_createGapStackPoint",value:function(n){var a=this.pointOptions({},0),o=new Tf(0,a);return o.categoryIx=n,o.series={},o}},{key:"seriesMissingValues",value:function(n){return n.missingValues||Ac}},{key:"supportsPointInactiveOpacity",value:function(){return!1}}]),t}(mF),UBe=VBe,zBe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this)).axisRanges={},e}return v(t,[{key:"update",value:function(n){var a=this.axisRanges;for(var o in n){var s=n[o],l=a[o];a[o]=l=l||{min:Zi,max:Cr},l.min=Math.min(l.min,s.min),l.max=Math.max(l.max,s.max)}}},{key:"reset",value:function(n){this.axisRanges[n]=void 0}},{key:"query",value:function(n){return this.axisRanges[n]}}]),t}(mt),x0=zBe,Dq=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).textBox=new Yo(e,o.options,a),o.append(o.textBox),o}return v(t,[{key:"createVisual",value:function(){this.textBox.options.noclip=this.options.noclip}},{key:"reflow",value:function(n){var a=this.options,o=a.vertical,s=a.aboveAxis,l=this.children[0],u=l.options,c=l.box,d=l.options.padding,h=n;u.align=o?Qt:Sn,u.vAlign=o?Fn:Qt,a.position===D0?o?(u.vAlign=Fn,!s&&c.height()0&&a.height()>0&&this.createRect(this.visual)}},{key:"createRect",value:function(n){var a=this.options,o=a.border,s=Te(o.opacity)?o.opacity:a.opacity,l=this.box.toRect();l.size.width=Math.round(l.size.width);var u=this.rectVisual=dt.fromRect(l,{fill:{color:this.color,opacity:a.opacity},stroke:{color:this.getBorderColor(),width:o.width,opacity:s,dashType:o.dashType}}),c=this.box.width(),d=this.box.height();if((a.vertical?c:d)>6&&(Ns(u),(c<1||d<1)&&(u.options.stroke.lineJoin="round")),n.append(u),yF(a)){var f=this.createGradientOverlay(u,{baseColor:this.color},ne({end:a.vertical?void 0:[0,1]},a.overlay));n.append(f)}}},{key:"createHighlight",value:function(n){return Ns(dt.fromRect(this.box.toRect(),n))}},{key:"highlightVisual",value:function(){return this.rectVisual}},{key:"highlightVisualArgs",value:function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}}},{key:"getBorderColor",value:function(){var n=this.color,a=this.options.border,o=a._brightness||.8,s=a.color;return Te(s)||(s=new Bs(n).brightness(o).toHex()),s}},{key:"tooltipAnchor",value:function(){var c,d,n=this.options,a=this.box,o=this.aboveAxis,s=this.owner.pane.clipBox()||a,l=Sn,u=Fn;if(n.vertical)c=Math.min(a.x2,s.x2)+5,o?d=Math.max(a.y1,s.y1):(d=Math.min(a.y2,s.y2),u=Zn);else{var h=Math.max(a.x1,s.x1),f=Math.min(a.x2,s.x2);n.isStacked?(u=Zn,o?(l=Gn,c=f):c=h,d=Math.max(a.y1,s.y1)-5):(o?c=f+5:(c=h-5,l=Gn),d=Math.max(a.y1,s.y1))}return{point:new Ut(c,d),align:{horizontal:l,vertical:u}}}},{key:"overlapsBox",value:function(n){return this.box.overlaps(n)}},{key:"pointData",value:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}}}]),t}(Kn);ne(M0.prototype,wl),ne(M0.prototype,xg),M0.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var kF=M0;function Tq(i,r){i.forEach(r)}function Aq(i,r){for(var t=i.length,e=t-1;e>=0;e--)r(i[e],e-t-1)}var xq=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).forEach=e.rtl?Aq:Tq,n}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=a.vertical,s=a.gap,l=a.spacing,u=this.children,c=u.length,d=o?Ct:yt,h=c+s+l*(c-1),f=(o?n.height():n.width())/h,g=n[d+1]+f*(s/2);this.forEach(u,function(_,C){var w=(_.box||n).clone();w[d+1]=g,w[d+2]=g+f,_.reflow(w),C0&&o.options.set("stroke",{color:this.getBorderColor(),width:a.border.width,dashType:a.border.dashType,opacity:qt(a.border.opacity,a.opacity)}),Ns(o),n.append(o),yF(a)&&n.append(this.createGradientOverlay(o,{baseColor:this.color},ne({end:a.vertical?void 0:[0,1]},a.overlay)))}},{key:"createLines",value:function(n,a){this.drawLines(n,a,this.lines,a.line)}},{key:"drawLines",value:function(n,a,o,s){if(o)for(var l={stroke:{color:s.color||this.color,opacity:qt(s.opacity,a.opacity),width:s.width,dashType:s.dashType,lineCap:"butt"}},u=0;u{4:d}Open:{0:C}High:{1:C}Low:{2:C}Close:{3:C}"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),ne(O0.prototype,wl),ne(O0.prototype,xg);var CF=O0;function Oq(i){return ZN(i)===i.length}var Iq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflowCategories",value:function(n){for(var a=this.children,o=a.length,s=0;sd.close&&(f=n.fields.downColor||l.downColor||l.color),Ri(l.color)&&(f=h.color),h.vertical=!this.options.invertAxes;var g=new c(d,h);return g.color=f,g}},{key:"splitValue",value:function(n){return[n.low,n.open,n.close,n.high]}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=this.splitValue(n),l=this.valueAxisRanges[o];l=this.valueAxisRanges[o]=l||{min:Zi,max:Cr},l=this.valueAxisRanges[o]={min:Math.min.apply(Math,s.concat([l.min])),max:Math.max.apply(Math,s.concat([l.max]))}}},{key:"formatPointValue",value:function(n,a){var o=n.value;return this.chartService.format.auto(a,o.open,o.high,o.low,o.close,n.category)}},{key:"animationPoints",value:function(){return this.points}}]),t}(Rc);ne(Iq.prototype,A0);var bF=Iq,SF=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).createNote(),a}return v(t,[{key:"reflow",value:function(n){var u,c,o=this.value,l=this.owner.seriesValueAxis(this.options);this.boxSlot=c=l.getSlot(o.q1,o.q3),this.realBody=c,this.reflowBoxSlot(n),this.whiskerSlot=u=l.getSlot(o.lower,o.upper),this.reflowWhiskerSlot(n);var d=l.getSlot(o.median);if(o.mean){var h=l.getSlot(o.mean);this.meanPoints=this.calcMeanPoints(n,h)}this.whiskerPoints=this.calcWhiskerPoints(c,u),this.medianPoints=this.calcMedianPoints(n,d),this.box=u.clone().wrap(c),this.reflowNote()}},{key:"reflowBoxSlot",value:function(n){this.boxSlot.x1=n.x1,this.boxSlot.x2=n.x2}},{key:"reflowWhiskerSlot",value:function(n){this.whiskerSlot.x1=n.x1,this.whiskerSlot.x2=n.x2}},{key:"calcMeanPoints",value:function(n,a){return[[[n.x1,a.y1],[n.x2,a.y1]]]}},{key:"calcWhiskerPoints",value:function(n,a){var o=a.center().x;return[[[o-5,a.y1],[o+5,a.y1],[o,a.y1],[o,n.y1]],[[o-5,a.y2],[o+5,a.y2],[o,a.y2],[o,n.y2]]]}},{key:"calcMedianPoints",value:function(n,a){return[[[n.x1,a.y1],[n.x2,a.y1]]]}},{key:"renderOutliers",value:function(n){for(var a=this.value,o=a.outliers||[],s=3*Math.abs(a.q3-a.q1),l=[],u=n.markers||{},c=0;ca.q1-s?n.outliers:n.extremes).border);Te(h.color)||(h.color=Te(this.color)?this.color:new Bs(u.background).brightness(.8).toHex());var f=new Fd({type:u.type,width:u.size,height:u.size,rotation:u.rotation,background:u.background,border:h,opacity:u.opacity});f.value=d,l.push(f)}return this.reflowOutliers(l),l}},{key:"reflowOutliers",value:function(n){for(var a=this.owner.seriesValueAxis(this.options),o=this.box.center(),s=0;s{6:d}Lower:{0:C}Q1:{1:C}Median:{2:C}Mean:{5:C}Q3:{3:C}Upper:{4:C}"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:Ln,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:pl,background:Ln,border:{width:2,opacity:1},opacity:0}}),ne(SF.prototype,wl);var Nq=SF,jBe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflowBoxSlot",value:function(n){this.boxSlot.y1=n.y1,this.boxSlot.y2=n.y2}},{key:"reflowWhiskerSlot",value:function(n){this.whiskerSlot.y1=n.y1,this.whiskerSlot.y2=n.y2}},{key:"calcMeanPoints",value:function(n,a){return[[[a.x1,n.y1],[a.x1,n.y2]]]}},{key:"calcWhiskerPoints",value:function(n,a){var o=a.center().y;return[[[a.x1,o-5],[a.x1,o+5],[a.x1,o],[n.x1,o]],[[a.x2,o-5],[a.x2,o+5],[a.x2,o],[n.x2,o]]]}},{key:"calcMedianPoints",value:function(n,a){return[[[a.x1,n.y1],[a.x1,n.y2]]]}}]),t}(Nq),WBe=jBe,$Be=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"addValue",value:function(n,a){var w,o=a.categoryIx,s=a.category,l=a.series,u=a.seriesIx,c=this.children,d=this.options,h=n.valueFields,g=Oq(this.splitValue(h)),_=l.data[o],C=this.categoryPoints[o];C||(this.categoryPoints[o]=C=[]),g&&(w=this.createPoint(n,a));var E=c[o];E||(E=new R0({vertical:d.invertAxes,gap:d.gap,spacing:d.spacing,rtl:!d.invertAxes&&(this.chartService||{}).rtl}),this.append(E)),w&&(this.updateRange(h,a),E.append(w),w.categoryIx=o,w.category=s,w.series=l,w.seriesIx=u,w.owner=this,w.dataItem=_),this.points.push(w),C.push(w)}},{key:"pointType",value:function(){return this.options.invertAxes?WBe:Nq}},{key:"splitValue",value:function(n){return[n.lower,n.q1,n.median,n.q3,n.upper]}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=this.valueAxisRanges[o],l=this.splitValue(n).concat(this.filterOutliers(n.outliers));Te(n.mean)&&(l=l.concat(n.mean)),s=this.valueAxisRanges[o]=s||{min:Zi,max:Cr},s=this.valueAxisRanges[o]={min:Math.min.apply(Math,l.concat([s.min])),max:Math.max.apply(Math,l.concat([s.max]))}}},{key:"formatPointValue",value:function(n,a){var o=n.value;return this.chartService.format.auto(a,o.lower,o.q1,o.median,o.q3,o.upper,o.mean,n.category)}},{key:"filterOutliers",value:function(n){for(var a=(n||[]).length,o=[],s=0;s0||n.size<0&&a.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(n.size)),$(q(t.prototype),"addValue",this).call(this,n,a)):(this.points.push(null),this.seriesPoints[a.seriesIx].push(null))}},{key:"reflow",value:function(n){this.updateBubblesSize(n),$(q(t.prototype),"reflow",this).call(this,n)}},{key:"pointType",value:function(){return Fq}},{key:"createPoint",value:function(n,a){var o=a.series,l=a.pointIx*(zs/o.data.length),u={delay:l,duration:zs-l,type:yg},c=a.color||o.color;n.size<0&&o.negativeValues.visible&&(c=qt(o.negativeValues.color,c));var d=ne({labels:{animation:{delay:l,duration:zs-l}}},this.pointOptions(o,a.seriesIx),{markers:{type:pl,border:o.border,opacity:o.opacity,animation:u}});d=this.evalPointOptions(d,n,a),Ri(o.color)&&(c=d.color),d.markers.background=c;var h=new Fq(n,d);return h.color=c,this.append(h),h}},{key:"updateBubblesSize",value:function(n){for(var a=this.options.series,o=Math.min(n.width(),n.height()),s=0;s0&&a.options.set("stroke",{color:n.border.color||this.color,width:n.border.width,dashType:n.border.dashType,opacity:qt(n.border.opacity,n.opacity)}),this.bodyVisual=a,Ns(a),this.visual.append(a)}},{key:"createAnimation",value:function(){this.bodyVisual&&(this.animation=Vs.create(this.bodyVisual,this.options.animation))}},{key:"createHighlight",value:function(n){return dt.fromRect(this.box.toRect(),n)}},{key:"highlightVisual",value:function(){return this.bodyVisual}},{key:"highlightVisualArgs",value:function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}}]),t}(Kn);xk.prototype.tooltipAnchor=kF.prototype.tooltipAnchor,ze(xk,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}
    Target: {1}"}}),ne(xk.prototype,wl),ne(xk.prototype,xg);var JBe=xk,DF=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),function eGe(i){for(var r=i.series,t=0;t0}},{key:"createAnimation",value:function(){var n=this.points;this._setAnimationOptions();for(var a=0;a0&&a0&&void 0!==arguments[0]?arguments[0]:this.panes,a=0;a=0;s--)for(var l=0;l0&&(s=Math.max(s,o.width()-u.contentBox.width()))}if(0!==s)for(var c=0;c0){var d=xF(u),h=Math.max(c.y1-d.y1,c.y2-d.y2);o=Math.max(o,c.x1-d.x1);for(var f=0;f0&&a.y.length>0&&(this.alignAxes(a.x,a.y),this.shrinkAxisWidth(n),this.autoRotateAxisLabels(a),this.alignAxes(a.x,a.y),this.shrinkAxisWidth(n)&&this.alignAxes(a.x,a.y),this.shrinkAxisHeight(n),this.alignAxes(a.x,a.y),this.shrinkAxisHeight(n)&&this.alignAxes(a.x,a.y),this.fitAxes(n))}},{key:"autoRotateAxisLabels",value:function(n){for(var s,a=this.panes,o=fGe(a),l=0;l0&&n.y.length>0&&(this.alignAxes(n.x,n.y),this.shrinkAxisWidth(a))}}},{key:"reflowPaneAxes",value:function(n){var a=n.axes,o=a.length;if(o>0)for(var s=0;s-1){for(var a=i.split(".");a.length>1;)n=a.shift(),Te(e[n])||(e[n]={}),e=e[n];n=a.shift()}e[n]=t}var mGe=pGe,RF=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._defaults={},e}return v(t,[{key:"register",value:function(n,a){for(var o=0;os.to,a.reflow(n)),o&&(o.options.aboveAxis=s.to>s.from,o.reflow(n)),this.note&&this.note.reflow(n)}}]),t}(kF);OF.prototype.defaults=ne({},OF.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var _Ge=OF,qq=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"pointType",value:function(){return _Ge}},{key:"pointValue",value:function(n){return n.valueFields}},{key:"formatPointValue",value:function(n,a){return null===n.value.from&&null===n.value.to?"":this.chartService.format.auto(a,n.value.from,n.value.to)}},{key:"plotRange",value:function(n){return n?[n.value.from,n.value.to]:0}},{key:"updateRange",value:function(n,a){var o=a.series.axis,s=n.from,l=n.to,u=this.valueAxisRanges[o];null!==n&&un(s)&&un(l)&&((u=this.valueAxisRanges[o]=u||{min:Zi,max:Cr}).min=Math.min(u.min,s),u.max=Math.max(u.max,s),u.min=Math.min(u.min,l),u.max=Math.max(u.max,l))}},{key:"aboveAxis",value:function(n){var a=n.value;return a.from=0}},{key:"plotRange",value:function(n){return[n.from,n.to]}},{key:"createSegments",value:function(){for(var n=this.options.series,a=this.seriesPoints,o=this.segments=[],s=0;s0){this.invertAxes=hn(n[0].type,[Sl,Pd,Dg,Sg,Eg,bg,Cg,wg]);for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:this.panes;this.createCategoryAxes(n),this.aggregateCategories(n),this.createCategoryAxesLabels(n),this.createCharts(n),this.createValueAxes(n)}},{key:"removeAxis",value:function(n){var a=n.options.name;$(q(t.prototype),"removeAxis",this).call(this,n),n instanceof Ec?delete this.namedCategoryAxes[a]:(this.valueAxisRangeTracker.reset(a),delete this.namedValueAxes[a]),n===this.categoryAxis&&delete this.categoryAxis,n===this.valueAxis&&delete this.valueAxis}},{key:"createCharts",value:function(n){for(var a=this.groupSeriesByPane(),o=0;o0)for(l=s.options.categories=s.options.categories.slice(0);u--;)l.push("");this.valueAxisRangeTracker.update(n.valueAxisRanges),$(q(t.prototype),"appendChart",this).call(this,n,a)}},{key:"seriesPaneName",value:function(n){var a=this.options,o=n.axis;return(Xo([].concat(a.valueAxis),function(h){return h.name===o})[0]||{}).pane||((a.panes||[{}])[0]||{}).name||"default"}},{key:"seriesCategoryAxis",value:function(n){var a=n.categoryAxis,o=a?this.namedCategoryAxes[a]:this.categoryAxis;if(!o)throw new Error("Unable to locate category axis with name "+a);return o}},{key:"stackableChartOptions",value:function(n,a){var o=n.stack;return{isStacked:o,isStacked100:o&&"100%"===o.type,clip:a.options.clip}}},{key:"groupSeriesByCategoryAxis",value:function(n){for(var a=[],o={},s=0;s0&&d.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,category:Og(c),value:Og(d)})}}},{key:"pointPane",value:function(n){for(var a=this.panes,o=0;or?l():e=setTimeout(l,r-o)};return n.cancel=function(){clearTimeout(e)},n}var LGe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._events={},e}return v(t,[{key:"bind",value:function(n,a,o){var s=arguments,l=this,u=rX(n),c=iX(a),d=u.length;if(void 0===a){for(var h in n)this.bind(h,n[h]);return this}for(var f=function(C){var w=u[C],E=c?a:a[w];if(E){if(o){var M=E;(E=function(){l.unbind(w,E),M.apply(l,s)}).original=M}(l._events[w]=l._events[w]||[]).push(E)}},g=0;g1&&void 0!==arguments[1]?arguments[1]:{},o=this._events[n];if(o){var s=o.length;a.sender=this,a._defaultPrevented=!1,a.preventDefault=PGe,a.isDefaultPrevented=BGe,o=o.slice();for(var l=0;l=0;s--)(o[s]===a||o[s].original===a)&&o.splice(s,1);else this._events[n]=[];return this}}]),t}(mt);function iX(i){return"function"==typeof i}function rX(i){return"string"==typeof i?[i]:i}function PGe(){this._defaultPrevented=!0}function BGe(){return!0===this._defaultPrevented}var VGe=["click","mouseenter","mouseleave","mousemove","resize"],UGe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).options=Object.assign({},n),a.element=e,a.element._kendoExportVisual=a.exportVisual.bind(Xe(a)),a._click=a._handler("click"),a._mouseenter=a._handler("mouseenter"),a._mouseleave=a._handler("mouseleave"),a._mousemove=a._handler("mousemove"),a._visual=new sn,Jy(e,a.options),a.bind(VGe,a.options),a._enableTracking(),a}return v(t,[{key:"draw",value:function(n){this._visual.children.push(n)}},{key:"clear",value:function(){this._visual.children=[]}},{key:"destroy",value:function(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()}},{key:"eventTarget",value:function(n){for(var o,a=D9(n);!o&&a&&(o=a._kendoNode,a!==this.element);)a=a.parentElement;if(o)return o.srcElement}},{key:"exportVisual",value:function(){return this._visual}},{key:"getSize",value:function(){return Jy(this.element)}},{key:"currentSize",value:function(n){if(!n)return this._size;this._size=n}},{key:"setSize",value:function(n){Jy(this.element,n),this.currentSize(n),this._resize()}},{key:"resize",value:function(n){var a=this.getSize(),o=this.currentSize();(n||(a.width>0||a.height>0)&&(!o||a.width!==o.width||a.height!==o.height))&&(this.currentSize(a),this._resize(a,n),this.trigger("resize",a))}},{key:"size",value:function(n){if(!n)return this.getSize();this.setSize(n)}},{key:"suspendTracking",value:function(){this._suspendedTracking=!0}},{key:"resumeTracking",value:function(){this._suspendedTracking=!1}},{key:"_enableTracking",value:function(){}},{key:"_resize",value:function(){}},{key:"_handler",value:function(n){var a=this;return function(o){var s=a.eventTarget(o);s&&!a._suspendedTracking&&a.trigger(n,{element:s,originalEvent:o,type:n})}}},{key:"_elementOffset",value:function(){var n=this.element,a=x9(n),o=T9(n);return{left:o.left+a.left,top:o.top+a.top}}},{key:"_surfacePoint",value:function(n){var a=this._elementOffset(),o=w9(n),s=o.x-a.left,l=o.y-a.top,u=R9(this.element).invert();return new Pe(s,l).transform(u)}}]),t}(LGe),PF=UGe,zGe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).childNodes=[],n.parent=null,e&&(n.srcElement=e,n.observe()),n}return v(t,[{key:"destroy",value:function(){this.srcElement&&this.srcElement.removeObserver(this);for(var n=this.childNodes,a=0;a0&&u.load(l);var c=this.element;c&&u.attachTo(c,a)}}},{key:"root",value:function(){for(var n=this;n.parent;)n=n.parent;return n}},{key:"attachTo",value:function(n,a){var o=document.createElement("div");lX(o,""+this.render()+"");var s=o.firstChild.firstChild;s&&(Vt(a)?n.insertBefore(s,n.childNodes[a]||null):n.appendChild(s),this.setElement(s))}},{key:"setElement",value:function(n){this.element&&(this.element._kendoNode=null),this.element=n,this.element._kendoNode=this;for(var a=this.childNodes,o=0;o")}},{key:"renderOffset",value:function(){return Mf("offset",this.srcElement.offset())}},{key:"mapStyle",value:function(){var n=this.srcElement;return[["stop-color",n.color()],["stop-opacity",n.opacity()]]}},{key:"optionsChange",value:function(n){"offset"===n.field?this.attr(n.field,n.value):("color"===n.field||"opacity"===n.field)&&this.css("stop-"+n.field,n.value)}}]),t}(Of),XGe=qGe,ZGe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).id=e.id,n.loadStops(),n}return v(t,[{key:"loadStops",value:function(){for(var n=this.srcElement.stops,a=this.element,o=0;o").concat(this.renderChildren(),"")}},{key:"mapCoordinates",value:function(){var n=this.srcElement,a=n.start(),o=n.end();return[["x1",a.x],["y1",a.y],["x2",o.x],["y2",o.y],this.mapSpace()]}}]),t}(dX),QGe=YGe,JGe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}},{key:"mapCoordinates",value:function(){var n=this.srcElement,a=n.center(),o=n.radius();return[["cx",a.x],["cy",a.y],["r",o],this.mapSpace()]}}]),t}(dX),eVe=JGe,tVe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).srcElement=e,n.id=e.id,n.load([e]),n}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}}]),t}(Of),nVe=tVe,iVe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this)).definitionMap={},e}return v(t,[{key:"attachTo",value:function(n){this.element=n}},{key:"template",value:function(){return"".concat(this.renderChildren(),"")}},{key:"definitionChange",value:function(n){var a=n.definitions,o=n.action;"add"===o?this.addDefinitions(a):"remove"===o&&this.removeDefinitions(a)}},{key:"createDefinition",value:function(n,a){var o;return"clip"===n?o=nVe:"fill"===n&&(a instanceof t0?o=QGe:a instanceof n0&&(o=eVe)),new o(a)}},{key:"addDefinitions",value:function(n){for(var a in n)this.addDefinition(a,n[a])}},{key:"addDefinition",value:function(n,a){var o=this.element,s=this.definitionMap,l=a.id,u=s[l];if(u)u.count++;else{var c=this.createDefinition(n,a);s[l]={element:c,count:1},this.append(c),o&&c.attachTo(this.element)}}},{key:"removeDefinitions",value:function(n){for(var a in n)this.removeDefinition(n[a])}},{key:"removeDefinition",value:function(n){var a=this.definitionMap,o=n.id,s=a[o];s&&(s.count--,0===s.count&&(this.remove(this.childNodes.indexOf(s.element),1),delete a[o]))}}]),t}(Of),rVe=iVe,aVe=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).options=e,n.defs=new rVe,n}return v(t,[{key:"attachTo",value:function(n){this.element=n,this.defs.attachTo(n.firstElementChild)}},{key:"clear",value:function(){P0.prototype.clear.call(this)}},{key:"template",value:function(){return this.defs.render()+this.renderChildren()}},{key:"definitionChange",value:function(n){this.defs.definitionChange(n)}}]),t}(Of),hX=aVe,fX={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},BF="solid",oVe={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"},sVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){this.attr("d",this.renderData()),this.invalidate()}},{key:"optionsChange",value:function(n){switch(n.field){case"fill":n.value?this.allAttr(this.mapFill(n.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:n.value}));break;case"stroke":n.value?this.allAttr(this.mapStroke(n.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(n.value);break;default:var a=oVe[n.field];a&&this.attr(a,n.value)}$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"content",value:function(){this.element&&(this.element.textContent=this.srcElement.content())}},{key:"renderData",value:function(){return this.printPath(this.srcElement)}},{key:"printPath",value:function(n){var a=n.segments,o=a.length;if(o>0){for(var l,u,s=[],c=1;c")}}]),t}(Of),If=sVe,lVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderData",value:function(){return this.printPath(this.srcElement.toPath())}}]),t}(If),uVe=lVe,cVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){var n=this.center();this.attr("cx",n.x),this.attr("cy",n.y),this.attr("r",this.radius()),this.invalidate()}},{key:"center",value:function(){return this.srcElement.geometry().center}},{key:"radius",value:function(){return this.srcElement.geometry().radius}},{key:"template",value:function(){return"")}}]),t}(If),dVe=cVe,hVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"template",value:function(){return"").concat(this.renderChildren(),"")}},{key:"optionsChange",value:function(n){"transform"===n.field&&this.transformChange(n.value),$(q(t.prototype),"optionsChange",this).call(this,n)}}]),t}(Of),fVe=hVe,vVe=/&/g,pVe=//g;function GF(i){return String(i).replace(vVe,"&").replace(pVe,"<").replace(_Ve,">").replace(gVe,""").replace(mVe,"'")}var yVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){this.allAttr(this.mapPosition()),this.invalidate()}},{key:"optionsChange",value:function(n){"src"===n.field&&this.allAttr(this.mapSource()),$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"mapPosition",value:function(){var n=this.srcElement.rect(),a=n.topLeft();return[["x",a.x],["y",a.y],["width",n.width()+"px"],["height",n.height()+"px"]]}},{key:"renderPosition",value:function(){return Rf(this.mapPosition())}},{key:"mapSource",value:function(n){var a=this.srcElement.src();return n&&(a=GF(a)),[["xlink:href",a]]}},{key:"renderSource",value:function(){return Rf(this.mapSource(!0))}},{key:"template",value:function(){return"")+""}}]),t}(If),kVe=yVe,CVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderData",value:function(){var n=this.srcElement.paths;if(n.length>0){for(var a=[],o=0;o")}}]),t}(If),wVe=SVe,VF=/&(?:[a-zA-Z]+|#\d+);/g;function UF(i){if(!i||"string"!=typeof i||!VF.test(i))return i;var r=UF._element;return VF.lastIndex=0,i.replace(VF,function(t){return r.innerHTML=t,r.textContent||r.innerText})}"undefined"!=typeof document&&(UF._element=document.createElement("span"));var DVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"geometryChange",value:function(){var n=this.pos();this.attr("x",n.x),this.attr("y",n.y),this.invalidate()}},{key:"optionsChange",value:function(n){"font"===n.field?(this.attr("style",aX(this.mapStyle())),this.geometryChange()):"content"===n.field&&$(q(t.prototype),"content",this).call(this,this.srcElement.content()),$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"mapStyle",value:function(n){var a=$(q(t.prototype),"mapStyle",this).call(this,n),o=this.srcElement.options.font;return n&&(o=GF(o)),a.push(["font",o],["white-space","pre"]),a}},{key:"pos",value:function(){var n=this.srcElement.position(),a=this.srcElement.measure();return n.clone().setY(n.y+a.baseline)}},{key:"renderContent",value:function(){var n=this.srcElement.content();return pN(n=GF(n=UF(n)))}},{key:"renderTextAnchor",value:function(){var n;return(this.options||{}).rtl&&!(ml.browser.msie||ml.browser.edge)&&(n="end"),Mf("text-anchor",n)}},{key:"template",value:function(){return"").concat(this.renderContent(),"")}}]),t}(If),EVe=DVe;Oc.Arc=uVe,Oc.Circle=dVe,Oc.Group=fVe,Oc.Image=kVe,Oc.MultiPath=bVe,Oc.Path=If,Oc.Rect=wVe,Oc.Text=EVe;var xVe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n))._root=new hX(Object.assign({rtl:"rtl"===zD(e,"direction").direction},a.options)),lX(a.element,a._template()),a._rootElement=a.element.firstElementChild,function AVe(i){var r;try{r=i.getScreenCTM?i.getScreenCTM():null}catch(a){}if(r){var t=-r.e%1,e=-r.f%1,n=i.style;(0!==t||0!==e)&&(n.left=t+"px",n.top=e+"px")}}(a._rootElement),a._root.attachTo(a._rootElement),hN(a.element,{click:a._click,mouseover:a._mouseenter,mouseout:a._mouseleave,mousemove:a._mousemove}),a.resize(),a}return v(t,[{key:"type",get:function(){return"svg"}},{key:"destroy",value:function(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,fN(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),$(q(t.prototype),"destroy",this).call(this)}},{key:"translate",value:function(n){var a="".concat(Math.round(n.x)," ").concat(Math.round(n.y)," ").concat(this._size.width," ").concat(this._size.height);this._offset=n,this._rootElement.setAttribute("viewBox",a)}},{key:"draw",value:function(n){$(q(t.prototype),"draw",this).call(this,n),this._root.load([n])}},{key:"clear",value:function(){$(q(t.prototype),"clear",this).call(this),this._root.clear()}},{key:"svg",value:function(){return""+this._template()}},{key:"exportVisual",value:function(){var n=this._visual,a=this._offset;if(a){var o=new sn;o.children.push(n),o.transform(Hn().translate(-a.x,-a.y)),n=o}return n}},{key:"_resize",value:function(){this._offset&&this.translate(this._offset)}},{key:"_template",value:function(){return"").concat(this._root.render(),"")}}]),t}(PF),MVe=xVe,Ic={};function V0(i,r){var t=r.segments;if(0!==t.length){var e=t[0],n=e.anchor();i.moveTo(n.x,n.y);for(var a=1;a0&&c.load(u,a,o),Vt(a)?this.insertAt(c,a):this.append(c)}}},{key:"load",value:function(n,a,o){this.loadElements(n,a,o),this.invalidate()}},{key:"setOpacity",value:function(n){if(this.srcElement){var a=this.srcElement.opacity();Vt(a)&&this.globalAlpha(n,a)}}},{key:"globalAlpha",value:function(n,a){var o=a;o&&n.globalAlpha&&(o*=n.globalAlpha),n.globalAlpha=o}},{key:"visible",value:function(){var n=this.srcElement;return!n||n&&!1!==n.options.visible}}]),t}(P0),gX=OVe,IVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderTo",value:function(n){if(this.visible()){n.save(),this.setTransform(n),this.setClip(n),this.setOpacity(n);for(var a=this.childNodes,o=0;o0;)(a=n.pop()).addObserver(this),"Group"===a.nodeType?Yy(n,a.children):this._insertShape(a)}},{key:"_insertShape",value:function(n){var a=n.bbox();if(a){var o=this.getSectors(a),s=o[0][0],l=o[1][0];if(this.inRoot(o))this.root.insert(n,a);else{var u=this.rootMap;u[s]||(u[s]={}),u[s][l]||(u[s][l]=new GVe(new cn([s*vu,l*vu],[vu,vu]))),u[s][l].insert(n,a)}}}},{key:"remove",value:function(n){if(n.removeObserver(this),"Group"===n.nodeType)for(var a=n.children,o=0;o1||n[1].length>1}},{key:"getSectors",value:function(n){for(var a=n.bottomRight(),o=Math.floor(a.x/vu),s=Math.floor(a.y/vu),l=[[],[]],u=Math.floor(n.origin.x/vu);u<=o;u++)l[0].push(u);for(var c=Math.floor(n.origin.y/vu);c<=s;c++)l[1].push(c);return l}}]),t}(mt);function zVe(i,r){return i._zIndexr._zIndex?-1:0}var kX=UVe,HVe=function(){function i(r){p(this,i),r.bind("mouseenter",this._mouseenter.bind(this)),r.bind("mouseleave",this._mouseleave.bind(this)),this.element=r.element}return v(i,[{key:"clear",value:function(){this._resetCursor()}},{key:"destroy",value:function(){this._resetCursor(),delete this.element}},{key:"_mouseenter",value:function(t){var e=this._shapeCursor(t);e?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(e)):this._resetCursor()}},{key:"_mouseleave",value:function(){this._resetCursor()}},{key:"_shapeCursor",value:function(t){for(var e=t.element;e&&!Vt(e.options.cursor);)e=e.parent;if(e)return e.options.cursor}},{key:"_getCursor",value:function(){if(this.element)return this.element.style.cursor}},{key:"_setCursor",value:function(t){this.element&&(this.element.style.cursor=t,this._current=t)}},{key:"_resetCursor",value:function(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)}}]),i}(),KVe=HVe,WVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderTo",value:function(n){n.save(),this.setTransform(n),this.setClip(n),this.setOpacity(n),n.beginPath(),this.renderPoints(n,this.srcElement),this.setLineDash(n),this.setLineCap(n),this.setLineJoin(n),this.setFill(n),this.setStroke(n),n.restore()}},{key:"setFill",value:function(n){var a=this.srcElement.options.fill,o=!1;return a&&("Gradient"===a.nodeType?(this.setGradientFill(n,a),o=!0):mf(a.color)||(n.fillStyle=a.color,n.save(),this.globalAlpha(n,a.opacity),n.fill(),n.restore(),o=!0)),o}},{key:"setGradientFill",value:function(n,a){var s,o=this.srcElement.rawBBox();if(a instanceof t0){var l=a.start(),u=a.end();s=n.createLinearGradient(l.x,l.y,u.x,u.y)}else if(a instanceof n0){var c=a.center();s=n.createRadialGradient(c.x,c.y,0,c.x,c.y,a.radius())}(function jVe(i,r){for(var t=0;t0)return n.strokeStyle=a.color,n.lineWidth=dN(a.width,1),n.save(),this.globalAlpha(n,a.opacity),n.stroke(),n.restore(),!0}},{key:"dashType",value:function(){var n=this.srcElement.options.stroke;if(n&&n.dashType)return n.dashType.toLowerCase()}},{key:"setLineDash",value:function(n){var a=this.dashType();if(a&&a!==BF){var o=fX[a];n.setLineDash?n.setLineDash(o):(n.mozDash=o,n.webkitLineDash=o)}}},{key:"setLineCap",value:function(n){var a=this.dashType(),o=this.srcElement.options.stroke;a&&a!==BF?n.lineCap="butt":o&&o.lineCap&&(n.lineCap=o.lineCap)}},{key:"setLineJoin",value:function(n){var a=this.srcElement.options.stroke;a&&a.lineJoin&&(n.lineJoin=a.lineJoin)}},{key:"renderPoints",value:function(n,a){V0(n,a)}}]),t}(gX),Nf=WVe,$Ve=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){V0(n,this.srcElement.toPath())}}]),t}(Nf),qVe=$Ve,XVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){var a=this.srcElement.geometry(),o=a.center;n.arc(o.x,o.y,a.radius,0,2*Math.PI)}}]),t}(Nf),ZVe=XVe,YVe=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this,e)).onLoad=a.onLoad.bind(Xe(a)),a.onError=a.onError.bind(Xe(a)),a.loading=gf();var o=a.img=new Image;return n&&!/^data:/i.test(e.src())&&(o.crossOrigin=n),o.src=e.src(),o.complete?a.onLoad():(o.onload=a.onLoad,o.onerror=a.onError),a}return v(t,[{key:"renderTo",value:function(n){"resolved"===this.loading.state()&&(n.save(),this.setTransform(n),this.setClip(n),this.drawImage(n),n.restore())}},{key:"optionsChange",value:function(n){"src"===n.field?(this.loading=gf(),this.img.src=this.srcElement.src()):$(q(t.prototype),"optionsChange",this).call(this,n)}},{key:"onLoad",value:function(){this.loading.resolve(),this.invalidate()}},{key:"onError",value:function(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))}},{key:"drawImage",value:function(n){var a=this.srcElement.rect(),o=a.topLeft();n.drawImage(this.img,o.x,o.y,a.width(),a.height())}}]),t}(Nf),QVe=YVe,JVe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"renderPoints",value:function(n){for(var a=this.srcElement.paths,o=0;o"}},{key:"_enableTracking",value:function(){this._searchTree=new kX,this._cursor=new KVe(this),$(q(t.prototype),"_enableTracking",this).call(this)}},{key:"_trackMouse",value:function(n){if(!this._suspendedTracking){var a=this.eventTarget(n);if("click"!==n.type){var o=this._currentShape;o&&o!==a&&this.trigger("mouseleave",{element:o,originalEvent:n,type:"mouseleave"}),a&&o!==a&&this.trigger("mouseenter",{element:a,originalEvent:n,type:"mouseenter"}),this.trigger("mousemove",{element:a,originalEvent:n,type:"mousemove"}),this._currentShape=a}else a&&this.trigger("click",{element:a,originalEvent:n,type:"click"})}}}]),t}(PF),CX=aUe,bX=function(){return"undefined"!=typeof document},lUe=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._items=[{name:"svg",type:MVe},{name:"canvas",type:CX}],e}return v(t,[{key:"create",value:function(n,a){var o=this._items,s=o[0];if(a&&a.type)for(var l=a.type.toLowerCase(),u=0;ua.x2&&(h=a.x2-o.x),sa.y2&&(f=a.y2-o.y),l=0;n--)t(r[n],n)},DUe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,Object.assign({},bUe,n)))._rect=e,a._fieldMap={},a}return v(t,[{key:"rect",value:function(n){return n?(this._rect=n,this):this._rect}},{key:"_initMap",value:function(){var n=this.options,a=this._fieldMap;"horizontal"===n.orientation?(a.sizeField="width",a.groupsSizeField="height",a.groupAxis="x",a.groupsAxis="y"):(a.sizeField="height",a.groupsSizeField="width",a.groupAxis="y",a.groupsAxis="x"),n.reverse?(this.forEach=wUe,this.justifyAlign=CUe):(this.forEach=SUe,this.justifyAlign=U0)}},{key:"reflow",value:function(){if(this._rect&&0!==this.children.length){this._initMap(),this.options.transform&&this.transform(null);for(var E,M,R,n=this.options,a=this._rect,o=this._initGroups(),s=o.groups,l=o.groupsSize,u=this._fieldMap,c=u.sizeField,d=u.groupsSizeField,h=u.groupAxis,f=u.groupsAxis,g=new Pe,_=new Pe,C=new kf,w=U0(l,a,n.alignContent,f,d),N=function(H,se){var me=M.elements[se];_[h]=E,_[f]=U0(H.size[d],R,n.alignItems,f,d),function kUe(i,r,t){var e=t.transform()||Hn(),n=e.matrix();n.e+=i.x-r.origin.x,n.f+=i.y-r.origin.y,e.matrix(n),t.transform(e)}(_,H,me),E+=H.size[c]+n.spacing},V=0;Va.size[c]){var U=a.size[c]/R.size[c],ee=R.topLeft().scale(U,U),G=U0(R.size[d]*U,a,n.alignContent,f,d),I=Hn();"x"===h?I.translate(a.origin.x-ee.x,G-ee.y):I.translate(G-ee.x,a.origin.y-ee.y),I.scale(U,U),this.transform(I)}}}},{key:"_initGroups",value:function(){for(var n=this.options,a=this.children,o=n.lineSpacing,s=n.wrap,l=n.spacing,u=this._fieldMap.sizeField,c=this._newGroup(),d=[],h=function(){d.push(c),f+=c.lineSize+o},f=-o,g=0;gthis._rect.size[u]?0===c.bboxes.length?(this._addToGroup(c,C,_),h(),c=this._newGroup()):(h(),c=this._newGroup(),this._addToGroup(c,C,_)):this._addToGroup(c,C,_))}return c.bboxes.length&&h(),{groups:d,groupsSize:f}}},{key:"_addToGroup",value:function(n,a,o){n.size+=a.size[this._fieldMap.sizeField]+this.options.spacing,n.lineSize=Math.max(a.size[this._fieldMap.groupsSizeField],n.lineSize),n.bboxes.push(a),n.elements.push(o)}},{key:"_newGroup",value:function(){return{lineSize:0,size:-this.options.spacing,bboxes:[],elements:[]}}}]),t}(sn),EUe=DUe,TUe=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e)).chartService=n,a}return v(t,[{key:"render",value:function(){var n=this.children,a=this.options,o=a.vertical;this.visual=new EUe(null,{spacing:o?0:a.spacing,lineSpacing:o?a.spacing:0,orientation:o?"vertical":"horizontal",reverse:a.rtl,alignItems:o?"start":"center"});for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(n=r.call(this,e)).chartService=a,hn(n.options.position,[Fn,Gn,Zn,Sn,z0])||(n.options.position=Gn),n.createContainers(),n.createLegendTitle(e.title),n.createItems(),n}return v(t,[{key:"createContainers",value:function(){var n=this.options,a=n.position,o=n.align,s=a,l=Qt;a===z0?s=Sn:hn(a,[Fn,Zn])?(s="start"===o?Sn:"end"===o?Gn:Qt,l=a):o&&("start"===o?l=Fn:"end"===o&&(l=Zn)),this.container=new Cf({margin:n.margin,padding:n.padding,background:n.background,border:n.border,vAlign:l,align:s,zIndex:n.zIndex,shrinkToFit:!0}),this.itemsContainer=this.hasTitle()?new Cf({vAlign:l,align:s,zIndex:n.zIndex,shrinkToFit:!0}):this.container,this.append(this.container)}},{key:"createItems",value:function(){var n=this.getService(),a=this.options,o=this.isVertical(),s=new AUe({vertical:o,spacing:a.spacing,rtl:n.rtl},n),l=a.items;a.reverse&&(l=l.slice(0).reverse());for(var u=l.length,c=0;c0}},{key:"reflow",value:function(n){var a=this.options,o=n.clone();this.hasItems()?(a.position===z0?(this.containerCustomReflow(o),this.box=o):this.containerReflow(o),this.hasTitle()&&this.title.reflow(new et(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=o}},{key:"containerReflow",value:function(n){var a=this.options,o=this.container,s=a.position,l=a.width,u=a.height,c=s===Fn||s===Zn?yt:Ct,d=this.isVertical(),h=n.clone(),f=n.clone();(s===Sn||s===Gn)&&(f.y1=h.y1=0),d&&u?(f.y2=f.y1+u,f.align(h,Ct,o.options.vAlign)):!d&&l&&(f.x2=f.x1+l,f.align(h,yt,o.options.align)),o.reflow(f);var g=(f=o.box).clone();(a.offsetX||a.offsetY)&&(f.translate(a.offsetX,a.offsetY),o.reflow(f)),g[c+1]=n[c+1],g[c+2]=n[c+2],this.box=g}},{key:"containerCustomReflow",value:function(n){var a=this.options,o=this.container,s=a.offsetX,l=a.offsetY,u=a.width,c=a.height,d=this.isVertical(),h=n.clone();d&&c?h.y2=h.y1+c:!d&&u&&(h.x2=h.x1+u),o.reflow(h),o.reflow(new et(s,l,s+(h=o.box).width(),l+h.height()))}},{key:"renderVisual",value:function(){this.hasItems()&&$(q(t.prototype),"renderVisual",this).call(this)}},{key:"createLegendTitle",value:function(n){var a=ne({},{color:Xi,position:Fn,align:Qt},n),o=a.text;if(n&&!1!==n.visible){if(Te(a)&&a.visible){var s=ea(a);s?o=s({text:o}):a.format&&(o=this.chartService.format.auto(a.format,o))}this.title=new Yo(o,a),this.createTitleLayout(),this.appendTitleLayoutContent()}}},{key:"createTitleLayout",value:function(){this.layout=new AN({vertical:!0,wrap:!1}),this.container.append(this.layout)}},{key:"hasTitle",value:function(){return Boolean(this.options.title&&!1!==this.options.title.visible)}},{key:"appendTitleLayoutContent",value:function(){this.options.title.position===Zn?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))}}]),t}(Kn);ze(AX,{position:Gn,items:[],offsetX:0,offsetY:0,margin:ti(5),padding:ti(5),border:{color:Xi,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:Sn,vAlign:Qt}});var OUe=AX,jF=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._registry=[],e}return v(t,[{key:"register",value:function(n,a){this._registry.push({type:n,seriesTypes:a})}},{key:"create",value:function(n,a,o){for(var u,s=this._registry,l=s[0],c=0;c0){l=d;break}}return new l.type(u,a,o)}}]),t}(mt);jF.current=new jF;var Nc=jF;function Fc(i){var r=document.createElement("div");return i&&(r.className=i),r}function xX(i){for(var r=i;r&&!Zy(r,"k-handle");)r=r.parentNode;return r}var MX=function(i){b(t,i);var r=S(t);function t(e,n,a,o){var s;p(this,t),s=r.call(this);var l=e.element;return s.options=ne({},s.options,a),s.chart=e,s.observer=o,s.chartElement=l,s.categoryAxis=n,s._dateAxis=s.categoryAxis instanceof fk,s.initOptions(),s.visible=s.options.visible&&l.offsetHeight,s.visible&&(s.createElements(),s.set(s._index(s.options.from),s._index(s.options.to)),s.bindEvents()),s}return v(t,[{key:"onPane",value:function(n){return this.categoryAxis.pane===n}},{key:"createElements",value:function(){var n=this.options,a=this.wrapper=Fc("k-selector");Oi(a,{top:n.offset.top,left:n.offset.left,width:n.width,height:n.height,direction:"ltr"});var o=this.selection=Fc("k-selection");this.leftMask=Fc("k-mask"),this.rightMask=Fc("k-mask"),a.appendChild(this.leftMask),a.appendChild(this.rightMask),a.appendChild(o),o.appendChild(Fc("k-selection-bg"));var s=this.leftHandle=Fc("k-handle k-left-handle"),l=this.rightHandle=Fc("k-handle k-right-handle");s.appendChild(Fc()),l.appendChild(Fc()),o.appendChild(s),o.appendChild(l),this.chartElement.appendChild(a);var u=Oi(o,["borderLeftWidth","borderRightWidth","height"]),c=Oi(s,"height").height,d=Oi(l,"height").height;n.selection={border:{left:u.borderLeftWidth,right:u.borderRightWidth}},Oi(s,{top:(u.height-c)/2}),Oi(l,{top:(u.height-d)/2}),a.style.cssText=a.style.cssText}},{key:"bindEvents",value:function(){!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),tk(this.wrapper,De({},E0,this._mousewheelHandler))),this._domEvents=ON.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})}},{key:"initOptions",value:function(){var n=this.options,o=this.categoryAxis.pane.chartsBox(),s=this.chart.chartService.intl;this._dateAxis&&ne(n,{min:ya(s,n.min),max:ya(s,n.max),from:ya(s,n.from),to:ya(s,n.to)});var l=Oi(this.chartElement,["paddingLeft","paddingTop"]),u=l.paddingLeft,c=l.paddingTop;this.options=ne({},{width:o.width(),height:o.height()+.1,padding:{left:u,top:c},offset:{left:o.x1+u,top:o.y1+c},from:n.min,to:n.max},n)}},{key:"destroy",value:function(){this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(ik(this.wrapper,De({},E0,this._mousewheelHandler)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)}},{key:"_rangeEventArgs",value:function(n){return{axis:this.categoryAxis.options,from:this._value(n.from),to:this._value(n.to)}}},{key:"_start",value:function(n){var a=this.options,o=_l(n);if(!this._state&&o){this.chart._unsetActivePoint(),this._state={moveTarget:xX(o)||o,startLocation:n.x?n.x.location:0,range:{from:this._index(a.from),to:this._index(a.to)}};var s=this._rangeEventArgs({from:this._index(a.from),to:this._index(a.to)});this.trigger(lF,s)&&(this._state=null)}}},{key:"_press",value:function(n){var a;(a=this._state?this._state.moveTarget:xX(_l(n)))&&Za(a,"k-handle-active")}},{key:"_move",value:function(n){if(this._state){var a=this._state,o=this.options,s=this.categoryAxis,l=a.range,u=a.moveTarget,c=s.options.reverse,d=this._index(o.from),h=this._index(o.to),f=this._index(o.min),g=this._index(o.max),_=a.startLocation-n.x.location,C={from:l.from,to:l.to},w=l.to-l.from,E=Oi(this.wrapper,"width").width/(s.categoriesCount()-1),M=Math.round(_/E)*(c?-1:1);if(u){var R=Zy(u,"k-left-handle"),N=Zy(u,"k-right-handle");Zy(u,"k-selection k-selection-bg")?(l.from=Math.min(Math.max(f,d-M),g-w),l.to=Math.min(l.from+w,g)):R&&!c||N&&c?(l.from=Math.min(Math.max(f,d-M),g-1),l.to=Math.max(l.from+1,l.to)):(R&&c||N&&!c)&&(l.to=Math.min(Math.max(f+1,h-M),g),l.from=Math.min(l.to-1,l.from)),(l.from!==C.from||l.to!==C.to)&&(this.move(l.from,l.to),this.trigger(Tk,this._rangeEventArgs(l)))}}}},{key:"_end",value:function(){if(this._state){var n=this._state.moveTarget;n&&function e2e(i,r){i&&i.className&&(i.className=i.className.replace(r,"").replace(JFe," "))}(n,"k-handle-active");var a=this._state.range;this.set(a.from,a.to),this.trigger(uF,this._rangeEventArgs(a)),delete this._state}}},{key:"_tap",value:function(n){var a=this.options,o=this.categoryAxis,s=this.chart._eventCoordinates(n),l=o.pointCategoryIndex(new Ut(s.x,o.box.y1)),u=this._index(a.from),c=this._index(a.to),d=this._index(a.min),h=this._index(a.max),f=c-u,_={},C=3===n.event.which,w=Math.round(u+f/2-l);this._state||C||(this.chart._unsetActivePoint(),o.options.justified||w--,_.from=Math.min(Math.max(d,u-w),h-f),_.to=Math.min(_.from+f,h),this._start(n),this._state&&(this._state.range=_,this.trigger(Tk,this._rangeEventArgs(_)),this._end()))}},{key:"_mousewheel",value:function(n){var a=this,o=lN(n);if(this._start({target:this.selection}),this._state){var s=this._state.range;n.preventDefault(),n.stopPropagation(),Math.abs(o)>1&&(o*=3),this.options.mousewheel.reverse&&(o*=-1),this.expand(o)&&this.trigger(Tk,{axis:this.categoryAxis.options,delta:o,originalEvent:n,from:this._value(s.from),to:this._value(s.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout(function(){a._end()},150)}}},{key:"_gesturestart",value:function(n){var a=this.options;this._state={range:{from:this._index(a.from),to:this._index(a.to)}};var o=this._rangeEventArgs(this._state.range);this.trigger(lF,o)?this._state=null:n.preventDefault()}},{key:"_gestureend",value:function(){this._state&&(this.trigger(uF,this._rangeEventArgs(this._state.range)),delete this._state)}},{key:"_gesturechange",value:function(n){var a=this.chart,s=this.options,l=this.categoryAxis,u=this._state.range,c=a._toModelCoordinates(n.touches[0].x.location).x,d=a._toModelCoordinates(n.touches[1].x.location).x,h=Math.min(c,d),f=Math.max(c,d);n.preventDefault(),u.from=l.pointCategoryIndex(new Ut(h))||s.min,u.to=l.pointCategoryIndex(new Ut(f))||s.max,this.move(u.from,u.to),this.trigger(Tk,this._rangeEventArgs(u))}},{key:"_index",value:function(n){var a=n;return n instanceof Date&&(a=this.categoryAxis.categoryIndex(n)),a}},{key:"_value",value:function(n){var a=n;return this._dateAxis&&(a=this.categoryAxis.categoryAt(n))>this.options.max&&(a=this.options.max),a}},{key:"_slot",value:function(n){var a=this.categoryAxis,o=this._index(n);return a.getSlot(o,o,!0)}},{key:"move",value:function(n,a){var o=this.options,s=this.categoryAxis.options.reverse,l=o.offset,u=o.padding,c=o.selection.border,h=s?n:a,f="x"+(s?2:1),g=this._slot(s?a:n),_=tt(g[f]-l.left+u.left);Oi(this.leftMask,{width:_}),Oi(this.selection,{left:_}),g=this._slot(h);var C=tt(o.width-(g[f]-l.left+u.left));Oi(this.rightMask,{width:C});var w=o.width-C;w!==o.width&&(w+=c.right),Oi(this.rightMask,{left:w}),Oi(this.selection,{width:Math.max(o.width-(_+C)-c.right,0)})}},{key:"set",value:function(n,a){var o=this.options,s=this._index(o.min),l=this._index(o.max),u=Mt(this._index(n),s,l),c=Mt(this._index(a),u+1,l);o.visible&&this.move(u,c),o.from=this._value(u),o.to=this._value(c)}},{key:"expand",value:function(n){var a=this.options,o=this._index(a.min),s=this._index(a.max),l=a.mousewheel.zoom,u=this._index(a.from),c=this._index(a.to),d={from:u,to:c},h=ne({},d);if(this._state&&(d=this._state.range),l!==Gn&&(d.from=Mt(Mt(u-n,0,c-1),o,s)),l!==Sn&&(d.to=Mt(Mt(c+n,d.from+1,s),o,s)),d.from!==h.from||d.to!==h.to)return this.set(d.from,d.to),!0}},{key:"zoom",value:function(n,a){var o=this.options,s=this._index(o.min),l=this._index(o.max),u=this._index(o.from),c=this._index(o.to),d={from:u,to:c},h=ne({},d),g=yt+(this.categoryAxis.options.reverse?"2":"1"),_=this.categoryAxis.lineBox(),C=Math.abs(_[g]-a.x),w=_.width(),E=tt(C/w,2),M=tt(E*n),R=tt((1-E)*n);if(this._state&&(d=this._state.range),d.from=Mt(Mt(u-M,0,c-1),s,l),d.to=Mt(Mt(c+R,d.from+1,l),s,l),d.from!==h.from||d.to!==h.to)return this.set(d.from,d.to),!0}},{key:"trigger",value:function(n,a){return(this.observer||this.chart).trigger(n,a)}}]),t}(mt);ze(MX,{visible:!0,mousewheel:{zoom:"both"},min:Cr,max:Zi});var RX=MX,FUe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"show",value:function(n){if(n&&n.tooltipAnchor&&(!this._current||this._current!==n)){var a=ne({},this.options,n.options.tooltip),o=n.tooltipAnchor();o?(this._current=n,$(q(t.prototype),"show",this).call(this,{point:n,anchor:o},a,n)):this.hide()}}},{key:"hide",value:function(){delete this._current,$(q(t.prototype),"hide",this).call(this)}}]),t}(EF),LUe=FUe,OX=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e.chartService,n)).plotArea=e,a.formatService=e.chartService.format,a}return v(t,[{key:"showAt",value:function(n,a){var o=Xo(n,function(c){var d=c.series.tooltip;return!(d&&!1===d.visible)});if(o.length>0){var s=o[0],l=this.plotArea.categoryAxis.getSlot(s.categoryIx),u=a?this._slotAnchor(a,l):this._defaultAnchor(s,l);this.show({anchor:u,shared:!0,points:n,category:s.category,categoryText:this.formatService.auto(this.options.categoryFormat,s.category),series:this.plotArea.series},this.options)}}},{key:"_slotAnchor",value:function(n,a){return this.plotArea.categoryAxis.options.vertical||(n.x=a.center().x),{point:n,align:{horizontal:"left",vertical:"center"}}}},{key:"_defaultAnchor",value:function(n,a){var o=n.owner.pane.chartsBox(),s=this.plotArea.categoryAxis.options.vertical,l=o.center(),u=a.center();return{point:s?new Ut(l.x,u.y):new Ut(u.x,l.y),align:{horizontal:"center",vertical:"center"}}}}]),t}(EF);ze(OX,{categoryFormat:"{0:d}"});var IX=OX,NX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.element,a=this.options;if(n.bbox()){this.origin=a.origin;var s=a.vertical?Ct:yt,l=this.fromScale=new Pe(1,1);l[s]=vk,n.transform(Hn().scale(l.x,l.y))}else this.abort()}},{key:"step",value:function(n){var a=Fs(this.fromScale.x,1,n),o=Fs(this.fromScale.y,1,n);this.element.transform(Hn().scale(a,o,this.origin))}},{key:"abort",value:function(){$(q(t.prototype),"abort",this).call(this),this.element.transform(null)}}]),t}(Vs);ze(NX,{duration:zs}),uu.current.register(Sl,NX);var FX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.center=this.element.bbox().center();this.element.transform(Hn().scale(vk,vk,n))}},{key:"step",value:function(n){this.element.transform(Hn().scale(n,n,this.center))}}]),t}(Vs);ze(FX,{easing:"easeOutElastic"}),uu.current.register(yg,FX);var LX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)}},{key:"step",value:function(n){this.element.opacity(n*this.fadeTo)}}]),t}(Vs);ze(LX,{duration:200,easing:"linear"}),uu.current.register(Ld,LX);var PX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this.element.transform(Hn().scale(vk,vk,this.options.center))}},{key:"step",value:function(n){this.element.transform(Hn().scale(n,n,this.options.center))}}]),t}(Vs);ze(PX,{easing:"easeOutElastic",duration:zs}),uu.current.register(Bd,PX);var BX=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"render",value:function(){$(q(t.prototype),"render",this).call(this),this.renderSegments()}},{key:"createSegment",value:function(n,a,o){return new(a.style===_g?vF:Mg)(n,a,o)}},{key:"animationPoints",value:function(){return $(q(t.prototype),"animationPoints",this).call(this).concat(this._segments)}},{key:"createMissingValue",value:function(n,a){if(a===Ac){var o={x:n.x,y:n.y};return Qo(o.x)||(o.x=0),Qo(o.y)||(o.y=0),o}}}]),t}(I0);ne(BX.prototype,pF);var GX=BX,WF=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initFields",value:function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new x0,this.yAxisRangeTracker=new x0}},{key:"render",value:function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.panes,a=this.groupSeriesByPane(),o=0;o0&&this.appendChart(new I0(this,{series:n,clip:a.options.clip}),a)}},{key:"createScatterLineChart",value:function(n,a){n.length>0&&this.appendChart(new GX(this,{series:n,clip:a.options.clip}),a)}},{key:"createBubbleChart",value:function(n,a){n.length>0&&this.appendChart(new YBe(this,{series:n,clip:a.options.clip}),a)}},{key:"createXYAxis",value:function(n,a,o){for(var s=n.name,l=a?this.namedYAxes:this.namedXAxes,u=a?this.yAxisRangeTracker:this.xAxisRangeTracker,c=ne({reverse:!a&&this.chartService.rtl},n,{vertical:a}),d=Gd(c.type,w0),h=u.query(),f=d?{min:.1,max:1}:{min:0,max:1},g=u.query(s)||h||f,_=[c.min,c.max],C=this.series,w=0;w0&&h.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,x:Og(d),y:Og(h)})}},{key:"updateAxisOptions",value:function(n,a){var o=n.options.vertical,s=this.groupAxes(this.panes),l=(o?s.y:s.x).indexOf(n);VX(this.options,l,o,a),VX(this.originalOptions,l,o,a)}}]),t}(Vd);function VX(i,r,t,e){ne([].concat(t?i.yAxis:i.xAxis)[r],e)}ze(WF,{xAxis:{},yAxis:{}}),ne(WF.prototype,Mk);var PUe=WF,$F=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,a)).value=e,o.sector=n,o}return v(t,[{key:"render",value:function(){var n=this.options.labels,a=this.owner.chartService,o=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var s=ea(n),l=this.pointData();if(s?o=s(l):n.format&&(o=a.format.auto(n.format,o)),n.visible&&(o||0===o)){if(n.position===Qt||n.position===D0)n.color||(n.color=CN(this.options.color)),n.background||(n.background=this.options.color);else{var u=a.theme.seriesDefaults.labels;n.color=n.color||u.color,n.background=n.background||u.background}this.label=new Yo(o,ne({},n,{align:Qt,vAlign:"",animation:{type:Ld,delay:this.animationDelay}}),l),this.append(this.label)}}}},{key:"reflow",value:function(n){this.render(),this.box=n,this.reflowLabel()}},{key:"reflowLabel",value:function(){var n=this.options.labels,a=this.label,o=this.sector.clone(),s=n.distance,l=o.middle();if(a){var d,u=a.box.height(),c=a.box.width();if(n.position===Qt)o.radius=Math.abs((o.radius-u)/2)+u,d=o.point(l),a.reflow(new et(d.x,d.y-u/2,d.x,d.y));else if(n.position===D0)o.radius=o.radius-u/2,d=o.point(l),a.reflow(new et(d.x,d.y-u/2,d.x,d.y));else{var h;(d=o.clone().expand(s).point(l)).x>=o.center.x?(h=d.x+c,a.orientation=Gn):(h=d.x-c,a.orientation=Sn),a.reflow(new et(h,d.y-u,d.x,d.y))}}}},{key:"createVisual",value:function(){var n=this,a=this.sector,o=this.options;if($(q(t.prototype),"createVisual",this).call(this),this.value)if(o.visual){var s=(a.startAngle+180)%360,l=o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new Pe(a.center.x,a.center.y),radius:a.radius,innerRadius:a.innerRadius,startAngle:s,endAngle:s+a.angle,options:o,sender:this.getSender(),createVisual:function(){var c=new sn;return n.createSegmentVisual(c),c}});l&&this.visual.append(l)}else this.createSegmentVisual(this.visual)}},{key:"createSegmentVisual",value:function(n){var a=this.sector,o=this.options,s=o.border||{},u=o.color,c={color:u,opacity:o.opacity},d=this.createSegment(a,ne({fill:c,stroke:{opacity:o.opacity},zIndex:o.zIndex},s.width>0?{stroke:{color:s.color,width:s.width,opacity:s.opacity,dashType:s.dashType}}:{}));n.append(d),yF(o)&&n.append(this.createGradientOverlay(d,{baseColor:u,fallbackFill:c},ne({center:[a.center.x,a.center.y],innerRadius:a.innerRadius,radius:a.radius,userSpace:!0},o.overlay)))}},{key:"createSegment",value:function(n,a){return a.singleSegment?new kl(new bo(new Pe(n.center.x,n.center.y),n.radius),a):e0.current.createRing(n,a)}},{key:"createAnimation",value:function(){var a=this.sector.center;ne(this.options,{animation:{center:[a.x,a.y],delay:this.animationDelay}}),$(q(t.prototype),"createAnimation",this).call(this)}},{key:"createHighlight",value:function(n){var a=this.options.highlight||{},o=a.border||{};return this.createSegment(this.sector,ne({},n,{fill:{color:a.color,opacity:a.opacity},stroke:{opacity:o.opacity,width:o.width,color:o.color}}))}},{key:"highlightVisual",value:function(){return this.visual.children[0]}},{key:"highlightVisualArgs",value:function(){var n=this.sector;return{options:this.options,radius:n.radius,innerRadius:n.innerRadius,center:new Pe(n.center.x,n.center.y),startAngle:n.startAngle,endAngle:n.angle+n.startAngle,visual:this.visual}}},{key:"tooltipAnchor",value:function(){var n=this.sector.clone().expand(5),a=n.middle();return{point:n.point(a),align:VUe(a+180)}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}},{key:"pointData",value:function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}}}]),t}(Kn),BUe=tt(br(30),10),GUe=tt(br(60),10);function VUe(i){var r=br(i),t=tt(Math.sin(r),10),e=tt(Math.cos(r),10);return{horizontal:Math.abs(t)>GUe?Qt:e<0?Gn:Sn,vertical:Math.abs(t)f-5?f-5:N,_.translate(w.x-C.x,w.y-C.y);for(var V=f-N,U=new Ut(V+_.x1+N,V+_.y1+N),ee=0;ee0&&(M.sort(this.labelComparator(!0)),this.leftLabelsReflow(M)),R.length>0&&(R.sort(this.labelComparator(!1)),this.rightLabelsReflow(R)),this.box=_}},{key:"leftLabelsReflow",value:function(n){var a=this.distanceBetweenLabels(n);this.distributeLabels(a,n)}},{key:"rightLabelsReflow",value:function(n){var a=this.distanceBetweenLabels(n);this.distributeLabels(a,n)}},{key:"distanceBetweenLabels",value:function(n){var a=Yi(this.points),o=a.sector,s=n.length-1,l=o.radius+a.options.labels.distance,u=[],c=n[0].box,d=tt(c.y1-(o.center.y-l-c.height()-c.height()/2));u.push(d);for(var h=0;h0&&(s>=0||l0){var u=Math.min(n[o],l);l-=u,n[o]-=u,n[a]+=u}return l}},{key:"reflowLabels",value:function(n,a){var h,o=Yi(this.points),s=o.sector,l=o.options.labels,u=a.length,c=l.distance,d=s.center.y-(s.radius+c)-a[0].box.height();n[0]+=2;for(var f=0;fc.center.x?(M=c.center.x-c.radius-4,g.lineTo(u.options.labels.align!==xc?M>E.x?M:w.x-8:M,w.y),g.lineTo(E.x,R.y)):(N.y=R.y,g.lineTo(N.x,N.y))),g.lineTo(R.x,R.y),this._connectorLines.push(g),this.visual.append(g)}}}}},{key:"renderVisual",value:function(){if($(q(t.prototype),"renderVisual",this).call(this),P9(this.options.series,function(u){return u.autoFit})){var n=this.targetBox,a=this.box.center(),o=this.visual.bbox();if(!o)return;var s=o.bottomRight(),l=Math.min((a.y-n.y1)/(a.y-o.origin.y),(n.y2-a.y)/(s.y-a.y),(a.x-n.x1)/(a.x-o.origin.x),(n.x2-a.x)/(s.x-a.x));l<1&&this.visual.transform(Hn().scale(l,l,[a.x,a.y]))}}},{key:"labelComparator",value:function(n){var a=n?-1:1;return function(o,s){return((o.parent.sector.middle()+270)%360-(s.parent.sector.middle()+270)%360)*a}}},{key:"hAlignLabel",value:function(n,a,o,s,l){var u=a.radius,c=a.center,d=c.x,h=c.y,f=Math.min(Math.abs(h-o),Math.abs(h-s));return f>u?n:d+Math.sqrt(u*u-f*f)*(l?1:-1)}},{key:"pointInCircle",value:function(n,a,o){return Math.pow(a.x-n.x,2)+Math.pow(a.y-n.y,2)u-5?u-5:f),_=0,w=0;w1)for(var n=function rze(i){for(var r=[],t=0;t1){var s=o[0].linePoints[0],l=Yi(o),u=Yi(l.linePoints);0===s.categoryIx&&u.categoryIx===u.categoriesCount-1&&Yi(o).linePoints.push(s)}}}},{key:"createSegment",value:function(n,a,o){var u=new(a.style===_g?vF:Mg)(n,a,o),c=this.seriesMissingValues(a);return(n.length===a.data.length||c===mg)&&(u.options.closed=!0),u}}]),t}(mF);ze(QX,{clip:!1,limitPoints:!1});var JX=QX,aze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"fillToAxes",value:function(){}}]),t}(_F),oze=aze,sze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"fillToAxes",value:function(){}}]),t}(Rg),lze=sze,uze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"createSegment",value:function(n,a,o,s){var c,d,h,u=(a.line||{}).style;return this.options.isStacked&&o>0&&s&&(d=s.linePoints.slice(0),c=s),u===_g?(h=new oze(n,a,o,c,d)).options.closed=!0:(n.push(n[0]),h=new lze(n,a,o,c,d)),h}},{key:"seriesMissingValues",value:function(n){return n.missingValues||Ac}}]),t}(JX),cze=uze,eZ=function(i){b(t,i);var r=S(t);function t(e,n){return p(this,t),r.call(this,e,null,n)}return v(t)}(WX);ze(eZ,{overlay:{gradient:"none"},labels:{distance:10}});var dze=eZ,tZ=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this,e)).forEach=e.rtl?Aq:Tq,n}return v(t,[{key:"reflow",value:function(n){var a=this.options,o=this.children,s=a.gap,l=a.spacing,u=o.length,d=n.angle/(u+s+l*(u-1)),h=n.startAngle+d*(s/2);this.forEach(o,function(f){var g=n.clone();g.startAngle=h,g.angle=d,f.sector&&(g.radius=f.sector.radius),f.reflow(g),f.sector=g,h+=d+d*l})}}]),t}(Kn);ze(tZ,{gap:1,spacing:0});var hze=tZ,fze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflow",value:function(n){var a=this.options.reverse,o=this.children,s=o.length,l=a?s-1:0,u=a?-1:1;this.box=new et;for(var c=l;c>=0&&c1,a.isStacked100=l&&"100%"===l.type&&s.length>1,a.isStacked100&&(this._isStacked100=!0)}return a}},{key:"createAreaChart",value:function(n,a){if(0!==n.length){var o=new cze(this,this.chartOptions(n));this.appendChart(o,a)}}},{key:"createLineChart",value:function(n,a){if(0!==n.length){var o=new JX(this,this.chartOptions(n));this.appendChart(o,a)}}},{key:"createBarChart",value:function(n,a){if(0!==n.length){var o=n[0],s=this.chartOptions(n);s.gap=o.gap,s.spacing=o.spacing;var l=new pze(this,s);this.appendChart(l,a),this._hasBarCharts=!0}}},{key:"seriesCategoryAxis",value:function(){return this.categoryAxis}},{key:"_dispatchEvent",value:function(n,a,o){var s=n._eventCoordinates(a),l=new Ut(s.x,s.y),u=this.categoryAxis.getCategory(l),c=this.valueAxis.getValue(l);null!==u&&null!==c&&n.trigger(o,{element:_l(a),category:u,value:c})}},{key:"createCrosshairs",value:function(){}}]),t}(qX);ne(QF.prototype,Mk,{appendChart:xf.prototype.appendChart,aggregateSeries:xf.prototype.aggregateSeries,seriesSourcePoints:xf.prototype.seriesSourcePoints}),ze(QF,{categoryAxis:{categories:[]},valueAxis:{}});var gze=QF,JF=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,n)).value=e,o.options.index=a.index,o}return v(t,[{key:"reflow",value:function(n){var a=this.points,o=this.children[0];this.box=new et(a[0].x,a[0].y,a[1].x,a[2].y),o&&o.reflow(new et(n.x1,a[0].y,n.x2,a[2].y))}},{key:"createVisual",value:function(){var o,n=this,a=this.options;$(q(t.prototype),"createVisual",this).call(this),(o=a.visual?a.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:a,sender:this.getSender(),createVisual:function(){return n.createPath()}}):this.createPath())&&this.visual.append(o)}},{key:"createPath",value:function(){var n=this.options,a=n.border;return dt.fromPoints(this.points,{fill:{color:n.color,opacity:n.opacity},stroke:{color:a.color,opacity:a.opacity,width:a.width}}).close()}},{key:"createHighlight",value:function(n){return dt.fromPoints(this.points,n)}},{key:"highlightVisual",value:function(){return this.visual.children[0]}},{key:"highlightVisualArgs",value:function(){var n=dt.fromPoints(this.points).close();return{options:this.options,path:n}}},{key:"tooltipAnchor",value:function(){var n=this.box;return{point:new Ut(n.center().x,n.y1),align:{horizontal:"center",vertical:"top"}}}},{key:"formatValue",value:function(n){return this.owner.formatPointValue(this,n)}}]),t}(Kn);ze(JF,{color:Ln,border:{width:1}}),ne(JF.prototype,wl);var mze=JF,e2=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,n)).plotArea=e,a.points=[],a.labels=[],a.legendItems=[],a.render(),a}return v(t,[{key:"formatPointValue",value:function(n,a){return this.chartService.format.auto(a,n.value)}},{key:"render",value:function(){var a=this.plotArea.options.seriesColors,o=void 0===a?[]:a,s=this.options.series[0],l=s.data;if(l)for(var u=zq(s),c=u.total,d=u.points,h=0;hd.percentage&&(d=l[h]);for(var f=c.percentage/d.percentage*a,g=(a-f)/2,_=0,C=0;C1&&void 0!==arguments[1]?arguments[1]:.05,e=Ps(r),n=1-t;return function(a){var o=e.toHSL(),s=100-o.l;return o.l+=Math.min((n-a)*s,s),o.toCss()}}(l)(n.value/this.valueRange.max));var c=new nZ(n,s);return c.color=l,this.append(c),c}},{key:"seriesAxes",value:function(n){var a=n.xAxis,o=n.yAxis,s=this.plotArea,l=a?s.namedXAxes[a]:s.axisX,u=o?s.namedYAxes[o]:s.axisY;if(!l)throw new Error("Unable to locate X axis with name "+a);if(!u)throw new Error("Unable to locate Y axis with name "+o);return{xAxis:l,yAxis:u}}},{key:"reflow",value:function(n){var a=this,o=this.points,s=!this.options.clip,l=0;this.traverseDataPoints(function(u,c){var d=o[l++],h=a.seriesAxes(c.series),f=h.xAxis,g=h.yAxis,_=f.categoryIndex(u.x),C=g.categoryIndex(u.y),w=f.getSlot(_,_,s),E=g.getSlot(C,C,s);if(d)if(w&&E){var M=a.pointSlot(w,E);d.reflow(M)}else d.visible=!1}),this.box=n}},{key:"pointSlot",value:function(n,a){return new et(n.x1,a.y1,n.x2,a.y2)}},{key:"traverseDataPoints",value:function(n){for(var a=this.options.series,o=0;o0&&void 0!==arguments[0]?arguments[0]:this.panes;this.bindCategories(),this.createAxes(n),this.createCharts(n),this.createAxisLabels()}},{key:"bindCategories",value:function(){for(var n=this.srcSeries||this.series,a=0;a0&&h.length>0&&n.trigger(o,{element:_l(a),originalEvent:a,x:Og(d),y:Og(h)})}},{key:"updateAxisOptions",value:function(n,a){var o=n.options.vertical,s=this.groupAxes(this.panes),l=(o?s.y:s.x).indexOf(n);iZ(this.options,l,o,a),iZ(this.originalOptions,l,o,a)}},{key:"crosshairOptions",value:function(n){return Object.assign({},n.options.crosshair,{zIndex:0})}}]),t}(Vd);function iZ(i,r,t,e){ne([].concat(t?i.yAxis:i.xAxis)[r],e)}ze(n2,{xAxis:{},yAxis:{}}),ne(n2.prototype,Mk);var wze=n2,Jo="color",es="first",Qa="max",Lc="noteText";Nc.current.register(xf,[Sl,xc,_k,Dg,gk,Sg,kg,yk,Pd,bk,mk,wg,Ck,bg,Sk,Cg,kk,Eg]),Nc.current.register(PUe,[rF,aF,yg]),Nc.current.register(jX,[Bd]),Nc.current.register($Ue,[y0]),Nc.current.register(kze,[k0]),Nc.current.register(ize,[tF,nF,iF]),Nc.current.register(gze,[C0,b0,S0]),Nc.current.register(wze,[eF]),Qi.current.register([Sl,xc,_k,Dg,gk,Sg],[qo],[fu,Jo,Lc,lq,uq]),Qi.current.register([Ck,bg,kk,Eg],["from","to"],[fu,Jo,Lc]),Qi.current.register([Sk,Cg],[qo],[fu,Jo,Lc,"summary"]),Qi.current.register([tF,nF,iF],[yt,Ct],[Jo]),Qi.current.register([C0,b0,S0],[qo],[Jo]),Qi.current.register([k0],[qo],[fu,Jo,"visibleInLegend","visible"]),Af.current.register([Sl,xc,_k,Dg,gk,Sg,Sk,Cg],{value:Qa,color:es,noteText:es,errorLow:"min",errorHigh:Qa}),Af.current.register([Ck,bg,kk,Eg],{from:"min",to:Qa,color:es,noteText:es}),Af.current.register([C0,b0,S0],{value:Qa,color:es}),Qi.current.register([rF,aF,yg],[yt,Ct],[Jo,Lc,"xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Qi.current.register([yg],[yt,Ct,"size"],[Jo,fu,Lc]),Qi.current.register([eF],[yt,Ct,qo],[Jo,Lc]),Qi.current.register([kg,yk],["open","high","low","close"],[fu,Jo,"downColor",Lc]),Af.current.register([kg,yk],{open:Qa,high:Qa,low:"min",close:Qa,color:es,downColor:es,noteText:es}),Qi.current.register([mk,wg],["lower","q1","median","q3","upper","mean","outliers"],[fu,Jo,Lc]),Af.current.register([mk,wg],{lower:Qa,q1:Qa,median:Qa,q3:Qa,upper:Qa,mean:Qa,outliers:es,color:es,noteText:es}),Qi.current.register([Pd,bk],["current","target"],[fu,Jo,"visibleInLegend",Lc]),Af.current.register([Pd,bk],{current:Qa,target:Qa,color:es,noteText:es}),Qi.current.register([Bd,y0],[qo],[fu,Jo,"explode","visibleInLegend","visible"]);var a2=[fu,qo,yt,Ct],Ff="mousemove",rZ="contextmenu",aZ="mouseleave",oZ=function(i){b(t,i);var r=S(t);function t(e,n,a){var o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};p(this,t),(o=r.call(this)).observers=[],o.addObserver(s.observer),o.chartService=new MN(Xe(o),s),o.chartService.theme=a,o._initElement(e);var l=ne({},o.options,n);return o._originalOptions=ne({},l),o._theme=a,o._initTheme(l,a),o._initHandlers(),o._initSurface(),o.bindCategories(),A2e.preloadFonts(n,function(){o.fontLoaded=!0,o._destroyed||(o.trigger("init"),o._redraw(),o._attachEvents())}),o}return v(t,[{key:"_initElement",value:function(n){for(this._setElementClass(n),n.style.position="relative";n.firstChild;)n.removeChild(n.firstChild);this.element=n}},{key:"_setElementClass",value:function(n){Za(n,"k-chart")}},{key:"_initTheme",value:function(n,a){for(var o=[],s=n.series||[],l=0;l0||a.height>0;n||s&&(!o||a.width!==o.width||a.height!==o.height)?(this._size=a,this._resize(a,n),this.trigger("resize",a)):s&&this._selections&&P9(this._selections,function(l){return!l.visible})&&(this._destroySelections(),this._setupSelection())}},{key:"_resize",value:function(){this._noTransitionsRedraw()}},{key:"redraw",value:function(n){if(this.applyDefaults(this.options),this.applySeriesColors(),n){var a=this._model._plotArea,o=a.findPane(n);a.redraw(o)}else this._redraw()}},{key:"getAxis",value:function(n){return oq(n,this._plotArea.axes)}},{key:"findAxisByName",value:function(n){return this.getAxis(n)}},{key:"findPaneByName",value:function(n){for(var a=this._plotArea.panes,o=0;o=0){var c=this._plotArea.pointsByCategoryIndex(u);o.showAt(c)}}else l&&o.show(l)}},{key:"hideTooltip",value:function(){this._tooltip.hide()}},{key:"_initSurface",value:function(){var n=this.surface,a=this._surfaceWrap(),o=this.options.chartArea||{};o.width&&kc(a,{width:o.width}),o.height&&kc(a,{height:o.height}),n&&n.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=Ok.create(a,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))}},{key:"_surfaceWrap",value:function(){return this.element}},{key:"_redraw",value:function(){var n=this._getModel();this._size={width:n.options.width,height:n.options.height},this._destroyView(),this._model=n,this._plotArea=n._plotArea,n.renderVisual(),!1!==this.options.transitions&&n.traverse(function(a){a.animation&&a.animation.setup()}),this._initSurface(),this.surface.draw(n.visual),!1!==this.options.transitions&&n.traverse(function(a){a.animation&&a.animation.play()}),this._tooltip=this._createTooltip(),this._highlight=new hUe,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),uZ(this._plotArea.panes),this._navState||this._cancelDomEvents()}},{key:"exportVisual",value:function(n){var a;if(n&&(n.width||n.height||n.options)){var o=this.options,s=ne({},n.options,{chartArea:{width:n.width,height:n.height}});o2(this._originalOptions,s),this.options=ne({},this._originalOptions,s),this._initTheme(this.options,this._theme),this.bindCategories();var l=this._getModel();l.renderVisual(),uZ(l._plotArea.panes),a=l.visual,this.options=o}else a=this.surface.exportVisual();return a}},{key:"_sharedTooltip",value:function(){return this._plotArea instanceof xf&&this.options.tooltip&&this.options.tooltip.shared}},{key:"_createPannable",value:function(){var n=this.options;!1!==n.pannable&&(this._pannable=new fUe(this._plotArea,n.pannable))}},{key:"_createZoomSelection",value:function(){var n=this.options.zoomable,a=(n||{}).selection;!1!==n&&!1!==a&&(this._zoomSelection=new vUe(this,a))}},{key:"_createMousewheelZoom",value:function(){var n=this.options.zoomable,a=(n||{}).mousewheel;!1!==n&&!1!==a&&(this._mousewheelZoom=new yUe(this,a))}},{key:"_toggleDragZoomEvents",value:function(){var a=this.options.zoomable,s=(a||{}).mousewheel,l=!(this.options.pannable||!1!==a&&!1!==(a||{}).selection||this.requiresHandlers([sF,wk,Dk])),u=(!1===a||!1===s)&&!this.requiresHandlers([Ek,Tg,Ag]),c=this.element;this._dragZoomEnabled&&l&&u?(c.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):!this._dragZoomEnabled&&!(l&&u)&&(c.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!l,!u)}},{key:"_toggleDomEvents",value:function(n,a){var o=this.domEvents;!o||(o.toggleDrag&&o.toggleDrag(n),o.toggleZoom&&o.toggleZoom(a))}},{key:"_createTooltip",value:function(){var n=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(n):new LUe(this.chartService,n)}},{key:"_createSharedTooltip",value:function(n){return new IX(this._plotArea,n)}},{key:"applyDefaults",value:function(n,a){(function Mze(i,r){var e,n,a,t=(r||{}).axisDefaults||{};function o(l){var u=(l||{}).color||n.color,c=ne({},t,t[e],n,n[e],{line:{color:u},labels:{color:u},title:{color:u}},l);return delete c[e],c}for(var s=0;s1?a:a[0]})(n,a),function Rze(i,r){var t=i.series,e=t.length,n=i.seriesDefaults,a=ne({},i.seriesDefaults),o=r?ne({},r.seriesDefaults):{},s=ne({},o);lZ(a),lZ(s);for(var l=0;l=0&&this.observers.splice(a,1)}},{key:"requiresHandlers",value:function(n){for(var a=this.observers,o=0;o1&&void 0!==arguments[1]?arguments[1]:{};n===vq&&(a.anchor.point=this._toDocumentCoordinates(a.anchor.point)),a.sender=this;for(var o=this.observers,s=!1,l=0;l=.1){s=Math.round(10*s),this._gestureDistance=n.distance;var l={delta:s,axisRanges:Ik(this._plotArea.axes),originalEvent:n};if(this._zooming||!this.trigger(Ek,l)){var u=this._eventCoordinates(n);this._zooming||(this._zooming=!0),(l.axisRanges=a.updateRanges(s,u))&&!this.trigger(Tg,l)&&a.zoom()}}}}},{key:"_mouseout",value:function(n){if(n.element){var a=this._drawingChartElement(n.element,n);a&&a.leave&&a.leave(this,n.originalEvent)}}},{key:"_start",value:function(n){var a=this._eventCoordinates(n);this._stopChartHandlers(n)||!this._plotArea.backgroundContainsPoint(a)||(this.requiresHandlers([sF,wk,Dk])&&this._startNavigation(n,a,sF),this._pannable&&this._pannable.start(n)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(n)&&this.trigger(Ek,{axisRanges:Ik(this._plotArea.axes),originalEvent:n}))}},{key:"_move",value:function(n){var a=this._navState,o=this._pannable;if(!this._stopChartHandlers(n)){if(o){var s=o.move(n);s&&!this.trigger(wk,{axisRanges:s,originalEvent:n})&&o.pan()}else if(a){for(var l={},u=a.axes,c=0;c1,u=this._hasInactiveOpacity();return this._updateHoveredPoint(o,a),o&&s!==o&&o.hover?(this._activePoint=o,!this._sharedTooltip()&&!o.hover(this,a)&&(this._displayTooltip(o),u?this._displayInactiveOpacity(o,l):this._highlight.show(o))):!o&&u&&(l&&this._activeChartInstance&&(this._updateSeriesOpacity(o,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),o}},{key:"_displayTooltip",value:function(n){ne({},this.options.tooltip,n.options.tooltip).visible&&this._tooltip.show(n)}},{key:"_displayInactiveOpacity",value:function(n,a,o){var s=this._activeChartInstance=this._chartInstanceFromPoint(n);if(s)if(a)this._updateSeriesOpacity(n),this._applySeriesOpacity(s.children,null,!0),this._applySeriesOpacity(s.children,n.series),this._highlight.show(o||n);else{var l;if(!s.supportsPointInactiveOpacity())return void this._highlight.show(n);(l=this._getInactivePoints(n,s))&&l.length&&this._highlight.show(l,1-this._getInactiveOpacityForSeries(n.series))}}},{key:"_getInactivePoints",value:function(n,a){return this._getAllPointsOfType(a,n.constructor).filter(function(s){return s!==n})}},{key:"_getAllPointsOfType",value:function(n,a){for(var o=[],s=0;s0;return n||a}},{key:"_getInactiveOpacityForSeries",value:function(n){return n.highlight.inactiveOpacity||this.options.seriesDefaults.highlight.inactiveOpacity||n.opacity||1}},{key:"_getDefaultOpacityForSeries",value:function(n){return n.defaultOpacity||n.opacity||1}},{key:"_mouseover",value:function(n){var a=this._startHover(n.element,n.originalEvent);a&&a.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),tk(document,De({},Ff,this._mouseMoveTrackHandler)))}},{key:"_mouseMoveTracking",value:function(n){var a=this.options,o=this._tooltip,s=this._highlight,l=this._activePoint,u=this._eventCoordinates(n);if(this._plotArea.box.containsPoint(u)){if(l&&l.tooltipTracking&&l.series&&l.parent.getNearestPoint){var c=l.parent.getNearestPoint(u.x,u.y,l.seriesIx);c&&c!==l&&(this._activePoint=c,!c.hover(this,n))&&(ne({},a.tooltip,c.options.tooltip).visible&&o.show(c),s.show(c))}}else ik(document,De({},Ff,this._mouseMoveTrackHandler)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null}},{key:"_mousemove",value:function(n){var a=this._eventCoordinates(n),o=this._plotArea;if(this._trackCrosshairs(a),o.hover){var s=o.backgroundContainsPoint(a);s?(o.hovered=!0,this._plotArea.hover(this,n)):o.hovered&&!s&&(this.trigger(oF),o.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(a,n)}},{key:"_trackCrosshairs",value:function(n){for(var a=this._plotArea.crosshairs,o=0;o0&&!this.trigger(hq,_)?(s.visible&&c.showAt(f,n),d.show(f),this._sharedHighlight=!0):c.hide(),this._tooltipCategoryIx=h}else o&&this._sharedHighlight&&(d.hide(),c.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(d.hide(),c.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}}},{key:"hideElements",value:function(n){var a=this._plotArea;this._mousemove.cancel(),a.hideCrosshairs(),this._unsetActivePoint(n)}},{key:"_unsetActivePoint",value:function(n){var a=this._tooltip,o=this._highlight;this._activePoint=null,this._hoveredPoint=null,a&&!(n&&n.keepTooltipOpen)&&a.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,o&&o.hide()}},{key:"_deferRedraw",value:function(){this._redraw()}},{key:"_clearRedrawTimeout",value:function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)}},{key:"bindCategories",value:function(){for(var a=[].concat(this.options.categoryAxis),o=0;o0)for(var E=(d=Kq(n,p0(f.categoryField,_[0])))?Hq:p0,M=0;M0){d&&(u=function Ize(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wf,t=Oze(i,r),e=t.length,n=e>0?[t[0]]:[],a=1;a1,u):s.show(u)}},{key:"_shouldAttachMouseMove",value:function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers([fq,oF])}},{key:"updateMouseMoveHandler",value:function(){ik(this.element,De({},Ff,this._mousemove)),this._shouldAttachMouseMove()&&tk(this.element,De({},Ff,this._mousemove))}},{key:"applyOptions",value:function(n,a){o2(this._originalOptions,n),this._originalOptions=ne(this._originalOptions,n),this.options=ne({},this._originalOptions),a&&(this._theme=a,this.chartService.theme=a),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()}},{key:"setOptions",value:function(n,a){this.applyOptions(n,a),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()}},{key:"setDirection",value:function(n){this.chartService.rtl=Boolean(n),this.surface&&"svg"===this.surface.type&&this._destroySurface()}},{key:"setIntlService",value:function(n){this.chartService.intl=n}},{key:"noTransitionsRedraw",value:function(){this._noTransitionsRedraw()}},{key:"destroy",value:function(){var n;this._destroyed=!0,ik(this.element,(De(n={},rZ,this._clickHandler),De(n,E0,this._mousewheelHandler),De(n,Ff,this._mousemove),De(n,aZ,this._mouseleaveHandler),n)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&ik(document,De({},Ff,this._mouseMoveTrackHandler)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()}},{key:"_destroySurface",value:function(){var n=this.surface;n&&(n.unbind("mouseenter",this._surfaceMouseenterHandler),n.unbind("mouseleave",this._surfaceMouseleaveHandler),n.destroy(),this.surface=null)}},{key:"_destroySelections",value:function(){var n=this._selections;if(n)for(;n.length>0;)n.shift().destroy()}},{key:"_destroyView",value:function(){var n=this._model;n&&(n.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)}}]),t}(mt);function sZ(i,r){if(i)for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:wf,t=1,e=i.length;t0&&(_+=o.left+o.right),_}},{key:"_createSharedTooltip",value:function(n){return new Bze(this._plotArea,n)}}],[{key:"normalizeOptions",value:function(n){var a=fZ(n);return(a=Jr(a)?{seriesDefaults:{data:a}}:ne({},a)).series||(a.series=[{data:fZ(a.data)}]),ne(a,{seriesDefaults:{type:a.type}}),(hn(a.series[0].type,cZ)||hn(a.seriesDefaults.type,cZ))&&(a=ne({},{categoryAxis:{crosshair:{visible:!1}}},a)),a}}]),t}(s2);ze(vZ,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var Uze=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){this._initialOpacity=parseFloat(Oi(this.element,"opacity").opacity)}},{key:"step",value:function(n){Oi(this.element,{opacity:String(Fs(this._initialOpacity,0,n))})}},{key:"abort",value:function(){$(q(t.prototype),"abort",this).call(this),Oi(this.element,{display:"none",opacity:String(this._initialOpacity)})}},{key:"cancel",value:function(){$(q(t.prototype),"abort",this).call(this),Oi(this.element,{opacity:String(this._initialOpacity)})}}]),t}(Vs),zze=Uze;function u2(i,r){var t=document.createElement("div");return t.className=i,r&&(t.style.cssText=r),t}var pZ=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;p(this,t),(o=r.call(this)).options=ne({},o.options,a),o.container=e,o.chartService=n;var s=Oi(e,["paddingLeft","paddingTop"]);return o.chartPadding={top:s.paddingTop,left:s.paddingLeft},o.createElements(),e.appendChild(o.element),o}return v(t,[{key:"createElements",value:function(){var n=this.element=u2("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),a=this.tooltip=u2("k-tooltip k-chart-tooltip"),o=this.scroll=u2("k-scroll");a.innerHTML=" ",n.appendChild(a),n.appendChild(o)}},{key:"show",value:function(n,a,o){var s=this.element,l=this.options,u=this.scroll,c=this.tooltip,d=ni(ii(n)+ii(a-n)/2),h=.4*o.width(),f=o.center().x-h,w=(o.center().x-f)/(l.max-l.min),E=d-l.min,M=this.chartService.intl.format(l.format,n,a),R=ea(l);this.clearHideTimeout(),this._visible||(Oi(s,{visibility:"hidden",display:"block"}),this._visible=!0),R&&(M=R({from:n,to:a})),c.innerHTML=M,Oi(c,{left:o.center().x-c.offsetWidth/2,top:o.y1});var N=Oi(c,["marginTop","borderTopWidth","height"]);Oi(u,{width:h,left:f+E*w,top:o.y1+N.marginTop+N.borderTopWidth+N.height/2}),Oi(s,{visibility:"visible"})}},{key:"clearHideTimeout",value:function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()}},{key:"hide",value:function(){var n=this;this.clearHideTimeout(),this._hideTimeout=setTimeout(function(){n._visible=!1,n._hideAnimation=new zze(n.element),n._hideAnimation.setup(),n._hideAnimation.play()},this.options.hideDelay)}},{key:"destroy",value:function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll}}]),t}(mt);ze(pZ,{format:"{0:d} - {1:d}",hideDelay:500});var Hze=pZ,Ud="_navigator",Pc=Ud,jze=function(i){b(t,i);var r=S(t);function t(e){var n,a;p(this,t),(a=r.call(this)).chart=e;var o=a.options=ne({},a.options,e.options.navigator),s=o.select;return s&&(s.from=a.parseDate(s.from),s.to=a.parseDate(s.to)),Te(o.hint.visible)||(o.hint.visible=o.visible),a.chartObserver=new sN(Xe(a),(De(n={},wk,"_drag"),De(n,Dk,"_dragEnd"),De(n,Tg,"_zoom"),De(n,Ag,"_zoomEnd"),n)),e.addObserver(a.chartObserver),a}return v(t,[{key:"parseDate",value:function(n){return ya(this.chart.chartService.intl,n)}},{key:"clean",value:function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)}},{key:"destroy",value:function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()}},{key:"redraw",value:function(){this._redrawSelf(),this.initSelection()}},{key:"initSelection",value:function(){var n=this.chart,a=this.options,o=this.mainAxis(),s=o.roundedRange(),l=s.min,u=s.max,c=a.select,d=c.from,h=c.to,f=c.mousewheel,g=function Wze(i){return gZ.prototype=i,new gZ}(o);0!==o.categoriesCount()&&(this.clean(),g.box=o.box,this.selection=new RX(n,g,{min:l,max:u,from:d||l,to:h||u,mousewheel:qt(f,{zoom:"left"}),visible:a.visible},new sN(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),a.hint.visible&&(this.hint=new Hze(n.element,n.chartService,{min:l,max:u,template:ea(a.hint),format:a.hint.format})))}},{key:"setRange",value:function(){var o=this.chart._createPlotArea(!0).namedCategoryAxes[Pc].roundedRange(),s=o.min,l=o.max,u=this.options.select||{},c=u.from||s;cl&&(d=l),this.options.select=ne({},u,{from:c,to:d}),this.filterAxes()}},{key:"_redrawSelf",value:function(n){var a=this.chart._plotArea;a&&a.redraw(Yi(a.panes),n)}},{key:"redrawSlaves",value:function(){var n=this.chart,a=n._plotArea,o=a.panes.slice(0,-1);a.srcSeries=n.options.series,a.options.categoryAxis=n.options.categoryAxis,a.clearSeriesPointsCache(),a.redraw(o)}},{key:"_drag",value:function(n){var g,a=this.chart,o=this.selection,s=a._eventCoordinates(n.originalEvent),l=this.mainAxis(),u=l.roundedRange(),c=l.pane.box.containsPoint(s),h=n.axisRanges[a._plotArea.categoryAxis.options.name],f=this.options.select;if(h&&!c&&o){g=f.from&&f.to?ii(f.to)-ii(f.from):ii(o.options.to)-ii(o.options.from);var _=ni(Mt(ii(h.min),u.min,ii(u.max)-g)),C=ni(Mt(ii(_)+g,ii(u.min)+g,u.max));this.options.select={from:_,to:C},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),o.set(_,C),this.showHint(_,C)}}},{key:"_dragEnd",value:function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()}},{key:"readSelection",value:function(){var n=this.selection.options,o=n.to,s=this.options.select;s.from=n.from,s.to=o}},{key:"filterAxes",value:function(){for(var n=this.options.select,a=void 0===n?{}:n,s=this.chart.options.categoryAxis,l=a.from,u=a.to,c=0;c1&&(d*=3),f-h>1?(o.zoom(d,g),this.readSelection()):(a.options.min=l.from,l.from=a.scaleRange(-n.delta*this.chart._mousewheelZoomRate(),g).min),u&&(this.filterAxes(),this.redrawSlaves()),o.set(l.from,l.to),this.showHint(this.options.select.from,this.options.select.to)}}},{key:"_zoomEnd",value:function(n){this._dragEnd(n)}},{key:"showHint",value:function(n,a){this.hint&&this.hint.show(n,a,this.chart._plotArea.backgroundBox())}},{key:"_selectStart",value:function(n){return this.chart._selectStart(n)}},{key:"_select",value:function(n){return this.showHint(n.from,n.to),this.chart._select(n)}},{key:"_selectEnd",value:function(n){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(n)}},{key:"mainAxis",value:function(){var n=this.chart._plotArea;if(n)return n.namedCategoryAxes[Pc]}},{key:"select",value:function(n,a){var o=this.options.select;return n&&a&&(o.from=this.parseDate(n),o.to=this.parseDate(a),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(n,a)),{from:o.from,to:o.to}}}],[{key:"setup",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n.__navi){n.__navi=!0;var o=ne({},a.navigator,n.navigator),s=n.panes=[].concat(n.panes),l=ne({},o.pane,{name:Ud});o.visible||(l.visible=!1,l.height=.1),s.push(l),t.attachAxes(n,o),t.attachSeries(n,o,a)}}},{key:"attachAxes",value:function(n,a){var o=a.series||[],s=n.categoryAxis=[].concat(n.categoryAxis),l=n.valueAxis=[].concat(n.valueAxis),c=0===Ji(o,dq).length,d=ne({type:"date",pane:Ud,roundToBaseUnit:!c,justified:c,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:a.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),h=a.categoryAxis;s.push(ne({},d,{maxDateGroups:200},h,{name:Pc,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),ne({},d,h,{name:Pc+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),ne({},d,h,{name:Pc+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),l.push(ne({name:Pc,pane:Ud,majorGridLines:{visible:!1},visible:!1},a.valueAxis))}},{key:"attachSeries",value:function(n,a,o){for(var s=n.series=n.series||[],l=[].concat(a.series||[]),u=o.seriesColors,c=a.seriesDefaults,d=0;d3&&void 0!==arguments[3]?arguments[3]:{};return p(this,t),(o=r.call(this)).element=e,o.theme=a,o.contextService=new MN(Xe(o),s),o._originalOptions=ne({},o.options,n),o.options=ne({},o._originalOptions),o._initTheme(a),o.redraw(),o}return v(t,[{key:"destroy",value:function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement}},{key:"value",value:function(n){var a=this.pointers[0];if(0===arguments.length)return a.value();a.value(n),this._setValueOptions(n)}},{key:"_draw",value:function(){var n=this.surface;n.clear(),n.draw(this._visuals)}},{key:"exportVisual",value:function(){return this._visuals}},{key:"allValues",value:function(n){var a=this.pointers,o=[];if(0===arguments.length){for(var s=0;s0&&(s=MZ(s,o.width)),Jze.fromRect(s,{stroke:{color:o.width?o.color:"",width:o.width,dashType:o.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n.background}})}},{key:"_initSurface",value:function(){var n=this.options,a=this.surface,o=this._surfaceElement(),s=this._surfaceSize();kc(o,s),a&&a.options.type===n.renderAs?(this.surface.clear(),this.surface.resize()):(a&&a.destroy(),this.surface=e3e.create(o,{type:n.renderAs}))}},{key:"_surfaceSize",value:function(){var n=this.options,a=this._getSize();return n.gaugeArea&&ne(a,n.gaugeArea),a}},{key:"_surfaceElement",value:function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement}},{key:"getSize",value:function(){return this._getSize()}},{key:"_getSize",value:function(){var n=this.element,a=this._defaultSize(),o=n.offsetWidth,s=n.offsetHeight;return o||(o=a.width),s||(s=a.height),{width:o,height:s}}},{key:"_defaultSize",value:function(){return{width:200,height:200}}},{key:"_toggleTransitions",value:function(n){this.options.transitions=n;for(var a=0;a0&&n.visible){var s=new d2({stroke:{color:n.color,dashType:n.dashType,width:n.width}});s.moveTo(a.x1,a.y1).lineTo(a.x2,a.y2),o.append(s)}return o}},{key:"renderTicks",value:function(){var n=new Lk,a=this.options,o=a.majorTicks.visible?a.majorUnit:0,s={vertical:a.vertical,mirror:a.labels.mirror,lineBox:this.lineBox()};return IZ(n,this.getMajorTickPositions(),s,a.majorTicks),IZ(n,this.getMinorTickPositions(),s,ne({},{skipUnit:o/a.minorUnit},a.minorTicks)),n}}]),t}(Us);ze(NZ,{min:0,max:50,majorTicks:{size:15,align:zd,color:Xi,width:.5,visible:!0},minorTicks:{size:10,align:zd,color:Xi,width:.5,visible:!0},line:{width:.5},labels:{position:zd,padding:2},mirror:!1,_alignLines:!1});var n3e=NZ,FZ=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),a=r.call(this);var o=e.options,s=o.min,l=o.max,u=a.options=ne({},a.options,n);return u.fill=u.color,a.scale=e,u.value=Te(u.value)?Mt(u.value,s,l):s,a}return v(t,[{key:"value",value:function(n){var a=this.options,o=a.value;if(0===arguments.length)return o;var s=this.scale.options,l=s.min,u=s.max;a._oldValue=Te(a._oldValue)?a.value:l,a.value=Mt(n,l,u),this.elements&&this.repaint()}}]),t}(mt);ze(FZ,{color:Xi});var h2=FZ,LZ=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).options=ne({track:{visible:Te(n.track)}},a.options),a}return v(t,[{key:"reflow",value:function(){var g,_,C,n=this.options,a=this.scale,o=a.options,s=o.mirror,l=o.vertical,u=a.lineBox(),c=n.track.size||n.size,d=n.size/2,h=ti(n.margin),f=l?h[s?"left":"right"]:h[s?"bottom":"top"];f=s?-f:f,l?(C=new et(u.x1+f,u.y1,u.x1+f,u.y2),s?C.x1-=c:C.x2+=c,n.shape!==Fk&&(g=_=new et(u.x2+f,u.y1-d,u.x2+f,u.y2+d))):(C=new et(u.x1,u.y1-f,u.x2,u.y1-f),s?C.y2+=c:C.y1-=c,n.shape!==Fk&&(g=_=new et(u.x1-d,u.y1-f,u.x2+d,u.y1-f))),this.trackBox=C,this.pointerRangeBox=_,this.box=g||C.clone().pad(n.border.width)}},{key:"getElementOptions",value:function(){var n=this.options;return{fill:{color:n.color,opacity:n.opacity},stroke:Te(n.border)?{color:n.border.width?n.border.color||n.color:"",width:n.border.width,dashType:n.border.dashType,opacity:n.opacity}:null}}},{key:"_margin",value:function(){var o=this.scale.options,s=o.mirror,l=o.vertical,u=ti(this.options.margin);return l?u[s?"left":"right"]:u[s?"bottom":"top"]}}]),t}(h2);ze(LZ,{shape:Fk,track:{border:{width:1}},color:Xi,border:{width:1},opacity:1,margin:ti(3),animation:{type:Fk},visible:!0});var PZ=LZ,f2=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.options,a=n.margin,o=n.from,s=n.to,l=n.vertical,u=l?"x1":"y1";n.mirror===l?(o[u]-=a,s[u]-=a):(o[u]+=a,s[u]+=a);var c=this.fromScale=new Pe(o.x1,o.y1),d=this.toScale=new Pe(s.x1,s.y1);0!==n.duration&&(n.duration=Math.max(c.distanceTo(d)/n.duration*1e3,1))}},{key:"step",value:function(n){var a=Fs(this.fromScale.x,this.toScale.x,n),o=Fs(this.fromScale.y,this.toScale.y,n);this.element.transform(Hn().translate(a,o))}}]),t}(Vs);ze(f2,{easing:j0,duration:250}),uu.current.register(kZ,f2);var i3e=f2,Ng=Pe,r3e=dt,a3e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),a=r.call(this,e,n),Te(a.options.size)||(a.options.size=.6*a.scale.options.majorTicks.size),a}return v(t,[{key:"pointerShape",value:function(){var n=this.scale,a=this.options.size,o=a/2,s=n.options.mirror?-1:1;return n.options.vertical?[new Ng(0,0-o),new Ng(0-s*a,0),new Ng(0,0+o)]:[new Ng(0-o,0),new Ng(0,0+s*a),new Ng(0+o,0)]}},{key:"repaint",value:function(){var n=this.scale,a=this.options,o=new i3e(this.elements,ne(a.animation,{vertical:n.options.vertical,mirror:n.options.mirror,margin:this._margin(a.margin),from:n.getSlot(a._oldValue),to:n.getSlot(a.value)}));!1===a.animation.transitions&&(o.options.duration=0),o.setup(),o.play()}},{key:"render",value:function(){var n=this.scale,a=this.options,o=this.getElementOptions(),s=this.pointerShape(a.value);a.animation.type=kZ;var l=new r3e({stroke:o.stroke,fill:o.fill}).moveTo(s[0]).lineTo(s[1]).lineTo(s[2]).close(),u=n.getSlot(a.value);return l.transform(Hn().translate(u.x1,u.y1)),this.elements=l,l}}]),t}(PZ),o3e=a3e,v2=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"setup",value:function(){var n=this.options,a=this.axis=n.vertical?Ct:yt,o=this.to=n.newPoints[0][a],s=this.from=n.oldPoints[0][a];0!==n.duration&&(n.duration=Math.max(Math.abs(o-s)/n.speed*1e3,1)),this._set(s)}},{key:"step",value:function(n){var a=Fs(this.from,this.to,n);this._set(a)}},{key:"_set",value:function(n){var a="set"+this.axis.toUpperCase(),o=this.options.newPoints;o[0][a](n),o[1][a](n)}}]),t}(Vs);ze(v2,{easing:j0,speed:250}),uu.current.register(Fk,v2);var s3e=v2,l3e=sn,BZ=dt,u3e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),a=r.call(this,e,n),Te(a.options.size)||(a.options.size=.3*a.scale.options.majorTicks.size),a}return v(t,[{key:"pointerShape",value:function(n){var a=this.scale,s=a.options,u=s.vertical,c=s.mirror===u?-1:1,d=this.options.size*c,h=a.getSlot(a.options.min),f=a.getSlot(n),g=u?Ct:yt,_=u?yt:Ct,C=this._margin()*c,w=new Pe;w[g]=h[g+"1"],w[_]=h[_+"1"];var E=new Pe;E[g]=f[g+"1"],E[_]=f[_+"1"],u?(w.translate(C,0),E.translate(C,0)):(w.translate(0,C),E.translate(0,C));var M=E.clone(),R=w.clone();return u?(M.translate(d,0),R.translate(d,0)):(M.translate(0,d),R.translate(0,d)),[w,E,M,R]}},{key:"repaint",value:function(){var n=this.scale,a=this.options,o=this.pointerShape(a.value),s=this.pointerPath,l=this.pointerShape(a._oldValue);s.moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).lineTo(o[3]).close();var u=new s3e(s,ne(a.animation,{reverse:n.options.reverse,vertical:n.options.vertical,oldPoints:[l[1],l[2]],newPoints:[o[1],o[2]]}));!1===a.animation.transitions&&(u.options.duration=0),u.setup(),u.play()}},{key:"render",value:function(){var n=new l3e,a=this.getElementOptions();this.options.track.visible&&n.append(this.renderTrack());var o=this.pointerPath=new BZ({stroke:a.stroke,fill:a.fill});return n.append(o),this.elements=n,n}},{key:"renderTrack",value:function(){var n=this.options.track,a=n.border||{},o=this.trackBox.clone().pad(a.width||0);return new BZ.fromRect(o.toRect(),{fill:{color:n.color,opacity:n.opacity},stroke:{color:a.width?a.color||n.color:"",width:a.width,dashType:a.dashType}})}}]),t}(PZ),c3e=u3e,f3e=sn,v3e=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"reflow",value:function(n){var a=this.pointers,o=n.origin.x,s=n.origin.y,l=new et(o,s,o+n.width(),s+n.height());this.scale.reflow(l),this._shrinkScaleWidth(l);for(var u=0;u0&&(a.box.shrink(o,0),a.box.alignTo(n,"center"),a.reflow(a.box))}}},{key:"_shrinkElements",value:function(){for(var n=this.scale,a=this.pointers,o=n.box.clone(),s=n.options.vertical?"y":"x",l=a[0].box,u=0;u0&&void 0!==arguments[0]?arguments[0]:new Sc,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p(this,t),(e=r.call(this,a)).geometry(n),Vt(e.options.stroke)||e.stroke("#000"),e}return v(t,[{key:"nodeType",get:function(){return"Arc"}},{key:"_bbox",value:function(n){return this._geometry.bbox(n)}},{key:"rawBBox",value:function(){return this.geometry().bbox()}},{key:"toPath",value:function(){var n=new dt,a=this.geometry().curvePoints();if(a.length>0){n.moveTo(a[0].x,a[0].y);for(var o=1;o=360&&a.max%a.majorUnit==0&&(n-=1),n}},{key:"renderLabels",value:function(){var n=this.options,a=this.arc.clone(),o=a.getRadiusX(),s=this.tickAngles(a,n.majorUnit),l=n.rangeSize=n.rangeSize||.1*o,u=new q0,c=.05*o;Te(n.rangeDistance)?c=n.rangeDistance:n.rangeDistance=c;var d=n.labels,h=d.position===zd,f=Te(this.labelElements);h&&(o-=this.ticksSize(),this.hasRanges()&&!f&&(o-=l+c),a.setRadiusX(o).setRadiusY(o));for(var g=this.labels,_=g.length,C=ti(d.padding),w=(C.left+C.right)/2,E=(C.top+C.bottom)/2,M=0;M<_;M++){var R=g[M],N=R.box.width()/2,V=R.box.height()/2,U=s[M],ee=(U-180)*SZ,ve=a.pointAt(U),G=ve.x+Math.cos(ee)*(N+w)*(h?1:-1),I=ve.y+Math.sin(ee)*(V+E)*(h?1:-1);R.reflow(new et(G-N,I-V,G+N,I+V));var K=new Pe(R.box.x1,R.box.y1),H=void 0;if(f){var se=(H=this.labelElements.children[M]).bbox().origin,me=H.transform()||Hn();me.translate(K.x-se.x,K.y-se.y),H.transform(me)}else H=AZ(R,n.labels),u.append(H);this.bbox=cn.union(this.bbox,H.bbox())}return u}},{key:"repositionRanges",value:function(){var n=this.ranges.children;if(n.length>0){var a=this.options,o=a.rangeDistance,s=a.rangeSize,l=this.getRangeRadius();this.options.labels.position===zd&&(l+=s+o);for(var u=l+s/2,c=0;c=0;s--)s%o==0&&n.splice(s,1);return n}},{key:"tickAngles",value:function(n,a){var o=this.options,u=n.endAngle-n.startAngle,c=(o.max-o.min)/a,d=n.startAngle,h=u/c;o.reverse&&(d+=u,h=-h),u>=360&&o.max%a==0&&(c-=1);for(var f=[],g=0;g5||l!==f&&(c=this.getPlotBox(l,n,a),0<=c&&c<=2)||u!==f&&(h=this.getPlotBox(u,n,a),0<=h&&h<=2)||(f=c>0&&h>0?2*l:c<0&&h<0?2*u:tt((l+u)/2||1,3),d=this.getPlotBox(f,n,a),0<=d&&d<=2));)g=h,d>0?(u=f,h=d):(l=f,c=d)}},{key:"getPlotBox",value:function(n,a,o){var s=this.scale,l=this.pointers,u=o.getRadiusX(),c=o.clone();c.setRadiusX(u+n).setRadiusY(u+n),s.arc=c,s.reflow(a),this.plotBbox=s.bbox;for(var d=0;d=this.kCheckSumMinLength){var s=(o+this.getWeightedSum(n,a,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=s,this.addPattern(this.characterMap[s])}}},{key:"getWeightedSum",value:function(n,a,o){for(var s=0,l=0;la;)l=parseFloat((l-.1).toFixed(1)),s=this.getBaseUnit(l);if(s127?this.invalidCharacterError(r):this.addExtended(r.charCodeAt(0))},addExtended:function(r){for(var t,e=0;e=0;u--)o+=this.weightedValue(n[u],a-u,this.cCheckSumTotal);for(o=this.weightedValue(s=o%this.checkSumMod,1,this.kCheckSumTotal),u=a-1;u>=0;u--)o+=this.weightedValue(n[u],a-u+1,this.kCheckSumTotal);return[s,o%this.checkSumMod]}},{key:"_findCharacterByValue",value:function(n){for(var a in this.characterMap)if(this.characterMap[a].value===n)return a}},{key:"weightedValue",value:function(n,a,o){return(a%o||o)*n}},{key:"addPattern",value:function(n){for(var a,o=0;o=0&&this.isCode(l)&&n.index=n.value.length||this.encoding[this.shiftKey].is(n.value,n.index+1)))return this.encoding.addPattern(this.SHIFT),n.shifted=!0,!0}},{key:"_moveState",value:function(){return this.encoding.addPattern(this.MOVE),!0}}]),t}(X0),Fg={};Fg.A=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"A",shiftKey:"B",MOVE:101,START:103})}},{key:"isCode",value:function(n){return 0<=n&&n<96}},{key:"getValue",value:function(n){return n<32?n+64:n-32}}]),t}(QZ),Fg.B=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"B",shiftKey:"A",MOVE:100,START:104})}},{key:"isCode",value:function(n){return 32<=n&&n<128}},{key:"getValue",value:function(n){return n-32}}]),t}(QZ),Fg.C=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"C",MOVE:99,START:105})}},{key:"addStart",value:function(){this.encoding.addPattern(this.START)}},{key:"is",value:function(n,a){var o=k2(n,a,4);return(a+4<=n.length||2===n.length)&&y2.test(o)}},{key:"move",value:function(){this.encoding.addPattern(this.MOVE)}},{key:"pushState",value:function(n){for(var a;(a=k2(n.value,n.index,2))&&y2.test(a)&&2===a.length;)this.encoding.addPattern(parseInt(a,10)),n.index+=2}},{key:"getValue",value:function(n){return n}}]),t}(X0),Fg.FNC4=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e))._initSubStates(n),a}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Dl(this,{key:"FNC4",dependentStates:["A","B"]})}},{key:"addStart",value:function(n){var a=n.value.charCodeAt(0)-128,o=this._getSubState(a);this.encoding[o].addStart()}},{key:"is",value:function(n,a){var o=n.charCodeAt(a);return this.isCode(o)}},{key:"isCode",value:function(n){return 128<=n&&n<256}},{key:"pushState",value:function(n){var l,a=this._initSubState(n),o=this.encoding,s=a.value.length;if(n.index+=s,s<3)for(;a.index0?this.getBySeparator(o,l):this.getByLength(o,l)).ai.length)d=l+h+c.id.length+c.ai.length;else if((d=o.indexOf(this.startAI,l+1))<0){if(l+c.ai.max+c.id.length+h=o.length)break;l=d,u.state!==this.startState&&(a[this.startState].move(u),u.state=this.startState),c.ai.length||a.addPattern(this.START)}n.index=n.value.length}},{key:"validate",value:function(n,a){var o=a.substr(n.id.length),s=n.ai;if(!s.type&&!y2.test(o))throw new Error("Application identifier "+n.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===s.type&&!z3e.test(o))throw new Error("Application identifier "+n.id+" is alphanumeric only but contains non alphanumeric character(s).");if(s.length&&s.length!==o.length)throw new Error("Application identifier "+n.id+" must be "+s.length+" characters long.");if(s.min&&s.min>o.length)throw new Error("Application identifier "+n.id+" must be at least "+s.min+" characters long.");if(s.max&&s.max=n.value.length);)if(n.shifted){var s=n.state;n.state=n.previousState,n.previousState=s,n.shifted=!1}else n.previousState=n.state,n.state=this.getNextState(n,a),this[n.state].move(n)}},{key:"addStart",value:function(n){this[n.state].addStart(n),this.position=1}},{key:"addCheckSum",value:function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)}},{key:"addStop",value:function(){this.addPattern(this.STOP)}},{key:"setBaseUnit",value:function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)}},{key:"addPattern",value:function(n){for(var o,a=this.characterMap[n].toString(),s=0;s2&&void 0!==arguments[2]?arguments[2]:j9;return p(this,t),(a=r.call(this)).options=ne({},a.options,n),a.element=e,a.onError=o,a._initElement(),a._initSurface(),a._setOptions(n),n&&Te(n.value)&&a.redraw(),a}return v(t,[{key:"destroy",value:function(){this._destroySurface()}},{key:"_initElement",value:function(){Za(this.element,"k-barcode")}},{key:"_initSurface",value:function(){var a=this.surface;(!a||a.options.type!==this.options.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}},{key:"_createSurface",value:function(){return Ok.create(this.surfaceElement,{type:this.options.renderAs})}},{key:"_destroySurface",value:function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}},{key:"_initSurfaceElement",value:function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}},{key:"_destroySurfaceElement",value:function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}},{key:"setOptions",value:function(n){this._setOptions(n),this._initSurface(),this.redraw()}},{key:"redraw",value:function(){var n=this._getSize();this.surface.clear(),this.surface.setSize({width:n.width,height:n.height}),this.createVisual(),this.surface.draw(this.visual)}},{key:"getSize",value:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}}},{key:"_resize",value:function(){this.redraw()}},{key:"createVisual",value:function(){this.visual=this._render()}},{key:"_render",value:function(){var f,g,n=this.options,a=n.value,o=n.text,s=ti(o.margin),l=this._getSize(),u=n.border||{},c=this.encoding,d=new et(0,0,l.width,l.height).unpad(u.width).unpad(n.padding),h=d.height(),C=new sn;this.contentBox=d,C.append(this._getBackground(l)),o.visible&&(h-=ek(a,{font:o.font}).height+s.top+s.bottom);try{f=c.encode(a,d.width(),h)}catch(w){return this.onError(w),C}return o.visible&&(g=a,n.checksum&&Te(c.checksum)&&(g+=" "+c.checksum),C.append(this._getText(g))),this.barHeight=h,this._bandsGroup=this._getBands(f.pattern,f.baseUnit),C.append(this._bandsGroup),C}},{key:"exportVisual",value:function(){return this._render()}},{key:"_getSize",value:function(){var a=tY(this.element,this.options.renderAs),o=new kf(300,100);return a.width>0&&(o.width=a.width),a.height>0&&(o.height=a.height),this.options.width&&(o.width=this.options.width),this.options.height&&(o.height=this.options.height),o}},{key:"value",value:function(n){if(!Te(n))return this.options.value;this.options.value=String(n),this.redraw()}},{key:"_getBands",value:function(n,a){for(var l,u,o=this.contentBox,s=o.x1,c=new sn,d=0;d1&&void 0!==arguments[1]?arguments[1]:new cn,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return p(this,t),(n=r.call(this,o)).src(e),n.rect(a),n}return v(t,[{key:"nodeType",get:function(){return"Image"}},{key:"src",value:function(n){return Vt(n)?(this.options.set("src",n),this):this.options.get("src")}},{key:"bbox",value:function(n){var a=yf(this.currentTransform(n));return this._rect.bbox(a)}},{key:"rawBBox",value:function(){return this._rect.bbox()}},{key:"_containsPoint",value:function(n){return this._rect.containsPoint(n)}},{key:"_hasFill",value:function(){return this.src()}}]),t}(wN(Id,["rect"])),C2=sHe,Lg=Object.assign;function nY(i,r){for(var t=[],e=0;e=this.matrix.length)&&(this.dir=-this.dir,this.startColumn-=8!==this.startColumn?2:3,this.column=this.startColumn,this.row=this.dir<0?this.matrix.length-1:0);return{row:this.row,column:this.column}}},{key:"getNextRemainderCell",value:function(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}}}]),t}(mt),iY=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).dataString=e,a.version=n,a}return v(t)}(mt),uHe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"getEncodingResult",value:function(n,a){var o=function WHe(i){var t,r=[],e=0,n=i;for(r.push(cY(n,8,5,8,t)),t=r[0].mode,n=n.substr(r[0].modeString.length);n.length>0;){var a=cY(n,17,9,16,t);a.mode!==t?(t=a.mode,r.push(a),e++):r[e].modeString+=a.modeString,n=n.substr(a.modeString.length)}return r}(n),s=function $He(i){for(var r=0,e=0;e26?2:1}},{key:"getBitsCharacterCount",value:function(n){return this.bitsInCharacterCount[this.getVersionIndex(n||40)]}},{key:"getModeCountString",value:function(n,a){return this.modeIndicator+So(n,this.getBitsCharacterCount(a))}},{key:"encode",value:function(){}},{key:"getStringBitsLength",value:function(){}},{key:"getValue",value:function(){}}]),t}(mt),cHe=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),Lg(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})}},{key:"getValue",value:function(n){return parseInt(n,10)}},{key:"encode",value:function(n,a){var u,s=nY(n,3),l=this.getModeCountString(n.length,a);for(u=0;u>6*u&63|128,8)+s;s=(n>>6*o|255>>l<=0;n--)t[n]=i[n]^r[n];return t}function UHe(i,r){for(var t=[],e=0;e=0?r[n]:0))%255:w2[Hd[t[e+n]]^Hd[(i[e]+r[n])%255]];return t}function HHe(i,r){var t=[],e=i.length-1;do{t[e]=Hd[(i[e]+r)%255],e--}while(void 0!==i[e]);return t}function KHe(i,r){var s,l,t=T2[r-1],e=new Array(r).concat(i),n=new Array(e.length-t.length).concat(t),a=i.length,o=[];for(l=0;l=0;l--)o[r-1-l]=So(e[l],8);return o}function cY(i,r,t,e,n){var d,h,a=AHe.exec(i),o=a?a[0]:"",s=MHe.exec(i),l=s?s[0]:"",u=sY.exec(i),c=u?u[0]:"";return o&&(o.length>=r||i.length===o.length||o.length>=t&&!sY.test(i.charAt(o.length)))?(d="numeric",h=o):c&&(i.length===c.length||c.length>=e||n===aY)?(d=aY,h=o||l):(d="byte",h=c?c+lY.exec(i.substring(c.length))[0]:lY.exec(i)[0]),{mode:d,modeString:h}}function dY(i,r){var t=0,e=Vk.length-1,n=Math.floor(Vk.length/2);do{i1);return i<=Vk[t][r].totalDataCodewords?n+1:e+1}function hY(i,r,t){var e=Y0(r),n=r.length-1,a=i<=t);return n}(a,e);return s+So(l,n)}function Uk(i,r){return parseInt(i.charAt(r),10)}function fY(i,r){var e,n,t=i[0],a=0,o=r.length;for(e=0,n=8;e<=8;e++)6!==e&&Ja(i,Uk(r,o-1-a++),e,n);for(e=8,n=7;n>=0;n--)6!==n&&Ja(i,Uk(r,o-1-a++),e,n);for(a=0,n=t.length-1,e=8;n>=t.length-8;n--)Ja(i,Uk(r,o-1-a++),e,n);for(Ja(i,1,t.length-8,8),e=t.length-7,n=8;e=0&&n=5&&(r[i]+=3+n[i][a]-5),n[i][a]=1)}function i8e(i,r){var t=Math.floor(i/r*100),e=t%5,n=Math.abs(t-e-50),a=Math.abs(t+5-e-50);return 10*Math.min(n/5,a/5)}(function GHe(){var i,r;for(r=1;r<255;r++)(i=2*Hd[r-1])>255&&(i^=285),Hd[r]=i,w2[i]=r;Hd[r]=i=2*Hd[r-1]^285,Hd[-1]=0})(),function zHe(){for(var r=2;r<=68;r++)T2[r]=UHe(T2[r-1],[r,0])}();var zk=Math.round,o8e=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],mY=[[0,1],[1,1],[1,0]],s8e=function(i){b(t,i);var r=S(t);function t(e,n){var a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j9;return p(this,t),(a=r.call(this)).options=ne({},a.options,n),a.element=e,a.wrapper=a.element,a.onError=o,a._initElement(),a._initSurface(),a.setOptions(n),a}return v(t,[{key:"destroy",value:function(){this._destroySurface()}},{key:"_initElement",value:function(){Za(this.element,"k-qrcode")}},{key:"_initSurface",value:function(){var a=this.surface;(!a||a.options.type!==this.options.renderAs)&&(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())}},{key:"_createSurface",value:function(){return Ok.create(this.surfaceElement,{type:this.options.renderAs})}},{key:"_destroySurface",value:function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())}},{key:"_initSurfaceElement",value:function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))}},{key:"_destroySurfaceElement",value:function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)}},{key:"redraw",value:function(){var n=this._getSize();this.surface.clear(),this.surface.setSize({width:n,height:n}),this.createVisual(),this.surface.draw(this.visual)}},{key:"getSize",value:function(){var n=this.element,a=n.clientWidth,o=n.clientHeight,s={width:0,height:0};return a>0&&(s.width=a),o&&(s.height=o),s}},{key:"_resize",value:function(){this.redraw()}},{key:"createVisual",value:function(){this.visual=this._render()}},{key:"exportVisual",value:function(){return this._render()}},{key:"_render",value:function(){var a,u,c,d,f,n=this._value,o=this.options.border||{},s=this.options.padding||0,l=o.width||0;o.width=l;var g=new sn;try{n&&(c=function a8e(i,r,t){var e=function r8e(i){return i&&i.toLowerCase().indexOf("utf_8")>=0?new mHe:new uHe}(t),n=e.getEncodingResult(i,r),a=n.version,o=Vk[a-1][r],s=function BHe(i,r){for(var t=8*r,e=0,n=0,a=i;a.length=7&&vY(u,So(0,18)),fY(u,So(0,15)),function PHe(i,r){for(var e,n,a,t=new lHe(i[0]),o=0;o0;){for(var s=0;s=0&&o[d+1][h]===t[f][0]&&o[d+1][h-1]===t[f][0]&&(r[f]+=3),pY(f,n,r,0,o[d][h]),pY(f,n,r,1,o[h][d]),gY(f,r,t,o[d][h],a,0),gY(f,r,t,o[h][d],a,1);var _,g=c*c,C=Number.MAX_VALUE;for(s=0;s=7&&vY([d],function QHe(i){return hY(i,"1111100100101",18)}(a)),fY([d],function XHe(i){var t,e="";if(0===Y0(i))return"101010000010010";t=hY(Y0(i),"10100110111",15);for(var n=0;n0?s:200}return n}},{key:"_calculateBaseUnit",value:function(n,a){var o=Math.floor(n/a);if(o<1){var s=Math.ceil(1*a);this.onError(new Error("Insufficient size for QR Code: the current size is ".concat(n,"px and the minimum size is ").concat(s,"px.")))}else o*a>=n&&o-1>=1&&o--;return o}},{key:"_renderMatrix",value:function(n,a,o){for(var s=new Nd({fill:{color:this.options.color},stroke:null}),l=0;l0;){V=Gc(E),U=jd(E),ee=Kd.sqrt(gu(w*V)+gu(g*C-f*w*U)),K=J0(ee,G=f*C+g*w*U);var H=g*w*V/ee;I=0,0!=(ve=1-gu(H))&&(I=G-2*f*C/ve),M=E;var se=c/16*ve*(4+c*(4-3*ve));E=d+(1-se)*c*H*(K+se*ee*(I+se*G*(2*gu(I)-1))),N=c8e(E-M)<=this.DISTANCE_CONVERGENCE}var me=ve*(gu(l)-gu(u))/gu(u),ae=1+me/16384*(4096+me*(me*(320-175*me)-768)),Ne=me/1024*(256+me*(me*(74-47*me)-128)),Ce=Ne*ee*(I+Ne/4*(G*(2*gu(I)-1)-Ne/6*I*(4*gu(ee)-3)*(4*gu(I)-3))),_e=J0(w*V,g*C-f*w*U),Be=J0(g*V,-f*w+g*C*U);return{distance:tt(u*ae*(K-Ce),this.DISTANCE_PRECISION),azimuthFrom:Rd(_e),azimuthTo:Rd(Be)}}},{key:"toString",value:function(){return String(this.lat)+","+String(this.lng)}}],[{key:"fromLngLat",value:function(n){return new t(n[1],n[0])}},{key:"fromLatLng",value:function(n){return new t(n[0],n[1])}},{key:"create",value:function(n,a){if(Te(n))return n instanceof t?n.clone():1===arguments.length&&2===n.length?t.fromLatLng(n):new t(n,a)}}]),t}(mt),Wd=Math,M2=Wd.atan,kY=Wd.exp,CY=Wd.pow,bY=Wd.sin,SY=Wd.log,wY=Wd.tan,d8e=Pe,eE=Wd.PI,R2=eE/2,DY=eE/4,h8e=eE/180,f8e=x2.WGS84,EY=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).initProperties(),n._initOptions(e),n}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"initProperties",value:function(){ne(this,{MAX_LNG:180,MAX_LAT:85.0840590501,INVERSE_ITERATIONS:15,INVERSE_CONVERGENCE:1e-12})}},{key:"forward",value:function(n,a){var o=this,s=o.options,u=s.datum.a,c=s.centralMeridian,d=Mt(n.lat,-o.MAX_LAT,o.MAX_LAT),h=a?Mt(n.lng,-o.MAX_LNG,o.MAX_LNG):n.lng,f=br(h-c)*u,g=o._projectLat(d);return new d8e(f,g)}},{key:"_projectLat",value:function(n){var a=this.options.datum,o=a.e,s=a.a,l=br(n),u=wY(DY+l/2),c=o*bY(l),d=CY((1-c)/(1+c),o/2);return s*SY(u*d)}},{key:"inverse",value:function(n,a){var o=this,s=o.options,d=n.x/(h8e*s.datum.a)+s.centralMeridian,h=Mt(o._inverseY(n.y),-o.MAX_LAT,o.MAX_LAT);return a&&(d=Mt(d,-o.MAX_LNG,o.MAX_LNG)),new na(h,d)}},{key:"_inverseY",value:function(n){var h,a=this,o=a.options.datum,l=o.e,u=l/2,c=kY(-n/o.a),d=R2-2*M2(c);for(h=0;h<=a.INVERSE_ITERATIONS;h++){var f=l*bY(d),g=CY((1-f)/(1+f),u),_=R2-2*M2(c*g)-d;if(d+=_,Wd.abs(_)<=a.INVERSE_CONVERGENCE)break}return Rd(d)}}]),t}(mt);ze(EY,{centralMeridian:0,datum:f8e});var v8e=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"initProperties",value:function(){$(q(t.prototype),"initProperties",this).call(this),ne(this,{MAX_LAT:85.0511287798})}},{key:"_projectLat",value:function(n){var a=this.options.datum.a,o=br(n),s=wY(DY+o/2);return a*SY(s)}},{key:"_inverseY",value:function(n){var o=kY(-n/this.options.datum.a);return Rd(R2-2*M2(o))}}]),t}(EY),p8e=function(i){b(t,i);var r=S(t);function t(){var e;p(this,t);var a=Xe(e=r.call(this))._proj=new v8e,o=e.c=2*eE*a.options.datum.a;return e._tm=Hn().translate(.5,.5).scale(1/o,-1/o),e._itm=Hn().scale(o,-o).translate(-.5,-.5),e}return v(t,[{key:"toPoint",value:function(n,a,o){return this._proj.forward(n,o).transform(this._tm).scale(a||1)}},{key:"toLocation",value:function(n,a,o){var s=n.clone().scale(1/(a||1)).transform(this._itm);return this._proj.inverse(s,o)}}]),t}(mt),TY=Object.defineProperty,Pg=function(r){var t=document.createElement("div");return t.innerHTML=r,t.firstChild},Hk=function(r){for(;r.firstChild;)r.removeChild(r.firstChild)},AY=function(r,t){t.insertBefore(r,t.firstChild)},xY=function(r){return r.replace(/([a-z][A-Z])/g,function(e){return e.charAt(0)+"-"+e.charAt(1).toLowerCase()})},MY=function(r){return r&&String(r).endsWith("px")?r:String(r)+"px"},RY=function(r){var e,t=!1,n=[],a={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},o={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},s={tablet:/playbook|ipad|fire/i},l={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i};for(var u in a)if(a.hasOwnProperty(u)&&(n=r.match(a[u]))){if("windows"===u&&"plugins"in navigator)return!1;(t={}).device=u,t.tablet=O2(u,s,!1),t.browser=O2(r,l,"default"),t.name=O2(u,o),t[t.name]=!0,t.majorVersion=n[2],t.minorVersion=(n[3]||"0").replace("_","."),e=t.minorVersion.replace(".","").substr(0,2),t.flatVersion=t.majorVersion+e+new Array(3-(e.length<3?e.length:2)).join("0");break}return t};function O2(i,r,t){for(var e in r)if(r.hasOwnProperty(e)&&r[e].test(i))return e;return void 0!==t?t:i}var I2=function(){var r={down:"touchstart mousedown",move:"mousemove touchmove",up:"mouseup touchend touchcancel",cancel:"mouseleave touchcancel"},t=Pf();return t.touch&&(t.mobileOS.ios||t.mobileOS.android)?r={down:"touchstart",move:"touchmove",up:"touchend touchcancel",cancel:"touchcancel"}:t.pointers?r={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"}:t.msPointers&&(r={down:"MSPointerDown",move:"MSPointerMove",up:"MSPointerUp",cancel:"MSPointerCancel MSPointerLeave"}),r},Pf=function(){var r=RY(navigator.userAgent),t=function(r){var t=!1,e=[],n={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var a in n)if(n.hasOwnProperty(a)&&(e=r.match(n[a]))){(t={})[a]=!0,t[e[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||e[2],10);break}return t}(navigator.userAgent),e=t.chrome,n=t.crios,a=t.mozilla,o=t.safari,s={};s.mobileOS=r,s.touch="ontouchstart"in window,s.pointers=!e&&!n&&!a&&!o&&window.PointerEvent,s.msPointers=!e&&window.MSPointerEvent,s.mouseAndTouchPresent=s.touch&&!(s.mobileOS.ios||s.mobileOS.android),s.eventCapture=document.documentElement.addEventListener;var l=document.createElement("table"),u=s.transitions=!1,c=s.transforms=!1,d="string";return["Moz","webkit","O","ms"].forEach(function(h){var f=typeof l.style[h+"Transition"]===d;if(f||typeof l.style[h+"Transform"]===d){var g=h.toLowerCase();return c={css:"ms"!==g?"-"+g+"-":"",prefix:h,event:"o"===g||"webkit"===g?g:""},f&&((u=c).event=u.event?u.event+"TransitionEnd":"transitionend"),!1}}),l=null,s.transforms=c,s.transitions=u,s.delayedClick=function(){if(s.touch){if(s.mobileOS.ios)return!0;if(s.mobileOS.android){if(!s.browser.chrome)return!0;if(s.browser.version<32)return!1;var h=document.querySelector("meta[name=viewport]");return!(h?h.getAttribute("content"):"").match(/user-scalable=no/i)}}return!1},s},ui=function(r,t){return r.bind(t)},eo=function(r,t,e,n,a){S8e(r,t,e,n,a)},S8e=function(r,t,e,n,a){(Jr(t)?t:(t||"").split(" ")).forEach(function(s){w8e(r,s,e,n,a)})},w8e=function(r,t,e,n,a){var s,o=n;e&&Ri(e)&&!n?o=e:e&&function b8e(i){return"string"==typeof i}(e)&&Ri(o)&&(s=e),r.addEventListener(t,function(l){var u=l.target?l.target.closest(s):null;(!s||s&&l.target&&u)&&(TY(l,"currentTarget",{value:s?u:l.currentTarget}),TY(l,"delegateTarget",{value:r}),o(l))},Boolean(a))},wo=function(r,t,e,n,a){D8e(r,t,e,n,a)},D8e=function(r,t,e,n){(Jr(t)?t:(t||"").split(" ")).forEach(function(o){E8e(r,o,e,n)})},E8e=function(r,t,e,n){r.removeEventListener(t,e,Boolean(n))},Hs=function(r){var t=I2(navigator);return r.replace(/([^ ]+)/g,function e(o){return t[o]||o})},tE=function(r,t){var e=r.prototype;e.events?t.forEach(function(n){e.events.indexOf(n)<0&&e.events.push(n)}):e.events=t},Vc=function(){return Number(new Date)},OY=function(){},NY="function",A8e=function(){this._defaultPrevented=!0},x8e=function(){return!0===this._defaultPrevented},El=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._events={},e}return v(t,[{key:"destroy",value:function(){this.unbind()}},{key:"bind",value:function(n,a,o){var l,c,d,h,s=this,u="string"==typeof n?[n]:n||[],f=typeof a===NY;if(void 0===a){for(l in n)s.bind(l,n[l]);return s}var _=function(){var w=u[l];(h=f?a:a[w])&&(o&&(d=h,h=function(){s.unbind(w,h),d.apply(s,arguments)},h.original=d),(s._events[w]=s._events[w]||[]).push(h))};for(l=0,c=u.length;l=0;l--)(s[l]===a||s[l].original===a)&&s.splice(l,1);else o._events[n]=[];return o}},{key:"_setEvents",value:function(n){for(var a=(this.events||[]).length,o=0;o0?(Hk(this.element),function(r,t){var e=document.createElement("div");for(e.innerHTML=r;e.childNodes.length>0;)t.appendChild(e.childNodes[0])}(n.join(this.options.separator),this.element),this.showElement()):this.hideElement()}},{key:"hideElement",value:function(){this.element.style.display="none"}},{key:"showElement",value:function(){this.element.style.display=""}},{key:"_itemText",value:function(n){var a="",o=this._inZoomLevel(n.minZoom,n.maxZoom),s=this._inArea(n.extent);return o&&s&&(a+=n.text),a}},{key:"_inZoomLevel",value:function(n,a){var s=qt(n,-Number.MAX_VALUE),l=qt(a,Number.MAX_VALUE);return this._zoom>s&&this._zoom')}var N2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this)).element=e,a._initOptions(n);var o=nE("up"),s=nE("right"),l=nE("down"),u=nE("left");a.element.appendChild(o),a.element.appendChild(s),a.element.appendChild(l),a.element.appendChild(u),Za(a.element,"k-widget k-navigator"),eo(a.element,"click",".k-button",ui(a._click,Xe(a)));var c=a.element.parentNode.closest("[data-role]");return a._keyroot=c||a.element,a._tabindex(a._keyroot),a._keydownHandler=ui(a._keydown,Xe(a)),eo(a._keyroot,"keydown",a._keydownHandler),a}return v(t,[{key:"destroy",value:function(){this.dispose()}},{key:"dispose",value:function(){wo(this._keyroot,"keydown",this._keydownHandler)}},{key:"_tabindex",value:function(n){var a=n||this.wrapper||this.element,o=this.element,s="tabindex",l=a.getAttribute(s)||o.getAttribute(s);o.removeAttribute(s),a.setAttribute(s,isNaN(l)?0:l)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_pan",value:function(n,a){var o=this.options.panStep;this.trigger("pan",{x:n*o,y:a*o})}},{key:"_click",value:function(n){var a=0,o=0,s=n.currentTarget;s.matches(".k-navigator-n")?o=1:s.matches(".k-navigator-s")?o=-1:s.matches(".k-navigator-e")?a=1:s.matches(".k-navigator-w")&&(a=-1),this._pan(a,o),n.preventDefault()}},{key:"_keydown",value:function(n){switch(n.which){case pg_UP:this._pan(0,1),n.preventDefault();break;case pg_DOWN:this._pan(0,-1),n.preventDefault();break;case pg_RIGHT:this._pan(1,0),n.preventDefault();break;case pg_LEFT:this._pan(-1,0),n.preventDefault()}}}]),t}(El);function BY(i,r){return Pg('')}ze(N2,{name:"Navigator",panStep:1}),tE(N2,["pan"]);var F2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),(a=r.call(this)).element=e,a._initOptions(n);var o=BY("in","k-i-plus"),s=BY("out","k-i-minus");a.element.appendChild(o),a.element.appendChild(s),Za(a.element,"k-widget k-zoom-control k-button-group k-group-horizontal"),a._clickHandler=a._click.bind(Xe(a)),eo(a.element,"click",".k-button",a._clickHandler);var l=a.element.parentNode.closest("[data-role]");return a._keyroot=l||a.element,a._tabindex(a._keyroot),a._keydownHandler=a._keydown.bind(Xe(a)),eo(a._keyroot,"keydown",a._keydownHandler),a}return v(t,[{key:"destroy",value:function(){this.element&&wo(this.element,"click",this._clickHandler),this._keyroot&&wo(this._keyroot,"keydown",this._keydownHandler)}},{key:"_tabindex",value:function(n){var a=n||this.wrapper||this.element,o=this.element,s="tabindex",l=a.getAttribute(s)||o.getAttribute(s);o.removeAttribute(s),a.setAttribute(s,isNaN(l)?0:l)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_change",value:function(n){this.trigger("change",{delta:n*this.options.zoomStep})}},{key:"_click",value:function(n){var o=1;Zy(n.currentTarget,"k-zoom-out")&&(o=-1),this._change(o),n.preventDefault()}},{key:"_keydown",value:function(n){switch(n.which){case pg_NUMPAD_PLUS:case 187:case 61:this._change(1);break;case pg_NUMPAD_MINUS:case 189:case 173:this._change(-1)}}}]),t}(El);ze(F2,{name:"ZoomControl",zoomStep:1}),tE(F2,["change"]);var VY=Math,UY=VY.max,zY=VY.min,iE=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),a=r.call(this);var o=na.create(e),s=na.create(n);return o.lng+180>s.lng+180&&o.lat+90=a.lng+180&&s+180<=o.lng+180&&l+90>=o.lat+90&&l+90<=a.lat+90}},{key:"center",value:function(){var n=this.nw,a=this.se;return new na(n.lat+(a.lat-n.lat)/2,n.lng+(a.lng-n.lng)/2)}},{key:"containsAny",value:function(n){for(var a=!1,o=0;o=n.minZoom,s=!Te(n.maxZoom)||a<=n.maxZoom,l=iE.create(n.extent),u=!l||l.overlaps(this.map.extent());this._setVisibility(o&&s&&u)}},{key:"_setVisibility",value:function(n){this.element.style.display=n?"":"none"}},{key:"_activate",value:function(){var n=this.map;this._deactivate(),n.bind("beforeReset",this._beforeReset),n.bind("reset",this._reset),n.bind("resize",this._resize),n.bind("panEnd",this._panEnd)}},{key:"_deactivate",value:function(){var n=this.map;n.unbind("beforeReset",this._beforeReset),n.unbind("reset",this._reset),n.unbind("resize",this._resize),n.unbind("panEnd",this._panEnd)}},{key:"_updateAttribution",value:function(){var n=this.map.attribution;n&&n.add(this.options.attribution)}},{key:"_readData",value:function(){return this.options.data||[]}},{key:"_hasData",value:function(){return this._data&&this._data.length>0}}]),t}(mt),$d=Math,P2=Pe;function HY(i){return Ri(i)?i:y9.compile(i)}function N8e(i){return new P2(tt(i.x),tt(i.y))}function KY(i){var r=i;return"string"!=typeof i&&(r+="px"),r}var jY=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t),"string"==typeof(a=r.call(this,e,n)).options.subdomains&&(a.options.subdomains=a.options.subdomains.split(""));var o=a._viewType();return a._view=new o(a.element,a.options),a}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this._view.destroy(),this._view=null}},{key:"_beforeReset",value:function(){var n=this.map,a=n.locationToLayer(n.extent().nw).round();this._view.viewOrigin(a)}},{key:"_reset",value:function(){$(q(t.prototype),"_reset",this).call(this),this._updateView(),this._view.reset()}},{key:"_viewType",value:function(){return F8e}},{key:"_activate",value:function(){$(q(t.prototype),"_activate",this).call(this),this.support.mobileOS||(this._pan||(this._pan=LF(this._render.bind(this),100)),this.map.bind("pan",this._pan))}},{key:"_deactivate",value:function(){$(q(t.prototype),"_deactivate",this).call(this),this._pan&&this.map.unbind("pan",this._pan)}},{key:"_updateView",value:function(){var n=this._view,a=this.map,o=a.extent(),s={nw:a.locationToLayer(o.nw).round(),se:a.locationToLayer(o.se).round()};n.center(a.locationToLayer(a.center())),n.extent(s),n.zoom(a.zoom())}},{key:"_resize",value:function(){this._render()}},{key:"_panEnd",value:function(n){$(q(t.prototype),"_panEnd",this).call(this,n),this._render()}},{key:"_render",value:function(){this._updateView(),this._view.render()}}]),t}(L2);ze(jY,{tileSize:256,subdomains:["a","b","c"],urlTemplate:"",zIndex:1});var F8e=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).element=e,a._initOptions(n),a.pool=new $Y,a}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"center",value:function(n){this._center=n}},{key:"extent",value:function(n){this._extent=n}},{key:"viewOrigin",value:function(n){this._viewOrigin=n}},{key:"zoom",value:function(n){this._zoom=n}},{key:"pointToTileIndex",value:function(n){return new P2($d.floor(n.x/this.options.tileSize),$d.floor(n.y/this.options.tileSize))}},{key:"tileCount",value:function(){var n=this.size(),a=this.pointToTileIndex(this._extent.nw),o=this._extent.nw,s=this.indexToPoint(a).translate(-o.x,-o.y);return{x:$d.ceil(($d.abs(s.x)+n.width)/this.options.tileSize),y:$d.ceil(($d.abs(s.y)+n.height)/this.options.tileSize)}}},{key:"size",value:function(){var n=this._extent.nw,o=this._extent.se.clone().translate(-n.x,-n.y);return{width:o.x,height:o.y}}},{key:"indexToPoint",value:function(n){return new P2(n.x*this.options.tileSize,n.y*this.options.tileSize)}},{key:"subdomainText",value:function(){var n=this.options.subdomains;return n[this.subdomainIndex++%n.length]}},{key:"destroy",value:function(){Hk(this.element),this.pool.empty()}},{key:"reset",value:function(){this.pool.reset(),this.subdomainIndex=0,this.render()}},{key:"render",value:function(){var o,s,l,n=this.tileCount(),a=this.pointToTileIndex(this._extent.nw);for(s=0;s=0?o:a-(0===o?a:o)}}]),t}(mt),WY=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this)).id=e,a.visible=!0,a._initOptions(n),a.createElement(),a.show(),a}return v(t,[{key:"destroy",value:function(){var n=this.element,a=n?n.parentNode:null;n&&(a&&a.removeChild(n),this.element=null)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"createElement",value:function(){var n=document.createElement("img"),a=this.options.size+"px";n.style.position="absolute",n.style.display="block",n.style.width=n.style.maxWidth=a,n.style.height=n.style.maxHeight=a,this.element=n}},{key:"show",value:function(){var n=this.element;n.style.top=KY(this.options.offset.y),n.style.left=KY(this.options.offset.x);var a=this.url();a&&n.setAttribute("src",a),n.style.visibility="visible",this.visible=!0}},{key:"hide",value:function(){this.element.style.visibility="hidden",this.visible=!1}},{key:"url",value:function(){return HY(this.options.urlTemplate)(this.urlOptions())}},{key:"errorUrl",value:function(){return HY(this.options.errorUrlTemplate)(this.urlOptions())}},{key:"urlOptions",value:function(){var n=this.options;return{zoom:n.zoom,subdomain:n.subdomain,z:n.zoom,x:n.index.x,y:n.index.y,s:n.subdomain,quadkey:n.quadkey,q:n.quadkey,culture:n.culture,c:n.culture}}}]),t}(mt);ze(WY,{urlTemplate:"",errorUrlTemplate:""});var $Y=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.call(this))._items=[],e}return v(t,[{key:"get",value:function(n,a){return this._items.length>=this.options.maxSize&&this._remove(n),this._create(a)}},{key:"empty",value:function(){for(var n=this._items,a=0;ao&&!a[l].visible&&(s=l,o=u)}-1!==s&&(a[s].destroy(),a.splice(s,1))}}]),t}(mt);ze($Y,{maxSize:100});var Bf=Object.assign,Kk="change",L8e=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t);var o=Xe(a=r.call(this)),s=e[0]||e;o.capture=!1;var l=I2(navigator);return s.addEventListener?(l.down.split(" ").forEach(function(u){s.addEventListener(u,ui(o._press,o),!0)}),l.up.split(" ").forEach(function(u){s.addEventListener(u,ui(o._release,o),!0)})):(l.down.split(" ").forEach(function(u){s.attachEvent(u,ui(o._press,o))}),l.up.split(" ").forEach(function(u){s.attachEvent(u,ui(o._release,o))})),o.bind(["press","release"],n||{}),a}return v(t,[{key:"captureNext",value:function(){this.capture=!0}},{key:"cancelCapture",value:function(){this.capture=!1}},{key:"_press",value:function(n){this.trigger("press"),this.capture&&n.preventDefault()}},{key:"_release",value:function(n){var a=this;a.trigger("release"),a.capture&&(n.preventDefault(),a.cancelCapture())}}]),t}(El),qY=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));return a.forcedEnabled=!1,Bf(a,e),a.scale=1,a.horizontal?(a.measure="offsetWidth",a.scrollSize="scrollWidth",a.axis="x"):(a.measure="offsetHeight",a.scrollSize="scrollHeight",a.axis="y"),n}return v(t,[{key:"makeVirtual",value:function(){Bf(this,{virtual:!0,forcedEnabled:!0,_virtualMin:0,_virtualMax:0})}},{key:"virtualSize",value:function(n,a){(this._virtualMin!==n||this._virtualMax!==a)&&(this._virtualMin=n,this._virtualMax=a,this.update())}},{key:"outOfBounds",value:function(n){return n>this.max||nl,n||a.trigger(Kk,a))}}]),t}(El),P8e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));return a.x=new qY(Bf({horizontal:!0},e)),a.y=new qY(Bf({horizontal:!1},e)),a.container=e.container,a.forcedMinScale=e.minScale,a.maxScale=e.maxScale||100,a.bind(Kk,e),n}return v(t,[{key:"rescale",value:function(n){this.x.rescale(n),this.y.rescale(n),this.refresh()}},{key:"centerCoordinates",value:function(){return{x:Math.min(0,-this.x.centerOffset),y:Math.min(0,-this.y.centerOffset)}}},{key:"refresh",value:function(){var n=this;n.x.update(),n.y.update(),n.enabled=n.x.enabled||n.y.enabled,n.minScale=n.forcedMinScale||Math.min(n.x.minScale,n.y.minScale),n.fitScale=Math.max(n.x.minScale,n.y.minScale),n.trigger(Kk)}}]),t}(El),XY=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Bf(Xe(n),e),n}return v(t,[{key:"outOfBounds",value:function(){return this.dimension.outOfBounds(this.movable[this.axis])}},{key:"dragMove",value:function(n){var a=this,o=a.dimension,s=a.axis,l=a.movable,u=l[s]+n;if(o.enabled){var c=n;(uo.max&&n>0)&&(c*=a.resistance),l.translateAxis(s,c),a.trigger(Kk,a)}}}]),t}(El),B8e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var o,s,l,u,a=Xe(n=r.call(this));return Bf(a,{elastic:!0},e),a.x=o=new XY({axis:"x",dimension:a.dimensions.x,resistance:l=a.elastic?.5:0,movable:u=a.movable}),a.y=s=new XY({axis:"y",dimension:a.dimensions.y,resistance:l,movable:u}),a.userEvents.bind(["press","move","end","gesturestart","gesturechange"],{gesturestart:function(d){a.gesture=d,a.offset=nk(a.dimensions.container)},press:function(d){var h=d.event.target.closest("a");h&&h.matches("[data-navigate-on-press=true]")&&d.sender.cancel()},gesturechange:function(d){var E,h=a.gesture,f=h.center,g=d.center,_=d.distance/h.distance,w=a.dimensions.maxScale;u.scale<=a.dimensions.minScale&&_<1&&(_+=.8*(1-_)),u.scale*_>=w&&(_=w/u.scale);var M=u.x+a.offset.left,R=u.y+a.offset.top;E={x:(M-f.x)*_+g.x-M,y:(R-f.y)*_+g.y-R},u.scaleWith(_),o.dragMove(E.x),s.dragMove(E.y),a.dimensions.rescale(u.scale),a.gesture=d,d.preventDefault()},move:function(d){d.event.target.tagName.match(/textarea|input/i)||(o.dimension.enabled||s.dimension.enabled?(o.dragMove(d.x.delta),s.dragMove(d.y.delta),d.preventDefault()):d.touch.skip())},end:function(d){d.preventDefault()}}),n}return v(t)}(mt),ZY=function(r,t,e){return"translate3d("+r+"px,"+t+"px,0) scale("+e+")"},B2=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this));a.support=Pf(),n.transformStyle=n.support.transitions.prefix+"Transform",a.element=e,a.element.style.webkitTransformOrigin="left top",a.x=0,a.y=0,a.scale=1;var o=ZY(a.x,a.y,a.scale);return a.element.style[n.transformStyle]=o,a._saveCoordinates(o),n}return v(t,[{key:"translateAxis",value:function(n,a){this[n]+=a,this.refresh()}},{key:"scaleTo",value:function(n){this.scale=n,this.refresh()}},{key:"scaleWith",value:function(n){this.scale*=n,this.refresh()}},{key:"translate",value:function(n){this.x+=n.x,this.y+=n.y,this.refresh()}},{key:"moveAxis",value:function(n,a){this[n]=a,this.refresh()}},{key:"moveTo",value:function(n){Bf(this,n),this.refresh()}},{key:"refresh",value:function(){var s,n=this,a=n.x,o=n.y;n.round&&(a=Math.round(a),o=Math.round(o)),(s=ZY(a,o,n.scale))!==n.coordinates&&(n.element.style[this.transformStyle]=s,n._saveCoordinates(s),n.trigger(Kk))}},{key:"_saveCoordinates",value:function(n){this.coordinates=n}}]),t}(El),G2=sn,V2=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n))._pan=ui(a._pan,Xe(a)),a.surface=Ok.create(a.element,{width:e.scrollElement.clientWidth,height:e.scrollElement.clientHeight}),a._initRoot(),a.movable=new B2(a.surface.element),a._markers=[],a._click=a._handler("shapeClick"),a.surface.bind("click",a._click),a._mouseenter=a._handler("shapeMouseEnter"),a.surface.bind("mouseenter",a._mouseenter),a._mouseleave=a._handler("shapeMouseLeave"),a.surface.bind("mouseleave",a._mouseleave),a}return v(t,[{key:"destroy",value:function(){$(q(t.prototype),"destroy",this).call(this),this.surface.destroy()}},{key:"_reset",value:function(){$(q(t.prototype),"_reset",this).call(this),this._translateSurface(),this._data=this._readData(),this._hasData()&&this._load(this._data)}},{key:"_initRoot",value:function(){this._root=new G2,this.surface.draw(this._root)}},{key:"_beforeReset",value:function(){this.surface.clear(),this._initRoot()}},{key:"_resize",value:function(){this.surface.size(this.map.size())}},{key:"_readData",value:function(){var n=$(q(t.prototype),"_readData",this).call(this);return"FeatureCollection"===n.type?n.features:"GeometryCollection"===n.type?n.geometries:n}},{key:"_load",value:function(n){this._data=n,this._clearMarkers(),this._loader||(this._loader=new G8e(this.map,this.options.style,this));for(var a=new G2,o=0;o1?Nd:dt)(this.style),s=0;s-1&&this.items.splice(a,1)}},{key:"clear",value:function(){for(var n=0;n=this.duration}},{key:"timePassed",value:function(){return Math.min(this.duration,Vc()-this.startDate)}},{key:"moveTo",value:function(n){var a=this;a.initial=a.movable[a.axis],a.delta=n.location-a.initial,a.duration="number"==typeof n.duration?n.duration:300,a.tick=a._easeProxy(n.ease),a.startDate=Vc(),a.start()}},{key:"_easeProxy",value:function(n){var a=this;return function(){a.movable.moveAxis(a.axis,n(a.timePassed(),a.initial,a.delta,a.duration))}}}],[{key:"easeOutExpo",value:function(n,a,o,s){return n===s?a+o:o*(1-Math.pow(2,-10*n/s))+a}}]),t}(rE),aE=Object.assign,j8e=function(r){r.preventDefault()},rQ=800,aQ=0,H2="move",oE="tap",dQ="doubleTap",hQ="release",fQ="gesturechange",vQ="gestureend",pQ="gesturetap",q8e={api:0,touch:0,mouse:9,pointer:9};function gQ(i){var o,s,l,r=Pf(),t=[],e=i.originalEvent||i,n=i.currentTarget,a=0;if(i.api)t.push({id:2,event:i,target:i.target,currentTarget:i.target,location:i,type:"api"});else if(i.type.match(/touch/))for(o=(s=e?e.changedTouches:[]).length;a1}},{key:"_maxTouchesReached",value:function(){return this.touches.length>=this._maxTouches}},{key:"_disposeAll",value:function(){for(var n=this.touches;n.length>0;)n.pop().dispose()}},{key:"_isMoved",value:function(){return Xo(this.touches,function(n){return n.isMoved()}).length}},{key:"_select",value:function(n){(!this.allowSelection||this.trigger("select",{event:n}))&&n.preventDefault()}},{key:"_start",value:function(n){var l,d,a=this,o=0,s=a.filter,u=gQ(n),c=u.length,h=n.which;if(!(h&&h>1||a._maxTouchesReached()))for(t.current=null,a.currentTarget=n.currentTarget,a.stopPropagation&&n.stopPropagation();oa.max?a.max:a.min)}},{key:"_moveTo",value:function(n){this.transition.moveTo({location:n,duration:500,ease:iQ.easeOutExpo})}}]),t}(rE),s5e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this,e));return Bg(a,e,{origin:{},destination:{},offset:{}}),n}return v(t,[{key:"tick",value:function(){this._updateCoordinates(),this.moveTo(this.origin)}},{key:"done",value:function(){return Gf(this.offset.y)<5&&Gf(this.offset.x)<5}},{key:"onEnd",value:function(){this.moveTo(this.destination),this.callback&&this.callback.call()}},{key:"setCoordinates",value:function(n,a){this.offset={},this.origin=n,this.destination=a}},{key:"setCallback",value:function(n){n&&Ri(n)?this.callback=n:n=void 0}},{key:"_updateCoordinates",value:function(){this.offset={x:(this.destination.x-this.origin.x)/4,y:(this.destination.y-this.origin.y)/4},this.origin={y:this.origin.y+this.offset.y,x:this.origin.x+this.offset.x}}}]),t}(rE),l5e=function(i){b(t,i);var r=S(t);function t(e){var n;p(this,t);var a=Xe(n=r.call(this)),o="x"===e.axis,l=Pg('
    ');return Bg(a,e,{element:l,elementSize:0,movable:new B2(l),scrollMovable:e.movable,alwaysVisible:e.alwaysVisible,size:o?"width":"height"}),a.scrollMovable.bind(sE,a.refresh.bind(a)),a.container.appendChild(l),e.alwaysVisible&&a.show(),n}return v(t,[{key:"refresh",value:function(){var n=this,a=n.axis,o=n.dimension,s=o.size,u=s/o.total,c=Math.round(-n.scrollMovable[a]*u),d=Math.round(s*u);this.element.style.display=u>=1?"none":"",c+d>s?d=s-c:c<0&&(d+=c,c=0),n.elementSize!==d&&(n.element.style[n.size]=d+"px",n.elementSize=d),n.movable.moveAxis(a,c)}},{key:"show",value:function(){this.element.style.opacity=.7,this.element.style.visibility="visible"}},{key:"hide",value:function(){this.alwaysVisible||(this.element.style.opacity=0)}}]),t}(mt),$2=function(i){b(t,i);var r=S(t);function t(e,n){var a;p(this,t);var o=Xe(a=r.call(this));a.element=e,a._initOptions(n);var s=function(r){var t=RY(r);return t.ios||t.android}(navigator.userAgent);o._native=o.options.useNative&&s;var l=Pg('
    ');if(o._native)return Za(e,"km-native-scroller"),AY(l,e),Bg(o,{scrollElement:e,fixedContainer:e.children[0]}),gs(a);e.style.overflow="hidden",Za(e,"km-scroll-wrapper"),function(r,t){for(r.appendChild(t);r.firstChild!==t;)t.appendChild(r.firstChild)}(e,Pg('
    ')),AY(l,e);var c=e.children[1],d=new L8e(e),h=new B2(c),f=new P8e({element:c,container:e,forcedEnabled:o.options.zoom}),g=a.options.avoidScrolling,_=new j2(e,{touchAction:"pan-y",fastTap:!0,allowSelection:!0,preventDragEvent:!0,captureUpIfMoved:!0,multiTouch:o.options.zoom,supportDoubleTap:o.options.supportDoubleTap,start:function(R){f.refresh();var N=Gf(R.x.velocity),V=Gf(R.y.velocity),U=2*N>=V,ee=function(r,t){return r===t||function(r,t){if(!t)return!1;for(var e=t.parentNode;null!==e;){if(e===r)return!0;e=e.parentNode}return!1}(r,t)}(o.fixedContainer,R.event.target),ve=2*V>=N;!ee&&!g(R)&&o.enabled&&(f.x.enabled&&U||f.y.enabled&&ve)?_.capture():_.cancel()}}),C=new B8e({movable:h,dimensions:f,userEvents:_,elastic:o.options.elastic}),w=new a5e({movable:h,dimensions:f,userEvents:_,tapCapture:d}),E=new s5e({moveTo:function(R){o.scrollTo(R.x,R.y)}});return h.bind(sE,function(){o.scrollTop=-h.y,o.scrollLeft=-h.x,o.trigger("scroll",{scrollTop:o.scrollTop,scrollLeft:o.scrollLeft})}),o.options.mousewheelScrolling&&(a._wheelScrollHandler=a._wheelScroll.bind(Xe(a)),eo(e,"DOMMouseScroll mousewheel",a._wheelScrollHandler)),Bg(o,{movable:h,dimensions:f,zoomSnapBack:w,animatedScroller:E,userEvents:_,pane:C,tapCapture:d,pulled:!1,enabled:!0,scrollElement:c,scrollTop:0,scrollLeft:0,fixedContainer:e.children[0]}),o._initAxis("x"),o._initAxis("y"),o._wheelEnd=function(){o._wheel=!1,o.userEvents.end(0,o._wheelY)},f.refresh(),o.options.pullToRefresh&&o._initPullToRefresh(),a}return v(t,[{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_wheelScroll",value:function(n){if(!n.ctrlKey){this._wheel||(this._wheel=!0,this._wheelY=0,this.userEvents.press(0,this._wheelY)),clearTimeout(this._wheelTimeout),this._wheelTimeout=setTimeout(this._wheelEnd,50);var a=function(r){var n,t=r.originalEvent||r,e=t.wheelDeltaY;return t.wheelDelta?(void 0===e||e)&&(n=t.wheelDelta):t.detail&&t.axis===t.VERTICAL_AXIS&&(n=10*-t.detail),n}(n);a&&(this._wheelY+=a,this.userEvents.move(0,this._wheelY)),n.preventDefault()}}},{key:"makeVirtual",value:function(){this.dimensions.y.makeVirtual()}},{key:"virtualSize",value:function(n,a){this.dimensions.y.virtualSize(n,a)}},{key:"height",value:function(){return this.dimensions.y.size}},{key:"scrollHeight",value:function(){return this.scrollElement.scrollHeight}},{key:"scrollWidth",value:function(){return this.scrollElement.scrollWidth}},{key:"_resize",value:function(){this._native||this.contentResized()}},{key:"setOptions",value:function(n){this._initOptions(n),n.pullToRefresh&&this._initPullToRefresh()}},{key:"reset",value:function(){this._native?this.scrollElement.scrollTop(0):(this.movable.moveTo({x:0,y:0}),this._scale(1))}},{key:"contentResized",value:function(){this.dimensions.refresh(),this.pane.x.outOfBounds()&&this.movable.moveAxis("x",this.dimensions.x.min),this.pane.y.outOfBounds()&&this.movable.moveAxis("y",this.dimensions.y.min)}},{key:"zoomOut",value:function(){var n=this.dimensions;n.refresh(),this._scale(n.fitScale),this.movable.moveTo(n.centerCoordinates())}},{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1}},{key:"scrollTo",value:function(n,a){this._native?(this.scrollElement.scrollLeft(Gf(n)),this.scrollElement.scrollTop(Gf(a))):(this.dimensions.refresh(),this.movable.moveTo({x:n,y:a}))}},{key:"animatedScrollTo",value:function(n,a,o){this._native?this.scrollTo(n,a):(this.animatedScroller.setCoordinates({x:this.movable.x,y:this.movable.y},{x:n,y:a}),this.animatedScroller.setCallback(o),this.animatedScroller.start())}},{key:"pullHandled",value:function(){}},{key:"destroy",value:function(){wo(this.element,"DOMMouseScroll mousewheel",this._wheelScrollHandler),this.userEvents&&this.userEvents.destroy()}},{key:"_scale",value:function(n){this.dimensions.rescale(n),this.movable.scaleTo(n)}},{key:"_initPullToRefresh",value:function(){}},{key:"_dragEnd",value:function(){}},{key:"_paneChange",value:function(){}},{key:"_initAxis",value:function(n){var a=this,o=a.movable,s=a.dimensions[n],l=a.tapCapture,u=a.pane[n],c=new l5e({axis:n,movable:o,dimension:s,container:a.element,alwaysVisible:a.options.visibleScrollHints});s.bind(sE,function(){c.refresh()}),u.bind(sE,function(){c.show()}),a[n+"inertia"]=new o5e({axis:n,paneAxis:u,movable:o,tapCapture:l,userEvents:a.userEvents,dimension:s,elastic:a.options.elastic,friction:a.options.friction||.96,velocityMultiplier:a.options.velocityMultiplier||10,end:function(){c.hide(),a.trigger("scrollEnd",{axis:n,scrollTop:a.scrollTop,scrollLeft:a.scrollLeft})}})}}]),t}(El);ze($2,{name:"Scroller",zoom:!1,pullOffset:140,visibleScrollHints:!1,elastic:!0,useNative:!1,mousewheelScrolling:!0,avoidScrolling:function(){return!1},pullToRefresh:!1,messages:{pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"}}),tE($2,["pull","scroll","resize"]);var u5e=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p(this,i),this.sender=t.sender||r,this.widget=r,this.rtl=Boolean(t.rtl)}return v(i,[{key:"notify",value:function(t,e){this.widget&&this.widget.trigger(t,e)}}]),i}(),c5e=u5e,qd=Math,CQ=qd.min,q2=qd.pow,bQ=Pe,lE="marker",uE="location",SQ="DOMMouseScroll mousewheel",p5e=De({bubble:YY,shape:V2,tile:jY},lE,z2);function wQ(i){var r=[];if(i)for(var t=xY(i).split("-"),e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p(this,t),(n=r.call(this))._init(e,a,o,s),n}return v(t,[{key:"destroy",value:function(){this.scroller.destroy(),this.navigator&&this.navigator.destroy(),this.attribution&&this.attribution.destroy(),this.zoomControl&&this.zoomControl.destroy(),Jr(this.markers)?this.markers.forEach(function(a){a.destroy()}):this.markers.destroy();for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.support=Pf(),this.context=s,this.initObserver(s),this.initServices(s),this._initOptions(a),this._setEvents(a),this.crs=new p8e,this._initElement(n),this._viewOrigin=this._getOrigin(),this._initScroller(),this._initMarkers(),this._initControls(),this._initLayers(),this._reset(),this._mousewheelHandler=this._mousewheel.bind(this),eo(this.element,SQ,this._mousewheelHandler)}},{key:"_initOptions",value:function(n){this.options=ne({},this.options,n)}},{key:"_initElement",value:function(n){this.element=n,Za(n,"k-map"),n.style.position="relative",n.setAttribute("data-role","map"),Hk(n);var a=Pg("
    ");this.element.appendChild(a)}},{key:"initServices",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.widgetService=new c5e(this,n)}},{key:"initObserver",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.observers=[],this.addObserver(n.observer)}},{key:"addObserver",value:function(n){n&&this.observers.push(n)}},{key:"removeObserver",value:function(n){var a=this.observers.indexOf(n);a>=0&&this.observers.splice(a,1)}},{key:"requiresHandlers",value:function(n){for(var a=this.observers,o=0;o1&&void 0!==arguments[1]?arguments[1]:{};a.sender=this;for(var o=this.observers,s=!1,l=0;l1&&void 0!==arguments[1]?arguments[1]:{};a.sender=this;for(var o=this.observers,s=!1,l=0;l0&&void 0!==arguments[0]?arguments[0]:{},a=this.element;this.destroy(),Hk(a),this._init(a,n,{},this.context),this._reset()}},{key:"locationToLayer",value:function(n,a){var o=!this.options.wraparound,s=na.create(n);return this.crs.toPoint(s,this._layerSize(a),o)}},{key:"layerToLocation",value:function(n,a){var o=!this.options.wraparound,s=bQ.create(n);return this.crs.toLocation(s,this._layerSize(a),o)}},{key:"locationToView",value:function(n){var a=na.create(n),o=this.locationToLayer(this._viewOrigin);return this.locationToLayer(a).translateWith(o.scale(-1))}},{key:"viewToLocation",value:function(n,a){var o=this.locationToLayer(this._getOrigin(),a),l=bQ.create(n).clone().translateWith(o);return this.layerToLocation(l,a)}},{key:"eventOffset",value:function(n){var a,o,s=nk(this.element);if(n.x&&n.x[uE]||n.y&&n.y[uE])a=n.x[uE]-s.left,o=n.y[uE]-s.top;else{var l=n.originalEvent||n;a=qt(l.pageX,l.clientX)-s.left,o=qt(l.pageY,l.clientY)-s.top}return new Pe(a,o)}},{key:"eventToView",value:function(n){var a=this.eventOffset(n);return this.locationToView(this.viewToLocation(a))}},{key:"eventToLayer",value:function(n){return this.locationToLayer(this.eventToLocation(n))}},{key:"eventToLocation",value:function(n){var a=this.eventOffset(n);return this.viewToLocation(a)}},{key:"viewSize",value:function(){var n=this.element,a=this._layerSize(),o=n.clientWidth;return this.options.wraparound||(o=CQ(a,o)),{width:o,height:CQ(a,n.clientHeight)}}},{key:"exportVisual",value:function(){return this._reset(),!1}},{key:"_setOrigin",value:function(n,a){var s,o=this.viewSize(),l=this._origin=na.create(n);return(s=this.locationToLayer(l,a)).x+=o.width/2,s.y+=o.height/2,this.options.center=this.layerToLocation(s,a).toArray(),this}},{key:"_getOrigin",value:function(n){var o,a=this.viewSize();return(n||!this._origin)&&((o=this.locationToLayer(this.center())).x-=a.width/2,o.y-=a.height/2,this._origin=this.layerToLocation(o)),this._origin}},{key:"_setExtent",value:function(n){var a=iE.create(n),o=a.se.clone();this.options.wraparound&&o.lng<0&&n.nw.lng>0&&(o.lng=180+(180+o.lng));var s=new iE(a.nw,o);this.center(s.center());var c,l=this.element.clientWidth,u=this.element.clientHeight;for(c=this.options.maxZoom;c>=this.options.minZoom;c--){var d=this.locationToLayer(s.nw,c),h=this.locationToLayer(s.se,c),f=qd.abs(h.x-d.x),g=qd.abs(h.y-d.y);if(f<=l&&g<=u)break}this.zoom(c)}},{key:"_getExtent",value:function(){var n=this._getOrigin(),a=this.locationToLayer(n),o=this.viewSize();a.x+=o.width,a.y+=o.height;var s=this.layerToLocation(a);return new iE(n,s)}},{key:"_zoomAround",value:function(n,a){this._setOrigin(this.layerToLocation(n,a),a),this.zoom(a)}},{key:"_initControls",value:function(){var n=this.options.controls;n.attribution&&this._createAttribution(n.attribution),this.support.mobileOS||(n.navigator&&this._createNavigator(n.navigator),n.zoom&&this._createZoomControl(n.zoom))}},{key:"_createControlElement",value:function(n,a){var o=n.position||a,s="."+wQ(o).replace(" ","."),l=this.element.querySelector(".k-map-controls"+s)||[];if(0===l.length){var u=document.createElement("div");Za(u,"k-map-controls "+wQ(o)),this.element.appendChild(l=u)}var c=document.createElement("div");return l.appendChild(c),c}},{key:"_createAttribution",value:function(n){var a=this._createControlElement(n,"bottomRight");this.attribution=new FY(a,n)}},{key:"_createNavigator",value:function(n){var a=this._createControlElement(n,"topLeft"),o=this.navigator=new N2(a,n);this._navigatorPan=this._navigatorPan.bind(this),o.bind("pan",this._navigatorPan),this._navigatorCenter=this._navigatorCenter.bind(this),o.bind("center",this._navigatorCenter)}},{key:"_navigatorPan",value:function(n){var a=this.scroller,o=a.scrollLeft+n.x,s=a.scrollTop-n.y,l=this._virtualSize,c=this.element.clientHeight;o=Mt(o,l.x.min,l.x.max-this.element.clientWidth),s=Mt(s,l.y.min,l.y.max-c),this.scroller.one("scroll",ui(this._scrollEnd,this)),this.scroller.scrollTo(-o,-s)}},{key:"_navigatorCenter",value:function(){this.center(this.options.center)}},{key:"_createZoomControl",value:function(n){var a=this._createControlElement(n,"topLeft"),o=this.zoomControl=new F2(a,n);this._zoomControlChange=this._zoomControlChange.bind(this),o.bind("change",this._zoomControlChange)}},{key:"_zoomControlChange",value:function(n){this.trigger("zoomStart",{originalEvent:n})||(this.zoom(this.zoom()+n.delta),this.trigger("zoomEnd",{originalEvent:n}))}},{key:"_initScroller",value:function(){var o=this.scroller=new $2(this.element.children[0],{friction:this.support.mobileOS?.93:.9,velocityMultiplier:5,zoom:!1!==this.options.zoomable,mousewheelScrolling:!1,supportDoubleTap:!0});o.bind("scroll",ui(this._scroll,this)),o.bind("scrollEnd",ui(this._scrollEnd,this)),o.userEvents.bind("gesturestart",ui(this._scaleStart,this)),o.userEvents.bind("gestureend",ui(this._scale,this)),o.userEvents.bind("doubleTap",ui(this._doubleTap,this)),o.userEvents.bind("tap",ui(this._tap,this)),this.scrollElement=o.scrollElement}},{key:"_initLayers",value:function(){for(var n=this.options.layers,a=this.layers=[],o=0;o0||(this.markers=new z2(this,this.options.markerDefaults),this.markers.add(this.options.markers))}},{key:"_scroll",value:function(n){var a=this.locationToLayer(this._viewOrigin).round(),o=n.sender.movable,s=new Pe(o.x,o.y).scale(-1).scale(1/o.scale);a.x+=s.x,a.y+=s.y,this._scrollOffset=s,this._setOrigin(this.layerToLocation(a)),this.trigger("pan",{originalEvent:n,origin:this._getOrigin(),center:this.center()})}},{key:"_scrollEnd",value:function(n){!this._scrollOffset||!this._panComplete()||(this._scrollOffset=null,this._panEndTimestamp=Vc(),this.trigger("panEnd",{originalEvent:n,origin:this._getOrigin(),center:this.center()}))}},{key:"_panComplete",value:function(){return Vc()-(this._panEndTimestamp||0)>50}},{key:"_scaleStart",value:function(n){if(this.trigger("zoomStart",{originalEvent:n})){var a=n.touches[1];a&&a.cancel()}}},{key:"_scale",value:function(n){var o=this._scaleToZoom(this.scroller.movable.scale),s=new Pe(n.center.x,n.center.y),l=this.viewToLocation(s,o),c=this.locationToLayer(l,o).translate(-s.x,-s.y);this._zoomAround(c,o),this.trigger("zoomEnd",{originalEvent:n})}},{key:"_scaleToZoom",value:function(n){var a=this._layerSize()*n,s=qd.log(a/this.options.minSize)/qd.log(2);return qd.round(s)}},{key:"_reset",value:function(){this.attribution&&this.attribution.filter(this.center(),this.zoom()),this._viewOrigin=this._getOrigin(!0),this._resetScroller(),this.trigger("beforeReset"),this.trigger("reset")}},{key:"_resetScroller",value:function(){var n=this.scroller,a=n.dimensions.x,o=n.dimensions.y,s=this._layerSize(),l=this.extent().nw,u=this.locationToLayer(l).round();n.movable.round=!0,n.reset(),n.userEvents.cancel();var c=this.zoom();n.dimensions.forcedMinScale=q2(2,this.options.minZoom-c),n.dimensions.maxScale=q2(2,this.options.maxZoom-c);var d={min:-u.x,max:s-u.x},h={min:-u.y,max:s-u.y};if(this.options.wraparound&&(d.max=20*s,d.min=-d.max),!1===this.options.pannable){var f=this.viewSize();d.min=h.min=0,d.max=f.width,h.max=f.height}a.makeVirtual(),o.makeVirtual(),a.virtualSize(d.min,d.max),o.virtualSize(h.min,h.max),this._virtualSize={x:d,y:h}}},{key:"_renderLayers",value:function(){}},{key:"_layerSize",value:function(n){var a=qt(n,this.options.zoom);return this.options.minSize*q2(2,a)}},{key:"_tap",value:function(n){if(this._panComplete()){var a=this.eventOffset(n);this.trigger("click",{originalEvent:n,location:this.viewToLocation(a)})}}},{key:"_doubleTap",value:function(n){if(!1!==this.options.zoomable&&!this.trigger("zoomStart",{originalEvent:n})){var o=this.zoom()+1,s=this.eventOffset(n),l=this.viewToLocation(s),c=this.locationToLayer(l,o).translate(-s.x,-s.y);this._zoomAround(c,o),this.trigger("zoomEnd",{originalEvent:n})}}},{key:"_mousewheel",value:function(n){n.preventDefault();var a=lN(n)>0?-1:1,o=this.options,s=this.zoom(),l=Mt(s+a,o.minZoom,o.maxZoom);if(!1!==o.zoomable&&l!==s&&!this.trigger("zoomStart",{originalEvent:n})){var u=this.eventOffset(n),c=this.viewToLocation(u),h=this.locationToLayer(c,l).translate(-u.x,-u.y);this._zoomAround(h,l),this.trigger("zoomEnd",{originalEvent:n})}}}]),t}(El);ze(DQ,{name:"Map",controls:{attribution:!0,navigator:{panStep:100},zoom:!0},layers:[],layerDefaults:{shape:{style:{fill:{color:"#fff"},stroke:{color:"#aaa",width:.5}}},bubble:{style:{fill:{color:"#fff",opacity:.5},stroke:{color:"#aaa",width:.5}}},marker:{shape:"pinTarget",tooltip:{position:"top"}}},center:[0,0],zoom:3,minSize:256,minZoom:1,maxZoom:19,markers:[],markerDefaults:{shape:"pinTarget",tooltip:{position:"top"}},wraparound:!0,renderPointsAsMarkers:!1}),tE(DQ,["beforeReset","click","markerActivate","markerClick","markerCreated","markerMouseEnter","markerMouseLeave","pan","panEnd","reset","shapeClick","shapeCreated","shapeFeatureCreated","shapeMouseEnter","shapeMouseLeave","zoomEnd","zoomStart"]);var X2="Arial, Helvetica, sans-serif",Z2="12px "+X2,TQ="16px "+X2,AQ="transparent",MQ=function(){return{icon:{border:{width:1}},label:{font:Z2,padding:3},line:{length:10,width:2},visible:!0}},m5e=function(){return{labels:{font:Z2},notes:MQ(),title:{font:TQ,margin:5}}},M5e=function(r){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:r.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:AQ},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:AQ,visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:MQ(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},R5e=function(){return{font:TQ}},O5e=function(){return{labels:{font:Z2}}},GQ=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{axisDefaults:m5e(),categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:M5e(r),title:R5e(),legend:O5e()}};function I5e(i,r){var t={width:"800px",height:"600px",cors:"Anonymous"},e=i,n=i.clippedBBox();if(n){var a=n.getOrigin();(e=new sn).transform(Hn().translate(-a.x,-a.y)),e.children.push(i);var o=n.getSize();t.width=o.width+"px",t.height=o.height+"px"}var s=Object.assign(t,r),l=document.createElement("div"),u=l.style;u.display="none",u.width=s.width,u.height=s.height,document.body.appendChild(l);var c=new CX(l,s);c.suspendTracking(),c.draw(e);var d=c.image(),h=function(){c.destroy(),document.body.removeChild(l)};return d.then(h,h),d}function F5e(i,r){var t=function N5e(i){var r=new hX({skipBaseHref:!0}),t=i.clippedBBox(),e=i;if(t){var n=t.getOrigin(),a=new sn;a.transform(Hn().translate(-n.x,-n.y)),a.children.push(i),e=a}r.load([e]);var o="").concat(r.render(),"");return r.destroy(),o}(i);return(!r||!r.raw)&&(t="data:image/svg+xml;base64,"+GD(t)),gf().resolve(t)}function cE(i){return"string"==typeof i}var r,G5e=/\{(\d+)}?\}/g,V5e=function(){function i(r){var t=r.name,e=r.message;if(p(this,i),!t||!e)throw new Error("{ name: string, message: string } object is required!");this.name=t,this.message=e}return v(i,[{key:"formatMessage",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n=1;a--){var o=e[a];(o===r.variant||o===r.script)&&e.splice(a,1)}var s=e.length;if(s>1)return e[s-1].toUpperCase()}(i.name,t),i.territory=e,e}function r4e(i,r){for(var t in r)"numbers"===t?q5e(i,r[t]):"dates"===t&&n4e(i,r[t])}function $Q(i,r){var t=r.type,e=r.nameType,n=r.standAlone,a=r.lower,l=(a?"lower-":"")+e,u=Vg(i).calendar[t][n?"stand-alone":"format"],c=u[l];return!c&&a&&(c=u[l]=function u4e(i){var r=Array.isArray(i)?function s4e(i){for(var r=[],t=0;t1&&void 0!==arguments[1])||arguments[1];if(XQ[i])return XQ[i];var t=zi.supplemental.currencyData;if(t){var e=t.region[i];if(e)return m4e(e);if(r)throw f4e.error(i)}else if(r)throw h4e.error()}(vE(t),r);if(!n&&r)throw v4e.error(t.name);e.localeCurrency=n}return e.localeCurrency}var iL=["sun","mon","tue","wed","thu","fri","sat"],b4e=Tl.NoWeekData,S4e=Tl.NoFirstDay;function QQ(i){var r=Vg(i);if(!isNaN(r.firstDay))return r.firstDay;var t=zi.supplemental.weekData;if(!t)throw b4e.error();var e=t.firstDay[vE(r)]||t.firstDay["001"];if(!e)throw S4e.error();return r.firstDay=iL.indexOf(e),r.firstDay}var w4e=Tl.NoWeekData;function JQ(i){return 1/i==-1/0}function eJ(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.currency||(r.currency=YQ(i,!0));var t=y4e(i,r);return t}function tJ(i,r,t,e,n){var a=n.numbers.symbols,o=i.indexOf(a.decimal),s=e.groupSize.slice(),l=s.shift(),u=-1!==o?o:t+1,c=i.substring(r,u),d=i,h=c.length;if(h>=l){for(var f=h,g=[];f>-1;){var _=c.substring(f-l,f);_&&g.push(_),f-=l;var C=s.shift();if(0===(l=void 0!==C?C:l)){(_=c.substring(0,f))&&g.push(_);break}}c=g.reverse().join(a.group),d=i.substring(0,r)+c+i.substring(u)}return d}function aL(i){return i===Wk||i===dE}function to(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e=r-String(i).length,n=i;if(e>0){var a=new Array(e+1).join("0");n=t?i+a:a+i}return n}function $k(i,r){var t=i,e=r||0;return t=t.toString().split("e"),t=(t=Math.round(Number(t[0]+"e"+(t[1]?Number(t[1])+e:e)))).toString().split("e"),(t=Number(t[0]+"e"+(t[1]?Number(t[1])-e:-e))).toFixed(Math.min(e,20))}var M4e=/0+$/;function N4e(i,r,t){var e=t.numbers.symbols,n=r.style,a=aL(n);if(n===VQ)return(void 0!==r.minimumFractionDigits?i.toExponential(r.minimumFractionDigits):i.toExponential()).replace(Zd,e.decimal);var l,s=i;a&&(r.value=s,l=eJ(t,r)),n===Ug&&(s*=100,l=e.percentSign);var u=function R4e(i){var a,r=i.minimumFractionDigits,t=i.maximumFractionDigits,e=i.style,n=aL(e);return n&&(a=function k4e(i){var r=2,t=2,e=((zi.supplemental.currencyData||{}).fractions||{})[i];return e&&e._digits&&(t=r=parseInt(e._digits,10)),{minimumFractionDigits:r,maximumFractionDigits:t}}(i.currency)),void 0===r&&(r=n?a.minimumFractionDigits:0),void 0===t&&(t=e===Ug?Math.max(r,0):n?Math.max(r,a.maximumFractionDigits):Math.max(r,3)),{minimumFractionDigits:r,maximumFractionDigits:t}}(r),c=u.minimumFractionDigits,h=(s=$k(s,u.maximumFractionDigits))<0,f=JQ(i),g=s.split(Zd),_=g[0],C=to(g[1]?g[1].replace(M4e,""):"",c,!0);h&&(_=_.substring(1)),r.minimumIntegerDigits&&(_=to(_,r.minimumIntegerDigits));var E,w=!1!==r.useGrouping?tJ(_,0,_.length,r,t):_;if(C&&(w+=e.decimal+C),a&&"name"===r.currencyDisplay)E=function I4e(i,r){var t=i.numbers.currency,e=1!==r?t["unitPattern-count-other"]:t["unitPattern-count-one"];return r<0&&(e=e.replace(Xd,"-".concat(Xd))),e}(t,i);else{var M=r.patterns;E=h||f?M[1]||"-"+M[0]:M[0]}if(E===Xd&&!h)return w;var R=function O4e(i,r,t){for(var e="",n=0,a=r.length;n-1||r.indexOf('"')>-1||r.indexOf("\\")>-1){var t=i.literals=[];i.format=r.replace(F4e,function(e){var n=e.charAt(0).replace("\\",""),a=e.slice(1).replace(n,"");return t.push(a),"__??__"})}}var P4e=/(\.(?:[0-9]*[1-9])?)0+$/g,B4e=/\.$/,G4e=/\,/g;function aJ(i,r,t){return-1===i&&-1!==r?r:-1!==i&&-1===r?i:t?Math.min(i,r):Math.max(i,r)}function X4e(i,r,t){var e={negative:i<0,number:Math.abs(i),negativeZero:JQ(i),format:r};return function H4e(i){var r=i.number,t=i.format;if(t=t.split(";"),(i.negative||i.negativeZero)&&t[1])t=t[1],i.hasNegativeFormat=!0;else if(0===r){var e=t[2];t=e||t[0],e&&function z4e(i){return-1===i.indexOf("#")&&-1===i.indexOf("0")}(e)&&(i.constant=e)}else t=t[0];i.format=t}(e),e.constant?e.constant:(rJ(e),iJ(e,t),function K4e(i){i.hasGroup=i.format.indexOf(",")>-1,i.hasGroup&&(i.format=i.format.replace(G4e,""))}(e),function U4e(i){var r=i.number,t=i.format,e=t.indexOf(Zd);if(-1!==e){var n=t.lastIndexOf("0")-e,a=t.lastIndexOf("#")-e,o=n>-1,s=a>-1,l=r.toString().split("e"),u=(l=(l=l[1]?$k(r,Math.abs(l[1])):l[0]).split(Zd)[1]||"").length,c=-1;o||s?o&&n>a?u=n:a>n&&(s&&u>a?u=a:o&&u-1&&(r=$k(r,u),c>-1&&(r=function V4e(i,r){var t;return t=0===r?P4e:new RegExp("(\\.[0-9]{".concat(r,"}[1-9]*)0+$"),"g"),i.replace(t,"$1").replace(B4e,"")}(r,c)))}else r=$k(r);i.negative&&-1*r>=0&&!i.negativeZero&&(i.negative=!1),i.number=r,i.decimalIndex=e}(e),function j4e(i){var r=i.format,t=r.indexOf("#"),e=r.indexOf("0"),n=aJ(t,e,!0),a=aJ(t=r.lastIndexOf("#"),e=r.lastIndexOf("0"));n===r.length&&(a=n),i.start=n,i.end=a,i.lastZeroIndex=e}(e),function q4e(i,r){var t=i.number;return-1!==i.start&&(t=function $4e(i,r){var t=i.start,e=i.end,n=i.negative,a=i.negativeZero,o=i.format,s=i.decimalIndex,l=i.lastZeroIndex,u=i.hasNegativeFormat,c=i.hasGroup,d=i.number,h=d.toString().split(Zd),f=o.length,g=h[0],_=h[1]||"",C=g.length,w="";d=o.substring(0,t),(n||a)&&!u&&(d+="-");for(var E=t;E-1&&(d+=g,E=s),s===E){d+=(_?r.numbers.symbols.decimal:"")+_,E+=e-s+1;continue}"0"===M?(d+=M,w=M):"#"===M&&(d+=w)}return c&&(d=tJ(d,t+(n&&!u?1:0),Math.max(e,C+t),r.numbers.decimal,r)),e>=t&&(d+=o.substring(e+1)),d}(i,r),t=function W4e(i,r,t){var e=i;if(r===Wk||r===Ug){e="";for(var n=0,a=i.length;n1&&void 0!==arguments[1]?arguments[1]:Xd,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hg;if(null==i)return"";if(!isFinite(i))return String(i);var a,e=Vf(t),n=oJ(r);if(n){var o=n.style||Y2;a=N4e(i,Object.assign({},e.numbers[o],n),e)}else a=X4e(i,r,e);return a}function oL(i){return"number"==typeof i}var Q4e=/[eE][\-+]?[0-9]+/,lJ=/\u00A0/g;function uJ(i,r){if(r.length>1){var t=(r[1]||"").replace("$","").split(Xd);if(i.indexOf(t[0])>-1&&i.indexOf(t[1])>-1)return i.replace(t[0],"").replace(t[1],"")}}function J4e(i,r,t){var o,e=oJ(t)||{},n=aL(e.style),a=i,s=e.currency||YQ(r,n);if(s){var l=function _4e(i,r){var e=ZQ(i,r,!(arguments.length>2&&void 0!==arguments[2])||arguments[2]);if(e){if(!e.displays){var n=[r];for(var a in e)n.push(e[a]);n.sort(g4e),e.displays=n}return e.displays}}(r,s,n);if(l)for(var u=0;ue&&(e=u,n=s,a=r[o])}a=a.replace("v","z");for(var _=0;_0){var a=i.substr(0,e),o=i.substr(e);n=sL(r.calendar.dateTimeFormats.short,t[o]||cL(pE(o),t),t[a]||cL(pE(a),t))}else n=cL(pE(i),t);return function fKe(i,r,t){jg[t]||(jg[t]={}),jg[t][i]=r}(i,n,r.name),n}(n,r))}return e||(e=t.patterns.d),e}function fJ(i){var r;return i<=3?r="abbreviated":4===i?r="wide":5===i?r="narrow":6===i&&(r="short"),r}function Al(i,r,t,e,n){return $Q(i,{type:r,nameType:fJ(t),standAlone:e,lower:n})}function vJ(i){return"function"==typeof i}function hL(i){return Boolean(i)&&vJ(i.getTime)&&vJ(i.getMonth)}var gE="hour",mE="zone",fL="weekday",gJ="quarter",gKe={G:"era",y:"year",q:gJ,Q:gJ,M:"month",L:"month",d:"day",E:fL,c:fL,e:fL,h:gE,H:gE,k:gE,K:gE,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:mE,X:mE,z:mE,Z:mE},Zk=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function mJ(i,r,t,e){return r<=2?to(i+1,r):Al(t,"months",r,e)[i]}function _J(i,r,t,e){var n=Math.floor(i.getMonth()/3);return r<3?n+1:Al(t,"quarters",r,e)[n]}function _E(i,r,t){var e=t.shortHours,n=t.optionalMinutes,a=t.separator,o=t.localizedName,s=t.zZeroOffset,l=i.getTimezoneOffset()/60;if(0===l&&s)return"Z";var u=l<=0?"+":"-",c=Math.abs(l).toString().split("."),d=c[1]||0,h=u+(e?c[0]:to(c[0],2));return(d||!n)&&(h+=(a?":":"")+to(d,2)),o&&(h=sL(0===l?r.calendar.gmtZeroFormat:r.calendar.gmtFormat,h)),h}function yJ(i,r,t,e){return r<3?function mKe(i,r,t){var e=QQ(t);return(i2&&void 0!==arguments[2]?arguments[2]:Hg;if(!hL(i))return null==i?"":i;var e=Vf(t),n=dL(r,e);return n.replace(Zk,function(a){var o=a.length;return a.includes("'")||a.includes('"')?a.slice(1,o-1):er[a[0]](i,o,e)})}function CJ(i,r,t){var e=i.getTimezoneOffset(),n=new Date(i.getTime()+6e4*(r-t)),a=n.getTimezoneOffset();return new Date(n.getTime()+6e4*(a-e))}er.d=function(i,r){return to(i.getDate(),r)},er.E=function(i,r,t){return Al(t,"days",r)[i.getDay()]},er.M=function(i,r,t){return mJ(i.getMonth(),r,t,!1)},er.L=function(i,r,t){return mJ(i.getMonth(),r,t,!0)},er.y=function(i,r){var t=i.getFullYear();return 2===r&&(t%=100),to(t,r)},er.h=function(i,r){return to(i.getHours()%12||12,r)},er.H=function(i,r){return to(i.getHours(),r)},er.k=function(i,r){return to(i.getHours()||24,r)},er.K=function(i,r){return to(i.getHours()%12,r)},er.m=function(i,r){return to(i.getMinutes(),r)},er.s=function(i,r){return to(i.getSeconds(),r)},er.S=function(i,r){var t=i.getMilliseconds();return 0!==t?to(String(t/1e3).split(".")[1].substr(0,r),r,!0):to("",r)},er.a=function(i,r,t){return Al(t,"dayPeriods",r)[i.getHours()<12?"am":"pm"]},er.z=function(i,r,t){return _E(i,t,{shortHours:r<4,optionalMinutes:r<4,separator:!0,localizedName:!0})},er.Z=function(i,r,t){return _E(i,t,{separator:r>3,localizedName:4===r,zZeroOffset:5===r})},er.x=function(i,r,t){return _E(i,t,{optionalMinutes:1===r,separator:3===r||5===r})},er.X=function(i,r,t){return _E(i,t,{optionalMinutes:1===r,separator:3===r||5===r,zZeroOffset:!0})},er.G=function(i,r,t){var e=i.getFullYear()>=0?1:0;return Al(t,"eras",r)[e]},er.e=yJ,er.c=function(i,r,t){return yJ(i,r,t,!0)},er.q=function(i,r,t){return _J(i,r,t,!0)},er.Q=_J;var yKe=/([+|\-]\d{1,2})(:?)(\d{2})?/,kKe=/^\/Date\((.*?)\)\/$/,CKe=/[+-]\d*/,bKe={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},SKe=/\d+/,wKe=/^ */,DKe=/ *$/,EKe=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],SJ=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Ks(i,r,t){return!(i>=r&&i<=t)}function ia(i,r){for(var t=r.format,e=r.idx,n=0;t[e]===i;)n++,e++;return n>0&&(e-=1),r.idx=e,n}function mu(i,r){var t=i?bKe[i]||new RegExp("^\\d{1,"+i+"}"):SKe,e=r.value.substr(r.valueIdx,i).match(t);return e?(r.valueIdx+=(e=e[0]).length,parseInt(e,10)):null}function Uf(i,r,t){for(var a,o,u,e=0,n=i.length,s=0,l=0;es&&(s=o,l=e);return s?(r.valueIdx+=s,l+1):null}function vL(i){var r=!1;return i.value.charAt(i.valueIdx)===i.format[i.idx]&&(i.valueIdx++,r=!0),r}function yE(i,r,t){var e=t.shortHours,n=t.noSeparator,a=t.optionalMinutes,o=t.localizedName,s=t.zLiteral;if(i.UTC=!0,s&&"Z"===i.value.charAt(i.valueIdx))return i.valueIdx++,!1;if(o&&!Uf(function AKe(i){var r=i.gmtFormat,t=i.gmtZeroFormat;if(!r)throw Tl.NoGMTInfo.error();return[r.replace("{0}","").toLowerCase(),t.replace("{0}","").toLowerCase()]}(r.calendar),i,!0))return!0;var l=yKe.exec(i.value.substr(i.valueIdx,6));if(!l)return!o;var u=l[1],c=l[3],d=parseInt(u,10),h=l[2],f=parseInt(c,10);if(isNaN(d)||!e&&3!==u.length||!a&&isNaN(f)||n&&h||(isNaN(f)&&(f=null),Ks(d,-12,13)||f&&Ks(f,0,59)))return!0;i.valueIdx+=l[0].length,i.hoursOffset=d,i.minutesOffset=f}function wJ(i,r,t){var e=ia(i,r),n=Al(t,"months",e,"L"===i,!0),a=e<3?mu(2,r):Uf(n,r,!0);if(null===a||Ks(a,1,12))return!0;r.month=a-1}function DJ(i,r,t){var e=ia(i,r),n=Al(t,"days",e,"c"===i,!0),a=e<3?mu(1,r):Uf(n,r,!0);if(!a&&0!==a||Ks(a,1,7))return!0}var dr={};function MKe(i,r){var t=wKe.exec(r)[0],e=DKe.exec(r)[0];return"".concat(t).concat(i).concat(e)}function RKe(i,r,t){for(var e=dL(r,t).split(""),n={format:e,idx:0,value:MKe(i,r),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},a=e.length,o=!1;n.idx2029&&(t-=100)}i.year=t},dr.h=function(i){ia("h",i);var r=mu(2,i);if(12===r&&(r=0),null===r||Ks(r,0,11))return!0;i.hours=r},dr.K=function(i){ia("K",i);var r=mu(2,i);if(null===r||Ks(r,0,11))return!0;i.hours=r},dr.a=function(i,r){var e=Al(r,"dayPeriods",ia("a",i),!1,!0),n=Uf([e.pm],i,!0);if(!n&&!Uf([e.am],i,!0))return!0;i.pmHour=n},dr.H=function(i){ia("H",i);var r=mu(2,i);if(null===r||Ks(r,0,23))return!0;i.hours=r},dr.k=function(i){ia("k",i);var r=mu(2,i);if(null===r||Ks(r,1,24))return!0;i.hours=24===r?0:r},dr.m=function(i){ia("m",i);var r=mu(2,i);if(null===r||Ks(r,0,59))return!0;i.minutes=r},dr.s=function(i){ia("s",i);var r=mu(2,i);if(null===r||Ks(r,0,59))return!0;i.seconds=r},dr.S=function(i){var r=ia("S",i),t=i.value.substr(i.valueIdx,r),e=null;if(isNaN(parseInt(t,10))||(e=$k(e=parseFloat("0."+t,10),3),e*=1e3,i.valueIdx+=r),null===e||Ks(e,0,999))return!0;i.milliseconds=e},dr.z=function(i,r){var e=ia("z",i)<4,n=yE(i,r,{shortHours:e,optionalMinutes:e,localizedName:!0});if(n)return n},dr.Z=function(i,r){var t=ia("Z",i),e=yE(i,r,{noSeparator:t<4,zLiteral:5===t,localizedName:4===t});if(e)return e},dr.x=function(i,r){var t=ia("x",i),e=yE(i,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t});if(e)return e},dr.X=function(i,r){var t=ia("X",i),e=yE(i,r,{noSeparator:3!==t&&5!==t,optionalMinutes:1===t,zLiteral:!0});if(e)return e},dr.G=function(i,r){var e=Al(r,"eras",ia("G",i),!1,!0);if(null===Uf([e[0],e[1]],i,!0))return!0},dr.e=function(i,r){return DJ("e",i,r)},dr.c=function(i,r){return DJ("c",i,r)};var LKe={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},EJ="literal";function pL(i,r){var t=i[i.length-1];t&&t.type===EJ?t.pattern+=r:i.push({type:EJ,pattern:r})}function PKe(i){return"h"===i||"K"===i}var GKe=/\{(\d+)(:[^\}]+)?\}/g;function gL(i,r,t){if(r){if(hL(i))return kJ(i,r,t);if(oL(i))return sJ(i,r,t)}return null!=i?i:""}var UKe={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440833,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Uc="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",TJ={NoCurrency:"Solution: ".concat(Uc,"#toc-no-currency"),NoCurrencyDisplay:"Solution: ".concat(Uc,"#toc-no-currency-display"),NoCurrencyRegion:"Solution: ".concat(Uc,"#toc-no-currency-region"),NoDateFieldNames:"Solution: ".concat(Uc,"#toc-no-date-filed-names"),NoFirstDay:"Solution: ".concat(Uc,"#toc-no-first-day"),NoGMTInfo:"Solution: ".concat(Uc,"#toc-no-gmt-info"),NoLocale:"Solution: ".concat(Uc,"#toc-no-locale"),NoValidCurrency:"Solution: ".concat(Uc,"#toc-no-valid-currency"),NoWeekData:"Solution: ".concat(Uc,"#toc-no-week-data")};function AJ(i){var r=i.message,t=TJ[Object.keys(TJ).filter(function(e){return 0===r.indexOf(e)})[0]];return t?"".concat(r," ").concat(t):r}function ts(i){return function(){try{for(var r=arguments.length,t=new Array(r),e=0;e1&&void 0!==arguments[1]?arguments[1]:Hg,t=Vf(r),e=t.calendar.dateFields;if(!e)throw Tl.NoDateFieldNames.error();var n=e[i.type]||{};return n[i.nameType]||n.wide}),KKe=ts(QQ),jKe=ts(function VKe(i,r,t){return i.replace(GKe,function(e,n,a){return gL(r[parseInt(n,10)],a?a.substring(1):"",t)})}),WKe=ts(kJ),$Ke=ts(sJ),qKe=(ts(function a4e(){for(var i=arguments.length,r=0;r2&&void 0!==arguments[2]?arguments[2]:Hg;if(!i)return null;if(hL(i))return i;var e=String(i).trim(),n=IKe(e);if(n)return n;for(var a=Vf(t),o=r||NKe(a.calendar),s=(o=Array.isArray(o)?o:[o]).length,l=0;l1&&void 0!==arguments[1]?arguments[1]:Hg,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!i&&0!==i)return null;if(oL(i))return i;var s,e=Vf(r),n=e.numbers.symbols,a=i.toString(),o=t||{};if(cE(t)&&(rJ(o={format:t}),a=eKe(a,o),iJ(o,e)),(o.style===Ug||a.indexOf(n.percentSign)>-1)&&(a=a.replace(n.percentSign,""),s=!0),Q4e.test(a))return a=parseFloat(a.replace(n.decimal,Zd)),isNaN(a)?null:a;var l=J4e(a,e,o),u=l.negative,c=l.number,d=(a=String(c).trim()).indexOf("-");if(d>0)return null;var h=d>-1;return h=void 0!==u?u:h,a=a.replace("-","").replace(lJ," ").split(n.group.replace(lJ," ")).join("").replace(n.decimal,Zd),a=parseFloat(a),isNaN(a)?a=null:h&&(a*=-1),a&&s&&(a/=100),a}),YKe=ts(function BKe(i){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hg,t=Vf(r),e=dL(i,t),n=[],a=Zk.lastIndex=0,o=Zk.exec(e);o;){var s=o[0];if(a=h&&(c.names={type:d.type,nameType:fJ(f),standAlone:d.standAlone===l})}n.push(c)}a=Zk.lastIndex,o=Zk.exec(e)}return a1?o-1:0),l=1;l1){var l=e[0],u=e[1];s=Math.sqrt(Math.pow(l.pageX-u.pageX,2)+Math.pow(l.pageY-u.pageY,2))}return{distance:s,event:r.srcEvent,preventDefault:function(){r.preventDefault()},target:r.target,touches:e.map(w6e),type:r.type,x:{delta:t?a-t.x.location:0,initialDelta:r.deltaX,location:a,startLocation:a-r.deltaX},y:{delta:t?o-t.y.location:0,initialDelta:r.deltaY,location:o,startLocation:o-r.deltaY}}}(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](n),n}},{key:"bind",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.unbind(),this.eventHandlers=t;for(var e=0;e0;)a=a[s]=a[s]||{},s=o.shift();a[s]=n}},{key:"next",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.source.next(e.store)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),$g=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.configurationService=t,this.collectionService=e,this.options={},this.subscription=t.onFastChange$.subscribe(function(a){n.options=a,n.notify()})}return v(r,[{key:"ngOnChanges",value:function(e){var n=this.configurationService.store;mL(e,n),this.configurationService.push(n)}},{key:"notifyChanges",value:function(e){this.ngOnChanges(_L(e))}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"notify",value:function(){!this.collectionService||this.collectionService.notify(new O6e(this,this.options))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275dir=X({type:i,features:[Ie]}),i}(),ft=function(){var i=function(){function r(t,e){if(p(this,r),this.configKey=t,this.configurationService=e,this.store={},void 0===t)throw new Error("Configuration key not set")}return v(r,[{key:"ngOnDestroy",value:function(){this.store=void 0,this.notify()}},{key:"ngOnChanges",value:function(e){mL(e,this.store),this.notify()}},{key:"notifyChanges",value:function(e){this.ngOnChanges(_L(e))}},{key:"markAsVisible",value:function(){this.store.visible=!0,this.notify()}},{key:"notify",value:function(){this.configurationService.notify(new yL(this.configKey,this.store))}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275dir=X({type:i,features:[Ie]}),i}(),kL=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"tooltip",n)).configurationService=n,a.markAsVisible(),a}return v(e,[{key:"seriesTooltipTemplateRef",get:function(){return this.seriesTooltipTemplate}}]),e}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-item-tooltip"]],contentQueries:function(t,e,n){var a;1&t&&he(n,$e,5),2&t&&P(a=B())&&(e.seriesTooltipTemplate=a.first)},inputs:{background:"background",border:"border",color:"color",font:"font",format:"format",padding:"padding",visible:"visible"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),NJ=function(r){return void 0!==r&&!r},zf=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).configurationService=n,o.collectionService=a,o}return v(e,[{key:"toggleVisibility",value:function(){this.options.visible=NJ(this.options.visible),this.notify()}},{key:"togglePointVisibility",value:function(a){var o=this.options.pointVisibility=this.options.pointVisibility||{};o[a]=NJ(o[a]),this.notify()}},{key:"seriesTooltipTemplateRef",get:function(){if(this.seriesTooltip)return this.seriesTooltip.seriesTooltipTemplateRef}}]),e}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,kL,5),2&t&&P(a=B())&&(e.seriesTooltip=a.first)},inputs:{aggregate:"aggregate",autoFit:"autoFit",axis:"axis",border:"border",categoryAxis:"categoryAxis",categoryField:"categoryField",closeField:"closeField",color:"color",colorField:"colorField",connectors:"connectors",currentField:"currentField",dashType:"dashType",data:"data",downColor:"downColor",downColorField:"downColorField",dynamicHeight:"dynamicHeight",dynamicSlope:"dynamicSlope",errorHighField:"errorHighField",errorLowField:"errorLowField",explodeField:"explodeField",field:"field",fromField:"fromField",gap:"gap",highField:"highField",holeSize:"holeSize",line:"line",lowField:"lowField",lowerField:"lowerField",margin:"margin",maxSize:"maxSize",mean:"mean",meanField:"meanField",median:"median",medianField:"medianField",minSize:"minSize",missingValues:"missingValues",name:"name",neckRatio:"neckRatio",negativeColor:"negativeColor",negativeValues:"negativeValues",noteTextField:"noteTextField",opacity:"opacity",openField:"openField",outliersField:"outliersField",overlay:"overlay",padding:"padding",q1Field:"q1Field",q3Field:"q3Field",segmentSpacing:"segmentSpacing",size:"size",sizeField:"sizeField",spacing:"spacing",stack:"stack",startAngle:"startAngle",style:"style",summaryField:"summaryField",target:"target",toField:"toField",type:"type",upperField:"upperField",visible:"visible",visibleInLegend:"visibleInLegend",visibleInLegendField:"visibleInLegendField",visual:"visual",width:"width",whiskers:"whiskers",xAxis:"xAxis",xErrorHighField:"xErrorHighField",xErrorLowField:"xErrorLowField",xField:"xField",yAxis:"yAxis",yErrorHighField:"yErrorHighField",yErrorLowField:"yErrorLowField",yField:"yField",zIndex:"zIndex",errorBars:"errorBars",extremes:"extremes",highlight:"highlight",labels:"labels",markers:"markers",notes:"notes",outliers:"outliers",tooltip:"tooltip"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),N6e={horizontal:"fit",vertical:"fit"},FJ=function(){var i=function(){function r(t,e){p(this,r),this.popupService=t,this.localizationService=e,this.style={},this.popupRef=null}return v(r,[{key:"active",get:function(){return null!==this.popupRef}},{key:"show",value:function(e){var n=e.anchor.align,a=this.position(e.anchor.point);if(this.style=e.style,this.popupRef){var o=this.popupRef.popup.instance;o.offset=a,o.popupAlign=n}else this.popupRef=this.popupService.open(Object.assign({offset:a,popupAlign:n,animate:this.animate,content:this.templateRef,collision:N6e,positionMode:"absolute"},this.popupSettings)),this.localizationService.rtl&&this.popupRef.popupElement.setAttribute("dir","rtl"),this.onInit()}},{key:"hide",value:function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null)}},{key:"onInit",value:function(){}},{key:"ngOnDestroy",value:function(){this.hide()}},{key:"position",value:function(e){if(!this.popupSettings||!this.popupSettings.appendTo)return e;var n=this.popupSettings.appendTo.element.nativeElement;console.log("appendTo",n);var a=n.getBoundingClientRect(),o=this.scrollOffset(n);return{left:e.left-a.left-o.scrollLeft,top:e.top-a.top-o.scrollTop}}},{key:"scrollOffset",value:function(e){if(!e)return null;for(var n=e.scrollLeft,a=e.scrollTop,o=e.parentElement;o;)n+=o.scrollLeft,a+=o.scrollTop,o=o.parentElement;return{scrollLeft:n,scrollTop:a}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(kr),m(Y))},i.\u0275dir=X({type:i}),i}();function LJ(){if(Ze())return new ke(document.body)}var CL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).animate=!1,o}return v(e,[{key:"show",value:function(a){$(q(e.prototype),"show",this).call(this,a),this.value=a.value,this.popupRef.popup.changeDetectorRef.detectChanges()}}]),e}(FJ);return i.\u0275fac=function(t){return new(t||i)(m(kr),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-crosshair-tooltip"]],viewQuery:function(t,e){var n;1&t&&ge(xJ,7),2&t&&P(n=B())&&(e.templateRef=n.first)},inputs:{key:"key",popupSettings:"popupSettings"},features:[de([kr,{provide:EI,useFactory:LJ}]),j],decls:2,vars:0,consts:[["content",""],[1,"k-chart-tooltip","k-chart-crosshair-tooltip",3,"ngStyle"]],template:function(t,e){1&t&&T(0,o6e,2,2,"ng-template",null,0,$n)},directives:[Vi],encapsulation:2}),i}(),PJ=["categoryAxis","valueAxis","xAxis","yAxis"],Yk=function(){var i=function(){function r(){p(this,r),this.tooltipKeys=[],this.tooltipsMap={}}return v(r,[{key:"show",value:function(e){for(var n=this.crossahirTooltipComponents.toArray(),a=e.axisName,o=e.axisIndex,s=0;s0}},{key:"createCrosshairTooltips",value:function(e){var n=this.mapTooltips(e),a=this.tooltipsMap;for(var o in a)n[o]||(this.removeTooltip(o),delete a[o]);for(var s in n)a[s]||(a[s]=n[s],this.tooltipKeys.push(s))}},{key:"removeTooltip",value:function(e){for(var n=this.tooltipKeys,a=0;a0,l=a.series.length>1,u=1;return s&&u++,l&&u++,{category:a.category,categoryText:a.categoryText,colorMarker:l,colspan:u,nameColumn:s,points:this.wrapPoints(a.points,a.format)}}},{key:"pointTemplateRef",value:function(a){return this.templateService.getTemplate(a.series.index)||this.defaultSeriesTooltipTemplate.templateRef}},{key:"wrapPoints",value:function(a,o){for(var s=[],l=0;l
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n
    \n
    \n
    \n
    \n\n
    \n
    \n '.concat(function(){for(var r='\n
    \n
    \n
    \n
    \n
    \n
    \n ',t=0;t<30;t++)r+='\n
    ');return r}(),"\n
    \n"),document.body.appendChild(a)}},{key:"destroyElement",value:function(){this.element&&(document.body.removeChild(this.element),this.element=void 0)}},{key:"setStyle",value:function(a,o){this.set(a,o)}},{key:"setColors",value:function(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color");var a=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(a)||(this.setStyle("seriesDefaults.area.opacity",a),this.setStyle("seriesDefaults.radarArea.opacity",a),this.setStyle("seriesDefaults.verticalArea.opacity",a),this.setStyle("seriesDefaults.labels.opacity",a)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")}},{key:"setInactiveOpacity",value:function(a,o){var s=this,l=parseFloat(this.queryStyle(o).opacity);!isNaN(l)&&l<1&&a.forEach(function(u){return s.setStyle("seriesDefaults.".concat(u,".highlight.inactiveOpacity"),l)})}},{key:"setFonts",value:function(){var a=bE(this.queryStyle("chart-font")),o=bE(this.queryStyle("chart-title-font")),s=bE(this.queryStyle("chart-pane-title-font")),l=bE(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",l),this.setStyle("axisDefaults.notes.label.font",a),this.setStyle("axisDefaults.title.font",a),this.setStyle("legend.labels.font",a),this.setStyle("seriesDefaults.labels.font",l),this.setStyle("seriesDefaults.notes.label.font",a),this.setStyle("title.font",o),this.setStyle("paneDefaults.title.font",s)}},{key:"setSeriesColors",value:function(){var a=this.element,o=[].slice.call(a.querySelectorAll(".k-var--series div")),s=UJ(a.querySelector(".k-var--series-unset")),l=o.reduce(function(u,c){var d=function(r){var t=r.match(/series-([a-z])$/);if(null!==t)return function(r){return r.toLowerCase().charCodeAt(0)-"a".charCodeAt(0)}(t[1]);var e=r.split("--series-")[1];return parseInt(e,10)-1}(c.className),h=UJ(c);return h!==s&&(u[d]=h),u},[]);this.setStyle("seriesColors",l)}},{key:"mapColor",value:function(a,o){this.setStyle(a,this.queryColor(o))}},{key:"queryColor",value:function(a){return this.queryStyle(a).backgroundColor}},{key:"queryStyle",value:function(a){var o=this.element.querySelector(".k-var--".concat(a));return window.getComputedStyle(o)}}]),e}(we);return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}();function TL(i){return i.observers.length>0}var qg=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c){p(this,r),this.configurationService=t,this.themeService=e,this.element=n,this.intl=a,this.localizationService=o,this.ngZone=s,this.instanceEventService=l,this.changeDetector=u,this.renderer=c,this.axisLabelClick=new O,this.drag=new O,this.dragEnd=new O,this.dragStart=new O,this.legendItemHover=new O,this.legendItemLeave=new O,this.noteClick=new O,this.noteHover=new O,this.noteLeave=new O,this.paneRender=new O,this.plotAreaClick=new O,this.plotAreaHover=new O,this.plotAreaLeave=new O,this.render=new O,this.select=new O,this.selectEnd=new O,this.selectStart=new O,this.seriesClick=new O,this.seriesHover=new O,this.seriesOver=new O,this.seriesLeave=new O,this.zoom=new O,this.zoomEnd=new O,this.zoomStart=new O,this.legendItemClick=new O,this.resizeRateLimit=10,this.theme=null,this.suppressTransitions=!1,this.rtl=!1,this.hostClasses=["k-chart","k-widget"],jt(EL),this.themeService.loadTheme(),this.refreshWait()}return v(r,[{key:"ngOnInit",value:function(){var e=this;this.element&&(this.hostClasses.forEach(function(n){e.renderer.addClass(e.element.nativeElement,n)}),this.renderer.setStyle(this.element.nativeElement,"position","relative"))}},{key:"ngAfterViewInit",value:function(){var e=this;this.canRender&&this.ngZone.runOutsideAngular(function(){var n=e.renderer.listen(e.surfaceElement.nativeElement,"mouseleave",e.chartMouseleave.bind(e));e.domSubscriptions=function(){n()}}),this.setDirection(),this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.subscriptions.add(this.localizationService.changes.subscribe(this.rtlChange.bind(this)))}},{key:"ngAfterViewChecked",value:function(){var e=this;this.instance&&this.autoResize&&this.ngZone.runOutsideAngular(function(){clearTimeout(e.resizeTimeout),e.resizeTimeout=setTimeout(function(){e.resize()},0)})}},{key:"ngOnChanges",value:function(e){var n=this.configurationService.store;mL(e,n),n.popupSettings=null,this.configurationService.push(n)}},{key:"notifyChanges",value:function(e){this.ngOnChanges(_L(e))}},{key:"ngOnDestroy",value:function(){this.destroyed=!0,this.subscription&&this.subscription.unsubscribe(),this.domSubscriptions&&(this.domSubscriptions(),this.domSubscriptions=null),this.instance&&(this.instance.destroy(),this.instance=null),this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.resizeTimeout),clearTimeout(this.redrawTimeout)}},{key:"createInstance",value:function(e,n){this.instance=new s2(e,this.options,this.theme,{intlService:this.intl,observer:n,rtl:this.rtl,sender:this})}},{key:"exportImage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return I5e(this.exportVisual(e),e)}},{key:"exportSVG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return F5e(this.exportVisual(e),e)}},{key:"exportVisual",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.instance.exportVisual(e)}},{key:"findAxisByName",value:function(e){if(this.instance)return this.instance.findAxisByName(e)}},{key:"findPaneByIndex",value:function(e){if(this.instance)return this.instance.findPaneByIndex(e)}},{key:"findPaneByName",value:function(e){if(this.instance)return this.instance.findPaneByName(e)}},{key:"getPlotArea",value:function(){if(this.instance)return this.instance.plotArea()}},{key:"toggleHighlight",value:function(e,n){this.instance&&this.instance.toggleHighlight(e,n)}},{key:"hideTooltip",value:function(){this.instance&&this.instance.hideTooltip()}},{key:"showTooltip",value:function(e){this.instance&&this.instance.showTooltip(e)}},{key:"init",value:function(){if(this.canRender){var e=this.surfaceElement.nativeElement,n=new P6e(this);this.createInstance(e,n)}}},{key:"resize",value:function(){this.instance&&this.instance.resize()}},{key:"onResize",value:function(e){this.autoResize&&this.resize()}},{key:"onLegendItemClick",value:function(e){var n=this;this.run(function(){var a=new sje(e,n);if(n.legendItemClick.emit(a),!a.isDefaultPrevented()){var o=n.seriesComponents.toArray()[e.series.index];if(!o)return;void 0===e.pointIndex?o.toggleVisibility():o.togglePointVisibility(e.pointIndex),n.suppressTransitions=!0}},TL(this.legendItemClick),this.seriesComponents.length>0)}},{key:"onInit",value:function(e){this.instance=e.sender}},{key:"onRender",value:function(e){var n=this,a=this.getDonutCenterStyle();this.run(function(){var o=new GJ(e,n);n.surface=e.sender.surface,n.render.emit(o),n.donutCenterStyle=a},TL(this.render),this.donutCenterStyle!==a)}},{key:"onShowTooltip",value:function(e){var n=this;this.run(function(){e.crosshair?n.crossahirTooltips.show(e):n.tooltipInstance.show(e)},!e.crosshair,!0)}},{key:"onHideTooltip",value:function(e){e.crosshair?this.crossahirTooltips.active&&(this.crossahirTooltips.hide(),this.detectChanges()):this.tooltipInstance.active&&(this.tooltipInstance.hide(),this.detectChanges())}},{key:"trigger",value:function(e,n){if("resize"!==e){var a=this.activeEmitter(e);if(a){var o=this.instanceEventService.create(e,n,this);return this.run(function(){a.emit(o)}),o.isDefaultPrevented&&o.isDefaultPrevented()}}}},{key:"requiresHandlers",value:function(e){for(var n=0;n0}},{key:"activeEmitter",value:function(e){var n=this[e];if(n&&n.emit&&TL(n))return n}},{key:"getDonutCenterStyle",value:function(){if(this.instance&&this.options&&this.options.series){var e=this.options.series[0],n=this.instance._plotArea.charts;if(e&&"donut"===e.type&&n&&0!==n[0].points.length){var a=n[0].points[0],o=a.box.center(),s=a.sector.innerRadius,c=2*s;return{height:c+"px",left:o.x-s+"px",top:o.y-s+"px",width:c+"px"}}}}},{key:"refreshWait",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.subscription=GO(e.configurationService.onChange$,e.themeService.onChange$).pipe(At(function(n){e.options=n[0],e.theme=n[1]}),ff(IJ)).subscribe(function(){e.refresh()})})}},{key:"run",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;n?(a&&this.changeDetector.markForCheck(),this.ngZone.run(e)):(e(),a&&this.detectChanges())}},{key:"detectChanges",value:function(){this.destroyed||this.changeDetector.detectChanges()}},{key:"intlChange",value:function(){this.instance&&this.deferredRedraw()}},{key:"rtlChange",value:function(){this.instance&&this.rtl!==this.isRTL&&this.deferredRedraw()}},{key:"deferredRedraw",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){clearTimeout(e.redrawTimeout),e.redrawTimeout=setTimeout(function(){e.updateDirection(),e.instance.noTransitionsRedraw()},0)})}},{key:"updateDirection",value:function(){var e=this.isRTL;this.rtl!==e&&(this.setDirection(),this.instance&&this.instance.setDirection(e))}},{key:"setDirection",value:function(){this.rtl=this.isRTL,this.element&&this.renderer.setAttribute(this.element.nativeElement,"dir",this.rtl?"rtl":"ltr")}},{key:"isRTL",get:function(){return Boolean(this.localizationService.rtl)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(we),m(SE),m(ke),m(fi),m(Y),m(be),m(Jk),m(nt),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,OJ,5),he(n,zf,5)),2&t&&(P(a=B())&&(e.donutCenterTemplate=a.first),P(a=B())&&(e.seriesComponents=a))},viewQuery:function(t,e){var n;1&t&&(ge(Qk,7),ge(Yk,7),ge(C6e,7)),2&t&&(P(n=B())&&(e.tooltipInstance=n.first),P(n=B())&&(e.crossahirTooltips=n.first),P(n=B())&&(e.surfaceElement=n.first))},inputs:{pannable:"pannable",renderAs:"renderAs",seriesColors:"seriesColors",title:"title",transitions:"transitions",zoomable:"zoomable",axisDefaults:"axisDefaults",categoryAxis:"categoryAxis",chartArea:"chartArea",legend:"legend",panes:"panes",paneDefaults:"paneDefaults",plotArea:"plotArea",series:"series",seriesDefaults:"seriesDefaults",tooltip:"tooltip",valueAxis:"valueAxis",xAxis:"xAxis",yAxis:"yAxis",resizeRateLimit:"resizeRateLimit",popupSettings:"popupSettings"},outputs:{axisLabelClick:"axisLabelClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",legendItemHover:"legendItemHover",legendItemLeave:"legendItemLeave",noteClick:"noteClick",noteHover:"noteHover",noteLeave:"noteLeave",paneRender:"paneRender",plotAreaClick:"plotAreaClick",plotAreaHover:"plotAreaHover",plotAreaLeave:"plotAreaLeave",render:"render",select:"select",selectEnd:"selectEnd",selectStart:"selectStart",seriesClick:"seriesClick",seriesHover:"seriesHover",seriesOver:"seriesOver",seriesLeave:"seriesLeave",zoom:"zoom",zoomEnd:"zoomEnd",zoomStart:"zoomStart",legendItemClick:"legendItemClick"},exportAs:["kendoChart"],features:[de([we,Hf,Jk,Y,{provide:Dt,useValue:"kendo.chart"}]),Ie],decls:6,vars:4,consts:[[1,"k-chart-surface"],["surface",""],[3,"popupSettings"],[3,"popupSettings","leave"],[3,"rateLimit","resize"],["class","k-chart-donut-center",3,"ngStyle",4,"ngIf"],[1,"k-chart-donut-center",3,"ngStyle"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(z(0,"div",0,1)(2,"kendo-chart-crosshair-tooltips-container",2),A(3,"kendo-chart-tooltip-popup",3),Q("leave",function(a){return e.tooltipMouseleave(a)}),x(),A(4,"kendo-resize-sensor",4),Q("resize",function(a){return e.onResize(a)}),x(),T(5,S6e,2,2,"div",5)),2&t&&(k(2),y("popupSettings",e.popupSettings),k(1),y("popupSettings",e.popupSettings),k(1),y("rateLimit",e.resizeRateLimit),k(1),y("ngIf",e.donutCenterStyle&&e.donutCenterTemplate))},directives:[Yk,Qk,Gr,qe,Vi,En],encapsulation:2,changeDetection:0}),i}(),Xg=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.configKey=t,this.configurationService=e,this.collectionService=n,this.items=[],this.subscription=n.onItemChange$.subscribe(function(o){return a.processChanges(o)})}return v(r,[{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"ngAfterContentInit",value:function(){var e=this;this.readItems(),this.children.changes.subscribe(function(){return e.readItems()})}},{key:"processChanges",value:function(e){if(this.children){var n=this.children.toArray().indexOf(e.sender);n<0||(this.items[n]=e.options,this.change())}}},{key:"readItems",value:function(){this.items=this.children.map(function(e){return e.options}),this.change()}},{key:"change",value:function(){this.configurationService.notify(new yL(this.configKey,0===this.items.length?void 0:this.items))}}]),r}();return i.\u0275fac=function(t){Mp()},i.\u0275dir=X({type:i}),i}(),eC=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a)).configurationService=n,l.collectionService=a,l.notifyChanges({weekStartDay:o.firstDay(s)}),l}return v(e)}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr),m(fi),m(Ko))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-category-axis-item"]],inputs:{autoBaseUnitSteps:"autoBaseUnitSteps",axisCrossingValue:"axisCrossingValue",background:"background",baseUnit:"baseUnit",baseUnitStep:"baseUnitStep",categories:"categories",color:"color",justified:"justified",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",max:"max",maxDateGroups:"maxDateGroups",maxDivisions:"maxDivisions",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",name:"name",pane:"pane",plotBands:"plotBands",reverse:"reverse",roundToBaseUnit:"roundToBaseUnit",startAngle:"startAngle",type:"type",visible:"visible",weekStartDay:"weekStartDay",crosshair:"crosshair",labels:"labels",notes:"notes",select:"select",title:"title",rangeLabels:"rangeLabels"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),AL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,"categoryAxis",n,a)).configurationService=n,o.collectionService=a,o}return v(e)}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-category-axis"]],contentQueries:function(t,e,n){var a;1&t&&he(n,eC,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),XJ=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"legend",n)).configurationService=n,a.markAsVisible(),a}return v(e)}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-legend"]],inputs:{align:"align",background:"background",border:"border",height:"height",labels:"labels",margin:"margin",offsetX:"offsetX",offsetY:"offsetY",orientation:"orientation",padding:"padding",position:"position",reverse:"reverse",visible:"visible",width:"width",markers:"markers",spacing:"spacing",inactiveItems:"inactiveItems",item:"item",title:"title"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),tC=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,"series",n,a)).configurationService=n,s.collectionService=a,s.tooltipTemplateService=o,s}return v(e,[{key:"ngAfterContentChecked",value:function(){this.readTooltipTemplates()}},{key:"readTooltipTemplates",value:function(){var a=this.children.map(function(o){return o.seriesTooltipTemplateRef});this.tooltipTemplateService.setSeriesTemplates(a)}}]),e}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr),m(Hf))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series"]],contentQueries:function(t,e,n){var a;1&t&&he(n,zf,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),RL=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,"seriesDefaults",n)).configurationService=n,a}return v(e)}(ft);return i.\u0275fac=function(t){return new(t||i)(m(we))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-series-defaults"]],inputs:{border:"border",gap:"gap",highlight:"highlight",overlay:"overlay",spacing:"spacing",stack:"stack",type:"type",visual:"visual",labels:"labels",notes:"notes",tooltip:"tooltip"},features:[j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),wE=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).configurationService=n,o.collectionService=a,o}return v(e)}($g);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-value-axis-item"]],inputs:{axisCrossingValue:"axisCrossingValue",background:"background",color:"color",line:"line",majorGridLines:"majorGridLines",majorTicks:"majorTicks",majorUnit:"majorUnit",max:"max",min:"min",minorGridLines:"minorGridLines",minorTicks:"minorTicks",minorUnit:"minorUnit",name:"name",narrowRange:"narrowRange",pane:"pane",plotBands:"plotBands",reverse:"reverse",type:"type",visible:"visible",crosshair:"crosshair",labels:"labels",notes:"notes",title:"title"},features:[de([we]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),OL=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,"valueAxis",n,a)).configurationService=n,o.collectionService=a,o}return v(e)}(Xg);return i.\u0275fac=function(t){return new(t||i)(m(we),m(hr))},i.\u0275cmp=L({type:i,selectors:[["kendo-chart-value-axis"]],contentQueries:function(t,e,n){var a;1&t&&he(n,wE,4),2&t&&P(a=B())&&(e.children=a)},features:[de([hr]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),i}(),nC=(new wt("configuration prefix"),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[SE],imports:[[bt,Fa,yo]]}),i}()),PWe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[nC,bt,Fa,yo],nC]}),i}(),BWe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[nC,bt,Fa,yo],nC]}),i}(),GWe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[nC,BWe,PWe]}),i}(),ka=function(){return{visible:!1}},NL=function(){return{step:4,skip:2,font:"10px sans-serif"}},VWe=function(r){return{margin:r}},UWe=function(){return{color:"#FFF"}},zWe=function(){return{from:0,to:100,color:"#35C473"}},HWe=function(r){return[r]},KWe=function(){return{color:"#35C473",opacity:.3}},jWe=function(){return{color:"#CC3458",opacity:.3}},WWe=function(){return{top:8}},$We=function(r){return{rotation:"auto",margin:r}},qWe=function(){return{right:4}},XWe=function(r){return{step:2,skip:2,margin:r}},ZWe=function(){return{step:2,skip:2,color:"#F0F2F2"}},YWe=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"months",set:function(e){this.baseUnit=e>3?"months":"weeks"}},{key:"closeRate",set:function(e){this.bulletData=[{target:70,current:Math.round(100*e)}]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-active-issues"]],inputs:{data:"data",active:"active",issues:"issues",months:"months",closeRate:"closeRate"},decls:80,vars:117,consts:[[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row"],[1,"col-12","col-lg-6","col-xl","pb-4","active-issues"],[1,"comp-label"],[2,"height","80px"],["type","column",3,"stack","gap","overlay"],["field","count","categoryField","date","aggregate","count",3,"color","data"],[3,"baseUnit","majorTicks","labels","majorGridLines","line"],[3,"visible","majorGridLines"],[1,"col-12","col-lg-6","col-xl","pb-4","text-success","closed-issues"],[1,"col-12","col-lg-6","col-xl","pb-4","text-danger","open-issues"],[1,"col-12","col-lg-6","col-xl","pb-4","close-rate"],[1,"m-0","small","text-uppercase","text-muted"],[2,"height","20px",3,"chartArea"],["type","bullet","currentField","current","targetField","target","color","#CC3458",3,"data","target"],[3,"plotBands","visible","majorGridLines"],[1,"col-sm-12"],["field","count","categoryField","date","aggregate","count",3,"opacity","border","color","data"],[3,"baseUnit","majorTicks","line","majorGridLines","labels"],[3,"line","labels","majorGridLines"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"h3",1),te(2,"Active Issues"),x(),A(3,"div",2)(4,"div",3)(5,"div",4)(6,"span",5)(7,"strong"),te(8),x(),A(9,"small"),te(10,"Active issues"),x()(),A(11,"kendo-chart",6),z(12,"kendo-chart-series-defaults",7),A(13,"kendo-chart-series"),z(14,"kendo-chart-series-item",8),x(),A(15,"kendo-chart-category-axis"),z(16,"kendo-chart-category-axis-item",9),x(),A(17,"kendo-chart-value-axis"),z(18,"kendo-chart-value-axis-item",10),x()()(),A(19,"div",11)(20,"span",5)(21,"strong"),te(22),x(),A(23,"small"),te(24,"Closed issues"),x()(),A(25,"kendo-chart",6),z(26,"kendo-chart-series-defaults",7),A(27,"kendo-chart-series"),z(28,"kendo-chart-series-item",8),x(),A(29,"kendo-chart-category-axis"),z(30,"kendo-chart-category-axis-item",9),x(),A(31,"kendo-chart-value-axis"),z(32,"kendo-chart-value-axis-item",10),x()()(),A(33,"div",12)(34,"span",5)(35,"strong"),te(36),x(),A(37,"small"),te(38,"Open issues"),x()(),A(39,"kendo-chart",6),z(40,"kendo-chart-series-defaults",7),A(41,"kendo-chart-series"),z(42,"kendo-chart-series-item",8),x(),A(43,"kendo-chart-category-axis"),z(44,"kendo-chart-category-axis-item",9),x(),A(45,"kendo-chart-value-axis"),z(46,"kendo-chart-value-axis-item",10),x()()(),A(47,"div",13)(48,"span",5)(49,"strong"),te(50),ja(51,"percent"),x(),A(52,"small"),te(53,"Close rate"),x()(),A(54,"p",14),te(55),ja(56,"percent"),ja(57,"date"),x(),A(58,"p",14),te(59),ja(60,"percent"),ja(61,"date"),x(),A(62,"kendo-chart",15)(63,"kendo-chart-series"),z(64,"kendo-chart-series-item",16),x(),A(65,"kendo-chart-value-axis"),z(66,"kendo-chart-value-axis-item",17),x()()()(),A(67,"div",3)(68,"div",18)(69,"h3"),te(70,"All issues"),x(),A(71,"kendo-chart"),z(72,"kendo-chart-series-defaults",7),A(73,"kendo-chart-series"),z(74,"kendo-chart-series-item",19)(75,"kendo-chart-series-item",19),x(),A(76,"kendo-chart-category-axis"),z(77,"kendo-chart-category-axis-item",20),x(),A(78,"kendo-chart-value-axis"),z(79,"kendo-chart-value-axis-item",21),x()()()()()()),2&t&&(k(8),at(e.issues.open+e.issues.closed),k(4),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("color","#888")("data",e.active),k(2),y("baseUnit",e.baseUnit)("majorTicks",Tt(82,ka))("labels",Tt(83,NL))("majorGridLines",Tt(84,ka))("line",Tt(85,ka)),k(2),y("visible",!1)("majorGridLines",Tt(86,ka)),k(4),at(e.issues.closed),k(4),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("color","#35C473")("data",e.data.closed),k(2),y("baseUnit",e.baseUnit)("majorTicks",Tt(87,ka))("labels",Tt(88,NL))("majorGridLines",Tt(89,ka))("line",Tt(90,ka)),k(2),y("visible",!1)("majorGridLines",Tt(91,ka)),k(4),at(e.issues.open),k(4),y("stack",!0)("gap",.5)("overlay",!1),k(2),y("color","#CC3458")("data",e.data.open),k(2),y("baseUnit",e.baseUnit)("majorTicks",Tt(92,ka))("labels",Tt(93,NL))("majorGridLines",Tt(94,ka))("line",Tt(95,ka)),k(2),y("visible",!1)("majorGridLines",Tt(96,ka)),k(4),at(nw(51,69,e.issues.closeRate.average,"2.0-0")),k(5),Jl(" Highest: ",nw(56,72,e.issues.closeRate.highest.close_rate,"2.0-0")," on ",fc(57,75,e.issues.closeRate.highest.created_at)," "),k(4),Jl(" Lowest: ",nw(60,77,e.issues.closeRate.lowest.close_rate,"2.0-0")," on ",fc(61,80,e.issues.closeRate.lowest.created_at)," "),k(3),y("chartArea",ot(97,VWe,-20)),k(2),y("data",e.bulletData)("target",Tt(99,UWe)),k(2),y("plotBands",ot(101,HWe,Tt(100,zWe)))("visible",!1)("majorGridLines",Tt(103,ka)),k(6),y("stack",!0)("gap",.06)("overlay",!1),k(2),y("opacity",.3)("border",Tt(104,KWe))("color","#35C473")("data",e.data.open),k(1),y("opacity",.3)("border",Tt(105,jWe))("color","#CC3458")("data",e.data.closed),k(2),y("baseUnit",e.baseUnit)("majorTicks",Tt(106,ka))("line",Tt(107,ka))("majorGridLines",Tt(108,ka))("labels",ot(110,$We,Tt(109,WWe))),k(2),y("line",Tt(112,ka))("labels",ot(114,XWe,Tt(113,qWe)))("majorGridLines",Tt(116,ZWe)))},directives:[qg,RL,tC,zf,AL,eC,OL,wE],pipes:[W4,yw],encapsulation:2}),i}(),QWe=function(){return{font:"0.65em Roboto, Arial, sans-serif"}},JWe=function(){var i=function(){function r(){p(this,r),this.hoverColor="rgb(255, 99, 88)"}return v(r,[{key:"data",set:function(e){var n=this;this.issues=e,e.forEach(function(a){"SEV: LOW"===a.type&&n.setDonutLegend({value:a.value,category:a.type,point:{options:{color:n.hoverColor}}})})}},{key:"className",get:function(){return"card issue-types"}},{key:"onHover",value:function(e){this.setDonutLegend(e)}},{key:"setDonutLegend",value:function(e){this.hoverColor=e.point.options.color,this.donutPercent=Math.round(100*e.value||0)+"%",this.donutLabel=e.category}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-issue-types"]],hostVars:2,hostBindings:function(t,e){2&t&&Ar(e.className)},inputs:{data:"data"},decls:12,vars:9,consts:[[1,"card-header"],[1,"card-body"],[3,"seriesHover"],["type","donut","field","value","categoryField","type",3,"holeSize","data","overlay"],["position","bottom",3,"labels"],[1,"comp-label","chart-label"]],template:function(t,e){1&t&&(A(0,"h4",0),te(1,"Issue Types"),x(),A(2,"div",1)(3,"kendo-chart",2),Q("seriesHover",function(a){return e.onHover(a)}),A(4,"kendo-chart-series"),z(5,"kendo-chart-series-item",3),x(),z(6,"kendo-chart-legend",4),x(),A(7,"div",5)(8,"strong"),te(9),x(),A(10,"small"),te(11),x()()()),2&t&&(k(5),y("holeSize",100)("data",e.issues)("overlay",!1),k(1),y("labels",Tt(8,QWe)),k(1),Qe("color",e.hoverColor),k(2),at(e.donutPercent),k(2),at(e.donutLabel))},directives:[qg,tC,zf,XJ],encapsulation:2}),i}();function e7e(i,r){if(1&i){var t=xe();A(0,"a",10),Q("click",function(){var s=re(t).$implicit;return D().addSeries(s,!0)}),A(1,"strong"),te(2),x(),A(3,"small"),te(4),x()()}if(2&i){var e=r.$implicit,n=D();Qe("color",e.active?e.value:n.initialGrey),k(2),at(n.data[e.label].length),k(2),at(e.label)}}function t7e(i,r){if(1&i&&z(0,"kendo-chart-series-item",11),2&i){var t=r.$implicit;y("data",t.data)("markers",t.markers)("color",t.color)}}var EE=function(){return{visible:!1}},n7e=function(){return{step:4,skip:2}},i7e=function(){return{step:2,skip:2}},r7e=function(){return{step:2,skip:2,color:"#F0F2F2"}},a7e=function(){var i=function(){function r(){p(this,r),this.initialGrey="#A2ACAC",this.series=[],this.visibleSeries=[],this.seriesColors=[{label:"SEV: Low",value:"#FF9966",active:!1},{label:"SEV: Medium",value:"#BB6ACB",active:!1},{label:"SEV: High",value:"#52C3D3",active:!1},{label:"Enhancement",value:"#22C85D",active:!1},{label:"Feature",value:"#FF6358",active:!1},{label:"Others",value:"#2BA7DA",active:!1}]}return v(r,[{key:"months",set:function(e){this.baseUnit=e>3?"months":"weeks"}},{key:"addSeries",value:function(e,n){n&&this.seriesColors.forEach(function(l){l.value===e.value&&(l.active=!l.active)});var a={color:this.seriesColors.filter(function(l){return l.label===e.label})[0].value,markers:{visible:!1},data:this.data[e.label]};if(this.visibleSeries.some(function(l){return l.color===a.color})){var s=this.visibleSeries.map(function(l){return l.color}).indexOf(a.color);~s&&this.visibleSeries.splice(s,1)}else this.visibleSeries.push(a);this.series=this.visibleSeries}},{key:"ngOnInit",value:function(){this.addSeries({label:"SEV: Low",value:"#FF9966",active:!1},!0),this.addSeries({label:"Enhancement",value:"#22C85D",active:!1},!0),this.addSeries({label:"Others",value:"#2BA7DA",active:!1},!0)}},{key:"ngOnChanges",value:function(e){e.data.previousValue&&e.data.previousValue.hasOwnProperty("Others")&&(this.visibleSeries=[],this.addSeries({label:"SEV: Low",value:"#FF9966",active:!1},!1),this.addSeries({label:"Enhancement",value:"#22C85D",active:!1},!1),this.addSeries({label:"Others",value:"#2BA7DA",active:!1},!1))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-types-distribution"]],inputs:{data:"data",months:"months"},features:[Ie],decls:14,vars:18,consts:[[1,"card"],[1,"card-header"],[1,"row","card-body","pb-0","small"],["class","col-6 col-lg-4 col-xl-2 pb-3 comp-label",3,"color","click",4,"ngFor","ngForOf"],[1,"card-body"],[2,"height","300px",3,"transitions"],["type","line",3,"overlay"],["baseUnit","months",3,"majorTicks","labels","majorGridLines","line"],["style","smooth","aggregate","count","categoryField","date",3,"data","markers","color",4,"ngFor","ngForOf"],[3,"line","labels","majorGridLines"],[1,"col-6","col-lg-4","col-xl-2","pb-3","comp-label",3,"click"],["aggregate","count","categoryField","date",3,"data","markers","color"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"h4",1),te(2,"Types Distribution"),x(),A(3,"div",2),T(4,e7e,5,4,"a",3),x(),A(5,"div",4)(6,"kendo-chart",5),z(7,"kendo-chart-series-defaults",6),A(8,"kendo-chart-category-axis"),z(9,"kendo-chart-category-axis-item",7),x(),A(10,"kendo-chart-series"),T(11,t7e,1,3,"kendo-chart-series-item",8),x(),A(12,"kendo-chart-value-axis"),z(13,"kendo-chart-value-axis-item",9),x()()()()),2&t&&(k(4),y("ngForOf",e.seriesColors),k(2),y("transitions",!1),k(1),y("overlay",!1),k(2),y("majorTicks",Tt(11,EE))("labels",Tt(12,n7e))("majorGridLines",Tt(13,EE))("line",Tt(14,EE)),k(2),y("ngForOf",e.visibleSeries),k(2),y("line",Tt(15,EE))("labels",Tt(16,i7e))("majorGridLines",Tt(17,r7e)))},directives:[gn,qg,RL,AL,eC,tC,zf,OL,wE],encapsulation:2}),i}();function o7e(i,r){1&i&&(A(0,"div",6),z(1,"app-loading-spinner"),x())}function s7e(i,r){if(1&i&&z(0,"app-active-issues",7),2&i){var t=D();y("data",t.issues.groupedIssues)("months",t.months)("issues",t.issues)("closeRate",t.issues.closeRate.average)("active",t.issues.active)}}function l7e(i,r){if(1&i&&(A(0,"div",8),z(1,"app-issue-types",9),x()),2&i){var t=D();k(1),y("data",t.issues.issueTypes)}}function u7e(i,r){if(1&i&&z(0,"app-types-distribution",12),2&i){var t=D(2);y("data",t.issues.typesDistribution)("months",t.months)}}function c7e(i,r){if(1&i&&(A(0,"div",10),T(1,u7e,1,2,"app-types-distribution",11),x()),2&i){var t=D();k(1),y("ngIf",t.issues.active.length)}}var d7e=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-statistics"]],inputs:{issues:"issues",months:"months",loading:"loading"},decls:6,vars:4,consts:[[1,"row"],[1,"col-md-12"],["class","card","style","height: 400px",4,"ngIf"],[3,"data","months","issues","closeRate","active",4,"ngIf"],["class","col-md-4",4,"ngIf"],["class","col-md-8",4,"ngIf"],[1,"card",2,"height","400px"],[3,"data","months","issues","closeRate","active"],[1,"col-md-4"],[3,"data"],[1,"col-md-8"],[3,"data","months",4,"ngIf"],[3,"data","months"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1),T(2,o7e,2,0,"div",2),T(3,s7e,1,5,"app-active-issues",3),x(),T(4,l7e,2,1,"div",4),T(5,c7e,2,1,"div",5),x()),2&t&&(k(2),y("ngIf",e.loading),k(1),y("ngIf",!e.loading&&e.issues.active.length),k(1),y("ngIf",!e.loading&&e.issues.active.length),k(1),y("ngIf",!e.loading&&e.issues.active.length))},directives:[qe,tN,YWe,JWe,a7e],encapsulation:2}),i}();function h7e(i,r){if(1&i&&z(0,"app-statistics",11),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}function f7e(i,r){if(1&i&&z(0,"app-statistics",11),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}function v7e(i,r){if(1&i&&z(0,"app-statistics",11),2&i){var t=D();y("loading",t.isLoading)("issues",t.issues)("months",t.months)}}var p7e=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.githubService=t,this.issuesProcessor=e,this.isLoading=!0,this.today=new Date,this.months=3,this.selectedIndex=0,this.rangeStart=this.issuesProcessor.getMonthsRange(this.months),this.subscription=xn(t.getGithubIssues({pages:5}).pipe(We(function(a){return n.data=a,n.isLoading=!1,n.issuesProcessor.process(a,n.months)},function(a){return n.isLoading=!1})),lt(new jj)).subscribe(function(a){n.issues=a})}return v(r,[{key:"get_id",get:function(){return"dashboard"}},{key:"get_class",get:function(){return"dashboard"}},{key:"onFilterClick",value:function(e){this.months!==e&&(this.months=e,this.rangeStart=this.issuesProcessor.getMonthsRange(e),this.issues=this.issuesProcessor.process(this.data,e),this.filterIssues(this.selectedIndex))}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onTabSelect",value:function(e){this.filterIssues(e.index)}},{key:"filterIssues",value:function(e){switch(e){case 0:this.issues=this.issuesProcessor.process(this.data,this.months),this.selectedIndex=0;break;case 1:var n=this.issuesProcessor.flatten(this.data).filter(function(o){return!!o.assignee&&"ggkrustev"===o.assignee.login});this.issues=this.issuesProcessor.process(n,this.months),this.selectedIndex=1;break;case 2:var a=this.issuesProcessor.flatten(this.data).filter(function(o){return"ggkrustev"===o.user.login});this.issues=this.issuesProcessor.process(a,this.months),this.selectedIndex=2;break;default:this.issues=this.issuesProcessor.process(this.data,this.months)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Jp),m(cD))},i.\u0275cmp=L({type:i,selectors:[["app-dashboard"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.get_id),Ar(e.get_class))},features:[de([Jp,cD])],decls:23,vars:15,consts:[[1,"row"],[1,"col-md","text-center","text-md-right","mb-4"],[3,"selection"],["kendoButton","",3,"togglable","selected","click"],["kendoButton","",3,"togglable","click"],[1,"col-md","order-md-first","text-center","text-md-left"],[1,"small","text-uppercase","text-muted","d-block"],[3,"select"],[3,"title","selected"],["kendoTabContent",""],[3,"title"],[3,"loading","issues","months"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"kendo-buttongroup",2)(3,"button",3),Q("click",function(){return e.onFilterClick(3)}),te(4,"3 Months"),x(),A(5,"button",4),Q("click",function(){return e.onFilterClick(6)}),te(6,"6 Months"),x(),A(7,"button",4),Q("click",function(){return e.onFilterClick(12)}),te(8,"1 Year"),x()()(),A(9,"div",5)(10,"h2")(11,"span",6),te(12,"Statistics"),x(),te(13),ja(14,"date"),ja(15,"date"),x()()(),A(16,"kendo-tabstrip",7),Q("select",function(a){return e.onTabSelect(a)}),A(17,"kendo-tabstrip-tab",8),T(18,h7e,1,3,"ng-template",9),x(),A(19,"kendo-tabstrip-tab",10),T(20,f7e,1,3,"ng-template",9),x(),A(21,"kendo-tabstrip-tab",10),T(22,v7e,1,3,"ng-template",9),x()()),2&t&&(k(2),y("selection","single"),k(1),y("togglable",!0)("selected",!0),k(2),y("togglable",!0),k(2),y("togglable",!0),k(6),Jl(" ",fc(14,11,e.rangeStart)," - ",fc(15,13,e.today)," "),k(4),y("title","All Issues")("selected",!0),k(2),y("title","Assigned to Me"),k(2),y("title","Created by Me"))},directives:[BW,Xa,T7,HI,zI,d7e],pipes:[yw],encapsulation:2}),i}();function iC(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return i<0&&(i=0),Hw(i,i,r)}var g7e=Array.isArray;function m7e(i){return 1===i.length&&g7e(i[0])?i[0]:i}function _7e(){for(var i=arguments.length,r=new Array(i),t=0;t1&&void 0!==arguments[1]?arguments[1]:vee;return oi(function(t,e){var n=r.leading,a=r.trailing,o=!1,s=null,l=null,u=!1,c=function(){null==l||l.unsubscribe(),l=null,a&&(f(),u&&e.complete())},d=function(){l=null,u&&e.complete()},h=function(_){return l=Pi(i(_)).subscribe(Wn(e,c,d))},f=function(){if(o){o=!1;var _=s;s=null,e.next(_),!u&&h(_)}};t.subscribe(Wn(e,function(g){o=!0,s=g,(!l||l.closed)&&(n?f():h(g))},function(){u=!0,(!(a&&o&&l)||l.closed)&&e.complete()}))})}function FL(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vee,e=Hw(i,r);return C7e(function(){return e},t)}var pee=function(){var i=function(){function r(t,e){p(this,r),this._renderer=t,this._elementRef=e,this.onChange=function(n){},this.onTouched=function(){}}return v(r,[{key:"setProperty",value:function(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"setDisabledState",value:function(e){this.setProperty("disabled",e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke))},i.\u0275dir=X({type:i}),i}(),Kf=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(pee);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,features:[j]}),i}(),jn=new wt("NgValueAccessor"),S7e={provide:jn,useExisting:ye(function(){return PL}),multi:!0},PL=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e,[{key:"writeValue",value:function(a){this.setProperty("checked",a)}}]),e}(Kf);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Q("change",function(a){return e.onChange(a.target.checked)})("blur",function(){return e.onTouched()})},features:[de([S7e]),j]}),i}(),w7e={provide:jn,useExisting:ye(function(){return zc}),multi:!0},E7e=new wt("CompositionEventMode"),zc=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a))._compositionMode=o,s._composing=!1,null==s._compositionMode&&(s._compositionMode=!function D7e(){var i=tu()?tu().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}()),s}return v(e,[{key:"writeValue",value:function(a){this.setProperty("value",null==a?"":a)}},{key:"_handleInput",value:function(a){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(a)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(a){this._composing=!1,this._compositionMode&&this.onChange(a)}}]),e}(pee);return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke),m(E7e,8))},i.\u0275dir=X({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Q("input",function(a){return e._handleInput(a.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(a){return e._compositionEnd(a.target.value)})},features:[de([w7e]),j]}),i}(),tr=new wt("NgValidators"),Jd=new wt("NgAsyncValidators");function mee(i){return null!=i}function _ee(i){var r=X_(i)?wi(i):i;return KM(r),r}function yee(i){var r={};return i.forEach(function(t){r=null!=t?Object.assign(Object.assign({},r),t):r}),0===Object.keys(r).length?null:r}function kee(i,r){return r.map(function(t){return t(i)})}function Cee(i){return i.map(function(r){return function L7e(i){return!i.validate}(r)?r:function(t){return r.validate(t)}})}function GL(i){return null!=i?function P7e(i){if(!i)return null;var r=i.filter(mee);return 0==r.length?null:function(t){return yee(kee(t,r))}}(Cee(i)):null}function VL(i){return null!=i?function B7e(i){if(!i)return null;var r=i.filter(mee);return 0==r.length?null:function(t){return OO(kee(t,r).map(_ee)).pipe(We(yee))}}(Cee(i)):null}function bee(i,r){return null===i?[r]:Array.isArray(i)?[].concat(Ae(i),[r]):[i,r]}function See(i){return i._rawValidators}function wee(i){return i._rawAsyncValidators}function UL(i){return i?Array.isArray(i)?i:[i]:[]}function AE(i,r){return Array.isArray(i)?i.includes(r):i===r}function Dee(i,r){var t=UL(r);return UL(i).forEach(function(n){AE(t,n)||t.push(n)}),t}function Eee(i,r){return UL(r).filter(function(t){return!AE(i,t)})}var Tee=function(){function i(){p(this,i),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return v(i,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=GL(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=VL(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),i}(),ra=function(i){b(t,i);var r=S(t);function t(){var e;return p(this,t),(e=r.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return v(t)}(Tee),no=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),t}(Tee),Aee=function(){function i(r){p(this,i),this._cd=r}return v(i,[{key:"is",value:function(t){var e,n,a;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(a=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===a?void 0:a[t])}}]),i}(),jf=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,n)}return v(e)}(Aee);return i.\u0275fac=function(t){return new(t||i)(m(ra,2))},i.\u0275dir=X({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ue("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[j]}),i}(),xee=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,n)}return v(e)}(Aee);return i.\u0275fac=function(t){return new(t||i)(m(no,10))},i.\u0275dir=X({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&ue("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[j]}),i}();function rC(i,r){KL(i,r),r.valueAccessor.writeValue(i.value),function W7e(i,r){r.valueAccessor.registerOnChange(function(t){i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&Ree(i,r)})}(i,r),function q7e(i,r){var t=function(n,a){r.valueAccessor.writeValue(n),a&&r.viewToModelUpdate(n)};i.registerOnChange(t),r._registerOnDestroy(function(){i._unregisterOnChange(t)})}(i,r),function $7e(i,r){r.valueAccessor.registerOnTouched(function(){i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&Ree(i,r),"submit"!==i.updateOn&&i.markAsTouched()})}(i,r),function j7e(i,r){if(r.valueAccessor.setDisabledState){var t=function(n){r.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),r._registerOnDestroy(function(){i._unregisterOnDisabledChange(t)})}}(i,r)}function RE(i,r){var e=function(){};r.valueAccessor&&(r.valueAccessor.registerOnChange(e),r.valueAccessor.registerOnTouched(e)),function IE(i,r){var t=!1;if(null!==i){if(null!==r.validator){var e=See(i);if(Array.isArray(e)&&e.length>0){var n=e.filter(function(l){return l!==r.validator});n.length!==e.length&&(t=!0,i.setValidators(n))}}if(null!==r.asyncValidator){var a=wee(i);if(Array.isArray(a)&&a.length>0){var o=a.filter(function(l){return l!==r.asyncValidator});o.length!==a.length&&(t=!0,i.setAsyncValidators(o))}}}var s=function(){};return OE(r._rawValidators,s),OE(r._rawAsyncValidators,s),t}(i,r),i&&(r._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(function(){}))}function OE(i,r){i.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(r)})}function KL(i,r){var t=See(i);null!==r.validator?i.setValidators(bee(t,r.validator)):"function"==typeof t&&i.setValidators([t]);var e=wee(i);null!==r.asyncValidator?i.setAsyncValidators(bee(e,r.asyncValidator)):"function"==typeof e&&i.setAsyncValidators([e]);var n=function(){return i.updateValueAndValidity()};OE(r._rawValidators,n),OE(r._rawAsyncValidators,n)}function Ree(i,r){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function jL(i,r){if(!i.hasOwnProperty("model"))return!1;var t=i.model;return!!t.isFirstChange()||!Object.is(r,t.currentValue)}function WL(i,r){if(!r)return null;Array.isArray(r);var t=void 0,e=void 0,n=void 0;return r.forEach(function(a){a.constructor===zc?t=a:function Y7e(i){return Object.getPrototypeOf(i.constructor)===Kf}(a)?e=a:n=a}),n||e||t||null}function $L(i,r){var t=i.indexOf(r);t>-1&&i.splice(t,1)}var aC="VALID",NE="INVALID",Zg="PENDING",oC="DISABLED";function XL(i){return(FE(i)?i.validators:i)||null}function Fee(i){return Array.isArray(i)?GL(i):i||null}function ZL(i,r){return(FE(r)?r.asyncValidators:i)||null}function Lee(i){return Array.isArray(i)?VL(i):i||null}function FE(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}var YL=function(r){return r instanceof sC};function Bee(i){return function(r){return r instanceof JL}(i)?i.value:i.getRawValue()}function Gee(i,r){var t=YL(i),e=i.controls;if(!(t?Object.keys(e):e).length)throw new gt(1e3,"");if(!e[r])throw new gt(1001,"")}function Vee(i,r){YL(i),i._forEachChild(function(e,n){if(void 0===r[n])throw new gt(1002,"")})}var QL=function(){function i(r,t){p(this,i),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=t,this._composedValidatorFn=Fee(this._rawValidators),this._composedAsyncValidatorFn=Lee(this._rawAsyncValidators)}return v(i,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===aC}},{key:"invalid",get:function(){return this.status===NE}},{key:"pending",get:function(){return this.status==Zg}},{key:"disabled",get:function(){return this.status===oC}},{key:"enabled",get:function(){return this.status!==oC}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=Fee(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Lee(t)}},{key:"addValidators",value:function(t){this.setValidators(Dee(t,this._rawValidators))}},{key:"addAsyncValidators",value:function(t){this.setAsyncValidators(Dee(t,this._rawAsyncValidators))}},{key:"removeValidators",value:function(t){this.setValidators(Eee(t,this._rawValidators))}},{key:"removeAsyncValidators",value:function(t){this.setAsyncValidators(Eee(t,this._rawAsyncValidators))}},{key:"hasValidator",value:function(t){return AE(this._rawValidators,t)}},{key:"hasAsyncValidator",value:function(t){return AE(this._rawAsyncValidators,t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=Zg,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=oC,this.errors=null,this._forEachChild(function(n){n.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(n){return n(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=aC,this._forEachChild(function(n){n.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(function(n){return n(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===aC||this.status===Zg)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?oC:aC}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=Zg,this._hasOwnPendingAsyncValidator=!0;var n=_ee(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(a){e._hasOwnPendingAsyncValidator=!1,e.setErrors(a,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function Q7e(i,r,t){if(null==r||(Array.isArray(r)||(r=r.split(t)),Array.isArray(r)&&0===r.length))return null;var e=i;return r.forEach(function(n){e=YL(e)?e.controls.hasOwnProperty(n)?e.controls[n]:null:function(r){return r instanceof e9e}(e)&&e.at(n)||null}),e}(this,t,".")}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new O,this.statusChanges=new O}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?oC:this.errors?NE:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Zg)?Zg:this._anyControlsHaveStatus(NE)?NE:aC}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){FE(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),i}(),JL=function(i){b(t,i);var r=S(t);function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return p(this,t),(e=r.call(this,XL(a),ZL(o,a))).defaultValue=null,e._onChange=[],e._pendingChange=!1,e._applyFormState(n),e._setUpdateStrategy(a),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),FE(a)&&a.initialValueIsDefault&&(e.defaultValue=e._isBoxedValue(n)?n.value:n),e}return v(t,[{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=n,this._onChange.length&&!1!==o.emitModelToViewChange&&this._onChange.forEach(function(s){return s(a.value,!1!==o.emitViewToModelChange)}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(n,a)}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(n),this.markAsPristine(a),this.markAsUntouched(a),this.setValue(this.value,a),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(n){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(n){this._onChange.push(n)}},{key:"_unregisterOnChange",value:function(n){$L(this._onChange,n)}},{key:"registerOnDisabledChange",value:function(n){this._onDisabledChange.push(n)}},{key:"_unregisterOnDisabledChange",value:function(n){$L(this._onDisabledChange,n)}},{key:"_forEachChild",value:function(n){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(n){this._isBoxedValue(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}}]),t}(QL),sC=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,XL(n),ZL(a,n))).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return v(t,[{key:"registerControl",value:function(n,a){return this.controls[n]?this.controls[n]:(this.controls[n]=a,a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange),a)}},{key:"addControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(n,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),delete this.controls[n],this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),delete this.controls[n],a&&this.registerControl(n,a),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}},{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Vee(this,n),Object.keys(n).forEach(function(s){Gee(a,s),a.controls[s].setValue(n[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=n&&(Object.keys(n).forEach(function(s){a.controls[s]&&a.controls[s].patchValue(n[s],{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(n[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(n,a,o){return n[o]=Bee(a),n})}},{key:"_syncPendingControls",value:function(){var n=this._reduceChildren(!1,function(a,o){return!!o._syncPendingControls()||a});return n&&this.updateValueAndValidity({onlySelf:!0}),n}},{key:"_forEachChild",value:function(n){var a=this;Object.keys(this.controls).forEach(function(o){var s=a.controls[o];s&&n(s,o)})}},{key:"_setUpControls",value:function(){var n=this;this._forEachChild(function(a){a.setParent(n),a._registerOnCollectionChange(n._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(n){for(var a=0,o=Object.keys(this.controls);a0||this.disabled}}]),t}(QL),e9e=function(i){b(t,i);var r=S(t);function t(e,n,a){var o;return p(this,t),(o=r.call(this,XL(n),ZL(a,n))).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return v(t,[{key:"at",value:function(n){return this.controls[n]}},{key:"push",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:a.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(n,0,a),this._registerControl(a),this.updateValueAndValidity({emitEvent:o.emitEvent})}},{key:"removeAt",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:a.emitEvent})}},{key:"setControl",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[n]&&this.controls[n]._registerOnCollectionChange(function(){}),this.controls.splice(n,1),a&&(this.controls.splice(n,0,a),this._registerControl(a)),this.updateValueAndValidity({emitEvent:o.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Vee(this,n),n.forEach(function(s,l){Gee(a,l),a.at(l).setValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o)}},{key:"patchValue",value:function(n){var a=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=n&&(n.forEach(function(s,l){a.at(l)&&a.at(l).patchValue(s,{onlySelf:!0,emitEvent:o.emitEvent})}),this.updateValueAndValidity(o))}},{key:"reset",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(o,s){o.reset(n[s],{onlySelf:!0,emitEvent:a.emitEvent})}),this._updatePristine(a),this._updateTouched(a),this.updateValueAndValidity(a)}},{key:"getRawValue",value:function(){return this.controls.map(function(n){return Bee(n)})}},{key:"clear",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(a){return a._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}},{key:"_syncPendingControls",value:function(){var n=this.controls.reduce(function(a,o){return!!o._syncPendingControls()||a},!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}},{key:"_forEachChild",value:function(n){this.controls.forEach(function(a,o){n(a,o)})}},{key:"_updateValue",value:function(){var n=this;this.value=this.controls.filter(function(a){return a.enabled||n.disabled}).map(function(a){return a.value})}},{key:"_anyControls",value:function(n){return this.controls.some(function(a){return a.enabled&&n(a)})}},{key:"_setUpControls",value:function(){var n=this;this._forEachChild(function(a){return n._registerControl(a)})}},{key:"_allControlsDisabled",value:function(){var a,n=In(this.controls);try{for(n.s();!(a=n.n()).done;)if(a.value.enabled)return!1}catch(s){n.e(s)}finally{n.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}}]),t}(QL),t9e={provide:no,useExisting:ye(function(){return LE})},lC=function(){return Promise.resolve(null)}(),LE=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).submitted=!1,o._directives=new Set,o.ngSubmit=new O,o.form=new sC({},GL(n),VL(a)),o}return v(e,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(a){var o=this;lC.then(function(){var s=o._findContainer(a.path);a.control=s.registerControl(a.name,a.control),rC(a.control,a),a.control.updateValueAndValidity({emitEvent:!1}),o._directives.add(a)})}},{key:"getControl",value:function(a){return this.form.get(a.path)}},{key:"removeControl",value:function(a){var o=this;lC.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name),o._directives.delete(a)})}},{key:"addFormGroup",value:function(a){var o=this;lC.then(function(){var s=o._findContainer(a.path),l=new sC({});(function Oee(i,r){KL(i,r)})(l,a),s.registerControl(a.name,l),l.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(a){var o=this;lC.then(function(){var s=o._findContainer(a.path);s&&s.removeControl(a.name)})}},{key:"getFormGroup",value:function(a){return this.form.get(a.path)}},{key:"updateModel",value:function(a,o){var s=this;lC.then(function(){s.form.get(a.path).setValue(o)})}},{key:"setValue",value:function(a){this.control.setValue(a)}},{key:"onSubmit",value:function(a){return this.submitted=!0,function Nee(i,r){i._syncPendingControls(),r.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(a),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(a),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(a){return a.pop(),a.length?this.form.get(a):this.form}}]),e}(no);return i.\u0275fac=function(t){return new(t||i)(m(tr,10),m(Jd,10))},i.\u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Q("submit",function(a){return e.onSubmit(a)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([t9e]),j]}),i}(),i9e={provide:ra,useExisting:ye(function(){return Wf})},Hee=function(){return Promise.resolve(null)}(),Wf=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l){var u;return p(this,e),(u=t.call(this))._changeDetectorRef=l,u.control=new JL,u._registered=!1,u.update=new O,u._parent=n,u._setValidators(a),u._setAsyncValidators(o),u.valueAccessor=WL(Xe(u),s),u}return v(e,[{key:"ngOnChanges",value:function(a){if(this._checkForErrors(),!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var o=a.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a),jL(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){rC(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(a){var o=this;Hee.then(function(){var s;o.control.setValue(a,{emitViewToModelChange:!1}),null===(s=o._changeDetectorRef)||void 0===s||s.markForCheck()})}},{key:"_updateDisabled",value:function(a){var o=this,s=a.isDisabled.currentValue,l=""===s||s&&"false"!==s;Hee.then(function(){var u;l&&!o.control.disabled?o.control.disable():!l&&o.control.disabled&&o.control.enable(),null===(u=o._changeDetectorRef)||void 0===u||u.markForCheck()})}},{key:"_getPath",value:function(a){return this._parent?function ME(i,r){return[].concat(Ae(r.path),[i])}(a,this._parent):[a]}}]),e}(ra);return i.\u0275fac=function(t){return new(t||i)(m(no,9),m(tr,10),m(Jd,10),m(jn,10),m(nt,8))},i.\u0275dir=X({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[de([i9e]),j,Ie]}),i}(),Kee=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i}(),Wee=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),eP=new wt("NgModelWithFormControlWarning"),l9e={provide:ra,useExisting:ye(function(){return tP})},tP=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this))._ngModelWarningConfig=s,l.update=new O,l._ngModelWarningSent=!1,l._setValidators(n),l._setAsyncValidators(a),l.valueAccessor=WL(Xe(l),o),l}return v(e,[{key:"isDisabled",set:function(a){}},{key:"ngOnChanges",value:function(a){if(this._isControlChanged(a)){var o=a.form.previousValue;o&&RE(o,this),rC(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}jL(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.form&&RE(this.form,this)}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}},{key:"viewToModelUpdate",value:function(a){this.viewModel=a,this.update.emit(a)}},{key:"_isControlChanged",value:function(a){return a.hasOwnProperty("form")}}]),e}(ra);return i._ngModelWarningSentOnce=!1,i.\u0275fac=function(t){return new(t||i)(m(tr,10),m(Jd,10),m(jn,10),m(eP,8))},i.\u0275dir=X({type:i,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[de([l9e]),j,Ie]}),i}(),lte=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Wee]]}),i}(),uC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[lte]}),i}(),lP=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"withConfig",value:function(e){return{ngModule:r,providers:[{provide:eP,useValue:e.warnOnNgModelWithFormControl}]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[lte]}),i}(),ji=function(r){return null!=r},PE=function(r){return null==r},uP=function(r){return Array.isArray(r)},ute=function(r){return"function"==typeof r},cP=function(r){return"string"==typeof r},qf=function(r){return!isNaN(r-parseFloat(r))},eh=function(r){return r&&r.getTime},Hc=function(r){return ji(r.filters)},cte=function(r,t,e){return function(n){return r(n)?t(n):e(n)}},xl=function(){for(var r=arguments.length,t=new Array(r),e=0;e0}(r(t))}},Yg=function(r,t){return cte(r,t,V9e)},hP=function(r,t){return function(e){return r(e).map(t).join("~")}},j9e=xl.apply(void 0,Ae([['"',""],[":","-"]].map(function(t){var e=Gt(t,2),n=e[0],a=e[1];return function(o){return o.replace(new RegExp(n,"g"),a)}}))),W9e=function(t){return t.slice(0,t.indexOf("."))},_te=function(r){var e=r.dir,n=void 0===e?"asc":e;return"".concat(r.field,"-").concat(n)},yte=_u("take"),kte=_u("aggregates"),q9e=_u("skip"),Cte=_u("group"),fP=_u("sort",!0),X9e=hP(fP,_te),Z9e=hP(Cte,_te),Y9e=hP(kte,function(r){var e=r.aggregate;return"".concat(r.field,"-").concat(e)}),J9e=xl(function(r){return"datetime'".concat(r,"'")},W9e,j9e,JSON.stringify,function(r){return new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()))}),n$e=xl(dC("page"),function(r){return Math.floor((r.skip||0)/r.take)+1}),i$e=xl(dC("pageSize"),yte),r$e=xl(dC("group"),Z9e),a$e=xl(dC("sort"),X9e),o$e=xl(dC("aggregate"),Y9e),vP=(Yg(dP(q9e),n$e),Yg(dP(yte),i$e),Yg(mte(Cte),r$e),Yg(dP(kte),o$e),xl(Yg(mte(fP),a$e),function(r){return Object.assign({},r,{sort:(fP(r)||[]).filter(function(t){return function(r){return!function(r){return PE(r)||0===r.trim().length}(r)}(t.dir)})})}),function(r){var e=r.operator,n=r.value;return"".concat(r.field,"~").concat(e,"~").concat(n)}),BE=(cte(function(r){return eh(r.value)},xl(vP,function(r){var t=r.field,n=r.ignoreCase,a=r.operator;return{value:J9e(r.value),field:t,ignoreCase:n,operator:a}}),vP),function(r,t,e){return t[r]=e,t}),pP=function(r){return function(t){var e=t[r];return ji(e)?e:t[function(r){return r.replace(/(^[A-Z])/g,function(t,e){return e.toLowerCase()})}(r)]}},wte=(pP("Member"),pP("AggregateMethodName"),pP("Value"),function(r){return function(t){return Object.keys(t).reduce(r.bind(null,t),{})}}),C$e=wte(function(i,r,t){return BE(t.toLowerCase(),r,i[t])}),b$e=wte(function(i,r,t){return BE(t,r,C$e(i[t]))}),Dte=function(r,t){return ji(r)?r:t},Ete=xl(function(i){var r=i.field,t=i.hasSubgroups,e=i.value,a=i.items;return{aggregates:b$e(i.aggregates),field:r,items:t?a.map(Ete):a,value:e}},function(r){return{aggregates:r.Aggregates||r.aggregates,field:r.Member||r.member||r.field,hasSubgroups:r.HasSubgroups||r.hasSubgroups||!1,items:r.Items||r.items,value:Dte(r.Key,Dte(r.key,r.value))}}),Tte=function(r,t){return PE(r)?r===t?0:-1:PE(t)?1:r.localeCompare?r.localeCompare(t):r>t?1:r0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(r).forEach(function(t){var e=r[t];Object.keys(e).forEach(function(n){e[n]=e[n].result()})}),r},O$e=function(r){var t=r.map(function(e){var n=_u(e.field,!0),a=(e.aggregate||"").toLowerCase(),o=_u(a,!0);return function(s,l){var u=s[e.field]||{},c=o(u)||function(r){return{average:function(){var e=0,n=0;return{calc:function(o){qf(o)?(e+=o,n++):e=o},result:function(){return qf(e)?e/n:e}}},count:function(){var e=0;return{calc:function(){return e++},result:function(){return e}}},max:function(){var e=Number.NEGATIVE_INFINITY;return{calc:function(a){(e=qf(e)||eh(e)?e:a)a&&(qf(a)||eh(a))&&(e=a)},result:function(){return e}}},sum:function(){var e=0;return{calc:function(a){a=ji(a)?a:0,e+=a},result:function(){return e}}}}[r]()}(a);return c.calc(n(l)),u[e.aggregate]=c,s[e.field]=u,s}});return function(e,n){return t.reduce(function(a,o){return o(a,n)},e)}},I$e=function(r,t){return r.push(t),r},Ate=function(r){return function(t){return function(e,n,a){return t(e,r(n,a))}}},xte=function(r){return function(t){return function(e,n){return r(n)?t(e,n):e}}},Mte=function(r){return ji(r.__value)},gP=function(r,t,e){for(var n=t,a=0,o=e.length;a1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L$e,n={};if(!t.length)return n;var a=gP(e(O$e(t)),n,r);return M$e(a)},G$e=function i(r){r.filters&&(r.filters=r.filters.map(function(t){var e=Object.assign({},t);return!Hc(t)&&cP(t.operator)&&(e.operator=function(r){return{"!=":"neq","<":"lt","<=":"lte","==":"eq",">":"gt",">=":"gte",equal:"eq",equals:"eq",equalto:"eq",ge:"gte",greater:"gt",greaterthan:"gt",greaterthanequal:"gte",isempty:"isempty",isequalto:"eq",isgreaterthan:"gt",isgreaterthanorequalto:"gte",islessthan:"lt",islessthanorequalto:"lte",isnotempty:"isnotempty",isnotequalto:"neq",isnull:"isnull",le:"lte",less:"lt",lessthan:"lt",lessthanequal:"lte",ne:"neq",notequal:"neq",notequals:"neq",notequalto:"neq",notsubstringof:"doesnotcontain"}[r.toLowerCase()]||r}(t.operator)),Hc(t)&&i(e),e}))},Ote=function(r){return ji(r)&&(r=function(r){return Hc(r)?Object.assign({},r):{filters:uP(r)?r:[r],logic:"and"}}(r),G$e(r)),r},U$e={or:{concat:function(r,t){return function(e){return r(e)||t(e)}},identity:function(){return!1}},and:{concat:function(r,t){return function(e){return r(e)&&t(e)}},identity:function(){return!0}}},z$e={contains:function(r,t){return(r||"").indexOf(t)>=0},doesnotcontain:function(r,t){return-1===(r||"").indexOf(t)},doesnotendwith:function(r,t){return(r||"").indexOf(t,(r||"").length-(t||"").length)<0},doesnotstartwith:function(r,t){return-1===(r||"").lastIndexOf(t,0)},endswith:function(r,t){return(r||"").indexOf(t,(r||"").length-(t||"").length)>=0},eq:function(r,t){return r===t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t},isempty:function(r){return""===r},isnotempty:function(r){return""!==r},isnotnull:function(r){return ji(r)},isnull:function(r){return PE(r)},lt:function(r,t){return r1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pte,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r;if(!(t=Lte(t)).length)return r;var a=t[0],o={},s=gP(e(x$e(a.field)),o,r),l=[];return Object.keys(s).forEach(function(u){Object.keys(s[u]).forEach(function(c){var d=s[u][c],h={},f=n;ji(a.aggregates)&&(f=Fte(n,{field:a.field,ignoreCase:!1,operator:"eq",value:d.value}),h=P$e(f,a.aggregates)),l[d.__position]={aggregates:h,field:u,items:t.length>1?i(d.items,t.slice(1),Pte,f):d.items,value:d.value}})}),l},q$e=function i(r,t,e,n){if(!(e-t<2)){var a=t+e>>>1;i(r,t,a,n),i(r,a,e,n),function(r,t,e,n,a){for(var o=e-t,s=n-e,l=[],u=0;u0&&o>0);for(;o;)r[h++]=l[c++],o--;for(;s;)r[h++]=r[d++],s--}(r,t,a,e,n)}},GE=function(r,t){if(t.some(function(n){return ji(n.dir)})){r=r.slice(0);var e=function(r){return r.filter(function(t){return ji(t.dir)}).map(function(t){return D$e(t)}).reduce(function(t,e){return function(n,a){return t(n,a)||e(n,a)}},E$e)}(t);q$e(r,0,r.length,e)}return r},Gte=function(r,t){var e=t.skip,n=t.take,a=t.filter,o=t.sort,s=t.group,l=[].concat(Ae(Lte(s||[])),Ae(o||[]));l.length&&(r=GE(r,l));var u=ji(a)&&xte.length,c=ji(s)&&s.length;if(!u&&!c)return{data:n?r.slice(e,e+n):r,total:r.length};var d,f,h=[];if(u?(d=function(r,t){for(var e=0,n=0,a=r.length;n0?t(e,n):function(r){return Mte(r)?r:{__value:r,reduced:!0}}(e)}}}(n))),h.length){var g=xl.apply(void 0,h),_=c?Bte(r,s,g,function(r,t){return t?r.filter(t):r}(r,f)):gP(g(I$e),[],r);return{data:_,total:d}}return{data:c?Bte(r,s):r,total:d}},Fne=["track"],pqe=["thumb"],Pne=function(r,t,e){return{keydown:r,focus:t,blur:e}},gqe=["numericInput"],mqe=function(r,t){return{mouseup:r,mouseleave:t}},Bne=function(r){return{mousedown:r}};function _qe(i,r){if(1&i&&(A(0,"span",4)(1,"button",5),z(2,"span",6),x(),A(3,"button",7),z(4,"span",8),x()()),2&i){var t=D();y("kendoEventsOutsideAngular",ln(13,mqe,t.releaseArrow,t.releaseArrow)),k(1),ue("k-active",t.arrowDirection===t.ArrowDirection.Up),y("kendoEventsOutsideAngular",ot(16,Bne,t.increasePress))("title",t.incrementTitle),ie("aria-hidden",!0)("aria-label",t.incrementTitle),k(2),ue("k-active",t.arrowDirection===t.ArrowDirection.Down),y("kendoEventsOutsideAngular",ot(18,Bne,t.decreasePress))("title",t.decrementTitle),ie("aria-hidden",!0)("aria-label",t.decrementTitle)}}var yqe=function(r,t,e,n,a,o,s){return{mousedown:r,dragenter:t,keydown:e,input:n,focus:a,blur:o,paste:s}},kqe=["input"];function Cqe(i,r){}function bqe(i,r){if(1&i&&T(0,Cqe,0,0,"ng-template",8),2&i){var t=D();y("ngTemplateOutlet",null==t.prefixTemplate?null:t.prefixTemplate.templateRef)}}function Sqe(i,r){if(1&i){var t=xe();A(0,"span",9),Q("click",function(){return re(t),D().clearValue()})("mousedown",function(a){return a.preventDefault()})("keydown.enter",function(a){return re(t),D().clearValue(a)})("keydown.space",function(a){return re(t),D().clearValue(a)}),z(1,"span",10),x()}if(2&i){var e=D();y("tabindex",e.tabIndex)("title",e.clearTitle()),ie("aria-label",e.clearTitle()),k(1),y("ngClass",e.clearButtonClasses)}}function wqe(i,r){1&i&&z(0,"span",10),2&i&&y("ngClass",D().errorIconClasses)}function Dqe(i,r){1&i&&z(0,"span",10),2&i&&y("ngClass",D().successIconClasses)}function Eqe(i,r){}function Tqe(i,r){if(1&i&&T(0,Eqe,0,0,"ng-template",8),2&i){var t=D();y("ngTemplateOutlet",null==t.suffixTemplate?null:t.suffixTemplate.templateRef)}}var Aqe=function(r,t,e){return{focus:r,blur:t,input:e}},mn=function(r){return null!=r},hC=function(r,t){return r===t||null===r&&void 0===t||void 0===r&&null===t},fC=function(r){return r&&(!r.touched||r.control&&"blur"===r.control.updateOn)},Vne={small:"sm",medium:"md",large:"lg"},Une={small:"sm",medium:"md",large:"lg",full:"full"},Xf=function(r,t,e,n){switch(t){case"size":return{toRemove:"k-".concat(r,"-").concat(Vne[e]),toAdd:"none"!==n?"k-".concat(r,"-").concat(Vne[n]):""};case"rounded":return{toRemove:"k-rounded-".concat(Une[e]),toAdd:"none"!==n?"k-rounded-".concat(Une[n]):""};case"fillMode":return{toRemove:"k-".concat(r,"-").concat(e),toAdd:"none"!==n?"k-".concat(r,"-").concat(n):""}}},zne=function(r){return Math.min(r,20)},vC=function(r){return(String(r).split(".")[1]||"").length},VE=function(r,t){var e=zne(t);return parseFloat(r.toFixed(e))},Zf=function(r,t){var e=function(r,t){return Math.max(vC(r),vC(t))}(r,t);return VE(r+t,e)};function th(i,r){if(i&&i.nativeElement){for(var t=arguments.length,e=new Array(t>2?t-2:0),n=2;n=0?Math.floor(r):Math.ceil(r)},Yf=function(r){},Qf=function(r){return!isNaN(r)&&null!==r};function rie(i,r){var t=r-String(i).length,e=i;if(t>0){var n=new Array(t+1).join("0");e=parseFloat(i+n)}return e}var Wc=function(){return function(i){i[i.Down=-1]="Down",i[i.None=0]="None",i[i.Up=1]="Up"}(Wc||(Wc={})),Wc}(),WE=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-numerictextbox-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[j]}),i}(),vZe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(WE);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoNumericTextBoxLocalizedMessages",""]],features:[de([{provide:WE,useExisting:ye(function(){return i})}]),j]}),i}(),aie=["min","max","step","decimals"],pZe={decimals:null,max:null,min:null,step:1},Jf=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.intl=t,this.renderer=e,this.localizationService=n,this.injector=a,this.ngZone=o,this.changeDetector=s,this.hostElement=l,this.focusableId="k-".concat(qn()),this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.changeValueOnScroll=!0,this.selectOnFocus=!0,this.value=null,this.valueChange=new O,this.onFocus=new O,this.onBlur=new O,this.ArrowDirection=Wc,this.arrowDirection=Wc.None,this.hostClasses=!0,this.inputValue="",this.minValidateFn=Yf,this.maxValidateFn=Yf,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.ngChange=Yf,this.ngTouched=Yf,this.ngValidatorChange=Yf,this.domEvents=[],this.increasePress=function(c){u.arrowPress(Wc.Up,c)},this.decreasePress=function(c){u.arrowPress(Wc.Down,c)},this.releaseArrow=function(){clearTimeout(u.spinTimeout),u.arrowDirection!==Wc.None&&(u.arrowDirection=Wc.None,u.changeDetector.detectChanges())},this.handlePaste=function(){u.isPasted=!0},this.handleInput=function(){var c=u.numericInput.nativeElement,d=c.selectionStart,h=c.selectionEnd,f=c.value;if(u.pressedKey===J.NumpadDecimal&&(f=u.replaceNumpadDotValue()),u.isPasted&&(f=u.formatInputValue(u.intl.parseNumber(f))),!u.isValid(f))return c.value=u.inputValue,void u.setSelection(d-1,h-1);var g=u.intl.parseNumber(f),_=u.restrictDecimals(g);if(u.autoCorrect){var C=u.limitInputValue(_);_=C.value,d=C.selectionStart,h=C.selectionEnd}g!==_||u.hasTrailingZeros(f)||!u.focused?(u.setInputValue(_),u.setSelection(d,h)):u.inputValue=f,u.isPasted&&(c.value=u.inputValue),u.updateValue(_),u.previousSelection=null,u.isPasted=!1},this.handleDragEnter=function(){!u.focused&&!u.isDisabled&&u.setInputValue(u.value,!0)},this.handleMouseDown=function(){u.mouseDown=!0},this.handleFocus=function(){if(!u.focused&&(u.focused=!0,!u.isDisabled)){var c=u.selectOnFocus||!u.mouseDown;u.ngZone.runOutsideAngular(function(){setTimeout(function(){c?u.selectAll():u.selectCaret()},0)})}u.mouseDown=!1,ut(u.onFocus)&&u.ngZone.run(function(){u.onFocus.emit()})},this.handleBlur=function(){u.changeDetector.markForCheck(),u.focused=!1,u.inputValue!==u.elementValue&&u.handleInput(),u.setInputValue(),(ut(u.onBlur)||fC(u.control))&&u.ngZone.run(function(){u.ngTouched(),u.onBlur.emit()})},this.handleKeyDown=function(c){if(!u.isDisabled){var d;c.keyCode===J.ArrowDown?d=-1:c.keyCode===J.ArrowUp&&(d=1),d&&u.step&&(c.preventDefault(),u.addStep(d));var h=u.numericInput.nativeElement;u.previousSelection={end:h.selectionEnd,start:h.selectionStart},u.pressedKey=c.keyCode}},this.handleWheel=function(c){if(u.focused&&!u.isDisabled&&u.changeValueOnScroll){c.preventDefault();var d=function(r){var t=0;return r.wheelDelta?t=(t=r.wheelDelta/120)>0?Math.ceil(t):Math.floor(t):r.detail&&(t=Math.round(-r.detail/3)),t}(c);u.addStep(d)}},jt(jc),this.direction=n.rtl?"rtl":"ltr"}return v(r,[{key:"format",get:function(){var e=this._format;return null!=e?e:"n2"},set:function(e){this._format=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"disableClass",get:function(){return this.disabled}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(ra,null),this.ngZone.runOutsideAngular(function(){e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"mousewheel",e.handleWheel.bind(e))),e.domEvents.push(e.renderer.listen(e.hostElement.nativeElement,"DOMMouseScroll",e.handleWheel.bind(e)))})}},{key:"ngAfterViewInit",value:function(){var e=this;["size","rounded","fillMode"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"ngOnChanges",value:function(e){Ki(aie,e,!1)&&this.parseOptions(aie.filter(function(n){return e[n]})),this.verifySettings(),Ki(["min","max","rangeValidation"],e,!1)&&(this.minValidateFn=this.rangeValidation?function(r){return function(t){return!mn(r)||!mn(t.value)||t.value>=r?null:{minError:{minValue:r,value:t.value}}}}(this.min):Yf,this.maxValidateFn=this.rangeValidation?function(r){return function(t){return!mn(r)||!mn(t.value)||t.value<=r?null:{maxError:{maxValue:r,value:t.value}}}}(this.max):Yf,this.ngValidatorChange()),Ki(["autoCorrect","decimals","min"],e)&&delete this.numericRegex,Ki(["value","format"],e,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),(!this.focused||this.intl.parseNumber(this.elementValue)!==this.value)&&this.setInputValue())}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout),this.domEvents.forEach(function(e){return e()})}},{key:"validate",value:function(e){return this.minValidateFn(e)||this.maxValidateFn(e)}},{key:"registerOnValidatorChange",value:function(e){this.ngValidatorChange=e}},{key:"writeValue",value:function(e){this.verifyValue(e);var n=this.restrictModelValue(e);this.value=n,this.setInputValue()}},{key:"registerOnChange",value:function(e){this.ngChange=e}},{key:"registerOnTouched",value:function(e){this.ngTouched=e}},{key:"setDisabledState",value:function(e){this.changeDetector.markForCheck(),this.disabled=e}},{key:"focus",value:function(){th(this.numericInput,"focus")}},{key:"blur",value:function(){th(this.numericInput,"blur")}},{key:"notifyValueChange",value:function(){this.setInputValue()}},{key:"incrementTitle",get:function(){return this.localizationService.get("increment")}},{key:"decrementTitle",get:function(){return this.localizationService.get("decrement")}},{key:"decimalSeparator",get:function(){return this.intl.numberSymbols().decimal}},{key:"elementValue",get:function(){return this.numericInput.nativeElement.value},set:function(e){this.renderer.setProperty(this.numericInput.nativeElement,"value",e)}},{key:"focused",get:function(){return this.isFocused},set:function(e){if(this.isFocused!==e&&this.hostElement){var n=this.hostElement.nativeElement;e?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus"),this.isFocused=e}}},{key:"hasDecimals",get:function(){return null!==this.decimals&&this.decimals>=0}},{key:"isDisabled",get:function(){return this.disabled||this.readonly}},{key:"arrowPress",value:function(e,n){n.preventDefault(),!this.isDisabled&&!function(r){return r.button&&2===r.button||r.which&&3===r.which}(n)&&(aW||(this.focused=!0,this.focus()),this.arrowDirection!==e&&(this.arrowDirection=e,this.changeDetector.detectChanges()),this.step?this.spin(e,500):this.setInputValue())}},{key:"updateValue",value:function(e){var n=this;hC(this.value,e)||this.ngZone.run(function(){n.value=e,n.ngChange(e),n.valueChange.emit(e),n.changeDetector.markForCheck()})}},{key:"replaceNumpadDotValue",value:function(){var e=this.inputValue||"";if(this.previousSelection){var n=this.numericInput.nativeElement,a=n.selectionStart,o=n.selectionEnd,s=this.previousSelection,u=s.end;n.value=e=e.substring(0,s.start)+this.decimalSeparator+e.substring(u),this.setSelection(a,o)}return e}},{key:"isValid",value:function(e){return this.numericRegex||(this.numericRegex=function(r){var n=r.min,a=r.separator;"."===a&&(a="\\"+a);var s,o=r.autoCorrect&&null!==n&&n>=0?"":"-?";return s=0===r.decimals?"\\d*":"(?:(?:\\d+(".concat(a,"\\d*)?)|(?:").concat(a,"\\d*))?"),new RegExp("^".concat(o).concat(s,"$"))}({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(e)}},{key:"spin",value:function(e,n){var a=this;clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(function(){a.spin(e,50)},n),this.addStep(e)}},{key:"addStep",value:function(e){var n=Zf(this.value||0,this.step*e);n=this.limitValue(n),n=this.restrictDecimals(n),this.setInputValue(n),this.updateValue(n)}},{key:"setSelection",value:function(e,n){this.focused&&th(this.numericInput,"setSelectionRange",e,n)}},{key:"limitValue",value:function(e){var n=e;return this.isInRange(e)||(Qf(this.max)&&e>this.max&&(n=this.max),Qf(this.min)&&eh?e>0?C=!0:_=h:g&&e0?_=d:C=!0),_){var E=this.tryPadValue(e,_);E&&iie(e)!==iie(_)&&(w=E,u=!0)}else C&&this.inputValue&&a!==s.length&&(w=parseFloat(s.substr(0,a)+s.substr(a+c)));l=this.limitValue(w),u=(u||l!==w)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+c>0}return{selectionEnd:u?String(l).length:o,selectionStart:a,value:l}}},{key:"tryPadValue",value:function(e,n){var l,a=String(Math.floor(n)).length,o=rie(e,a),s=rie(e,a+1);return this.isInRange(o)?l=o:this.isInRange(s)&&(l=s),l}},{key:"isInRange",value:function(e){return!Qf(e)||(!Qf(this.min)||this.min<=e)&&(!Qf(this.max)||e<=this.max)}},{key:"restrictModelValue",value:function(e){var n=this.restrictDecimals(e,!0);return this.autoCorrect&&this.limitValue(n)!==n&&(n=null),n}},{key:"restrictDecimals",value:function(e,n){var a=e;if(e&&this.hasDecimals){var o=this.decimals,s=String(e);if(n||nie.test(s))a=VE(e,o);else{var l=s.split("."),u=l[1];u&&u.length>o&&(u=u.substr(0,o),a=parseFloat("".concat(l[0]).concat(".").concat(u)))}}return a}},{key:"formatInputValue",value:function(e){var n=String(e),a=nie.exec(n);return a&&(n=e.toFixed(zne(parseInt(a[1],10)))),n.replace(".",this.decimalSeparator)}},{key:"formatValue",value:function(e,n){var a;return a=null!==e&&function(r){return void 0!==r}(e)&&""!==e?n&&!this.readonly?this.formatInputValue(e):this.intl.formatNumber(e,this.format):"",a}},{key:"setInputValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.value,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.focused,a=this.formatValue(e,n);this.elementValue=a,this.inputValue=a}},{key:"verifySettings",value:function(){if(xt()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max","."))}},{key:"verifyValue",value:function(e){if(xt()&&e&&"number"!=typeof e)throw new Error("The NumericTextBox component requires value of type Number and ".concat(JSON.stringify(e)," was set."))}},{key:"parseOptions",value:function(e){for(var n=0;nthis.decimals&&n.lastIndexOf("0")===n.length-1}}},{key:"selectAll",value:function(){this.setInputValue(),this.setSelection(0,this.inputValue.length)}},{key:"selectCaret",value:function(){var e=function(r){return r.selectionStart}(this.numericInput.nativeElement),n=this.elementValue,a=n.substring(0,e);if(this.setInputValue(),a.length){var o=function(r,t){var e="".concat(t,"0123456789-");return r.split("").reduce(function(n,a){return e.includes(a)?++n:n},0)}(a,this.decimalSeparator),s=this.adjustSignificantChars(n,o);this.setSelection(s,s)}else this.setSelection(0,0)}},{key:"numberOfLeadingZeroes",value:function(e){var n=e.indexOf(this.decimalSeparator),a=e.match(/^[^1-9]*?(0+)/);if(a){var s=a[1].length;return a[0].length===n?s-1:s}return 0}},{key:"adjustSignificantChars",value:function(e,n){var a=this.numberOfLeadingZeroes(e);return a>0?Math.max(0,n-a):n}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("input",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(fi),m(Ee),m(Y),m(Jn),m(be),m(nt),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-numerictextbox"]],viewQuery:function(t,e){var n;1&t&&ge(gqe,7),2&t&&P(n=B())&&(e.numericInput=n.first)},hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-disabled",e.disableClass)("k-input",e.hostClasses)("k-numerictextbox",e.hostClasses))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",autoCorrect:"autoCorrect",format:"format",max:"max",min:"min",decimals:"decimals",placeholder:"placeholder",step:"step",spinners:"spinners",rangeValidation:"rangeValidation",tabindex:"tabindex",tabIndex:"tabIndex",changeValueOnScroll:"changeValueOnScroll",selectOnFocus:"selectOnFocus",value:"value",maxlength:"maxlength",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur"},exportAs:["kendoNumericTextBox"],features:[de([Y,{provide:Dt,useValue:"kendo.numerictextbox"},{provide:jn,useExisting:ye(function(){return i}),multi:!0},{provide:tr,useExisting:ye(function(){return i}),multi:!0},{provide:Ui,useExisting:ye(function(){return i})}]),Ie],decls:4,vars:20,consts:function(){return[["kendoNumericTextBoxLocalizedMessages","","increment",$localize(jte||(jte=le([":kendo.numerictextbox.increment|The title for the **Increment** button in the NumericTextBox:Increase value"]))),"decrement",$localize(Wte||(Wte=le([":kendo.numerictextbox.decrement|The title for the **Decrement** button in the NumericTextBox:Decrease value"])))],["role","spinbutton","autocomplete","off","autocorrect","off",1,"k-input-inner",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["numericInput",""],["class","k-input-spinner k-spin-button",3,"kendoEventsOutsideAngular",4,"ngIf"],[1,"k-input-spinner","k-spin-button",3,"kendoEventsOutsideAngular"],["type","button","tabindex","-1",1,"k-spinner-increase","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],[1,"k-button-icon","k-icon","k-i-arrow-n"],["type","button","tabindex","-1",1,"k-spinner-decrease","k-button","k-icon-button","k-button-solid","k-button-solid-base",3,"kendoEventsOutsideAngular","title"],[1,"k-button-icon","k-icon","k-i-arrow-s"]]},template:function(t,e){1&t&&(Wt(0,0),z(1,"input",1,2),T(3,_qe,5,20,"span",3)),2&t&&(k(1),y("id",e.focusableId)("tabindex",e.tabIndex)("disabled",e.disabled)("readonly",e.readonly)("kendoEventsOutsideAngular",sR(12,yqe,e.handleMouseDown,e.handleDragEnter,e.handleKeyDown,e.handleInput,e.handleFocus,e.handleBlur,e.handlePaste)),ie("aria-valuemin",e.min)("aria-valuemax",e.max)("aria-valuenow",e.value)("title",e.title)("placeholder",e.placeholder)("maxLength",e.maxlength),k(2),y("ngIf",e.spinners))},directives:[vZe,qi,qe],encapsulation:2}),i}(),sie=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(WE);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-numerictextbox-messages"]],features:[de([{provide:WE,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),lie=(Promise.resolve(null),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Ly,cr,yo],Ly,cr,yo]}),i}()),uie=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,lie]]}),i}(),bZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,lie]]}),i}(),SZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,yo]]}),i}(),bP=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}(),wZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}(),TZe=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxSuffixTemplate",""]]}),i}(),cie=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxPrefixTemplate",""]]}),i}(),die=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-textbox-messages-base"]],inputs:{clear:"clear"},features:[j]}),i}(),AZe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(die);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoTextBoxLocalizedMessages",""]],features:[de([{provide:die,useExisting:ye(function(){return i})}]),j]}),i}(),OZe=function(){var i=function(){function r(t,e,n,a,o,s){var l=this;p(this,r),this.localizationService=t,this.ngZone=e,this.changeDetector=n,this.renderer=a,this.injector=o,this.hostElement=s,this.focusableId="k-".concat(qn()),this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new O,this.inputFocus=new O,this.inputBlur=new O,this.onFocus=new O,this.onBlur=new O,this.hostClasses=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",this.handleInputFocus=function(){l.disabled||(l.selectOnFocus&&l.value&&l.ngZone.run(function(){setTimeout(function(){l.selectAll()})}),ut(l.onFocus)&&(l.isFocused||l.ngZone.run(function(){l.onFocus.emit()})),ut(l.inputFocus)&&(!l.focusChangedProgrammatically||l.focusChangedProgrammatically&&l.clearButtonClicked)&&l.ngZone.run(function(){l.inputFocus.emit()}),l.ngZone.run(function(){l.isFocused=!0}))},this.handleInputBlur=function(){l.changeDetector.markForCheck(),(ut(l.inputBlur)||fC(l.control))&&l.ngZone.run(function(){l.ngTouched(),l.inputBlur.emit()})},this.handleInput=function(u){var c=u.target,d=function(r){var t=mI(r),e=gI(r);return t&&t.safari||e&&"mobilesafari"===e.browser}(navigator.userAgent),h=d&&function(r){return/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g.test(r)}(c.value)?u.data:c.value,f=[c.selectionStart,c.selectionEnd],g=f[0],_=f[1];l.updateValue(h),d&&c.setSelectionRange(g,_)},this.ngChange=function(u){},this.ngTouched=function(){},jt(jc),this.direction=t.rtl?"rtl":"ltr"}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.handleClasses(n,"rounded"),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.handleClasses(n,"fillMode"),this._fillMode=n}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledClass",get:function(){return this.disabled}},{key:"ngOnInit",value:function(){var e=this;this.control=this.injector.get(ra,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngAfterViewInit",value:function(){var e=this,n=this.hostElement.nativeElement,a=!1,o=!1;this.ngZone.runOutsideAngular(function(){e.subscriptions.add(e.renderer.listen(n,"focusin",function(){e.isFocused||e.ngZone.run(function(){e.onFocus.emit(),e.isFocused=!0})})),e.subscriptions.add(e.renderer.listen(n,"focusout",function(l){if(e.isFocused)if(o){var u=function(r,t){for(;r&&r!==e.hostElement.nativeElement;)r=r.parentNode;return r}(l.relatedTarget);u||e.handleBlur(),o=!1}else!a&&!e.clearButtonClicked&&e.handleBlur()})),e.subscriptions.add(e.renderer.listen(n,"mouseenter",function(){a=!0})),e.subscriptions.add(e.renderer.listen(n,"mouseleave",function(){a=!1})),e.subscriptions.add(e.renderer.listen(n,"keydown",function(l){o=l.keyCode===J.Tab}))}),["size","rounded","fillMode"].forEach(function(l){e.handleClasses(e[l],l)})}},{key:"ngOnChanges",value:function(e){(e.disabled||e.readonly||e.value)&&this.checkClearButton()}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"focus",value:function(){!this.input||(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}},{key:"blur",value:function(){this.focusChangedProgrammatically=!0;var e=this.hostElement.nativeElement.querySelector(":focus");e&&e.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}},{key:"clearTitle",value:function(){return this.localizationService.get("clear")}},{key:"checkClearButton",value:function(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value}},{key:"clearValue",value:function(e){e&&e.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(""),this.checkClearButton(),this.clearButtonClicked=!1}},{key:"writeValue",value:function(e){this.value=e,this.checkClearButton()}},{key:"registerOnChange",value:function(e){this.ngChange=e}},{key:"registerOnTouched",value:function(e){this.ngTouched=e}},{key:"setDisabledState",value:function(e){this.changeDetector.markForCheck(),this.disabled=e}},{key:"showErrorsInitial",value:function(){if(!this.control)return!1;var e=this.control;return e.invalid&&(e.dirty||e.touched)}},{key:"showSuccessInitial",value:function(){if(!this.control)return!1;var e=this.control;return e.valid&&(e.dirty||e.touched)}},{key:"successIconClasses",get:function(){return this.successIcon?"".concat(this.successIcon):"k-input-validation-icon k-icon k-i-check"}},{key:"errorIconClasses",get:function(){return this.errorIcon?"".concat(this.errorIcon):"k-input-validation-icon k-icon k-i-warning"}},{key:"clearButtonClasses",get:function(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-x"}},{key:"hasErrors",get:function(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon}},{key:"isSuccessful",get:function(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon}},{key:"setSelection",value:function(e,n){this.isFocused&&th(this.input,"setSelectionRange",e,n)}},{key:"selectAll",value:function(){this.value&&this.setSelection(0,this.value.length)}},{key:"updateValue",value:function(e){var n=this;hC(this.value,e)||this.ngZone.run(function(){n.value=e,n.ngChange(e),n.valueChange.emit(e),n.checkClearButton(),n.changeDetector.markForCheck()})}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){if(this._isFocused!==e&&this.hostElement){var n=this.hostElement.nativeElement;e&&!this.disabled?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus"),this._isFocused=e}}},{key:"handleBlur",value:function(){var e=this;this.ngZone.run(function(){e.focusChangedProgrammatically||e.onBlur.emit(),e.isFocused=!1})}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("input",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(be),m(nt),m(Ee),m(Jn),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-textbox"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,TZe,5),he(n,cie,5)),2&t&&(P(a=B())&&(e.suffixTemplate=a.first),P(a=B())&&(e.prefixTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&ge(kqe,7),2&t&&P(n=B())&&(e.input=n.first)},hostVars:7,hostBindings:function(t,e){2&t&&(ie("dir",e.direction),ue("k-disabled",e.disabledClass)("k-textbox",e.hostClasses)("k-input",e.hostClasses))},inputs:{focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",value:"value",selectOnFocus:"selectOnFocus",showSuccessIcon:"showSuccessIcon",showErrorIcon:"showErrorIcon",clearButton:"clearButton",successIcon:"successIcon",errorIcon:"errorIcon",clearButtonIcon:"clearButtonIcon",size:"size",rounded:"rounded",fillMode:"fillMode",tabIndex:"tabIndex",placeholder:"placeholder",maxlength:"maxlength"},outputs:{valueChange:"valueChange",inputFocus:"inputFocus",inputBlur:"inputBlur",onFocus:"focus",onBlur:"blur"},exportAs:["kendoTextBox"],features:[de([Y,{provide:Dt,useValue:"kendo.textbox"},{provide:jn,useExisting:ye(function(){return i}),multi:!0},{provide:Ui,useExisting:ye(function(){return i})}]),Ie],decls:10,vars:18,consts:function(){return[["kendoTextBoxLocalizedMessages","","clear",$localize($te||($te=le([":kendo.textbox.clear|The title for the **Clear** button in the TextBox.:Clear"])))],[1,"k-input-prefix"],[4,"ngIf"],[1,"k-input-inner",3,"id","disabled","readonly","value","kendoEventsOutsideAngular"],["input",""],["role","button","class","k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space",4,"ngIf"],[3,"ngClass",4,"ngIf"],[1,"k-input-suffix"],[3,"ngTemplateOutlet"],["role","button",1,"k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space"],[3,"ngClass"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"span",1),T(2,bqe,1,1,null,2),x(),z(3,"input",3,4),T(5,Sqe,2,4,"span",5),T(6,wqe,1,1,"span",6),T(7,Dqe,1,1,"span",6),A(8,"span",7),T(9,Tqe,1,1,null,2),x()),2&t&&(k(2),y("ngIf",e.prefixTemplate),k(1),y("id",e.focusableId)("disabled",e.disabled)("readonly",e.readonly)("value",e.value)("kendoEventsOutsideAngular",va(14,Aqe,e.handleInputFocus,e.handleInputBlur,e.handleInput)),ie("tabindex",e.disabled?void 0:e.tabindex)("placeholder",e.placeholder)("title",e.title)("maxlength",e.maxlength),k(2),y("ngIf",e.showClearButton),k(1),y("ngIf",e.hasErrors),k(1),y("ngIf",e.isSuccessful),k(2),y("ngIf",e.suffixTemplate))},directives:[AZe,qe,En,qi,Nt],encapsulation:2}),i}(),fie=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),NZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,fie],cr]}),i}(),FZe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr,fie],cr]}),i}(),rYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[uie,bP,bt,Fa,Ly]]}),i}(),aYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),sYe=function(){var i=function(){function r(t,e){p(this,r),this.renderer=t,this.hostElement=e,this.kendoClass=!0,this._size="medium",jt(jc)}return v(r,[{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.handleClasses(n,"size"),this._size=n}},{key:"ngAfterViewInit",value:function(){var e=this;["size"].forEach(function(a){e.handleClasses(e[a],a)})}},{key:"handleClasses",value:function(e,n){var a=this.hostElement.nativeElement,o=Xf("radio",n,this[n],e);o.toRemove&&this.renderer.removeClass(a,o.toRemove),o.toAdd&&this.renderer.addClass(a,o.toAdd)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ee),m(ke))},i.\u0275dir=X({type:i,selectors:[["input","kendoRadioButton",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-radio",e.kendoClass)},inputs:{size:"size"}}),i}(),lYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),uYe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),_C=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],FZe,NZe,uie,bZe,SZe,bP,wZe,rYe,aYe,lYe,uYe]}),i}();function cYe(i,r){return function(t,e){return!i.call(r,t,e)}}function Bie(i){return oi(function(r,t){var e=!1,n=0;r.subscribe(Wn(t,function(a){return(e||(e=!i(a,n++)))&&t.next(a)}))})}var hYe=["kendoTreeViewGroup",""];function fYe(i,r){if(1&i){var t=xe();A(0,"span",12),Q("click",function(){re(t);var l=D(),u=l.index,c=l.$implicit,d=D();return d.expandNode(d.nodeIndex(u),c,!d.isExpanded(c,d.nodeIndex(u)))}),z(1,"span",13),x()}if(2&i){var e=D(),n=e.index,a=e.$implicit,o=D();y("kendoTreeViewLoading",o.nodeIndex(n)),k(1),ue("k-i-collapse",o.isExpanded(a,o.nodeIndex(n)))("k-i-expand",!o.isExpanded(a,o.nodeIndex(n)))}}function vYe(i,r){if(1&i){var t=xe();A(0,"kendo-checkbox",14),Q("checkStateChange",function(){re(t);var l=D().index,u=D();return u.checkNode(u.nodeIndex(l))}),x()}if(2&i){var e=D(),n=e.$implicit,a=e.index,o=D();y("size",o.size)("node",n)("index",o.nodeIndex(a))("isChecked",o.isChecked)("tabindex",-1)}}function pYe(i,r){}var gYe=function(r,t){return{$implicit:r,index:t}};function mYe(i,r){if(1&i&&(Ge(0),T(1,pYe,0,0,"ng-template",15),Ve()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();k(1),y("ngTemplateOutlet",a.nodeTemplateRef)("ngTemplateOutletContext",ln(2,gYe,e,a.nodeIndex(n)))}}function _Ye(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D().$implicit,e=D();k(1),Pt(" ",e.nodeText(t)," ")}}function yYe(i,r){if(1&i&&z(0,"ul",16),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("nodes",a.fetchChildren)("loadOnDemand",a.loadOnDemand)("checkboxes",a.checkboxes)("expandIcons",a.expandIcons)("selectable",a.selectable)("touchActions",a.touchActions)("children",a.children)("hasChildren",a.hasChildren)("isChecked",a.isChecked)("isDisabled",a.isDisabled)("disabled",a.disabled||a.isDisabled(e,a.nodeIndex(n)))("isExpanded",a.isExpanded)("isSelected",a.isSelected)("isVisible",a.isVisible)("nodeTemplateRef",a.nodeTemplateRef)("loadMoreButtonTemplateRef",a.loadMoreButtonTemplateRef)("parentIndex",a.nodeIndex(n))("parentDataItem",e)("textField",a.nextFields)("loadMoreService",a.loadMoreService)("@toggle",!0)("trackBy",a.trackBy)}}function kYe(i,r){if(1&i&&(A(0,"li",2)(1,"div",3),T(2,fYe,2,5,"span",4),T(3,vYe,1,5,"kendo-checkbox",5),A(4,"span",6)(5,"span",7),Ge(6,8),T(7,mYe,2,5,"ng-container",9),T(8,_Ye,2,1,"ng-container",10),Ve(),x()()(),T(9,yYe,1,22,"ul",11),x()),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-display-none",!n.isVisible(t,n.nodeIndex(e))),y("dataItem",t)("index",n.nodeIndex(e))("parentDataItem",n.parentDataItem)("parentIndex",n.parentIndex)("loadOnDemand",n.loadOnDemand)("checkable",n.checkboxes)("isChecked",n.isChecked(t,n.nodeIndex(e)))("isDisabled",n.disabled||n.isDisabled(t,n.nodeIndex(e)))("isVisible",n.isVisible(t,n.nodeIndex(e)))("expandable",n.expandIcons&&n.hasChildren(t))("isExpanded",n.isExpanded(t,n.nodeIndex(e)))("selectable",n.selectable)("isSelected",n.isSelected(t,n.nodeIndex(e))),ie("aria-setsize",n.totalNodesCount)("data-treeindex",n.nodeIndex(e)),k(1),y("ngClass",n.setItemClasses(n.data.length,e)),k(1),y("ngIf",n.expandIcons&&n.hasChildren(t)),k(1),y("ngIf",n.checkboxes),k(1),Qe("touch-action",n.touchActions?"":"none"),y("dataItem",t)("index",n.nodeIndex(e))("initialSelection",n.isSelected(t,n.nodeIndex(e)))("isSelected",n.isSelected),ie("data-treeindex",n.nodeIndex(e)),k(2),y("ngSwitch",n.hasTemplate),k(1),y("ngSwitchCase",!0),k(2),y("ngIf",n.isExpanded(t,n.nodeIndex(e))&&n.hasChildren(t))}}function CYe(i,r){1&i&&z(0,"span",22)}function bYe(i,r){}var SYe=function(r){return{index:r}};function wYe(i,r){if(1&i&&T(0,bYe,0,0,"ng-template",15),2&i){var t=D(2);y("ngTemplateOutlet",t.loadMoreButtonTemplateRef)("ngTemplateOutletContext",ot(2,SYe,t.loadMoreButtonIndex))}}function DYe(i,r){1&i&&(Ge(0),te(1," Load more "),Ve())}function EYe(i,r){if(1&i&&(A(0,"li",17)(1,"div",18),T(2,CYe,1,0,"span",19),A(3,"span",20)(4,"span",7),T(5,wYe,1,4,null,21),T(6,DYe,2,0,"ng-container",21),x()()()()),2&i){var t=D();ue("k-treeview-load-more-checkboxes-container",t.checkboxes),y("selectable",!1)("checkable",!1)("expandable",!1)("index",t.loadMoreButtonIndex)("parentDataItem",t.parentDataItem)("parentIndex",t.parentIndex),ie("data-treeindex",t.loadMoreButtonIndex),k(2),y("ngIf",t.loadingMoreNodes),k(1),y("index",t.loadMoreButtonIndex),ie("data-treeindex",t.loadMoreButtonIndex),k(2),y("ngIf",t.loadMoreButtonTemplateRef),k(1),y("ngIf",!t.loadMoreButtonTemplateRef)}}var TYe=["assetsContainer"];function AYe(i,r){1&i&&z(0,"span",6)}function xYe(i,r){if(1&i){var t=xe();A(0,"span",3)(1,"kendo-textbox",4),Q("valueChange",function(a){return re(t),D().filterChange.emit(a)}),T(2,AYe,1,0,"ng-template",5),x()()}if(2&i){var e=D();k(1),y("size",e.size)("value",e.filter)("clearButton",!0)("placeholder",e.filterInputPlaceholder)}}var GYe={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1651820172,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},wP=function(){function i(){p(this,i),this.changes=new O}return v(i,[{key:"notify",value:function(){this.changes.emit()}}]),i}(),VYe=function(){return!1},UYe=function(){return"none"},zYe=function(){return!1},HYe=function(){return!0},Gie=function(){return!1},Vie=function(){return!0},KYe=function(r,t){return t},yC=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"expand",value:function(e,n){this.changes.next({dataItem:n,index:e,expand:!0})}},{key:"collapse",value:function(e,n){this.changes.next({dataItem:n,index:e,expand:!1})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),em=function(){var i=function(){function r(){p(this,r),this.INDEX_SEPARATOR="_"}return v(r,[{key:"nodeIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"".concat(n).concat(n?this.INDEX_SEPARATOR:"").concat(e)}},{key:"indexForLevel",value:function(e,n){return e.split(this.INDEX_SEPARATOR).slice(0,n).join(this.INDEX_SEPARATOR)}},{key:"lastLevelIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=e.split(this.INDEX_SEPARATOR);return n.length?parseInt(n[n.length-1],10):NaN}},{key:"level",value:function(e){return e.split(this.INDEX_SEPARATOR).length}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),DP=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"notifyLoaded",value:function(e){this.changes.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),jYe=/^(?:a|input|select|option|textarea|button|object)$/i,tv=function(r,t){var e=r.matches||r.msMatchesSelector||r.webkitMatchesSelector;return!!e&&e.call(r,t)},tm=function(r,t){if(!document.documentElement.contains(r))return null;for(var e=r;null!==e&&1===e.nodeType;){if(tv(e,t))return e;e=e.parentElement||e.parentNode}return null},Re=function(r){return null!=r},Hie=function(r){return Array.isArray(r)},nv=function(r){var t="li.k-treeview-item";return Ze()?r.closest?r.closest(t):tm(r,t):null},Kie=function(r){if(r.tagName){var t=r.tagName.toLowerCase(),e=r.getAttribute("tabIndex"),n="-1"===e,a=null!==e&&!n;return jYe.test(t)&&(a=!r.disabled&&!n),a}return!1},jie=function(r){return Re(tm(r,".k-treeview-leaf.k-treeview-load-more-button"))},AP=function(r,t){return Boolean(function(r,t){for(;r&&!t(r);)r=r.parentNode;return r}(r,function(e){return e===t}))},Wie=function(r){return r.nativeElement.querySelector('li[tabindex="0"]')},xP=function(r){return r?r.getAttribute("data-treeindex"):""},yu=function(r){return(r||{}).index},kC=function(r,t){return[r,t].filter(function(e){return Re(e)}).join("_")},tQe=function(r,t,e){return Re(r)?{dataItem:r,index:kC(e,t)}:null},n1=function(r,t){return{small:"k-".concat(r,"-sm"),medium:"k-".concat(r,"-md"),large:"k-".concat(r,"-lg")}[t]},MP=function(r){return r||{}},RP=function(r){return MP(r).children||[]},OP=function(r){if(!Array.isArray(r)||0===r.length)return null;for(var n=r.length-1;n>=0;n-=1){var a=r[n];if(a.visible)return a}return null},iQe=function(){function i(){p(this,i),this.ib=new em,this.nodes=[]}return v(i,[{key:"firstVisibleNode",value:function(){return(this.nodes||[]).find(function(t){return t.visible})}},{key:"lastVisibleNode",value:function(){for(var t=OP(this.nodes);Re(t)&&RP(t).length>0;){var e=RP(t),n=OP(e);if(!Re(n))return t;t=n}return t}},{key:"closestNode",value:function(t){var a=MP(this.findNode(t)).prev||this.firstVisibleNode();return MP(a).index===t?this.visibleSibling(a,1):a}},{key:"firstFocusableNode",value:function(){return this.nodes.find(function(t){return!t.disabled&&t.visible})}},{key:"findNode",value:function(t){return this.find(t,this.nodes)}},{key:"findParent",value:function(t){var e=this.ib.level(t)-1;return this.findNode(this.ib.indexForLevel(t,e))}},{key:"findVisibleChild",value:function(t){var e=this.findNode(t);return RP(e).find(function(a){return a.visible})}},{key:"findVisiblePrev",value:function(t){var e=t.index,n=this.findParent(e),a=this.ib.lastLevelIndex(e),s=this.container(n).slice(0,a).every(function(d){return!d.visible});if(0===a||s)return n;var l=this.findNode(e),u=this.visibleSibling(l,-1);if(u)for(var c=this.container(u);c.length>0&&c.some(function(d){return d.visible});)u=OP(c),c=this.container(u);return u}},{key:"findVisibleNext",value:function(t){var e=this.container(t),n=e.some(function(a){return a.visible});return 0!==e.length&&n?e.find(function(a){return a.visible}):this.visibleSibling(t,1)}},{key:"registerItem",value:function(t,e,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=[],l=this.ib.level(e),u=this.findParent(e);if(u||1===l){var c={id:t,children:s,index:e,parent:u,disabled:n,loadMoreButton:a,visible:o};this.insert(c,u)}}},{key:"unregisterItem",value:function(t,e){var n=this.find(e,this.nodes);if(n&&n.id===t){var a=this.container(n.parent);a.splice(a.indexOf(n),1)}}},{key:"childLevel",value:function(t){var e=t.filter(function(n){return Re(n)});return e&&e.length?this.ib.level(e[0].index):1}},{key:"container",value:function(t){return t?t.children:this.nodes}},{key:"find",value:function(t,e){var n=this.childLevel(e),a=this.ib.indexForLevel(t,n),o=n===this.ib.level(t),s=e.find(function(l){return l&&l.index===a});return s?o?s:this.find(t,s.children):null}},{key:"insert",value:function(t,e){this.container(e).splice(this.ib.lastLevelIndex(t.index),0,t)}},{key:"visibleSibling",value:function(t,e){if(!t)return null;for(var n=this.findParent(t.index),a=this.container(n),o=a.indexOf(t)+e,s=a[o];Re(s);){if(s.visible)return s;s=a[o+=e]}return this.visibleSibling(n,e)}}]),i}(),CC=function(){var i=function(){function r(t){var n,e=this;p(this,r),this.localization=t,this.expands=new Ot,this.moves=new Ot,this.checks=new Ot,this.selects=new Ot,this.loadMore=new Ot,this.navigable=!0,this.actions=(De(n={},J.ArrowUp,function(){return e.activate(e.model.findVisiblePrev(e.focusableItem),!0)}),De(n,J.ArrowDown,function(){return e.activate(e.model.findVisibleNext(e.focusableItem),!0)}),De(n,J.ArrowLeft,function(){return!e.isLoadMoreButton&&e.expand({expand:e.localization.rtl,intercept:e.localization.rtl?e.moveToFirstVisibleChild:e.moveToParent})}),De(n,J.ArrowRight,function(){return!e.isLoadMoreButton&&e.expand({expand:!e.localization.rtl,intercept:e.localization.rtl?e.moveToParent:e.moveToFirstVisibleChild})}),De(n,J.Home,function(){return e.activate(e.model.firstVisibleNode(),!0)}),De(n,J.End,function(){return e.activate(e.model.lastVisibleNode(),!0)}),De(n,J.Enter,function(){return e.handleEnter()}),De(n,J.Space,function(){return e.handleSpace()}),n),this.isFocused=!1,this.shouldScroll=!1,this._model=new iQe,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}return v(r,[{key:"model",get:function(){return this._model},set:function(e){this._model=e}},{key:"activeIndex",get:function(){return yu(this.activeItem)||null}},{key:"isActiveExpanded",get:function(){return this.activeItem&&this.activeItem.children.length>0}},{key:"isLoadMoreButton",get:function(){return this.activeItem&&this.activeItem.loadMoreButton}},{key:"focusableItem",get:function(){return this.activeItem||this.model.firstFocusableNode()}},{key:"activate",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!this.navigable||!e||this.isActive(yu(e))||(this.isFocused=!0,this.activeItem=e||this.activeItem,this.shouldScroll=n,this.notifyMove())}},{key:"activateParent",value:function(e){this.activate(this.model.findParent(e))}},{key:"activateIndex",value:function(e){!e||this.activate(this.model.findNode(e))}},{key:"activateClosest",value:function(e){!e||yu(this.focusableItem)!==e||(this.activeItem=this.model.closestNode(e),this.notifyMove())}},{key:"activateFocusable",value:function(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())}},{key:"deactivate",value:function(){!this.navigable||!this.isFocused||(this.isFocused=!1,this.notifyMove())}},{key:"checkIndex",value:function(e){this.isDisabled(e)||this.checks.next(e)}},{key:"selectIndex",value:function(e){this.isDisabled(e)||this.selects.next(e)}},{key:"notifyLoadMore",value:function(e){!Re(e)||this.loadMore.next(e)}},{key:"isActive",value:function(e){return!!e&&this.isFocused&&this.activeIndex===e}},{key:"isFocusable",value:function(e){return yu(this.focusableItem)===e}},{key:"isDisabled",value:function(e){return this.model.findNode(e).disabled}},{key:"registerItem",value:function(e,n,a){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],l=this.model.findNode(n);Re(l)&&(this.model.unregisterItem(l.id,l.index),this.isActive(n)&&this.deactivate()),this.model.registerItem(e,n,a,o,s)}},{key:"unregisterItem",value:function(e,n){this.isActive(n)&&this.activateParent(n),this.model.unregisterItem(e,n)}},{key:"move",value:function(e){if(this.navigable){var n=this.actions[e.keyCode];!n||(n(),e.preventDefault())}}},{key:"expand",value:function(e){var n=e.expand,a=e.intercept,o=yu(this.activeItem);!o||a(o)||this.notifyExpand(n)}},{key:"moveToParent",value:function(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(yu(this.activeItem))),!0)}},{key:"moveToFirstVisibleChild",value:function(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(yu(this.activeItem))),!0)}},{key:"notifyExpand",value:function(e){this.expands.next(this.navigationState(e))}},{key:"notifyMove",value:function(){this.moves.next(this.navigationState())}},{key:"navigationState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{expand:e,index:this.activeIndex,isFocused:this.isFocused,shouldScroll:this.shouldScroll}}},{key:"handleEnter",value:function(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))}},{key:"handleSpace",value:function(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),IP=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"childrenLoaded",value:function(e,n){this.changes.next({item:e,children:n})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),NP=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewNodeTemplate",""]]}),i}(),FP=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewLoadMoreButtonTemplate",""]]}),i}(),ku=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),bC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),r1=function(){var i=function(){function r(){p(this,r),this.changes=new Ot}return v(r,[{key:"isFirstSelected",value:function(e){return this.firstIndex===e}},{key:"setFirstSelected",value:function(e,n){this.firstIndex===e&&!1===n?this.firstIndex=null:!this.firstIndex&&n&&(this.firstIndex=e)}},{key:"select",value:function(e,n){this.changes.next({dataItem:n,index:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rQe=/\d+$/,a1=function(){var i=function(){function r(){p(this,r),this.map=new Map}return v(r,[{key:"reset",value:function(){this.map.clear()}},{key:"registerItem",value:function(e,n){var a={children:[],item:e,parent:this.item(yu(n))};this.map.set(e.index,a)}},{key:"registerChildren",value:function(e,n){var a=this.item(e);!a||(a.children=n)}},{key:"unregisterItem",value:function(e,n){var a=this.item(e);a&&a.item.dataItem===n&&(this.map.delete(e),a.parent&&a.parent.children&&(a.parent.children=a.parent.children.filter(function(o){return o.dataItem!==n})))}},{key:"replaceItem",value:function(e,n,a){!n||(this.unregisterItem(e,n.dataItem),this.registerItem(n,a),this.addToParent(n,a))}},{key:"itemLookup",value:function(e){var n=this.item(e);return n?{children:this.mapChildren(n.children),item:n.item,parent:n.parent}:null}},{key:"hasItem",value:function(e){return this.map.has(e)}},{key:"item",value:function(e){return this.map.get(e)||null}},{key:"addToParent",value:function(e,n){if(n){var a=this.item(n.index),o=parseInt(rQe.exec(e.index)[0],10);a.children=a.children||[],a.children.splice(o,0,e)}}},{key:"mapChildren",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return n.map(function(a){var o=e.item(a.index),s=o.item,l=o.parent;return{children:e.mapChildren(o.children),item:s,parent:l}})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),qie=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.renderer=e,this.changeDetector=n,this.id="_".concat(qn()),this.tabindex=0,this.size="medium",this.checkStateChange=new O,this.checkState="none"}return v(r,[{key:"classWrapper",get:function(){return!0}},{key:"indeterminate",get:function(){return"indeterminate"===this.checkState}},{key:"checked",get:function(){return"checked"===this.checkState}},{key:"checkBoxClasses",get:function(){return"k-checkbox ".concat(this.size?n1("checkbox",this.size):""," k-rounded-md")}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")}},{key:"ngDoCheck",value:function(){this.checkState=this.isChecked(this.node,this.index)}},{key:"handleChange",value:function(e){var n=e.target.checked?"checked":"none";this.checkState=n,this.changeDetector.detectChanges(),this.checkStateChange.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-checkbox"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-checkbox-wrapper",e.classWrapper)},inputs:{id:"id",isChecked:"isChecked",node:"node",index:"index",labelText:"labelText",tabindex:"tabindex",size:"size"},outputs:{checkStateChange:"checkStateChange"},decls:3,vars:8,consts:[["type","checkbox",3,"id","checked","indeterminate","tabindex","change"],["tabindex","-1",1,"k-checkbox-label",3,"for"]],template:function(t,e){1&t&&(A(0,"input",0),Q("change",function(a){return e.handleChange(a)}),x(),A(1,"label",1),te(2),x()),2&t&&(Ar(e.checkBoxClasses),y("id",e.id)("checked",e.checked)("indeterminate",e.indeterminate)("tabindex",e.tabindex),k(1),y("for",e.id),k(1),at(e.labelText))},encapsulation:2}),i}(),Xie=function(r,t){return{dataItem:t,index:r}},aQe=0,Zie=function(){var i=function(){function r(t,e,n,a,o,s,l){p(this,r),this.element=t,this.expandService=e,this.navigationService=n,this.selectionService=a,this.lookupService=o,this.renderer=s,this.ib=l,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=aQe++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}return v(r,[{key:"isChecked",set:function(e){this.ariaChecked="checked"===e?"true":"indeterminate"===e?"mixed":"false"}},{key:"isExpanded",get:function(){return this._isExpanded||!1},set:function(e){this._isExpanded=e}},{key:"isSelected",get:function(){return this._isSelected||!1},set:function(e){this._isSelected=e}},{key:"isButton",get:function(){return"button"===this.role}},{key:"treeItem",get:function(){return Xie(this.index,this.dataItem)}},{key:"parentTreeItem",get:function(){return this.parentDataItem?Xie(this.parentIndex,this.parentDataItem):null}},{key:"ngOnInit",value:function(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()}},{key:"ngOnChanges",value:function(e){var n=e.index,a=e.isDisabled;Ki(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],e)&&this.setAriaAttributes(),a&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(e),this.moveNavigationItem(n),Ki(["isDisabled","isVisible"],e)&&this.updateNodeAvailability()}},{key:"ngOnDestroy",value:function(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce(function(e,n){return n.unsubscribe(),e},[])}},{key:"subscribe",value:function(){var e=this;this.subscriptions=[this.navigationService.moves.subscribe(function(n){e.updateTabIndex(),e.focusItem(n.shouldScroll)}),this.navigationService.expands.pipe(Ue(function(n){return n.index===e.index&&!e.isDisabled})).subscribe(function(n){return e.expand(n.expand)})]}},{key:"registerNavigationItem",value:function(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()}},{key:"activateItem",value:function(){if(!this.isDisabled){var e=this.navigationService,n=this.selectionService,a=this.index;n.setFirstSelected(a,this.isSelected),!e.isActive(a)&&n.isFirstSelected(a)&&e.activateIndex(a)}}},{key:"expand",value:function(e){this.expandService[e?"expand":"collapse"](this.index,this.dataItem)}},{key:"isFocusable",value:function(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)}},{key:"focusItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus({preventScroll:!e})}},{key:"moveLookupItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.dataItem,a=e.index,o=e.parentDataItem,s=e.parentIndex;if((!a||!a.firstChange)&&(n||a||o||s)){var l=(a||{}).previousValue||this.index;this.lookupService.replaceItem(l,this.treeItem,this.parentTreeItem)}}},{key:"moveNavigationItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.currentValue,a=e.firstChange,o=e.previousValue;!a&&Re(n)&&Re(o)&&(this.navigationService.unregisterItem(this.id,o),this.navigationService.registerItem(this.id,n,this.isDisabled,this.isButton))}},{key:"updateNodeAvailability",value:function(){var e=this.navigationService;this.isDisabled||!this.isVisible?e.activateClosest(this.index):e.activateFocusable(),e.unregisterItem(this.id,this.index),e.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)}},{key:"setAriaAttributes",value:function(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)}},{key:"setDisabledClass",value:function(){this.setClass("k-disabled",this.isDisabled)}},{key:"setClass",value:function(e,n){this.renderer[n?"addClass":"removeClass"](this.element.nativeElement,e)}},{key:"updateTabIndex",value:function(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")}},{key:"setAttribute",value:function(e,n){Re(n)?this.renderer.setAttribute(this.element.nativeElement,e,n):this.renderer.removeAttribute(this.element.nativeElement,e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(yC),m(CC),m(r1),m(a1),m(Ee),m(em))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewItem",""]],inputs:{dataItem:"dataItem",index:"index",parentDataItem:"parentDataItem",parentIndex:"parentIndex",role:"role",loadOnDemand:"loadOnDemand",checkable:"checkable",selectable:"selectable",expandable:"expandable",isChecked:"isChecked",isDisabled:"isDisabled",isVisible:"isVisible",isExpanded:"isExpanded",isSelected:"isSelected"},features:[Ie]}),i}(),Yie=function(){var i=function(){function r(t,e,n){p(this,r),this.expandService=t,this.loadingService=e,this.cd=n,this._loading=!1}return v(r,[{key:"loading",get:function(){return this._loading},set:function(e){this._loading=e,this.cd.markForCheck()}},{key:"ngOnInit",value:function(){var e=this,n=this.loadingService.changes.pipe(Ue(function(a){return a===e.index}));this.subscription=this.expandService.changes.pipe(Ue(function(a){return a.index===e.index}),At(function(a){!a.expand&&e.loading&&(e.loading=!1)}),Ue(function(a){return a.expand}),Nn(function(a){return lt(a).pipe(Dd(100),Qr(n))})).subscribe(function(){return e.loading=!0}),this.subscription.add(n.subscribe(function(){return e.loading=!1}))}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(yC),m(DP),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewLoading",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-i-loading",e.loading)},inputs:{index:["kendoTreeViewLoading","index"]}}),i}(),Qie=function(){var i=function(){function r(t,e,n,a){var o=this;p(this,r),this.element=t,this.navigationService=e,this.selectionService=n,this.renderer=a,this.initialSelection=!1,this.isSelected=Gie,this.subscriptions=new Je,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(Ue(function(s){return s===o.index})).subscribe(function(s){return o.selectionService.select(s,o.dataItem)})),this.subscriptions.add(this.selectionService.changes.subscribe(function(){o.updateSelectionClass(o.isSelected(o.dataItem,o.index))}))}return v(r,[{key:"ngOnChanges",value:function(e){e.initialSelection&&this.updateSelectionClass(this.initialSelection),e.index&&this.updateFocusClass()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"updateFocusClass",value:function(){this.render(this.navigationService.isActive(this.index),"k-focus")}},{key:"updateSelectionClass",value:function(e){this.render(e,"k-selected")}},{key:"render",value:function(e,n){this.renderer[e?"addClass":"removeClass"](this.element.nativeElement,n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(CC),m(r1),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoTreeViewItemContent",""]],inputs:{dataItem:"dataItem",index:"index",initialSelection:"initialSelection",isSelected:"isSelected"},features:[Ie]}),i}(),Jie="k-treeview-top",ere="k-treeview-mid",LP="k-treeview-bot",tre=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.expandService=t,this.loadingService=e,this.indexBuilder=n,this.treeViewLookupService=a,this.navigationService=o,this.nodeChildrenService=s,this.dataChangeNotification=l,this.changeDetectorRef=u,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.size="medium",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new Je,this.isChecked=function(){return"none"},this.isDisabled=function(){return!1},this.isExpanded=function(){return!1},this.isVisible=function(){return!0},this.isSelected=function(){return!1},this.children=function(){return lt([])},this.hasChildren=function(){return!1}}return v(r,[{key:"moreNodesAvailable",get:function(){return!(!Re(this.loadMoreService)||0===this.data.length)&&this.pageSize0?this.pageSize:0):this._data},set:function(e){this._data=e,this.registerLoadedNodes(this.data)}},{key:"loadMoreButtonIndex",get:function(){return this.loadMoreService?this.nodeIndex(this.data.length):null}},{key:"totalNodesCount",get:function(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length}},{key:"hasTemplate",get:function(){return Re(this.nodeTemplateRef)}},{key:"expandNode",value:function(e,n,a){a?this.expandService.expand(e,n):this.expandService.collapse(e,n)}},{key:"checkNode",value:function(e){this.navigationService.checkIndex(e),this.navigationService.activateIndex(e)}},{key:"nodeIndex",value:function(e){return this.indexBuilder.nodeIndex(e.toString(),this.parentIndex)}},{key:"nodeText",value:function(e){return yr(Hie(this.textField)?this.textField[0]:this.textField)(e)}},{key:"ngOnDestroy",value:function(){Re(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),Re(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()}},{key:"ngOnInit",value:function(){var e=this;this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(Ue(function(n){return n===e.loadMoreButtonIndex})).subscribe(this.loadMoreNodes.bind(this)))}},{key:"ngOnChanges",value:function(e){e.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))}},{key:"fetchChildren",value:function(e,n){var a=this;return this.children(e).pipe(cl(function(){return a.loadingService.notifyLoaded(n),po}),At(function(){return a.loadingService.notifyLoaded(n)}))}},{key:"nextFields",get:function(){return Hie(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]}},{key:"loadMoreNodes",value:function(){Re(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()}},{key:"setItemClasses",value:function(e,n){return 1===e?this.parentIndex?LP:"".concat(Jie," ").concat(LP):0===n?Jie:n>0&&n0){var a=e.loadMoreButtonIndex;e.pageSize+=n.length,e.data=e.data.concat(n),e.navigationService.isActive(a)&&(e.changeDetectorRef.detectChanges(),e.reselectItemAt(a))}}))}},{key:"setNodeChildren",value:function(e){this.treeViewLookupService.registerChildren(this.parentIndex,e)}},{key:"mapToTreeItem",value:function(e){var n=this;return this.parentIndex?e.map(function(a,o){return{dataItem:a,index:n.nodeIndex(o)}}):[]}},{key:"emitChildrenLoaded",value:function(e){if(this.parentIndex){var n=e.filter(function(a){return a.dataItem});this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},n)}}},{key:"subscribeToNodesChange",value:function(){var e=this;this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(function(n){e.data=n,e.initialNodesLoaded=!0})}},{key:"reselectItemAt",value:function(e){!Re(e)||(this.navigationService.deactivate(),this.navigationService.activateIndex(e))}},{key:"registerLoadedNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this.mapToTreeItem(e);this.loadOnDemand&&this.setNodeChildren(n),this.emitChildrenLoaded(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(yC),m(DP),m(em),m(a1),m(CC),m(IP),m(wP),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoTreeViewGroup",""]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("role",e.role),ue("k-treeview-group",e.kGroupClass))},inputs:{checkboxes:"checkboxes",expandIcons:"expandIcons",disabled:"disabled",selectable:"selectable",touchActions:"touchActions",loadOnDemand:"loadOnDemand",trackBy:"trackBy",nodes:"nodes",textField:"textField",parentDataItem:"parentDataItem",parentIndex:"parentIndex",nodeTemplateRef:"nodeTemplateRef",loadMoreButtonTemplateRef:"loadMoreButtonTemplateRef",loadMoreService:"loadMoreService",size:"size",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isVisible:"isVisible",isSelected:"isSelected",children:"children",hasChildren:"hasChildren"},features:[Ie],attrs:hYe,decls:2,vars:3,consts:[["class","k-treeview-item","kendoTreeViewItem","",3,"k-display-none","dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-treeview-item","kendoTreeViewItem","","role","button",3,"k-treeview-load-more-checkboxes-container","selectable","checkable","expandable","index","parentDataItem","parentIndex",4,"ngIf"],["kendoTreeViewItem","",1,"k-treeview-item",3,"dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected"],[3,"ngClass"],["class","k-treeview-toggle",3,"kendoTreeViewLoading","click",4,"ngIf"],[3,"size","node","index","isChecked","tabindex","checkStateChange",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf",3,"dataItem","index","initialSelection","isSelected"],[1,"k-treeview-leaf-text"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy",4,"ngIf"],[1,"k-treeview-toggle",3,"kendoTreeViewLoading","click"],[1,"k-icon"],[3,"size","node","index","isChecked","tabindex","checkStateChange"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy"],["kendoTreeViewItem","","role","button",1,"k-treeview-item",3,"selectable","checkable","expandable","index","parentDataItem","parentIndex"],[1,"k-treeview-bot"],["class","k-icon k-i-loading k-i-expand",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf","k-treeview-load-more-button",3,"index"],[4,"ngIf"],[1,"k-icon","k-i-loading","k-i-expand"]],template:function(t,e){1&t&&(T(0,kYe,10,30,"li",0),T(1,EYe,7,14,"li",1)),2&t&&(y("ngForOf",e.data)("ngForTrackBy",e.trackBy),k(1),y("ngIf",e.initialNodesLoaded&&e.moreNodesAvailable))},directives:[qie,i,gn,Zie,Nt,qe,Yie,Qie,kd,Gp,En,KR],encapsulation:2,data:{animation:[ef("toggle",[iu("void => *",[Ft({height:0}),Ai("0.1s ease-in",Ft({height:"*"}))]),iu("* => void",[Ft({height:"*"}),Ai("0.1s ease-in",Ft({height:0}))])])]}}),i}(),uQe=[yC,em,a1,DP,IP,CC,r1,wP,Y,{provide:Dt,useValue:"kendo.treeview"},{provide:ku,useExisting:ye(function(){return is})},{provide:bC,useExisting:ye(function(){return is})}],is=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){var f=this;p(this,r),this.element=t,this.changeDetectorRef=e,this.expandService=n,this.navigationService=a,this.nodeChildrenService=o,this.selectionService=s,this.treeViewLookupService=l,this.ngZone=u,this.renderer=c,this.dataChangeNotification=d,this.localization=h,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=function(){return f.data},this.childrenLoaded=new O,this.onBlur=new O,this.onFocus=new O,this.expand=new O,this.collapse=new O,this.nodeDragStart=new O,this.nodeDrag=new O,this.filterStateChange=new O,this.nodeDrop=new O,this.nodeDragEnd=new O,this.addItem=new O,this.removeItem=new O,this.checkedChange=new O,this.selectionChange=new O,this.filterChange=new O,this.nodeClick=new O,this.nodeDblClick=new O,this.trackBy=KYe,this.isDisabled=zYe,this.isVisible=Vie,this.navigable=!0,this.children=function(){return lt([])},this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new xi([]),this._animate=!0,this._size="medium",this.subscriptions=new Je,this.domSubscriptions=[],jt(GYe)}return v(r,[{key:"direction",get:function(){return this.localization.rtl?"rtl":"ltr"}},{key:"animate",get:function(){return!this._animate},set:function(e){this._animate=e}},{key:"nodeTemplateRef",get:function(){return this._nodeTemplateRef||this.nodeTemplateQuery},set:function(e){this._nodeTemplateRef=e}},{key:"loadMoreButtonTemplateRef",get:function(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery},set:function(e){this._loadMoreButtonTemplateRef=e}},{key:"nodes",get:function(){return this.data.value},set:function(e){this.data.next(e||[]),this.dataChangeNotification.notify()}},{key:"hasChildren",get:function(){return this._hasChildren||VYe},set:function(e){this._hasChildren=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}},{key:"isChecked",get:function(){return this._isChecked||UYe},set:function(e){this._isChecked=e,this.checkboxes=Boolean(this._isChecked)}},{key:"isExpanded",get:function(){return this._isExpanded||HYe},set:function(e){this._isExpanded=e,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}},{key:"isSelected",get:function(){return this._isSelected||Gie},set:function(e){this._isSelected=e,this.selectable=Boolean(this._isSelected)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";"none"!==this.size&&this.renderer.removeClass(this.element.nativeElement,n1("treeview",this.size)),this.renderer.addClass(this.element.nativeElement,n1("treeview",n)),this._size=e}},{key:"ngOnChanges",value:function(e){this.navigationService.navigable=Boolean(this.navigable),Ki(["nodes","children","hasChildren","loadOnDemand"],e,!1)&&!this.loadOnDemand&&this.preloadChildNodes()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(function(e){return e()})}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.nodeChildrenService.changes.subscribe(function(n){return e.childrenLoaded.emit(n)})),this.subscriptions.add(this.expandService.changes.subscribe(function(n){var a=n.index,o=n.dataItem;return n.expand?e.expand.emit({index:a,dataItem:o}):e.collapse.emit({index:a,dataItem:o})})),this.subscriptions.add(this.navigationService.checks.subscribe(function(n){return e.checkedChange.emit(e.treeViewLookupService.itemLookup(n))})),this.subscriptions.add(this.selectionService.changes.subscribe(function(n){ut(e.selectionChange)&&e.ngZone.run(function(){e.selectionChange.emit(n)})})),this.element&&this.ngZone.runOutsideAngular(function(){e.attachDomHandlers()}),this.size&&this.renderer.addClass(this.element.nativeElement,n1("treeview",this.size))}},{key:"blur",value:function(){if(Ze()){var e=Wie(this.element);document.activeElement===e&&e.blur()}}},{key:"focus",value:function(e){var n=e||yu(this.navigationService.focusableItem);this.navigationService.activateIndex(n);var a=Wie(this.element);a&&a.focus()}},{key:"itemLookup",value:function(e){return this.treeViewLookupService.itemLookup(e)}},{key:"rebindChildren",value:function(){this.dataChangeNotification.notify()}},{key:"expandNode",value:function(e,n){this.expandService.expand(n,e)}},{key:"collapseNode",value:function(e,n){this.expandService.collapse(n,e)}},{key:"getNodePageSize",value:function(e){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(e)}},{key:"setNodePageSize",value:function(e,n){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(e,n)}},{key:"preloadChildNodes",value:function(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)}},{key:"attachDomHandlers",value:function(){var e=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(e,"contextmenu",this.clickHandler),this.renderer.listen(e,"click",this.clickHandler),this.renderer.listen(e,"dblclick",this.clickHandler),this.renderer.listen(e,"focusin",this.focusHandler.bind(this)),this.renderer.listen(e,"focusout",this.blurHandler.bind(this)),this.renderer.listen(e,"keydown",this.keydownHandler.bind(this)))}},{key:"focusHandler",value:function(e){var a,n=this;tv(e.target,".k-treeview-item")?a=e.target:Kie(e.target)||(a=nv(e.target)),a&&(this.navigationService.activateIndex(xP(e.target)),!this.isActive&&ut(this.onFocus)&&this.ngZone.run(function(){n.onFocus.emit()}),this.isActive=!0)}},{key:"blurHandler",value:function(e){var n=this;this.isActive&&tv(e.target,".k-treeview-item")&&(!e.relatedTarget||!tv(e.relatedTarget,".k-treeview-item")||!AP(e.relatedTarget,this.element.nativeElement))&&(this.navigationService.deactivate(),this.isActive=!1,ut(this.onBlur)&&this.ngZone.run(function(){n.onBlur.emit()}))}},{key:"clickHandler",value:function(e){var n=this,a=e.target;if(("contextmenu"!==e.type||ut(this.nodeClick))&&("click"!==e.type||ut(this.nodeClick)||ut(this.selectionChange)||jie(a))&&("dblclick"!==e.type||ut(this.nodeDblClick))&&!Kie(a)&&(function(r){if(!Ze())return null;for(var e=r;e&&!tv(e,".k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)e=e.parentNode;return e?tv(e,".k-treeview-leaf:not(.k-treeview-load-more-button)"):void 0}(a)||jie(a))&&AP(a,this.element.nativeElement)){var o=xP(nv(a));!o||this.navigationService.isDisabled(o)||this.ngZone.run(function(){var s=n.treeViewLookupService.itemLookup(o);if("click"===e.type){if(n.navigationService.model.findNode(o).loadMoreButton)return void n.navigationService.notifyLoadMore(o);n.navigationService.selectIndex(o)}("dblclick"===e.type?n.nodeDblClick:n.nodeClick).emit({item:s.item,originalEvent:e,type:e.type})})}}},{key:"keydownHandler",value:function(e){var n=this;this.isActive&&this.navigable&&this.ngZone.run(function(){n.navigationService.move(e)})}},{key:"verifyLoadMoreService",value:function(){if(xt()&&!Re(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See ".concat("http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/","."))}},{key:"registerLookupItems",value:function(e){var n=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Re(e)&&0!==e.length){var o=yu(a),s=e.map(function(l,u){return tQe(l,u,o)});Re(a)&&this.treeViewLookupService.registerChildren(o,s),s.forEach(function(l){n.treeViewLookupService.registerItem(l,a),n.hasChildren(l.dataItem)&&n.children(l.dataItem).subscribe(function(u){return n.registerLookupItems(u,l)})})}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(nt),m(yC),m(CC),m(IP),m(r1),m(a1),m(be),m(Ee),m(wP),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-treeview"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,NP,5),he(n,FP,5)),2&t&&(P(a=B())&&(e.nodeTemplateQuery=a.first),P(a=B())&&(e.loadMoreButtonTemplateQuery=a.first))},viewQuery:function(t,e){var n;1&t&&ge(TYe,7,ei),2&t&&P(n=B())&&(e.assetsContainer=n.first)},hostVars:5,hostBindings:function(t,e){2&t&&(ie("role",e.role)("dir",e.direction),ZM("@.disabled",e.animate),ue("k-treeview",e.classNames))},inputs:{filterInputPlaceholder:"filterInputPlaceholder",animate:"animate",nodeTemplateRef:["nodeTemplate","nodeTemplateRef"],loadMoreButtonTemplateRef:["loadMoreButtonTemplate","loadMoreButtonTemplateRef"],trackBy:"trackBy",nodes:"nodes",textField:"textField",hasChildren:"hasChildren",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isSelected:"isSelected",isVisible:"isVisible",navigable:"navigable",children:"children",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",size:"size"},outputs:{childrenLoaded:"childrenLoaded",onBlur:"blur",onFocus:"focus",expand:"expand",collapse:"collapse",nodeDragStart:"nodeDragStart",nodeDrag:"nodeDrag",filterStateChange:"filterStateChange",nodeDrop:"nodeDrop",nodeDragEnd:"nodeDragEnd",addItem:"addItem",removeItem:"removeItem",checkedChange:"checkedChange",selectionChange:"selectionChange",filterChange:"filterChange",nodeClick:"nodeClick",nodeDblClick:"nodeDblClick"},exportAs:["kendoTreeView"],features:[de(uQe),Ie],decls:4,vars:20,consts:[["class","k-treeview-filter",4,"ngIf"],["kendoTreeViewGroup","","role","group",1,"k-treeview-lines",3,"size","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","textField","nodes","loadMoreService","trackBy"],["assetsContainer",""],[1,"k-treeview-filter"],[3,"size","value","clearButton","placeholder","valueChange"],["kendoTextBoxPrefixTemplate",""],[1,"k-input-icon","k-icon","k-i-search"]],template:function(t,e){1&t&&(T(0,xYe,3,4,"span",0),z(1,"ul",1),Wt(2,null,2)),2&t&&(y("ngIf",e.filterable),k(1),y("size",e.size)("loadOnDemand",e.loadOnDemand)("checkboxes",e.checkboxes)("expandIcons",e.expandIcons)("selectable",e.selectable)("touchActions",e.touchActions)("children",e.children)("hasChildren",e.hasChildren)("isChecked",e.isChecked)("isDisabled",e.isDisabled)("isExpanded",e.isExpanded)("isSelected",e.isSelected)("isVisible",e.isVisible)("nodeTemplateRef",null==e.nodeTemplateRef?null:e.nodeTemplateRef.templateRef)("loadMoreButtonTemplateRef",null==e.loadMoreButtonTemplateRef?null:e.loadMoreButtonTemplateRef.templateRef)("textField",e.textField)("nodes",e.fetchNodes)("loadMoreService",e.loadMoreService)("trackBy",e.trackBy))},directives:[OZe,tre,qe,cie],encapsulation:2}),i}();!function gQe(i){var r,t=!1}(function(){if(!Ze()||!Re(document.body))return!1;var r=document.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='
    child
    '),document.body.appendChild(r);var t=10!==r.children[0].getBoundingClientRect().top;return document.body.removeChild(r),t}),new RegExp("(auto|scroll)"),new em,new em;var Sre,wre,Dre,Ere,Tre,Are,xre,Mre,Rre,IQe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),NQe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,IQe,_C]]}),i}(),FQe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[NQe]]}),i}(),LQe=["input"],PQe=function(r,t){return{focus:r,blur:t}},BQe=["content"],GQe=["list"],VQe=["virtualContainer"];function UQe(i,r){}var Cu=function(r,t){return{templateRef:r,$implicit:t}};function zQe(i,r){if(1&i&&T(0,UQe,0,0,"ng-template",10),2&i){var t=D(2);y("templateContext",ln(1,Cu,t.fixedGroupTemplate.templateRef,t.currentGroup))}}function HQe(i,r){if(1&i&&(A(0,"span"),te(1),x()),2&i){var t=D(2);Ar(t.listGroupStickyHeaderTextClass),k(1),at(t.currentGroup)}}var Vre=function(r,t,e){return{"height.px":r,"minHeight.px":t,boxSizing:e}};function KQe(i,r){if(1&i&&(A(0,"div",8),T(1,zQe,1,4,null,5),T(2,HQe,2,3,"ng-template",9),x()),2&i){var t=D();Ar(t.listGroupStickyHeaderClass),y("ngStyle",va(5,Vre,null==t.virtual?null:t.virtual.itemHeight,null==t.virtual?null:t.virtual.itemHeight,t.virtual?"border-box":"inherit")),k(1),y("ngIf",t.fixedGroupTemplate),k(1),y("ngIf",!t.fixedGroupTemplate)}}function jQe(i,r){if(1&i){var t=xe();A(0,"input",14),Q("change",function(o){re(t);var s=D().index;return D(2).onCheckedChange(o,s)}),x()}if(2&i){var e=D().index,n=D(2);y("ngClass",n.checkboxClasses)("checked",n.isChecked(e))}}function WQe(i,r){}function $Qe(i,r){if(1&i&&T(0,WQe,0,0,"ng-template",10),2&i){var t=D().$implicit,e=D(2);y("templateContext",ln(1,Cu,e.template.templateRef,t))}}function qQe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D().$implicit,e=D(2);k(1),at(e.getText(t))}}var Ure=function(r,t){return{"k-disabled":r,"k-table-alt-row":t}};function XQe(i,r){if(1&i&&(A(0,"li",12),T(1,jQe,1,2,"input",13),T(2,$Qe,1,4,null,5),T(3,qQe,2,1,"ng-template",9),x()),2&i){var t=r.$implicit,e=r.index,n=D(2);Ar(n.listItemClass),y("checkboxes",n.checkboxes)("height",null==n.virtual?null:n.virtual.itemHeight)("index",e+n.startFrom)("multipleSelection",n.multipleSelection)("ngClass",ln(12,Ure,n.isDisabled(e),n.isAltRow(e))),ie("id",n.optionPrefix+"-"+n.getValue(t))("tabIndex",-1),k(1),y("ngIf",n.checkboxes.enabled),k(1),y("ngIf",n.template),k(1),y("ngIf",!n.template)}}function ZQe(i,r){1&i&&T(0,XQe,4,15,"ng-template",11),2&i&&y("ngForOf",D().data)}function YQe(i,r){}function QQe(i,r){if(1&i&&T(0,YQe,0,0,"ng-template",10),2&i){var t=D(2).$implicit,e=D(2);y("templateContext",ln(1,Cu,e.groupTemplate.templateRef,t.value))}}function JQe(i,r){1&i&&te(0),2&i&&at(D(2).$implicit.value)}function eJe(i,r){if(1&i&&(A(0,"li",18)(1,"span"),T(2,QQe,1,4,null,5),T(3,JQe,1,1,"ng-template",9),x()()),2&i){var t=D(),e=t.index,n=t.$implicit,a=D(2);Ar(a.listGroupItemClass),ue("k-table-alt-row",a.isAltRow(e-1)),y("ngStyle",va(12,Vre,null==a.virtual?null:a.virtual.itemHeight,null==a.virtual?null:a.virtual.itemHeight,a.virtual?"border-box":"inherit")),ie("group-index",n.index)("id",a.optionPrefix+"-"+a.getValue(n.value))("tabIndex",-1),k(1),Ar(a.listGroupItemTextClass),k(1),y("ngIf",a.groupTemplate),k(1),y("ngIf",!a.groupTemplate)}}function tJe(i,r){}function nJe(i,r){if(1&i&&T(0,tJe,0,0,"ng-template",10),2&i){var t=D(2).$implicit,e=D(2);y("templateContext",ln(1,Cu,e.template.templateRef,t.value))}}function iJe(i,r){if(1&i&&(A(0,"span",15),te(1),x()),2&i){var t=D(2).$implicit,e=D(2);k(1),at(e.getText(t.value))}}function rJe(i,r){if(1&i&&(A(0,"li",19),T(1,nJe,1,4,null,5),T(2,iJe,2,1,"ng-template",9),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D(2);Ar(a.listItemClass),y("height",null==a.virtual?null:a.virtual.itemHeight)("index",e.offsetIndex)("multipleSelection",a.multipleSelection)("ngClass",ln(11,Ure,a.isDisabled(e.offsetIndex),a.isAltRow(n-1))),ie("absolute-index",e.index)("id",a.optionPrefix+"-"+a.getValue(e.value))("tabIndex",-1),k(1),y("ngIf",a.template),k(1),y("ngIf",!a.template)}}function aJe(i,r){if(1&i&&(T(0,eJe,4,16,"li",16),T(1,rJe,3,14,"li",17)),2&i){var t=r.$implicit;y("ngIf",t.header&&t.index>0),k(1),y("ngIf",!t.header)}}function oJe(i,r){1&i&&T(0,aJe,2,2,"ng-template",11),2&i&&y("ngForOf",D().data)}function sJe(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().listResize.emit()}),x()}}function lJe(i,r){if(1&i){var t=xe();A(0,"div",21,22)(2,"div")(3,"kendo-resize-sensor",20),Q("resize",function(){return re(t),D().listResize.emit()}),x()()()}if(2&i){var e=D();k(2),Qe("height",e.scrollHeight,"px")}}var im=["container"],rm=["popupTemplate"],l1=["optionsList"];function uJe(i,r){if(1&i){var t=xe();A(0,"span",8),Q("click",function(a){return re(t),D().clearValue(a)})("mousedown",function(a){return a.preventDefault()}),z(1,"span",9),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),ie("title",e.messageFor("clearTitle"))}}function cJe(i,r){1&i&&z(0,"span",10)}function dJe(i,r){}var fr=function(r){return{templateRef:r}};function hJe(i,r){if(1&i&&T(0,dJe,0,0,"ng-template",15),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function fJe(i,r){}function vJe(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function pJe(i,r){if(1&i&&(A(0,"div",16),T(1,fJe,0,0,"ng-template",17),T(2,vJe,2,1,"ng-template",6),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,null==t.noDataTemplate?null:t.noDataTemplate.templateRef)),k(1),y("ngIf",!t.noDataTemplate)}}function gJe(i,r){}function mJe(i,r){if(1&i&&T(0,gJe,0,0,"ng-template",15),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function _Je(i,r){if(1&i){var t=xe();T(0,hJe,1,3,null,11),A(1,"kendo-list",12,13),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(3,pJe,3,5,"div",14),T(4,mJe,1,3,null,11)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.valueField)("valueField",e.valueField)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function yJe(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",18),Q("resize",function(){return re(t),D().onResize()}),x()}}var kJe=["select"],SC=function(r){return{mousedown:r}};function CJe(i,r){if(1&i){var t=xe();A(0,"span",10),Q("click",function(a){return re(t),D().clearValue(a)}),z(1,"span",11),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),y("kendoEventsOutsideAngular",ot(4,SC,e.preventEventDefault)),ie("title",e.messageFor("clearTitle"))}}function bJe(i,r){}function SJe(i,r){if(1&i&&T(0,bJe,0,0,"ng-template",16),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function wJe(i,r){}function DJe(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function EJe(i,r){if(1&i&&(A(0,"div",17),T(1,wJe,0,0,"ng-template",18),T(2,DJe,2,1,"ng-template",8),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function TJe(i,r){}function AJe(i,r){if(1&i&&T(0,TJe,0,0,"ng-template",16),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function xJe(i,r){if(1&i){var t=xe();T(0,SJe,1,3,null,12),A(1,"kendo-list",13,14),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(3,EJe,3,5,"div",15),T(4,AJe,1,3,null,12)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function MJe(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",19),Q("resize",function(){return re(t),D().onResize()}),x()}}function RJe(i,r){}function OJe(i,r){if(1&i&&T(0,RJe,0,0,"ng-template",9),2&i){var t=D();y("templateContext",ln(1,Cu,t.valueTemplate.templateRef,t.dataItem))}}function IJe(i,r){1&i&&te(0),2&i&&at(D().getText())}function NJe(i,r){if(1&i){var t=xe();A(0,"div",13),Q("click",function(a){return a.stopImmediatePropagation()}),A(1,"span",14),z(2,"span",15),A(3,"input",16),Q("ngModelChange",function(a){return re(t),D(2).filterText=a})("keydown",function(a){return re(t),D(2).keydown(a)})("input",function(a){return re(t),D(2).handleFilter(a)})("focus",function(){return re(t),D(2).onFilterFocus()})("blur",function(){return re(t),D(2).blurFilterInput()}),x()()()}if(2&i){var e=D(2);k(1),y("ngClass",e.filterInputClasses),k(2),y("filterInput",e.isFocused&&!e.touchEnabled)("dir",e.direction)("ngModel",e.filterText),ie("aria-owns",e.ariaOwns)("aria-activedescendant",e.ariaActivedescendant)("aria-label",e.noDataLabel)}}var zre=function(r){return{"k-disabled":r}};function FJe(i,r){if(1&i&&(A(0,"div",17)(1,"div",18),te(2),x()()),2&i){var t=D(2);y("ngClass",t.optionLabelSizeClass),k(1),y("ngClass",ot(4,zre,t.isDisabledDefaultItem))("index",-1),k(1),Pt(" ",t.getDefaultItemText()," ")}}function LJe(i,r){}function PJe(i,r){if(1&i&&(A(0,"div",17)(1,"div",18),T(2,LJe,0,0,"ng-template",9),x()()),2&i){var t=D(2);y("ngClass",t.optionLabelSizeClass),k(1),y("ngClass",ot(4,zre,t.isDisabledDefaultItem))("index",-1),k(1),y("templateContext",ln(6,Cu,t.itemTemplate.templateRef,t.defaultItem))}}function BJe(i,r){}function GJe(i,r){if(1&i&&T(0,BJe,0,0,"ng-template",9),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function VJe(i,r){}function UJe(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function zJe(i,r){if(1&i&&(A(0,"div",19),T(1,VJe,0,0,"ng-template",20),T(2,UJe,2,1,"ng-template",4),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function HJe(i,r){}function KJe(i,r){if(1&i&&T(0,HJe,0,0,"ng-template",9),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function jJe(i,r){if(1&i){var t=xe();T(0,NJe,4,7,"ng-template",4),T(1,FJe,3,6,"ng-template",4),T(2,PJe,3,9,"ng-template",4),T(3,GJe,1,3,null,3),A(4,"kendo-list",10,11),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(6,zJe,3,5,"div",12),T(7,KJe,1,3,null,3)}if(2&i){var e=D();y("ngIf",e.filterable),k(1),y("ngIf",e.defaultItem&&!e.itemTemplate),k(1),y("ngIf",e.defaultItem&&e.itemTemplate),k(1),y("ngIf",e.headerTemplate),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("template",e.itemTemplate)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("height",e.listHeight)("show",e.isOpen)("virtual",e.virtual),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function WJe(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",21),Q("resize",function(){return re(t),D().onResize()}),x()}}function $Je(i,r){}function qJe(i,r){1&i&&T(0,$Je,0,0,"ng-template")}function XJe(i,r){}function ZJe(i,r){if(1&i&&T(0,XJe,0,0,"ng-template",12),2&i){var t=D(2).$implicit,e=D();y("templateContext",ln(1,Cu,e.groupTemplate.templateRef,t))}}function YJe(i,r){if(1&i&&te(0),2&i){var t=D(2).$implicit;Jl("",t.length," ",1===t.length?"item":"items"," selected")}}function QJe(i,r){if(1&i&&(A(0,"span",9),T(1,ZJe,1,4,null,10),T(2,YJe,1,2,"ng-template",11),x()),2&i){var t=D(2);k(1),y("ngIf",t.groupTemplate),k(1),y("ngIf",!t.groupTemplate)}}function JJe(i,r){}function eet(i,r){if(1&i&&T(0,JJe,0,0,"ng-template",12),2&i){var t=D(2).$implicit,e=D();y("templateContext",ln(1,Cu,e.template.templateRef,t))}}function tet(i,r){if(1&i&&te(0),2&i){var t=D(2),e=t.$implicit,n=t.index,a=D();at(a.tagProp(e,a.textField,n))}}function net(i,r){if(1&i&&(A(0,"span",9),T(1,eet,1,4,null,10),T(2,tet,1,1,"ng-template",11),x()),2&i){var t=D(2);k(1),y("ngIf",t.template),k(1),y("ngIf",!t.template)}}var iet=function(r,t,e,n,a,o,s,l,u,c,d,h){return{"k-focus":r,"k-disabled":t,"k-chip-sm":e,"k-chip-md":n,"k-chip-lg":a,"k-rounded-sm":o,"k-rounded-md":s,"k-rounded-lg":l,"k-rounded-full":u,"k-chip-solid k-chip-solid-base":c,"k-chip-flat k-chip-flat-base":d,"k-chip-outline k-chip-outline-base":h}};function ret(i,r){if(1&i){var t=xe();A(0,"div",1)(1,"span",2),T(2,qJe,1,0,null,3),T(3,QJe,3,2,"ng-template",null,4,$n),T(5,net,3,2,"ng-template",null,5,$n),x(),A(7,"span",6)(8,"span",7)(9,"span",8),Q("mousedown",function(u){var c=re(t),d=c.$implicit,h=c.index;return D().deleteTag(u,d,h)}),x()()()()}if(2&i){var e=r.$implicit,n=r.index,a=Yt(4),o=Yt(6),s=D();y("ngClass",lR(7,iet,[n===s.focused,s.isTagDisabled(e,n),"small"===s.size,"medium"===s.size,"large"===s.size,"small"===s.rounded,"medium"===s.rounded,"large"===s.rounded,"full"===s.rounded,"solid"===s.fillMode,"flat"===s.fillMode,"outline"===s.fillMode])),ie("id",s.itemId(e,n))("aria-hidden",s.tagAriaHidden(n)),k(2),y("ngIf",s.isGroupTag(e))("ngIfThen",a)("ngIfElse",o),k(6),ie("aria-hidden",n!==s.focused)}}var aet=["*"];function oet(i,r){if(1&i){var t=xe();A(0,"span",9),Q("mousedown",function(a){return re(t),D().clearAll(a)}),z(1,"span",10),x()}if(2&i){var e=D();Qe("visibility",e.clearButtonVisiblity),ie("title",e.messageFor("clearTitle"))}}function set(i,r){1&i&&z(0,"span",11)}function uet(i,r){}function cet(i,r){if(1&i&&T(0,uet,0,0,"ng-template",17),2&i){var t=D(2);y("templateContext",ot(1,fr,t.headerTemplate.templateRef))}}function det(i,r){}function het(i,r){if(1&i&&T(0,det,0,0,"ng-template",17),2&i){var t=D(3);y("templateContext",ln(1,Cu,t.customItemTemplate.templateRef,t.text))}}function fet(i,r){1&i&&te(0),2&i&&at(D(3).text)}function vet(i,r){if(1&i&&(A(0,"div",18)(1,"div",19),T(2,het,1,4,null,20),T(3,fet,1,1,"ng-template",null,21,$n),z(5,"span",22),x()()),2&i){var t=Yt(4),e=D(2);y("ngClass",e.customItemSizeClass),k(1),y("multipleSelection",!0)("index",-1),k(1),y("ngIf",e.customItemTemplate)("ngIfElse",t)}}function pet(i,r){}function get(i,r){if(1&i&&(A(0,"div"),te(1),x()),2&i){var t=D(3);k(1),at(t.messageFor("noDataText"))}}function met(i,r){if(1&i&&(A(0,"div",23),T(1,pet,0,0,"ng-template",24),T(2,get,2,1,"ng-template",7),x()),2&i){var t=D(2);k(1),y("ngIf",t.noDataTemplate)("templateContext",ot(3,fr,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),k(1),y("ngIf",!t.noDataTemplate)}}function _et(i,r){}function yet(i,r){if(1&i&&T(0,_et,0,0,"ng-template",17),2&i){var t=D(2);y("templateContext",ot(1,fr,t.footerTemplate.templateRef))}}function ket(i,r){if(1&i){var t=xe();T(0,cet,1,3,null,12),T(1,vet,6,5,"div",13),A(2,"kendo-list",14,15),Q("pageChange",function(a){return re(t),D().pageChange(a)}),x(),T(4,met,3,5,"div",16),T(5,yet,1,3,null,12)}if(2&i){var e=D();y("ngIf",e.headerTemplate),k(1),y("ngIf",e.allowCustom&&e.text),k(1),y("size",e.size)("rounded",e.rounded)("id",e.listBoxId)("optionPrefix",e.optionPrefix)("data",e.data)("textField",e.textField)("valueField",e.valueField)("height",e.listHeight)("template",e.template)("groupTemplate",e.groupTemplate)("fixedGroupTemplate",e.fixedGroupTemplate)("show",e.isOpen)("multipleSelection",!0)("virtual",e.virtual)("checkboxes",e.checkboxes),k(2),y("ngIf",0===e.data.length),k(1),y("ngIf",e.footerTemplate)}}function Cet(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",25),Q("resize",function(){return re(t),D().onResize()}),x()}}var hae,u1={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652188959,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},fe=function(r){return null!=r},ro=function(){var t,e,r="";for(t=0;t<32;t++)e=16*Math.random()|0,(8===t||12===t||16===t||20===t)&&(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16);return r},Sa=function(r){return Array.isArray(r)},av=function(r){return fe(r)&&"object"==typeof r},jre=function(r){return"string"==typeof r&&0===r.length},c1=function(r){return Sa(r)&&r.every(function(t){return av(t)})},jP=function(r,t,e){var n=t.map(function(a){return fe(a)&&fe(rt(a,e))?rt(a,e):a});return r.reduce(function(a,o){var s=fe(o)&&fe(rt(o,e))?rt(o,e):o,l=n.indexOf(s);return-1!==l&&a.push(l),a},[])},rt=function(r,t){return fe(r)?fe(t)&&av(r)?yr(t)(r):r:null},Wre=function(r,t,e){if(!fe(r))return!1;var n=String(r);return e&&(n=n.toLowerCase()),0===n.indexOf(t)},am=function(r){return r.className.includes("ng-untouched")},ov=function(r){},Rtt=function(r,t){var e=r.matches||r.msMatchesSelector||r.webkitMatchesSelector;return!!e&&e.call(r,t)},wC=function(r,t,e){return r.nativeElement.contains(t)||e&&e.popupElement.contains(t)},Un=function(r,t){return{small:"k-".concat(r,"-sm"),medium:"k-".concat(r,"-md"),large:"k-".concat(r,"-lg")}[t]},vr=function(r){return{small:"k-rounded-sm",medium:"k-rounded-md",large:"k-rounded-lg",full:"k-rounded-full"}[r]},aa=function(r,t){return{solid:"k-".concat(r,"-solid"),flat:"k-".concat(r,"-flat"),outline:"k-".concat(r,"-outline")}[t]},ah=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.valueChange=new O,this.onBlur=new O,this.onFocus=new O,this.onClick=new O,this.onNavigate=new O,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=t.rtl?"rtl":"ltr",this.renderer=e}return v(r,[{key:"userInput",get:function(){return this._userInput},set:function(e){this._userInput=e||""}},{key:"value",get:function(){return this.input.nativeElement.value}},{key:"placeholder",get:function(){return this._placeholder},set:function(e){this._placeholder=e||"",this.setInputSize()}},{key:"ariaExpanded",get:function(){return"combobox"===this.role?this.popupOpen:null}},{key:"ngOnInit",value:function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){return e.direction=n.rtl?"rtl":"ltr"})}},{key:"ngOnChanges",value:function(e){if(this.input&&(e.userInput||e.suggestedText)){var a=this.input.nativeElement.selectionStart,o=(e.userInput&&e.userInput.previousValue?this._previousValue===e.userInput.previousValue?this._previousValue:e.userInput.currentValue||"":this._previousValue).length===a;this.writeInputValue(this.suggestedText?function(r,t){return r.concat(t.substr(t.toLowerCase().indexOf(r.toLowerCase())+r.length))}(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):o?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(a,a),this._previousValue=this.userInput}}},{key:"ngOnDestroy",value:function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"writeInputValue",value:function(e){Ze()&&this.renderer.setProperty(this.input.nativeElement,"value",e)}},{key:"setInputSelection",value:function(e,n){if(Ze()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(e,n)}catch(a){}}},{key:"handleInput",value:function(e){var n=e.target.value;n!==this.userInput&&(this._previousValue=n,this.valueChange.emit(n))}},{key:"handleFocus",value:function(e){this.onFocus.emit(e)}},{key:"handleBlur",value:function(e){this.onBlur.emit(e)}},{key:"handleKeydown",value:function(e){[J.ArrowUp,J.ArrowDown,J.ArrowLeft,J.ArrowRight,J.Enter,J.Escape,J.Delete,J.Backspace,J.Home,J.End].indexOf(e.keyCode)>-1&&this.onNavigate.emit(e)}},{key:"focus",value:function(){Ze()&&this.input.nativeElement.focus()}},{key:"blur",value:function(){Ze()&&this.input.nativeElement.blur()}},{key:"setInputSize",value:function(){var e=function(u){return u?u.length:0},n=this.input.nativeElement,a=e(this.placeholder),o=e(this.value),s=Math.max(a,o,1);this.renderer.setAttribute(n,"size",s.toString())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-searchbar"]],viewQuery:function(t,e){var n;1&t&&ge(LQe,7),2&t&&P(n=B())&&(e.input=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-searchbar",e.searchBarClass)},inputs:{id:"id",listId:"listId",tagListId:"tagListId",activeDescendant:"activeDescendant",noDataLabel:"noDataLabel",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",popupOpen:"popupOpen",role:"role",userInput:"userInput",suggestedText:"suggestedText",placeholder:"placeholder"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},features:[Ie],decls:2,vars:21,consts:[["autocomplete","off","aria-haspopup","listbox",3,"id","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope","input","keydown"],["input",""]],template:function(t,e){1&t&&(A(0,"input",0,1),Q("input",function(a){return e.handleInput(a)})("keydown",function(a){return e.handleKeydown(a)}),x()),2&t&&(Ar("k-input-inner"),y("id",e.id)("disabled",e.disabled)("readonly",e.readonly)("placeholder",e.placeholder)("kendoEventsOutsideAngular",ln(18,PQe,e.handleFocus,e.handleBlur))("scope",e),ie("tabIndex",e.tabIndex)("dir",e.direction)("role",e.role)("aria-disabled",e.disabled)("aria-readonly",e.readonly)("aria-expanded",e.ariaExpanded)("aria-owns",e.listId)("aria-describedby",e.tagListId)("aria-activedescendant",e.activeDescendant)("aria-label",e.noDataLabel))},directives:[qi],encapsulation:2}),i}(),DC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListItemTemplate",""],["","kendoComboBoxItemTemplate",""],["","kendoAutoCompleteItemTemplate",""],["","kendoMultiSelectItemTemplate",""]]}),i}(),sv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListHeaderTemplate",""],["","kendoComboBoxHeaderTemplate",""],["","kendoDropDownTreeHeaderTemplate",""],["","kendoMultiColumnComboBoxHeaderTemplate",""],["","kendoAutoCompleteHeaderTemplate",""],["","kendoMultiSelectHeaderTemplate",""],["","kendoMultiSelectTreeHeaderTemplate",""]]}),i}(),lv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListFooterTemplate",""],["","kendoComboBoxFooterTemplate",""],["","kendoDropDownTreeFooterTemplate",""],["","kendoMultiColumnComboBoxFooterTemplate",""],["","kendoAutoCompleteFooterTemplate",""],["","kendoMultiSelectFooterTemplate",""],["","kendoMultiSelectTreeFooterTemplate",""]]}),i}(),EC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListGroupTemplate",""],["","kendoComboBoxGroupTemplate",""],["","kendoMultiColumnComboBoxGroupTemplate",""],["","kendoAutoCompleteGroupTemplate",""],["","kendoMultiSelectGroupTemplate",""]]}),i}(),TC=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListFixedGroupTemplate",""],["","kendoComboBoxFixedGroupTemplate",""],["","kendoMultiColumnComboBoxFixedGroupTemplate",""],["","kendoAutoCompleteFixedGroupTemplate",""],["","kendoMultiSelectFixedGroupTemplate",""]]}),i}(),ao=function(){var i=function(){function r(){p(this,r),this.onSelect=new O,this.onChange=new O,this.onFocus=new O,this.total=0,this.selectedIndices=[]}return v(r,[{key:"getTotal",value:function(){return this.total}},{key:"isSelected",value:function(e){return fe(this.selectedIndices.find(function(n){return n===e}))}},{key:"isFocused",value:function(e){return e===this.focused}},{key:"focus",value:function(e){this.isFocused(e)||(this.focused=e,this.onFocus.emit(e))}},{key:"select",value:function(e){this.isSelected(e)||(this.selectedIndices=[e],this.focused=e,this.onSelect.emit({indices:[e],newSelection:fe(e)}))}},{key:"add",value:function(e){this.isSelected(e)||(this.selectedIndices.push(e),this.focused=e,this.onChange.emit({added:e,indices:this.selectedIndices.slice()}))}},{key:"unselect",value:function(e){if(this.isSelected(e)){var n=this.selectedIndices.indexOf(e);this.selectedIndices.splice(n,1),this.focused=e,this.onChange.emit({indices:this.selectedIndices.slice(),removed:e})}}},{key:"change",value:function(e){var n=fe(e)&&!this.isSelected(e);this.selectedIndices=[e],this.focused=e,this.onChange.emit({indices:[e],newSelection:n})}},{key:"resetSelection",value:function(e){this.selectedIndices=e instanceof Array?e:[e],this.focused=this.selectedIndices[this.selectedIndices.length-1]}},{key:"selected",get:function(){return this.selectedIndices.slice()}},{key:"focused",get:function(){return this.focusedIndex},set:function(e){this.focusedIndex!==e&&(this.focusedIndex=e,this.onFocus.emit(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Jt=function(){return function(i){i[i.Undefined=0]="Undefined",i[i.Open=1]="Open",i[i.Close=2]="Close",i[i.Enter=3]="Enter",i[i.Tab=4]="Tab",i[i.Esc=5]="Esc",i[i.Delete=6]="Delete",i[i.Backspace=7]="Backspace",i[i.Home=8]="Home",i[i.End=9]="End",i[i.Up=10]="Up",i[i.Down=11]="Down",i[i.Left=12]="Left",i[i.Right=13]="Right"}(Jt||(Jt={})),Jt}(),Do=function(){var i=function(){function r(){p(this,r),this.grouped=!1,this.groupIndices=[]}return v(r,[{key:"data",get:function(){return this.grouped?this._flatData:this._data},set:function(e){this._data=e,this.grouped=this.isGrouped(e),this.grouped&&(this.groupIndices=this.getGroupIndices(e),this._flatData=this.flatten(e))}},{key:"itemsCount",get:function(){return fe(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(function(n){return!n.header}):this.data).length:0}},{key:"isGrouped",value:function(e){return fe(e)&&0!==e.length&&fe(e[0])&&function(r,t){return!!fe(r)&&t.every(function(e){return r.hasOwnProperty(e)})}(e[0],["aggregates","field","items","value"])}},{key:"getGroupIndices",value:function(e){for(var n=[],a=0;a<=e.length-1;a++)n[a]=(n[a-1]||0)+e[a].items.length;return n}},{key:"filter",value:function(e){var n=[];if(this.isGrouped(this.data))for(var a=0;a<=this.groupIndices.length-1;a++){var o=this.data[a].items.filter(e);o&&(n=n.concat(o))}else n=this.data.filter(e);return n}},{key:"indexOf",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=function(s){return s===e};return this.grouped&&(a=function(s){return s.value===e}),this.findIndex(a,n)}},{key:"findIndex",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=-1;if(this.grouped){var o=this._flatData.filter(function(u){return!u.header&&u.offsetIndex>=n});a=o.findIndex(e),a=o[a]?o[a].offsetIndex:-1}else{var s=this.data.slice(n),l=s.findIndex(e);a=-1!==l?l+n:-1}return a}},{key:"closestGroup",value:function(e){for(var n=e;n>=0;n--)if(this._flatData[n].header)return this._flatData[n]}},{key:"find",value:function(e){var n=this.findIndex(e);return this.itemAt(n)}},{key:"flatIndex",value:function(e){if(0===this.itemsCount)return-1;if(!this.grouped)return e;var n=this._flatData.find(function(a){return!a.header&&a.offsetIndex===e});return n?n.index:-1}},{key:"itemAt",value:function(e){var n;if(0===this.itemsCount)return n;if(this.grouped){var a=this._flatData.find(function(o){return!o.header&&o.offsetIndex===e});a&&(n=a.value)}else n=this.data[e];return n}},{key:"groupAt",value:function(e){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(function(n){return n.header&&n.index===e})}},{key:"groupField",value:function(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null}},{key:"itemGroup",value:function(e){if(e&&0!==this.itemsCount&&this.isGrouped){var n=this.groupField();if(n)return rt(e,n)}}},{key:"flatten",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=[];fe(n)&&s.push({header:!0,index:o+a,offsetIndex:o,value:n});for(var l=0;l=a?n:this.firstFocusableIndex(l,a,o,-1*s)}},{key:"clampIndex",value:function(e,n,a){return!fe(e)||ea?a:e}},{key:"firstFocusableIndex",value:function(e,n,a,o){for(;n<=e&&e<=a;){if(!this.isDisabled(e))return e;e+=o}}},{key:"isDisabled",value:function(e){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Eo),oe(ao))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),uv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListNoDataTemplate",""],["","kendoDropDownTreeNoDataTemplate",""],["","kendoComboBoxNoDataTemplate",""],["","kendoMultiColumnComboBoxNoDataTemplate",""],["","kendoAutoCompleteNoDataTemplate",""],["","kendoMultiSelectNoDataTemplate",""],["","kendoMultiSelectTreeNoDataTemplate",""]]}),i}(),cv=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),sm=v(function i(){p(this,i)}),Yre={pageSize:50,itemHeight:28},h1=function(r,t){var e=Object.assign({},Yre,t);return!0===r?e:r?Object.assign({pageSize:Yre.pageSize},r):null},qc=new wt("dropdowns-touch-enabled"),$P=function(){var i=v(function r(t){p(this,r),this.element=t});return i.\u0275fac=function(t){return new(t||i)(m(ke))},i.\u0275dir=X({type:i,selectors:[["li","role","option"],["li","role","group"]]}),i}(),bu=function(){var i=function(){function r(t){p(this,r),this.viewContainerRef=t}return v(r,[{key:"templateContext",set:function(e){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),e.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(e.templateRef,e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ei))},i.\u0275dir=X({type:i,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),i}(),f1=function(){var i=function(){function r(t){p(this,r),this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=t}return v(r,[{key:"focusedClassName",get:function(){return this.selectionService.isFocused(this.index)}},{key:"selectedClassName",get:function(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)}},{key:"onClick",value:function(e){e.stopPropagation(),(!this.checkboxes.enabled||this.checkboxes.checkOnClick)&&(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ao))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownsSelectable",""]],hostVars:9,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(ie("index",e.index),Qe("height",e.height,"px")("min-height",e.height,"px"),ue("k-focus",e.focusedClassName)("k-selected",e.selectedClassName))},inputs:{index:"index",checkboxes:"checkboxes",height:"height",multipleSelection:"multipleSelection"}}),i}(),lm=function(){var i=function(){function r(t,e,n,a,o,s,l){var u=this;p(this,r),this.dataService=t,this.wrapper=e,this.selectionService=n,this.disabledItemsService=a,this.cdr=o,this.zone=s,this.renderer=l,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.type="list",this.checkboxes={enabled:!1},this.rounded="medium",this.onClick=new O,this.pageChange=new O,this.listResize=new O,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this._size="medium",this.selectSubscription=xn(this.selectionService.onSelect.pipe(We(function(c){return c.indices[0]})),this.selectionService.onFocus).pipe(Nn(function(c){return u.zone.onStable.pipe(It(1),We(function(){return c}))})).subscribe(this.scrollToItem.bind(this)),this.prepareClasses()}return v(r,[{key:"data",get:function(){return this._data},set:function(e){this._data=e[0]&&e[0].header?e.slice(0):e}},{key:"size",get:function(){return this._size},set:function(e){"list"===this.type&&(this.renderer.removeClass(this.wrapper.nativeElement,Un("list",this.size)),e&&this.renderer.addClass(this.wrapper.nativeElement,Un("list",e)),this._size=e)}},{key:"pageSize",get:function(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)}},{key:"scrollHeight",get:function(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight}},{key:"overflowY",get:function(){if(fe(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"}},{key:"checkboxClasses",get:function(){return"".concat(this.size?Un("checkbox",this.size):""," ").concat(this.rounded?vr(this.rounded):"")}},{key:"ngOnChanges",value:function(e){yn("data",e,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!e.data.isFirstChange()),this.setOverflow()),yn("virtual",e,!1)&&this.setOverflow(),yn("type",e,!1)&&this.prepareClasses()}},{key:"ngAfterViewInit",value:function(){var e=this;this.setComponentClasses(),this.zone.runOutsideAngular(function(){e.scrollSubscription=li(e.content.nativeElement,"scroll").pipe(ff(100),At(e.prefetchData.bind(e)),At(e.findCurrentGroup.bind(e))).subscribe(function(){e.lastScrollTop=e.content.nativeElement.scrollTop})}),this.setOverflow()}},{key:"ngAfterViewChecked",value:function(){this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,this.scrollToItem(this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused)),this.dataService.grouped&&this.findCurrentGroup()}},{key:"ngOnDestroy",value:function(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}},{key:"onCheckedChange",value:function(e,n){var a=e.target.checked;a&&!this.selectionService.isSelected(n)&&this.selectionService.add(n),!a&&this.selectionService.isSelected(n)&&this.selectionService.unselect(n)}},{key:"prepareClasses",value:function(){"list"===this.type?(this.listContentClass="k-list-content",this.listClass="k-list-ul",this.listItemClass="k-list-item",this.listVirtualClass="k-virtual-list",this.listGroupStickyHeaderClass="k-list-group-sticky-header",this.listGroupStickyHeaderTextClass="k-list-header-text",this.listGroupItemClass="k-list-group-item",this.listGroupItemTextClass="k-list-item-text"):(this.listContentClass="k-table-body k-table-scroller",this.listClass="k-table k-table-list",this.listItemClass="k-table-row",this.listVirtualClass="k-virtual-table",this.listGroupStickyHeaderClass="k-table-group-sticky-header",this.listGroupStickyHeaderTextClass="k-table-th",this.listGroupItemClass="k-table-group-row",this.listGroupItemTextClass="k-table-th")}},{key:"isChecked",value:function(e){return this.selectionService.isSelected(this.virtual?e+this.virtual.skip:e)}},{key:"firstVisibleItem",value:function(){var e=this,n=this.content.nativeElement,a=n.getBoundingClientRect(),o=Array.prototype.slice.call(n.querySelectorAll(".k-disabled"));o.forEach(function(l){return e.renderer.setStyle(l,"pointer-events","auto")});var s=document.elementFromPoint(a.left+1,a.top+1);return o.forEach(function(l){return e.renderer.setStyle(l,"pointer-events","none")}),function(r,t){for(var e=r;null!==e&&1===e.nodeType;){if(Rtt(e,"li"))return e;e=e.parentElement||e.parentNode}return null}(s)}},{key:"findCurrentGroup",value:function(){if(this.dataService.grouped){var n,e=this.firstVisibleItem();e?"group"===e.getAttribute("role")?(n=parseInt(e.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(n).value):(n=parseInt(e.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(n))):this.currentGroup=void 0,this.cdr.detectChanges()}else this.currentGroup=void 0}},{key:"prefetchData",value:function(){if(this.virtual){var e=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),n=this.content.nativeElement.scrollTop,a=Math.trunc(n/this.virtual.itemHeight),o=n>this.lastScrollTop,u=this.lastLoaded-this.pageSize+e>=a-(this.pageSize-(this.lastLoaded-this.startFrom));o&&a+e>=this.lastLoaded&&this.lastLoadedn.virtual.total&&(e--,a=n.virtual.total),e<0&&(e=0),n.startFrom=e,n.lastLoaded=a,n.pageChange.emit({skip:e,take:n.pageSize})})}},{key:"index",value:function(e,n){return e>0?this.dataService.groupIndices[e-1]+n:n}},{key:"getText",value:function(e){return rt(e,this.textField)}},{key:"getValue",value:function(e){return rt(e,this.valueField)}},{key:"isDisabled",value:function(e){return fe(this.virtual)&&(e+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(e)}},{key:"isAltRow",value:function(e){return"dropdowngrid"===this.type&&e%2!=0}},{key:"scrollToItem",value:function(e){var n=e;if(this.dataService.grouped&&(n=this.dataService.flatIndex(e),n+=this.firstGroupHeaderInTargetedPage(n)?-1:0),this.virtual&&n>-1)this.scrollToIndex(n);else{var o=this.items.toArray();fe(o[n])&&-1!==n&&this.scroll(o[n].element)}}},{key:"scrollToIndex",value:function(e){var n=this.content.nativeElement,a=n.scrollTop,o=e*this.virtual.itemHeight,l=n.clientHeight,u=o+this.virtual.itemHeight;a>o?a=o:u>a+l&&(a=u-l),n.scrollTop=a}},{key:"scroll",value:function(e){if(e){var n=e.nativeElement,a=this.content.nativeElement,o=n.offsetTop,l=a.scrollTop,u=a.clientHeight,c=o+n.offsetHeight;l>o?l=o:c>l+u&&(l=c-u),a.scrollTop=l}}},{key:"hasScrollbar",value:function(){return!!(fe(this.items)&&this.items.length&&fe(this.list)&&fe(this.content))&&(fe(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)}},{key:"setOverflow",value:function(){if(this.virtual){var e=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",e)}}},{key:"hasVirtualScrollbar",value:function(){return this.virtualContainer&&(this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight)>this.content.nativeElement.offsetHeight}},{key:"positionItems",value:function(){var e=this;this.items.forEach(function(n,a){e.renderer.setStyle(n.element.nativeElement,"transform","translateY(".concat((a+e.startFrom)*e.virtual.itemHeight,"px"))})}},{key:"firstGroupHeaderInTargetedPage",value:function(e){return!fe(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>e}},{key:"setComponentClasses",value:function(){"list"===this.type&&(this.renderer.addClass(this.wrapper.nativeElement,"k-list"),this.size&&this.renderer.addClass(this.wrapper.nativeElement,Un("list",this.size))),fe(this.virtual)&&this.renderer.addClass(this.wrapper.nativeElement,this.listVirtualClass)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Do),m(ke),m(ao),m(Eo),m(nt),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-list"]],viewQuery:function(t,e){var n;1&t&&(ge(BQe,7),ge(GQe,7),ge(VQe,5),ge($P,5)),2&t&&(P(n=B())&&(e.content=n.first),P(n=B())&&(e.list=n.first),P(n=B())&&(e.virtualContainer=n.first),P(n=B())&&(e.items=n))},inputs:{selected:"selected",focused:"focused",textField:"textField",valueField:"valueField",height:"height",template:"template",groupTemplate:"groupTemplate",fixedGroupTemplate:"fixedGroupTemplate",show:"show",id:"id",optionPrefix:"optionPrefix",multipleSelection:"multipleSelection",virtual:"virtual",type:"type",checkboxes:"checkboxes",data:"data",size:"size",rounded:"rounded"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize"},features:[Ie],decls:9,vars:15,consts:[[3,"class","ngStyle",4,"ngIf"],["unselectable","on"],["content",""],["role","listbox"],["list",""],[4,"ngIf"],[3,"resize",4,"ngIf"],["class","k-height-container","role","presentation",4,"ngIf"],[3,"ngStyle"],[3,"ngIf"],[3,"templateContext"],["ngFor","",3,"ngForOf"],["role","option","kendoDropDownsSelectable","",3,"checkboxes","height","index","multipleSelection","ngClass"],["type","checkbox","class","k-checkbox",3,"ngClass","checked","change",4,"ngIf"],["type","checkbox",1,"k-checkbox",3,"ngClass","checked","change"],[1,"k-list-item-text"],["role","group",3,"class","k-table-alt-row","ngStyle",4,"ngIf"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","class","ngClass",4,"ngIf"],["role","group",3,"ngStyle"],["role","option","kendoDropDownsSelectable","",3,"height","index","multipleSelection","ngClass"],[3,"resize"],["role","presentation",1,"k-height-container"],["virtualContainer",""]],template:function(t,e){1&t&&(T(0,KQe,3,9,"div",0),A(1,"div",1,2)(3,"ul",3,4),T(5,ZQe,1,1,null,5),T(6,oJe,1,1,null,5),T(7,sJe,1,0,"kendo-resize-sensor",6),x(),T(8,lJe,4,2,"div",7),x()),2&t&&(y("ngIf",e.dataService.grouped),k(1),Ar(e.listContentClass),Qe("overscroll-behavior","none")("max-height",e.height,"px"),k(2),Ar(e.listClass),ie("id",e.id)("aria-hidden",!e.show),k(2),y("ngIf",!e.dataService.grouped&&e.show),k(1),y("ngIf",e.dataService.grouped),k(1),y("ngIf",!e.virtual),k(1),y("ngIf",e.virtual))},directives:[Gr,qe,Vi,bu,gn,$P,f1,Nt],encapsulation:2}),i}(),v1=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,inputs:{noDataText:"noDataText",clearTitle:"clearTitle",checkAllText:"checkAllText",selectButtonText:"selectButtonText"},features:[j]}),i}(),oh=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(v1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListLocalizedMessages",""],["","kendoDropDownTreeLocalizedMessages",""],["","kendoComboBoxLocalizedMessages",""],["","kendoMultiColumnComboBoxLocalizedMessages",""],["","kendoAutoCompleteLocalizedMessages",""],["","kendoMultiSelectLocalizedMessages",""],["","kendoMultiSelectTreeLocalizedMessages",""]],features:[de([{provide:v1,useExisting:ye(function(){return i})}]),j]}),i}(),Ltt={multi:!0,provide:jn,useExisting:ye(function(){return qP})},qP=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.localization=t,this.dataService=e,this.popupService=n,this.selectionService=a,this.navigationService=o,this.disabledItemsService=s,this._zone=l,this.cdr=u,this.renderer=c,this.hostElement=d,this.touchEnabled=h,this.highlightFirst=!0,this.focusableId="k-".concat(ro()),this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new O,this.filterChange=new O,this.open=new O,this.opened=new O,this.close=new O,this.closed=new O,this.onFocus=new O,this.onBlur=new O,this.widgetClasses=!0,this.listBoxId=ro(),this.optionPrefix=ro(),this.onChangeCallback=ov,this.onTouchedCallback=ov,this.popupMouseDownHandler=function(f){return f.preventDefault()},this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new Ot,this._isFocused=!1,this._size="medium",this._rounded="medium",this._fillMode="solid",jt(u1),this.direction=t.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}return v(r,[{key:"width",get:function(){var e=0;Ze()&&(e=this.wrapper.offsetWidth);var n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"height",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"listContainerClasses",get:function(){var e=["k-list-container","k-reset"];return this.popupSettings.popupClass&&e.push(this.popupSettings.popupClass),e}},{key:"suggestion",get:function(){if(this.text&&this.suggestedText){var e=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&e?this.suggestedText:void 0}this.suggestedText=void 0}},{key:"appendTo",get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e}},{key:"clearButtonVisiblity",get:function(){if(this.touchEnabled)return"visible"}},{key:"toggle",value:function(e){var n=this;Promise.resolve(null).then(function(){var a=fe(e)?e:!n._open;n._toggle(a)})}},{key:"isOpen",get:function(){return this._open}},{key:"togglePopup",value:function(e){this.disabled||this.readonly||this.isOpen===e||this.triggerPopupEvents(e)||this._toggle(e)}},{key:"activeDescendant",get:function(){if(!this.isOpen||!fe(this.selectionService.focused)||-1===this.selectionService.focused)return null;var e=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+rt(e,this.valueField)}},{key:"noDataLabel",get:function(){if(0===this.data.length)return this.messageFor("noDataText")}},{key:"data",get:function(){var e=this.virtual;if(e){var n=e.skip||0,a=n+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(n,a)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=rt(this.dataService.itemAt(0),this.valueField))}},{key:"value",get:function(){return this._value||""},set:function(e){this.verifySettings(e),this._value=e||"",this.text=this.value,this.cdr.markForCheck()}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=h1(e)}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper,Un("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper,Un("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper,vr(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper,aa("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper,aa("input",n)),this._fillMode=n}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper,"k-focus"),this._isFocused=e}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()}),this.setComponentClasses()}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize})}},{key:"reset",value:function(){this.value=""}},{key:"messageFor",value:function(e){return this.localization.get(e)}},{key:"clearValue",value:function(e){e.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this.onChangeCallback=e}},{key:"registerOnTouched",value:function(e){this.onTouchedCallback=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"focusItemAt",value:function(e){var n=e>=0&&e1&&void 0!==arguments[1]?arguments[1]:0;a=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),n):-1,this.disabledItemsService.isIndexDisabled(a)?a+1=0)a=rt(this.dataService.itemAt(n),this.valueField);else{var o=this.suggest&&this.suggestedText&&this.data.length&&rt(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();a=this.isOpen&&o?this.suggestedText:this.searchbar.value}this.change(a)}},{key:"handleEscape",value:function(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null}},{key:"searchBarChange",value:function(e){var n=fe(this.text)?this.text.length:0;this.backspacePressed=e.length0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(e):this.highlightFirst&&this.search(e)}},{key:"handleFocus",value:function(){var e=this;this.isFocused=!0,ut(this.onFocus)&&this._zone.run(function(){e.onFocus.emit()})}},{key:"handleBlur",value:function(){var a,o,e=this,n=this.filterable?this.selectionService.focused:-1;this.searchbar.input.nativeElement.scrollLeft=0,-1!==n?(a=this.dataService.itemAt(n),o=rt(a,this.valueField)||""):o=this.searchbar.value;var s=o===this.searchbar.value,l=o.toLowerCase()===this.searchbar.value.toLowerCase();!s&&l&&this.selectionService.resetSelection([]),this.isFocused=!1;var u=this.value!==this.text;ut(this.onBlur)||ut(this.close)||am(this.wrapper)||u?this._zone.run(function(){u&&e.change(e.searchbar.value),e.onBlur.emit(),e.onTouchedCallback(),e.togglePopup(!1)}):this.togglePopup(!1)}},{key:"pageChange",value:function(e){this.virtual.skip=e.skip}},{key:"change",value:function(e){this.togglePopup(!1),this.valueChangeSubject.next(e)}},{key:"subscribeEvents",value:function(){var e=this;!Ze()||(this.valueChangeSubscription=this.valueChangeSubject.subscribe(function(n){var a=e.value!==n;e.value=n,e.text=n,a&&e.emitChange(n)}),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=xn(this.navigationService.up,this.navigationService.down).subscribe(function(n){return e.navigate(n.index)}),this.closeSubscription=this.navigationService.close.subscribe(function(){return e.togglePopup(!1)}),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this._zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){e.isFocused&&!wC(e.hostElement,n.target,e.popupRef)&&e._zone.run(function(){return e.blur()})})})}},{key:"unsubscribeEvents",value:function(){!Ze()||(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}},{key:"handleItemChange",value:function(e){var n=e.indices.length?e.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),fe(n)){var a=rt(this.dataService.itemAt(n),this.valueField);this.change(a)}}},{key:"handleItemFocus",value:function(e){var n=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&n>=0)&&(this.suggestedText=rt(this.dataService.itemAt(n),this.valueField))}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:n,vertical:"top"},anchorAlign:{horizontal:n,vertical:"bottom"}});var s=this.popupRef.popupElement,l=this.width,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"firstFocusableIndex",value:function(e){var n=this.data.length-1;return this.disabledItemsService.isIndexDisabled(e)?e0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=a}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=rt(this.dataService.itemAt(0),this.textField))}},{key:"value",get:function(){return this._value},set:function(e){this._value=e,this.setState(),this.cdr.markForCheck()}},{key:"valuePrimitive",get:function(){return fe(this._valuePrimitive)?this._valuePrimitive:!fe(this.valueField)},set:function(e){this._valuePrimitive=e}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=h1(e,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Un("input",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Un("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,vr(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,aa("input",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,aa("input",n)),this._fillMode=n}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"clearButtonVisiblity",get:function(){if(this.touchEnabled)return"visible"}},{key:"popupWidth",get:function(){var e=0;Ze()&&(e=this.wrapper.nativeElement.offsetWidth);var n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"popupHeight",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setComponentClasses()}},{key:"createValueStream",value:function(){var e=this,n=this.valueSubject.pipe(Ue(function(c){var d=rt(e.value,e.valueField),h=rt(c,e.valueField),f=rt(c,e.textField);return!(!fe(e.value)&&!fe(h)||(fe(f)&&(f=f.toString()),d===h&&e.text===f&&(e.clearFilter(),1)))}),We(function(c){var d=rt(c,e.valueField);return{dataItem:c,text:rt(c,e.textField),value:e.valuePrimitive?d:c}})),a=function dYe(i,r){return function(t){return[Ue(i,r)(t),Ue(cYe(i,r))(t)]}}(function(){return e.allowCustom})(this.customValueSubject.pipe(FL(300))),o=a[0].pipe(At(function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()}),Ue(function(){var c=e.text!==rt(e.value,e.valueField);return e.loading=c,e.disabled=c,c||e.clearFilter(),c}),this.valueNormalizer,We(function(c){return{custom:!0,dataItem:c,text:e.text,value:c}})),s=a[1].pipe(We(function(){return{custom:!0,dataItem:void 0,text:void 0,value:void 0}})),l=this.clearValueSubject.pipe(We(function(){return{dataItem:void 0,text:void 0,value:void 0}}));this.valueSubscription&&this.valueSubscription.unsubscribe();var u=xn(n,o,s,l);this.valueSubscription=u.pipe(cl(function(){var c=void 0!==rt(e.dataItem,e.valueField);return e.dataItem=void 0,e.value=void 0,e.text=void 0,e.loading=!1,e.disabled=!1,c&&e.selectionChange.emit(void 0),e.emitValueChange(),e.createValueStream(),lt(null)})).subscribe(function(c){var d=rt(e.dataItem,e.valueField)!==rt(c.dataItem,e.valueField);e.dataItem=c.dataItem,e.value=c.value,e.text=c.text,e.loading=!1,e.disabled=!1,e.clearFilter(),c.custom&&(e.selectionService.focused=-1),d&&e.selectionChange.emit(c.custom?void 0:e.dataItem),e.emitValueChange()})}},{key:"attachStreams",value:function(){var e=this;!Ze()||(this.subs.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()})),this.subs.add(xn(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(Ue(function(n){return fe(n.index)})).subscribe(function(n){return e.navigate(n.index)})),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(function(){return e.togglePopup(!1)})),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(At(function(n){e.isOpen&&n.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add(xn(this.selectionService.onChange,this.selectionService.onSelect.pipe(Ue(function(n){return!e.isOpen}))).pipe(At(function(n){e._filtering=!1,e.togglePopup(!1)}),We(function(n){return e.dataService.itemAt(n.indices[0])})).subscribe(function(n){e.change(n)})),this.subs.add(this.selectionService.onSelect.pipe(Ue(function(n){return e.isOpen}),At(function(n){return e._filtering=!1}),We(function(n){return e.dataService.itemAt(n.indices[0])})).subscribe(function(n){var a=rt(n,e.valueField)!==rt(e.dataItem,e.valueField);e.updateState({dataItem:n}),a&&e.selectionChange.emit(n)})))}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.subs.unsubscribe(),fe(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("valueNormalizer",e)&&this.createValueStream(),Ki(["textField","valueField","valuePrimitive"],e,!1)&&this.setState()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"focusItemAt",value:function(e){var n=e>=0&&e1&&void 0!==arguments[1]?arguments[1]:0;a=e.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(e),n):-1,this.disabledItemsService.isIndexDisabled(a)?a+10||(this.suggestedText=null,this.selectionService.focused=-1)}},{key:"handleNavigationOpen",value:function(){this.restoreItemFocus(),this.togglePopup(!0)}},{key:"searchBarChange",value:function(e){this.backspacePressed=e.length<(this.text?this.text.length:0),this.text=e,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==e?(this.filterText=e,this.filterChange.emit(e)):this.search(e)}},{key:"handleFocus",value:function(){var e=this;this.isFocused=!0,ut(this.onFocus)&&this.zone.run(function(){return e.onFocus.emit()})}},{key:"pageChange",value:function(e){this.virtual.skip=e.skip}},{key:"change",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n?this.customValueSubject.next(e):this.valueSubject.next(e)}},{key:"emitValueChange",value:function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem}},{key:"selectClick",value:function(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)}},{key:"listContainerClasses",get:function(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])}},{key:"preventEventDefault",value:function(e){e.preventDefault()}},{key:"focusedItemText",get:function(){var e=this.selectionService.focused;if(!fe(e)||-1===e)return null;var n=rt(this.dataService.itemAt(e),this.textField);return fe(n)?n.toString():""}},{key:"restoreItemFocus",value:function(){!(fe(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))}},{key:"useSuggestion",value:function(){if(!this.suggest||!fe(this.searchbar.value))return!1;var e=this.dataService.itemAt(this.selectionService.focused),n=rt(e,this.textField);return!!fe(n)&&this.searchbar.value.toLowerCase()===n.toLowerCase()}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:n,vertical:"bottom"},popupAlign:{horizontal:n,vertical:"top"}});var s=this.popupRef.popupElement,l=this.popupWidth,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.popupHeight,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){return e.togglePopup(!1)})}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"clearFilter",value:function(){!this.filterable||!this.filterText||(this.filterText="",this.filterChange.emit(this.filterText))}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this.zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){var o=wC(e.wrapper,n.target,e.popupRef);e.isFocused&&!o?e.zone.run(function(){return e.blur()}):e.isOpen&&!o&&e.zone.run(function(){return e.togglePopup(!1)})})})}},{key:"attachSelectClickHandler",value:function(){this.selectClickDisposeHandler=this.renderer.listen(this.select.nativeElement,oW?"pointerdown":"click",this.selectClick.bind(this))}},{key:"setComponentClasses",value:function(){"none"!==this.size&&this.renderer.addClass(this.wrapper.nativeElement,Un("input",this.size)),"none"!==this.rounded&&this.renderer.addClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==this.fillMode&&this.renderer.addClass(this.wrapper.nativeElement,aa("input",this.fillMode))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Y),m(kr),m(ao),m(To),m(Eo),m(Do),m(be),m(nt),m(Ee),m(qc,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-combobox"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,DC,5),he(n,sv,5),he(n,lv,5),he(n,uv,5),he(n,EC,5),he(n,TC,5)),2&t&&(P(a=B())&&(e.template=a.first),P(a=B())&&(e.headerTemplate=a.first),P(a=B())&&(e.footerTemplate=a.first),P(a=B())&&(e.noDataTemplate=a.first),P(a=B())&&(e.groupTemplate=a.first),P(a=B())&&(e.fixedGroupTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(im,7,ei),ge(rm,7),ge(ah,7),ge(l1,5),ge(kJe,7)),2&t&&(P(n=B())&&(e.container=n.first),P(n=B())&&(e.popupTemplate=n.first),P(n=B())&&(e.searchbar=n.first),P(n=B())&&(e.optionsList=n.first),P(n=B())&&(e.select=n.first))},hostVars:9,hostBindings:function(t,e){2&t&&(ie("dir",e.dir),ue("k-combobox",e.widgetClasses)("k-input",e.widgetClasses)("k-disabled",e.isDisabled)("k-loading",e.isLoading))},inputs:{focusableId:"focusableId",allowCustom:"allowCustom",data:"data",value:"value",textField:"textField",valueField:"valueField",valuePrimitive:"valuePrimitive",valueNormalizer:"valueNormalizer",placeholder:"placeholder",popupSettings:"popupSettings",listHeight:"listHeight",iconClass:"iconClass",loading:"loading",suggest:"suggest",clearButton:"clearButton",disabled:"disabled",itemDisabled:"itemDisabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",filterable:"filterable",virtual:"virtual",size:"size",rounded:"rounded",fillMode:"fillMode"},outputs:{valueChange:"valueChange",selectionChange:"selectionChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoComboBox"],features:[de([Ptt,Do,ao,To,Eo,Y,{provide:Dt,useValue:"kendo.combobox"},{provide:sm,useExisting:ye(function(){return i})},{provide:Ui,useExisting:ye(function(){return i})}]),Ie],decls:12,vars:20,consts:function(){return[["kendoComboBoxLocalizedMessages","","noDataText",$localize(Dre||(Dre=le([":kendo.combobox.noDataText|The text displayed in the popup when there are no items:NO DATA FOUND"]))),"clearTitle",$localize(Ere||(Ere=le([":kendo.combobox.clearTitle|The title of the clear button:clear"]))),"selectButtonText",$localize(Tre||(Tre=le([":kendo.combobox.selectButtonText|The text set as aria-label on the select button:Select"])))],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-clear-value","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["unselectable","on","type","button",1,"k-input-button","k-button","k-icon-button",3,"ngClass","kendoEventsOutsideAngular"],["select",""],[1,"k-button-icon","k-icon",3,"ngClass"],["popupTemplate",""],[3,"ngIf"],["container",""],["aria-hidden","true",1,"k-clear-value",3,"kendoEventsOutsideAngular","click"],[1,"k-icon","k-i-x"],[4,"ngIf"],[3,"size","rounded","id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-no-data",4,"ngIf"],[3,"templateContext"],[1,"k-no-data"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(t,e){1&t&&(Wt(0,0),A(1,"kendo-searchbar",1,2),Q("onNavigate",function(a){return e.handleNavigate(a)})("valueChange",function(a){return e.searchBarChange(a)})("onBlur",function(){return e.handleBlur()})("onFocus",function(){return e.handleFocus()}),x(),T(3,CJe,2,6,"span",3),A(4,"button",4,5),z(6,"span",6),x(),T(7,xJe,5,16,"ng-template",null,7,$n),T(9,MJe,1,0,"ng-template",8),Wt(10,null,9)),2&t&&(k(1),y("role","combobox")("id",e.focusableId)("listId",e.listBoxId)("activeDescendant",e.activeDescendant)("noDataLabel",e.noDataLabel)("userInput",e.text)("suggestedText",e.getSuggestion())("disabled",e.disabled)("readonly",e.readonly)("tabIndex",e.tabIndex)("popupOpen",e.isOpen)("placeholder",e.placeholder),k(2),y("ngIf",e.clearButton&&!e.loading&&!e.disabled&&!e.readonly&&(null==e.text?null:e.text.length)),k(1),y("ngClass",e.selectButtonClasses)("kendoEventsOutsideAngular",ot(18,SC,e.preventEventDefault)),ie("aria-label",e.messageFor("selectButtonText")),k(2),y("ngClass",e.buttonClasses),k(3),y("ngIf",e.isOpen))},directives:[ah,lm,Gr,oh,qe,qi,Nt,bu],encapsulation:2}),i}(),ZP=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoDropDownListValueTemplate",""],["","kendoDropDownTreeValueTemplate",""]]}),i}(),y1=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.zone=e}return v(r,[{key:"ngOnChanges",value:function(){var e=this;this.focused&&this.nextTick(function(){return e.element.nativeElement.focus()})}},{key:"nextTick",value:function(e){this.zone.runOutsideAngular(function(){return setTimeout(e)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(be))},i.\u0275dir=X({type:i,selectors:[["","filterInput",""]],inputs:{focused:["filterInput","focused"]},features:[Ie]}),i}(),Utt={multi:!0,provide:jn,useExisting:ye(function(){return js})},js=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.wrapper=t,this.localization=e,this.popupService=n,this.selectionService=a,this.navigationService=o,this.disabledItemsService=s,this.dataService=l,this._zone=u,this.renderer=c,this.cdr=d,this.touchEnabled=h,this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new O,this.filterChange=new O,this.selectionChange=new O,this.open=new O,this.opened=new O,this.close=new O,this.closed=new O,this.onFocus=new O,this.onBlur=new O,this.hostClasses=!0,this.focusableId="k-".concat(ro()),this.role="listbox",this.groupIndices=[],this.listBoxId=ro(),this.optionPrefix=ro(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=function(f){},this.onChangeCallback=function(f){},this.word="",this.last="",this.filterFocused=new O,this.filterBlurred=new O,this.hostElementFocused=new O,this.hostElementBlurred=new O,this.selectionSubscription=new Je,this._open=!1,this._popupSettings={animate:!0},this._size="medium",this._rounded="medium",this._fillMode="solid",jt(u1),this.direction=e.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.subscribeFocusEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}return v(r,[{key:"width",get:function(){var e=Ze()?this.wrapper.nativeElement.offsetWidth:0,n=this.popupSettings.width||e;return{min:isNaN(e)?e:"".concat(e,"px"),max:isNaN(n)?n:"".concat(n,"px")}}},{key:"height",get:function(){var e=this.popupSettings.height;return fe(e)?"".concat(e,"px"):"auto"}},{key:"widgetTabIndex",get:function(){if(!this.disabled){var e=Number(this.tabIndex);return isNaN(e)?0:e}}},{key:"ariaExpanded",get:function(){return this.isOpen}},{key:"ariaOwns",get:function(){if(this.isOpen)return this.listBoxId}},{key:"ariaActivedescendant",get:function(){if(fe(this.dataItem)&&this.isOpen)return this.optionPrefix+"-"+rt(this.dataItem,this.valueField)}},{key:"noDataLabel",get:function(){if(0===this.dataService.itemsCount)return this.messageFor("noDataText")}},{key:"appendTo",get:function(){var e=this.popupSettings.appendTo;if(e&&"root"!==e)return"component"===e?this.container:e}},{key:"data",get:function(){var e=this.virtual;if(e){var n=e.skip||0,a=n+e.pageSize;return e.total=this.dataService.data.length,this.dataService.data.slice(n,a)}return this.dataService.data},set:function(e){this.dataService.data=e||[],this.virtual&&(this.virtual.skip=0),this.setState()}},{key:"value",get:function(){return this._value},set:function(e){fe(e)||(this._previousDataItem=void 0),this._value=e,this.setState(),this.cdr.markForCheck()}},{key:"popupSettings",get:function(){return this._popupSettings},set:function(e){this._popupSettings=Object.assign({animate:!0},e)}},{key:"itemDisabled",set:function(e){if("function"!=typeof e)throw new Error("itemDisabled must be a function, but received ".concat(JSON.stringify(e),"."));this.disabledItemsService.itemDisabled=e}},{key:"virtual",get:function(){return this._virtualSettings},set:function(e){this._virtualSettings=h1(e)}},{key:"valuePrimitive",get:function(){return fe(this._valuePrimitive)?this._valuePrimitive:!fe(this.valueField)},set:function(e){this._valuePrimitive=e}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"size",get:function(){return this._size},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,Un("picker",this.size)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,Un("picker",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){var n=e||"medium";this.renderer.removeClass(this.wrapper.nativeElement,vr(this.rounded)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,vr(n)),this._rounded=e}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){var n=e||"solid";this.renderer.removeClass(this.wrapper.nativeElement,aa("picker",this.fillMode)),"none"!==e&&this.renderer.addClass(this.wrapper.nativeElement,aa("picker",n)),this._fillMode=n}},{key:"blurComponent",value:function(e){e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementBlurred.emit())}},{key:"blurFilterInput",value:function(){this.filterBlurred.emit()}},{key:"focusComponent",value:function(e){var n=this;e.target===this.wrapper.nativeElement&&(e.stopImmediatePropagation(),this.hostElementFocused.emit(),this.isFocused||(this.isFocused=!0,ut(this.onFocus)&&this._zone.run(function(){n.onFocus.emit()})))}},{key:"onResize",value:function(){if(this._open){var e=this.popupRef.popupElement,n=this.width,o=n.max;e.style.minWidth=n.min,e.style.width=o}}},{key:"isDisabled",get:function(){return this.disabled}},{key:"isLoading",get:function(){return this.loading}},{key:"dir",get:function(){return this.direction}},{key:"hostTabIndex",get:function(){return this.widgetTabIndex}},{key:"isReadonly",get:function(){return this.readonly}},{key:"isAriaExpanded",get:function(){return this.ariaExpanded}},{key:"hostAriaOwns",get:function(){return this.ariaOwns}},{key:"hostAriaActivedescendant",get:function(){return this.ariaActivedescendant}},{key:"hostNoDataLabel",get:function(){return this.noDataLabel}},{key:"keydown",value:function(e){var n=fe(this.defaultItem)?-1:0,a=isNaN(this.selectionService.focused)?this.firstFocusableIndex(n):this.selectionService.focused,o=0;if(!(this.disabled||this.readonly||this.filterable&&this.isFocused&&this.isOpen&&(e.keyCode===J.Home||e.keyCode===J.End))){var u=fe(this.selectionService.selected[0]),c=fe(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);(!u||c)&&(e.keyCode===J.ArrowDown||e.keyCode===J.ArrowRight?o=-1:(e.keyCode===J.ArrowUp||e.keyCode===J.ArrowLeft)&&(o=1));var d=e,h=this.navigationService.process({current:a+o,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:d});h!==Jt.Undefined&&h!==Jt.Tab&&h!==Jt.Backspace&&h!==Jt.Delete&&(h!==Jt.Left&&h!==Jt.Right||!this.filterable)&&h!==Jt.Enter&&d.preventDefault()}}},{key:"keypress",value:function(e){this.disabled||this.readonly||this.filterable||this.onKeyPress(e)}},{key:"click",value:function(e){e.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.detectChanges()}),this.assignAriaDescribedBy(),this.setComponentClasses()}},{key:"isEmpty",value:function(){var e=this.value;return!(0===e||!1===e||e||this.defaultItem)}},{key:"onFilterFocus",value:function(){this.filterFocused.emit()}},{key:"ngOnDestroy",value:function(){this.destroyPopup(),this.unsubscribeEvents(),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("defaultItem",e,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),Ki(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],e,!1)&&this.setState()}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"focusItemAt",value:function(e){var a=(fe(this.defaultItem)?-1:0)<=e&&e0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=e.slice()),(c1(e)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=function(r,t,e){var n=function(r,t){return Sa(r)&&r.filter(function(e){return av(e)&&fe(rt(e,t))})}(r,e)||[],a=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=arguments.length>2?arguments[2]:void 0;return r.map(function(n){return t.find(function(a){return rt(a,e)===n})}).filter(function(n){return void 0!==n})}(r,t,e)||[];return a.concat(n)}(e,a,this.valueField)),this.selectedDataItems.length0)this.handleBackspace();else if(!(this.disabled||n&&!a)){var s=e,l=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,u=this.navigationService.process({current:l,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:s});u!==Jt.Undefined&&(u===Jt.Enter&&this.isOpen||u!==Jt.Enter)&&e.preventDefault()}}},{key:"handleRemoveTag",value:function(e){var n=e.tag,a=new eae(n);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(a),!a.isDefaultPrevented()&&(n instanceof Array?this.removeGroupTag(n):this.removeSingleTag(n),this.cdr.detectChanges()))}},{key:"clearAll",value:function(e){var n=this;e.stopImmediatePropagation(),e.preventDefault(),this.focus(),this.clearFilter();var a=this.selectionService.selected;this.value=this.value.filter(function(o,s){return n.disabledItemsService.isIndexDisabled(a[s])}),this.emitValueChange()}},{key:"addCustomValue",value:function(e){this.customValueSubject.next(e)}},{key:"ngAfterContentChecked",value:function(){this.verifySettings()}},{key:"ngDoCheck",value:function(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1}},{key:"ngOnInit",value:function(){var e=this;this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr",e.cdr.markForCheck()}),this.setState(this.value),this.setComponentClasses(),this.initialized=!0}},{key:"ngOnChanges",value:function(e){var n=this.virtual;n&&e.data&&e.data.isFirstChange()&&this.pageChange({skip:0,take:n.pageSize}),yn("valueNormalizer",e)&&this.createCustomValueStream(),Ki(["textField","valueField","valuePrimitive"],e)&&this.setState(this.value)}},{key:"ngAfterViewInit",value:function(){this.searchbar.setInputSize()}},{key:"ngOnDestroy",value:function(){this._toggle(!1),this.unsubscribeEvents()}},{key:"toggle",value:function(e){var n=this;Promise.resolve(null).then(function(){var a=fe(e)?e:!n._open;n._toggle(a),n.cdr.markForCheck()})}},{key:"isOpen",get:function(){return this._open}},{key:"reset",value:function(){this.text="",this.value=[]}},{key:"messageFor",value:function(e){return this.localization.get(e)}},{key:"writeValue",value:function(e){this.value=e||[]}},{key:"registerOnChange",value:function(e){this.onChangeCallback=e}},{key:"registerOnTouched",value:function(e){this.onTouchedCallback=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"onTagMapperChange",value:function(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()}},{key:"isFocused",get:function(){return this._isFocused},set:function(e){this.renderer[e?"addClass":"removeClass"](this.wrapper.nativeElement,"k-focus"),this._isFocused=e}},{key:"subscribeEvents",value:function(){var e=this;if(Ze()){var n=function(){return e.isOpen},a=function(){return!e.isOpen},o=function(){return!e.isOpen&&void 0!==e.focusedTagIndex};[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(Ue(n)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe(Ue(n)).subscribe(function(s){return e.handleUp(s.index)}),this.navigationService.home.pipe(Ue(function(){return a})).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Ue(function(){return a})).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Ue(o)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Ue(o)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe(function(s){return e.handleDownKey(s.index)})].forEach(function(s){return e.observableSubscriptions.add(s)})}}},{key:"subscribeTouchEvents",value:function(){var e=this;!Ze()||!this.touchEnabled||this._zone.runOutsideAngular(function(){return e.touchstartDisposeHandler=e.renderer.listen(document,"touchstart",function(n){(e.isFocused||e.isOpen)&&!wC(e.wrapper,n.target,e.popupRef)&&e._zone.run(function(){e.blur(),e.isOpen&&e.togglePopup(!1)})})})}},{key:"unsubscribeEvents",value:function(){!Ze()||(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}},{key:"removeGroupTag",value:function(e){var n=this,a=this.dataService.data;this.dataService.grouped&&(a=a.filter(function(s){return!s.header}).map(function(s){return s.value}));var o=new Set(e.map(function(s){return rt(s,n.valueField)}));this.value=this.value.filter(function(s){var l=jP([s],a,n.valueField)[0],u=n.disabledItemsService.isIndexDisabled(l);return!o.has(rt(s,n.valueField))||u}),this.emitValueChange()}},{key:"removeSingleTag",value:function(e){var n=this,a=this.dataService.data;this.dataService.grouped&&(a=a.filter(function(l){return!l.header}).map(function(l){return l.value}));var o=jP([e],a,this.valueField)[0];this.disabledItemsService.isIndexDisabled(o)||(!function(r){return!isNaN(r)}(o)?(this.value=this.value.filter(function(u){return rt(u,n.valueField)!==rt(e,n.valueField)}),this.emitValueChange()):(this.selectionService.unselect(o),this.selectionService.focused=o,this.togglePopup(!1)))}},{key:"disabledItemsMapper",value:function(){var e=this,n=this.selectionService.selected;return new Set(this.selectedDataItems.reduce(function(a,o,s){return e.disabledItemsService.isIndexDisabled(n[s])&&a.push(s),a},[]))}},{key:"createCustomValueStream",value:function(){var e=this;this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(At(function(){e.loading=!0,e.disabled=!0,e.cdr.detectChanges()}),this.valueNormalizer,cl(function(){return e.loading=!1,e.disabled=!1,e.autoClose&&e.togglePopup(!1),(e.autoClose||!e.filterable)&&e.clearFilter(),e.nextTick(function(){e.searchbar.focus()}),e.createCustomValueStream(),lt(null)})).subscribe(function(n){if(e.loading=!1,e.disabled=!1,fe(n)){var a=e.valuePrimitive?rt(n,e.valueField):n,o=e.dataService.indexOf(a),s=-1===o;-1===e.value.indexOf(a)?(e.tags=e.tagMapper([].concat(Ae(e.selectedDataItems),[n])),s?e.value=[].concat(Ae(e.value),[a]):e.selectionService.add(o)):!s&&e.selectionService.isSelected(o)?(e.selectionService.unselect(o),e.selectionService.focused=o):e.value=e.value.filter(function(l){return rt(l,e.valueField)!==a}),e.emitValueChange()}e.autoClose&&e.togglePopup(!1),(e.autoClose||!e.filterable)&&e.clearFilter(),e.nextTick(function(){e.searchbar.focus()})})}},{key:"handleItemChange",value:function(e){this.change(e),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()}},{key:"handleEnter",value:function(e){var n=this.selectionService,a=this.selectionService.focused;this.isOpen&&e.originalEvent.preventDefault(),-1!==a?(n.isSelected(a)?(n.unselect(a),n.focused=a):n.add(a),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)}},{key:"handleClose",value:function(){this.closePopup(),this.searchbar.focus()}},{key:"handleEnd",value:function(){this.focusedTagIndex=this.tags.length-1}},{key:"handleHome",value:function(){this.focusedTagIndex=0}},{key:"handleUp",value:function(e){this.selectionService.focused=e}},{key:"handleBackspace",value:function(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())}},{key:"handleDelete",value:function(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)}},{key:"handleLeftKey",value:function(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--}},{key:"handleDownKey",value:function(e){this.isOpen?this.selectionService.focused=e||this.firstFocusableIndex(0):this.openPopup()}},{key:"handleRightKey",value:function(){var e=this.tags.length-1;this.focusedTagIndex===e?this.focusedTagIndex=void 0:this.focusedTagIndex1&&void 0!==arguments[1]?arguments[1]:0;e=e.toLowerCase();var s=this.dataService.findIndex(function(l){return o=rt(n.dataService.grouped?l.value:l,n.textField),o=fe(o)?o.toString().toLowerCase():"",e&&o.startsWith(e)},a);return this.disabledItemsService.isIndexDisabled(s)?s+1>this.dataService.itemsCount?-1:this.findIndex(e,s+1):s}},{key:"searchTextAndFocus",value:function(e){var n=this.findIndex(e);this.selectionService.focused=n}},{key:"closePopup",value:function(){this.togglePopup(!1),this.focusedTagIndex=void 0}},{key:"openPopup",value:function(){this.togglePopup(!0),this.focusedTagIndex=void 0}},{key:"togglePopup",value:function(e){this.disabled||this.readonly||this.isOpen===e||this.triggerPopupEvents(e)||this._toggle(e)}},{key:"triggerPopupEvents",value:function(e){var n=new cv;return e?this.open.emit(n):this.close.emit(n),n.isDefaultPrevented()}},{key:"_toggle",value:function(e){this._open=e,this.destroyPopup(),this._open&&this.createPopup()}},{key:"destroyPopup",value:function(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}},{key:"createPopup",value:function(){var e=this;this.virtual&&(this.virtual.skip=0);var n="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:n,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:n,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});var s=this.popupRef.popupElement,l=this.width,u=l.min,c=l.max;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=u,s.style.width=c,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(function(){e.cdr.detectChanges(),e.optionsList.scrollToItem(e.selectionService.focused),e.opened.emit()}),this.popupRef.popupClose.subscribe(function(){e.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(function(){e.togglePopup(!1)})}},{key:"emitValueChange",value:function(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)}},{key:"resolveDataItemFromTags",value:function(e){var n=this;if(this.tags&&this.tags.length&&fe(e))return this.tags.reduce(function(o,s){var l=Sa(s)?s:[s];return o.push.apply(o,Ae(l)),o},[]).find(function(o){return rt(o,n.valueField)===rt(e,n.valueField)})}},{key:"firstFocusableIndex",value:function(e){var n=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(e)){var a=e+1;return a input, kendo-label > textarea, kendo-label > select")}(this.elementRef.nativeElement);if(e)return e.hasAttribute("id")||this.renderer.setAttribute(e,"id","k-".concat(qn())),void(this.control=e);this.control=this.kendoInput}}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.localization.changes.subscribe(function(n){e.direction=n.rtl?"rtl":"ltr"}))}},{key:"ngAfterViewInit",value:function(){this.labelDirective.setAriaLabelledby()}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"textFor",value:function(e){return this.localization.get(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-label"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Ui,7),2&t&&P(a=B())&&(e.kendoInput=a.first)},viewQuery:function(t,e){var n;1&t&&ge(oB,7),2&t&&P(n=B())&&(e.labelDirective=n.first)},hostVars:1,hostBindings:function(t,e){2&t&&ie("dir",e.direction)},inputs:{text:"text",for:"for",optional:"optional"},exportAs:["kendoLabel"],features:[de([Y,{provide:Dt,useValue:"kendo.label"}])],ngContentSelectors:fae,decls:5,vars:5,consts:function(){return[["kendoLabelLocalizedMessages","","optional",$localize(hae||(hae=le([":kendo.label.optional|The text for the optional segment of a Label component:Optional"])))],[3,"for"],["class","k-label-optional",4,"ngIf"],[1,"k-label-optional"]]},template:function(t,e){1&t&&(kn(),Wt(0,0),A(1,"label",1),te(2),T(3,Int,2,1,"span",2),x(),dn(4)),2&t&&(k(1),ue("k-label-empty",!e.text),y("for",e.control),k(1),Pt(" ",e.text,""),k(1),y("ngIf",e.optional))},directives:[sB,oB,qe],encapsulation:2}),i}(),Hnt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,C1],znt,C1]}),i}(),Ke=function(r){return r?new Date(r.getTime()):null},MC=function(r,t){var e=Ke(r);return 0===t&&23===e.getHours()&&e.setHours(e.getHours()+2),e},rs=function(r,t){var e=Ke(r);return e.setDate(e.getDate()+t),MC(e,r.getHours())},Ao=function(r,t,e){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,l=new Date(r,t,e,n,a,o,s);return r>-1&&r<100&&l.setFullYear(l.getFullYear()-1900),MC(l,n)},Ii=function(r){return Ao(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0)},vi=function(r,t){return!r&&!t||r&&t&&r.getTime()===t.getTime()},Ml=function(r){var t=Ao(r.getFullYear(),r.getMonth()+1,1,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return rs(t,-1)},Kr=function(r,t){var e=Ke(r),a=(12+(e.getMonth()+t)%12)%12;return e.setMonth(e.getMonth()+t),function(r,t){return r.getMonth()!==t?Ml(Kr(r,-1)):r}(MC(e,r.getHours()),a)},mae=function(r,t){var e=r.getMonth(),n=Ao(t,e,r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return n.getMonth()===e?n:Ml(Kr(n,-1))},xo=function(r,t){return MC(mae(r,r.getFullYear()+t),r.getHours())},Ws=function(r,t){return xo(r,10*t)},RC=function(r,t){return xo(r,100*t)},b1=function(r,t){return mae(r,t(r.getFullYear()))},hv=function(r){return b1(r,function(t){return t-t%100})},S1=function(r){return b1(r,function(t){return t-t%100+90})},oo=function(r){return b1(r,function(t){return t-t%10})},OC=function(r){return b1(r,function(t){return t-t%10+9})},_ae=function(r,t){var e=r.getDate(),n=Ao(r.getFullYear(),t,e,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds());return n.getDate()===e?n:Ml(Kr(n,-1))},IC=function(r){return _ae(r,11)},yae=function(r,t){return(hv(t).getFullYear()-hv(r).getFullYear())/100},kae=function(r,t){return(oo(t).getFullYear()-oo(r).getFullYear())/10},Cae=function(r,t){return rs(r,7*t)},bae=function(r){return Ao(r.getFullYear(),r.getMonth(),1,r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())},NC=function(){return function(i){i[i.Forward=1]="Forward",i[i.Backward=-1]="Backward"}(NC||(NC={})),NC}(),Sae=function(r,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:NC.Forward,n=Ke(r),a=(t-n.getDay()+7*e)%7;return n.setDate(n.getDate()+a),MC(n,r.getHours())},wae=function(r,t){return 12*(t.getFullYear()-r.getFullYear())+(t.getMonth()-r.getMonth())},Dae=function(r){return _ae(r,0)},Eae=function(r,t){return t.getFullYear()-r.getFullYear()},FC=function(){return function(i){i[i.Sunday=0]="Sunday",i[i.Monday=1]="Monday",i[i.Tuesday=2]="Tuesday",i[i.Wednesday=3]="Wednesday",i[i.Thursday=4]="Thursday",i[i.Friday=5]="Friday",i[i.Saturday=6]="Saturday"}(FC||(FC={})),FC}(),uB=function(r,t){var e=Ao(r.getFullYear(),0,1,-6),a=function(r,t){return t!==FC.Monday?rs(function(r,t){return Sae(r,t,NC.Backward)}(r,t),4):rs(r,4-(r.getDay()||7))}(r,t).getTime()-e.getTime(),o=Math.floor(a/864e5);return 1+Math.floor(o/7)},Tae=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:FC.Monday;r=Ii(r);var e=rs(r,-7),n=rs(r,7),a=uB(r,t);return 0===a?uB(e,t)+1:53===a&&uB(n,t)>1?1:a},LC={schedule:function(r){var t=requestAnimationFrame,e=cancelAnimationFrame,n=LC.delegate;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);var a=t(function(o){e=void 0,r(o)});return new Je(function(){return null==e?void 0:e(a)})},requestAnimationFrame:function(i){function r(){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(){var i=LC.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,arguments)}),cancelAnimationFrame:function(i){function r(){return i.apply(this,arguments)}return r.toString=function(){return i.toString()},r}(function(){var i=LC.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,arguments)}),delegate:void 0},qnt=function(i){b(t,i);var r=S(t);function t(e,n){var a;return p(this,t),(a=r.call(this,e,n)).scheduler=e,a.work=n,a}return v(t,[{key:"requestAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?$(q(t.prototype),"requestAsyncId",this).call(this,n,a,o):(n.actions.push(this),n._scheduled||(n._scheduled=LC.requestAnimationFrame(function(){return n.flush(void 0)})))}},{key:"recycleAsyncId",value:function(n,a){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=o&&o>0||null==o&&this.delay>0)return $(q(t.prototype),"recycleAsyncId",this).call(this,n,a,o);n.actions.some(function(s){return s.id===a})||(LC.cancelAnimationFrame(a),n._scheduled=void 0)}}]),t}(k6),Xnt=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"flush",value:function(n){this._active=!0;var a=this._scheduled;this._scheduled=void 0;var s,o=this.actions;n=n||o.shift();do{if(s=n.execute(n.state,n.delay))break}while((n=o[0])&&n.id===a&&o.shift());if(this._active=!1,s){for(;(n=o[0])&&n.id===a&&o.shift();)n.unsubscribe();throw s}}}]),t}(C6),Znt=new Xnt(qnt),Qnt=["kendoCalendarView",""];function Jnt(i,r){1&i&&(A(0,"td",3),te(1,"\xa0"),x())}function eit(i,r){if(1&i&&(A(0,"tr",4)(1,"th",5),te(2),x()()),2&i){var t=D();k(1),y("colSpan",t.colSpan),k(1),at(t.title)}}function tit(i,r){if(1&i&&te(0),2&i){var t=D(3).$implicit,e=D();Pt(" ",e.getWeekNumber(e.firstDate(t))," ")}}function nit(i,r){}var sh=function(r){return{click:r}},foe=function(r,t){return{$implicit:r,cellContext:t}};function iit(i,r){if(1&i&&(A(0,"td",9),T(1,tit,1,1,"ng-template",6),T(2,nit,0,0,"ng-template",10),x()),2&i){var t=D(2).$implicit,e=D();y("kendoEventsOutsideAngular",ot(5,sh,e.handleWeekNumberClick.bind(e,t))),k(1),y("ngIf",!e.weekNumberTemplateRef),k(1),y("ngIf",e.weekNumberTemplateRef)("ngTemplateOutlet",e.weekNumberTemplateRef)("ngTemplateOutletContext",ln(7,foe,e.firstDate(t),e.getWeekNumberContext(t)))}}function rit(i,r){if(1&i&&T(0,iit,3,10,"td",8),2&i){var t=D().$implicit,e=D(),n=Yt(1);y("ngIf",e.firstDate(t))("ngIfElse",n)}}function ait(i,r){1&i&&te(0),2&i&&at(D(2).$implicit.formattedValue)}function oit(i,r){}function sit(i,r){if(1&i&&T(0,oit,0,0,"ng-template",15),2&i){var t=D(2).$implicit;y("ngTemplateOutlet",D(2).templateRef)("ngTemplateOutletContext",ln(2,foe,t.value,t))}}function lit(i,r){if(1&i&&(A(0,"td",12)(1,"span",13),T(2,ait,1,1,"ng-template",6),T(3,sit,1,5,null,14),x()()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D().index,o=D();y("ngClass",o.getStyles(e))("title",e.title),ie("id",e.id)("data-cell-index",o.tableCellIndex(a,n))("aria-selected",e.isSelected||e.isRangeStart||e.isRangeMid||e.isRangeEnd)("aria-disabled",e.isDisabled),k(2),y("ngIf",!o.templateRef),k(1),y("ngIf",o.templateRef)}}function uit(i,r){if(1&i&&(Ge(0),T(1,lit,4,8,"td",11),Ve()),2&i){var t=r.$implicit,e=D(2),n=Yt(1);k(1),y("ngIf",e.shouldRenderCellContent(t))("ngIfElse",n)}}function cit(i,r){if(1&i&&(A(0,"tr",4),T(1,rit,1,2,"ng-template",6),T(2,uit,2,2,"ng-container",7),x()),2&i){var t=r.$implicit,e=D();k(1),y("ngIf",e.weekNumber),k(1),y("kForOf",t)}}function dit(i,r){if(1&i&&(A(0,"caption",7),te(1),x()),2&i){var t=D().date,e=D();y("ngClass",e.getCaptionClass()),k(1),at(e.getCaptionTitle(t))}}function hit(i,r){if(1&i&&(A(0,"th",11),te(1),x()),2&i){var t=r.$implicit;k(1),at(t)}}function fit(i,r){if(1&i&&(A(0,"thead",8)(1,"tr",9),T(2,hit,2,1,"th",10),x()()),2&i){var t=D(2);k(2),y("ngForOf",t.weekNames)}}function vit(i,r){if(1&i){var t=xe();A(0,"table",3),T(1,dit,2,2,"caption",4),T(2,fit,3,1,"thead",5),A(3,"tbody",6),Q("cellClick",function(s){return re(t),D().cellClick.emit(s)})("weekNumberCellClick",function(s){return re(t),D().weekNumberCellClick.emit(s)})("cellEnter",function(s){return re(t),D().cellEnter.emit(s)})("cellLeave",function(s){return re(t),D().cellLeave.emit(s)}),x()()}if(2&i){var e=r.date,n=r.className,a=D();y("ngClass",n),k(1),y("ngIf",a.showViewHeader),k(1),y("ngIf",a.isMonthView()),k(1),y("activeView",a.activeView)("isActive",a.isActive)("min",a.min)("max",a.max)("cellUID",a.cellUID)("focusedDate",a.focusedDate)("selectedDates",a.selectedDates)("selectionRange",a.selectionRange)("activeRangeEnd",a.activeRangeEnd)("weekNumber",a.weekNumber)("templateRef",a.cellTemplateRef)("weekNumberTemplateRef",a.weekNumberTemplateRef)("viewDate",e)}}function pit(i,r){}var voe=function(r){return{date:r,className:"k-pointer-events-none"}};function git(i,r){if(1&i&&T(0,pit,0,0,"ng-template",12),2&i){var t=D();y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,voe,t.nextAnimationDate))}}function mit(i,r){}var _it=function(r){return{date:r}};function yit(i,r){if(1&i&&T(0,mit,0,0,"ng-template",12),2&i){var t=r.$implicit;D(),y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,_it,t))}}function kit(i,r){}function Cit(i,r){if(1&i&&T(0,kit,0,0,"ng-template",12),2&i){var t=D();y("ngTemplateOutlet",Yt(1))("ngTemplateOutletContext",ot(2,voe,t.prevAnimationDate))}}function bit(i,r){1&i&&te(0),2&i&&at(D().title)}function Sit(i,r){}function wit(i,r){if(1&i){var t=xe();A(0,"button",8),Q("click",function(){return re(t),D().prevButtonClick.emit()}),z(1,"span",9),x()}if(2&i){var e=D();y("disabled",e.isPrevDisabled)("title",e.prevButtonTitle),ie("aria-disabled",e.isPrevDisabled)}}function Dit(i,r){if(1&i){var t=xe();A(0,"button",10),Q("click",function(){return re(t),D().nextButtonClick.emit()}),z(1,"span",11),x()}if(2&i){var e=D();y("disabled",e.isNextDisabled)("title",e.nextButtonTitle),ie("aria-disabled",e.isNextDisabled)}}var poe=function(r,t,e){return{$implicit:r,activeView:t,date:e}},Eit=function(r){return{focusin:r}},goe=["*"],moe=["list"];function Tit(i,r){if(1&i&&te(0),2&i){var t=D().$implicit;at(D().service.navigationTitle(t))}}function Ait(i,r){}function xit(i,r){if(1&i&&(A(0,"li")(1,"span"),T(2,Tit,1,1,"ng-template",5),T(3,Ait,0,0,"ng-template",6),x()()),2&i){var t=r.$implicit,e=r.index,n=D();ie("data-date-index",e),k(1),ue("k-calendar-navigation-marker",n.service.isRangeStart(t)),k(1),y("ngIf",!n.templateRef),k(1),y("ngIf",n.templateRef)("ngTemplateOutlet",n.templateRef)("ngTemplateOutletContext",va(7,poe,n.service.navigationTitle(t),n.activeViewValue,t))}}function Mit(i,r){if(1&i&&(A(0,"th",11),te(1),x()),2&i){var t=r.$implicit;Qe("width",D(2).colWidth,"%"),k(1),at(t)}}function Rit(i,r){if(1&i&&(A(0,"table",7)(1,"thead",8)(2,"tr",9),T(3,Mit,2,3,"th",10),x()()()),2&i){var t=D();k(3),y("ngForOf",t.weekNames)}}function Oit(i,r){1&i&&z(0,"col")}function Iit(i,r){if(1&i){var t=xe();A(0,"tbody",12),Q("cellClick",function(o){return re(t),D().cellClick.emit(o)})("weekNumberCellClick",function(o){return re(t),D().weekNumberCellClick.emit(o)}),x()}if(2&i){var e=r.$implicit,n=D();y("activeView",n.activeView)("isActive",n.isActive)("min",n.min)("max",n.max)("cellUID",n.cellUID)("focusedDate",n.focusedDate)("selectedDates",n.selectedDates)("weekNumber",n.weekNumber)("templateRef",n.cellTemplateRef)("weekNumberTemplateRef",n.weekNumberTemplateRef)("viewDate",e)}}function Nit(i,r){if(1&i){var t=xe();A(0,"kendo-calendar-navigation",5),Q("valueChange",function(a){return re(t),D(2).handleNavigation(a)})("pageChange",function(){return re(t),D(2).onPageChange()}),x()}if(2&i){var e=D(2);y("activeView",e.activeViewEnum)("focusedDate",e.focusedDate)("min",e.min)("max",e.max)("templateRef",null==e.navigationItemTemplateRef?null:e.navigationItemTemplateRef.templateRef)}}function Fit(i,r){if(1&i){var t=xe();Ge(0),T(1,Nit,1,5,"kendo-calendar-navigation",2),A(2,"kendo-calendar-viewlist",3),Q("todayButtonClick",function(o){return re(t),D().handleDateChange({selectedDates:[o],focusedDate:o})})("cellClick",function(o){return re(t),D().handleCellClick(o)})("weekNumberCellClick",function(o){return re(t),D().handleWeekNumberClick(o)})("activeDateChange",function(o){return re(t),D().handleActiveDateChange(o)})("pageChange",function(){return re(t),D().onPageChange()}),x(),A(3,"kendo-resize-sensor",4),Q("resize",function(){return re(t),D().onResize()}),x(),Ve()}if(2&i){var n,e=D();k(1),y("ngIf",e.navigation),k(1),y("activeView",e.activeViewEnum)("isActive",e.isActive)("cellTemplateRef",null==(n=e.activeCellTemplate())?null:n.templateRef)("headerTitleTemplateRef",null==e.headerTitleTemplateRef?null:e.headerTitleTemplateRef.templateRef)("weekNumberTemplateRef",null==e.weekNumberTemplateRef?null:e.weekNumberTemplateRef.templateRef)("cellUID",e.cellUID)("min",e.min)("max",e.max)("focusedDate",e.focusedDate)("weekNumber",e.weekNumber)("selectedDates",e.selectedDates)}}function Lit(i,r){if(1&i){var t=xe();Ge(0),A(1,"kendo-multiviewcalendar",6,7),Q("activeViewChange",function(a){return re(t),D().handleActiveViewChange(a)})("navigate",function(a){return re(t),D().handleNavigate(a)})("valueChange",function(a){re(t);var o=Yt(2);return D().handleMultiViewCalendarValueChange(a,o.focusedDate)})("focus",function(){return re(t),D().handleFocus()})("blur",function(a){return re(t),D().handleBlur(a)})("keydown",function(a){return re(t),D().handleMultiViewCalendarKeydown(a)}),z(3,"kendo-multiviewcalendar-messages",8),x(),Ve()}if(2&i){var e=D();k(1),y("views",1)("min",e.min)("max",e.max)("isActive",e.isActive)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("weekNumber",e.weekNumber)("animateNavigation",e.animateNavigation)("cellTemplate",e.activeCellTemplate())("monthCellTemplate",e.monthCellTemplateRef)("yearCellTemplate",e.yearCellTemplateRef)("decadeCellTemplate",e.decadeCellTemplateRef)("centuryCellTemplate",e.centuryCellTemplateRef)("headerTitleTemplate",e.headerTitleTemplateRef)("weekNumberTemplate",e.weekNumberTemplateRef)("focusedDate",e.focusedDate)("selection",e.selection)("value",e.value)("disabledDates",e.disabledDates),k(2),y("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))}}var Pit=["dateInput"],Bit=["spinup"],Git=["spindown"];function Vit(i,r){if(1&i){var t=xe();A(0,"span",4),Q("mousedown",function(a){return a.preventDefault()}),A(1,"button",5,6),Q("mousedown",function(){re(t);var a=D();return a.arrowDirection=a.arrow.Up})("mouseleave",function(){re(t);var a=D();return a.arrowDirection=a.arrow.None})("click",function(){return re(t),D().handleButtonClick(1)}),z(3,"span",7),x(),A(4,"button",8,9),Q("click",function(){return re(t),D().handleButtonClick(-1)})("mousedown",function(){re(t);var a=D();return a.arrowDirection=a.arrow.Down})("mouseleave",function(){re(t);var a=D();return a.arrowDirection=a.arrow.None}),z(6,"span",10),x()()}if(2&i){var e=D();k(1),ue("k-active",e.arrowDirection===e.arrow.Up),y("title",e.localization.get("increment")),ie("aria-label",e.localization.get("increment")),k(3),ue("k-active",e.arrowDirection===e.arrow.Down),y("title",e.localization.get("decrement")),ie("aria-label",e.localization.get("decrement"))}}var Uit=function(r,t,e,n,a,o,s){return{click:r,focus:t,mousedown:e,touchstart:n,dragstart:a,drop:o,blur:s}},T1=["container"],cB=["popupTemplate"],dB=["toggleButton"];function zit(i,r){}var _oe=function(r){return{keydown:r}};function Hit(i,r){if(1&i){var t=xe();A(0,"kendo-calendar",8,9),Q("valueChange",function(a){re(t);var o=D();return o.handleChange(o.mergeTime(a))}),z(2,"kendo-calendar-messages",10),x(),T(3,zit,0,0,"ng-template")}if(2&i){var e=D();y("type",e.calendarType)("min",e.min)("max",e.max)("navigation",e.navigation)("animateNavigation",e.animateCalendarNavigation)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("weekNumber",e.weekNumber)("cellTemplate",e.cellTemplate)("monthCellTemplate",e.monthCellTemplate)("yearCellTemplate",e.yearCellTemplate)("decadeCellTemplate",e.decadeCellTemplate)("centuryCellTemplate",e.centuryCellTemplate)("weekNumberTemplate",e.weekNumberTemplate)("headerTitleTemplate",e.headerTitleTemplate)("navigationItemTemplate",e.navigationItemTemplate)("focusedDate",e.focusedDate)("value",e.value)("kendoEventsOutsideAngular",ot(25,_oe,e.handleKeydown))("scope",e)("disabledDates",e.disabledDates),k(2),y("today",e.localization.get("today"))("prevButtonTitle",e.localization.get("prevButtonTitle"))("nextButtonTitle",e.localization.get("nextButtonTitle"))}}var yoe=function(r,t){return{click:r,mousedown:t}},cm={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652250169,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},zt=function(){return function(i){i[i.Left=0]="Left",i[i.Right=1]="Right",i[i.Up=2]="Up",i[i.Down=3]="Down",i[i.PrevView=4]="PrevView",i[i.NextView=5]="NextView",i[i.FirstInView=6]="FirstInView",i[i.LastInView=7]="LastInView",i[i.LowerView=8]="LowerView",i[i.UpperView=9]="UpperView"}(zt||(zt={})),zt}(),vt=function(){return function(i){i[i.month=0]="month",i[i.year=1]="year",i[i.decade=2]="decade",i[i.century=3]="century"}(vt||(vt={})),vt}(),Au=new Date(1980,0,1),Rl=new Date(1900,0,1),Ol=new Date(2099,11,31),so=(new Date(1980,0,1),new Date(1980,0,1,23,59,59),{start:null,end:null}),A1=function(r){return r&&(!r.touched||r.control&&"blur"===r.control.updateOn)},mrt=function(r){return r.preventDefault()},St=function(r){return null!=r},koe=function(r){return null!=r},PC=function(r){return function(t,e){var n=Ke(t);return n[r](e),n}},xu=function(r,t){var e=Ke(r);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e},krt=PC("setFullYear"),x1=PC("setHours"),M1=PC("setMinutes"),R1=PC("setSeconds"),O1=PC("setMilliseconds"),Pa=function(r,t){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=[],a=r;ar||e&&ee?Ke(e):r)},Il=function(){return Ii(new Date)},Bt=function(r){},Soe=function(r,t){return r.slice(t).concat(r.slice(0,t))},as=function(r){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=document.createElement(r);return a.className=e,Object.keys(n).map(function(o){return a.style[o]=n[o]}),"string"==typeof t?a.innerHTML=t||"":(t||[]).forEach(function(o){return o&&a.appendChild(o)}),a}},lh=function(r,t){return void 0!==r[t]},woe=function(r,t){return r[t]&&null!=r[t].currentValue},uh=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r&&r[r.length-1]},N1=function(r,t){var e=t||so,n=e.start,a=e.end;return!(!n||!a)&&nC.getFullYear();if(!n.isInRange(N,u,l)||V)return null;var U=n.isEqual(N,h.start),ee=n.isEqual(N,h.end),G=!U&&!ee&&N1(N,h);return{formattedValue:n.value(N),id:"".concat(a).concat(N.getTime()),isFocused:n.isEqual(N,o),isSelected:s&&c.some(function(I){return n.isEqual(N,I)}),isWeekend:!1,isRangeStart:U,isRangeMid:G,isRangeEnd:ee,isRangeSplitEnd:G&&n.isEqual(N,C),isRangeSplitStart:G&&n.isEqual(N,_),isToday:n.isEqual(N,w),title:n.cellTitle(N),value:N}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&oo(e).getFullYear()===oo(n).getFullYear()}},{key:"isInArray",value:function(e,n){if(!n.length)return!1;var a=e.getFullYear();return n[0].getFullYear()<=a&&a<=n[n.length-1].getFullYear()+99}},{key:"isInRange",value:function(e,n,a){var o=oo(e).getFullYear(),s=!n||oo(n).getFullYear()<=o,l=!a||o<=oo(a).getFullYear();return s&&l}},{key:"beginningOfPeriod",value:function(e){if(!e)return e;var n=oo(hv(e));return Ao(n.getFullYear(),0,1)}},{key:"lastDayOfPeriod",value:function(e){var n=S1(e),a=OC(n),o=IC(a);return Ml(o)}},{key:"isRangeStart",value:function(e){return e.getFullYear()%1e3==0}},{key:"move",value:function(e,n){var a=Irt[n];return a?a(e):e}},{key:"cellTitle",value:function(e){return oo(e).getFullYear().toString()}},{key:"navigationTitle",value:function(e){return e?hv(e).getFullYear().toString():""}},{key:"title",value:function(e){return e?"".concat(hv(e).getFullYear()," - ").concat(S1(e).getFullYear()):""}},{key:"rowLength",value:function(){return 4}},{key:"skip",value:function(e,n){return yae(n,e)}},{key:"total",value:function(e,n){return yae(e,n)+1}},{key:"value",value:function(e){return e?oo(e).getFullYear().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Nrt=[[]],Lrt=(De(Du={},zt.Left,function(i){return xo(i,-1)}),De(Du,zt.Up,function(i){return xo(i,-5)}),De(Du,zt.Right,function(i){return xo(i,1)}),De(Du,zt.Down,function(i){return xo(i,5)}),De(Du,zt.PrevView,function(i){return Ws(i,-1)}),De(Du,zt.NextView,function(i){return Ws(i,1)}),De(Du,zt.FirstInView,function(i){return oo(i)}),De(Du,zt.LastInView,function(i){return OC(i)}),Du),CB=function(){var i=function(){function r(){p(this,r),this.dateRange=function(t,e){if(!St(t)||!St(e))return[];for(var n=[],a=t;a<=e;)n.push(a),a=xo(a,1);return n}}return v(r,[{key:"addToDate",value:function(e,n){return Ws(e,n)}},{key:"datesList",value:function(e,n){return Pa(0,n).map(function(a){return Ws(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate;if(!f)return Nrt;var g=Pa(0,4),_=oo(f),C=OC(f),w=Il();return Pa(0,3).map(function(E){var M=xo(_,4*E);return g.map(function(R){var N=n.normalize(xo(M,R),u,l),V=N.getFullYear()>C.getFullYear();if(!n.isInRange(N,u,l)||V)return null;var U=n.isEqual(N,h.start),ee=n.isEqual(N,h.end),G=!U&&!ee&&N1(N,h);return{formattedValue:n.value(N),id:"".concat(a).concat(N.getTime()),isFocused:n.isEqual(N,o),isSelected:s&&c.some(function(I){return n.isEqual(N,I)}),isWeekend:!1,isRangeStart:U,isRangeMid:G,isRangeEnd:ee,isRangeSplitEnd:G&&n.isEqual(N,C),isRangeSplitStart:G&&n.isEqual(N,_),isToday:n.isEqual(N,w),title:n.cellTitle(N),value:N}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&e.getFullYear()===n.getFullYear()}},{key:"isInArray",value:function(e,n){if(!n.length)return!1;var a=e.getFullYear();return n[0].getFullYear()<=a&&a<=n[n.length-1].getFullYear()+9}},{key:"isInRange",value:function(e,n,a){var o=e.getFullYear(),s=!n||n.getFullYear()<=o,l=!a||o<=a.getFullYear();return s&&l}},{key:"beginningOfPeriod",value:function(e){if(!e)return e;var n=oo(e);return Ao(n.getFullYear(),0,1)}},{key:"lastDayOfPeriod",value:function(e){var n=OC(e),a=IC(n);return Ml(a)}},{key:"isRangeStart",value:function(e){return e.getFullYear()%100==0}},{key:"move",value:function(e,n){var a=Lrt[n];return a?a(e):e}},{key:"cellTitle",value:function(e){return e.getFullYear().toString()}},{key:"navigationTitle",value:function(e){return e?oo(e).getFullYear().toString():""}},{key:"title",value:function(e){return e?"".concat(oo(e).getFullYear()," - ").concat(OC(e).getFullYear()):""}},{key:"rowLength",value:function(){return 4}},{key:"skip",value:function(e,n){return kae(n,e)}},{key:"total",value:function(e,n){return kae(e,n)+1}},{key:"value",value:function(e){return e?e.getFullYear().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Prt=[[]],Grt=(De(Eu={},zt.Left,function(i){return rs(i,-1)}),De(Eu,zt.Up,function(i){return Cae(i,-1)}),De(Eu,zt.Right,function(i){return rs(i,1)}),De(Eu,zt.Down,function(i){return Cae(i,1)}),De(Eu,zt.PrevView,function(i){return Kr(i,-1)}),De(Eu,zt.NextView,function(i){return Kr(i,1)}),De(Eu,zt.FirstInView,function(i){return bae(i)}),De(Eu,zt.LastInView,function(i){return Ml(i)}),Eu),SB=function(){var i=function(){function r(t){p(this,r),this._intlService=t,this.dateRange=function(e,n){if(!St(e)||!St(n))return[];for(var a=[],o=e;o<=n;)a.push(o),o=rs(o,1);return a}}return v(r,[{key:"addToDate",value:function(e,n){return Kr(e,n)}},{key:"datesList",value:function(e,n){return Pa(0,n).map(function(a){return Kr(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate,g=e.isDateDisabled,_=void 0===g?function(){return!1}:g;if(!f)return Prt;var C=bae(f),w=Ii(C),E=Ml(f),M=Ii(E),N=Sae(C,this._intlService.firstDay(),-1),V=Pa(0,7),U=Il();return Pa(0,6).map(function(ee){var ve=rs(N,7*ee);return V.map(function(G){var I=n.normalize(rs(ve,G),u,l),K=Ii(I),H=KM;if(Il)return null;var me=n.isEqual(I,h.start),ae=n.isEqual(I,h.end),Ce=!me&&!ae&&N1(I,h);return{formattedValue:n.value(I),id:"".concat(a).concat(I.getTime()),isFocused:n.isEqual(I,o),isSelected:s&&c.some(function(_e){return n.isEqual(I,_e)}),isWeekend:n.isWeekend(I),isRangeStart:me,isRangeMid:Ce,isRangeEnd:ae,isRangeSplitStart:Ce&&n.isEqual(I,C),isRangeSplitEnd:Ce&&n.isEqual(I,E),isToday:n.isEqual(I,U),title:n.cellTitle(I),value:I,isDisabled:_(I),isOtherMonth:H}})})}},{key:"isEqual",value:function(e,n){return!(!e||!n)&&Ii(e).getTime()===Ii(n).getTime()}},{key:"isInArray",value:function(e,n){if(0===n.length)return!1;var a=this.beginningOfPeriod(n[0]),o=this.beginningOfPeriod(Kr(n[n.length-1],1));return a<=e&&e0&&void 0!==arguments[0]?arguments[0]:{};return 7+(e.prependCell?1:0)}},{key:"skip",value:function(e,n){return wae(n,e)}},{key:"total",value:function(e,n){return wae(e,n)+1}},{key:"value",value:function(e){return e?e.getDate().toString():""}},{key:"viewDate",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}},{key:"wideMonthNames",value:function(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Vrt=[[]],Krt=(De(Tu={},zt.Left,function(i){return Kr(i,-1)}),De(Tu,zt.Up,function(i){return Kr(i,function(r){return r>4?-5:r<2?-2:-7}(i.getMonth()))}),De(Tu,zt.Right,function(i){return Kr(i,1)}),De(Tu,zt.Down,function(i){return Kr(i,function(r){return r<7?5:r<10?7:2}(i.getMonth()))}),De(Tu,zt.PrevView,function(i){return xo(i,-1)}),De(Tu,zt.NextView,function(i){return xo(i,1)}),De(Tu,zt.FirstInView,function(i){return Dae(i)}),De(Tu,zt.LastInView,function(i){return IC(i)}),Tu),DB=function(){var i=function(){function r(t){p(this,r),this._intlService=t,this.dateRange=function(e,n){if(!St(e)||!St(n))return[];for(var a=[],o=e;o<=n;)a.push(o),o=Kr(o,1);return a}}return v(r,[{key:"addToDate",value:function(e,n){return xo(e,n)}},{key:"datesList",value:function(e,n){return Pa(0,n).map(function(a){return xo(e,a)})}},{key:"data",value:function(e){var n=this,a=e.cellUID,o=e.focusedDate,s=e.isActiveView,l=e.max,u=e.min,c=e.selectedDates,d=e.selectionRange,h=void 0===d?so:d,f=e.viewDate;if(!f)return Vrt;var g=this.abbrMonthNames(),_=Dae(f),C=IC(f),w=_.getFullYear(),E=Pa(0,4),M=Il();return Pa(0,3).map(function(R){var N=Kr(_,4*R);return E.map(function(V){var U=n.normalize(Kr(N,V),u,l),ee=w2&&void 0!==arguments[2]?arguments[2]:1,o=this.total(e,n);if(oa&&this.isEqual(e,a)?Ke(a):e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),jrt=(De(um={},vt.month,SB),De(um,vt.year,DB),De(um,vt.decade,CB),De(um,vt.century,yB),um),Nl=function(){var i=function(){function r(t){p(this,r),this.injector=t,this.viewChanged=new O,this.bottom=vt.month,this.top=vt.century}return v(r,[{key:"configure",value:function(e,n){this.bottom=e,this.top=n}},{key:"service",value:function(e){var n=jrt[e];return n?this.injector.get(n):null}},{key:"moveDown",value:function(e){this.move(e,-1)}},{key:"moveUp",value:function(e){this.move(e,1)}},{key:"moveToBottom",value:function(e){e!==this.bottom&&this.viewChanged.emit({view:this.bottom})}},{key:"canMoveDown",value:function(e){return this.bottomthis.top?this.top:e}},{key:"move",value:function(e,n){var a=this.clamp(function(r,t){var e=vt[vt[r+t]];return void 0!==e?e:r}(e,n));a!==e&&this.viewChanged.emit({view:a})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Jn))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),EB=function(){var i=function(){function r(t){p(this,r),this.intl=t}return v(r,[{key:"getWeekNames",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Soe(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return e?[""].concat(n):n}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),TB=function(r,t,e){for(;r&&r!==e&&!t(r);)r=r.parentNode;if(r!==e)return r},AB=function(r,t){for(;r&&!t(r);)r=r.parentNode;return r},Toe=function(){return!1},Ru=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.isDateDisabled=Toe}return v(r,[{key:"initialize",value:function(e){if("function"==typeof e)this.isDateDisabled=function(o){return e(Ii(o))};else if(function(r){return Array.isArray(r)&&r.length>0&&r.every(function(t){return"number"==typeof t})}(e)){var n=new Set(e);this.isDateDisabled=function(o){return n.has(o.getDay())}}else if(function(r){return Array.isArray(r)&&r.length>0&&r.every(function(t){return t instanceof Date})}(e)){var a=new Set(e.map(function(o){return Ii(o).getTime()}));this.isDateDisabled=function(o){return a.has(Ii(o).getTime())}}else this.isDateDisabled=Toe,this.notifyInvalidInput(e);this.notifyServiceChange()}},{key:"notifyInvalidInput",value:function(e){if(St(e)&&xt())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check ".concat("https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/"," for more information."))}},{key:"notifyServiceChange",value:function(){this.changes.next()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),qrt=function(){function i(r,t,e,n){p(this,i),this.$implicit=r,this.kForOf=t,this.index=e,this.count=n}return v(i,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),i}(),P1=function(){var i=function(){function r(t,e,n){p(this,r),this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return v(r,[{key:"kForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngOnChanges",value:function(e){if("kForOf"in e){var n=e.kForOf.currentValue;if(this._differ||!n)return;try{this._differ=this._differs.find(n).create(this.kForTrackBy)}catch(a){throw new Error("Cannot find a differ supporting object '".concat(n,"' of type '").concat(function Xrt(i){return i.name||typeof i}(n),"'."))}}}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this.kForOf);e&&this._applyChanges(e)}}},{key:"_applyChanges",value:function(e){if(Ze()){var n=this._viewContainer.length,a=this.kForOf.length,o={};e.forEachOperation(function(d,h,f){null!==f&&(o[f]=d.item)});for(var s=n;sa;l--)this._viewContainer.remove(l-1);for(var u=0;u0&&lh(e,"views");(o||!this.isInDates(n)||s||!this.activeDate)&&(this.dates=this.service.datesList(a,this.getTake(this.skip)),this.activeDate=Ke(this.dates[0]),this.activeDateChange.emit(this.activeDate))}}},{key:"ngAfterViewInit",value:function(){1===this.views&&this.setTableMinWidth()}},{key:"ngOnDestroy",value:function(){this.intlSubscription.unsubscribe()}},{key:"initService",value:function(){this.service=this.bus.service(this.activeView)}},{key:"isMonthView",value:function(){return this.activeView===vt.month}},{key:"getCaptionTitle",value:function(e){return this.service.title(e)}},{key:"getCaptionClass",value:function(){return this.isMonthView()?"k-month-header":"k-meta-header"}},{key:"animateView",value:function(e){var n=this,a=this.element.nativeElement,o=a.querySelector("table"),s=parseFloat(getComputedStyle(a).width),l=parseFloat(getComputedStyle(o).width);this.renderer.setStyle(a,"width","".concat(s,"px")),this.renderer.setStyle(a,"overflow","visible"),e===zt.NextView?this.nextAnimationDate=Ke(this.dates[0]):this.prevAnimationDate=Ke(this.dates[this.dates.length-1]),this.cdr.detectChanges(),a.querySelectorAll("table").forEach(function(f){n.renderer.setStyle(f,"width","".concat(l,"px")),1===n.views&&n.renderer.setStyle(f,"min-width","".concat(s,"px"))});var u=o.getBoundingClientRect(),c=parseFloat(getComputedStyle(a).columnGap),d=e===zt.NextView?"translateX(0)":"translateX(-".concat(u.width+c,"px)"),h=e===zt.NextView?"translateX(-".concat(u.width+c,"px)"):"translateX(0)";this.animation?this.animation.cancel():(this.animation=a.animate([{transform:d},{transform:h}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=function(){n.renderer.removeStyle(a,"width"),n.renderer.removeStyle(a,"overflow"),a.querySelectorAll("table").forEach(function(f){n.renderer.removeStyle(f,"width")}),n.animation=null,n.nextAnimationDate=null,n.prevAnimationDate=null,n.cdr.detectChanges()})}},{key:"navigate",value:function(e){this.animateNavigation&&Ze()&&St(this.element.nativeElement.animate)&&this.animateView(e);var n=this.move(e),a=this.service.datesList(n,this.getTake(this.skip));return this.isListInRange(a)&&(this.dates=a),this.activeDate=Ke(this.dates[0]),this.focusedDate=Ke(n),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),Ke(n)}},{key:"canNavigate",value:function(e){return!!this.service&&this.isListInRange(this.service.datesList(this.move(e),this.getTake(this.skip)))}},{key:"setTableMinWidth",value:function(){var e=this.element.nativeElement,n=e.querySelector("table");if(n){var a=parseFloat(getComputedStyle(e).width);this.renderer.setStyle(n,"min-width","".concat(a,"px"))}}},{key:"intlChange",value:function(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()}},{key:"clampDate",value:function(e){return Mu(e,this.min,this.max)}},{key:"move",value:function(e){return this.service.move(this.dates[0]||this.focusedDate,e)}},{key:"isListInRange",value:function(e){var n=this.service.beginningOfPeriod(this.min),a=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return n<=e[0]&&e[e.length-1]u[0]?u[0]:uh(u)}else u=[n],l=n;else u=[n],l=n;return{selectedDates:u,rangePivot:l}}},{key:"isDateSelected",value:function(e,n){return e.some(function(a){return vi(a,n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Nl))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),G1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarCellTemplate",""]]}),i}(),V1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarMonthCellTemplate",""]]}),i}(),U1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarYearCellTemplate",""]]}),i}(),z1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarDecadeCellTemplate",""]]}),i}(),H1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarCenturyCellTemplate",""]]}),i}(),K1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarWeekNumberCellTemplate",""]]}),i}(),j1=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarHeaderTitleTemplate",""]]}),i}(),GC=function(r){return function(t){return r&&t.value&&t.valuer?{maxError:{maxValue:r,value:t.value}}:null}},Yrt=function(){return null},W1=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-multiview-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[j]}),i}(),Jrt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(W1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoMultiViewCalendarLocalizedMessages",""]],features:[de([{provide:W1,useExisting:ye(function(){return i})}]),j]}),i}(),Roe="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",rat={multi:!0,provide:jn,useExisting:ye(function(){return fh})},aat={multi:!0,provide:tr,useExisting:ye(function(){return fh})},fh=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.bus=t,this.element=e,this.navigator=n,this.renderer=a,this.cdr=o,this.zone=s,this.disabledDatesService=l,this.selectionService=u,this.id=qn(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.isHeaderActive=!1,this.activeView=vt[vt.month],this.bottomView=vt[vt.month],this.topView=vt[vt.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new O,this.navigate=new O,this.cellEnter=new O,this.cellLeave=new O,this.valueChange=new O,this.blurEvent=new O,this.cellUID=qn(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=zt.PrevView,this.nextView=zt.NextView,this.selectedDates=[],this._min=new Date(Rl),this._max=new Date(Ol),this._focusedDate=Il(),this.resolvedPromise=Promise.resolve(),this.onControlChange=Bt,this.onControlTouched=Bt,this.onValidatorChange=Bt,this.minValidateFn=Bt,this.maxValidateFn=Bt,this.disabledDatesRangeValidateFn=Bt,this.subscriptions=new Je,this.setClasses(e.nativeElement)}return v(r,[{key:"focusedDate",get:function(){return this._focusedDate},set:function(e){this._focusedDate=e||Il()}},{key:"min",get:function(){return this._min},set:function(e){this._min=e||new Date(Rl)}},{key:"max",get:function(){return this._max},set:function(e){this._max=e||new Date(Ol)}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(function(o){return St(o)}).map(function(o){return Ke(o)}):Ke(e);var n=[].concat(e).filter(function(o){return St(o)}).map(function(o){return Ke(o)});if(!L1(n,this.selectedDates)){var a=uh(n);this.rangePivot=Ke(a),this.focusedDate=Ke(a)||this.focusedDate,this.selectedDates=n}}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledDates",set:function(e){this.disabledDatesService.initialize(e)}},{key:"selectionRange",get:function(){return this._selectionRange},set:function(e){this._selectionRange=e,this.disabledDatesRangeValidation&&this.onValidatorChange()}},{key:"cellTemplateRef",get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e}},{key:"monthCellTemplateRef",get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e}},{key:"yearCellTemplateRef",get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e}},{key:"decadeCellTemplateRef",get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e}},{key:"centuryCellTemplateRef",get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e}},{key:"weekNumberTemplateRef",get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e}},{key:"headerTitleTemplateRef",get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e}},{key:"activeViewEnum",get:function(){var e=vt[this.activeView];return et.end)return null;var n=function(r,t,e){if(!(r&&t&&e)||r>t)return[];for(var n=[],a=r;a<=t;)e(a)&&n.push(a),a=rs(a,1);return n}(t.start,t.end,r);return n.length?{disabledDatesInRange:n}:null}:Yrt}(this.disabledDatesService.isDateDisabled):Bt,this.onValidatorChange()),(e.min||e.max||e.focusedDate||e.activeView)&&this.updateButtonState()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"ngAfterViewInit",value:function(){this.updateButtonState()}},{key:"focus",value:function(){!this.element||this.element.nativeElement.focus()}},{key:"blur",value:function(){!this.element||this.element.nativeElement.blur()}},{key:"handleHeaderFocus",value:function(){this.isHeaderActive=!0}},{key:"handleDateChange",value:function(e){var n=this,a=this.bus.canMoveDown(this.activeViewEnum),o=e.selectedDates.filter(function(l){return!n.disabledDatesService.isDateDisabled(l)});this.focusedDate=e.focusedDate||this.focusedDate;var s=!a&&L1(o,this.selectedDates);if(!this.disabled&&!s){if(a)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=o.map(function(l){return Ke(l)}),this.value=this.parseSelectionToValue(o),this.onControlChange(this.parseSelectionToValue(o)),this.valueChange.emit(this.parseSelectionToValue(o)))}}},{key:"handleTodayButtonClick",value:function(e){var n=e.focusedDate,a=this.bus.service(this.activeViewEnum).isInArray(n,this.viewList.dates),o=!this.bus.canMoveDown(this.activeViewEnum);!a&&o&&this.emitNavigate(n),this.handleDateChange(e)}},{key:"setActiveDate",value:function(e){this.activeDate=Ke(e),this.cdr.detectChanges()}},{key:"writeValue",value:function(e){this.verifyValue(e),this.value=e,this.cdr.markForCheck()}},{key:"registerOnChange",value:function(e){this.onControlChange=e}},{key:"registerOnTouched",value:function(e){this.onControlTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this.cdr.markForCheck()}},{key:"validate",value:function(e){return this.minValidateFn(e)||this.maxValidateFn(e)||this.disabledDatesRangeValidateFn(this.selectionRange)}},{key:"registerOnValidatorChange",value:function(e){this.onValidatorChange=e}},{key:"activeCellTemplate",value:function(){switch(this.activeViewEnum){case vt.month:return this.monthCellTemplateRef||this.cellTemplateRef;case vt.year:return this.yearCellTemplateRef;case vt.decade:return this.decadeCellTemplateRef;case vt.century:return this.centuryCellTemplateRef;default:return null}}},{key:"navigateView",value:function(e){this.focusedDate=this.viewList.navigate(e),this.updateButtonState(),this.emitNavigate(this.focusedDate)}},{key:"emitNavigate",value:function(e){this.navigate.emit({activeView:vt[this.activeViewEnum],focusedDate:e})}},{key:"emitCellEvent",value:function(e,n){ut(e)&&this.zone.run(function(){e.emit(n)})}},{key:"handleCellClick",value:function(e){this.performSelection(e.date,e.modifiers),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}},{key:"handleWeekNumberClick",value:function(e){var n=this;"single"!==this.selection&&this.zone.run(function(){n.handleDateChange({selectedDates:e,focusedDate:uh(e)})})}},{key:"setClasses",value:function(e){this.renderer.addClass(e,"k-widget"),this.renderer.addClass(e,"k-calendar"),this.renderer.addClass(e,"k-calendar-range")}},{key:"verifyChanges",value:function(){if(xt()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max","."));if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview","."))}}},{key:"verifyValue",value:function(e){if(xt()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat(Roe," for possible resolution."));if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(function(a){return a instanceof Date}))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check ".concat(Roe," for possible resolution."))}}},{key:"updateButtonState",value:function(){var e=this;this.resolvedPromise.then(function(){e.isPrevDisabled=!e.viewList.canNavigate(e.prevView),e.isNextDisabled=!e.viewList.canNavigate(e.nextView),e.cdr.markForCheck()})}},{key:"parseSelectionToValue",value:function(e){return e=e||[],"single"===this.selection?Ke(uh(e)):e.map(function(n){return Ke(n)})}},{key:"performSelection",value:function(e,n){var a=this.selectionService.performSelection({date:e,modifiers:n,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=a.rangePivot,this.handleDateChange({selectedDates:a.selectedDates,focusedDate:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(ke),m(BC),m(Ee),m(nt),m(be),m(Ru),m(B1))},i.\u0275cmp=L({type:i,selectors:[["kendo-multiviewcalendar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,G1,5),he(n,V1,5),he(n,U1,5),he(n,z1,5),he(n,H1,5),he(n,K1,5),he(n,j1,5)),2&t&&(P(a=B())&&(e.cellTemplate=a.first),P(a=B())&&(e.monthCellTemplate=a.first),P(a=B())&&(e.yearCellTemplate=a.first),P(a=B())&&(e.decadeCellTemplate=a.first),P(a=B())&&(e.centuryCellTemplate=a.first),P(a=B())&&(e.weekNumberTemplate=a.first),P(a=B())&&(e.headerTitleTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(xB,5,ke),ge(Moe,5)),2&t&&(P(n=B())&&(e.headerElement=n.first),P(n=B())&&(e.viewList=n.first))},hostVars:6,hostBindings:function(t,e){1&t&&Q("focusout",function(a){return e.handleFocusout(a)})("focus",function(){return e.handleFocus()})("mouseenter",function(){return e.handleMouseEnter()})("mouseleave",function(){return e.handleMouseLeave()})("mousedown",function(a){return e.handleMousedown(a)})("click",function(){return e.handleClick()})("keydown",function(a){return e.keydown(a)}),2&t&&(ie("id",e.widgetId)("tabindex",e.calendarTabIndex)("aria-disabled",e.ariaDisabled)("aria-activedescendant",e.ariaActivedescendant),ue("k-disabled",e.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",isActive:"isActive",disabledDates:"disabledDates",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",views:"views",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange",blurEvent:"blur"},exportAs:["kendo-multiviewcalendar"],features:[de([Nl,rat,aat,Y,Ru,{provide:Dt,useValue:"kendo.multiviewcalendar"},BC,B1]),Ie],decls:3,vars:28,consts:function(){return[["kendoMultiViewCalendarLocalizedMessages","","today",$localize(Aae||(Aae=le([":kendo.multiviewcalendar.today|The label for the today button in the calendar header:Today"]))),"prevButtonTitle",$localize(xae||(xae=le([":kendo.multiviewcalendar.prevButtonTitle|The label for the previous button in the Multiview calendar:Navigate to previous view"]))),"nextButtonTitle",$localize(Mae||(Mae=le([":kendo.multiviewcalendar.nextButtonTitle|The label for the next button in the Multiview calendar:Navigate to next view"])))],[3,"activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","kendoEventsOutsideAngular","scope","todayButtonClick","prevButtonClick","nextButtonClick"],[3,"activeView","isActive","cellTemplateRef","weekNumberTemplateRef","cellUID","views","min","max","focusedDate","animateNavigation","showViewHeader","weekNumber","activeRangeEnd","selectionRange","selectedDates","cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange"]]},template:function(t,e){var n;1&t&&(Wt(0,0),A(1,"kendo-calendar-header",1),Q("todayButtonClick",function(o){return e.handleTodayButtonClick({selectedDates:[o],focusedDate:o})})("prevButtonClick",function(){return e.navigateView(e.prevView)})("nextButtonClick",function(){return e.navigateView(e.nextView)}),x(),A(2,"kendo-calendar-horizontal",2),Q("cellClick",function(o){return e.handleCellClick(o)})("weekNumberCellClick",function(o){return e.handleWeekNumberClick(o)})("cellEnter",function(o){return e.emitCellEvent(e.cellEnter,o)})("cellLeave",function(o){return e.emitCellEvent(e.cellLeave,o)})("activeDateChange",function(o){return e.setActiveDate(o)}),x()),2&t&&(k(1),y("activeView",e.activeViewEnum)("currentDate",e.activeDate)("min",e.min)("max",e.max)("rangeLength",e.views)("templateRef",null==e.headerTitleTemplateRef?null:e.headerTitleTemplateRef.templateRef)("isPrevDisabled",e.isPrevDisabled)("isNextDisabled",e.isNextDisabled)("showNavigationButtons",!0)("kendoEventsOutsideAngular",ot(26,Eit,e.handleHeaderFocus))("scope",e),k(1),y("activeView",e.activeViewEnum)("isActive",e.isActive||e.isHovered&&!e.isHeaderActive)("cellTemplateRef",null==(n=e.activeCellTemplate())?null:n.templateRef)("weekNumberTemplateRef",null==e.weekNumberTemplateRef?null:e.weekNumberTemplateRef.templateRef)("cellUID",e.cellUID)("views",e.views)("min",e.min)("max",e.max)("focusedDate",e.focusedDate)("animateNavigation",e.animateNavigation)("showViewHeader",e.showViewHeader)("weekNumber",e.weekNumber)("activeRangeEnd",e.activeRangeEnd)("selectionRange",e.selectionRange)("selectedDates",e.selectedDates))},directives:[xB,Moe,Jrt,qi],encapsulation:2,changeDetection:0}),i}(),sat=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0;p(this,i),this.total=r,this.rowHeight=t,this.detailRowHeight=e,this.offsets=[],this.heights=[];for(var n=0,a=0;athis.rowHeight&&this.updateRowHeight(t,-1*this.detailRowHeight)}},{key:"index",value:function(t){if(!(t<0)){var e=this.offsets.reduce(function(n,a,o){return void 0!==n?n:a===t?o:a>t?o-1:void 0},void 0);return void 0===e?this.total-1:e}}},{key:"offset",value:function(t){return this.offsets[t]}},{key:"totalHeight",value:function(){return this.heights.reduce(function(t,e){return t+e},0)}},{key:"updateRowHeight",value:function(t,e){this.heights[t]+=e,this.offsets=function(r,t,e){return[].concat(Ae(r.slice(0,t+1)),Ae(r.slice(t+1).map(function(n){return n+e})))}(this.offsets,t,e)}}]),i}(),$1=function(r){return Math.max(r,0)},MB=v(function i(r){p(this,i),this.offset=r}),q1=v(function i(r){p(this,i),this.skip=r}),lat=function(){function i(r){p(this,i),this.scrollObservable=r,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}return v(i,[{key:"create",value:function(t,e,n,a){var o=this,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"vertical";this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+n,this.take=n,this.total=a,this.lastScroll=0,this.topOffset=s,this.bottomOffset=l,this.direction=u;var c=new A6(2),d=this.rowsForHeight(s),h=$1(e-d);return c.next(new MB(this.rowOffset(h))),d&&c.next(new q1(h)),this.subscription=new An(function(f){o.unsubscribe(),o.scrollSubscription=o.scrollObservable.subscribe(function(g){return o.onScroll(g,f)})}).subscribe(function(f){return c.next(f)}),c}},{key:"destroy",value:function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}},{key:"onScroll",value:function(t,e){var l="vertical"===this.direction?t.scrollTop:t.scrollLeft,u="vertical"===this.direction?t.offsetHeight:t.offsetWidth;if(this.lastScroll!==l){var c=this.lastScroll>=l;this.lastScroll=l;var d=this.rowHeightService.index($1(l-this.topOffset)),h=this.rowHeightService.index($1(l+u-this.bottomOffset));if(!c&&h>=this.lastLoaded&&this.lastLoadedi}}),E1),gv=function(){var i=function(){function r(t,e,n,a){p(this,r),this.container=e,this.renderer=n,this.zone=a,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new O,this.pageChange=new O,this.scrollChange=new O,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new Ot,this.scroller=t(this.dispatcher)}return v(r,[{key:"horizontalClass",get:function(){return"horizontal"===this.direction}},{key:"totalVertexLength",get:function(){var e="".concat(this.totalSize,"px");return"vertical"===this.direction?{height:e}:{width:e}}},{key:"containerOffsetSize",get:function(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")}},{key:"containerScrollSize",get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")}},{key:"containerScrollPosition",get:function(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")}},{key:"ngOnChanges",value:function(e){(e.direction||e.take||e.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)}},{key:"ngOnInit",value:function(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())}},{key:"ngAfterViewInit",value:function(){var e=this;this.zone.runOutsideAngular(function(){e.containerScrollSubscription=e.scroll$().pipe(We(function(n){return n.target})).subscribe(function(n){e.dispatcher.next(n),e.emitActiveIndex()})})}},{key:"ngOnDestroy",value:function(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()}},{key:"getContainerProperty",value:function(e){return this.container.nativeElement[e]}},{key:"activeIndex",value:function(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}},{key:"itemIndex",value:function(e){return this.rowHeightService.index(e)}},{key:"itemOffset",value:function(e){return this.rowHeightService.offset(e)}},{key:"isIndexVisible",value:function(e){if(!this.rowHeightService)return!1;var n=this.containerScrollPosition,a=n+this.containerOffsetSize,o=this.rowHeightService.offset(e),s=o+this.rowHeightService.height(e);return o>=n&&s<=a}},{key:"isListScrolled",value:function(e){return this.containerScrollPosition!==this.rowHeightService.offset(e)}},{key:"scrollTo",value:function(e){this.renderer.setProperty(this.container.nativeElement,"vertical"===this.direction?"scrollTop":"scrollLeft",e)}},{key:"scrollToIndex",value:function(e){var n=this;this.zone.runOutsideAngular(function(){n.resolvedPromise.then(function(){n.scrollTo(n.rowHeightService.offset(e))})})}},{key:"scrollToBottom",value:function(){this.scrollTo(this.totalSize)}},{key:"animateToIndex",value:function(e){var n=this;this.animationSubscription&&this.animationSubscription.unsubscribe();var a=this.rowHeightService.offset(e),o=this.getContainerScrollDirection(a),s=this.scrollRange(a,o),l=s.start,u=s.end;if(l!==u){var c=this.scrollStep(l,u),d=dat[o](c),h=hat[o](u),f=fat[o](d(u));this.zone.runOutsideAngular(function(){n.animationSubscription=GO(lt(l),iC(0,Znt)).pipe(We(function(g){return g[0]}),VO(d),function Ynt(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return oi(function(t,e){var n=0;t.subscribe(Wn(e,function(a){var o=i(a,n++);(o||r)&&e.next(a),!o&&e.complete()}))})}(f),We(h)).subscribe(function(g){return n.scrollTo(g)})})}}},{key:"scrollRange",value:function(e,n){var a=this.containerScrollPosition;if(parseInt(e,10)===parseInt(a,10))return{start:e,end:e};var o=this.containerMaxScroll(),s=n===$s.Backward?1:-1,l=function(r,t,e){return Math.min(Math.abs(t-r),e)}(a,e,this.maxScrollDifference),u=Math.min(e,o);return{start:Math.min(Math.max(u+s*l,0),o),end:u}}},{key:"scrollStep",value:function(e,n){return Math.abs(n-e)/(this.scrollDuration/17)}},{key:"scroll$",value:function(){return Ze()?li(this.container.nativeElement,"scroll"):po}},{key:"initServices",value:function(){var e=this;this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(function(n){n instanceof q1?e.pageChange.emit(n):e.scrollChange.emit(n)})}},{key:"createRowHeightService",value:function(){return new sat(this.total,"vertical"===this.direction?this.itemHeight:this.itemWidth,0)}},{key:"emitActiveIndex",value:function(){var e=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==e&&(this.lastActiveIndex=e,this.activeIndexChange.emit(e))}},{key:"containerMaxScroll",value:function(){return this.containerScrollSize-this.containerOffsetSize}},{key:"getContainerScrollDirection",value:function(e){return eFEB")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),i):null}}(),OB=function(r,t,e){var o,n=r.cells,a=r.rows;return function(){return Ze?(o||(o=function(r,t,e){return X1([X1('\n March 2017\n \n \n TODAY\n \n ',"k-calendar-header k-hstack"),e?Noe([yat([RB([Ioe("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,Loe([r,r])],t,{left:"-10000px",position:"absolute"})}(function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Noe([_at([RB([Ioe("1","k-calendar-th")],"k-calendar-tr")].concat(Foe(r,function(){return RB(Foe(t,function(e){return mat(''.concat(e,""),"k-calendar-td")}),"k-calendar-tr")})),"k-calendar-tbody")],"k-calendar-table")}(a,n),t,e)),o):null}},Z1=function(r){return r.querySelector(".k-scrollable")},IB=function(r){return Z1(r).classList.add("k-scrollable-horizontal"),r},Poe=OB({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),Boe=OB({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),Goe=OB({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),vh=function(r){return parseFloat(window.getComputedStyle(r).height)||r.offsetHeight},UC=function(r){var t=window.getComputedStyle(r);return parseFloat(t.width)+parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)||r.offsetWidth},hm=function(r){return r.querySelector("tbody")},zC=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"ensureHeights",value:function(){void 0===this.calendarHeight&&this.calculateHeights()}},{key:"calculateHeights",value:function(e){var n=this;!Ze()||(this.hostContainer=e,this.batch(Poe(),function(a){var o=hm(a);n.calendarHeight=vh(a),n.monthViewHeight=vh(o),n.headerHeight=vh(o.children[0]),n.scrollableContentHeight=vh(Z1(a))}),this.batch(IB(Poe()),function(a){var o=hm(a);n.calendarWidth=UC(a),n.monthViewWidth=UC(o),n.scrollableContentWidth=UC(Z1(a))}),this.batch(Boe(),function(a){n.yearViewHeight=vh(hm(a)),n.scrollableYearContentHeight=vh(Z1(a))}),this.batch(IB(Boe()),function(a){n.yearViewWidth=UC(hm(a))}),this.batch(Goe(),function(a){n.decadeViewHeight=vh(hm(a)),n.centuryViewHeight=n.decadeViewHeight}),this.batch(IB(Goe()),function(a){n.decadeViewWidth=UC(hm(a)),n.centuryViewWidth=n.decadeViewWidth}),this.batch(wat(),function(a){n.navigationItemHeight=vh(a.querySelector("li"))}))}},{key:"viewHeight",value:function(e){return this.viewDimension(e,"height")}},{key:"viewWidth",value:function(e){return this.viewDimension(e,"width")}},{key:"viewDimension",value:function(e,n){var a="height"===n?"ViewHeight":"ViewWidth";switch(e){case vt.month:return this["month".concat(a)];case vt.year:return this["year".concat(a)];case vt.decade:return this["decade".concat(a)];case vt.century:return this["century".concat(a)];default:return 1}}},{key:"batch",value:function(e,n){if(St(this.hostContainer)){var a=this.hostContainer.cloneNode();document.body.appendChild(a);try{n(a.appendChild(e))}catch(s){throw s}finally{document.body.removeChild(a)}}}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Voe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.bus=t,this.dom=e,this.intl=n,this.cdr=a,this.renderer=o,this.min=new Date(Rl),this.max=new Date(Ol),this.focusedDate=new Date,this.valueChange=new O,this.pageChange=new O,this.dates=[],this.take=30,this.indexToScroll=-1}return v(r,[{key:"getComponentClass",get:function(){return!0}},{key:"ngOnInit",value:function(){this.dom.ensureHeights();var e=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(e-this.itemHeight)/2,this.bottomOffset=e-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}},{key:"ngOnChanges",value:function(e){if(this.service=this.bus.service(this.activeView),this.service){this.activeViewValue=vt[this.activeView];var n=Mu(this.focusedDate,this.min,this.max),a=this.service.total(this.min,this.max),o=this.total&&this.total!==a;this.skip=this.service.skip(n,this.min),this.total=a,(o||!this.service.isInArray(n,this.dates))&&(this.dates=this.service.datesList(n,this.getTake(this.skip))),(e.focusedDate||o)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe()}},{key:"ngAfterViewInit",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"ngAfterViewChecked",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"onPageChange",value:function(e){var n=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,n),this.getTake(n)),this.pageChange.emit()}},{key:"scrollChange",value:function(e){var a=this.list.nativeElement,o="translateY(".concat(e.offset,"px)");this.renderer.setStyle(a,"transform",o),this.renderer.setStyle(a,"-ms-transform",o)}},{key:"handleDateChange",value:function(e){var n=TB(e.target,function(s){return s.hasAttribute("data-date-index")},this.list.nativeElement);if(n){var a=parseInt(n.getAttribute("data-date-index"),10);this.valueChange.emit(Ke(this.dates[a]))}}},{key:"getTake",value:function(e){return Math.min(this.total-e,this.take)}},{key:"intlChange",value:function(){this.activeView===vt.month&&this.cdr.markForCheck()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(zC),m(fi),m(nt),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar-navigation"]],viewQuery:function(t,e){var n;1&t&&(ge(gv,5),ge(moe,7)),2&t&&(P(n=B())&&(e.virtualization=n.first),P(n=B())&&(e.list=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-calendar-navigation",e.getComponentClass)},inputs:{activeView:"activeView",min:"min",max:"max",focusedDate:"focusedDate",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},features:[Ie],decls:5,vars:12,consts:[[1,"k-calendar-navigation-highlight"],[3,"skip","take","total","itemHeight","topOffset","bottomOffset","maxScrollDifference","pageChange","scrollChange"],[1,"k-reset",3,"kendoEventsOutsideAngular","scope"],["list",""],[4,"kFor","kForOf"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(z(0,"span",0),A(1,"kendo-virtualization",1),Q("pageChange",function(a){return e.onPageChange(a)})("scrollChange",function(a){return e.scrollChange(a)}),A(2,"ul",2,3),T(4,xit,4,11,"li",4),x()()),2&t&&(k(1),y("skip",e.skip)("take",e.take)("total",e.total)("itemHeight",e.itemHeight)("topOffset",e.topOffset)("bottomOffset",e.bottomOffset)("maxScrollDifference",e.maxViewHeight),k(1),y("kendoEventsOutsideAngular",ot(10,sh,e.handleDateChange))("scope",e),k(2),y("kForOf",e.dates))},directives:[gv,qi,P1,qe,En],encapsulation:2,changeDetection:0}),i}(),Uoe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.bus=t,this.cdr=e,this.intl=n,this.dom=a,this.renderer=o,this.isActive=!0,this.min=new Date(Rl),this.max=new Date(Ol),this.selectedDates=[],this.cellClick=new O,this.weekNumberCellClick=new O,this.activeDateChange=new O,this.todayButtonClick=new O,this.pageChange=new O,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}return v(r,[{key:"weekNumber",get:function(){return this.showWeekNumbers&&this.isMonthView()},set:function(e){this.showWeekNumbers=e}},{key:"getComponentMonthClass",get:function(){return this.activeView===vt.month}},{key:"getComponentYearClass",get:function(){return this.activeView===vt.year}},{key:"getComponentDecadeClass",get:function(){return this.activeView===vt.decade}},{key:"getComponentCenturyClass",get:function(){return this.activeView===vt.century}},{key:"ngOnInit",value:function(){this.weekNames=this.getWeekNames(),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}},{key:"ngOnChanges",value:function(e){if(this.service=this.bus.service(this.activeView),this.service){this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=lh(e,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;var n=lh(e,"activeView"),a=this.focusedDate,o=Mu(this.service.viewDate(a,this.max,this.minViewsToRender),this.min,this.max),s=this.service.total(this.min,this.max),u=this.total&&this.total!==s||!this.service.isInArray(a,this.dates);this.skip=this.service.skip(o,this.min),this.total=s,this.animateToIndex=!n,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),u&&(this.dates=this.service.datesList(o,this.getTake(this.skip))),function(r,t){return r&&t&&r.getFullYear()===t.getFullYear()&&r.getMonth()===t.getMonth()}(this.activeDate,a)||(this.activeDate=Ke(a));var c=lh(e,"focusedDate")||n;(u||c||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(a,this.min))}}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe()}},{key:"ngAfterViewInit",value:function(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}},{key:"ngAfterViewChecked",value:function(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)}},{key:"onPageChange",value:function(e){var n=e.skip;this.dates=this.service.datesList(this.service.addToDate(this.min,n),this.getTake(n)),this.pageChange.emit()}},{key:"scrollChange",value:function(e){var a=this.list.nativeElement,o="translateY(".concat(e.offset,"px)");this.renderer.setStyle(a,"transform",o),this.renderer.setStyle(a,"-ms-transform",o)}},{key:"setActiveDate",value:function(e){var n=this.service.addToDate(this.min,e);this.activeDate=n,this.activeDateChange.emit(n),this.cdr.detectChanges()}},{key:"isMonthView",value:function(){return this.activeView===vt.month}},{key:"isScrolled",value:function(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))}},{key:"getBottomOffset",value:function(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)}},{key:"getScrollableHeight",value:function(){return this.activeView===vt.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight}},{key:"getTake",value:function(e){return Math.min(this.total-e,this.take)}},{key:"getWeekNames",value:function(){var e=Soe(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(e):e}},{key:"intlChange",value:function(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(nt),m(fi),m(zC),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar-viewlist"]],viewQuery:function(t,e){var n;1&t&&(ge(gv,5),ge(moe,7)),2&t&&(P(n=B())&&(e.virtualization=n.first),P(n=B())&&(e.list=n.first))},hostVars:12,hostBindings:function(t,e){2&t&&ue("k-vstack",e.getComponentClass)("k-calendar-view",e.getComponentClass)("k-calendar-monthview",e.getComponentMonthClass)("k-calendar-yearview",e.getComponentYearClass)("k-calendar-decadeview",e.getComponentDecadeClass)("k-calendar-centuryview",e.getComponentCenturyClass)},inputs:{cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange"},features:[Ie],decls:8,vars:17,consts:[[3,"currentDate","min","max","activeView","templateRef","todayButtonClick"],["class","k-calendar-weekdays k-calendar-table","style","table-layout: auto;",4,"ngIf"],[3,"tabindex","skip","take","total","itemHeight","topOffset","bottomOffset","scrollOffsetSize","maxScrollDifference","pageChange","scrollChange","activeIndexChange"],["role","grid",1,"k-calendar-table"],["list",""],[4,"ngFor","ngForOf"],["class","k-calendar-tbody","kendoCalendarView","","role","rowgroup",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick",4,"kFor","kForOf"],[1,"k-calendar-weekdays","k-calendar-table",2,"table-layout","auto"],[1,"k-calendar-thead"],[1,"k-calendar-tr"],["class","k-calendar-th",3,"width",4,"ngFor","ngForOf"],[1,"k-calendar-th"],["kendoCalendarView","","role","rowgroup",1,"k-calendar-tbody",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick"]],template:function(t,e){1&t&&(A(0,"kendo-calendar-header",0),Q("todayButtonClick",function(a){return e.todayButtonClick.emit(a)}),x(),T(1,Rit,4,1,"table",1),A(2,"kendo-virtualization",2),Q("pageChange",function(a){return e.onPageChange(a)})("scrollChange",function(a){return e.scrollChange(a)})("activeIndexChange",function(a){return e.setActiveDate(a)}),A(3,"table",3,4)(5,"colgroup"),T(6,Oit,1,0,"col",5),x(),T(7,Iit,1,11,"tbody",6),x()()),2&t&&(y("currentDate",e.activeDate)("min",e.min)("max",e.max)("activeView",e.activeView)("templateRef",e.headerTitleTemplateRef),k(1),y("ngIf",e.isMonthView()),k(1),y("tabindex",-1)("skip",e.skip)("take",e.take)("total",e.total)("itemHeight",e.viewHeight)("topOffset",e.viewOffset)("bottomOffset",e.bottomOffset)("scrollOffsetSize",e.viewOffset)("maxScrollDifference",e.viewHeight),k(4),y("ngForOf",e.cols),k(1),y("kForOf",e.dates))},directives:[xB,gv,Aoe,qe,gn,P1],encapsulation:2,changeDetection:0}),i}(),zoe=function(){var i=function(){function r(t,e){p(this,r),this.dom=t,this.zone=e}return v(r,[{key:"configure",value:function(e){var n=Math.max(this.dom.viewHeight(e)/this.dom.navigationItemHeight,1);this.divideByMagnitude=function(r){return function(t){return Math.floor(t/r)}}(n),this.powerByMagnitude=function(r){return function(t){return t*r}}(n)}},{key:"sync",value:function(e,n){var a=this;this.unsubscribe(),e&&n&&(this.navigator=e,this.view=n,this.zone.runOutsideAngular(function(){var o,s;a.navSubscription=e.scroll$().subscribe(function(l){s?s=!1:(o=!0,a.scrollSiblingOf(l.target))}),a.viewSubscription=n.scroll$().subscribe(function(l){o?o=!1:(s=!0,a.scrollSiblingOf(l.target))})}))}},{key:"scrollSiblingOf",value:function(e){var n=this.siblingComponent(e),a=this.calculateScroll(n,e.scrollTop);n.scrollTo(a)}},{key:"siblingComponent",value:function(e){return this.navigator.container.nativeElement===e?this.view:this.navigator}},{key:"calculateScroll",value:function(e,n){return(e===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(n)}},{key:"destroy",value:function(){this.unsubscribe()}},{key:"unsubscribe",value:function(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(zC),oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Hoe=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarNavigationItemTemplate",""]]}),i}(),Xc=v(function i(){p(this,i),this.onFocus=new O,this.onBlur=new O,this.sameDateSelected=new O,this.dateCompletenessChange=new O}),Iat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(W1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-multiviewcalendar-messages"]],features:[de([{provide:W1,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Y1=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-calendar-messages-base"]],inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[j]}),i}(),Nat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(Y1);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoCalendarLocalizedMessages",""]],features:[de([{provide:Y1,useExisting:ye(function(){return i})}]),j]}),i}(),Koe="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",joe=function(r){return r?r.virtualization:null},Gat={multi:!0,provide:jn,useExisting:ye(function(){return HC})},Vat={multi:!0,provide:tr,useExisting:ye(function(){return HC})},Uat={provide:Ui,useExisting:ye(function(){return HC})},HC=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h,f,g){p(this,r),this.bus=t,this.dom=e,this.element=n,this.navigator=a,this.renderer=o,this.cdr=s,this.ngZone=l,this.injector=u,this.scrollSyncService=c,this.disabledDatesService=d,this.localization=h,this.selectionService=f,this.pickerService=g,this.id=qn(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=vt[vt.month],this.bottomView=vt[vt.month],this.topView=vt[vt.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new O,this.navigate=new O,this.activeViewDateChange=new O,this.valueChange=new O,this.isActive=!1,this.cellUID=qn(),this.selectedDates=[],this._min=new Date(Rl),this._max=new Date(Ol),this._focusedDate=Il(),this.onControlChange=Bt,this.onControlTouched=Bt,this.onValidatorChange=Bt,this.minValidateFn=Bt,this.maxValidateFn=Bt,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,jt(cm),this.setClasses(n.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}return v(r,[{key:"focusedDate",get:function(){return this._focusedDate},set:function(e){if(this.activeViewDate&&!vi(this._focusedDate,e)){var n=this.bus.service(this.activeViewEnum),a=n.lastDayOfPeriod(this.activeViewDate);n.isInRange(e,this.activeViewDate,a)||this.emitNavigate(e)}this._focusedDate=e||Il(),this.setAriaActivedescendant()}},{key:"min",get:function(){return this._min},set:function(e){this._min=e||new Date(Rl)}},{key:"max",get:function(){return this._max},set:function(e){this._max=e||new Date(Ol)}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),this._value=Array.isArray(e)?e.filter(function(o){return St(o)}).map(function(o){return Ke(o)}):Ke(e);var n=[].concat(e).filter(function(o){return St(o)}).map(function(o){return Ke(o)});if(!L1(n,this.selectedDates)){var a=uh(n);this.rangePivot=Ke(a),this.focusedDate=Ke(a)||this.focusedDate,this.selectedDates=n}}},{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"disabledDates",get:function(){return this._disabledDates},set:function(e){this.disabledDatesService.initialize(e),this._disabledDates=e}},{key:"type",get:function(){return this._type},set:function(e){this.renderer.removeClass(this.element.nativeElement,"k-calendar-".concat(this.type)),this.renderer.addClass(this.element.nativeElement,"k-calendar-".concat(e)),this._type=e}},{key:"cellTemplateRef",get:function(){return this._cellTemplateRef||this.cellTemplate},set:function(e){this._cellTemplateRef=e}},{key:"monthCellTemplateRef",get:function(){return this._monthCellTemplateRef||this.monthCellTemplate},set:function(e){this._monthCellTemplateRef=e}},{key:"yearCellTemplateRef",get:function(){return this._yearCellTemplateRef||this.yearCellTemplate},set:function(e){this._yearCellTemplateRef=e}},{key:"decadeCellTemplateRef",get:function(){return this._decadeCellTemplateRef||this.decadeCellTemplate},set:function(e){this._decadeCellTemplateRef=e}},{key:"centuryCellTemplateRef",get:function(){return this._centuryCellTemplateRef||this.centuryCellTemplate},set:function(e){this._centuryCellTemplateRef=e}},{key:"weekNumberTemplateRef",get:function(){return this._weekNumberTemplateRef||this.weekNumberTemplate},set:function(e){this._weekNumberTemplateRef=e}},{key:"headerTitleTemplateRef",get:function(){return this._headerTitleTemplateRef||this.headerTitleTemplate},set:function(e){this._headerTitleTemplateRef=e}},{key:"navigationItemTemplateRef",get:function(){return this._navigationItemTemplateRef||this.navigationItemTemplate},set:function(e){this._navigationItemTemplateRef=e}},{key:"activeViewEnum",get:function(){var e=vt[this.activeView];return ethis.max)throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max","."));if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview","."))}}},{key:"verifyValue",value:function(e){if(xt()){if("single"===this.selection&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat(Koe," for possible resolution."));if("multiple"===this.selection&&e&&Array.isArray(e)&&!e.every(function(a){return a instanceof Date}))throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check ".concat(Koe," for possible resolution."))}}},{key:"bindEvents",value:function(){var e=this.element.nativeElement;this.domEvents.push(this.renderer.listen(e,"blur",this.handleBlur.bind(this)),this.renderer.listen(e,"focus",this.handleFocus.bind(this)),this.renderer.listen(e,"mousedown",mrt),this.renderer.listen(e,"click",this.handleComponentClick.bind(this)),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)))}},{key:"emitBlur",value:function(e){this.pickerService&&this.pickerService.onBlur.emit(e)}},{key:"emitFocus",value:function(){this.pickerService&&this.pickerService.onFocus.emit()}},{key:"handleComponentClick",value:function(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=Ke(this.focusedDate),this.detectChanges()),this.focus())}},{key:"handleKeydown",value:function(e){if("classic"!==this.type||!this.multiViewCalendar.isHeaderActive){var a=-1!==[J.ArrowUp,J.ArrowRight,J.ArrowDown,J.ArrowLeft].indexOf(e.keyCode);if(!(St(this.pickerService)&&a&&e.altKey)){St(this.pickerService)&&e.keyCode===J.Enter&&e.preventDefault();var o=Mu(this.navigator.move(this.focusedDate,this.navigator.action(e),this.activeViewEnum),this.min,this.max);vi(this.focusedDate,o)||(this.focusedDate=o,this.detectChanges(),e.preventDefault()),e.keyCode===J.Enter&&this.performSelection(this.focusedDate,e)}}}},{key:"detectChanges",value:function(){this.destroyed||this.cdr.detectChanges()}},{key:"emitSameDate",value:function(){this.pickerService&&this.pickerService.sameDateSelected.emit()}},{key:"setAriaActivedescendant",value:function(){if(St(this.element)&&("classic"!==this.type||this.element.nativeElement.hasAttribute("aria-activedescendant"))){if("classic"===this.type)return void this.renderer.removeAttribute(this.element.nativeElement,"aria-activedescendant");var e=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",e)}}},{key:"parseSelectionToValue",value:function(e){return e=e||[],"single"===this.selection?Ke(uh(e)):e.map(function(n){return Ke(n)})}},{key:"performSelection",value:function(e,n){var a=this.selectionService.performSelection({date:e,modifiers:n,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=a.rangePivot,this.handleDateChange({selectedDates:a.selectedDates,focusedDate:e})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Nl),m(zC),m(ke),m(BC),m(Ee),m(nt),m(be),m(Jn),m(zoe),m(Ru),m(Y),m(B1),m(Xc,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-calendar"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,G1,5),he(n,V1,5),he(n,U1,5),he(n,z1,5),he(n,H1,5),he(n,K1,5),he(n,j1,5),he(n,Hoe,5)),2&t&&(P(a=B())&&(e.cellTemplate=a.first),P(a=B())&&(e.monthCellTemplate=a.first),P(a=B())&&(e.yearCellTemplate=a.first),P(a=B())&&(e.decadeCellTemplate=a.first),P(a=B())&&(e.centuryCellTemplate=a.first),P(a=B())&&(e.weekNumberTemplate=a.first),P(a=B())&&(e.headerTitleTemplate=a.first),P(a=B())&&(e.navigationItemTemplate=a.first))},viewQuery:function(t,e){var n;1&t&&(ge(Voe,5),ge(Uoe,5),ge(fh,5)),2&t&&(P(n=B())&&(e.navigationView=n.first),P(n=B())&&(e.monthView=n.first),P(n=B())&&(e.multiViewCalendar=n.first))},hostVars:7,hostBindings:function(t,e){2&t&&(ie("id",e.widgetId)("tabindex",e.calendarTabIndex)("aria-disabled",e.ariaDisabled),ue("k-week-number",e.weekNumber)("k-disabled",e.ariaDisabled))},inputs:{id:"id",focusedDate:"focusedDate",min:"min",max:"max",rangeValidation:"rangeValidation",selection:"selection",value:"value",disabled:"disabled",tabindex:"tabindex",tabIndex:"tabIndex",disabledDates:"disabledDates",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",type:"type",animateNavigation:"animateNavigation",weekNumber:"weekNumber",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",valueChange:"valueChange"},exportAs:["kendo-calendar"],features:[de([Nl,Gat,Vat,Uat,Y,Ru,{provide:Dt,useValue:"kendo.calendar"},BC,zoe,B1]),Ie],decls:3,vars:2,consts:function(){return[["kendoCalendarLocalizedMessages","","today",$localize(Rae||(Rae=le([":kendo.calendar.today|The label for the today button in the calendar header:Today"]))),"prevButtonTitle",$localize(Oae||(Oae=le([":kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar:Navigate to previous view"]))),"nextButtonTitle",$localize(Iae||(Iae=le([":kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar:Navigate to next view"])))],[4,"ngIf"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange",4,"ngIf"],[3,"activeView","isActive","cellTemplateRef","headerTitleTemplateRef","weekNumberTemplateRef","cellUID","min","max","focusedDate","weekNumber","selectedDates","todayButtonClick","cellClick","weekNumberCellClick","activeDateChange","pageChange"],[3,"resize"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange"],[3,"views","min","max","isActive","activeView","bottomView","topView","weekNumber","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","headerTitleTemplate","weekNumberTemplate","focusedDate","selection","value","disabledDates","activeViewChange","navigate","valueChange","focus","blur","keydown"],["multiviewcalendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(t,e){1&t&&(Wt(0,0),T(1,Fit,4,12,"ng-container",1),T(2,Lit,4,23,"ng-container",1)),2&t&&(k(1),y("ngIf","infinite"===e.type),k(1),y("ngIf","classic"===e.type))},directives:[Voe,Uoe,Gr,fh,Iat,Nat,qe],encapsulation:2,changeDetection:0}),i}(),Q1=function(){return function(r,t){return!St(r.value)&&t?{incompleteDate:!0}:null}},fm=function(){return function(i){i[i.Up=0]="Up",i[i.Down=1]="Down",i[i.None=2]="None"}(fm||(fm={})),fm}(),Woe=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-dateinput-messages-base"]],inputs:{decrement:"decrement",increment:"increment"},features:[j]}),i}(),zat=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(Woe);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDateInputLocalizedMessages",""]],features:[de([{provide:Woe,useExisting:ye(function(){return i})}]),j]}),i}(),Wat=/year|month|/,$at=/hour|minute|second|millisecond/,qat=/d|M|H|h|m|s/,qoe=function(r){return r.replace(/^0*/,"")},Qat=v(function i(){p(this,i),this.symbols=""}),Jat=function(){function i(r,t,e,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:68;if(p(this,i),this.intl=r,this.formatPlaceholder=t,this.format=e,this.twoDigitYearMax=a,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=Ii(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},jt(cm),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),n)this.value=Ke(n);else{this.value=Ii(new Date);for(var o=this.dateFormatString(this.value,this.format).symbols,s=0;s0&&(this.setExisting(t,!0),this.value=n)}},{key:"parsePart",value:function(t,e,n){if(!e)return this.resetLeadingZero(),this.setExisting(t,!1),{value:null,switchToNext:!1};for(var a=this.intl.formatDate(this.value,this.format),o=this.dateFormatString(this.value,this.format),s=o.symbols,l=!1,u="",c="",d="",h=0;h-1&&ee<12&&((g=Ke(this.value)).setMonth(ee),g.getMonth()!==ee&&(g=Ml(Kr(g,-1))))}"y"===t&&(g=Ao(parseInt(N,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&g.getDate()!==this.value.getDate()&&(g=Ml(Kr(g,-1))))}if(g){var ve=this.partPattern(o.partMap,t).pattern,G=this.intl.parseDate("".concat(u).concat(this.peek(N,ve)).concat(d),this.format),I=this.patternLength(ve)||ve.length,K=E+(qoe(N)||e).length>=I,H=null===G||K;return this.shouldNormalizeCentury()&&(g=this.normalizeCentury(g)),this.value=g,this.setExisting(t,!0),{value:this.value,switchToNext:H}}}return _&&(g=this.intl.parseDate(u+_+d,this.format))?(this.value=g,this.setExisting(t,!0),{value:this.value,switchToNext:!1}):C&&(g=this.intl.parseDate(u+C+d,this.format))?(this.value=g,{value:this.value,switchToNext:!0}):(w&&this.setExisting(t,!1),{value:null,switchToNext:!1})}},{key:"resetLeadingZero",value:function(){var t=null!==this.leadingZero;return this.setLeadingZero(null),t}},{key:"setLeadingZero",value:function(t){this.leadingZero=t}},{key:"normalizeCentury",value:function(t){if(!St(t))return t;var e=function(r){return!St(r)||isNaN(r.getTime())?0:Number(r.getFullYear().toString().slice(-2))}(t),n=this.getNormalizedCenturyBase(e);return krt(t,n+e)}},{key:"incrementLeadingZero",value:function(t){var e=this.leadingZero||{};e[t]=(e[t]||0)+1,this.leadingZero=e}},{key:"isAbbrMonth",value:function(t,e){var n=this.partPattern(t,e);return"month"===n.type&&n.names}},{key:"partPattern",value:function(t,e){return t.filter(function(n){return-1!==n.pattern.indexOf(e)})[0]}},{key:"peek",value:function(t,e){var n=qoe(t)+"0";return function(r){return new Array(Math.max(r,0)).fill("0").join("")}(e.length-n.length)+n}},{key:"matchMonth",value:function(t){if(this.typedMonthPart+=t.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(var e=0;e=1&&n<=12&&n.toString()===this.typedMonthPart)return this.monthNames[n-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}},{key:"matchDayPeriod",value:function(t,e){var n=String(t).toLowerCase();if("a"===e&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(n))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(n))return this.dayPeriods.pm}return""}},{key:"allFormatedMonths",value:function(){for(var t=this.intl.splitDateFormat(this.format),e=0;e0;)a.push(this.symbols[n[s].pattern[0]]||"_"),o.push(n[s]),l--;var u=new Qat;return u.symbols=a.join(""),u.partMap=o,u}},{key:"merge",value:function(t,e){for(var n="",a="",o=e.symbols,s=o.length-1;s>=0;s--)if(-1===this.knownParts.indexOf(o[s])||this.getExisting(o[s]))n=t[s]+n,a=o[s]+a;else{for(var l=o[s];s>=0&&l===o[s];)s--;for(s++,n=this.leadingZero&&this.leadingZero[l]?"0"+n:this.dateFieldName(e.partMap[s])+n;a.lengththis.twoDigitYearMax?1900:2e3}}]),i}(),KC=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.cdr=t,this.intl=e,this.renderer=n,this.wrapper=a,this.ngZone=o,this.injector=s,this.localization=l,this.pickerService=u,this.focusableId="k-".concat(qn()),this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new O,this.valueUpdate=new O,this.onFocus=new O,this.onBlur=new O,this.arrow=fm,this.arrowDirection=fm.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=Bt,this.maxValidator=Bt,this.incompleteValidator=Bt,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=Bt,this.onControlTouched=Bt,this.onValidatorChange=Bt,this._size=dh,this._rounded=ch,this._fillMode=hh,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}return v(r,[{key:"tabIndex",get:function(){return this.tabindex},set:function(e){this.tabindex=e}},{key:"value",get:function(){return this._value},set:function(e){this.verifyValue(e),(!this.autoCorrect||pv(e,this.min,this.max))&&(this._value=Ke(e),this.valueUpdate.emit(Ke(e)))}},{key:"size",get:function(){return this._size},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,pr("input",this.size));var n=e||dh;"none"!==n&&this.renderer.addClass(this.wrapper.nativeElement,pr("input",n)),this._size=n}},{key:"rounded",get:function(){return this._rounded},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,os(this.rounded));var n=e||ch;"none"!==n&&this.renderer.addClass(this.wrapper.nativeElement,os(n)),this._rounded=n}},{key:"fillMode",get:function(){return this._fillMode},set:function(e){this.renderer.removeClass(this.wrapper.nativeElement,Sr("input",this.fillMode));var n=e||hh;"none"!==n&&(this.renderer.addClass(this.wrapper.nativeElement,Sr("input",n)),this.spinners&&this.spinup&&this.spindown&&(this.setSpinnerFill(this.spinup.nativeElement,n,this.fillMode),this.setSpinnerFill(this.spindown.nativeElement,n,this.fillMode))),this._fillMode=n}},{key:"wrapperClass",get:function(){return!0}},{key:"disabledClass",get:function(){return this.disabled}},{key:"inputElement",get:function(){return this.dateInput?this.dateInput.nativeElement:null}},{key:"inputValue",get:function(){return(this.inputElement||{}).value||""}},{key:"isActive",get:function(){return this._active},set:function(e){if(this._active=e,this.wrapper&&!St(this.pickerService)){var n=this.wrapper.nativeElement;e?this.renderer.addClass(n,"k-focus"):this.renderer.removeClass(n,"k-focus")}}},{key:"inputFormat",get:function(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"}},{key:"displayFormat",get:function(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"}},{key:"isEmpty",value:function(){return!this.currentValue||!String(this.currentValue).trim()}},{key:"containsElement",value:function(e){var n=this;return Boolean(AB(e,function(a){return a===n.wrapper.nativeElement}))}},{key:"ngOnChanges",value:function(e){this.verifyRange(),(e.min||e.max||e.rangeValidation||e.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?GC(this.min):Bt,this.maxValidator=this.rangeValidation?VC(this.max):Bt,this.incompleteValidator=this.incompleteDateValidation?Q1():Bt,this.onValidatorChange()),e.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());var n=this.kendoDate&&vi(this.value,this.kendoDate.getDateObject());(e.format||!n||e.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))}},{key:"ngOnDestroy",value:function(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(function(e){return e()})}},{key:"validate",value:function(e){return this.minValidator(e)||this.maxValidator(e)||this.incompleteValidator(e,this.isDateIncomplete)}},{key:"registerOnValidatorChange",value:function(e){this.onValidatorChange=e}},{key:"ngOnInit",value:function(){var e=this;this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(ra,null),this.wrapper&&(this.renderer.removeAttribute(this.wrapper.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(function(){e.bindEvents()}))}},{key:"ngAfterViewInit",value:function(){this.setComponentClasses()}},{key:"setDisabledState",value:function(e){this.disabled=e,this.cdr.markForCheck()}},{key:"writeValue",value:function(e){this.verifyValue(e),this.kendoDate=this.getKendoDate(e),this.value=Ke(e),this.updateElementValue(this.isActive)}},{key:"triggerChange",value:function(){var e=this.kendoDate.getDateObject();+e!=+this.value&&(this.value=Ke(e),this.notify())}},{key:"notify",value:function(){var e=this;this.ngZone.run(function(){e.onControlChange(Ke(e.value)),e.valueChange.emit(Ke(e.value))})}},{key:"registerOnChange",value:function(e){this.onControlChange=e}},{key:"registerOnTouched",value:function(e){this.onControlTouched=e}},{key:"focus",value:function(){var e=this.inputElement;e&&(e.focus(),this.selectDateSegment(this.currentFormat[0]))}},{key:"blur",value:function(){var e=this.inputElement;e&&e.blur()}},{key:"handleButtonClick",value:function(e){this.arrowDirection=fm.None,this.modifyDateSegmentValue(e)}},{key:"modifyDateSegmentValue",value:function(e){var n=this.caret(),a=this.currentFormat[n[0]],o=(this.steps||{})[this.symbolsMap[a]]||1;if("S"===a&&!this.steps.millisecond){var s=function(r){var t=r&&r.match(/S+(\1)/);return t?t[0].length:0}(this.inputFormat);o=function(r){return Math.pow(10,3-r)}(s)}this.kendoDate.modifyPart(a,e*o),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(a),this.updateIncompleteValidationStatus()}},{key:"switchDateSegment",value:function(e){var n=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),n[0]0?n[0]:n[1]-1),this.resetSegmentValue=!0,!0;for(var a=this.currentFormat[n[0]],o=n[0]+e;o>0&&o=0&&ss&&(s+1!==n[0]||o+1!==n[1])?(this.caret(s+1,o+1),this.resetSegmentValue=!0,!0):o1&&void 0!==arguments[1]?arguments[1]:e,a=void 0!==e,o=[e,e],s=this.inputElement;if(!a||!this.disabled&&!this.readonly){try{void 0!==s.selectionStart&&(a&&(Ze()&&document.activeElement!==s&&s.focus(),s.setSelectionRange(e,n)),o=[s.selectionStart,s.selectionEnd])}catch(l){o=[]}return o}}},{key:"selectNearestSegment",value:function(e){for(var n=e,a=e-1;n=0;n++,a--){if(n=0&&"_"!==this.currentFormat[a])return void this.selectDateSegment(this.currentFormat[a])}}},{key:"verifyRange",value:function(){if(xt()&&!vB(this.min,this.max))throw new Error("The max value should be bigger than the min. See ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min"," and ").concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max","."))}},{key:"verifyValue",value:function(e){if(xt()&&e&&!(e instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check ".concat("http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json"," for possible resolution."))}},{key:"putDateInRange",value:function(){var e=this.kendoDate.getDateObject(),n=Mu(e,this.min,this.max);this.autoCorrect&&!vi(e,n)&&(this.kendoDate=this.getKendoDate(n))}},{key:"updateFormatSections",value:function(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(function(e,n){var o=e.time;return{date:e.date||Wat.test(n.type),time:o||$at.test(n.type)}},{date:!1,time:!1})}},{key:"intlChange",value:function(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)}},{key:"updateOnPaste",value:function(){var e=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value;St(e)&&this.kendoDate.shouldNormalizeCentury()&&(e=this.kendoDate.normalizeCentury(e));var n=+e!=+this.value;this.writeValue(e),n&&this.notify()}},{key:"bindEvents",value:function(){var e=this.wrapper.nativeElement,n=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(e,"DOMMouseScroll",n),this.renderer.listen(e,"mousewheel",n),this.renderer.listen(e,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(e,"paste",this.handlePaste.bind(this)),this.renderer.listen(e,"input",this.handleInput.bind(this)))}},{key:"handleMouseWheel",value:function(e){this.disabled||this.readonly||!this.isActive||((e=window.event||e).shiftKey?this.switchDateSegment((e.wheelDelta||-e.detail)>0?-1:1):this.modifyDateSegmentValue((e.wheelDelta||-e.detail)>0?1:-1),e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation())}},{key:"handlePaste",value:function(){this.paste=!0}},{key:"handleKeydown",value:function(e){if(!(this.disabled||this.readonly||e.altKey||e.ctrlKey||e.metaKey)){if(e.keyCode===J.Tab)return void(this.switchDateSegment(e.shiftKey?-1:1)&&e.preventDefault());if(e.keyCode===J.Backspace)return void(this.backspace=!0);switch(e.keyCode){case J.ArrowDown:this.modifyDateSegmentValue(-1);break;case J.ArrowUp:this.modifyDateSegmentValue(1);break;case J.ArrowRight:this.switchDateSegment(1);break;case J.ArrowLeft:this.switchDateSegment(-1);break;case J.Home:this.selectNearestSegment(0);break;case J.End:this.selectNearestSegment(this.inputValue.length);break;default:return}e.preventDefault()}}},{key:"handleInput",value:function(){if(!this.disabled&&!this.readonly){if(this.paste)return this.updateOnPaste(),void(this.paste=!1);var e=function(r,t,e,n){var a=n+r.length-e.length,o=r[a],s=r.substring(0,n+r.length-e.length),l=e.substring(0,n),u=[];if(s===l&&n>0)return u.push([t[n-1],l[n-1]]),u;if(0===s.indexOf(l)&&(0===l.length||t[l.length-1]!==t[l.length])){var c="";1===l.length&&u.push([t[0],l[0]]);for(var d=l.length;d=t&&r<=e},Dot=function(r,t,e){return!t&&!e||r>=t||r<=e},fse=function(){var i=function(){function r(t){p(this,r),this.intl=t}return v(r,[{key:"apply",value:function(e,n){var a=e.getHours(),o=UB(a),s=UB(n.getHours());if(o&&s||!o&&!s)return e;var u=Gt(this.normalizedRange(),2),d=u[1],h=void 0===d?24:d;return VB(e,Math.min(Math.max(u[0],a+(s?-12:12)),h||24))}},{key:"configure",value:function(e){var n=e.min,o=e.max,s=void 0===o?this.max:o,l=e.part,u=void 0===l?this.part:l;this.min=void 0===n?this.min:n,this.max=s,this.part=u}},{key:"data",value:function(e){var n=this.part.names;if(!n)return[];var a=[],s=Gt(this.normalizedRange(),2),l=s[0],u=s[1],c=this.intl.dateFormatNames(n);return UB(l)&&a.push({text:c.am,value:VB(this.min,l)}),function(r){return null!==r&&(!r||r>11)}(u)&&a.push({text:c.pm,value:VB(this.min,Math.max(12,u))}),this.min.getHours()!==l?a.reverse():a}},{key:"isRangeChanged",value:function(e,n){return!1}},{key:"limitRange",value:function(e,n,a){return[e,n]}},{key:"total",value:function(){var n=Gt(this.normalizedRange(),2),a=n[0],o=n[1];return(a||o)&&(a>11||o<12)?1:2}},{key:"selectedIndex",value:function(e){if(!this.valueInList(e))return-1;var n=Math.floor(e.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?n:0===n?1:0}},{key:"valueInList",value:function(e){return(this.min.getHours()!==this.normalizedRange()[0]?Dot:wot)(e.getHours(),this.min.getHours(),this.max.getHours())}},{key:"normalizedRange",value:function(){var e=this.min.getHours(),n=this.max.getHours();return[Math.min(e,n),Math.max(e,n)]}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fi))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),zB=as("div"),Eot=as("ul"),Tot=as("li"),Aot=as("span"),nT=(Ze()&&zB([Aot("hour","k-title k-timeselector-title"),zB([zB([Eot([Tot("02","k-item")],"k-reset")],"k-time-container k-flex k-content k-calendar-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),De(fv={},"dayperiod",fse),De(fv,"hour",ese),De(fv,"minute",rse),De(fv,"second",lse),De(fv,"millisecond",hse),new RegExp("".concat("hour","|").concat("minute","|").concat("second","|").concat("millisecond","|").concat("dayperiod","|literal")),new RegExp("".concat("hour","|").concat("minute","|").concat("second","|").concat("dayperiod","|literal")),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,cr]]}),i}()),gh=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),iT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[BC,yB,CB,SB,DB,EB],imports:[[bt,nT,Wg,gh,Fa,cr],nT,gh]}),i}(),xse=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt]]}),i}(),rT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[zC,yB,CB,SB,DB,EB],imports:[[bt,nT,iT,Wg,gh,xse,cr,yo],nT,gh]}),i}(),jC=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,Wg,cr]]}),i}(),Mse=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(eT);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-datepicker-messages"]],features:[de([{provide:eT,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),aT=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[{provide:vm,useValue:Py}],imports:[[bt,jC,rT,Wg,Fa,gh,cr],gh]}),i}(),mh="undefined"!=typeof Uint8Array&&ml.browser&&(!ml.browser.msie||ml.browser.version>9),ZB=function(){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{decode:function(t){for(var e=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),n=0,a=e.length,o=[];n>>2,f=(3&u)<<6|c;o.push(s<<2|l>>>4),64!=u&&o.push(h),64!=c&&o.push(f)}return o},encode:function(t){for(var e=0,n=t.length,a="";e>>4,d=(15&s)<<2|l>>>6,h=63&l;e-n==2?d=h=64:e-n==1&&(h=64),a+=i.charAt(o>>>2)+i.charAt(c)+i.charAt(d)+i.charAt(h)}return a}}}();function Ni(i){var r=0,t=0;null==i?i=mh?new Uint8Array(256):[]:t=i.length;var e=mh?function(I){if(I>=i.length){var K=new Uint8Array(Math.max(I+256,2*i.length));K.set(i,0),i=K}}:function(){},n=mh?function(){return new Uint8Array(i.buffer,0,t)}:function(){return i},a=mh?function(I){if("string"==typeof I)return ee(I);var K=I.length;e(r+K),i.set(I,r),(r+=K)>t&&(t=r)}:function(I){if("string"==typeof I)return ee(I);for(var K=0;Kt&&(t=r)}function c(){return l()<<8|l()}function d(I){u(I>>8),u(I)}function g(){return 65536*c()+c()}function _(I){d(I>>>16&65535),d(65535&I)}function C(){var I=g();return I>=2147483648?I-4294967296:I}function w(I){_(I<0?I+4294967296:I)}function V(I){return ve(I,l)}function ee(I){for(var K=0;K=t},readByte:l,writeByte:u,readShort:c,writeShort:d,readLong:g,writeLong:_,readFixed:function E(){return g()/65536},writeFixed:function M(I){_(Math.round(65536*I))},readShort_:function h(){var I=c();return I>=32768?I-65536:I},writeShort_:function f(I){d(I<0?I+65536:I)},readLong_:C,writeLong_:w,readFixed_:function R(){return C()/65536},writeFixed_:function N(I){w(Math.round(65536*I))},read:V,write:a,readString:function U(I){return String.fromCharCode.apply(String,V(I))},writeString:ee,times:ve,get:n,slice:mh?function(I,K){if(i.buffer.slice)return new Uint8Array(i.buffer.slice(I,I+K));var H=new Uint8Array(K);return H.set(new Uint8Array(i.buffer,I,K)),H}:function(I,K){return i.slice(I,I+K)},offset:function(K){return null!=K?(r=K,G):r},skip:function(K){r+=K},toString:function(){throw new Error("FIX CALLER. BinaryStream is no longer convertible to string!")},length:function(){return t},saveExcursion:function(K){var H=r;try{return K()}finally{r=H}},writeBase64:function(K){window.atob?ee(window.atob(K)):a(ZB.decode(K))},base64:function(){return ZB.encode(n())}};return G}function WC(i,r){return Object.prototype.hasOwnProperty.call(i,r)}function YB(i){return Object.keys(i).sort(function(r,t){return r-t}).map(parseFloat)}var Ou=function(){function i(r,t){p(this,i),this.definition=t,this.length=t.length,this.offset=t.offset,this.file=r,this.rawData=r.raw,this.parse(r.raw)}return v(i,[{key:"raw",value:function(){return this.rawData.slice(this.offset,this.length)}},{key:"parse",value:function(){}}]),i}();(function(){var i=function(){function s(l){p(this,s),this.raw=l}return v(s,[{key:"compound",get:function(){return!1}},{key:"render",value:function(){return this.raw.get()}}]),s}(),o=function(){function s(l){p(this,s),this.raw=l;for(var u=this.glyphIds=[],c=this.idOffsets=[];;){var d=l.readShort();if(c.push(l.offset()),u.push(l.readShort()),!(32&d))break;l.skip(1&d?4:2),128&d?l.skip(8):64&d?l.skip(4):8&d&&l.skip(2)}}return v(s,[{key:"compound",get:function(){return!0}},{key:"render",value:function(u){for(var c=Ni(this.raw.get()),d=0;d0;)a[s++]=e.readShort();break;case 12:e.readShort(),o.length=e.readLong(),o.language=e.readLong();for(var N=e.readLong();N-- >0;){s=e.readLong();for(var V=e.readLong(),U=e.readLong();s<=V;)a[s++]=U++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+o.format)}})})}();var rr={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function Qc(i,r){i=i.toLowerCase(),rr[i]=function(){return rr[r]},rr[i+"|bold"]=function(){return rr[r+"|bold"]},rr[i+"|italic"]=function(){return rr[r+"|italic"]},rr[i+"|bold|italic"]=function(){return rr[r+"|bold|italic"]}}Qc("Times New Roman","serif"),Qc("Courier New","monospace"),Qc("Arial","sans-serif"),Qc("Helvetica","sans-serif"),Qc("Verdana","sans-serif"),Qc("Tahoma","sans-serif"),Qc("Georgia","sans-serif"),Qc("Monaco","monospace"),Qc("Andale Mono","monospace");var nn={};nn._root=nn,"undefined"!=typeof Element&&Element.prototype&&Element,"undefined"!=typeof window&&window.kendo&&window;!function(){var i={}}();function ub(i,r){return Object.prototype.hasOwnProperty.call(i,r)}var Bue={toString:function(r){return r}},Nct=function(){function i(){p(this,i)}return v(i,null,[{key:"register",value:function(t){Bue=t}},{key:"toString",value:function(t,e){return Bue.toString(t,e)}}]),i}(),Gue=Nct;!function uce(i,r,t){return(1461*(i+4800+((r-13)/12|0))/4|0)+(367*(r-1-12*((r-13)/12|0))/12|0)-(3*((i+4900+((r-13)/12|0))/100|0)/4|0)+t-32075}(1900,0,-1);function Li(i,r){var t="";if(null!=i)if(Array.isArray(i))for(var e=0;e\r','\n \n \n \n \n ');var Ace,xce,Mce,Rce,Oce,Ice,Nce,Fce,Lce,Pce,Bce,Gce,Vce,Uce,zce,Hce,Kce,jce,Wce,$ce,qce,Xce,Zce,Yce,Qce,Jce,ede,tde,nde,ide,rde,ade,ode,sde,lde,ude,cde,dde,hde,fde,vde,pde,gde,mde,_de,yde,kde,Cde,bde,Sde,wde,Dde,Ede,Tde,Ade,xde,Mde,Rde,Ode,Ide,Nde,Fde,Lde,Pde,Bde,Gde,Vde,Ude,zde,Cht=function(r){var e=r.criteria;return"\n\n").concat(Li(e,function(n){var a=xv.customOperator(n),o=xv.customValue(n);return"')}),"\n")},bht=function(r){return'')},Sht=function(r){var t=r.type,e=r.value;return'')},wht=function(r){var e=r.values;return"\n ").concat(Li(e,function(n){return'\n ')}),"\n ")};function xv(i){return function(r){var e=r.columns,n=r.generators;return'\n\n ').concat(Li(e,function(a){return'\n \n ').concat(n[a.filter](a),"\n \n ")}),"\n")}({ref:i.ref,columns:i.columns,generators:{custom:Cht,dynamic:bht,top:Sht,value:wht}})}function Fht(i,r){}function Lht(i,r){if(1&i&&T(0,Fht,0,0,"ng-template",1),2&i){var t=D();y("ngTemplateOutlet",t.toolbarTemplateRef)("ngTemplateOutletContext",t.context)}}xv.customOperator=function(i){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[i.operator.toLowerCase()]},xv.customValue=function(i){function r(t){return t.replace(/([*?])/g,"~$1")}switch(i.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return r(i.value)+"*";case"endswith":case"doesnotendwith":return"*"+r(i.value);case"contains":case"doesnotcontain":return"*"+r(i.value)+"*";default:return i.value}},xv.dynamicFilterType=function(i){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[i.toLowerCase()]||i},Gue.register({toString:gL});var Pht=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"k-pager-first":!0}},Bht=function(){return{"k-icon":!0,"k-i-seek-w":!0}},Hde=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"":!0}},Ght=function(){return{"k-icon":!0,"k-i-arrow-w":!0}};function Vht(i,r){if(1&i&&(A(0,"option",7),te(1,"... "),x()),2&i){var t=D();y("selected",!1),ie("aria-label",t.pageLabel(t.start-1))}}var Uht=function(r){return{"k-link":!0,"k-state-selected":r}};function zht(i,r){if(1&i&&(A(0,"option",8),te(1),x()),2&i){var t=r.$implicit,e=D();y("value",t.toString())("selected",t===e.currentPage)("ngClass",ot(6,Uht,e.currentPage===t)),ie("aria-label",e.pageLabel(t))("aria-current",e.currentPage===t?"page":void 0),k(1),Pt(" ",t," ")}}function Hht(i,r){if(1&i&&(A(0,"option",9),te(1,"... "),x()),2&i){var t=D();y("selected",!1),ie("aria-label",t.pageLabel(t.end+1))}}function Kht(i,r){if(1&i){var t=xe();A(0,"li")(1,"span",10),Q("click",function(){re(t);var a=D();return a.changePage(a.start-2)})("keydown.enter",function(){re(t);var a=D();return a.changePage(a.start-2)}),te(2,"..."),x()()}if(2&i){var e=D();k(1),ie("aria-label",e.pageLabel(e.start-1))}}var jht=function(r){return{"k-link":!0,"k-state-selected":r,"k-pager-nav":!0}};function Wht(i,r){if(1&i){var t=xe();A(0,"li")(1,"span",11),Q("click",function(){var s=re(t).$implicit;return D().changePage(s-1)})("keydown.enter",function(){var s=re(t).$implicit;return D().changePage(s-1)}),te(2),x()()}if(2&i){var e=r.$implicit,n=D();k(1),y("ngClass",ot(3,jht,n.currentPage===e)),ie("aria-label",n.pageLabel(e)),k(1),Pt(" ",e," ")}}function $ht(i,r){if(1&i){var t=xe();A(0,"li")(1,"span",10),Q("click",function(){re(t);var a=D();return a.changePage(a.end)})("keydown.enter",function(){re(t);var a=D();return a.changePage(a.end)}),te(2,"..."),x()()}if(2&i){var e=D();k(1),ie("aria-label",e.pageLabel(e.end+1))}}var qht=function(){return{"k-pager-numbers":!0,"k-reset":!0}},Xht=function(){return{"k-pager-input":!0,"k-label":!0}},Zht=function(r,t){return{keydown:r,focusout:t}},Yht=function(){return{"k-icon":!0,"k-i-arrow-e":!0}},Qht=function(r){return{"k-link":!0,"k-pager-nav":!0,"k-state-disabled":r,"k-pager-last":!0}},Jht=function(){return{"k-icon":!0,"k-i-seek-e":!0}};function eft(i,r){if(1&i){var t=xe();A(0,"div",4),Q("focusin",function(a){return re(t),D().onInnerFocusIn(a,"start")}),x()}2&i&&(y("tabindex",D().focusTrapTabIndex),ie("aria-hidden",!0))}function tft(i,r){if(1&i&&Wt(0,5),2&i){var t=D();y("ngTemplateOutlet",t.template.templateRef)("ngTemplateOutletContext",t.templateContext)}}function nft(i,r){1&i&&z(0,"kendo-pager-prev-buttons")}function ift(i,r){1&i&&z(0,"kendo-pager-numeric-buttons",8),2&i&&y("buttonCount",D(2).settings.buttonCount)}function rft(i,r){1&i&&z(0,"kendo-pager-input")}function aft(i,r){1&i&&z(0,"kendo-pager-next-buttons")}function oft(i,r){1&i&&z(0,"kendo-pager-info")}function sft(i,r){1&i&&z(0,"kendo-pager-page-sizes",9,10),2&i&&y("pageSizes",D(2).settings.pageSizes)}function lft(i,r){if(1&i&&(Ge(0),T(1,nft,1,0,"kendo-pager-prev-buttons",2),T(2,ift,1,1,"kendo-pager-numeric-buttons",6),T(3,rft,1,0,"kendo-pager-input",2),T(4,aft,1,0,"kendo-pager-next-buttons",2),T(5,oft,1,0,"kendo-pager-info",2),T(6,sft,2,1,"kendo-pager-page-sizes",7),Ve()),2&i){var t=D();k(1),y("ngIf",t.settings.previousNext),k(1),y("ngIf","numeric"===t.settings.type),k(1),y("ngIf","input"===t.settings.type),k(1),y("ngIf",t.settings.previousNext),k(1),y("ngIf",t.settings.info),k(1),y("ngIf",t.settings.pageSizes)}}function uft(i,r){if(1&i){var t=xe();A(0,"div",4),Q("focusin",function(a){return re(t),D().onInnerFocusIn(a,"end")}),x()}2&i&&(y("tabindex",D().focusTrapTabIndex),ie("aria-hidden",!0))}function cft(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",11),Q("resize",function(){return re(t),D().resizeHandler()}),x()}}var dft=["kendoGroupIndicator",""],Kde=function(){return{lastTarget:!0}};function hft(i,r){if(1&i&&(Ge(0),A(1,"div",3),te(2),x(),Ve()),2&i){var t=D();k(1),y("context",Tt(2,Kde)),k(1),Pt(" ",t.text," ")}}var fft=function(r){return{field:r}},vft=function(r,t){return{field:r,type:"groupIndicator",hint:t}};function pft(i,r){if(1&i){var t=xe();A(0,"div",3)(1,"div",4),Q("directionChange",function(s){return re(t),D().directionChange(s)})("remove",function(s){return re(t),D().remove(s)}),x()()}if(2&i){var e=r.$implicit,n=r.index,a=D();y("context",ot(5,fft,e.field)),k(1),y("enableDrag",!0)("context",ln(7,vft,e.field,a.groupTitles[n]))("group",e)("groupTitle",a.groupTitles[n])}}function gft(i,r){1&i&&(A(0,"div",3),te(1,"\xa0"),x()),2&i&&y("context",Tt(1,Kde))}var mft=["kendoGridColGroup",""];function _ft(i,r){1&i&&z(0,"col"),2&i&&ue("k-group-col",!0)}function yft(i,r){1&i&&z(0,"col"),2&i&&ue("k-hierarchy-col",!0)}function kft(i,r){1&i&&z(0,"col"),2&i&&Qe("width",r.$implicit.width,"px")}var rV=["*"];function Cft(i,r){if(1&i){var t=xe();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function bft(i,r){if(1&i&&z(0,"kendo-grid-string-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("menuTabbingService",t.menuTabbingService)}}function Sft(i,r){if(1&i){var t=xe();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function wft(i,r){if(1&i&&z(0,"kendo-grid-numeric-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("format",t.format)("decimals",t.decimals)("spinners",t.spinners)("min",t.min)("max",t.max)("step",t.step)("menuTabbingService",t.menuTabbingService)}}function Dft(i,r){if(1&i){var t=xe();A(0,"kendo-dropdownlist",3),Q("valueChange",function(a){return re(t),D().logicChange(a)}),x()}if(2&i){var e=D();y("filterMenuDropDownLabel",e.filterMenuDropDownLabel)("data",e.logicOperators)("valuePrimitive",!0)("value",null==e.filter?null:e.filter.logic)}}function Eft(i,r){if(1&i&&z(0,"kendo-grid-date-filter-menu-input",4),2&i){var t=D();y("operators",t.operators)("currentFilter",t.secondFilter)("filterService",t.filterService)("column",t.column)("filter",t.filter)("activeView",t.activeView)("bottomView",t.bottomView)("topView",t.topView)("format",t.format)("formatPlaceholder",t.formatPlaceholder)("placeholder",t.placeholder)("min",t.min)("max",t.max)("weekNumber",t.weekNumber)("menuTabbingService",t.menuTabbingService)}}function Tft(i,r){if(1&i){var t=xe();A(0,"li")(1,"input",2,3),Q("change",function(){var s=re(t).$implicit,l=Yt(2);return D().onChange(s.value,l)})("keydown.shift.tab",function(o){return re(t),D().onShiftTab(o)}),x(),A(3,"label",4),te(4),x()()}if(2&i){var e=r.$implicit,n=D();k(1),y("columnLabel",n.columnLabel)("name",n.idPrefix)("checked",n.isSelected(e.value)),ie("id",n.radioId(e.value)),k(2),ie("for",n.radioId(e.value)),k(1),at(e.text)}}var Aft=["resetButton"],xft=["filterButton"];function Mft(i,r){if(1&i&&(Ge(0),Wt(1,9),Ve()),2&i){var t=D();k(1),y("filterService",t.childService)("column",t.column)("filter",t.childFilter)("menuTabbingService",t.menuTabbingService)}}function Rft(i,r){}function Oft(i,r){if(1&i&&T(0,Rft,0,0,"ng-template",11),2&i){var t=D(2);y("ngTemplateOutlet",t.column.filterMenuTemplateRef)("ngTemplateOutletContext",t.templateContext)}}function Ift(i,r){if(1&i&&(Ge(0),T(1,Oft,1,2,null,10),Ve()),2&i){var t=D();k(1),y("ngIf",t.column.filterMenuTemplateRef)}}var jde=["anchor"],Wde=["template"];function Nft(i,r){if(1&i){var t=xe();A(0,"kendo-grid-filter-menu-container",4),Q("close",function(){return re(t),D().close()})("keydown.escape",function(){return re(t),D().close()})("keydown.enter",function(a){return a.stopImmediatePropagation()}),x()}if(2&i){var e=D();y("column",e.column)("filter",e.filter)}}var Fft=function(r){return{"k-grid-filter":!0,"k-state-active":r}};function Lft(i,r){1&i&&z(0,"span",3),2&i&&y("ngClass",D().iconClass)}function Pft(i,r){if(1&i&&(A(0,"div",4),Wt(1,5),z(2,"div"),x()),2&i){var t=D();y("@state",t.contentState),k(1),y("ngTemplateOutlet",t.contentTemplate.templateRef)}}function Bft(i,r){if(1&i){var t=xe();A(0,"kendo-grid-columnmenu-lock",3),Q("keydown.tab",function(a){re(t);var o=D(2);return o.onTab(a,!o.showStick)}),x()}2&i&&y("service",D(2).service)}function Gft(i,r){if(1&i){var t=xe();A(0,"kendo-grid-columnmenu-stick",3),Q("keydown.tab",function(a){return re(t),D(2).onTab(a,!0)}),x()}2&i&&y("service",D(2).service)}function Vft(i,r){if(1&i&&(T(0,Bft,1,1,"kendo-grid-columnmenu-lock",2),T(1,Gft,1,1,"kendo-grid-columnmenu-stick",2)),2&i){var t=D();y("ngIf",t.showLock),k(1),y("ngIf",t.showStick)}}var Uft=["applyButton"];function zft(i,r){if(1&i&&(A(0,"label",3),z(1,"input",4),A(2,"span",5),te(3),x()()),2&i){var t=r.$implicit,e=r.index,n=D();k(1),y("checked",!t.hidden)("disabled",n.isDisabled(t)),ie("data-index",e),k(2),at(t.displayTitle)}}function Hft(i,r){if(1&i){var t=xe();A(0,"div",6)(1,"button",7),Q("click",function(){return re(t),D().cancelChanges()}),te(2),x(),A(3,"button",8,9),Q("keydown.tab",function(a){return re(t),D().onTab(a)})("click",function(){return re(t),D().applyChanges()}),te(5),x()()}if(2&i){var e=D();y("ngClass",e.actionsClass),k(2),at(e.resetText),k(3),at(e.applyText)}}function Kft(i,r){if(1&i){var t=xe();A(0,"kendo-grid-columnlist",2),Q("apply",function(a){return re(t),D().onApply(a)}),x()}if(2&i){var e=D();y("applyText",e.localization.get("columnsApply"))("resetText",e.localization.get("columnsReset"))("columns",e.columns)("autoSync",!1)("allowHideAll",!1)("actionsClass",e.actionsClass)("isLast",e.isLast)("isExpanded",e.expanded)("service",e.service)}}function jft(i,r){if(1&i){var t=xe();A(0,"kendo-grid-filter-menu-container",2),Q("keydown.shift.tab",function(a){return a.stopImmediatePropagation()})("close",function(){return re(t),D().close()}),x()}if(2&i){var e=D();y("column",e.service.column)("menuTabbingService",e.service.menuTabbingService)("filter",e.service.filter)("actionsClass",e.actionsClass)("isLast",e.isLast)("isExpanded",e.expanded)}}var Wft=function(r,t){return{service:r,column:t}};function $ft(i,r){if(1&i&&Wt(0,5),2&i){var t=D(),e=Yt(6);y("ngTemplateOutlet",t.column.columnMenuTemplateRef||t.columnMenuTemplate||e)("ngTemplateOutletContext",ln(2,Wft,t.service,t.column))}}function qft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-sort",10,11),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function Xft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-lock",10,12),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function Zft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-stick",10,13),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)}}function Yft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-position",14,15),2&i){var t=Yt(1),e=D(2);y("showLock",e.hasLock)("showStick",e.hasStick)("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedPosition)}}function Qft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-chooser",16,17),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedColumns)}}function Jft(i,r){if(1&i&&z(0,"kendo-grid-columnmenu-filter",16,18),2&i){var t=Yt(1),e=D(2);y("kendoGridColumnMenuItem",t)("service",e.service)("expanded",e.expandedFilter)}}function evt(i,r){if(1&i){var t=xe();A(0,"kendo-grid-columnmenu-container",6),Q("keydown.escape",function(){return re(t),D().close()})("keydown.enter",function(a){return a.stopImmediatePropagation()}),T(1,qft,2,2,"kendo-grid-columnmenu-sort",7),T(2,Xft,2,2,"kendo-grid-columnmenu-lock",7),T(3,Zft,2,2,"kendo-grid-columnmenu-stick",7),T(4,Yft,2,5,"kendo-grid-columnmenu-position",8),T(5,Qft,2,3,"kendo-grid-columnmenu-chooser",9),T(6,Jft,2,3,"kendo-grid-columnmenu-filter",9),x()}if(2&i){var e=D();k(1),y("ngIf",e.hasSort),k(1),y("ngIf",e.hasLock&&!e.hasPosition),k(1),y("ngIf",e.hasStick&&!e.hasPosition),k(1),y("ngIf",e.hasPosition),k(1),y("ngIf",e.hasColumnChooser),k(1),y("ngIf",e.hasFilter)}}var tvt=function(r){return{"k-state-active":r}},nvt=["dropdown"],$de=function(){return{width:"auto"}};function ivt(i,r){if(1&i){var t=xe();A(0,"kendo-dropdownlist",2,3),Q("valueChange",function(a){return re(t),D().onChange(a)})("keydown",function(a){return re(t),D().dropdownKeydown(a)}),x()}if(2&i){var e=D();y("data",e.operators)("value",e.value)("valuePrimitive",!0)("popupSettings",Tt(4,$de))}}function rvt(i,r){if(1&i){var t=xe();A(0,"button",4),Q("click",function(){return re(t),D().clearClick()})("keydown",function(a){return re(t),D().clearKeydown(a)}),z(1,"span",5),x()}2&i&&y("title",D().clearText)}var avt=["kendoGridFilterCell",""];function ovt(i,r){if(1&i&&(Ge(0),Wt(1,3),Ve()),2&i){var t=D(2);k(1),y("column",t.column)("filter",t.filter)}}function svt(i,r){}function lvt(i,r){if(1&i&&T(0,svt,0,0,"ng-template",4),2&i){var t=D(3);y("ngTemplateOutlet",t.column.filterCellTemplateRef)("ngTemplateOutletContext",t.templateContext)}}function uvt(i,r){if(1&i&&(Ge(0),T(1,lvt,1,2,null,0),Ve()),2&i){var t=D(2);k(1),y("ngIf",t.column.filterCellTemplateRef)}}function cvt(i,r){if(1&i&&(Ge(0)(1,1),T(2,ovt,2,2,"ng-container",2),T(3,uvt,2,1,"ng-container",2),Ve()()),2&i){var t=D();k(1),y("ngSwitch",t.hasTemplate),k(1),y("ngSwitchCase",!1),k(1),y("ngSwitchCase",!0)}}var dvt=["kendoGridFilterRow",""];function hvt(i,r){1&i&&z(0,"td",3),2&i&&ue("k-group-cell",!0)}function fvt(i,r){1&i&&z(0,"td",3),2&i&&ue("k-hierarchy-cell",!0)}function vvt(i,r){if(1&i&&z(0,"td",4),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-grid-header-sticky",t.sticky),y("ngStyle",n.addStickyStyles(t))("ngClass",t.filterClass)("column",t)("filter",n.filter)("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",n.lockedColumnsCount+e),ie("aria-label",n.filterLabel(t))}}var pvt=["kendoGridHeader",""];function gvt(i,r){1&i&&z(0,"th",6)}function mvt(i,r){1&i&&z(0,"th",7),2&i&&y("logicalRowIndex",D().index)("logicalColIndex",0)}function _vt(i,r){if(1&i&&z(0,"kendo-grid-filter-menu",16),2&i){var t=D(3).$implicit,e=D(2);y("column",e.getColumnComponent(t))("filter",e.filter)("tabIndex",e.tabIndex)}}function yvt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",17),2&i){var t=D(3).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)("sort",e.sort)("filter",e.filter)("sortable",e.sortable)("tabIndex",e.tabIndex)}}function kvt(i,r){}function Cvt(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D(3).$implicit;k(1),at(t.displayTitle)}}var GT=function(r,t,e,n){return{templateRef:r,columnIndex:t,column:e,$implicit:n}};function bvt(i,r){if(1&i&&(Ge(0),T(1,_vt,1,3,"kendo-grid-filter-menu",13),T(2,yvt,1,8,"kendo-grid-column-menu",14),T(3,kvt,0,0,"ng-template",15),T(4,Cvt,2,1,"ng-container",11),Ve()),2&i){var t=D(2).$implicit,e=D(2);k(1),y("ngIf",e.showFilterMenu&&e.isFilterable(e.getColumnComponent(t))),k(1),y("ngIf",e.showColumnMenu(t)),k(1),y("templateContext",eu(4,GT,t.headerTemplateRef,t.leafIndex,t,t)),k(1),y("ngIf",!t.headerTemplateRef)}}function Svt(i,r){}function wvt(i,r){if(1&i&&(Ge(0),A(1,"span",24),te(2),x(),Ve()),2&i){var t=D(3).$implicit;k(2),at(t.displayTitle)}}function Dvt(i,r){if(1&i&&(A(0,"span",25),te(1),x()),2&i){var t=D(3).$implicit,e=D(2);k(1),at(e.sortOrder(e.getColumnComponent(t).field))}}function Evt(i,r){if(1&i&&z(0,"kendo-grid-filter-menu",16),2&i){var t=D(3).$implicit,e=D(2);y("column",e.getColumnComponent(t))("filter",e.filter)("tabIndex",e.tabIndex)}}function Tvt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",17),2&i){var t=D(3).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)("sort",e.sort)("filter",e.filter)("sortable",e.sortable)("tabIndex",e.tabIndex)}}function Avt(i,r){if(1&i){var t=xe();Ge(0),A(1,"span",18)(2,"span",19,20),Q("click",function(o){re(t);var s=Yt(3),l=D(2).$implicit,u=D(2);return u.onSortClick(u.getColumnComponent(l),o,s)}),T(4,Svt,0,0,"ng-template",15),T(5,wvt,3,1,"ng-container",11),z(6,"span",21),T(7,Dvt,2,1,"span",22),x(),z(8,"span",23),T(9,Evt,1,3,"kendo-grid-filter-menu",13),T(10,Tvt,1,8,"kendo-grid-column-menu",14),x(),Ve()}if(2&i){var e=D(2).$implicit,n=D(2);k(4),y("templateContext",eu(8,GT,e.headerTemplateRef,e.leafIndex,e,e)),k(1),y("ngIf",!e.headerTemplateRef),k(1),y("ngClass",n.sortIcon(n.getColumnComponent(e).field)),ie("aria-label",n.sortableLabel),k(1),y("ngIf",n.showSortNumbering(n.getColumnComponent(e))),k(1),y("innerHtml",n.sortStatus(n.getColumnComponent(e)),LS),k(1),y("ngIf",n.showFilterMenu&&n.isFilterable(n.getColumnComponent(e))),k(1),y("ngIf",n.showColumnMenu(e))}}function xvt(i,r){if(1&i&&(Ge(0),z(1,"input",26),Ve()),2&i){var t=D(4);k(1),ie("id",t.selectAllCheckboxId())("aria-label",t.selectAllCheckboxLabel)}}function Mvt(i,r){if(1&i&&z(0,"span",27),2&i){var t=D(2).$implicit,e=D(2);y("column",t)("columns",e.columns)}}var Rvt=function(r,t,e,n){return{field:r,type:"column",column:t,hint:e,lastColumn:n}};function Ovt(i,r){if(1&i){var t=xe();A(0,"th",10),Q("keydown",function(c){re(t);var d=D().$implicit,h=D(2);return h.onHeaderKeydown(h.getColumnComponent(d),c)}),T(1,bvt,5,9,"ng-container",11),T(2,Avt,11,13,"ng-container",11),T(3,xvt,2,2,"ng-container",11),T(4,Mvt,1,2,"span",12),x()}if(2&i){var e=D(),n=e.$implicit,a=e.index,o=e.last,s=D().index,l=D();ue("k-filterable",l.showFilterMenu&&l.isFilterable(l.getColumnComponent(n))||l.showColumnMenu(n))("k-first",l.isFirstOnRow(l.getColumnComponent(n),a))("k-grid-header-sticky",n.sticky),y("logicalRowIndex",s)("logicalColIndex",l.logicalColumnIndex(n))("headerLabelText",n.title||l.getColumnComponent(n).field)("colSpan",n.colspan)("rowSpan",n.rowspan(l.totalColumnLevels))("enableDrag",l.shouldActivate(n))("context",eu(22,Rvt,l.getColumnComponent(n).field,n,n.title||l.getColumnComponent(n).field,o&&0===a))("ngClass",n.headerClass)("ngStyle",n.sticky?l.addStickyStyles(n):n.headerStyle),ie("aria-sort",l.sortState(l.getColumnComponent(n)))("rowspan",n.rowspan(l.totalColumnLevels))("colspan",n.colspan),k(1),y("ngIf",!l.isSortable(l.getColumnComponent(n))),k(1),y("ngIf",l.isSortable(l.getColumnComponent(n))),k(1),y("ngIf",l.isCheckboxColumn(n)&&!n.headerTemplateRef&&n.showSelectAll),k(1),y("ngIf",l.resizable)}}function Ivt(i,r){if(1&i&&z(0,"kendo-grid-column-menu",30),2&i){var t=D(2).$implicit,e=D(2);y("standalone",!1)("settings",e.columnMenuSettings)("column",t)("columnMenuTemplate",e.columnMenuTemplate)}}function Nvt(i,r){}function Fvt(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D(2).$implicit;k(1),at(t.displayTitle)}}function Lvt(i,r){if(1&i&&z(0,"span",27),2&i){var t=D(2).$implicit,e=D(2);y("column",t)("columns",e.columns)}}var Pvt=function(r,t,e){return{type:"columnGroup",column:r,hint:t,lastColumn:e}};function Bvt(i,r){if(1&i&&(A(0,"th",28),T(1,Ivt,1,4,"kendo-grid-column-menu",29),T(2,Nvt,0,0,"ng-template",15),T(3,Fvt,2,1,"ng-container",11),T(4,Lvt,1,2,"span",12),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=t.last,o=D().index,s=D();ue("k-first",s.isFirstOnRow(s.getColumnComponent(e),n))("k-filterable",s.showColumnMenu(e))("k-grid-content-sticky",e.sticky),y("logicalRowIndex",o)("logicalColIndex",s.logicalColumnIndex(e))("rowSpan",e.rowspan(s.totalColumnLevels))("colSpan",e.colspan)("headerLabelText",e.title||s.getColumnComponent(e).field)("enableDrag",s.shouldActivate(e))("context",va(21,Pvt,e,e.title,a&&0===n))("ngClass",e.headerClass)("ngStyle",e.headerStyle),ie("rowspan",e.rowspan(s.totalColumnLevels))("colspan",e.colspan),k(1),y("ngIf",s.showColumnMenu(e)),k(1),y("templateContext",eu(25,GT,e.headerTemplateRef,s.lockedColumnsCount+n,e,e)),k(1),y("ngIf",!e.headerTemplateRef),k(1),y("ngIf",s.resizable)}}function Gvt(i,r){if(1&i&&(Ge(0),T(1,Ovt,5,27,"th",8),T(2,Bvt,5,30,"th",9),Ve()),2&i){var t=r.$implicit,e=D(2);k(1),y("ngIf",!e.isColumnGroupComponent(t)),k(1),y("ngIf",e.isColumnGroupComponent(t))}}function Vvt(i,r){if(1&i&&(A(0,"tr",2),T(1,gvt,1,0,"th",3),T(2,mvt,1,2,"th",4),T(3,Gvt,3,2,"ng-container",5),x()),2&i){var t=r.index,e=D();y("logicalRowIndex",t)("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount),k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsForLevel(t))("ngForTrackBy",e.trackByIndex)}}function Uvt(i,r){if(1&i&&z(0,"tr",31),2&i){var t=D();y("columns",t.leafColumns)("filter",t.filter)("groups",t.groups)("detailTemplate",t.detailTemplate)("lockedColumnsCount",t.lockedColumnsCount)("logicalRowIndex",t.totalColumnLevels+1)("logicalSlaveRow",t.lockedColumnsCount>0)("logicalCellsCount",t.columns.length)("logicalSlaveCellsCount",t.unlockedColumnsCount)}}var zvt=["kendoGridCell",""];function Hvt(i,r){}function Kvt(i,r){if(1&i&&T(0,Hvt,0,0,"ng-template",5),2&i){var t=D(3);y("ngTemplateOutlet",t.column.templateRef)("ngTemplateOutletContext",t.templateContext)}}function jvt(i,r){if(1&i&&(Ge(0),te(1),ja(2,"valueOf"),Ve()),2&i){var t=r.$implicit,e=D(4);k(1),Pt(" ",iw(2,1,e.dataItem,t.field,t.format)," ")}}function Wvt(i,r){if(1&i&&(Ge(0),T(1,jvt,3,5,"ng-container",6),Ve()),2&i){var t=D(3);k(1),y("ngForOf",t.childColumns)}}function $vt(i,r){if(1&i&&(Ge(0),te(1),ja(2,"valueOf"),Ve()),2&i){var t=D(3);k(1),at(iw(2,1,t.dataItem,t.column.field,t.column.format))}}function qvt(i,r){if(1&i&&(Ge(0),z(1,"input",7),Ve()),2&i){var t=D(3);k(1),y("kendoGridSelectionCheckbox",t.rowIndex),ie("id",t.selectionCheckboxId)("aria-label",t.selectionCheckboxLabel)}}function Xvt(i,r){if(1&i&&(Ge(0),T(1,Kvt,1,2,null,4),T(2,Wvt,2,1,"ng-container",4),T(3,$vt,3,5,"ng-container",4),T(4,qvt,2,3,"ng-container",4),Ve()),2&i){var t=D(2);k(1),y("ngIf",t.column.templateRef),k(1),y("ngIf",t.isSpanColumn),k(1),y("ngIf",t.isBoundColumn),k(1),y("ngIf",t.isCheckboxColumn&&!t.isNew)}}function Zvt(i,r){}var Yvt=function(r){return{$implicit:r}};function Qvt(i,r){if(1&i&&T(0,Zvt,0,0,"ng-template",5),2&i){var t=D(3);y("ngTemplateOutlet",t.loadingTemplate)("ngTemplateOutletContext",ot(2,Yvt,t.column))}}function Jvt(i,r){1&i&&z(0,"div",9)}function ept(i,r){if(1&i&&(T(0,Qvt,1,4,null,4),T(1,Jvt,1,0,"div",8)),2&i){var t=D(2);y("ngIf",t.loadingTemplate),k(1),y("ngIf",!t.loadingTemplate)}}function tpt(i,r){if(1&i&&(Ge(0),T(1,Xvt,5,4,"ng-container",2),T(2,ept,2,2,"ng-template",null,3,$n),Ve()),2&i){var t=Yt(3),e=D();k(1),y("ngIf",!e.showLoading)("ngIfElse",t)}}function npt(i,r){}function ipt(i,r){if(1&i&&T(0,npt,0,0,"ng-template",5),2&i){var t=D(2);y("ngTemplateOutlet",t.column.editTemplateRef)("ngTemplateOutletContext",t.editTemplateContext)}}function rpt(i,r){if(1&i&&z(0,"kendo-numerictextbox",14),2&i){var t=D(3);y("format",t.format)("formControl",t.formGroup.get(t.column.field))}}function apt(i,r){if(1&i&&z(0,"kendo-datepicker",14),2&i){var t=D(3);y("format",t.format)("formControl",t.formGroup.get(t.column.field))}}function opt(i,r){if(1&i&&z(0,"input",15),2&i){var t=D(3);y("formControl",t.formGroup.get(t.column.field))}}function spt(i,r){if(1&i&&z(0,"input",16),2&i){var t=D(3);y("formControl",t.formGroup.get(t.column.field))}}function lpt(i,r){1&i&&(Ge(0,0),T(1,rpt,1,2,"kendo-numerictextbox",11),T(2,apt,1,2,"kendo-datepicker",11),T(3,opt,1,1,"input",12),T(4,spt,1,1,"input",13),Ve()),2&i&&(y("ngSwitch",D(2).column.editor),k(1),y("ngSwitchCase","numeric"),k(1),y("ngSwitchCase","date"),k(1),y("ngSwitchCase","boolean"))}function upt(i,r){if(1&i&&(Ge(0),T(1,ipt,1,2,null,4),T(2,lpt,5,4,"ng-container",10),Ve()),2&i){var t=D();k(1),y("ngIf",t.column.editTemplateRef),k(1),y("ngIf",!t.column.editTemplateRef)}}var cpt=["kendoGridGroupHeader",""];function dpt(i,r){1&i&&z(0,"td",3)}function hpt(i,r){if(1&i&&(Ge(0),T(1,dpt,1,0,"td",2),Ve()),2&i){var t=D();k(1),y("ngForOf",t.prefixGroupCell(t.item))}}function fpt(i,r){if(1&i&&(Ge(0),te(1),ja(2,"valueOf"),Ve()),2&i){var t=D(3);k(1),Jl(" ",t.groupTitle(t.item),": ",iw(2,2,t.item.data,"value",t.formatForGroup(t.item))," ")}}function vpt(i,r){}var ppt=function(r,t){return{"k-i-collapse":r,"k-i-expand":t}},gpt=function(r,t,e,n,a,o,s,l){return{templateRef:r,group:t,aggregates:e,value:n,field:a,index:o,expanded:s,$implicit:l}};function mpt(i,r){if(1&i){var t=xe();Ge(0),A(1,"a",6),Q("click",function(){re(t);var a=D(2);return a.toggleGroup(a.item)}),x(),T(2,fpt,3,6,"ng-container",0),T(3,vpt,0,0,"ng-template",7),Ve()}if(2&i){var e=D(2);k(1),y("ngClass",ln(5,ppt,e.isExpanded,!e.isExpanded)),ie("title",e.groupButtonTitle)("aria-label",e.groupButtonTitle),k(1),y("ngIf",!e.groupHeaderTemplate(e.item)),k(1),y("templateContext",function A5(i,r,t,e,n,a,o,s,l,u,c){var d=za()+i,h=Oe(),f=Es(h,d,t,e,n,a);return Es(h,d+4,o,s,l,u)||f?Zl(h,d+8,c?r.call(c,t,e,n,a,o,s,l,u):r(t,e,n,a,o,s,l,u)):q_(h,d+8)}(8,gpt,e.groupHeaderTemplate(e.item),e.item.data,null==e.item.data?null:e.item.data.aggregates,null==e.item.data?null:e.item.data.value,null==e.item.data?null:e.item.data.field,e.item.index,e.isExpanded,e.item.data))}}function _pt(i,r){if(1&i&&(A(0,"td",4)(1,"p",5),T(2,mpt,4,17,"ng-container",0),x()()),2&i){var t=D();y("logicalRowIndex",t.logicalRowIndex)("logicalColIndex",0)("logicalSlaveCell",t.skipGroupDecoration)("groupItem",t.item)("colSpan",t.logicalColSpan()),ie("colspan",t.groupSpan(t.item))("role",t.ariaRole())("aria-expanded",t.isExpanded),k(2),y("ngIf",!t.skipGroupDecoration)}}function ypt(i,r){}var kpt=function(r,t,e,n,a,o){return{group:r,aggregates:t,value:e,field:n,index:a,$implicit:o}};function Cpt(i,r){if(1&i&&T(0,ypt,0,0,"ng-template",10),2&i){var t=D().$implicit,e=D(2);y("ngTemplateOutlet",t.groupHeaderColumnTemplateRef)("ngTemplateOutletContext",ay(2,kpt,e.item.data,null==e.item.data?null:e.item.data.aggregates,null==e.item.data?null:e.item.data.value,null==e.item.data?null:e.item.data.field,e.item.index,e.item.data))}}function bpt(i,r){if(1&i&&(A(0,"td",9),T(1,Cpt,1,9,null,0),x()),2&i){var t=r.$implicit,e=r.index,n=D(2);y("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",e+1)("logicalSlaveCell",!1)("groupItem",n.item)("colSpan",1),k(1),y("ngIf",t.groupHeaderColumnTemplateRef)}}function Spt(i,r){if(1&i&&(Ge(0),T(1,bpt,2,6,"td",8),Ve()),2&i){var t=D();k(1),y("ngForOf",t.groupHeaderColumns)}}var wpt=["kendoGridTableBody",""];function Dpt(i,r){1&i&&z(0,"td",8)}function Ept(i,r){if(1&i&&(Ge(0),T(1,Dpt,1,0,"td",7),Ve()),2&i){var t=D(2);k(1),y("ngForOf",t.groups)}}function Tpt(i,r){1&i&&z(0,"td",9),2&i&&y("logicalRowIndex",D(2).addRowLogicalIndex())("logicalColIndex",0)}function Apt(i,r){if(1&i&&z(0,"td",10),2&i){var t=r.$implicit,e=r.index,n=D(2);Qe("left",t.sticky?"0":void 0),ue("k-grid-content-sticky",t.sticky),y("rowIndex",-1)("columnIndex",n.lockedColumnsCount+e)("isNew",!0)("column",t)("dataItem",n.newDataItem)("ngClass",t.cssClass)("ngStyle",t.sticky?n.addStickyColumnStyles(t):t.style)("logicalRowIndex",n.addRowLogicalIndex())("logicalColIndex",n.logicalColIndex(t))("colSpan",t.colspan),ie("colspan",t.colspan)}}function xpt(i,r){if(1&i&&(Ge(0),A(1,"tr",4),T(2,Ept,2,1,"ng-container",0),T(3,Tpt,1,2,"td",5),T(4,Apt,1,15,"td",6),x(),Ve()),2&i){var t=D();k(1),y("logicalRowIndex",t.addRowLogicalIndex())("logicalSlaveRow",t.lockedColumnsCount>0)("logicalCellsCount",t.columns.length)("logicalSlaveCellsCount",t.unlockedColumnsCount),k(1),y("ngIf",!t.skipGroupDecoration),k(1),y("ngIf",null==t.detailTemplate?null:t.detailTemplate.templateRef),k(1),y("ngForOf",t.columns)("ngForTrackBy",t.trackByColumns)}}function Mpt(i,r){}var Rpt=function(r){return{templateRef:r}};function Opt(i,r){if(1&i&&T(0,Mpt,0,0,"ng-template",12),2&i){var t=D(2);y("templateContext",ot(1,Rpt,null==t.noRecordsTemplate?null:t.noRecordsTemplate.templateRef))}}function Ipt(i,r){if(1&i&&(Ge(0),te(1),Ve()),2&i){var t=D(2);k(1),Pt(" ",t.noRecordsText," ")}}function Npt(i,r){if(1&i&&(A(0,"tr",11)(1,"td"),T(2,Opt,1,3,null,0),T(3,Ipt,2,1,"ng-container",0),x()()),2&i){var t=D();k(1),ie("colspan",t.colSpan),k(1),y("ngIf",null==t.noRecordsTemplate?null:t.noRecordsTemplate.templateRef),k(1),y("ngIf",!(null!=t.noRecordsTemplate&&t.noRecordsTemplate.templateRef))}}function Fpt(i,r){if(1&i&&z(0,"tr",17),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();y("columns",a.columns)("groups",a.groups)("item",e)("hasDetails",!(null==a.detailTemplate||!a.detailTemplate.templateRef))("skipGroupDecoration",a.skipGroupDecoration)("hasGroupHeaderColumn",a.hasGroupHeaderColumn)("groupHeaderColumns",a.groupHeaderColumns)("rowIndex",n+1)("totalColumnsCount",a.totalColumnsCount)("logicalRowIndex",a.logicalRowIndex(n))("logicalSlaveRow",a.lockedColumnsCount>0)("logicalCellsCount",a.columns.length)("logicalSlaveCellsCount",a.groupHeaderSlaveCellsCount)}}function Lpt(i,r){1&i&&z(0,"td",8)}function Ppt(i,r){if(1&i&&(Ge(0),T(1,Lpt,1,0,"td",7),Ve()),2&i){var t=D(3);k(1),y("ngForOf",t.groups)}}function Bpt(i,r){if(1&i){var t=xe();A(0,"a",23),Q("click",function(){re(t);var o=D(3).$implicit;return D().toggleRow(o.index,o.data)}),x()}if(2&i){var e=D(3).$implicit,n=D();y("ngClass",n.detailButtonStyles(e)),ie("title",n.detailButtonTitle(e))("aria-label",n.detailButtonTitle(e))}}function Gpt(i,r){if(1&i&&(A(0,"td",21),T(1,Bpt,1,3,"a",22),x()),2&i){var t=D(2),e=t.index,n=t.$implicit,a=D();y("logicalRowIndex",a.logicalRowIndex(e))("logicalColIndex",0)("dataRowIndex",n.index)("dataItem",n.data)("detailExpandCell",!0),k(1),y("ngIf",a.detailTemplate.showIf(n.data,n.index))}}function Vpt(i,r){if(1&i&&z(0,"td",24),2&i){var t=r.$implicit,e=r.index,n=D(2),a=n.$implicit,o=n.index,s=D();ue("k-grid-content-sticky",t.sticky)("k-touch-action-none",s.isSelectable()&&s.selectable.drag)("k-touch-action-auto",!(s.isSelectable()&&s.selectable.drag))("k-grid-edit-cell",s.isEditingCell(a.index,t))("k-state-selected",s.isSelectable&&s.cellSelectionService.isCellSelected(a,t)),y("rowIndex",a.index)("columnIndex",s.lockedColumnsCount+e)("column",t)("dataItem",a.data)("isLoading",s.isLoading)("isVirtual",s.isVirtual)("loadingTemplate",s.cellLoadingTemplate)("logicalRowIndex",s.logicalRowIndex(o))("logicalColIndex",s.logicalColIndex(t))("dataRowIndex",a.index)("dataItem",a.data)("colIndex",e)("colSpan",t.colspan)("ngClass",t.cssClass)("ngStyle",t.sticky?s.addStickyColumnStyles(t):t.style),ie("data-kendo-grid-column-index",s.lockedColumnsCount+e)("aria-selected",s.isSelectable()?s.isAriaSelected(a,t):void 0)("colspan",t.colspan)}}var qde=function(r,t){return{dataItem:r,index:t}};function Upt(i,r){if(1&i&&(A(0,"tr",18),T(1,Ppt,2,1,"ng-container",0),T(2,Gpt,2,6,"td",19),T(3,Vpt,1,28,"td",20),x()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();ue("k-grid-row-sticky",!!a.rowSticky&&a.rowSticky(ln(22,qde,e.data,e.index)))("k-alt",a.isOdd(e))("k-master-row",null==a.detailTemplate?null:a.detailTemplate.templateRef)("k-grid-edit-row",a.isEditingRow(e.index))("k-state-selected",a.isSelectable()&&a.isRowSelected(e)),y("dataRowIndex",e.index)("dataItem",e.data)("logicalRowIndex",a.logicalRowIndex(n))("logicalSlaveRow",a.lockedColumnsCount>0)("logicalCellsCount",a.columns.length)("logicalSlaveCellsCount",a.unlockedColumnsCount)("ngClass",a.rowClass(ln(25,qde,e.data,e.index))),ie("data-kendo-grid-item-index",e.index),k(1),y("ngIf",!a.skipGroupDecoration),k(1),y("ngIf",null==a.detailTemplate?null:a.detailTemplate.templateRef),k(1),y("ngForOf",a.columns)("ngForTrackBy",a.trackByColumns)}}function zpt(i,r){1&i&&z(0,"td",30)}function Hpt(i,r){}var Kpt=function(r,t,e){return{dataItem:r,rowIndex:t,$implicit:e}};function jpt(i,r){if(1&i&&(A(0,"tr",25),T(1,zpt,1,0,"td",26),z(2,"td",27),A(3,"td",28),T(4,Hpt,0,0,"ng-template",29),x()()),2&i){var t=D(),e=t.$implicit,n=t.index,a=D();ue("k-alt",a.isOdd(e)),y("dataRowIndex",e.index)("dataItem",e.data)("logicalRowIndex",a.logicalRowIndex(n)+1)("logicalSlaveRow",!1)("logicalCellsCount",1),k(1),y("ngForOf",a.groups),k(2),y("logicalRowIndex",a.logicalRowIndex(n)+1)("logicalColIndex",0)("dataRowIndex",e.index)("dataItem",e.data)("colIndex",0)("colSpan",a.allColumnsSpan+1),ie("colspan",a.columnsSpan),k(1),y("ngTemplateOutlet",a.detailTemplate.templateRef)("ngTemplateOutletContext",va(17,Kpt,e.data,e.index,e.data))}}function Wpt(i,r){1&i&&z(0,"td",30)}function $pt(i,r){if(1&i&&(Ge(0),T(1,Wpt,1,0,"td",26),Ve()),2&i){var t=D(3);k(1),y("ngForOf",t.groups)}}function qpt(i,r){if(1&i&&z(0,"td",9),2&i){var t=D(2).index;y("logicalRowIndex",D().logicalRowIndex(t))("logicalColIndex",0)}}function Xpt(i,r){}var Zpt=function(r,t,e,n,a,o){return{templateRef:r,group:t,field:e,column:n,aggregates:a,$implicit:o}};function Ypt(i,r){if(1&i&&(A(0,"td",33),T(1,Xpt,0,0,"ng-template",12),x()),2&i){var s,t=r.$implicit,e=D(2),n=e.index,a=e.$implicit,o=D();y("logicalRowIndex",o.logicalRowIndex(n))("logicalColIndex",o.logicalColIndex(t)),ie("data-skip",o.skipGroupDecoration),k(1),y("templateContext",ay(4,Zpt,t.groupFooterTemplateRef,a.data,t.field,t,null==(s=a.data)?null:s.aggregates,null==(s=a.data)?null:s.aggregates))}}function Qpt(i,r){if(1&i&&(A(0,"tr",31),T(1,$pt,2,1,"ng-container",0),T(2,qpt,1,2,"td",5),T(3,Ypt,2,11,"td",32),x()),2&i){var t=D().index,e=D();y("logicalRowIndex",e.logicalRowIndex(t))("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.unlockedColumnsCount),k(1),y("ngIf",!e.skipGroupDecoration),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.footerColumns)("ngForTrackBy",e.trackByColumns)}}function Jpt(i,r){if(1&i&&(Ge(0),T(1,Fpt,1,13,"tr",13),T(2,Upt,4,28,"tr",14),T(3,jpt,5,21,"tr",15),T(4,Qpt,4,8,"tr",16),Ve()),2&i){var t=r.$implicit,e=D();k(1),y("ngIf",e.isGroup(t)&&e.isParentGroupExpanded(t)&&e.showGroupHeader(t)),k(1),y("ngIf",e.isDataItem(t)&&(!t.group||e.isDataItemInExpandedGroup(t))),k(1),y("ngIf",e.isDataItem(t)&&(!t.group||e.isDataItemInExpandedGroup(t))&&(null==e.detailTemplate?null:e.detailTemplate.templateRef)&&e.detailTemplate.showIf(t.data,t.index)&&e.isExpanded(t)),k(1),y("ngIf",e.isFooter(t)&&t.group&&(e.isFooterItemInExpandedGroup(t)||e.showGroupFooters&&e.isParentGroupExpanded(t.group))&&!t.data.hideFooter)}}function egt(i,r){if(1&i){var t=xe();A(0,"kendo-resize-sensor",34),Q("resize",function(){return re(t),D().resizeHandler()}),x()}}var tgt=["container"],ngt=["lockedContainer"],igt=["lockedTable"],rgt=["table"],agt=function(r,t,e,n){return{keydown:r,scroll:t,mousewheel:e,DOMMouseScroll:n}};function ogt(i,r){if(1&i&&(A(0,"div",11,12)(2,"div",3)(3,"table",13,14),z(5,"colgroup",6)(6,"tbody",15),x(),z(7,"kendo-resize-sensor"),x(),A(8,"div",9),z(9,"div"),x()()),2&i){var t=D();Qe("width",t.lockedWidth,"px"),y("kendoEventsOutsideAngular",eu(28,agt,t.lockedKeydown,t.lockedScroll,t.lockedMousewheel,t.lockedMousewheel))("scope",t),k(3),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(2),y("groups",t.groups)("columns",t.lockedLeafColumns)("detailTemplate",t.detailTemplate),k(1),y("groups",t.groups)("isLocked",!0)("data",t.data)("noRecordsText","")("columns",t.lockedLeafColumns)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("showGroupFooters",t.showFooter)("skip",t.skip)("selectable",t.selectable)("trackBy",t.trackBy)("filterable",t.filterable)("rowClass",t.rowClass)("isLoading",t.loading)("isVirtual",t.isVirtual)("cellLoadingTemplate",t.cellLoadingTemplate),k(3),Qe("height",t.totalHeight,"px")}}function sgt(i,r){1&i&&z(0,"kendo-resize-sensor")}function lgt(i,r){1&i&&z(0,"kendo-resize-sensor")}function ugt(i,r){if(1&i&&(A(0,"div",16),z(1,"div"),x()),2&i){var t=D();k(1),Qe("width",t.totalWidth,"px")}}var kb=function(){return[]},cgt=["kendoGridFooter",""];function dgt(i,r){1&i&&z(0,"td",4),2&i&&ue("k-group-cell",!0)}function hgt(i,r){1&i&&z(0,"td",4),2&i&&ue("k-hierarchy-cell",!0)}function fgt(i,r){}function vgt(i,r){if(1&i&&(A(0,"td",5),T(1,fgt,0,0,"ng-template",6),x()),2&i){var t=r.$implicit,e=r.index,n=D();ue("k-grid-footer-sticky",t.sticky),y("logicalRowIndex",n.logicalRowIndex)("logicalColIndex",n.logicalColumnIndex(t))("ngClass",t.footerClass)("ngStyle",t.sticky?n.addStickyStyles(t):t.footerStyle),k(1),y("templateContext",eu(7,GT,t.footerTemplateRef,n.lockedColumnsCount+e,t,t))}}var pgt=["kendoGridLoading",""];function ggt(i,r){if(1&i&&(Ge(0),A(1,"span",1),te(2),x(),z(3,"div",2)(4,"div",3),Ve()),2&i){var t=D();k(2),at(t.loadingText)}}function mgt(i,r){}function _gt(i,r){if(1&i&&T(0,mgt,0,0,"ng-template",4),2&i){var t=D();y("ngTemplateOutlet",null==t.loadingTemplate?null:t.loadingTemplate.templateRef)}}var ygt=["lockedHeader"],kgt=["header"],Cgt=["ariaRoot"],bgt=["footer"];function Sgt(i,r){1&i&&z(0,"kendo-grid-toolbar",11)}function wgt(i,r){if(1&i){var t=xe();A(0,"kendo-pager",12),Q("pageChange",function(a){return re(t),D().notifyPageChange("pager",a)}),x()}if(2&i){var e=D();y("tabindex",e.navigable?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("options",e.pageable),ie("role",e.navigable?"navigation":void 0)}}function Dgt(i,r){if(1&i){var t=xe();A(0,"kendo-grid-group-panel",13),Q("change",function(a){return re(t),D().groupChange.emit(a)}),x()}if(2&i){var e=D();y("text",e.groupableEmptyText)("groups",e.group)}}function Egt(i,r){if(1&i&&(A(0,"div",25,26)(2,"table",27),z(3,"colgroup",22)(4,"thead",28),x()()),2&i){var t=D(3);Qe("width",t.lockedWidth,"px"),k(2),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(1),y("columns",t.lockedLeafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("resizable",t.resizable)("scrollable",!0)("columns",t.lockedColumns)("totalColumnLevels",t.totalColumnLevels)("sort",t.sort)("groups",t.group)("filter",t.filter)("filterable",t.filterable)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("sortable",t.sortable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0")}}function Tgt(i,r){if(1&i&&(A(0,"div",29),z(1,"div"),x()),2&i){var t=D(3);k(1),Qe("width",t.columnsContainer.unlockedWidth,"px")}}function Agt(i,r){if(1&i&&(A(0,"div",17),T(1,Egt,5,24,"div",18),A(2,"div",19,20)(4,"table",21),z(5,"colgroup",22)(6,"thead",23),x(),T(7,Tgt,2,2,"div",24),x()()),2&i){var t=D(2);Qe("padding",t.headerPadding),k(1),y("ngIf",t.isLocked),k(1),y("kendoGridResizableContainer",t.lockedLeafColumns.length>0)("lockedWidth",t.lockedWidth+t.scrollbarWidth+2),k(2),Qe("width",t.nonLockedWidth,"px"),y("virtualColumns",t.virtualColumns),k(1),y("columns",t.headerLeafColumns)("groups",t.isLocked?Tt(29,kb):t.group)("detailTemplate",t.detailTemplate),k(1),y("resizable",t.resizable)("scrollable",!0)("columns",t.headerColumns)("totalColumnLevels",t.totalColumnLevels)("sort",t.sort)("filter",t.filter)("filterable",t.filterable)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("groups",t.isLocked?Tt(30,kb):t.group)("sortable",t.sortable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("lockedColumnsCount",t.lockedLeafColumns.length)("totalColumnsCount",t.leafColumns.length)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0"),k(1),y("ngIf",t.virtualColumns)}}function xgt(i,r){if(1&i&&(A(0,"div",37)(1,"table",27),z(2,"colgroup",35)(3,"tfoot",38),x()()),2&i){var t=D(3);Qe("width",t.lockedWidth,"px"),k(1),Qe("width",t.lockedWidth,"px"),y("locked",!0),k(1),y("columns",t.lockedLeafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("scrollable",!0)("groups",t.group)("columns",t.lockedLeafColumns)("detailTemplate",t.detailTemplate)("logicalRowIndex",t.ariaRowCount)}}function Mgt(i,r){if(1&i&&(A(0,"div",30),T(1,xgt,4,13,"div",31),A(2,"div",32,33)(4,"table",34),z(5,"colgroup",35)(6,"tfoot",36),x()()()),2&i){var t=D(2);Qe("padding",t.headerPadding),k(1),y("ngIf",t.lockedLeafColumns.length),k(1),y("kendoGridResizableContainer",t.lockedLeafColumns.length>0)("lockedWidth",t.lockedWidth+t.scrollbarWidth+3),k(2),Qe("width",t.nonLockedWidth,"px"),k(1),y("columns",t.nonLockedLeafColumns)("groups",t.isLocked?Tt(16,kb):t.group)("detailTemplate",t.detailTemplate),k(1),y("logicalRowIndex",t.ariaRowCount)("scrollable",!0)("groups",t.isLocked?Tt(17,kb):t.group)("columns",t.nonLockedLeafColumns)("lockedColumnsCount",t.lockedLeafColumns.length)("detailTemplate",t.detailTemplate)}}function Rgt(i,r){if(1&i){var t=xe();Ge(0),T(1,Agt,8,31,"div",14),A(2,"kendo-grid-list",15),Q("pageChange",function(a){return re(t),D().notifyPageChange("list",a)})("scrollBottom",function(){return re(t),D().notifyScrollBottom()})("contentScroll",function(a){return re(t),D().contentScroll.emit(a)}),x(),T(3,Mgt,7,18,"div",16),Ve()}if(2&i){var e=D();k(1),y("ngIf",!e.hideHeader),k(1),y("data",e.view)("rowHeight",e.rowHeight)("detailRowHeight",e.detailRowHeight)("total",e.totalCount)("take",e.pageSize)("groups",e.group)("groupable",e.groupable)("skip",e.skip)("trackBy",e.trackBy)("columns",e.columnsContainer)("selectable",e.selectable)("filterable",e.filterable)("detailTemplate",e.detailTemplate)("noRecordsTemplate",e.noRecordsTemplate)("rowClass",e.rowClass)("rowSticky",e.rowSticky)("loading",e.loading)("isVirtual",e.isVirtual)("cellLoadingTemplate",null==e.cellLoadingTemplate?null:e.cellLoadingTemplate.templateRef)("loadingTemplate",null==e.loadingTemplate?null:e.loadingTemplate.templateRef)("virtualColumns",e.virtualColumns)("enableDrag",e.marqueeSelection),k(1),y("ngIf",e.showFooter)}}function Ogt(i,r){if(1&i&&z(0,"thead",42),2&i){var t=D(2);y("resizable",t.resizable)("scrollable",!1)("columns",t.visibleColumns)("totalColumnLevels",t.totalColumnLevels)("groups",t.group)("groupable",t.showGroupPanel)("reorderable",t.reorderable)("sort",t.sort)("sortable",t.sortable)("filter",t.filter)("filterable",t.filterable)("columnMenu",t.columnMenuOptions)("columnMenuTemplate",t.columnMenuTemplate)("detailTemplate",t.detailTemplate)("tabIndex",t.navigable?"-1":"0")}}function Igt(i,r){if(1&i&&z(0,"tfoot",43),2&i){var t=D(2);y("scrollable",!1)("logicalRowIndex",t.ariaRowCount)("groups",t.group)("columns",t.leafColumns)("detailTemplate",t.detailTemplate)}}function Ngt(i,r){if(1&i&&(Ge(0),A(1,"table"),z(2,"colgroup",35),T(3,Ogt,1,15,"thead",39),z(4,"tbody",40),T(5,Igt,1,5,"tfoot",41),x(),Ve()),2&i){var t=D();k(1),Qe("table-layout",t.resizable?"fixed":null),k(1),y("columns",t.leafColumns)("groups",t.group)("detailTemplate",t.detailTemplate),k(1),y("ngIf",!t.hideHeader),k(1),y("isLoading",t.loading)("groups",t.group)("data",t.view)("skip",t.skip)("columns",t.leafColumns)("selectable",t.selectable)("filterable",t.filterable)("noRecordsTemplate",t.noRecordsTemplate)("detailTemplate",t.detailTemplate)("showGroupFooters",t.showGroupFooters)("trackBy",t.trackBy)("rowClass",t.rowClass)("enableDrag",t.marqueeSelection),k(1),y("ngIf",t.showFooter)}}function Fgt(i,r){1&i&&z(0,"div",44),2&i&&y("loadingTemplate",D().loadingTemplate)}function Lgt(i,r){if(1&i){var t=xe();A(0,"kendo-pager",45),Q("pageChange",function(a){return re(t),D().notifyPageChange("pager",a)}),x()}if(2&i){var e=D();y("tabindex",e.navigable?"0":"-1")("template",e.pagerTemplate)("pageSize",e.pageSize)("total",e.view.total)("skip",e.skip)("options",e.pageable),ie("role",e.navigable?"navigation":void 0)}}function Pgt(i,r){1&i&&z(0,"kendo-grid-toolbar",46)}function Bgt(i,r){if(1&i){var t=xe();A(0,"span",4),te(1),x(),A(2,"kendo-grid-columnlist",5),Q("apply",function(a){return re(t),D().onApply(a)})("columnChange",function(a){return re(t),D().onChange(a)}),x()}if(2&i){var e=D();k(1),at(e.localization.get("columns")),k(1),y("columns",e.columns)("applyText",e.localization.get("columnsApply"))("resetText",e.localization.get("columnsReset"))("autoSync",e.autoSync)("allowHideAll",e.allowHideAll)}}var Ggt=/^\s*$/,He=function(r){return null!=r},Cb=function(r){return null==r},aV=function(r){return Array.isArray(r)},hs=function(r){return!!r},wr=function(r){return Cb(r)||Ggt.test(r)},VT=function(r){return xn(lt(r),r.changes)},bb=function(){return"undefined"==typeof document},oV=function(r){return"string"==typeof r},Xde=function(r){return"number"==typeof r&&!isNaN(r)},sV=function(r){return oV(r)&&!wr(r)&&r.startsWith("{0:")?r.slice(3,r.length-1):r},Sb=function(r){return function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:this.activeRow,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.activeCol,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.activate(t,e,n)&&(this.virtualRow=t,this.virtualCol=e)}},{key:"activate",value:function(t,e,n){if(!n&&this.isActiveRange(t,e))return!1;var a=this.activeCol,o=this.activeRow;return this.activeCol=e,this.activeRow=t,this.changes.next({colIndex:e,prevColIndex:a,prevRowIndex:o,rowIndex:t}),!0}},{key:"isActiveRange",value:function(t,e){if(this.activeRow!==t)return!1;var n=this.cell,a=this.model.cellRange(n),o=a.start,s=a.end;return!Boolean(n)||o<=e&&e<=s}},{key:"assume",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.activeRow,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.activeCol;this.virtualRow=t,this.virtualCol=e,this.activeCol=e,this.activeRow=t}},{key:"announce",value:function(){this.changes.next({colIndex:this.activeCol,prevColIndex:this.activeCol,prevRowIndex:this.activeRow,rowIndex:this.activeRow})}},{key:"activateVirtualCell",value:function(t){var e=this.model.rowRange(t),n=this.model.cellRange(t),a=this.activeCol,o=this.activeRow;if(e.start<=o&&o<=e.end&&n.start<=a&&a<=n.end)return this.activeRow=t.rowIndex,this.activeCol=t.colIndex,!0}},{key:"isActive",value:function(t,e){return this.activeCol===e&&this.activeRow===t}},{key:"moveUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetRow(-t)}},{key:"moveDown",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetRow(t)}},{key:"moveLeft",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetCol(-t)}},{key:"moveRight",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.offsetCol(t)}},{key:"lastCellIndex",value:function(t){return this.metadata.columns.leafColumnsToRender.length-1+(!this.metadata.hasDetailTemplate||t&&t.groupItem?0:1)}},{key:"offsetCol",value:function(t){var e=this.model.findRow(this.virtualRow),n=this.lastCellIndex(e),a=this.virtualCol;this.virtualCol=Math.max(0,Math.min(a+t,n));var o=this.virtualCol,s=this.virtualRow,l=this.model.findCell(this.virtualCol,e);if(!l&&this.metadata.virtualColumns)return this.activate(s,o);if(l.colSpan>1&&l.colIndex<=a&&a0?Math.min(l.colIndex+l.colSpan,n):Math.max(0,l.colIndex+t);var u=this.model.findCell(o,e);this.virtualCol=l!==u?(l=u).colIndex:a}return this.activate(l.rowIndex,l.colIndex)}},{key:"offsetRow",value:function(t){var e=this.virtualCol;if(this.metadata&&this.metadata.isVirtual){var n=this.metadata.maxLogicalRowIndex,a=Math.max(0,Math.min(this.activeRow+t,n));this.metadata.hasDetailTemplate&&!this.model.findRow(a)&&(a=t>0?a+1:a-1,a=Math.max(0,Math.min(a,n))),this.metadata.hasDetailTemplate&&a===n&&this.model.lastRow.index!==n&&a--;var o=this.model.findRow(a);if(o){var s=this.model.findCell(this.virtualCol,o);s.rowIndex<=this.virtualRow&&t>0&&s.rowSpan>1&&(s=this.model.findCell(this.virtualCol,this.model.findRow(s.rowIndex+s.rowSpan-1+t))),a=s.rowIndex,e=s.colIndex}return this.virtualRow=a,this.activate(a,e)}var l=this.model.findRow(this.virtualRow+t)||this.model.nextRow(this.virtualRow,t);if(!l)return!1;var u=this.model.findCell(this.virtualCol,l);return u&&u.rowIndex<=this.virtualRow&&t>0&&u.rowSpan>1&&(u=this.model.findCell(this.virtualCol,this.model.findRow(u.rowIndex+u.rowSpan-1+t))),!u&&this.metadata.virtualColumns?this.activate(this.virtualRow+t,this.virtualCol):(this.virtualRow=u.rowIndex,this.activate(this.virtualRow,u.colIndex))}}]),i}(),Yde=function(){function i(){p(this,i),this.count=0,this.items={}}return v(i,[{key:"first",get:function(){var t;if(this.count>0)return this.forEach(function(e){return t=e,!0}),t}},{key:"last",get:function(){if(this.count>0){var t=Object.keys(this.items);return this.items[t[t.length-1]]}}},{key:"removeItem",value:function(t){this.items[t]&&(delete this.items[t],this.count--)}},{key:"setItem",value:function(t,e){this.items[t]||this.count++,this.items[t]=e}},{key:"getItem",value:function(t){return this.items[t]}},{key:"toArray",value:function(){var t=[];return this.forEach(function(e){t.push(e)}),t}},{key:"forEach",value:function(t){for(var e in this.items)if(this.items.hasOwnProperty(e)&&t(this.items[e]))return this.items[e]}},{key:"find",value:function(t){return this.forEach(t)}}]),i}(),Xgt=function(){function i(){p(this,i),this.rows=new Yde}return v(i,[{key:"firstRow",get:function(){return this.rows.first}},{key:"lastRow",get:function(){return this.rows.last}},{key:"registerCell",value:function(t){var e=this.rows.getItem(t.logicalRowIndex);if(e){var n=t.logicalColIndex,a={uid:t.uid,colIndex:n,rowIndex:e.index,colSpan:t.colSpan,rowSpan:t.rowSpan,detailExpandCell:t.detailExpandCell,dataItem:e.dataItem,dataRowIndex:e.dataRowIndex,focusGroup:t.focusGroup};return e.cells.setItem(n,a),t.groupItem&&(e.groupItem=t.groupItem),a}}},{key:"unregisterCell",value:function(t,e,n){var a=this.rows.getItem(e);if(a){var o=a.cells.getItem(t);o&&o.uid===n.uid&&a.cells.removeItem(t)}}},{key:"registerRow",value:function(t){var e={uid:t.uid,index:t.logicalRowIndex,dataItem:t.dataItem,dataRowIndex:t.dataRowIndex,cells:new Yde};this.rows.setItem(t.logicalRowIndex,e)}},{key:"updateRow",value:function(t){var e=this.rows.getItem(t.logicalRowIndex);e&&Object.assign(e,{dataItem:t.dataItem,dataRowIndex:t.dataRowIndex})}},{key:"unregisterRow",value:function(t,e){var n=this.rows.getItem(t);n&&n.uid===e.uid&&this.rows.removeItem(t)}},{key:"cellRange",value:function(t){return t?{start:t.colIndex,end:t.colIndex+(t.colSpan||1)-1}:{}}},{key:"rowRange",value:function(t){return t?{start:t.rowIndex,end:t.rowIndex+(t.rowSpan||1)-1}:{}}},{key:"nextRow",value:function(t,e){var n=this.rows.toArray(),a=this.rows.getItem(t),o=n.indexOf(a);return n[o+e]}},{key:"findRow",value:function(t){return this.rows.getItem(t)}},{key:"findCell",value:function(t,e){if(e){for(var n=e.index,a=e.cells.getItem(t),o=n;!a&&e;)e=this.rows.getItem(o),a=this.rowCell(t,e),o--;if(a&&n<=e.index+(a.rowSpan||1)-1)return a}}},{key:"rowCell",value:function(t,e){if(e&&e.cells.count){for(var a,n=e.cells.first,o=t;!a&&o>=n.colIndex;)a=e.cells.getItem(o),o--;if(a&&t<=a.colIndex+(a.colSpan||1)-1)return a}}}]),i}(),Zgt=/^(?:a|input|select|option|textarea|button|object)$/i,uV={},Qde=function(r){return String(r).trim().split(" ")},Rv=function(r,t){var e=Qde(t);return Boolean(Qde(r.className).find(function(n){return e.indexOf(n)>=0}))},Hu=function(r){return function(t){return Rv(t,r)}},Ta=function(r){return uV[r]||(uV[r]=function(t){return String(t.nodeName).toLowerCase()===r.toLowerCase()}),uV[r]},Ga=function(r,t){for(;r&&!t(r);)r=r.parentNode;return r},cV=function(r,t,e){for(;r&&r!==e&&!t(r);)r=r.parentNode;if(r!==e)return r},dV=function(r){var t=r.getBoundingClientRect();return(t.width>0&&t.height>0||0!==t.x&&0!==t.y)&&"hidden"!==window.getComputedStyle(r).visibility},Jde=function(r){if(!r.tagName)return!1;var t=r.tagName.toLowerCase(),e=Boolean(r.getAttribute("tabIndex"));return!r.disabled&&Zgt.test(t)||e},wb=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!Jde(r))return!1;var e=!t||dV(r),n="true"===r.getAttribute("aria-hidden"),a=r.getAttribute("tabIndex");return e&&!n&&"-1"!==a},Ku=function i(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(r){if(e&&t(r))return r;for(r=r.firstChild;r;){if(1===r.nodeType){var n=i(r,t);if(n)return n}r=r.nextSibling}}},Qgt=function(r,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=null;return Ku(r,function(a){return t(a)&&(n=a),!1},e),n},ehe=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ku(r,function(e){return wb(e,t)},!1)},ju=function(){function i(){p(this,i),this.changes=new Ot,this.pageChange=new Ot}return v(i,[{key:"currentPage",get:function(){return this.skip/this.pageSize}},{key:"notifyChanges",value:function(t){this.total=t.total,this.pageSize=t.pageSize,this.skip=t.skip,this.changes.next(t)}},{key:"changePage",value:function(t){this.pageChange.next({skip:t*this.pageSize,take:this.pageSize})}},{key:"changePageSize",value:function(t){this.pageChange.next({skip:0,take:t})}},{key:"nextPage",value:function(){var t=this.currentPage+1;t*this.pageSize=0&&this.changePage(t)}}]),i}(),HT=function(){var i=function(){function r(){p(this,r),this.requests=new Ot}return v(r,[{key:"scrollTo",value:function(e){this.requests.next(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),hV=function i(r){return He(r)?{group:r.data,groupIndex:r.index,parentGroup:i(r.parentGroup)}:null},Fm=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.rowState=new Set}return v(r,[{key:"reset",value:function(){this.rowState.clear()}},{key:"ngOnDestroy",value:function(){this.reset()}},{key:"isExpanded",value:function(e){return this.userCallback?this.userCallback(e):!this.rowState.has(e.groupIndex)}},{key:"isInExpandedGroup",value:function(e){for(var n=!0;e&&n;)n=this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:hV(e.parentGroup)}),e=e.parentGroup;return n}},{key:"toggleRow",value:function(e){var n=hV(e.parentGroup),a=!this.isExpanded({group:e.data,groupIndex:e.index,parentGroup:n});this.changes.next({group:e.data,expand:a,groupIndex:e.index,parentGroup:n}),!this.userCallback&&(a?this.rowState.delete(e.index):this.rowState.add(e.index))}},{key:"expandChildren",value:function(e){var n=this;this.rowState.forEach(function(a){return function(r,t){return t!==r&&r.startsWith(t)}(a,e)&&n.rowState.delete(a)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Ov=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),imt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Ov),rmt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),n=r.call(this),Object.assign(Xe(n),e),n}return v(t)}(Ov),Db=function(){var i=function(){function r(){p(this,r),this.changes=new Ot,this.rowState=new Set}return v(r,[{key:"ngOnDestroy",value:function(){this.rowState.clear()}},{key:"isExpanded",value:function(e,n){return this.userCallback?this.userCallback({index:e,dataItem:n}):this.rowState.has(e)}},{key:"toggleRow",value:function(e,n){this.isExpanded(e,n)?this.collapseRow(e,n):this.expandRow(e,n)}},{key:"expandRow",value:function(e,n){!this.emitEvent({dataItem:n,index:e,expand:!0})&&!this.userCallback&&this.rowState.add(e)}},{key:"collapseRow",value:function(e,n){!this.emitEvent({dataItem:n,index:e,expand:!1})&&!this.userCallback&&this.rowState.delete(e)}},{key:"emitEvent",value:function(e){var n=new(e.expand?rmt:imt)(e);return this.changes.next(n),n.isDefaultPrevented()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),fV=new wt("focus-root-initial-active-state"),Eh=function(){var i=function(){function r(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];p(this,r),this.active=t,this.groups=new Set}return v(r,[{key:"registerGroup",value:function(e){this.active&&this.groups.add(e)}},{key:"unregisterGroup",value:function(e){this.active&&this.groups.delete(e)}},{key:"activate",value:function(){this.active&&this.groups.forEach(function(e){return e.activate()})}},{key:"deactivate",value:function(){this.active&&this.groups.forEach(function(e){return e.deactivate()})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(fV,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),amt=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).action="cellClose",Object.assign(Xe(n),e),n}return v(t)}(Ov),Iv=function(r){return-1===r||void 0===r},Pl=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.changes=new O,this.editedIndices=[],this.keepEditCell=!1,this.closingCell=!1,this.changedSource=new Ot,this.changed=this.changedSource.asObservable().pipe(Nn(function(){return e.ngZone.onStable.asObservable().pipe(It(1))}))}return v(r,[{key:"editRow",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this.editedIndices.push({index:e,group:n}),this.onChanged()}},{key:"addRow",value:function(e){this.newItemGroup={group:e},this.onChanged()}},{key:"editCell",value:function(e,n,a){Iv(e)||!1===n.editable||!n.editTemplate&&!n.field||(this.preventCellClose(),this.closeCell()||(this.editRow(e,a),this.column=n,this.onChanged()))}},{key:"isEditing",value:function(){return this.editedIndices.length>0}},{key:"isEditingCell",value:function(){return this.isEditing()&&void 0!==this.column}},{key:"hasNewItem",get:function(){return He(this.newItemGroup)}},{key:"newDataItem",get:function(){return this.hasNewItem?this.newItemGroup.group.value:{}}},{key:"close",value:function(e){Iv(e)?this.newItemGroup=void 0:(this.editedIndices=this.editedIndices.filter(function(r){return function(t){return t.index!==r}}(e)),delete this.column,this.onChanged())}},{key:"closeCell",value:function(e){var n=this;if(this.column&&!this.closingCell)return this.ngZone.run(function(){var a=n.editedIndices[0],l=new amt({column:n.column,formGroup:a.group,originalEvent:e,rowIndex:a.index});return n.closingCell=!0,n.changes.emit(l),n.closingCell=!1,l.isDefaultPrevented()||n.cancelCell(),l.isDefaultPrevented()})}},{key:"cancelCell",value:function(){this.column&&(this.editedIndices=[],delete this.column,this.onChanged())}},{key:"shouldCloseCell",value:function(){return this.column&&!this.keepEditCell}},{key:"preventCellClose",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){window.clearTimeout(e.keepCellTimeout),e.keepEditCell=!0,e.keepCellTimeout=window.setTimeout(function(){e.keepEditCell=!1},0)})}},{key:"context",value:function(e){return Iv(e)?this.newItemGroup:this.findByIndex(e)}},{key:"columnContext",value:function(e,n){return Iv(e)?this.newItemGroup:this.column&&n!==this.column?void 0:this.findByIndex(e)}},{key:"isEdited",value:function(e){return!(!Iv(e)||!He(this.newItemGroup))||!this.column&&He(this.findByIndex(e))}},{key:"hasEdited",value:function(e){return He(this.context(e))}},{key:"isEditedColumn",value:function(e,n){return!(!this.column||this.column!==n)&&He(this.findByIndex(e))}},{key:"beginEdit",value:function(e){this.changes.emit({action:"edit",rowIndex:e})}},{key:"beginAdd",value:function(){this.changes.emit({action:"add"})}},{key:"endEdit",value:function(e){var n=this.context(e);this.changes.emit({action:"cancel",rowIndex:e,formGroup:n.group,isNew:Iv(e)})}},{key:"save",value:function(e){var n=this.context(e);this.changes.emit({action:"save",rowIndex:e,formGroup:n.group,isNew:Iv(e)})}},{key:"remove",value:function(e){this.changes.emit({action:"remove",rowIndex:e})}},{key:"findByIndex",value:function(e){return this.editedIndices.find(function(r){return function(t){return t.index===r}}(e))}},{key:"onChanged",value:function(){var e=this;this.ngZone.runOutsideAngular(function(){e.changedSource.next()})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),lmt=Ta("button"),umt=Ta("input"),cmt=/(button|checkbox|color|file|radio|reset|submit)/i,fmt=function(){function i(r,t){p(this,i),this.renderer=t,this.element=r.nativeElement,this.focusable=function(r){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ku(r,function(e){return wb(e,t)})}(this.element,!1)||this.element}return v(i,[{key:"enabled",get:function(){return this.focusable&&!this.focusable.disabled}},{key:"visible",get:function(){return this.focusable&&dV(this.focusable)}},{key:"isNavigable",value:function(){return this.canFocus()&&function(r){return!r.disabled&&(lmt(r)||function(r){return umt(r)&&cmt.test(r.type)}(r))}(this.element)}},{key:"toggle",value:function(t){this.renderer.setAttribute(this.focusable,"tabIndex",t?"0":"-1")}},{key:"focus",value:function(){this.focusable&&this.focusable.focus()}},{key:"canFocus",value:function(){return this.visible&&this.enabled}},{key:"hasFocus",value:function(){var t=this;return document.activeElement!==this.element&&Ga(document.activeElement,function(e){return e===t.element})}}]),i}(),td=new wt("grid-cell-context"),vmt={},co=function(){var i=function(){function r(t,e,n){p(this,r),this.cellContext=t,this.hostElement=e,this.renderer=n,this.active=!0,this._enabled=!0,this.cellContext&&(this.group=this.cellContext.focusGroup),this.group&&this.group.registerElement(this)}return v(r,[{key:"enabled",get:function(){return this._enabled},set:function(e){(e=""===e||Boolean(e))!==this.enabled&&(this._enabled=e,this.element&&this.element.toggle(this.active&&e))}},{key:"ngAfterViewInit",value:function(){this.element||(this.element=new fmt(this.hostElement,this.renderer)),this.group&&this.element&&this.toggle(this.group.isActive)}},{key:"ngOnDestroy",value:function(){this.group&&this.group.unregisterElement(this)}},{key:"toggle",value:function(e){this.element&&e!==this.active&&(this.element.toggle(this.enabled&&e),this.active=e)}},{key:"canFocus",value:function(){return this.enabled&&this.element&&this.element.canFocus()}},{key:"isNavigable",value:function(){return this.enabled&&this.element&&this.element.isNavigable()}},{key:"focus",value:function(){this.enabled&&this.element&&this.element.focus()}},{key:"hasFocus",value:function(){return this.enabled&&this.element&&this.element.hasFocus()}},{key:"registerElement",value:function(e){this.element=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(td,12),m(ke),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoGridFocusable",""],["","kendoGridEditCommand",""],["","kendoGridRemoveCommand",""],["","kendoGridSaveCommand",""],["","kendoGridCancelCommand",""],["","kendoGridSelectionCheckbox",""]],inputs:{enabled:["kendoGridFocusable","enabled"]}}),i}(),pmt=function(r,t){return Ga(r,Ta("kendo-grid"))===t},gmt=Ta("th"),mmt=Ta("td"),_mt=Ta(".k-grid-footer td"),the=function(r){return mmt(r)||gmt(r)||_mt(r)},vV=function(r,t){var e=function(r,t){for(var e=Ga(r,the);e&&!pmt(e,t);)e=Ga(e.parentElement,the);return e}(r,t),n=Ga(e,Ta("tr"));if(e&&n){var a=n.getAttribute("aria-rowindex");a=a?parseInt(a,10)-1:null;var o=e.getAttribute("aria-colindex");if(o=o?parseInt(o,10)-1:null,null!==a&&null!==o)return{colIndex:o,rowIndex:a,element:e}}},nhe=function(r){return function(r){return r===J.ArrowLeft||r===J.ArrowRight||r===J.ArrowUp||r===J.ArrowDown}(r)||r===J.PageUp||r===J.PageDown||r===J.Home||r===J.End},Cmt=Ta("input"),ihe=function(){function i(r,t){p(this,i),this.firstItemIndex=r,this.lastItemIndex=t}return v(i,[{key:"containsRow",value:function(t){return t<0||t>=this.firstItemIndex&&t<=this.lastItemIndex}},{key:"intersects",value:function(t,e){return t<=this.firstItemIndex&&this.lastItemIndex<=e||this.firstItemIndex<=t&&t<=this.lastItemIndex||this.firstItemIndex<=e&&e<=this.lastItemIndex}}]),i}(),Va=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h){p(this,r),this.zone=t,this.domEvents=e,this.pagerContextService=n,this.scrollRequestService=a,this.groupsService=o,this.detailsService=s,this.focusRoot=l,this.editService=u,this.cd=c,this.localization=d,this.focusableParent=h,this.cellKeydown=new O,this.activeRowIndex=0,this.alive=!1,this.active=!0,this.mode=0,this.model=new Xgt,this.cursor=new qgt(this.model),this.changes=this.cursor.changes}return v(r,[{key:"metadata",get:function(){return this.meta},set:function(e){this.meta=e,this.cursor.metadata=e}},{key:"enabled",get:function(){return this.alive}},{key:"activeCell",get:function(){if(0!==this.mode)return this.cursor.cell}},{key:"activeRow",get:function(){if(0!==this.mode)return Object.assign({},this.cursor.row,{cells:this.cursor.row.cells.toArray()})}},{key:"activeDataRow",get:function(){return Math.max(0,this.activeRowIndex-this.meta.headerRows)}},{key:"init",value:function(e){var n=this;this.alive=!0,this.focusRoot.active=!0,this.metadata=e;var a=function(){for(var u=arguments.length,c=new Array(u),d=0;do&&this.cursor.reset(0,0)}}},{key:"isCellFocusable",value:function(e){return this.alive&&this.active&&2!==this.mode&&this.cursor.isActive(e.logicalRowIndex,e.logicalColIndex)}},{key:"isCellFocused",value:function(e){return 1===this.mode&&this.isCellFocusable(e)}},{key:"navigateTo",value:function(e){if(this.alive){var n=vV(e,this.meta.gridElement.nativeElement);if(n){var a=this.mode,o=function(r,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!Ga(t,function(o){return o===r});if(n)return!1;var a=Ga(t,function(o){return o===t});return a&&(e||a!==r)}(n.element,document.activeElement),s=2===this.mode&&this.activeRowIndex===n.rowIndex&&e!==n.element;if(o)this.mode=2,this.cursor.reset(n.rowIndex,n.colIndex),this.activateRow();else if(!s){this.mode=1,this.deactivateElements();var l=this.cursor.isActive(n.rowIndex,n.colIndex);1===a&&l||this.cursor.reset(n.rowIndex,n.colIndex)}}}}},{key:"tryFocus",value:function(e){this.activateElements();var n=ehe(e);if(n){var a=vV(n,this.meta.gridElement.nativeElement);a&&(this.cursor.reset(a.rowIndex,a.colIndex),this.deactivateElements(),this.enterCell()),n.focus()}else this.deactivateElements();return!!n}},{key:"needsViewport",value:function(){return this.meta&&this.meta.isVirtual}},{key:"setViewport",value:function(e,n){if(this.viewport=new ihe(e,n),this.meta&&this.meta.isVirtual&&this.activeDataRow>-1){var a=this.activeDataRow,s=a-n;e-a>0?this.cursor.reset(e+this.meta.headerRows):s>0&&this.cursor.reset(n-this.meta.headerRows)}}},{key:"setColumnViewport",value:function(e,n){this.columnViewport=new ihe(e,n)}},{key:"focusCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return this.mode=1,this.cursor.reset(e,n),this.activeCell}},{key:"focusCellByElement",value:function(e){var n=vV(e,this.meta.gridElement.nativeElement);if(n)return this.focusCell(n.rowIndex,n.colIndex)}},{key:"focusNextCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.focusAdjacentCell(!0,e)}},{key:"focusPrevCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.focusAdjacentCell(!1,e)}},{key:"toggle",value:function(e){this.active=e,this.cursor.announce()}},{key:"hasFocus",value:function(){return 1===this.mode||2===this.mode}},{key:"autoFocusCell",value:function(e,n){return!this.meta.virtualColumns||n=this.meta.headerRows&&this.viewport&&!this.viewport.containsRow(n)&&n>-1&&this.scrollRequestService.scrollTo({row:n}),this.meta.virtualColumns&&e.colIndex>=this.meta.columns.lockedLeafColumns.length){var a=this.activeCell,o=this.model.cellRange(a),s=o.start,l=o.end;a||(this.virtualCell=!0),(!a&&0!==this.mode||a&&!this.columnViewport.intersects(s,l))&&this.scrollRequestService.scrollTo({column:e.colIndex-(this.metadata.hasDetailTemplate?1:0)})}}},{key:"onFocusOut",value:function(e){this.mode=dV(e.target)?0:1,this.deactivateElements(),this.cursor.announce()}},{key:"onWindowBlur",value:function(){this.mode=0,this.deactivateElements(),this.cursor.announce()}},{key:"onKeydown",value:function(e){1===this.mode?this.onCursorKeydown(e):2===this.mode&&this.onContentKeydown(e)}},{key:"onTabout",value:function(){this.cursor.cell.focusGroup.isNavigable()||(this.leaveCell(),this.cursor.reset())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(Mv),oe(ju),oe(HT),oe(Fm),oe(Db),oe(Eh),oe(Pl),oe(nt),oe(Y),oe(co,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Lm=function(){var i=function(){function r(t,e,n){p(this,r),this.domEvents=t,this.localDataChangesService=e,this.navigationService=n,this.changes=new O,this.lastSelectionStartIndex=0,this.currentSelection=[],this.selectAllChecked=!1,this.active=!1,this.dragging=!1,this.addSubscriptions()}return v(r,[{key:"enableMarquee",get:function(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;var n=this.settings.selectable,a="object"==typeof n&&He(n)&&"multiple"===n.mode&&!1!==n.enabled&&!n.checkboxOnly&&n.drag;return this.active&&a}},{key:"init",value:function(e){if(this.settings=e,this.currentSelection=[],e.selectable&&!1!==e.selectable.enabled){var n=this.getIterator();this._selectAllState=!0;for(var a=n.next();!a.done;){if(a.value&&"data"===a.value.type){var o={dataItem:a.value.data,index:a.value.index};e.rowSelected(o)?this.currentSelection[a.value.index]=o:this._selectAllState=void 0}a=n.next()}0===this.currentSelection.length&&(this._selectAllState=!1)}}},{key:"isSelected",value:function(e){if(this.settings&&this.active)return this.options.enabled&&He(this.currentSelection[e])}},{key:"handleClick",value:function(e,n){if(this.dragging)this.dragging=!1;else{var a,o=n.ctrlKey||n.metaKey;"single"===this.options.mode&&o&&this.isSelected(e.index)?a=this.toggle(e):"multiple"===this.options.mode&&(o&&!n.shiftKey?a=this.toggle(e):n.shiftKey&&(a=this.addAllTo(e,o))),He(a)||(a=this.select(e),this.currentSelection[e.index]={dataItem:e.data,index:e.index}),(a.selectedRows.length||a.deselectedRows.length)&&(a.ctrlKey=o,a.shiftKey=n.shiftKey,this.changes.emit(a))}}},{key:"toggle",value:function(e){var n=[],a=[];this.lastSelectionStartIndex=e.index;var o={dataItem:e.data,index:e.index};return this.isSelected(e.index)?a.push(o):n.push(o),{deselectedRows:a,selectedRows:n}}},{key:"toggleByIndex",value:function(e){var n=this.getIterator();this.selectAllChecked&&this.isSelected(e)&&(this.selectAllChecked=!1);for(var a=n.next();!a.done;){if(a.value&&"data"===a.value.type&&a.value.index===e){var o={data:a.value.data,index:a.value.index};return this.isSelected(e)||"multiple"===this.options.mode?this.toggle(o):this.select(o)}a=n.next()}}},{key:"select",value:function(e){var n=[],a=[];return this.lastSelectionStartIndex=e.index,this.isSelected(e.index)||a.push({dataItem:e.data,index:e.index}),this.currentSelection.forEach(function(o){o.index!==e.index&&n.push(o)}),{deselectedRows:n,selectedRows:a}}},{key:"deselect",value:function(e){for(var n=this.getIterator(),a=n.next();!a.done;){if(a.value&&"data"===a.value.type&&a.value.data===e){var o={dataItem:a.value.data,index:a.value.index};this.isSelected(o.index)&&this.changes.emit({ctrlKey:!1,deselectedRows:[o],selectedRows:[]})}a=n.next()}}},{key:"addAllTo",value:function(e,n){for(var a=[],o=[],s=Math.min(this.lastSelectionStartIndex,e.index),l=Math.max(this.lastSelectionStartIndex,e.index),u=this.getIterator(),c=u.next();!c.done;){if(c.value&&"data"===c.value.type){var d=c.value.index,h={dataItem:c.value.data,index:d};(dl)&&this.isSelected(d)&&!n&&o.push(h),d>=s&&d<=l&&!this.isSelected(d)&&a.push(h)}c=u.next()}return{deselectedRows:o,selectedRows:a}}},{key:"updateAll",value:function(e){this.selectAllChecked=e;for(var n=[],a=[],o=this.getIterator(),s=o.next();!s.done;){if(s.value&&"data"===s.value.type){var l=s.value.index,u={dataItem:s.value.data,index:l};this.isSelected(l)&&!e&&a.push(u),!this.isSelected(l)&&e&&n.push(u)}s=o.next()}(n.length||a.length)&&this.changes.emit({ctrlKey:!0,deselectedRows:a,selectedRows:n,shiftKey:!0})}},{key:"selectRange",value:function(e,n){for(var a=[],o=[],s=Math.min(e,n),l=Math.max(e,n),u=this.getIterator(),c=u.next();!c.done;){if(c.value&&"data"===c.value.type){var d=c.value.index,h={dataItem:c.value.data,index:d};(dl)&&this.isSelected(d)&&o.push(h),d>=s&&d<=l&&!this.isSelected(d)&&a.push(h)}c=u.next()}return{deselectedRows:o,selectedRows:a}}},{key:"selectAllState",get:function(){return this._selectAllState}},{key:"selected",get:function(){return this.currentSelection.map(function(e){return e.index}).filter(function(e){return"number"==typeof e})}},{key:"options",get:function(){var e={checkboxOnly:!1,enabled:!0,mode:"multiple"};return He(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}},{key:"ngOnDestroy",value:function(){this.removeSubscriptions()}},{key:"targetArgs",value:function(){return{index:this.mouseDownEventArgs.rowIndex,dataItem:this.mouseDownEventArgs.dataItem}}},{key:"addSubscriptions",value:function(){var e=this;this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(function(n){e.options.enabled&&!e.options.checkboxOnly&&"contextmenu"!==n.type&&e.active&&e.handleClick({index:n.rowIndex,data:n.dataItem},n.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(function(n){e.mouseDownEventArgs=n,e.options.enabled&&(!e.options.mode||"multiple"===e.options.mode)&&!e.options.checkboxOnly&&n.originalEvent.shiftKey&&e.active&&(n.originalEvent.preventDefault(),e.navigationService.focusCellByElement(n.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(function(n){e.active&&He(n.action)&&"remove"===n.action&&e.deselect(n.item)}))}},{key:"getIterator",value:function(){var e=this.settings.view.accessor();if(e)return e[zu]()}},{key:"removeSubscriptions",value:function(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Mv),oe(ed),oe(Va))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),KT=function(){var i=function(){function r(t,e,n){p(this,r),this.domEvents=t,this.localDataChangesService=e,this.navigationService=n,this.changes=new O,this.mouseUpEvent=new O,this.currentSelection=[],this.active=!1,this.dragging=!1,this.dragSelectDeselect=!1,this.lastSelectionItem={itemKey:0,columnKey:0},this.lastSelectionItemRowIndex=0,this.lastSelectionItemColIndex=0,this.addSubscriptions()}return v(r,[{key:"enableMarquee",get:function(){if(!this.settings||this.settings&&"object"==typeof this.settings&&this.settings.checkboxOnly)return!1;var n=this.settings.selectable,a="object"==typeof n&&He(n)&&"multiple"===n.mode&&n.cell&&!1!==n.enabled&&n.drag;return this.active&&a}},{key:"init",value:function(e){var n=this;if(this.settings=e,this.currentSelection=[],e.selectable&&!1!==e.selectable.enabled)for(var a=this.getIterator(),o=a.next();!o.done;)o.value&&"data"===o.value.type&&function(){var s={dataItem:o.value.data,index:o.value.index};e.columns.forEach(function(l){var u=e.cellSelected(s,l,l.leafIndex);u.selected&&n.currentSelection.push(u.item)})}(),o=a.next()}},{key:"isCellSelected",value:function(e,n){if(this.settings&&this.active){var a=this.settings.cellSelected({dataItem:e.data,index:e.index},n,n.leafIndex);return this.options.enabled&&a.selected}return!1}},{key:"handleClick",value:function(e,n){if(this.dragging)this.dragging=!1;else{var a,o=n.ctrlKey||n.metaKey;if("single"===this.options.mode&&o&&this.isCellSelected(e,e.column))a=this.toggle(e);else if("multiple"===this.options.mode)if(o&&!n.shiftKey)a=this.toggle(e);else if(n.shiftKey){var s=Math.min(this.lastSelectionItemRowIndex,e.index),l=Math.min(this.lastSelectionItemColIndex,e.column.leafIndex),u=Math.max(this.lastSelectionItemRowIndex,e.index),c=Math.max(this.lastSelectionItemColIndex,e.column.leafIndex);a=this.selectRange(s,l,u,c)}He(a)||(a=this.select(e),this.currentSelection=[this.lastSelectionItem]),(a.selectedCells.length||a.deselectedCells.length)&&(a.ctrlKey=o,a.shiftKey=n.shiftKey,this.changes.emit(a))}}},{key:"toggle",value:function(e){var n=[],a=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:e.data,index:e.index},e.column,e.column.leafIndex).item,this.lastSelectionItemRowIndex=e.index,this.lastSelectionItemColIndex=e.column.leafIndex,this.isCellSelected(e,e.column)?a.push(this.lastSelectionItem):n.push(this.lastSelectionItem),{deselectedCells:a,selectedCells:n}}},{key:"select",value:function(e){var n=this,a=[],o=[];return this.lastSelectionItem=this.settings.cellSelected({dataItem:e.data,index:e.index},e.column,e.column.leafIndex).item,this.lastSelectionItemRowIndex=e.index,this.lastSelectionItemColIndex=e.column.leafIndex,this.isCellSelected(e,e.column)||a.push(this.lastSelectionItem),this.currentSelection.forEach(function(s){(s.itemKey!==n.lastSelectionItem.itemKey||s.columnKey!==n.lastSelectionItem.columnKey)&&o.push(s)}),{deselectedCells:o,selectedCells:a}}},{key:"deselect",value:function(e){for(var s,n=this,a=this.getIterator(),o=a.next();!o.done;){if(o.value&&"data"===o.value.type&&o.value.data===e){s={dataItem:o.value.data,index:o.value.index};break}o=a.next()}if(s){var l=this.currentSelection.filter(function(c){var d=n.settings.cellSelected(s,null,null).item;return c.itemKey===d.itemKey});l.length&&this.changes.emit({ctrlKey:!1,deselectedCells:l,selectedCells:[]})}}},{key:"selectRange",value:function(e,n,a,o){for(var s=this,l=[],u=[],c=Math.min(e,a),d=Math.min(n,o),h=Math.max(e,a),f=Math.max(n,o),g=this.getIterator(),_=g.next();!_.done;)_.value&&"data"===_.value.type&&function(){var C=_.value.index,E={dataItem:_.value.data,index:C};s.settings.columns.forEach(function(M){var N=s.settings.cellSelected(E,M,M.leafIndex).item,V=s.isCellSelected(_.value,M),ve=c<=C&&C<=h&&d<=M.leafIndex&&M.leafIndex<=f;!ve&&V&&u.push(N),ve&&!V&&l.push(N)})}(),_=g.next();return{deselectedCells:u,selectedCells:l}}},{key:"options",get:function(){var e={checkboxOnly:!1,enabled:!0,mode:"multiple"};return He(this.settings)?"boolean"==typeof this.settings.selectable?{checkboxOnly:!1,enabled:this.settings.selectable,mode:"multiple"}:Object.assign(e,this.settings.selectable):e}},{key:"ngOnDestroy",value:function(){this.removeSubscriptions()}},{key:"addSubscriptions",value:function(){var e=this;this.cellClickSubscription||(this.cellClickSubscription=this.domEvents.cellClick.subscribe(function(n){e.options.enabled&&!e.options.checkboxOnly&&"contextmenu"!==n.type&&e.active&&e.handleClick({index:n.rowIndex,data:n.dataItem,column:n.column},n.originalEvent)})),this.mousedownSubscription||(this.mousedownSubscription=this.domEvents.cellMousedown.subscribe(function(n){e.mouseDownEventArgs=n,e.options.enabled&&(!e.options.mode||"multiple"===e.options.mode)&&!e.options.checkboxOnly&&n.originalEvent.shiftKey&&e.active&&(n.originalEvent.preventDefault(),e.navigationService.focusCellByElement(n.originalEvent.target))})),this.localDataChangesService&&!this.dataChangedSubscription&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(function(n){e.active&&He(n.action)&&"remove"===n.action&&e.deselect(n.item)}))}},{key:"getIterator",value:function(){var e=this.settings.view.accessor();if(e)return e[zu]()}},{key:"removeSubscriptions",value:function(){this.cellClickSubscription&&(this.cellClickSubscription.unsubscribe(),this.cellClickSubscription=null),this.mousedownSubscription&&(this.mousedownSubscription.unsubscribe(),this.mousedownSubscription=null),this.dataChangedSubscription&&(this.dataChangedSubscription.unsubscribe(),this.dataChangedSubscription=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Mv),oe(ed),oe(Va))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rhe={topLeft:{x:2,y:2},topRight:{x:-2,y:2},bottomLeft:{x:2,y:-2},bottomRight:{x:-2,y:-2}},ahe=function(){var i=function(){function r(t,e,n,a){p(this,r),this.draggable=t,this.selection=e,this.cellSelection=n,this.domEvents=a,this.selectionStarted=!1}return v(r,[{key:"webkitUserSelection",get:function(){return this.cellSelection.enableMarquee||this.selection.enableMarquee?"none":null}},{key:"userSelection",get:function(){return this.cellSelection.enableMarquee||this.selection.enableMarquee}},{key:"ngOnInit",value:function(){this.subscriptions=this.draggable.kendoPress.subscribe(this.start.bind(this)),this.subscriptions.add(this.draggable.kendoDrag.subscribe(this.moveMarquee.bind(this)))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe(),this.clean()}},{key:"start",value:function(e){e.originalEvent.target.classList.contains("k-checkbox")?this.pressArgs=null:(this.pressArgs=e,this.pressTarget=null)}},{key:"moveMarquee",value:function(e){this.pressTarget||(this.pressTarget=this.cellSelection.active?this.cellSelection.mouseDownEventArgs:this.selection.mouseDownEventArgs);var n=this.pressArgs;if(n){if(!this.selectionStarted){if(!(Math.sqrt(Math.pow(e.pageX-n.pageX,2)+Math.pow(e.pageY-n.pageY,2))>5))return;this.selectionStarted=!0,this.dragEndSubscription=xn(this.domEvents.cellMouseup.pipe(It(1)),this.draggable.kendoRelease.pipe(Dd(1),It(1))).subscribe(this.endSelection.bind(this))}this.initMarquee();var o=this.marqueeElement,s=this.getMarqueeQuadrant(e.pageX,e.pageY,n.pageX,n.pageY),l=Math.min(e.pageX,n.pageX),u=Math.min(e.pageY,n.pageY),c=Math.abs(e.pageX-n.pageX),d=Math.abs(e.pageY-n.pageY);s&&(l+=rhe[s].x,u+=rhe[s].y),o.style.left="".concat(l,"px"),o.style.top="".concat(u,"px"),o.style.width="".concat(c,"px"),o.style.height="".concat(d,"px")}}},{key:"endSelection",value:function(e){("mouseup"===e.type||"touchend"===e.type)&&(this.cellSelection.active?(this.cellSelection.dragging=!0,this.cellSelection.changes.emit(this.cellSelection.selectRange(this.pressTarget.rowIndex,this.pressTarget.column.leafIndex,e.rowIndex,e.column.leafIndex))):this.selection.active&&(this.selection.dragging=!0,this.selection.changes.emit(this.selection.selectRange(this.pressTarget.rowIndex,e.rowIndex)))),this.clean()}},{key:"clean",value:function(){this.marqueeElement&&(document.body.removeChild(this.marqueeElement),this.marqueeElement=null),this.dragEndSubscription&&this.dragEndSubscription.unsubscribe(),this.dragEndSubscription=null,this.pressTarget=null,this.pressArgs=null,this.selectionStarted=!1,this.cellSelection.active?this.cellSelection.dragging=!1:this.selection.dragging=!1}},{key:"initMarquee",value:function(){this.marqueeElement||(this.marqueeElement=function(){var r=document.createElement("div");r.className="k-marquee";var t=document.createElement("div");return t.className="k-marquee-color",r.appendChild(t),r}(),document.body.appendChild(this.marqueeElement))}},{key:"getMarqueeQuadrant",value:function(e,n,a,o){var s=ea,u=no;return s&&u?"topLeft":s&&c?"bottomLeft":l&&u?"topRight":l&&c?"bottomRight":null}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o),m(Lm),m(KT),m(Mv))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectionMarquee",""]],hostVars:4,hostBindings:function(t,e){2&t&&(Qe("-webkit-user-select",e.webkitUserSelection),ue("user-select-none",e.userSelection))}}),i}(),pV=function(i){b(t,i);var r=S(t);function t(e){var n,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return p(this,t),(n=r.call(this,a)).ngZone=e,n}return v(t,[{key:"subscribe",value:function(n,a,o){var l,s=this,u=function(h){return null},c=function(){return null};return n&&"object"==typeof n?(l=function(h){s.ngZone.run(function(){return n.next(h)})},n.error&&(u=function(h){s.ngZone.run(function(){return n.error(h)})}),n.complete&&(c=function(){s.ngZone.run(function(){return n.complete()})})):(l=function(h){s.ngZone.run(function(){return n(h)})},a&&(u=function(h){s.ngZone.run(function(){return a(h)})}),o&&(c=function(){s.ngZone.run(function(){return o()})})),$(q(t.prototype),"subscribe",this).call(this,l,u,c)}}]),t}(O),Emt={name:"@progress/kendo-angular-grid",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1652253736,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},Nv=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCellTemplate",""]]}),i}(),gV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupHeaderTemplate",""]]}),i}(),mV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupHeaderColumnTemplate",""]]}),i}(),jT=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditTemplate",""]]}),i}(),_V=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupFooterTemplate",""]]}),i}(),yV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridHeaderTemplate",""]]}),i}(),kV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridFooterTemplate",""]]}),i}(),WT=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuTemplate",""]]}),i}(),Tmt=0,Bl=function(){var i=function(){function r(){p(this,r),this.prefix="k-grid".concat(Tmt++)}return v(r,[{key:"gridId",value:function(){return this.prefix}},{key:"cellId",value:function(e,n){return"".concat(this.prefix,"-r").concat(e,"c").concat(n)}},{key:"selectionCheckboxId",value:function(e){return"".concat(this.prefix,"-checkbox").concat(e)}},{key:"selectAllCheckboxId",value:function(){return"".concat(this.prefix,"-select-all")}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),CV=function(r){return r.isSpanColumn},ohe=function(r){return r.isCheckboxColumn},Ir=function(){var i=function(){function r(t,e){if(p(this,r),this.parent=t,this.matchesMedia=!0,this.orderIndex=0,this.isColumnGroup=!1,this.isSpanColumn=!1,this.resizable=!0,this.reorderable=!0,this.minResizableWidth=10,this._locked=!1,this.sticky=!1,this.lockable=!0,this.stickable=!0,this.columnMenu=!0,this.includeInChooser=!0,this.headerTemplates=new Ei,this.columnMenuTemplates=new Ei,this.idService=e,t&&e&&t.idService.gridId()===e.gridId()&&!function(r){return r.isColumnGroup||CV(r)}(t))throw new Error("Columns can be nested only inside ColumnGroupComponent")}return v(r,[{key:"leafIndex",get:function(){return this._leafIndex},set:function(e){this._leafIndex=e}},{key:"width",get:function(){return this._width},set:function(e){if("string"==typeof e){var n=this._width=parseInt(e,10);xt()&&console.warn('Expected numeric value for column width, but got a string "'.concat(e,'". Treating as ').concat(n,"px."))}else this._width=e}},{key:"locked",get:function(){return this._locked},set:function(e){this._locked=e}},{key:"level",get:function(){return this.parent&&CV(this.parent)?this.parent.level:this.parent?this.parent.level+1:0}},{key:"isLocked",get:function(){return this.parent?this.parent.isLocked:this.locked}},{key:"colspan",get:function(){return 1}},{key:"rowspan",value:function(e){return this.level0}}]),e}(Ir);return i.\u0275fac=function(t){return new(t||i)(m(Ir,13),m(Bl,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-span-column"]],contentQueries:function(t,e,n){var a;1&t&&(he(n,Nv,4),he(n,jT,4),he(n,Pm,4)),2&t&&(P(a=B())&&(e.template=a),P(a=B())&&(e.editTemplate=a),P(a=B())&&(e.childColumns=a))},inputs:{editable:"editable",locked:"locked"},features:[de([{provide:Ir,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Wu=function(r){return r.reduce(function(t,e){return t.concat($T(e)?e.childrenArray:[e])},[])},lhe=function(r){return r.reduce(function(t,e){return t.concat($T(e)?[e].concat(e.childrenArray):[e])},[])},nd=function(r){return Wu(r).filter(function(t){return t.isVisible})},uhe=function(r){return function(t){return(t||[]).reduce(function(e,n){return e+(n[r]||0)},0)}},xmt=uhe("width"),qT=uhe("colspan"),Mmt=new RegExp("^[$A-Z_a-z][$A-Z_a-z0-9\\.]*$"),XT=function i(r){return r.reduce(function(t,e){return e.isColumnGroup?t=t.concat(i(function(r){return r.children.filter(function(t){return t!==r})}(e))):e.isSpanColumn?t=t.concat(e.childrenArray):t.push(e),t},[]).filter(function(t){return t.isVisible})},wV=function(r){for(var t=arguments.length,e=new Array(t>1?t-1:0),n=1;n",document.body.appendChild(i);var r=i.scrollLeft;i.scrollLeft=-1,EV=i.scrollLeft<0?i.scrollLeft:r,document.body.removeChild(i)}return EV}()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be),oe(nt))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),AV=function(r){return void 0!==r.items&&void 0!==r.field},Pmt=function i(r){return r.reduce(function(t,e){return AV(e)?t.concat(i(e.items)):t.concat([e])},[])},Bmt=function(r,t){var e=r[0];return He(e)&&AV(e)?Pmt(r)[t]:r[t]},fhe=function(r,t){var e=t.footers,n=t.level,a=t.dataIndex,o=t.parentGroupIndex,s=t.groupIndex,l=t.parentGroup,u=r[0];return He(u)&&AV(u)?(function(r){return void 0!==r.offset&&void 0!==r.skipHeader}(u)&&(s=He(u.offset)?u.offset:s),new zmt(r,e,n,a,o,s,l)):new Vmt(r,a,o,l)},Gmt=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,i),this.arr=r,this.idx=t,this.arr=r||[]}return v(i,[{key:zu,value:function(){return this}},{key:"next",value:function(){return this.idx1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(a){return a};p(this,i),this.dataIndex=t,this.resultMap=e;var n=r[zu];this._innerIterator=n?r[zu]():new Gmt(r)}return v(i,[{key:zu,value:function(){return this}},{key:"next",value:function(){return this.resultMap(this._innerIterator.next(),this.dataIndex++)}}]),i}(),Vmt=function(i){b(t,i);var r=S(t);function t(e,n,a,o){return p(this,t),r.call(this,e,n,function(s,l){return{done:s.done,value:{data:s.value,groupIndex:a,index:l,type:"data",group:o}}})}return v(t,[{key:"index",get:function(){return this.dataIndex}}]),t}(vhe),zmt=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0;p(this,i),this.arr=r,this.outputFooters=t,this.level=e,this.dataIndex=n,this.parentIndex=a,this.groupIndex=o,this.parentGroup=s,this.currentGroupIndex="",this.arr=r||[],this._iterator=new vhe(this.arr,this.dataIndex)}return v(i,[{key:zu,value:function(){return this}},{key:"nextGroupItem",value:function(){return this.current=this._iterator.next().value,this._innerIterator=null,this.current?(this.currentGroupIndex=function(r,t){return"".concat(r&&r+"_").concat(t)}(this.parentIndex,this.groupIndex++),{done:!1,value:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}):(this.current=null,{done:!0,value:void 0})}},{key:"footerItem",value:function(){if(this.current){var t=this.current;return this.current=null,{done:!1,value:{data:t,groupIndex:this.currentGroupIndex,level:this.level,type:"footer",group:{data:t,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}}}}return this.current=null,{done:!0,value:void 0}}},{key:"innerIterator",value:function(t){return this._innerIterator||(this._innerIterator=fhe(t.items,{dataIndex:this.dataIndex,footers:this.outputFooters,level:this.level+1,parentGroupIndex:this.currentGroupIndex,parentGroup:{data:this.current,index:this.currentGroupIndex,level:this.level,type:"group",parentGroup:this.parentGroup}})),this._innerIterator}},{key:"nextDataItem",value:function(t){var n=this.innerIterator(t).next();return He(n.value)&&!n.done&&"data"===n.value.type&&(this.dataIndex=n.value.index+1),n.done?void 0:n}},{key:"next",value:function(){return He(this.current)?this.nextDataItem(this.current)||(this.outputFooters?this.footerItem():this.nextGroupItem()):this.nextGroupItem()}},{key:"index",get:function(){return this.dataIndex+1}}]),i}(),Hmt=function(){function i(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,i),this.source=r,this.skip=t,this.groupFooters=e,this.source=this.source?this.source:[],this.isObject=this.isGridDataResult(this.source)}return v(i,[{key:"isGridDataResult",value:function(t){return void 0!==t.total&&void 0!==t.data}},{key:"total",get:function(){return this.isObject?this.source.total:this.source.length}},{key:"data",get:function(){return this.isObject?this.source.data:this.source}},{key:"map",value:function(t){return this.data.map(t)}},{key:"filter",value:function(t){return this.data.filter(t)}},{key:"reduce",value:function(t,e){return this.data.reduce(t,e)}},{key:"forEach",value:function(t){this.data.forEach(t)}},{key:"some",value:function(t){return this.data.some(t)}},{key:zu,value:function(){return fhe(this.data,{dataIndex:this.skip,footers:this.groupFooters,groupIndex:this.skip})}},{key:"toString",value:function(){return this.data.toString()}}]),i}(),Kmt=function(){function i(r){p(this,i),this.accessor=r}return v(i,[{key:"total",get:function(){return this.accessor().total}},{key:"length",get:function(){return this.accessor().data.length}},{key:"first",get:function(){return this.accessor().data[0]}},{key:"last",get:function(){return this.accessor().data[this.length-1]}},{key:"at",value:function(t){return Bmt(this.accessor().data,t)}},{key:"map",value:function(t){return this.accessor().map(t)}},{key:"filter",value:function(t){return this.accessor().filter(t)}},{key:"reduce",value:function(t,e){return this.accessor().reduce(t,e)}},{key:"forEach",value:function(t){this.accessor().forEach(t)}},{key:"some",value:function(t){return this.accessor().some(t)}},{key:zu,value:function(){return this.accessor()[zu]()}},{key:"toString",value:function(){return this.accessor().toString()}}]),i}(),phe=function(){function i(r,t,e){var n=this;p(this,i),this.keysX=new Map,this.totalKeysCount=0,r&&t&&e&&r.forEach(function(a){return n.add(a[t],a[e])})}return v(i,[{key:"size",get:function(){return this.totalKeysCount}},{key:"add",value:function(t,e){this.keysX.has(t)||this.keysX.set(t,new Set),this.has(t,e)||(this.keysX.get(t).add(e),this.totalKeysCount+=1)}},{key:"delete",value:function(t,e){this.has(t,e)&&(this.keysX.get(t).delete(e),this.totalKeysCount-=1)}},{key:"has",value:function(t,e){return this.keysX.has(t)&&this.keysX.get(t).has(e)}},{key:"clear",value:function(){this.keysX.clear(),this.totalKeysCount=0}},{key:"toArray",value:function(t,e){return Array.from(this.keysX).reduce(function(n,a){var o=Gt(a,2),s=o[0];return Array.from(o[1]).forEach(function(u){var c;return n.push((De(c={},t,s),De(c,e,u),c))}),n},[])}}]),i}(),Gm=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),ghe=function(){var i=function(){function r(t,e){p(this,r),this.ctx=t,this.cd=e,this.selectedKeys=[],this.selectedKeysChange=new O,this.rowSelectionState=new Set,this.cellSelectionState=new phe,this.init()}return v(r,[{key:"isCellSelectionMode",get:function(){return He(this.ctx.grid.selectable)&&this.ctx.grid.selectable.cell}},{key:"ngOnChanges",value:function(e){He(e.selectedKeys)&&this.lastSelectionState!==this.selectedKeys&&this.setState(this.selectedKeys)}},{key:"init",value:function(){var e=this;He(this.ctx.grid.rowSelected)||(this.ctx.grid.rowSelected=function(n){return e.rowSelectionState.has(e.getItemKey(n))}),He(this.ctx.grid.cellSelected)||(this.ctx.grid.cellSelected=function(n,a,o){var s=e.getSelectionItem(n,a,o);return{selected:e.cellSelectionState.has(s.itemKey,s.columnKey),item:s}}),this.selectionChangeSubscription=this.ctx.grid.selectionChange.subscribe(this.onSelectionChange.bind(this))}},{key:"destroy",value:function(){this.selectionChangeSubscription.unsubscribe()}},{key:"reset",value:function(){this.rowSelectionState.clear(),this.cellSelectionState.clear()}},{key:"getItemKey",value:function(e){if(this.selectionKey){if("string"==typeof this.selectionKey)return e.dataItem[this.selectionKey];if("function"==typeof this.selectionKey)return this.selectionKey(e)}return e.index}},{key:"getSelectionItem",value:function(e,n,a){var o={};return o.itemKey=this.getItemKey(e),He(n)||He(a)?(this.columnKey&&("string"==typeof this.columnKey&&(o.columnKey=e.dataItem[this.columnKey]),"function"==typeof this.columnKey&&(o.columnKey=this.columnKey(n,a))),{itemKey:o.itemKey,columnKey:o.columnKey?o.columnKey:a}):o}},{key:"onSelectionChange",value:function(e){var n=this;e.selectedRows?(e.deselectedRows.forEach(function(a){var o=n.getItemKey(a);n.rowSelectionState.delete(o)}),"single"===this.ctx.grid.selectableSettings.mode&&this.rowSelectionState.size>0&&this.reset(),e.selectedRows.forEach(function(a){var o=n.getItemKey(a);n.rowSelectionState.add(o)})):(e.deselectedCells.forEach(function(a){n.cellSelectionState.delete(a.itemKey,a.columnKey)}),"single"===this.ctx.grid.selectableSettings.mode&&this.cellSelectionState.size>0&&this.reset(),e.selectedCells.forEach(function(a){n.cellSelectionState.add(a.itemKey,a.columnKey)})),this.cd.markForCheck(),this.notifyChange()}},{key:"notifyChange",value:function(){this.lastSelectionState=this.stateToArray(),this.selectedKeysChange.emit(this.lastSelectionState)}},{key:"setState",value:function(e){this.reset(),this.isCellSelectionMode?this.cellSelectionState=new phe(e,"itemKey","columnKey"):this.rowSelectionState=new Set(e)}},{key:"stateToArray",value:function(){return this.isCellSelectionMode?this.cellSelectionState.toArray("itemKey","columnKey"):Array.from(this.rowSelectionState)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gm),m(nt))},i.\u0275dir=X({type:i,selectors:[["kendo-grid-selection-base"]],inputs:{selectedKeys:"selectedKeys",selectionKey:["kendoGridSelectBy","selectionKey"],columnKey:"columnKey"},outputs:{selectedKeysChange:"selectedKeysChange"},features:[Ie]}),i}(),xV=function(){function i(r){p(this,i),this.columns=r,this.allColumns=new Ei,this.leafColumns=new Ei,this.lockedColumns=new Ei,this.nonLockedColumns=new Ei,this.lockedLeafColumns=new Ei,this.nonLockedLeafColumns=new Ei,this.totalLevels=0,this.changes=new O,this.leafColumnsToRender=[],this.lockedColumnsToRender=[],this.nonLockedColumnsToRender=[],this.hasGroupHeaderColumn=!1,this.hasGroupFooter=!1,this.hasFooter=!1,this.unlockedWidth=0}return v(i,[{key:"refresh",value:function(){var t=this,e=this.totalLevels,n=new Array,a=new Array,o=new Array,s=new Array,l=new Array,u=new Array,c=new Array,d=new Array,h=new Array,f=!1,g=!1,_=!1,C=0,w=0;this.totalLevels=0,this.columns().forEach(function(M){var R=!0===M.isLocked?a:o,N=!0===M.isLocked?s:l,V=!0===M.isLocked?d:h;Bm(M)||(R.push(M),n.push(M),c.push.apply(c,nd([M])),V.push.apply(V,nd([M])),f=f||wV(function(U){return Boolean(U.groupHeaderColumnTemplateRef)},M),g=g||wV(function(U){return Boolean(U.groupFooterTemplateRef)},M),_=_||wV(function(U){return Boolean(U.footerTemplateRef)},M),M.isLocked||(C+=M.width||0),M.isSpanColumn?M.childColumns.forEach(function(U){U.leafIndex=w++}):M.leafIndex=w++),N.push(M),u.push(M),t.totalLevels=M.level>t.totalLevels?M.level:t.totalLevels}),this.hasGroupHeaderColumn=f,this.hasGroupFooter=g,this.hasFooter=_,this.leafColumnsToRender=c,this.lockedColumnsToRender=d,this.nonLockedColumnsToRender=h,this.unlockedWidth=C;var E=function(){for(var r=!1,t=0;t component.")}else e.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Ymt=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.call(this)}return v(t)}(Ov),FV=function(){var i=v(function r(){p(this,r),this.scroll=!1});return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Jmt=function(r){return window.matchMedia(r).matches},yhe=function(){var i=function(){function r(){p(this,r),this.matchMedia=Jmt}return v(r,[{key:"matchesMedia",value:function(e){return!e||this.matchMedia(function(r){return{xs:"(max-width: 576px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}[r]||r}(e))}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),eA=function(){var i=function(){function r(){p(this,r),this.saveToExcel=new O,this.exportClick=new O}return v(r,[{key:"save",value:function(e){if(0===this.saveToExcel.observers.length){if(xt())throw new Error("Saving excel requires including the ExcelModule and adding the component.")}else this.saveToExcel.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),LV=function(){var i=function(){function r(t){p(this,r),this.templateRef=t,this._position="top"}return v(r,[{key:"position",get:function(){return this._position},set:function(e){this._position=e}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridToolbarTemplate",""]],inputs:{position:"position"}}),i}(),tA=function(){var i=function(){function r(t){var e=this;p(this,r),this.ngZone=t,this.changes=new Ot,this.elements=[],this.subscriptions=new Je,this.headerSubscription=new Je,this.bodySubscription=new Je,this.subscriptions.add(this.changes.subscribe(function(n){return e.scrollLeft(n)}))}return v(r,[{key:"registerEmitter",value:function(e,n){var a=this;this.unregister(n),this.elements.push({element:e,sourceType:n}),("body"===n||"header"===n)&&this.ngZone.runOutsideAngular(function(){var o=li(e,"scroll").pipe(We(function(l){return{scrollLeft:l.target.scrollLeft,sourceType:n}})),s=o.pipe(function y7e(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zl;return i=null!=i?i:k7e,oi(function(t,e){var n,a=!0;t.subscribe(Wn(e,function(o){var s=r(o);(a||!i(n,s))&&(a=!1,n=s,e.next(o))}))})}(function(l,u){return l.scrollLeft===u.scrollLeft}),Ue(function(l){return!a.source||a.source===l.sourceType}),At(function(l){return a.source=l.sourceType})).subscribe(function(l){return a.changes.next(l)});s.add(o.pipe(Ue(function(l){return a.source&&a.source!==l.sourceType})).subscribe(function(){return a.source=void 0})),"body"===n?a.bodySubscription.add(s):a.headerSubscription.add(s)})}},{key:"destroy",value:function(){this.subscriptions.unsubscribe(),this.headerSubscription.unsubscribe(),this.bodySubscription.unsubscribe()}},{key:"scrollLeft",value:function(e){var n=this,a=e.scrollLeft,o=e.sourceType;this.ngZone.runOutsideAngular(function(){n.elements.filter(function(s){return o!==s.sourceType}).forEach(function(s){return s.element.scrollLeft=a})})}},{key:"unregister",value:function(e){var n=this.elements.findIndex(function(a){return a.sourceType===e});n>-1&&("header"===e?(this.headerSubscription.unsubscribe(),this.headerSubscription=new Je):"body"===e&&(this.bodySubscription.unsubscribe(),this.bodySubscription=new Je),this.elements.splice(n,1))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(be))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),PV=function(){var i=function(){function r(){p(this,r),this.resizeSubscription=new Je(function(){}),this.dispatcher=new Ot,this.changes=this.dispatcher.asObservable().pipe(FL(100))}return v(r,[{key:"connect",value:function(e){this.resizeSubscription.add(e.subscribe(this.dispatcher))}},{key:"destroy",value:function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),khe=function i(r){return r.parent?i(r.parent):!!r.locked},Che=function(r,t){return Object.assign({columns:XT([r]),locked:khe(r)},t)},xb=function(){var i=function(){function r(){p(this,r),this.changes=new O,this.tables=[],this.batch=null}return v(r,[{key:"start",value:function(e){this.trackColumns(e);var n=(this.column.isColumnGroup?[e]:[]).concat(XT([e]));this.changes.emit({columns:n,locked:khe(this.column),type:"start"})}},{key:"resizeColumns",value:function(e){var n=Che(this.column,{deltaPercent:e,type:"resizeColumn"});this.changes.emit(n)}},{key:"resizeTable",value:function(e,n){var a=Che(e,{delta:n,type:"resizeTable"});this.changes.emit(a)}},{key:"resizedColumn",value:function(e){this.resizedColumns.push(e)}},{key:"end",value:function(){this.changes.emit({columns:[],resizedColumns:this.resizedColumns,type:"end"})}},{key:"registerTable",value:function(e){var n=this;return this.tables.push(e),function(){n.tables.splice(n.tables.indexOf(e),1)}}},{key:"measureColumns",value:function(e){var a,n=this;null!==this.batch?(a=this.batch).push.apply(a,Ae(e)):this.autoFitBatch(e,function(){return n.end()})}},{key:"autoFit",value:function(){for(var e=this,n=arguments.length,a=new Array(n),o=0;o0&&e[0].column.isLocked,s=this.tables.filter(function(l){return l.locked===o}).map(function(l){return l.autoFit(e)});_7e.apply(void 0,Ae(s)).pipe(It(1)).subscribe(function(l){a.changes.emit({columns:e.map(function(u){return u.column}),type:"autoFitComplete",widths:l,locked:o}),n&&n()}),this.batch=null}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),nA=function(r){return!0===r||"string"==typeof r&&r.indexOf("row")>-1},n_t=function(i){b(t,i);var r=S(t);function t(e){var n;return p(this,t),(n=r.call(this)).originalEvent=e,n}return v(t)}(Ov),i_t="k-grid-filter-popup",Mb=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.popupService=t,this.renderer=e,this.ngZone=n,this.localization=o,this.onClose=new Ot,this.scrollSubscription=a.changes.subscribe(function(){return s.destroy()})}return v(r,[{key:"open",value:function(e,n,a){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i_t,s=He(a)&&this.popupRef===a;if(this.destroy(),!s){var l=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchorAlign:{vertical:"bottom",horizontal:l},popupAlign:{vertical:"top",horizontal:l},anchor:e,popupClass:o,content:n,positionMode:"absolute"}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.attachClose(e)}return this.popupRef}},{key:"destroy",value:function(){this.popupRef&&(this.detachClose(),this.popupRef.close(),this.popupRef=null)}},{key:"ngOnDestroy",value:function(){this.destroy(),this.scrollSubscription.unsubscribe()}},{key:"detachClose",value:function(){this.removeClick&&this.removeClick()}},{key:"attachClose",value:function(e){var n=this;this.detachClose(),this.ngZone.runOutsideAngular(function(){return n.removeClick=n.renderer.listen("document","click",function(a){if(!function(r,t){for(;r;){if(n.popupRef.popupElement===(s=r)||s===e)return!0;r=r.parentNode}var s;return!1}(a.target)){var o=new n_t(a);n.onClose.next(o),o.isDefaultPrevented()||n.destroy()}})})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(kr),oe(Ee),oe(be),oe(tA),oe(Y))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),bhe=function(r){var t=!1;return function(){return t||(document.body.appendChild(r),t=!0),r}},She=function(r){var t=function(r){return r.ownerDocument.documentElement}(r),e=t.clientTop,n=t.clientLeft,a=function(r){return r.ownerDocument.defaultView}(r),o=a.pageYOffset,s=a.pageXOffset,l=r.getBoundingClientRect();return{top:l.top+o-e,left:l.left+s-n}},whe=function(r,t){return 0!=(4&t.compareDocumentPosition(r))},o_t=function(r,t){return r===t||0!=(16&t.compareDocumentPosition(r))},Dhe=function(r,t){var e=She(r);return{left:e.left+(t?0:r.offsetWidth),top:e.top,height:r.offsetHeight}},BV=function(){var i=function(){function r(){p(this,r),this.changes=new O,this.register=[],this.lastTarget=null}return v(r,[{key:"add",value:function(e){this.register.push(e)}},{key:"remove",value:function(e){this.register=this.register.filter(function(n){return n!==e})}},{key:"notifyDrag",value:function(e,n,a){var o=this.targetFor(n);this.lastTarget!==o&&(this.changes.next({draggable:e,mouseEvent:a,target:this.lastTarget,type:"leave"}),o&&this.changes.next({draggable:e,mouseEvent:a,target:o,type:"enter"}),this.lastTarget=o)}},{key:"notifyDrop",value:function(e,n){this.changes.next({draggable:e,mouseEvent:n,target:this.lastTarget,type:"drop"}),this.lastTarget=null}},{key:"targetFor",value:function(e){var n=o_t.bind(null,e);return this.register.find(function(a){return n(a.element.nativeElement)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Ehe=function(r,t){var e=r.querySelector(".k-icon");e.className=e.className.replace(/(plus|cancel)/,t?"plus":"cancel")},The=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=r.querySelectorAll(".k-icon")[1],n=null===t?"":t?"k-i-lock":"k-i-unlock";e.className=e.className.replace(/(k-i-unlock|k-i-lock)/,"")+" ".concat(n)},iA=function(){var i=function(){function r(t){p(this,r),this.santizer=t}return v(r,[{key:"create",value:function(e){this.dom=document.createElement("div"),function(r){r.className="k-header k-drag-clue",r.style.position="absolute",r.style.zIndex="20000"}(this.dom);var n=this.santizer.sanitize(ki.HTML,e);this.dom.innerHTML='\n \n \n \n '.concat(n,"\n ")}},{key:"attach",value:function(){return bhe(this.dom)}},{key:"remove",value:function(){var e;this.dom&&this.dom.parentNode&&(e=this.dom,setTimeout(function(){return document.body.removeChild(e)}),this.dom=null)}},{key:"show",value:function(){this.dom.style.display=""}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"enable",value:function(){Ehe(this.dom,!0)}},{key:"disable",value:function(){Ehe(this.dom,!1)}},{key:"removeLock",value:function(){The(this.dom)}},{key:"toggleLock",value:function(e){The(this.dom,e)}},{key:"move",value:function(e){this.dom.style.top=e.pageY+"px",this.dom.style.left=e.pageX+"px"}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(uK))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),rA=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"create",value:function(){this.dom=document.createElement("div"),this.dom.className="k-grouping-dropclue",this.hide()}},{key:"attach",value:function(){return bhe(this.dom)}},{key:"remove",value:function(){this.dom&&this.dom.parentElement&&(document.body.removeChild(this.dom),this.dom=null)}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"position",value:function(e){var n=e.left,a=e.top,o=e.height;this.dom.style.display="block",this.dom.style.height=o+"px",this.dom.style.top=a+"px",this.dom.style.left=n-this.dom.offsetWidth/2+"px"}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),GV=function(){var i=function(){function r(){p(this,r),this.changes=new O}return v(r,[{key:"reorder",value:function(e){this.changes.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),l_t=function(i){b(t,i);var r=S(t);function t(e){var n,a=e.column,o=e.newIndex,s=e.oldIndex;return p(this,t),(n=r.call(this)).column=a,n.newIndex=o,n.oldIndex=s,n}return v(t)}(Ov),u_t=function(){function i(r,t,e,n,a,o,s,l){p(this,i),this.dataRows=r,this.headerRows=t,this.isVirtual=e,this.hasPager=n,this.hasDetailTemplate=a,this.gridElement=o,this.virtualColumns=s,this.columns=l}return v(i,[{key:"maxLogicalRowIndex",get:function(){return this.headerRows+(this.hasDetailTemplate?2*this.dataRows:this.dataRows)-1}}]),i}(),c_t={left:"0px",right:"0px"},fs=function(){var i=function(){function r(){p(this,r),this.visibilityChange=new O,this.lockedChange=new O,this.stickyChange=new O,this.columnRangeChange=new O,this.columnsContainer=new xV(function(){return[]})}return v(r,[{key:"lockedLeafColumns",get:function(){return this.columnsContainer.lockedLeafColumns}},{key:"nonLockedLeafColumns",get:function(){return this.columnsContainer.nonLockedLeafColumns}},{key:"isLocked",get:function(){return this.lockedLeafColumns.length>0}},{key:"totalLevels",get:function(){return this.columnsContainer.totalLevels}},{key:"hiddenColumns",get:function(){return this.list?this.list().filter(function(e){return!e.isVisible}):[]}},{key:"leafNamedColumns",get:function(){var e=Wu(this.list().filterSort(function(n){return!n.isColumnGroup})).filter(function(n){return n.matchesMedia&&n.displayTitle});return GE(e,[{field:"locked",dir:"desc"}])}},{key:"unlockedRootCount",get:function(){return this.list().rootColumns().filter(function(e){return!e.locked&&e.isVisible}).length}},{key:"stickyColumnsStyles",value:function(e){if(this.stickyColumns||(this.stickyColumns=this.list().rootColumns().filter(function(a){return a.sticky&&!a.locked&&a.isVisible})),0===this.stickyColumns.length)return c_t;var n=this.stickyColumns.reduce(function(a,o){return o.leafIndexe.leafIndex&&(a.right+=o.width),a},{left:0,right:0});return{left:"".concat(n.left,"px"),right:"".concat(n.right,"px")}}},{key:"init",value:function(e,n){this.columnsContainer=e,this.list=n,this.stickyColumns=null}},{key:"changeVisibility",value:function(e){this.stickyColumns=null,this.visibilityChange.emit(e)}},{key:"changeLocked",value:function(e){this.stickyColumns=null,this.lockedChange.emit(e)}},{key:"changeStuck",value:function(e){this.stickyColumns=null,this.stickyChange.emit(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),aA=function(){function i(){p(this,i),this.changes=new Ot}return v(i,[{key:"sort",value:function(t){this.changes.next(t)}}]),i}(),d_t=v(function i(r){p(this,i),this.columns=r}),Ahe=v(function i(r){p(this,i),this.columns=r});function VV(i,r){return"data"===r.type&&r.isEditing?r.data:i}var f_t=v(function i(r){p(this,i),this.columns=r}),UV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCellLoadingTemplate",""]]}),i}(),zV=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLoadingTemplate",""]]}),i}(),HV=function(){var i=function(){function r(t){p(this,r),this.ctx=t,this.context={}}return v(r,[{key:"position",set:function(e){this.context.position=e}},{key:"toolbarTemplateRef",get:function(){return this.ctx.grid.toolbarTemplate?this.ctx.grid.toolbarTemplate.templateRef:void 0}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gm))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-toolbar"]],inputs:{position:"position"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&T(0,Lht,1,2,null,0),2&t&&y("ngIf",e.toolbarTemplateRef)},directives:[qe,En],encapsulation:2}),i}(),Mhe=function(r){return function(r){var t=r.buttonCount,n=r.info,o=r.type,l=r.pageSizes,u=void 0!==l&&l,c=r.previousNext,h=r.responsive,g=r.position;return{buttonCount:void 0===t?10:t,info:void 0===n||n,pageSizes:!0===u?[5,10,20]:u,previousNext:void 0===c||c,type:void 0===o?"numeric":o,responsive:void 0===h||h,position:void 0===g?"bottom":g}}(!0===r?{}:r)},Vm=function(){var i=function(){function r(t){p(this,r),this.root=t,this.active=!0,this.children=[],this.root.registerGroup(this)}return v(r,[{key:"focusableChildren",get:function(){return this.children.filter(function(e){return e.canFocus()})}},{key:"isActive",get:function(){return this.active}},{key:"ngOnDestroy",value:function(){this.root.unregisterGroup(this)}},{key:"registerElement",value:function(e){this.unregisterElement(e),this.children.push(e)}},{key:"unregisterElement",value:function(e){this.children=this.children.filter(function(n){return n!==e})}},{key:"isNavigable",value:function(){var e=this.focusableChildren;return 1===e.length&&e[0].isNavigable()}},{key:"canFocus",value:function(){return this.focusableChildren.length>0}},{key:"focus",value:function(){this.canFocus()&&!this.hasFocus()&&this.focusableChildren[0].focus()}},{key:"activate",value:function(){this.toggleState(!0)}},{key:"deactivate",value:function(){this.toggleState(!1)}},{key:"hasFocus",value:function(){return this.children.reduce(function(e,n){return e||n.hasFocus()},!1)}},{key:"toggleState",value:function(e){this.active!==e&&(this.active=e,this.children.forEach(function(n){return n.toggle(e)}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Eh))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Um=function(){var i=function(){function r(t,e,n){p(this,r),this.localization=t,this.pagerContext=e,this.cd=n,this.total=this.pagerContext.total,this.skip=this.pagerContext.skip,this.pageSize=this.pagerContext.pageSize}return v(r,[{key:"currentPage",get:function(){return Math.floor((this.skip||0)/this.pageSize)+1}},{key:"totalPages",get:function(){return Math.ceil((this.total||0)/this.pageSize)}},{key:"textFor",value:function(e){return this.localization.get(e)}},{key:"changePage",value:function(e){return this.pagerContext.changePage(e),!1}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions=this.pagerContext.changes.subscribe(this.onChanges.bind(this)),this.subscriptions.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ju),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-element-base"]],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),KV=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a,o)).navigationService=s,l}return v(e,[{key:"disabled",get:function(){return 1===this.currentPage||!this.total}},{key:"onChanges",value:function(a){var s=a.skip,l=a.pageSize;this.total=a.total,this.skip=s,this.pageSize=l,this.cd.markForCheck()}}]),e}(Um);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ju),m(nt),m(Va))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-prev-buttons"]],features:[j],decls:4,vars:16,consts:[["role","button",3,"kendoGridFocusable","title","ngClass","click","keydown.enter"],["role","note",3,"ngClass"]],template:function(t,e){1&t&&(A(0,"span",0),Q("click",function(){return 1!==e.currentPage&&e.changePage(0)})("keydown.enter",function(){return 1!==e.currentPage&&e.changePage(0)}),z(1,"span",1),x(),A(2,"span",0),Q("click",function(){return 1!==e.currentPage&&e.changePage(e.currentPage-2)})("keydown.enter",function(){return 1!==e.currentPage&&e.changePage(e.currentPage-2)}),z(3,"span",1),x()),2&t&&(y("kendoGridFocusable",!e.disabled)("title",e.textFor("pagerFirstPage"))("ngClass",ot(10,Pht,e.disabled)),k(1),y("ngClass",Tt(12,Bht)),ie("aria-label",e.textFor("pagerFirstPage")),k(1),y("kendoGridFocusable",!e.disabled)("title",e.textFor("pagerPreviousPage"))("ngClass",ot(13,Hde,e.disabled)),k(1),y("ngClass",Tt(15,Ght)),ie("aria-label",e.textFor("pagerPreviousPage")))},directives:[co,Nt],encapsulation:2,changeDetection:0}),i}(),jV=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,o,a)).pagerContext=o,s.numbersWrapClass=!0,s}return v(e,[{key:"buttons",get:function(){for(var a=[],o=this.start;o<=this.end;o++)a.push(o);return a}},{key:"end",get:function(){return Math.min(this.start+this.buttonCount-1,this.totalPages)}},{key:"start",get:function(){var a=this.currentPage,o=this.buttonCount;if(a>o){var s=a%o;return 0===s?a-o+1:a-s+1}return 1}},{key:"pageLabel",value:function(a){var o=this.textFor("pagerPage");return o?o+" "+a:a.toString()}},{key:"onSelectChange",value:function(a){var o=a.target,s=Number(o.value);Number.isNaN(s)?this.changePage("previousButtons"===o.value?this.start-2:this.end):this.changePage(s-1)}},{key:"onChanges",value:function(a){var s=a.skip,l=a.pageSize;this.total=a.total,this.skip=s,this.pageSize=l,this.cd.markForCheck()}}]),e}(Um);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(nt),m(ju))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager-numeric-buttons"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-pager-numbers-wrap",e.numbersWrapClass)},inputs:{buttonCount:"buttonCount"},features:[j],decls:8,vars:8,consts:[["kendoGridFocusable","","tabindex","0",1,"k-dropdownlist","k-pager-nav",3,"change"],["class","k-link","value","previousButtons",3,"selected",4,"ngIf"],[3,"value","selected","ngClass",4,"ngFor","ngForOf"],["value","nextButtons","class","k-link",3,"selected",4,"ngIf"],[3,"ngClass"],[4,"ngIf"],[4,"ngFor","ngForOf"],["value","previousButtons",1,"k-link",3,"selected"],[3,"value","selected","ngClass"],["value","nextButtons",1,"k-link",3,"selected"],["kendoGridFocusable","","tabindex","0","role","button",1,"k-link","k-pager-nav",3,"click","keydown.enter"],["kendoGridFocusable","","tabindex","0","role","button",3,"ngClass","click","keydown.enter"]],template:function(t,e){1&t&&(A(0,"select",0),Q("change",function(a){return e.onSelectChange(a)}),T(1,Vht,2,2,"option",1),T(2,zht,2,8,"option",2),T(3,Hht,2,2,"option",3),x(),A(4,"ul",4),T(5,Kht,3,1,"li",5),T(6,Wht,3,5,"li",6),T(7,$ht,3,1,"li",5),x()),2&t&&(k(1),y("ngIf",e.start>1),k(1),y("ngForOf",e.buttons),k(1),y("ngIf",e.end1),k(1),y("ngForOf",e.buttons),k(1),y("ngIf",e.end=600&&f<768?(d.renderer.addClass(h,"k-pager-md"),d.renderer.removeClass(h,"k-pager-sm")):d.clearResponsiveClasses()}}}return v(r,[{key:"options",set:function(e){this.settings=Mhe(e)}},{key:"isFocused",get:function(){return this._isFocused}},{key:"pagerAriaLabel",get:function(){return this.navigationService.enabled?this.pagerLabel:void 0}},{key:"pagerLabel",get:function(){var e=this.localizationService.get("pagerLabel")||"";return Ea(Ea(e,"currentPage",this.currentPage.toString()),"totalPages",this.totalPages.toString())}},{key:"focusTrapTabIndex",get:function(){return this.focusGroup.isActive?"0":"-1"}},{key:"onFocusIn",value:function(e){this.navigationService.enabled&&(e.target===this.element.nativeElement?(this._isFocused=!0,this.focusRoot.deactivate()):this.focusRoot.activate())}},{key:"onFocusOut",value:function(){this.navigationService.enabled&&(this._isFocused=!1)}},{key:"onEscape",value:function(){this.navigationService.enabled&&(this.focusRoot.deactivate(),this.element.nativeElement.focus())}},{key:"onEnter",value:function(e){this.navigationService.enabled&&e.target===this.element.nativeElement&&(this.focusRoot.activate(),this.focusFirstElement())}},{key:"navigateToPreviousPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage>1)&&this.pagerContext.prevPage()}},{key:"navigateToNextPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage1)&&this.pagerContext.changePage(0)}},{key:"navigateToLastPage",value:function(e){this.shouldTriggerPageChange(e.target,this.currentPage1&&void 0!==arguments[1])||arguments[1];return Qgt(r,function(e){return wb(e,t)},!1)}(this.element.nativeElement,!0);e&&e.focus()}},{key:"updateCellContext",value:function(){this.cellContext&&(this.cellContext.focusGroup=this.focusGroup)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ju),m(Va),m(ke),m(Ee),m(be),m(Y),m(td,8),m(Eh),m(Vm))},i.\u0275cmp=L({type:i,selectors:[["kendo-pager"]],hostVars:7,hostBindings:function(t,e){1&t&&Q("focusin",function(a){return e.onFocusIn(a)})("focusout",function(){return e.onFocusOut()})("keydown.escape",function(){return e.onEscape()})("keydown.enter",function(a){return e.onEnter(a)})("keydown.arrowleft",function(a){return e.navigateToPreviousPage(a)})("keydown.pageup",function(a){return e.navigateToPreviousPage(a)})("keydown.arrowright",function(a){return e.navigateToNextPage(a)})("keydown.pagedown",function(a){return e.navigateToNextPage(a)})("keydown.home",function(a){return e.navigateToFirstPage(a)})("keydown.end",function(a){return e.navigateToLastPage(a)}),2&t&&(ie("aria-label",e.pagerAriaLabel),ue("k-pager-wrap",e.pagerWrapClass)("k-grid-pager",e.gridPagerClass)("k-state-focused",e.isFocused))},inputs:{total:"total",skip:"skip",pageSize:"pageSize",options:"options",template:"template"},outputs:{pageChange:"pageChange"},features:[de([{provide:fV,useValue:!0},{provide:Eh,deps:[fV],useClass:Eh},{provide:Vm,deps:[Eh],useClass:Vm}]),Ie],decls:5,vars:5,consts:[["class","k-sr-only",3,"tabindex","focusin",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[4,"ngIf"],[3,"resize",4,"ngIf"],[1,"k-sr-only",3,"tabindex","focusin"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"buttonCount",4,"ngIf"],[3,"pageSizes",4,"ngIf"],[3,"buttonCount"],[3,"pageSizes"],["pageSizes",""],[3,"resize"]],template:function(t,e){1&t&&(T(0,eft,1,2,"div",0),T(1,tft,1,2,"ng-container",1),T(2,lft,7,6,"ng-container",2),T(3,uft,1,2,"div",0),T(4,cft,1,0,"kendo-resize-sensor",3)),2&t&&(y("ngIf",e.navigationService.enabled),k(1),y("ngIf",null==e.template?null:e.template.templateRef),k(1),y("ngIf",!(null!=e.template&&e.template.templateRef)),k(1),y("ngIf",e.navigationService.enabled),k(1),y("ngIf",e.settings.responsive))},directives:[KV,jV,$V,qV,XV,YV,Gr,qe,En],encapsulation:2}),i}(),Rb=function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.service=e,this.context={},this.enter=new O,this.leave=new O,this.drop=new O,this.subscriptions=new Je}return v(r,[{key:"ngOnInit",value:function(){var e=this;this.service.add(this);var n=this.service.changes.pipe(Ue(function(a){return a.target===e}));this.subscriptions.add(n.pipe(Ue(function(a){return"leave"===a.type})).subscribe(function(a){e.leave.next(e.eventArgs(a))})),this.subscriptions.add(n.pipe(Ue(function(a){return"enter"===a.type})).subscribe(function(a){e.enter.next(e.eventArgs(a))})),this.subscriptions.add(n.pipe(Ue(function(a){return"drop"===a.type})).subscribe(function(a){e.drop.next(e.eventArgs(a))}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"eventArgs",value:function(e){return{target:this,mouseEvent:e.mouseEvent,draggable:e.draggable}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(BV))},i.\u0275dir=X({type:i,selectors:[["","kendoDropTarget",""]],inputs:{context:"context"},outputs:{enter:"enter",leave:"leave",drop:"drop"}}),i}(),Rhe=function(){var i=function(){function r(){p(this,r),this.directionChange=new O,this.remove=new O}return v(r,[{key:"groupIndicatorClass",get:function(){return!0}},{key:"dir",get:function(){return this.group.dir?this.group.dir:"asc"}},{key:"toggleDirection",value:function(){return this.directionChange.emit({dir:"asc"===this.dir?"desc":"asc",field:this.group.field}),!1}},{key:"removeDescriptor",value:function(){return this.remove.emit({dir:this.group.dir,field:this.group.field}),!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGroupIndicator",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-group-indicator",e.groupIndicatorClass)},inputs:{group:"group",groupTitle:"groupTitle"},outputs:{directionChange:"directionChange",remove:"remove"},attrs:dft,decls:5,vars:5,consts:[["href","#","tabindex","-1",1,"k-link",3,"click"],[1,"k-icon"],["tabindex","-1",1,"k-button","k-button-flat-base","k-button-flat","k-icon-button","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"click"],[1,"k-button-icon","k-icon","k-i-group-delete"]],template:function(t,e){1&t&&(A(0,"a",0),Q("click",function(){return e.toggleDirection()}),z(1,"span",1),te(2),x(),A(3,"a",2),Q("click",function(){return e.removeDescriptor()}),z(4,"span",3),x()),2&t&&(k(1),ue("k-i-sort-asc-sm","asc"===e.dir)("k-i-sort-desc-sm","desc"===e.dir),k(1),Pt(" ",e.groupTitle,""))},encapsulation:2,changeDetection:0}),i}(),sA=function(r){return function(t){return new RegExp("(^| )".concat(r,"( |$)")).test(t.className)}},g_t=UT(sA("k-i-group-delete"),sA("k-icon-button")),m_t=UT(sA("k-i-sort-asc-sm"),sA("k-i-sort-desc-sm")),__t=lV(Sb(g_t),Sb(m_t),Sb(wb),Sb(Ta("label"))),Ohe=function(r){return document.elementFromPoint(r.clientX,r.clientY)},JV=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.draggable=t,this.element=e,this.zone=n,this.service=a,this.hint=o,this.cue=s,this.nav=l,this.renderer=u,this.context={},this.drag=new O,this.subscriptions=new Je}return v(r,[{key:"enableDrag",set:function(e){this.enabled=e,this.updateTouchAction()}},{key:"hostClass",get:function(){return this.enabled}},{key:"ngOnInit",value:function(){var e=this;this.subscriptions.add(this.zone.runOutsideAngular(function(){return e.draggable.kendoPress.pipe(Ue(function(n){return e.enabled}),Ue(function(n){var a=n.originalEvent.target;return a===e.element.nativeElement||__t(a)}),At(function(n){var a=n.originalEvent;n.isTouch||a.preventDefault(),e.nav.navigateTo(a.target)}),Nn(function(r){return function(t){return lt(t).pipe(Dd(150),Qr(r))}}(e.draggable.kendoRelease)),At(function(n){e.hint.create(e.context.hint),e.cue.create()}),Nn(function(n){return e.draggable.kendoDrag.pipe(At(function(a){a.isTouch&&a.originalEvent.preventDefault()}),At(e.hint.attach()),At(e.cue.attach()),Qr(e.draggable.kendoRelease),We(function(a){return{move:a,down:n}}))}),At(e.performDrag.bind(e)),TE(e.draggable.kendoRelease)).subscribe(e.drop.bind(e))}))}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe()}},{key:"drop",value:function(e){this.hint.remove(),this.cue.remove(),this.service.notifyDrop(this,e)}},{key:"performDrag",value:function(e){var n=e.move;this.hint.move(n);var a=this.elementUnderCursor(n);a&&this.service.notifyDrag(this,a,n),this.drag.emit({draggable:this,mouseEvent:n})}},{key:"elementUnderCursor",value:function(e){this.hint.hide();var n=Ohe(e);return n&&/k-grouping-dropclue/.test(n.className)&&(n=function(r,t){r.style.display="none";var e=t();return r.style.display="block",e}(n,Ohe.bind(this,e))),this.hint.show(),n}},{key:"updateTouchAction",value:function(){!this.element||(this.enabled?this.renderer.addClass(this.element.nativeElement,"k-touch-action-none"):this.renderer.removeClass(this.element.nativeElement,"k-touch-action-none"))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(ke),m(be),m(BV),m(iA),m(rA),m(Va),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","kendoDraggableColumn",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-draggable-header",e.hostClass)},inputs:{context:"context",enableDrag:"enableDrag"},outputs:{drag:"drag"}}),i}(),k_t=function(r){return wr(r.field)},C_t=function(r){var e=r.field;return r.groups.some(function(n){return n.field===e})},T_t=UT(function(r){return r.target.field===r.field},lV(function(r){return r.target.lastTarget},function(r){var t=r.groups,e=r.field;return t.map(function(n){return n.field}).indexOf(e)===t.length-1})),Ihe=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.hint=t,this.cue=e,this.groupInfoService=n,this.localization=a,this.cd=o,this.change=new O,this.groups=[],this.dropTargets=new Ei,this.groupTitles=[],this.subscription=new Je}return v(r,[{key:"groupHeaderClass",get:function(){return!0}},{key:"text",get:function(){return this.emptyText?this.emptyText:this.localization.get("groupPanelEmpty")},set:function(e){this.emptyText=e}},{key:"ngAfterViewInit",value:function(){this.subscription.add(VT(this.dropTargets).subscribe(this.attachTargets.bind(this)))}},{key:"ngOnInit",value:function(){var e=this;this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngDoCheck",value:function(){var e=this,n=this.groups.map(function(a){return e.groupInfoService.groupTitle(a)});(n.length!==this.groupTitles.length||n.some(function(a,o){return a!==e.groupTitles[o]}))&&(this.groupTitles=n,this.cd.markForCheck())}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.targetSubscription&&this.targetSubscription.unsubscribe()}},{key:"directionChange",value:function(e){var n=this.groups.findIndex(function(o){return o.field===e.field}),a=[].concat(Ae(this.groups.slice(0,n)),[e],Ae(this.groups.slice(n+1)));this.change.emit(a)}},{key:"insert",value:function(e,n){var a=this.groups.filter(function(o){return o.field!==e});(a.length||0===this.groups.length)&&this.change.emit([].concat(Ae(a.slice(0,n)),[{field:e}],Ae(a.slice(n))))}},{key:"remove",value:function(e){this.change.emit(this.groups.filter(function(n){return n.field!==e.field}))}},{key:"canDrop",value:function(e,n){var o="groupIndicator"===e.type?T_t:function(r){return UT(k_t,C_t,function(r){return function(t){return!r.isGroupable(t.field)}}(r))}(this.groupInfoService);return!o({field:e.field,groups:this.groups,target:n})}},{key:"attachTargets",value:function(){var e=this;this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Je;var n=this.dropTargets.reduce(function(s,l){return xn(s,l.enter)},wi([])),a=this.dropTargets.reduce(function(s,l){return xn(s,l.leave)},wi([])),o=this.dropTargets.reduce(function(s,l){return xn(s,l.drop)},wi([]));this.targetSubscription.add(n.pipe(At(function(s){return e.hint.removeLock()}),Ue(function(s){return e.canDrop(s.draggable.context,s.target.context)}),At(this.enter.bind(this)),TE(o.pipe(Qr(a.pipe(At(this.leave.bind(this))))))).subscribe(this.drop.bind(this)))}},{key:"enter",value:function(e){var n=e.draggable,a=e.target;this.hint.enable();var o=a.context.lastTarget||whe(n.element.nativeElement,a.element.nativeElement);this.localization.rtl&&(o=!o),this.cue.position(Dhe(a.element.nativeElement,o))}},{key:"leave",value:function(){this.hint.disable(),this.cue.hide()}},{key:"drop",value:function(e){var n=e.target,o=e.draggable.context.field,s=this.dropTargets.toArray().indexOf(n);this.insert(o,s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(iA),m(rA),m(QT),m(Y),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-group-panel"]],viewQuery:function(t,e){var n;1&t&&ge(Rb,5),2&t&&P(n=B())&&(e.dropTargets=n)},hostVars:4,hostBindings:function(t,e){2&t&&ue("k-grouping-header",e.groupHeaderClass)("k-grouping-header-flex",e.groupHeaderClass)},inputs:{text:"text",groups:"groups"},outputs:{change:"change"},decls:3,vars:3,consts:[[4,"ngIf"],["class","k-indicator-container","kendoDropTarget","",3,"context",4,"ngFor","ngForOf"],["class","k-indicator-container","kendoDropTarget","",3,"context",4,"ngIf"],["kendoDropTarget","",1,"k-indicator-container",3,"context"],["kendoDraggableColumn","","kendoGroupIndicator","","kendoDraggable","",3,"enableDrag","context","group","groupTitle","directionChange","remove"]],template:function(t,e){1&t&&(T(0,hft,3,3,"ng-container",0),T(1,pft,2,10,"div",1),T(2,gft,2,2,"div",2)),2&t&&(y("ngIf",0===e.groups.length),k(1),y("ngForOf",e.groups),k(1),y("ngIf",0!==e.groups.length))},directives:[Rhe,qe,Rb,gn,JV,$o],encapsulation:2,changeDetection:0}),i}(),eU=function(){var i=function(){function r(){p(this,r),this.columns=[],this.groups=[]}return v(r,[{key:"columnsToRender",get:function(){return nd(this.columns)}},{key:"trackBy",value:function(e,n){return e}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGridColGroup",""]],inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate"},attrs:mft,decls:4,vars:4,consts:[[3,"k-group-col",4,"ngFor","ngForOf"],[3,"k-hierarchy-col",4,"ngIf"],[3,"width",4,"ngFor","ngForOf","ngForTrackBy"]],template:function(t,e){1&t&&(Ge(0),T(1,_ft,1,2,"col",0),T(2,yft,1,2,"col",1),T(3,kft,1,2,"col",2),Ve()),2&t&&(k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsToRender)("ngForTrackBy",e.trackBy))},directives:[gn,qe],encapsulation:2}),i}(),A_t={allowUnsort:!0,mode:"single",showIndexes:!0,initialDirection:"asc",multiSortKey:"none"},lA=function(){for(var r=arguments.length,t=new Array(r),e=0;er?t.filters[r]:function(r,t,e){return(t=t||{filters:[],logic:"and"}).filters[r]=e,e}(r,t,{field:e,operator:n})},Hm=function(r){return[{text:r.get("filterAndLogic"),value:"and"},{text:r.get("filterOrLogic"),value:"or"}]},Ghe=function i(r){return He(r.filters)?r.filters.reduce(function(t,e){return t.concat(Hc(e)?i(e):[e])},[]):[]},N_t=function i(r,t){He(r)&&He(r.filters)&&(r.filters=r.filters.filter(function(e){return Hc(e)?(i(e,t),e.filters.length):e.field!==t}))},Ob=function(r,t){return Ghe(r||{}).filter(function(e){return e.field===t})},tU=function(r,t){return N_t(r,t),r},cA=function(r){return function(t){return Object.keys(r).map(function(e){return{text:t.get(e),value:r[e]}})}},Km=function(){var i=function(){function r(t){p(this,r),this.filterService=t,this.operatorList=new Ei}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"operators",get:function(){var e;return(null===(e=this._operators)||void 0===e?void 0:e.length)?this._operators:this.defaultOperators},set:function(e){this._operators=e}},{key:"ngAfterContentInit",value:function(){var e=this;this.operationListSubscription=VT(this.operatorList).pipe(We(function(n){return n.toArray()}),We(uA)).subscribe(function(n){e.operators=n})}},{key:"ngOnDestroy",value:function(){this.operationListSubscription&&this.operationListSubscription.unsubscribe()}},{key:"filterByField",value:function(e){return function(r,t){return Gt(Ob(r,t),1)[0]}(this.filter,e)}},{key:"filtersByField",value:function(e){return Ob(this.filter,e)}},{key:"removeFilter",value:function(e){return tU(this.filter,e)}},{key:"updateFilter",value:function(e){var n=this.filter||{filters:[],logic:"and"},s=Gt(Ghe(n).filter(function(l){return l.field===e.field}),1)[0];return He(s)?Object.assign(s,e):n.filters.push(e),n}},{key:"applyFilter",value:function(e){this.filterService.filter(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-base-filter-cell"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Tn,4),2&t&&P(a=B())&&(e.operatorList=a)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filtercell",e.hostClasses)},inputs:{operators:"operators"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),L_t=function(r,t){return r.field!==t.field||r.operator!==t.operator||r.value!==t.value},nU=function i(r){if(r)return Hc(r)?{filters:i(r.filters),logic:r.logic}:Array.isArray(r)?r.map(i):function(r){return function(r){var t={};if(Object.assign(t,r),r.constructor!==Object){var e=r.constructor.prototype;Object.getOwnPropertyNames(e).forEach(function(n){"constructor"!==n&&e.hasOwnProperty(n)&&(t[n]=r[n])})}return t}(r)}(r)},Vhe=function(r,t){return!!(He(r)&&!He(t)||!He(r)&&He(t))||He(r)&&He(t)&&function(r,t){if(r.length!==t.length)return!0;for(var e=0,n=r.length;e0?e.changeRequests.next(n):e.change.emit(n)}),this.subscribeChanges()}},{key:"ngOnChanges",value:function(e){yn("filterDelay",e)&&(this.unsubscribeChanges(),this.subscribeChanges())}},{key:"ngOnDestroy",value:function(){this.unsubscribeChanges(),this.unsubscribeEvents()}},{key:"subscribeChanges",value:function(){var e=this;this.changeRequestsSubscription=this.changeRequests.pipe(function LL(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wp;return oi(function(t,e){var n=null,a=null,o=null,s=function(){if(n){n.unsubscribe(),n=null;var c=a;a=null,e.next(c)}};function l(){var u=o+i,c=r.now();if(c2&&void 0!==arguments[2]?arguments[2]:"and",n=j_t((r||{}).filters||[],t);return He(n)?n.logic:e},iU=function(){var i=function(){function r(t,e,n,a,o){p(this,r),this.parentService=t,this.childService=e,this.localization=n,this.cd=a,this.close=new O,this.actionsClass="k-action-buttons k-button-group",this._templateContext={},this.menuTabbingService=o}return v(r,[{key:"filter",get:function(){return this._filter},set:function(e){this._filter=nU(e)}},{key:"childFilter",get:function(){return He(this._childFilter)||(this._childFilter={filters:Ob(this.filter,(this.column||{}).field),logic:W_t(this.filter,(this.column||{}).field)}),this._childFilter}},{key:"ngOnInit",value:function(){var e=this;this.subscription=this.childService.changes.subscribe(function(n){return e._childFilter=n}),this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngAfterViewChecked",value:function(){(!this.menuTabbingService.isColumnMenu||this.isLast&&this.isExpanded)&&(this.menuTabbingService.lastFocusable=this.disabled?this.resetButton.nativeElement:this.filterButton.nativeElement)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.menuTabbingService.lastFocusable=void 0}},{key:"disabled",get:function(){return!this.childFilter.filters.some(Jhe)}},{key:"templateContext",get:function(){return this._templateContext.column=this.column,this._templateContext.filter=this.childFilter,this._templateContext.filterService=this.childService,this._templateContext.$implicit=this.childFilter,this._templateContext}},{key:"hasTemplate",get:function(){return He(this.column)&&He(this.column.filterMenuTemplateRef)}},{key:"submit",value:function(){var e=function(r){return r.filters=r.filters.filter(Jhe),r}(this.childFilter);if(e.filters.length){var n=this.filter||{filters:[],logic:"and"};tU(n,this.column.field),n.filters.push(e),this.parentService.filter(n)}return this.close.emit(),!1}},{key:"reset",value:function(){var e=this.filter||{filters:[],logic:"and"};tU(e,this.column.field),this.parentService.filter(e),this.close.emit()}},{key:"onTab",value:function(e,n){this.menuTabbingService.firstFocusable&&(!this.menuTabbingService.isColumnMenu||this.isLast)&&(e.preventDefault(),"reset"===n?this.disabled?this.menuTabbingService.firstFocusable.focus():this.filterButton.nativeElement.focus():this.menuTabbingService.firstFocusable.focus())}},{key:"clearText",get:function(){return this.localization.get("filterClearButton")}},{key:"filterText",get:function(){return this.localization.get("filterFilterButton")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la,4),m(la),m(Y),m(nt),m(Tb))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-menu-container"]],viewQuery:function(t,e){var n;1&t&&(ge(Aft,5),ge(xft,5)),2&t&&(P(n=B())&&(e.resetButton=n.first),P(n=B())&&(e.filterButton=n.first))},inputs:{column:"column",isLast:"isLast",isExpanded:"isExpanded",menuTabbingService:"menuTabbingService",filter:"filter",actionsClass:"actionsClass"},outputs:{close:"close"},features:[de([la,Tb])],decls:12,vars:7,consts:[[1,"k-filter-menu","k-group","k-reset","k-state-border-up",3,"submit","reset"],[1,"k-filter-menu-container"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"ngClass"],["type","reset",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab"],["resetButton",""],["type","submit",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"disabled","keydown.tab"],["filterButton",""],["kendoFilterMenuHost","",3,"filterService","column","filter","menuTabbingService"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(A(0,"form",0),Q("submit",function(){return e.submit()})("reset",function(){return e.reset()}),A(1,"div",1),Ge(2,2),T(3,Mft,2,4,"ng-container",3),T(4,Ift,2,1,"ng-container",3),Ve(),A(5,"div",4)(6,"button",5,6),Q("keydown.tab",function(a){return e.onTab(a,"reset")}),te(8),x(),A(9,"button",7,8),Q("keydown.tab",function(a){return e.onTab(a,"filter")}),te(11),x()()()()),2&t&&(k(2),y("ngSwitch",e.hasTemplate),k(1),y("ngSwitchCase",!1),k(1),y("ngSwitchCase",!0),k(1),y("ngClass",e.actionsClass),k(3),at(e.clearText),k(1),y("disabled",e.disabled),k(2),at(e.filterText))},directives:[Kee,xee,LE,kd,Gp,Qhe,qe,En,Nt],encapsulation:2}),i}(),rU=function(){var i=function(){function r(t,e,n,a){p(this,r),this.filterService=t,this.popupService=e,this.localization=n,this.navigationService=a,this.tabIndex="-1"}return v(r,[{key:"hasFilters",get:function(){return Ob(this.filter,(this.column||{}).field).length>0}},{key:"filterLabel",get:function(){var e=this.localization.get("filterMenuTitle")||"";return Ea(e,"columnName",this.column.title||this.column.field)}},{key:"toggle",value:function(e,n){return this.popupRef=this.popupService.open(e,n,this.popupRef),this.popupRef||(this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()),!1}},{key:"close",value:function(){this.popupService.destroy(),this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(la),m(Mb),m(Y),m(Va))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-menu"]],viewQuery:function(t,e){var n;1&t&&(ge(jde,7),ge(Wde,7,$e)),2&t&&(P(n=B())&&(e.anchor=n.first),P(n=B())&&(e.template=n.first))},inputs:{column:"column",filter:"filter",tabIndex:"tabIndex"},decls:5,vars:5,consts:[["href","#",3,"ngClass","tabindex","click","keydown.enter"],["anchor",""],[1,"k-icon","k-i-filter"],["template",""],[3,"column","filter","close","keydown.escape","keydown.enter"]],template:function(t,e){if(1&t){var n=xe();A(0,"a",0,1),Q("click",function(){re(n);var o=Yt(1),s=Yt(4);return e.toggle(o,s)})("keydown.enter",function(o){return o.stopImmediatePropagation()}),z(2,"span",2),x(),T(3,Nft,1,2,"ng-template",null,3,$n)}2&t&&(y("ngClass",ot(3,Fft,e.hasFilters))("tabindex",e.tabIndex),ie("title",e.filterLabel))},directives:[iU,Nt],encapsulation:2}),i}(),aU=function(){var i=function(){function r(t){p(this,r),this.closeMenu=new O,this.menuTabbingService=t}return v(r,[{key:"close",value:function(){this.closeMenu.emit()}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Tb))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),Wm=function(){var i=function(){function r(){p(this,r),this.hostClass=!0}return v(r,[{key:"ngOnInit",value:function(){if(xt()&&!this.service)throw new Error("The service input of the predefined column menu components is mandatory.")}},{key:"close",value:function(){this.service.close()}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-menu-item-base"]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-columnmenu-item-wrapper",e.hostClass)},inputs:{service:"service"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),$m=function(){var i=v(function r(t){p(this,r),this.templateRef=t});return i.\u0275fac=function(t){return new(t||i)(m($e,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuItemContentTemplate",""]]}),i}(),Ah=function(){var i=function(){function r(){p(this,r),this.itemClick=new O,this.expand=new O,this.collapse=new O,this.contentState="collapsed"}return v(r,[{key:"iconClass",get:function(){return"k-i-".concat(this.icon)}},{key:"ngOnChanges",value:function(e){e.expanded&&this.updateContentState()}},{key:"onClick",value:function(e){this.itemClick.emit(e),this.contentTemplate&&(this.expanded=!this.expanded,this.updateContentState(),this.expanded?this.expand.emit():this.collapse.emit())}},{key:"updateContentState",value:function(){this.contentState=this.expanded?"expanded":"collapsed"}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-item"]],contentQueries:function(t,e,n){var a;1&t&&he(n,$m,5),2&t&&P(a=B())&&(e.contentTemplate=a.first)},inputs:{icon:"icon",text:"text",selected:"selected",disabled:"disabled",expanded:"expanded"},outputs:{itemClick:"itemClick",expand:"expand",collapse:"collapse"},features:[Ie],decls:4,vars:8,consts:[["role","button",1,"k-columnmenu-item",3,"click","keydown.enter"],["class","k-icon",3,"ngClass",4,"ngIf"],["style","overflow:hidden;","class","k-columnmenu-item-content",4,"ngIf"],[1,"k-icon",3,"ngClass"],[1,"k-columnmenu-item-content",2,"overflow","hidden"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(A(0,"div",0),Q("click",function(a){return e.onClick(a)})("keydown.enter",function(a){return e.onClick(a)}),T(1,Lft,1,1,"span",1),te(2),x(),T(3,Pft,3,2,"div",2)),2&t&&(ue("k-state-selected",e.selected)("k-state-disabled",e.disabled),ie("aria-expanded",e.expanded),k(1),y("ngIf",e.icon),k(1),Pt(" ",e.text," "),k(1),y("ngIf",e.contentTemplate))},directives:[qe,Nt,En],encapsulation:2,data:{animation:[ef("state",[Cd("collapsed",Ft({display:"none"})),Cd("expanded",Ft({display:"block"})),iu("collapsed => expanded",[Ft({height:"0px",display:"block"}),Ai("100ms ease-in",Ft({height:"*"}))]),iu("expanded => collapsed",[Ft({height:"*"}),Ai("100ms ease-in",Ft({height:"0px"}))])])]}}),i}(),mA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.columnInfoService=a,s.changeDetector=o,s}return v(e,[{key:"text",get:function(){return this.localization.get(this.locked?"unlock":"lock")}},{key:"icon",get:function(){return this.locked?"unlock":"lock"}},{key:"disabled",get:function(){return!this.locked&&this.columnInfoService.unlockedRootCount<2}},{key:"toggleColumn",value:function(){this.toggleHierarchy(!this.locked),this.close(),this.changeDetector.markForCheck()}},{key:"toggleHierarchy",value:function(a){for(var o=this.service.column;o.parent;)o=o.parent;for(var s=[o],l=[];s.length;){var u=s.shift();u.locked=a,l.push(u),u.hasChildren&&s.push.apply(s,Ae(u.childrenArray))}this.columnInfoService.changeLocked(l)}},{key:"locked",get:function(){return this.service.column.locked}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-lock"]],features:[j],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleColumn()}),x()),2&t&&y("text",e.text)("icon",e.icon)("disabled",e.disabled)},directives:[Ah],encapsulation:2}),i}(),_A=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.columnInfoService=a,s.changeDetector=o,s}return v(e,[{key:"text",get:function(){return this.localization.get(this.sticky?"unstick":"stick")}},{key:"icon",get:function(){return this.sticky?"unstick":"stick"}},{key:"disabled",get:function(){return!this.sticky&&this.columnInfoService.unlockedRootCount<2}},{key:"toggleColumn",value:function(){this.toggleHierarchy(!this.sticky),this.close(),this.changeDetector.markForCheck()}},{key:"toggleHierarchy",value:function(a){for(var o=this.service.column;o.parent;)o=o.parent;for(var s=[o],l=[];s.length;){var u=s.shift();u.sticky=a,l.push(u),u.hasChildren&&s.push.apply(s,Ae(u.childrenArray))}this.columnInfoService.changeStuck(l)}},{key:"sticky",get:function(){return this.service.column.sticky}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-stick"]],features:[j],decls:1,vars:3,consts:[[3,"text","icon","disabled","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleColumn()}),x()),2&t&&y("text",e.text)("icon",e.icon)("disabled",e.disabled)},directives:[Ah],encapsulation:2}),i}(),yA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).localization=n,o.hostElement=a,o.expand=new O,o.collapse=new O,o.expanded=!1,o.actionsClass="k-columnmenu-actions",o._isLast=!1,o}return v(e,[{key:"isLast",get:function(){return this._isLast},set:function(a){this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem(),this._isLast=a}},{key:"onTab",value:function(a,o){this.isLast&&o&&(a.preventDefault(),a.stopImmediatePropagation(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}},{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.getLastFocusableItem()),this.expand.emit()}},{key:"getLastFocusableItem",value:function(){var a=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item");return a[this.expanded?a.length-1:0]}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-position"]],inputs:{expanded:"expanded",showLock:"showLock",showStick:"showStick",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","set-column-position",3,"text","expanded","keydown.tab","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"service","keydown.tab",4,"ngIf"],[3,"service","keydown.tab"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("keydown.tab",function(a){return e.onTab(a,!e.expanded)})("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,Vft,2,2,"ng-template",1),x()),2&t&&y("text",e.localization.get("setColumnPosition"))("expanded",e.expanded)},directives:[Ah,mA,_A,$m,qe],encapsulation:2}),i}(),oU=function(){var i=function(){function r(t,e,n){p(this,r),this.element=t,this.ngZone=e,this.renderer=n,this.reset=new O,this.apply=new O,this.columnChange=new O,this.autoSync=!0,this.allowHideAll=!1,this.actionsClass="k-action-buttons",this.unlockedCount=0}return v(r,[{key:"className",get:function(){return!0}},{key:"columns",get:function(){return this._columns},set:function(e){this._columns=e.filter(function(n){return!1!==n.includeInChooser}),this.allColumns=e,this.updateColumnState()}},{key:"isDisabled",value:function(e){return!(this.allowHideAll||this.hasFiltered||e.hidden||this.columns.find(function(n){return n!==e&&!n.hidden}))||this.hasVisibleLocked&&!this.hasUnlockedFiltered&&1===this.unlockedCount&&!e.locked&&!e.hidden}},{key:"ngOnInit",value:function(){var e=this;!this.element||this.ngZone.runOutsideAngular(function(){e.domSubscriptions=e.renderer.listen(e.element.nativeElement,"click",function(n){if(Rv(n.target,"k-checkbox"))if(e.autoSync){var a=parseInt(n.target.getAttribute("data-index"),10),o=e.columns[a],s=!n.target.checked;Boolean(o.hidden)!==s&&e.ngZone.run(function(){o.hidden=s,e.columnChange.emit([o])})}else e.updateDisabled()})})}},{key:"ngOnChanges",value:function(e){!this.service||(e.isLast&&this.isLast&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement),e.isExpanded&&this.isExpanded&&this.isLast&&this.applyButton&&(this.service.menuTabbingService.lastFocusable=this.applyButton.nativeElement))}},{key:"ngOnDestroy",value:function(){this.domSubscriptions&&this.domSubscriptions()}},{key:"cancelChanges",value:function(){var e=this;this.forEachCheckBox(function(n,a){n.checked=!e.columns[a].hidden}),this.updateDisabled(),this.reset.emit()}},{key:"applyChanges",value:function(){var e=this,n=[];this.forEachCheckBox(function(a,o){var s=e.columns[o],l=!a.checked;Boolean(s.hidden)!==l&&(s.hidden=l,n.push(s))}),this.updateDisabled(),this.apply.emit(n)}},{key:"onTab",value:function(e){this.isLast&&(e.preventDefault(),this.service&&this.service.menuTabbingService.firstFocusable.focus())}},{key:"forEachCheckBox",value:function(e){for(var n=this.element.nativeElement.getElementsByClassName("k-checkbox"),a=n.length,o=0;o0,this.hasVisibleLocked=this.allColumns.filter(function(n){return n.locked&&!n.hidden}).length>0,this.unlockedCount=this.columns.filter(function(n){return!n.locked&&!n.hidden}).length;var e=this.allColumns.filter(function(n){return!1===n.includeInChooser&&!n.hidden});e.length?(this.hasFiltered=e.length>0,this.hasUnlockedFiltered=e.filter(function(n){return!n.locked}).length>0):(this.hasFiltered=!1,this.hasUnlockedFiltered=!1)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(be),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnlist"]],viewQuery:function(t,e){var n;1&t&&ge(Uft,5),2&t&&P(n=B())&&(e.applyButton=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-column-list-wrapper",e.className)},inputs:{columns:"columns",autoSync:"autoSync",allowHideAll:"allowHideAll",applyText:"applyText",resetText:"resetText",actionsClass:"actionsClass",isLast:"isLast",isExpanded:"isExpanded",service:"service"},outputs:{reset:"reset",apply:"apply",columnChange:"columnChange"},features:[Ie],decls:3,vars:2,consts:[[1,"k-column-list"],["class","k-column-list-item",4,"ngFor","ngForOf"],[3,"ngClass",4,"ngIf"],[1,"k-column-list-item"],["type","checkbox",1,"k-checkbox","k-checkbox-md","k-rounded-md",3,"checked","disabled"],[1,"k-checkbox-label"],[3,"ngClass"],["type","button",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"click"],["type","button",1,"k-button","k-button-solid-primary","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle",3,"keydown.tab","click"],["applyButton",""]],template:function(t,e){1&t&&(A(0,"div",0),T(1,zft,4,4,"label",1),x(),T(2,Hft,6,3,"div",2)),2&t&&(k(1),y("ngForOf",e.columns),k(1),y("ngIf",!e.autoSync))},directives:[gn,qe,Nt],encapsulation:2}),i}(),kA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this)).localization=n,l.columnInfoService=a,l.changeDetector=o,l.hostElement=s,l.expand=new O,l.collapse=new O,l.expanded=!1,l.isLast=!1,l.actionsClass="k-columnmenu-actions",l}return v(e,[{key:"columns",get:function(){return this.columnInfoService.leafNamedColumns}},{key:"onApply",value:function(a){this.close(),a.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(a))}},{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.expand.emit()}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(nt),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-chooser"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","columns",3,"text","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"applyText","resetText","columns","autoSync","allowHideAll","actionsClass","isLast","isExpanded","service","apply"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,Kft,1,9,"ng-template",1),x()),2&t&&y("text",e.localization.get("columns"))("expanded",e.expanded)},directives:[Ah,oU,$m],encapsulation:2}),i}(),Nb=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this)).localization=n,o.hostElement=a,o.expand=new O,o.collapse=new O,o.expanded=!1,o.isLast=!1,o.actionsClass="k-columnmenu-actions",o}return v(e,[{key:"onCollapse",value:function(){this.expanded=!1,this.isLast&&(this.service.menuTabbingService.lastFocusable=this.hostElement.nativeElement.querySelector(".k-columnmenu-item")),this.collapse.emit()}},{key:"onExpand",value:function(){this.expanded=!0,this.expand.emit()}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-filter"]],inputs:{expanded:"expanded",isLast:"isLast"},outputs:{expand:"expand",collapse:"collapse"},features:[j],decls:2,vars:2,consts:[["icon","filter",3,"text","expanded","collapse","expand"],["kendoGridColumnMenuItemContentTemplate",""],[3,"column","menuTabbingService","filter","actionsClass","isLast","isExpanded","keydown.shift.tab","close"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("collapse",function(){return e.onCollapse()})("expand",function(){return e.onExpand()}),T(1,jft,1,6,"ng-template",1),x()),2&t&&y("text",e.localization.get("filter"))("expanded",e.expanded)},directives:[Ah,iU,$m],encapsulation:2}),i}(),CA=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.hostElement=t,this.renderer=e,this.ngZone=n,this._isFirst=!1,this._isLast=!1,this.subs=new Je,this.onTab=function(o){o.keyCode===J.Tab&&(a.isFirst&&o.shiftKey&&o.target===a.columnMenuItems[0]&&(o.preventDefault(),a.menuItemComponent.service.menuTabbingService.lastFocusable.focus()),a.isLast&&!o.shiftKey)&&a.getLastColumnMenuItem()===o.target&&!a.menuItemComponent.expanded&&(o.preventDefault(),a.menuItemComponent.service.menuTabbingService.firstFocusable.focus())}}return v(r,[{key:"isFirst",get:function(){return this._isFirst},set:function(e){var n=this;if(e){var a=this.columnMenuItems[0];this.menuItemComponent.service.menuTabbingService.firstFocusable=a,this.ngZone.runOutsideAngular(function(){var o=n.renderer.listen(a,"keydown",n.onTab);n.subs.add(o)})}this._isFirst=e}},{key:"isLast",get:function(){return this._isLast},set:function(e){var n=this;if(this.columnMenuItems){if(e){var a=this.getLastColumnMenuItem();this.menuItemComponent.service.menuTabbingService.lastFocusable=a,this.ngZone.runOutsideAngular(function(){var o=n.renderer.listen(a,"keydown",n.onTab);n.subs.add(o)}),this.isExpandableItem()&&(this.menuItemComponent.isLast=!0)}this._isLast=e}}},{key:"ngAfterViewInit",value:function(){var e=this;this.columnMenuItems=this.hostElement.nativeElement.querySelectorAll(".k-columnmenu-item"),[].slice.apply(this.columnMenuItems).forEach(function(n){return e.renderer.setAttribute(n,"tabindex","0")}),this.menuItemComponent instanceof Nb&&(this.menuItemComponent.service.menuTabbingService.isColumnMenu=!0)}},{key:"ngOnDestroy",value:function(){this.subs&&this.subs.unsubscribe()}},{key:"getLastColumnMenuItem",value:function(){return 1===this.columnMenuItems.length?this.columnMenuItems[0]:this.columnMenuItems[1]}},{key:"isExpandableItem",value:function(){return this.menuItemComponent instanceof Nb||this.menuItemComponent instanceof kA||this.menuItemComponent instanceof yA}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnMenuItem",""]],inputs:{menuItemComponent:["kendoGridColumnMenuItem","menuItemComponent"]}}),i}(),sU=function(){var i=function(){function r(t,e){p(this,r),this.service=t,this.ngZone=e}return v(r,[{key:"ngAfterContentInit",value:function(){var e=this;!this.columnMenuItems.length||(this.columnMenuItems.first.isFirst=!0,this.columnMenuItems.last.isLast=!0,this.ngZone.onStable.pipe(It(1)).subscribe(function(){return e.service.menuTabbingService.firstFocusable.focus()}))}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(aU),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-container"]],contentQueries:function(t,e,n){var a;1&t&&he(n,CA,5),2&t&&P(a=B())&&(e.columnMenuItems=a)},ngContentSelectors:rV,decls:1,vars:0,template:function(t,e){1&t&&(kn(),dn(0))},encapsulation:2}),i}(),lU=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this)).localization=n,s.sortService=a,s.renderer=o,s}return v(e,[{key:"sortedAsc",get:function(){var a=this.descriptor;return a&&(!a.dir||"asc"===a.dir)}},{key:"sortedDesc",get:function(){var a=this.descriptor;return a&&"desc"===a.dir}},{key:"toggleSort",value:function(a){var o=this.service.column.field,s=lA(this.service.sortable),u=s.allowUnsort,c=this.descriptor,d="multiple"===s.mode?this.service.sort.filter(function(h){return h.field!==o}):[];if(c&&c.dir===a){if(!u)return}else d.push({field:o,dir:a});this.sortService.sort(d),this.close()}},{key:"descriptor",get:function(){var a=this;return[].concat(this.service.sort||[]).find(function(o){return o.field===a.service.column.field})}}]),e}(Wm);return i.\u0275fac=function(t){return new(t||i)(m(Y),m(aA),m(Ee))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-columnmenu-sort"]],features:[j],decls:2,vars:4,consts:[["icon","sort-asc-sm",3,"text","selected","itemClick"],["icon","sort-desc-sm",3,"text","selected","itemClick"]],template:function(t,e){1&t&&(A(0,"kendo-grid-columnmenu-item",0),Q("itemClick",function(){return e.toggleSort("asc")}),x(),A(1,"kendo-grid-columnmenu-item",1),Q("itemClick",function(){return e.toggleSort("desc")}),x()),2&t&&(y("text",e.localization.get("sortAscending"))("selected",e.sortedAsc),k(1),y("text",e.localization.get("sortDescending"))("selected",e.sortedDesc))},directives:[Ah],encapsulation:2}),i}(),bA=function(){var i=function(){function r(t,e,n,a){p(this,r),this.popupService=t,this.localization=e,this.service=n,this.navigationService=a,this.standalone=!0,this.settings={},this.sortable=!0,this.tabIndex="-1",this.expandedFilter=!1,this.expandedColumns=!1,this.expandedPosition=!1,this.closeSubscription=n.closeMenu.subscribe(this.close.bind(this))}return v(r,[{key:"isActive",get:function(){var e=this;return this.hasFilter&&Ob(this.filter,this.column.field).length>0||!this.sortable&&this.hasSort&&this.sort.find(function(n){return n.field===e.column.field})}},{key:"hasFilter",get:function(){return Nhe(this.settings,this.column)}},{key:"hasSort",get:function(){return Fhe(this.settings,this.column)}},{key:"hasColumnChooser",get:function(){return Phe(this.settings)}},{key:"hasLock",get:function(){return Lhe(this.settings,this.column)}},{key:"hasStick",get:function(){return function(r,t){return r.stick&&t.stickable&&!(t.parent&&!t.parent.isSpanColumn)}(this.settings,this.column)}},{key:"hasPosition",get:function(){return function(r,t){return r.setColumnPosition&&(t.stickable||t.lockable)&&!(t.parent&&!t.parent.isSpanColumn)}(this.settings,this.column)}},{key:"ngOnChanges",value:function(){this.service.column=this.column,this.service.sort=this.sort,this.service.filter=this.filter,this.service.sortable=this.sortable}},{key:"ngOnDestroy",value:function(){this.close(),this.closeSubscription.unsubscribe()}},{key:"toggle",value:function(e,n,a){e&&(e.preventDefault(),e.stopImmediatePropagation()),this.expandedFilter=this.getExpandedState(this.settings.filter),this.expandedColumns=this.getExpandedState(this.settings.columnChooser),this.expandedPosition=this.getExpandedState(this.settings.setColumnPosition),this.popupRef=this.popupService.open(n,a,this.popupRef,"k-grid-columnmenu-popup"),this.popupRef||(this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus())}},{key:"close",value:function(){this.popupService.destroy(),this.popupRef=null,this.navigationService.enabled?this.navigationService.focusCell(0,this.column.leafIndex):this.anchor.nativeElement.focus()}},{key:"columnMenuTitle",get:function(){var e=this.localization.get("columnMenu")||"";return Ea(e,"columnName",this.column.title||this.column.field)}},{key:"getExpandedState",value:function(e){return"object"==typeof e&&e.expanded}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Mb),m(Y),m(aU),m(Va))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-menu"]],viewQuery:function(t,e){var n;1&t&&(ge(jde,7),ge(Wde,7,$e)),2&t&&(P(n=B())&&(e.anchor=n.first),P(n=B())&&(e.template=n.first))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-column-menu-standalone",e.standalone)},inputs:{standalone:"standalone",column:"column",settings:"settings",sort:"sort",filter:"filter",sortable:"sortable",columnMenuTemplate:"columnMenuTemplate",tabIndex:"tabIndex"},features:[de([aU,Tb]),Ie],decls:7,vars:5,consts:[["href","#",1,"k-grid-column-menu","k-grid-filter",3,"ngClass","tabindex","click","keydown.enter"],["anchor",""],[1,"k-icon","k-i-more-vertical"],["template",""],["defaultTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"keydown.escape","keydown.enter"],[3,"kendoGridColumnMenuItem","service",4,"ngIf"],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"kendoGridColumnMenuItem","service","expanded",4,"ngIf"],[3,"kendoGridColumnMenuItem","service"],["sortItem",""],["lockItem",""],["stickItem",""],[3,"showLock","showStick","kendoGridColumnMenuItem","service","expanded"],["positionItem",""],[3,"kendoGridColumnMenuItem","service","expanded"],["chooserItem",""],["filterItem",""]],template:function(t,e){if(1&t){var n=xe();A(0,"a",0,1),Q("click",function(o){re(n);var s=Yt(1),l=Yt(4);return e.toggle(o,s,l)})("keydown.enter",function(o){return o.stopImmediatePropagation()}),z(2,"span",2),x(),T(3,$ft,1,5,"ng-template",null,3,$n),T(5,evt,7,6,"ng-template",null,4,$n)}2&t&&(y("ngClass",ot(3,tvt,e.isActive))("tabindex",e.tabIndex),ie("title",e.columnMenuTitle))},directives:[sU,lU,mA,_A,yA,kA,Nb,Nt,En,qe,CA],encapsulation:2}),i}(),uU=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.clearText="Clear",this.operators=[],this.showOperators=!0,this.valueChange=new O,this.clear=new O}return v(r,[{key:"hostClasses",get:function(){return!0}},{key:"onChange",value:function(e){this.valueChange.emit(e)}},{key:"clearClick",value:function(){return this.clear.emit(),!1}},{key:"clearKeydown",value:function(e){(e.keyCode===J.Enter||e.keyCode===J.Space)&&this.clear.emit()}},{key:"dropdownKeydown",value:function(e){e.defaultPrevented||e.keyCode===J.Enter&&!this.dropdown.isOpen&&(this.dropdown.toggle(!0),e.preventDefault())}},{key:"ngOnInit",value:function(){var e=this;this.localization.changes.subscribe(function(){return e.clearText=e.localization.get("filterClearButton")})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-cell-operators"]],viewQuery:function(t,e){var n;1&t&&ge(nvt,5),2&t&&P(n=B())&&(e.dropdown=n.first)},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filtercell-operator",e.hostClasses)},inputs:{operators:"operators",showButton:"showButton",showOperators:"showOperators",value:"value"},outputs:{valueChange:"valueChange",clear:"clear"},decls:2,vars:2,consts:[["kendoGridFocusable","","class","k-dropdown-operator","iconClass","k-i-filter","textField","text","valueField","value",3,"data","value","valuePrimitive","popupSettings","valueChange","keydown",4,"ngIf"],["type","button","kendoGridFocusable","","class","k-button k-button-solid-base k-button-solid k-button-md k-rounded-md k-button-rectangle k-icon-button",3,"title","click","keydown",4,"ngIf"],["kendoGridFocusable","","iconClass","k-i-filter","textField","text","valueField","value",1,"k-dropdown-operator",3,"data","value","valuePrimitive","popupSettings","valueChange","keydown"],["dropdown",""],["type","button","kendoGridFocusable","",1,"k-button","k-button-solid-base","k-button-solid","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"title","click","keydown"],[1,"k-icon","k-button-icon","k-i-filter-clear"]],template:function(t,e){1&t&&(T(0,ivt,2,5,"kendo-dropdownlist",0),T(1,rvt,2,1,"button",1)),2&t&&(y("ngIf",e.showOperators),k(1),y("ngIf",e.showButton))},directives:[js,qe,co],encapsulation:2}),i}(),q_t=["isnull","isnotnull","isempty","isnotempty"],qm=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this,n)).showOperators=!0,a}return v(e,[{key:"hostClasses",get:function(){return!0}},{key:"overrideBaseClasses",get:function(){return!1}},{key:"showButton",get:function(){var a=this.currentFilter;return He(a)&&(!wr(a.value)||q_t.indexOf(String(a.operator))>=0)}},{key:"filterChange",value:function(a){this.applyFilter(a)}}]),e}(Hhe);return i.\u0275fac=function(t){return new(t||i)(m(la))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-filter-wrapper-cell"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-filtercell-wrapper",e.hostClasses)("k-filtercell",e.overrideBaseClasses)},inputs:{showOperators:"showOperators"},features:[j],ngContentSelectors:rV,decls:2,vars:4,consts:[[3,"showOperators","operators","showButton","value","clear","valueChange"]],template:function(t,e){1&t&&(kn(),dn(0),A(1,"kendo-grid-filter-cell-operators",0),Q("clear",function(){return e.onClear()})("valueChange",function(a){return e.currentOperator=a}),x()),2&t&&(k(1),y("showOperators",e.showOperators)("operators",e.operators)("showButton",e.showButton)("value",e.currentOperator))},directives:[uU],encapsulation:2}),i}(),Fb=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).filterDelay=500,o.showOperators=!0,o}return v(e,[{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(zhe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-string-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[j],decls:2,vars:8,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoTextBox","","kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","ngModel"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"input",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("filterDelay",e.filterDelay)("ngModel",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,tie,zc,co,$u,jf,Wf],encapsulation:2}),i}(),SA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).localization=a,o.filterDelay=500,o.showOperators=!0,o}return v(e,[{key:"messageFor",value:function(a){return this.localization.get(a)}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(Whe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-numeric-filter-cell"]],inputs:{filterDelay:"filterDelay",showOperators:"showOperators"},features:[j],decls:3,vars:17,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoGridFocusable","","kendoFilterInput","",3,"columnLabel","filterDelay","autoCorrect","value","format","decimals","spinners","min","max","step"],[3,"increment","decrement"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-numerictextbox",1),z(2,"kendo-numerictextbox-messages",2),x()()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("filterDelay",e.filterDelay)("autoCorrect",!0)("value",null==e.currentFilter?null:e.currentFilter.value)("format",e.format)("decimals",e.decimals)("spinners",e.spinners)("min",e.min)("max",e.max)("step",e.step),k(1),y("increment",e.messageFor("filterNumericIncrement"))("decrement",e.messageFor("filterNumericDecrement")))},directives:[qm,Jf,sie,co,$u],encapsulation:2}),i}(),wA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a)).cd=o,s}return v(e,[{key:"localizationChange",value:function(){$(q(e.prototype),"localizationChange",this).call(this),this.cd.markForCheck()}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(Yhe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-boolean-filter-cell"]],features:[j],decls:2,vars:11,consts:[[3,"column","filter","showOperators","defaultOperator"],["kendoFilterInput","","kendoGridFocusable","","textField","text","valueField","value",3,"columnLabel","defaultItem","data","popupSettings","valuePrimitive","value"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"kendo-dropdownlist",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("showOperators",!1)("defaultOperator",e.operator),k(1),y("columnLabel",e.columnLabel)("defaultItem",e.defaultItem)("data",e.items)("popupSettings",Tt(10,$de))("valuePrimitive",!0)("value",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,js,$u,co],encapsulation:2}),i}(),DA=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).localization=a,o.showOperators=!0,o}return v(e,[{key:"messageFor",value:function(a){return this.localization.get(a)}},{key:"columnLabel",get:function(){var a=this.localization.get("filterInputLabel")||"";return Ea(a,"columnName",this.column.title||this.column.field)}}]),e}(Xhe);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-date-filter-cell"]],inputs:{showOperators:"showOperators"},features:[j],decls:3,vars:18,consts:[[3,"column","filter","operators","defaultOperator","showOperators"],["kendoFilterInput","","kendoGridFocusable","",3,"columnLabel","value","format","formatPlaceholder","placeholder","activeView","bottomView","topView","min","max","weekNumber"],[3,"toggle","today"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0)(1,"kendo-datepicker",1),z(2,"kendo-datepicker-messages",2),x()()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("defaultOperator",e.operator)("showOperators",e.showOperators),k(1),y("columnLabel",e.columnLabel)("value",null==e.currentFilter?null:e.currentFilter.value)("format",e.format)("formatPlaceholder",e.formatPlaceholder)("placeholder",e.placeholder)("activeView",e.activeView)("bottomView",e.bottomView)("topView",e.topView)("min",e.min)("max",e.max)("weekNumber",e.weekNumber),k(1),y("toggle",e.messageFor("filterDateToggle"))("today",e.messageFor("filterDateToday")))},directives:[qm,FB,Mse,$u,co],encapsulation:2}),i}(),efe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){return p(this,e),t.call(this,n,a)}return v(e,[{key:"componentType",value:function(){return wr(this.column.filter)?Fb:function(r){return{boolean:wA,date:DA,numeric:SA,text:Fb}[r]}(this.column.filter)}}]),e}(Uhe);return i.\u0275fac=function(t){return new(t||i)(m(ei),m(Ts))},i.\u0275dir=X({type:i,selectors:[["","kendoFilterCellHost",""]],features:[j]}),i}(),cU=function(){var i=function(){function r(){p(this,r),this._templateContext={}}return v(r,[{key:"filter",get:function(){return this._filter},set:function(e){this._filter=nU(e)}},{key:"templateContext",get:function(){return this._templateContext.column=this.column,this._templateContext.filter=this.filter,this._templateContext.$implicit=this.filter,this._templateContext}},{key:"hasTemplate",get:function(){return He(this.column.filterCellTemplateRef)}},{key:"isFilterable",get:function(){return He(this.column)&&!wr(this.column.field)&&this.column.filterable}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFilterCell",""]],inputs:{column:"column",filter:"filter"},attrs:avt,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["kendoFilterCellHost","",3,"column","filter"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&T(0,cvt,4,3,"ng-container",0),2&t&&y("ngIf",e.isFilterable)},directives:[qe,kd,Gp,efe,En],encapsulation:2}),i}(),Z_t=0,Xm=function(){var i=function(){function r(t,e,n,a,o,s,l,u){p(this,r),this.focusGroup=t,this.element=e,this.columnInfoService=n,this.idService=a,this.navigationService=o,this.renderer=s,this.zone=l,this.cellContext=u,this.logicalSlaveCell=!1,this.colSpan=1,this.rowSpan=1,this.dataRowIndex=-1,this.detailExpandCell=!1,this.uid=function Y_t(){return Z_t++}()}return v(r,[{key:"id",get:function(){if(!this.logicalSlaveCell&&this.columnInfoService.isLocked)return this.idService.cellId(this.logicalRowIndex,this.logicalColIndex)}},{key:"ariaColIndex",get:function(){if(!this.logicalSlaveCell&&-1!==this.logicalColIndex)return this.logicalColIndex+1}},{key:"ngOnInit",value:function(){var e=this;!this.navigationService.enabled||(this.navigationChange=this.navigationService.changes.subscribe(function(n){return e.onNavigationChange(n)}))}},{key:"ngDoCheck",value:function(){!this.navigationService.enabled||-1===this.logicalColIndex||(this.cellContext&&(this.cellContext.focusGroup=this.focusGroup),this.registerNoChanges())}},{key:"ngOnChanges",value:function(e){if(this.navigationService.enabled){var n=Object.keys(e);if((1!==n.length||"groupItem"!==n[0])&&-1!==this.logicalColIndex){var a=e.logicalColIndex,o=e.logicalRowIndex,s=a&&!a.isFirstChange()?a.previousValue:this.logicalColIndex,l=o&&!o.isFirstChange()?o.previousValue:this.logicalRowIndex;this.navigationService.unregisterCell(s,l,this),this.registerChanges(),this.updateElement()}}}},{key:"ngOnDestroy",value:function(){this.navigationChange&&this.navigationChange.unsubscribe(),this.navigationService.unregisterCell(this.logicalColIndex,this.logicalRowIndex,this)}},{key:"onNavigationChange",value:function(e){(this.logicalColIndex===e.colIndex&&this.logicalRowIndex===e.rowIndex||this.logicalColIndex===e.prevColIndex&&this.logicalRowIndex===e.prevRowIndex)&&this.updateElement()}},{key:"updateElement",value:function(){var e=this,n=this.element.nativeElement;this.renderer.setAttribute(n,"tabIndex",this.isFocusable()&&!this.logicalSlaveCell?"0":"-1"),this.isFocused()?(this.focusGroup.isNavigable()?this.focusGroup.focus():(!this.logicalSlaveCell&&this.navigationService.autoFocusCell(this.logicalColIndex,this.logicalColIndex+this.colSpan-1)&&this.microtask(function(){return e.isFocused()&&n.focus()}),this.renderer.addClass(n,"k-state-focused")),this.headerLabelText&&n.setAttribute("aria-label","")):(this.renderer.removeClass(n,"k-state-focused"),this.headerLabelText&&n.setAttribute("aria-label",this.headerLabelText))}},{key:"microtask",value:function(e){this.zone.runOutsideAngular(function(){return Promise.resolve(null).then(e)})}},{key:"registerChanges",value:function(){this.logicalSlaveCell||this.navigationService.registerCell(this)}},{key:"registerNoChanges",value:function(){this.logicalSlaveCell||this.navigationService.registerCellOnCurrentRow(this)}},{key:"isFocusable",value:function(){return this.navigationService.isCellFocusable(this)}},{key:"isFocused",value:function(){return this.navigationService.isCellFocused(this)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Vm),m(ke),m(fs),m(Bl),m(Va),m(Ee),m(be),m(td,8))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLogicalCell",""]],hostVars:2,hostBindings:function(t,e){2&t&&ie("id",e.id)("aria-colindex",e.ariaColIndex)},inputs:{logicalColIndex:"logicalColIndex",logicalRowIndex:"logicalRowIndex",logicalSlaveCell:"logicalSlaveCell",colIndex:"colIndex",colSpan:"colSpan",rowSpan:"rowSpan",groupItem:"groupItem",dataRowIndex:"dataRowIndex",dataItem:"dataItem",detailExpandCell:"detailExpandCell",headerLabelText:"headerLabelText"},features:[de([{provide:Vm,deps:[Eh],useClass:Vm}]),Ie]}),i}(),dU=function(){var i=function(){function r(t,e){p(this,r),this.localization=t,this.columnInfoService=e,this.columns=[],this.groups=[],this.filterRowClass=!0}return v(r,[{key:"addStickyStyles",value:function(e){var n=e.sticky?this.columnInfoService.stickyColumnsStyles(e):null;return Object.assign(Object.assign({},n),e.filterStyle)}},{key:"filterLabel",value:function(e){var n=this.localization.get("filterInputLabel")||"";return Ea(n,"columnName",e.title||e.field)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFilterRow",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-filter-row",e.filterRowClass)},inputs:{columns:"columns",filter:"filter",groups:"groups",detailTemplate:"detailTemplate",logicalRowIndex:"logicalRowIndex",lockedColumnsCount:"lockedColumnsCount"},attrs:dvt,decls:3,vars:3,consts:[["role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["kendoGridFilterCell","","kendoGridLogicalCell","",3,"k-grid-header-sticky","ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex",4,"ngFor","ngForOf"],["role","presentation"],["kendoGridFilterCell","","kendoGridLogicalCell","",3,"ngStyle","ngClass","column","filter","logicalRowIndex","logicalColIndex"]],template:function(t,e){1&t&&(T(0,hvt,1,2,"td",0),T(1,fvt,1,2,"td",1),T(2,vvt,1,9,"td",2)),2&t&&(y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columns))},directives:[cU,gn,qe,Xm,Vi,Nt],encapsulation:2}),i}(),Q_t=0,EA=function(){var i=function(){function r(t,e){p(this,r),this.idService=t,this.navigation=e,this.logicalSlaveRow=!1,this.logicalSlaveCellsCount=0,this.dataRowIndex=-1,this.uid=function J_t(){return Q_t++}()}return v(r,[{key:"hostRole",get:function(){return this.logicalSlaveRow?"presentation":"row"}},{key:"ariaRowIndex",get:function(){return this.logicalRowIndex+1}},{key:"ariaOwns",get:function(){if(this.navigation.enabled&&!this.logicalSlaveRow&&0!==this.logicalSlaveCellsCount){for(var e=[],n=this.logicalCellsCount+this.logicalSlaveCellsCount,a=this.logicalCellsCount;a0||e>0}}()&&void 0===this.selectionService.selectAllState,a=!!n||this.el.nativeElement.checked,o=this.selectionService.options,s=o.enabled&&"multiple"===o.mode,l=ut(this.selectAllChange);(s||l)&&this.ngZone.run(function(){s&&e.selectionService.updateAll(a),l&&e.selectAllChange.emit(a?"checked":"unchecked")})}},{key:"setState",value:function(){var e=this.stateSet?this.stateToBool():this.selectionService.selectAllState,n=this.el.nativeElement;this.renderer.setProperty(n,"indeterminate",!He(e)),this.renderer.setProperty(n,"checked",!!He(e)&&e)}},{key:"stateToBool",value:function(){switch(this.state){case"checked":return!0;case"unchecked":return!1;default:return}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Lm),m(ke),m(Ee),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectAllCheckbox",""]],hostVars:1,hostBindings:function(t,e){2&t&&ie("type",e.type)},inputs:{state:"state"},outputs:{selectAllChange:"selectAllChange"},features:[Ie]}),i}(),fU=function(r){return r.nativeElement.parentElement.offsetWidth},tfe=function(r){return Wu(r).filter(function(t){return!t.isColumnGroup})},nyt=function(r){var t=r.originalEvent;t.stopPropagation(),t.preventDefault()},nfe=function(r){return!(!r.parent||!r.parent.isSpanColumn)},ife=function(){var i=function(){function r(t,e,n,a,o,s,l){p(this,r),this.draggable=t,this.element=e,this.service=n,this.zone=a,this.cdr=o,this.localization=s,this.columnInfoService=l,this.columns=[],this.subscriptions=new Je,this.rtl=!1}return v(r,[{key:"visible",get:function(){return this.column.resizable?"block":"none"}},{key:"leftStyle",get:function(){return hs(this.rtl)?0:null}},{key:"rightStyle",get:function(){return hs(this.rtl)?null:0}},{key:"autoFit",value:function(){var e=this,n=tfe(this.columns),a=XT([this.column]).filter(function(s){return hs(s.resizable)}),o=a.map(function(s){var l=nfe(s),u=!!l&&s.parent.childColumns.last===s,c=function(r,t){for(var e=0,n=0,a=0;ethis.column.minResizableWidth?a:this.column.minResizableWidth-this.column.resizeStartWidth;this.updateWidth(this.column,o),this.service.resizeTable(this.column,s)}},{key:"sizeToFit",value:function(e){var a=e.widths,o=e.columns.indexOf(this.column),s=Math.max.apply(Math,Ae(a.map(function(u){return u[o]})))+1,l=s-this.column.resizeStartWidth;this.updateWidth(this.column,s),this.service.resizeTable(this.column,l)}},{key:"updateWidth",value:function(e,n){e.width=n,this.columnInfoService.hiddenColumns.forEach(function(a){Cb(a.width)&&He(a.implicitWidth)&&(a.width=a.implicitWidth)}),this.cdr.markForCheck()}},{key:"columnsForLevel",value:function(e){return nd(this.columns?this.columns.filter(function(n){return n.level===e}):[])}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m($o,1),m(ke),m(xb),m(be),m(nt),m(Y),m(fs))},i.\u0275dir=X({type:i,selectors:[["","kendoGridColumnHandle",""]],hostVars:6,hostBindings:function(t,e){1&t&&Q("dblclick",function(){return e.autoFit()}),2&t&&Qe("display",e.visible)("left",e.leftStyle)("right",e.rightStyle)},inputs:{columns:"columns",column:"column"}}),i}(),TA=function(){for(var r=arguments.length,t=new Array(r),e=0;e=0},function(r){return r.draggable.context.column.reorderable},function(r){return!che(r.draggable.context.column)},function(r){return r.draggable.element.nativeElement!==r.target.element.nativeElement},function(r){return cyt(r.draggable.context.column,r.target.context.column)},Sb(function(r){var t=r.draggable;return!hs(t.context.column.locked)&&function(r){return!hs(r.parent)}(t.context.column)&&t.context.lastColumn}),function(r){var t=r.draggable;return!1!==t.context.column.lockable||t.context.column.isLocked===r.target.context.column.isLocked}),myt=["alt","ctrl","shift","meta"],rfe=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c){p(this,r),this.popupService=t,this.hint=e,this.cue=n,this.reorderService=a,this.idService=o,this.sortService=s,this.localization=l,this.columnInfoService=u,this.cd=c,this.columns=[],this.groups=[],this.sort=new Array,this.sortable=!1,this.groupable=!1,this.lockedColumnsCount=0,this.resizable=!1,this.reorderable=!1,this.columnMenu=!1,this.totalColumnsCount=0,this.sortedFields={},this.dropTargets=new Ei,this.subscription=new Je}return v(r,[{key:"headerClass",get:function(){return!this.scrollable}},{key:"sortableLabel",get:function(){return this.localization.get("sortable")}},{key:"columnMenuSettings",get:function(){return this.columnMenu}},{key:"unlockedColumnsCount",get:function(){return this.totalColumnsCount-this.lockedColumnsCount-this.columns.length}},{key:"sortColumn",value:function(e){this.sortService.sort(e)}},{key:"getColumnComponent",value:function(e){return e}},{key:"onSortClick",value:function(e,n,a){var o=n.target;if(!e.headerTemplateRef||o===a||!Boolean(cV(o,Jde,a))){var l=this.matchModifier(n),u=this.toggleSort(e,l);this.sortColumn(u)}}},{key:"onHeaderKeydown",value:function(e,n){if(n.keyCode===J.ArrowDown&&n.altKey&&this.showFilterMenu){n.preventDefault(),n.stopImmediatePropagation();var a=this.filterMenus.find(function(l){return l.column===e});a.toggle(a.anchor.nativeElement,a.template)}if(n.keyCode===J.ArrowDown&&n.altKey&&this.showColumnMenu(e)){n.preventDefault(),n.stopImmediatePropagation();var o=this.columnMenus.find(function(l){return l.column===e});o.toggle(null,o.anchor.nativeElement,o.template)}if(this.sortable&&!n.defaultPrevented&&!1!==e.sortable&&n.keyCode===J.Enter&&He(e.field)){var s=this.matchModifier(n);this.sortService.sort(this.toggleSort(e,s))}}},{key:"showSortNumbering",value:function(e){return lA(this.sortable).showIndexes&&this.sort&&this.sort.filter(function(o){return He(o.dir)}).length>1&&this.sortOrder(e.field)>0}},{key:"sortOrder",value:function(e){return this.sort.filter(function(n){return He(n.dir)}).findIndex(function(n){return n.field===e})+1}},{key:"sortIcon",value:function(e){var n=this.sortDescriptor(e);return{"k-icon":He(n.dir),"k-i-sort-desc-sm":"desc"===n.dir,"k-i-sort-asc-sm":"asc"===n.dir}}},{key:"sortState",value:function(e){if(this.isSortable(e)){var n=this.sortDescriptor(e.field);if("asc"===n.dir)return"ascending";if("desc"===n.dir)return"descending"}}},{key:"sortStatus",value:function(e){if(this.sortedFields[e.field]&&this.isSortable(e)){var n="sortedDefault",a=this.sortDescriptor(e.field);return"asc"===a.dir?n="sortedAscending":"desc"===a.dir&&(n="sortedDescending"),this.localization.get(n)}}},{key:"toggleSort",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=lA(this.sortable,e.sortable),o=a.allowUnsort,s=a.mode,l=a.initialDirection,u=this.toggleDirection(e.field,o,l);return"single"!==s&&n?[].concat(Ae(this.sort.filter(function(c){return c.field!==e.field})),[u]):[u]}},{key:"matchModifier",value:function(e){var a=lA(this.sortable).multiSortKey;return"none"===a?myt.every(function(o){return!e["".concat(o,"Key")]}):"ctrl"===a?e.ctrlKey||e.metaKey:e["".concat(a,"Key")]}},{key:"ngAfterViewInit",value:function(){this.subscription.add(VT(this.dropTargets).subscribe(this.attachTargets.bind(this)))}},{key:"ngDoCheck",value:function(){this._leafColumns=nd(this.columns||[]).filter(function(e){return!Bm(e)})}},{key:"ngOnChanges",value:function(e){var n=this,a=e.sort;a&&!a.isFirstChange()&&a.currentValue.forEach(function(o){n.sortedFields[o.field]=!0})}},{key:"ngOnInit",value:function(){var e=this;this.subscription.add(this.localization.changes.subscribe(function(){return e.cd.markForCheck()}))}},{key:"ngOnDestroy",value:function(){this.targetSubscription&&this.targetSubscription.unsubscribe(),this.popupService&&this.popupService.destroy(),this.subscription.unsubscribe()}},{key:"selectAllCheckboxId",value:function(){return this.idService.selectAllCheckboxId()}},{key:"selectAllCheckboxLabel",get:function(){return this.localization.get("selectAllCheckboxLabel")}},{key:"isFirstOnRow",value:function(e,n){var a=this;return 0===n&&!this.groups.length&&!this.detailTemplate&&function s(l){return l&&(a.columnsForLevel(l.level).indexOf(l)>0||s(l.parent))}(e.parent)}},{key:"logicalColumnIndex",value:function(e){var n=e.leafIndex;return He(n)?n+(He(this.detailTemplate)?1:0):-1}},{key:"showFilterMenu",get:function(){return!this.columnMenu&&function(r){return"string"==typeof r&&r.indexOf("menu")>-1}(this.filterable)}},{key:"showFilterRow",get:function(){return nA(this.filterable)}},{key:"showColumnMenu",value:function(e){return this.columnMenu&&e.columnMenu&&(this.columnMenuTemplate||e.columnMenuTemplates.length||function(r,t){return Phe(r)||Lhe(r,t)||Fhe(r,t)||Nhe(r,t)}(this.columnMenu,e))}},{key:"isFilterable",value:function(e){return!wr(e.field)&&!0===e.filterable}},{key:"canDrop",value:function(e,n){return this.reorderable&&gyt({draggable:e,target:n})}},{key:"shouldActivate",value:function(e){var n=this.reorderable&&e.reorderable;return!(!n&&!Eb(e))&&(this.groupable&&Eb(e)&&!1!==e.groupable||n)}},{key:"isSortable",value:function(e){return!wr(e.field)&&hs(this.sortable)&&hs(e.sortable)}},{key:"isCheckboxColumn",value:function(e){return ohe(e)&&!e.templateRef}},{key:"trackByIndex",value:function(e,n){return e}},{key:"addStickyStyles",value:function(e){var n=this.columnInfoService.stickyColumnsStyles(e);return Object.assign(Object.assign({},e.style),n)}},{key:"toggleDirection",value:function(e,n,a){var o=this.sortDescriptor(e),s=function(r){return"asc"===r?["asc","desc"]:["desc","asc"]}(a),l=Gt(s,2),u=l[0],c=l[1],d=u;return o.dir===u?d=c:o.dir===c&&n&&(d=void 0),{dir:d,field:e}}},{key:"columnsForLevel",value:function(e){var n=this.columns?this.columns.filter(function(a){return a.level===e}):[];return Fv(nd(n))}},{key:"isColumnGroupComponent",value:function(e){return Bm(e)}},{key:"columnLevels",get:function(){return new Array((this.totalColumnLevels||0)+1)}},{key:"sortDescriptor",value:function(e){return this.sort.find(function(n){return n.field===e})||{field:e}}},{key:"leafColumns",get:function(){return this._leafColumns}},{key:"attachTargets",value:function(){var e=this;this.targetSubscription&&this.targetSubscription.unsubscribe(),this.targetSubscription=new Je;var n=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.enter}))),a=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.leave}))),o=xn.apply(void 0,Ae(this.dropTargets.map(function(s){return s.drop})));this.targetSubscription.add(n.pipe(At(function(s){var u=s.draggable;if("groupIndicator"!==u.context.type){var c=hs(s.target.context.column.isLocked),d=hs(u.context.column.isLocked);(e.lockedColumnsCount>0||c||d)&&e.hint.toggleLock(c)}}),Ue(function(s){return e.canDrop(s.draggable,s.target)}),Nn(this.trackMove.bind(this,a,o)),We(function(s){return TA(s,{before:e.calculateBefore(s),changeContainer:s.changeContainer})}),We(this.normalizeTarget.bind(this)),At(this.enter.bind(this)),Nn(function(s){return o.pipe(We(function(){return s}),Qr(a.pipe(At(e.leave.bind(e)))))})).subscribe(this.drop.bind(this)))}},{key:"normalizeTarget",value:function(e){var n=e.target,a=n.context.column.parent;if(a&&a.isSpanColumn){var o=this.dropTargets.toArray(),s=o.find(function(c){return c.context.column.parent===a}),l=o.indexOf(s);n=o[l+(e.before?0:a.childColumns.length-1)]}return TA(e,{target:n})}},{key:"trackMove",value:function(e,n,a){var o=a.target.context.column,s=this.columnsForLevel(o.level),l=s.indexOf(o),c=a.draggable.context.column.isLocked!==o.isLocked;return c&&(o.locked?l===s.length-1:0===l)?a.draggable.drag.pipe(Qr(e),Qr(n),We(function(d){return TA({changeContainer:!0},a,{mouseEvent:d.mouseEvent})})):lt(TA({changeContainer:c},a))}},{key:"calculateBefore",value:function(e){var n=e.draggable,o=e.mouseEvent,s=e.changeContainer,u=e.target.element.nativeElement,c=!1;return void 0!==s&&s?(c=She(u).left+u.offsetWidth/2>o.pageX,this.localization.rtl&&(c=!c)):c=whe(n.element.nativeElement,u),c}},{key:"enter",value:function(e){var n=e.target,a=e.before;this.hint.enable(),this.localization.rtl&&(a=!a),this.cue.position(Dhe(n.element.nativeElement,a))}},{key:"leave",value:function(){this.hint.disable(),this.cue.hide()}},{key:"drop",value:function(e){this.reorderService.reorder({before:e.before,changeContainer:e.changeContainer,source:e.draggable.context.column,target:e.target.context.column})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Mb),m(iA),m(rA),m(GV),m(Bl),m(aA),m(Y),m(fs),m(nt))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridHeader",""]],viewQuery:function(t,e){var n;1&t&&(ge(Rb,5),ge(rU,5),ge(bA,5)),2&t&&(P(n=B())&&(e.dropTargets=n),P(n=B())&&(e.filterMenus=n),P(n=B())&&(e.columnMenus=n))},hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-header",e.headerClass)},inputs:{totalColumnLevels:"totalColumnLevels",columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",filterable:"filterable",sort:"sort",filter:"filter",sortable:"sortable",groupable:"groupable",lockedColumnsCount:"lockedColumnsCount",resizable:"resizable",reorderable:"reorderable",columnMenu:"columnMenu",columnMenuTemplate:"columnMenuTemplate",totalColumnsCount:"totalColumnsCount",tabIndex:"tabIndex"},features:[Ie],attrs:pvt,decls:3,vars:2,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngFor","ngForOf"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount",4,"ngIf"],["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["class","k-group-cell k-header","role","presentation",4,"ngFor","ngForOf"],["class","k-hierarchy-cell k-header","role","presentation","kendoGridLogicalCell","","aria-selected","false",3,"logicalRowIndex","logicalColIndex",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],["role","presentation",1,"k-group-cell","k-header"],["role","presentation","kendoGridLogicalCell","","aria-selected","false",1,"k-hierarchy-cell","k-header",3,"logicalRowIndex","logicalColIndex"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","enableDrag","context","k-filterable","k-first","k-grid-header-sticky","ngClass","ngStyle","keydown",4,"ngIf"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","","class","k-header",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","k-first","k-filterable","k-grid-content-sticky","ngClass","ngStyle",4,"ngIf"],["kendoGridLogicalCell","","role","columnheader","aria-selected","false","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header",3,"logicalRowIndex","logicalColIndex","headerLabelText","colSpan","rowSpan","enableDrag","context","ngClass","ngStyle","keydown"],[4,"ngIf"],["kendoGridColumnHandle","","kendoDraggable","","class","k-column-resizer",3,"column","columns",4,"ngIf"],[3,"column","filter","tabIndex",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex",4,"ngIf"],[3,"templateContext"],[3,"column","filter","tabIndex"],[3,"standalone","settings","column","columnMenuTemplate","sort","filter","sortable","tabIndex"],[1,"k-cell-inner"],[1,"k-link",3,"click"],["link",""],["role","note",3,"ngClass"],["class","k-sort-order",4,"ngIf"],["role","status",1,"k-sort-status",2,"position","absolute","left","-10000px",3,"innerHtml"],[1,"k-column-title"],[1,"k-sort-order"],["kendoGridSelectAllCheckbox","","kendoGridFocusable","",1,"k-checkbox","k-checkbox-md","k-rounded-md"],["kendoGridColumnHandle","","kendoDraggable","",1,"k-column-resizer",3,"column","columns"],["kendoGridLogicalCell","","kendoDropTarget","","kendoDraggable","","kendoDraggableColumn","",1,"k-header",3,"logicalRowIndex","logicalColIndex","rowSpan","colSpan","headerLabelText","enableDrag","context","ngClass","ngStyle"],[3,"standalone","settings","column","columnMenuTemplate",4,"ngIf"],[3,"standalone","settings","column","columnMenuTemplate"],["kendoGridFilterRow","","kendoGridLogicalRow","",3,"columns","filter","groups","detailTemplate","lockedColumnsCount","logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"]],template:function(t,e){1&t&&(Ge(0),T(1,Vvt,4,8,"tr",0),T(2,Uvt,1,9,"tr",1),Ve()),2&t&&(k(1),y("ngForOf",e.columnLevels),k(1),y("ngIf",e.showFilterRow))},directives:[rU,bA,dU,gn,EA,qe,Xm,Rb,$o,JV,Nt,Vi,Lb,hU,co,ife],styles:[".k-column-resizer[_ngcontent-%COMP%] {\n cursor: col-resize;\n display: block;\n height: 1000%;\n position: absolute;\n top: 0;\n width: .5em;\n }"]}),i}(),yyt=function(){function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0;p(this,i),this.total=r,this.rowHeight=t,this.detailRowHeight=e,this.offsets=[],this.heights=[];for(var n=0,a=0;athis.rowHeight&&this.updateRowHeight(t,-1*this.detailRowHeight)}},{key:"isExpanded",value:function(t){return this.height(t)>this.rowHeight}},{key:"index",value:function(t){if(!(t<0)){var e=this.offsets.reduce(function(n,a,o){return void 0!==n?n:a===t?o:a>t?o-1:void 0},void 0);return void 0===e?this.total-1:e}}},{key:"offset",value:function(t){return this.offsets[t]}},{key:"totalHeight",value:function(){return this.heights.reduce(function(t,e){return t+e},0)}},{key:"updateRowHeight",value:function(t,e){this.total>0&&(this.heights[t]+=e,this.offsets=function(r,t,e){return[].concat(Ae(r.slice(0,t+1)),Ae(r.slice(t+1).map(function(n){return n+e})))}(this.offsets,t,e))}}]),i}(),AA=v(function i(r){p(this,i),this.offset=r}),vU=v(function i(r,t){p(this,i),this.skip=r,this.take=t}),afe=v(function i(){p(this,i)}),Cyt=function(){function i(r){p(this,i),this.scrollObservable=r,this.firstLoaded=0}return v(i,[{key:"create",value:function(t,e,n,a){var o=this;this.rowHeightService=t,this.firstLoaded=e,this.lastLoaded=e+n,this.take=n,this.total=a,this.lastScrollTop=0;var s=new xi(new AA(this.rowHeightService.offset(e)));return this.subscription=An.create(function(l){o.unsubscribe(),o.scrollSubscription=o.scrollObservable.subscribe(function(u){return o.onScroll(u,l)})}).subscribe(function(l){return s.next(l)}),s}},{key:"destroy",value:function(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}},{key:"onScroll",value:function(t,e){var n=t.scrollTop,a=t.offsetHeight,o=t.scrollHeight,s=t.clientHeight;if(this.lastScrollTop!==n){var l=this.lastScrollTop>=n;this.lastScrollTop=n;var u=this.rowHeightService.index(n),c=this.rowHeightService.offset(u),d=this.rowHeightService.index(n+a);if(!l)if(d>=this.lastLoaded&&this.lastLoaded0&&(c=this.rowHeightService.offset(u-=h)),this.firstLoaded=u,e.next(new AA(c));var f=this.firstLoaded+this.take;this.lastLoaded=Math.min(f,this.total),f=f>this.total?this.total-this.firstLoaded:this.take,e.next(new vU(this.firstLoaded,this.take))}else o-s-n<2&&e.next(new afe);if(l&&u1&&void 0!==arguments[1]?arguments[1]:"td";return function(e){return e.querySelectorAll("".concat(t,":not(.k-group-cell):not(.k-hierarchy-cell)"))[r]}},xA=function(r){return r.offsetWidth},kU=function(){for(var r=arguments.length,t=new Array(r),e=0;e1&&void 0!==arguments[1]?arguments[1]:null;return r=null!=r?r:i,oi(function(t,e){var n=[],a=0;t.subscribe(Wn(e,function(o){var s=null;a++%r==0&&n.push([]);var u,l=In(n);try{for(l.s();!(u=l.n()).done;){var c=u.value;c.push(o),i<=c.length&&(s=null!=s?s:[]).push(c)}}catch(g){l.e(g)}finally{l.f()}if(s){var h,d=In(s);try{for(d.s();!(h=d.n()).done;){var f=h.value;Nh(n,f),e.next(f)}}catch(g){d.e(g)}finally{d.f()}}},function(){var s,o=In(n);try{for(o.s();!(s=o.n()).done;)e.next(s.value)}catch(u){o.e(u)}finally{o.f()}e.complete()},void 0,function(){n=null}))})}(a))})).subscribe(this.resize.bind(this)),this.autoFitSubscription=this.service.registerTable({autoFit:this.autoFitObservable.bind(this),locked:this.locked})}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe(),this.autoFitSubscription&&(this.autoFitSubscription(),this.autoFitSubscription=null)}},{key:"initState",value:function(){this.firstResize=!0,(!this.virtualColumns||this.locked)&&(this.originalWidth=xA(this.element.nativeElement))}},{key:"resize",value:function(e){if(!this.virtualColumns||this.locked){var n=e.reduce(function(o,s){return o+s},0);this.renderer.setStyle(this.element.nativeElement,"width",this.originalWidth+n+"px")}this.cdr.detectChanges()}},{key:"autoFitObservable",value:function(e){var n=this;return An.create(function(a){n.zone.runOutsideAngular(function(){n.renderer.addClass(n.element.nativeElement,"k-autofitting"),n.cdr.detectChanges();var o=e.map(n.measureColumn.bind(n));n.renderer.removeClass(n.element.nativeElement,"k-autofitting"),a.next(o)})})}},{key:"measureColumn",value:function(e){var n=this.element.nativeElement,a=kU(function(r){return function(t){return t.querySelectorAll("thead>tr")[r]}}(e.level),yU(e.headerIndex,"th"),xA)(n),o=0;(!e.isParentSpan||e.isParentSpan&&e.isLastInSpan)&&(o=kU(ufe("tbody>tr:not(.k-grouping-row):not(.k-grid-norecords)"),yU(e.index),xA)(n));var s=kU(ufe("tfoot>tr"),yU(e.index),xA)(n);return Math.max(a,o,s)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(xb),m(be),m(nt))},i.\u0275dir=X({type:i,selectors:[["table"]],hostVars:2,hostBindings:function(t,e){2&t&&Qe("min-width",e.minWidth)},inputs:{locked:"locked",virtualColumns:"virtualColumns"}}),i}(),bU=function(){var i=function(){function r(t,e,n,a){p(this,r),this.el=t,this.renderer=e,this.resizeService=n,this.ctx=a,this.enabled=!1}return v(r,[{key:"lockedWidth",set:function(e){this._lockedWidth=e,this.enabled&&(this.attachResize(),this.resize())}},{key:"kendoGridResizableContainer",set:function(e){var n=e!==this.enabled;this.enabled=e,n&&(this.attachResize(),this.resize())}},{key:"ngOnDestroy",value:function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}},{key:"attachResize",value:function(){this.resizeSubscription&&!this.enabled&&(this.resizeSubscription.unsubscribe(),this.resizeSubscription=null),!this.resizeSubscription&&this.enabled&&(this.resizeSubscription=this.resizeService.changes.subscribe(this.resize.bind(this)))}},{key:"resize",value:function(){if(this.ctx.grid&&this.ctx.grid.wrapper){var n=Math.max(this.ctx.grid.wrapper.nativeElement.clientWidth-this._lockedWidth,0);this.renderer.setStyle(this.el.nativeElement,"width",this.enabled&&n>0?n+"px":"")}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(PV),m(Gm))},i.\u0275dir=X({type:i,selectors:[["","kendoGridResizableContainer",""]],inputs:{lockedWidth:"lockedWidth",kendoGridResizableContainer:"kendoGridResizableContainer"}}),i}(),cfe=function(r,t,e){for(var n=0,a=0;n0}},{key:"ngOnInit",value:function(){var e=this;this.init(),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowSync.bind(this))),this.subscriptions.add(this.ngZone.runOutsideAngular(this.handleRowNavigationLocked.bind(this))),this.subscriptions.add(xn(this.columns.changes,this.resizeService.changes).subscribe(function(){e.virtualColumns&&e.ngZone.run(function(){e.updateViewportColumns(),e.changeDetector.markForCheck()})})),this.subscriptions.add(this.localization.changes.subscribe(function(n){return e.rtl=n.rtl}))}},{key:"ngOnChanges",value:function(e){e.skip&&e.skip.firstChange&&e.skip.currentValue>0&&this.handleInitialScrollToSkip(),yn("skip",e)&&!this.rebind&&(this.skipScroll=!0,this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),Ki(["total","take"],e)&&this.init(),this.rebind=!1}},{key:"ngDoCheck",value:function(){this.virtualColumns&&(!this.viewportColumns||this.viewportWidthChange())&&this.updateViewportColumns()}},{key:"ngAfterViewInit",value:function(){this.skip&&this.isVirtual&&(this.container.nativeElement.scrollTop=this.rowHeightService.offset(this.skip)),this.resetNavigationViewport(),this.attachContainerScroll(),this.initResizeService()}},{key:"ngAfterViewChecked",value:function(){var e=this.isLocked;e&&!this.hasLockedContainer&&this.syncRowsHeight(),this.hasLockedContainer=e}},{key:"syncRowsHeight",value:function(){this.lockedContainer&&_he(this.lockedTable.nativeElement,this.table.nativeElement)}},{key:"ngOnDestroy",value:function(){this.subscriptions&&this.subscriptions.unsubscribe(),this.resizeService&&this.resizeService.destroy(),this.cleanupScroller()}},{key:"init",value:function(){this.suspendService.scroll||(this.rowHeightService=new yyt(this.total,this.rowHeight,this.detailRowHeight),this.totalHeight=this.rowHeightService.totalHeight(),bb()||this.ngZone.runOutsideAngular(this.createScroller.bind(this)))}},{key:"lockedScroll",value:function(){if(!this.suspendService.scroll){var e=this.lockedContainer.nativeElement.scrollTop;e!==this.containerScrollTop&&(this.container.nativeElement.scrollTop=this.containerScrollTop=e)}}},{key:"lockedMousewheel",value:function(e){if(!e.ctrlKey){!function(r,t){var e=vfe(r),n=t.scrollTop;0===n&&00&&e.total>0})).subscribe(function(o){e.scrollTo({row:e.skip}),a.unsubscribe()})}},{key:"handleRowSync",value:function(){var e=this,n=function(){return He(e.lockedContainer)};return xn(this.changeNotification.changes,this.groupsService.changes.pipe(Ue(n),TE(e.ngZone.onStable.asObservable().pipe(It(1)))),this.editService.changed,this.resizeService.changes,this.columnResizingService.changes.pipe(Ue(function(o){return"end"===o.type})),this.supportService.changes).pipe(At(function(){return e.resetNavigationViewport()}),Ue(n)).subscribe(function(){var o=e.container.nativeElement.scrollTop,s=e.container.nativeElement.scrollLeft;e.syncRowsHeight(),e.syncContainerHeight(),e.lockedContainer.nativeElement.scrollTop=e.container.nativeElement.scrollTop=o,e.container.nativeElement.scrollLeft=s,e.resizeSensors.forEach(function(l){return l.acceptSize()})})}},{key:"handleRowNavigationLocked",value:function(){var e=this;return this.navigationService.changes.pipe(Ue(function(){return He(e.lockedContainer)}),Dd(10)).subscribe(function(n){if(e.lockedLeafColumns.length<=n.prevColIndex&&n.colIndex0?32:0)))}else if(0===a&&this.detailTemplate)this.container.nativeElement.scrollLeft=this.normalizeScrollLeft(0);else{var d=dfe(0,this.table.nativeElement.rows);if(d){var h=function(r,t){return cfe(r,t,function(e){return Rv(e,ofe)?0:parseInt(e.getAttribute("colSpan"),10)||1})}(a,d.cells);h&&(this.container.nativeElement.scrollLeft=this.elementScrollLeft(h))}}}},{key:"resetNavigationViewport",value:function(){if(this.container&&this.navigationService.enabled&&this.navigationService.needsViewport()&&0!==this.data.length){var e=this.container.nativeElement,n=e.scrollTop,o=n+e.offsetHeight,s=this.rowHeightService.index(n),l=this.rowHeightService.index(o),u=this.rowHeightService.offset(l);l>0&&u+this.rowHeight>o&&l--;var d=s,h=l;if(He(this.detailTemplate)){d*=2,h*=2,this.rowHeightService.offset(s)+this.rowHeighto)&&h++}this.navigationService.setViewport(d,h)}}},{key:"cleanupScroller",value:function(){this.scrollerSubscription&&this.scrollerSubscription.unsubscribe(),this.scroller&&this.scroller.destroy()}},{key:"initResizeService",value:function(){this.resizeService.connect(xn.apply(void 0,Ae(this.resizeSensors.map(function(e){return e.resize}))))}},{key:"syncContainerHeight",value:function(){var e=this;[SU(this.lockedContainer)].filter(He).map(function(n){n.style.height="";var a=e.container.nativeElement.offsetHeight;return function(r,t){return r.nativeElement.offsetWidth>t.nativeElement.clientWidth}(e.table,e.container)&&(a-=e.supportService.scrollbarWidth),{el:n,height:a}}).forEach(function(r){return function(t){return r.setStyle(t.el,"height","".concat(t.height,"px"))}}(this.renderer))}},{key:"updateViewportColumns",value:function(e){var n=this.columns.nonLockedLeafColumns.toArray(),a=e||this.calculateViewportColumns(),o=a.startIdx,s=a.endIdx,l=a.offset,u=Math.max(0,o-1),c=Math.min(s+1,n.length-1);if(u=u;d--)l-=n[d].width;var h=n.slice(u,c+1);if(this.viewportColumnsWidth=h.reduce(function(g,_){return g+_.width},0),u>0){var f=new Ir;f.width=l,h.unshift(f)}this.viewportColumns=new Ei,this.viewportColumns.reset(h),this.columnsStartIdx=u,this.columnsEndIdx=c,this.columnInfo.columnRangeChange.emit({start:u,end:c,offset:l}),e||this.updateColumnViewport(o,s)}},{key:"handleColumnScroll",value:function(){var e=this,a=this.container.nativeElement.scrollLeft;if(this.scrollLeft!==a){this.scrollLeft=a;var o=this.calculateViewportColumns();this.updateColumnViewport(o.startIdx,o.endIdx),(o.startIdx0?1:0),l=a+n+(this.detailTemplate?1:0),u=0;us&&(u=f,h=d-(g.width||0)),d>=l){c=f;break}}return!c&&f>0&&(c=o.length-1),{startIdx:u,endIdx:c,offset:h}}},{key:"viewportWidthChange",value:function(){return this.viewportColumns.toArray().reduce(function(n,a){return n+a.width},0)!==this.viewportColumnsWidth}},{key:"normalizeScrollLeft",value:function(e){return this.rtl?function tmt(i,r,t){var e=i;return t<0?e=-i:t>0&&(e=r.scrollWidth-r.offsetWidth-i),e}(e,this.container.nativeElement,this.supportService.rtlScrollLeft):e}},{key:"elementScrollLeft",value:function(e){return this.rtl?this.normalizeScrollLeft(this.container.nativeElement.scrollWidth-e.offsetLeft-e.offsetWidth):e.offsetLeft}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ffe),m(Db),m(JT),m(FV),m(Fm),m(be),m(Ee),m(tA),m(PV),m(Pl),m(TV),m(Va),m(HT),m(Y),m(xb),m(nt),m(Ab),m(fs))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-list"]],viewQuery:function(t,e){var n;1&t&&(ge(tgt,7),ge(ngt,5),ge(igt,5),ge(rgt,7),ge(Gr,5)),2&t&&(P(n=B())&&(e.container=n.first),P(n=B())&&(e.lockedContainer=n.first),P(n=B())&&(e.lockedTable=n.first),P(n=B())&&(e.table=n.first),P(n=B())&&(e.resizeSensors=n))},hostVars:3,hostBindings:function(t,e){2&t&&(ie("role",e.hostRole),ue("k-grid-container",e.hostClass))},inputs:{data:"data",groups:"groups",total:"total",rowHeight:"rowHeight",stickyRowHeight:"stickyRowHeight",detailRowHeight:"detailRowHeight",take:"take",skip:"skip",columns:"columns",detailTemplate:"detailTemplate",noRecordsTemplate:"noRecordsTemplate",selectable:"selectable",groupable:"groupable",filterable:"filterable",rowClass:"rowClass",rowSticky:"rowSticky",loading:"loading",trackBy:"trackBy",virtualColumns:"virtualColumns",isVirtual:"isVirtual",cellLoadingTemplate:"cellLoadingTemplate",loadingTemplate:"loadingTemplate"},outputs:{contentScroll:"contentScroll",pageChange:"pageChange",scrollBottom:"scrollBottom"},features:[de([{provide:ffe,useValue:Myt}]),Ie],decls:13,vars:35,consts:[["class","k-grid-content-locked","role","presentation","tabindex","-1",3,"width","kendoEventsOutsideAngular","scope",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content","k-virtual-content",3,"kendoGridResizableContainer","lockedWidth"],["container",""],["role","presentation",1,"k-grid-table-wrap"],["role","presentation",1,"k-grid-table",3,"virtualColumns"],["table",""],["kendoGridColGroup","","role","presentation",3,"groups","columns","detailTemplate"],["kendoGridTableBody","","role","presentation",3,"skipGroupDecoration","data","groups","showGroupFooters","columns","allColumns","detailTemplate","noRecordsTemplate","lockedColumnsCount","totalColumnsCount","skip","selectable","trackBy","filterable","rowClass","rowSticky","virtualColumns","isLoading","isVirtual","cellLoadingTemplate"],[4,"ngIf"],["role","presentation",1,"k-height-container"],["class","k-width-container","role","presentation",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-grid-content-locked",3,"kendoEventsOutsideAngular","scope"],["lockedContainer",""],["role","presentation",1,"k-grid-table",3,"locked"],["lockedTable",""],["kendoGridTableBody","","role","presentation",3,"groups","isLocked","data","noRecordsText","columns","totalColumnsCount","detailTemplate","showGroupFooters","skip","selectable","trackBy","filterable","rowClass","isLoading","isVirtual","cellLoadingTemplate"],["role","presentation",1,"k-width-container"]],template:function(t,e){1&t&&(T(0,ogt,10,33,"div",0),A(1,"div",1,2)(3,"div",3)(4,"table",4,5),z(6,"colgroup",6)(7,"tbody",7),x(),T(8,sgt,1,0,"kendo-resize-sensor",8),x(),T(9,lgt,1,0,"kendo-resize-sensor",8),A(10,"div",9),z(11,"div"),x(),T(12,ugt,2,2,"div",10),x()),2&t&&(y("ngIf",e.isLocked),k(1),y("kendoGridResizableContainer",e.lockedLeafColumns.length>0)("lockedWidth",e.lockedWidth+1),k(3),Qe("width",e.nonLockedWidth,"px"),y("virtualColumns",e.virtualColumns),k(2),y("groups",e.isLocked?Tt(34,kb):e.groups)("columns",e.nonLockedColumnsToRender)("detailTemplate",e.detailTemplate),k(1),y("skipGroupDecoration",e.isLocked)("data",e.data)("groups",e.groups)("showGroupFooters",e.showFooter)("columns",e.nonLockedColumnsToRender)("allColumns",e.nonLockedLeafColumns)("detailTemplate",e.detailTemplate)("noRecordsTemplate",e.noRecordsTemplate)("lockedColumnsCount",e.lockedLeafColumns.length)("totalColumnsCount",e.leafColumns.length)("skip",e.skip)("selectable",e.selectable)("trackBy",e.trackBy)("filterable",e.filterable)("rowClass",e.rowClass)("rowSticky",e.rowSticky)("virtualColumns",e.virtualColumns)("isLoading",e.loading)("isVirtual",e.isVirtual)("cellLoadingTemplate",e.cellLoadingTemplate),k(1),y("ngIf",e.isLocked),k(1),y("ngIf",e.isLocked||e.virtualColumns),k(2),Qe("height",e.totalHeight,"px"),k(1),y("ngIf",e.virtualColumns))},directives:[eU,_U,Gr,qe,qi,CU,bU],encapsulation:2}),i}(),mfe=function(){var i=function(){function r(t){p(this,r),this.columnInfoService=t,this.columns=[],this.groups=[],this.lockedColumnsCount=0,this.logicalRowIndex=0}return v(r,[{key:"footerClass",get:function(){return!this.scrollable}},{key:"columnsToRender",get:function(){return nd(this.columns||[])}},{key:"logicalColumnIndex",value:function(e){var n=e.leafIndex;return He(n)?n+(He(this.detailTemplate)?1:0):-1}},{key:"addStickyStyles",value:function(e){var n=this.columnInfoService.stickyColumnsStyles(e);return Object.assign(Object.assign({},e.style),n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(fs))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridFooter",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-grid-footer",e.footerClass)},inputs:{columns:"columns",groups:"groups",detailTemplate:"detailTemplate",scrollable:"scrollable",lockedColumnsCount:"lockedColumnsCount",logicalRowIndex:"logicalRowIndex"},attrs:cgt,decls:5,vars:9,consts:[["kendoGridLogicalRow","",3,"logicalRowIndex","logicalSlaveRow","logicalCellsCount","logicalSlaveCellsCount"],["role","presentation",3,"k-group-cell",4,"ngFor","ngForOf"],["role","presentation",3,"k-hierarchy-cell",4,"ngIf"],["kendoGridLogicalCell","","role","columnfooter","aria-selected","false",3,"logicalRowIndex","logicalColIndex","k-grid-footer-sticky","ngClass","ngStyle",4,"ngFor","ngForOf"],["role","presentation"],["kendoGridLogicalCell","","role","columnfooter","aria-selected","false",3,"logicalRowIndex","logicalColIndex","ngClass","ngStyle"],[3,"templateContext"]],template:function(t,e){1&t&&(Ge(0),A(1,"tr",0),T(2,dgt,1,2,"td",1),T(3,hgt,1,2,"td",2),T(4,vgt,2,12,"td",3),x(),Ve()),2&t&&(k(1),ue("k-footer-template",!0),y("logicalRowIndex",e.logicalRowIndex)("logicalSlaveRow",e.lockedColumnsCount>0)("logicalCellsCount",e.columns.length)("logicalSlaveCellsCount",e.columns.length-e.lockedColumnsCount),k(1),y("ngForOf",e.groups),k(1),y("ngIf",null==e.detailTemplate?null:e.detailTemplate.templateRef),k(1),y("ngForOf",e.columnsToRender))},directives:[EA,gn,qe,Xm,Nt,Vi,Lb],encapsulation:2}),i}(),_fe=function(){var i=function(){function r(t){p(this,r),this.localization=t,this.hostClass=!0}return v(r,[{key:"loadingText",get:function(){return this.localization.get("loading")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["","kendoGridLoading",""]],hostVars:2,hostBindings:function(t,e){2&t&&ue("k-loading-mask",e.hostClass)},inputs:{loadingTemplate:"loadingTemplate"},attrs:pgt,decls:2,vars:2,consts:[[4,"ngIf"],[1,"k-loading-text"],[1,"k-loading-image"],[1,"k-loading-color"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(T(0,ggt,5,1,"ng-container",0),T(1,_gt,1,1,null,0)),2&t&&(y("ngIf",!e.loadingTemplate),k(1),y("ngIf",e.loadingTemplate))},directives:[qe,En],encapsulation:2}),i}(),MA=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-grid-messages-base"]],inputs:{groupPanelEmpty:"groupPanelEmpty",noRecords:"noRecords",pagerLabel:"pagerLabel",pagerFirstPage:"pagerFirstPage",pagerLastPage:"pagerLastPage",pagerPreviousPage:"pagerPreviousPage",pagerNextPage:"pagerNextPage",pagerPage:"pagerPage",pagerItemsPerPage:"pagerItemsPerPage",pagerOf:"pagerOf",pagerItems:"pagerItems",pagerPageNumberInputTitle:"pagerPageNumberInputTitle",filter:"filter",filterInputLabel:"filterInputLabel",filterMenuTitle:"filterMenuTitle",filterMenuOperatorsDropDownLabel:"filterMenuOperatorsDropDownLabel",filterMenuLogicDropDownLabel:"filterMenuLogicDropDownLabel",filterEqOperator:"filterEqOperator",filterNotEqOperator:"filterNotEqOperator",filterIsNullOperator:"filterIsNullOperator",filterIsNotNullOperator:"filterIsNotNullOperator",filterIsEmptyOperator:"filterIsEmptyOperator",filterIsNotEmptyOperator:"filterIsNotEmptyOperator",filterStartsWithOperator:"filterStartsWithOperator",filterContainsOperator:"filterContainsOperator",filterNotContainsOperator:"filterNotContainsOperator",filterEndsWithOperator:"filterEndsWithOperator",filterGteOperator:"filterGteOperator",filterGtOperator:"filterGtOperator",filterLteOperator:"filterLteOperator",filterLtOperator:"filterLtOperator",filterIsTrue:"filterIsTrue",filterIsFalse:"filterIsFalse",filterBooleanAll:"filterBooleanAll",filterAfterOrEqualOperator:"filterAfterOrEqualOperator",filterAfterOperator:"filterAfterOperator",filterBeforeOperator:"filterBeforeOperator",filterBeforeOrEqualOperator:"filterBeforeOrEqualOperator",filterFilterButton:"filterFilterButton",filterClearButton:"filterClearButton",filterAndLogic:"filterAndLogic",filterOrLogic:"filterOrLogic",loading:"loading",gridLabel:"gridLabel",columnMenu:"columnMenu",setColumnPosition:"setColumnPosition",columns:"columns",lock:"lock",unlock:"unlock",stick:"stick",unstick:"unstick",sortable:"sortable",sortAscending:"sortAscending",sortDescending:"sortDescending",sortedAscending:"sortedAscending",sortedDescending:"sortedDescending",sortedDefault:"sortedDefault",columnsApply:"columnsApply",columnsReset:"columnsReset",detailExpand:"detailExpand",detailCollapse:"detailCollapse",filterDateToday:"filterDateToday",filterDateToggle:"filterDateToggle",filterNumericDecrement:"filterNumericDecrement",filterNumericIncrement:"filterNumericIncrement",selectionCheckboxLabel:"selectionCheckboxLabel",selectAllCheckboxLabel:"selectAllCheckboxLabel",groupCollapse:"groupCollapse",groupExpand:"groupExpand"},features:[j]}),i}(),yfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(MA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoGridLocalizedMessages",""]],features:[de([{provide:MA,useExisting:ye(function(){return i})}]),j]}),i}(),kfe=function(r,t){return Ga(r,Hu("k-grid-edit-cell"))&&Ga(r,Ta("kendo-grid"))===t},Gl=function(){var i=function(){function r(t,e,n,a,o,s,l,u,c,d,h,f,g,_,C,w,E,M,R,N,V,U,ee,ve,G,I){var K=this;p(this,r),this.supportService=t,this.selectionService=e,this.cellSelectionService=n,this.wrapper=a,this.groupInfoService=o,this.groupsService=s,this.changeNotification=l,this.detailsService=u,this.editService=c,this.filterService=d,this.pdfService=h,this.responsiveService=f,this.renderer=g,this.excelService=_,this.ngZone=C,this.scrollSyncService=w,this.domEvents=E,this.columnResizingService=M,this.changeDetectorRef=R,this.columnReorderService=N,this.columnInfoService=V,this.navigationService=U,this.sortService=ee,this.scrollRequestService=ve,this.localization=G,this.ctx=I,this.data=[],this.scrollable="scrollable",this.selectable=!1,this.trackBy=VV,this.virtualColumns=!1,this.filterable=!1,this.sortable=!1,this.pageable=!1,this.groupable=!1,this.navigable=!1,this.autoSize=!1,this.resizable=!1,this.reorderable=!1,this.loading=!1,this.columnMenu=!1,this.hideHeader=!1,this.filterChange=new O,this.pageChange=new O,this.groupChange=new pV(this.ngZone),this.sortChange=new O,this.selectionChange=new O,this.dataStateChange=new O,this.groupExpand=new O,this.groupCollapse=new O,this.detailExpand=new O,this.detailCollapse=new O,this.edit=new O,this.cancel=new O,this.save=new O,this.remove=new O,this.add=new O,this.cellClose=new O,this.cellClick=new pV(this.ngZone),this.pdfExport=new O,this.excelExport=new O,this.columnResize=new pV(this.ngZone),this.columnReorder=new O,this.columnVisibilityChange=new O,this.columnLockedChange=new O,this.columnStickyChange=new O,this.scrollBottom=new O,this.contentScroll=new O,this.columns=new Ei,this.footer=new Ei,this.selectionDirective=!1,this.columnsContainer=new xV(function(){return K.columnList.filterHierarchy(function(H){return H.matchesMedia=K.matchesMedia(H),H.isVisible})}),this.view=new Kmt(function(){return new Hmt(K.data,K.skip,K.hasGroupFooters)}),this.shouldGenerateColumns=!0,this._sort=new Array,this._group=new Array,this._skip=0,this.cachedWindowWidth=0,this._rowSelected=null,this._cellSelected=null,this.rtl=!1,this._rowClass=function(){return null},jt(Emt),this.ctx.grid=this,this.localizationSubscription=this.localization.changes.subscribe(function(H){K.rtl=H.rtl,K.direction=K.rtl?"rtl":"ltr"}),this.groupInfoService.registerColumnsContainer(function(){return K.columnList}),this.columnInfoService.init(this.columnsContainer,function(){return K.columnList}),this.columnVisibilityChangeSubscription=this.columnInfoService.visibilityChange.subscribe(function(H){K.columnVisibilityChange.emit(new d_t(H))}),this.columnLockedChangeSubscription=this.columnInfoService.lockedChange.subscribe(function(H){K.columnLockedChange.emit(new Ahe(H))}),this.columnStickyChangeSubscription=this.columnInfoService.stickyChange.subscribe(function(H){K.columnStickyChange.emit(new f_t(H))}),this.groupExpandCollapseSubscription=function(r,t,e,n){return r.changes.pipe(Ue(function(a){return He(a.group)})).subscribe(function(a){return a.expand?t.emit(n(a)):e.emit(n(a))})}(s,this.groupExpand,this.groupCollapse,function(H){return{group:H.group,groupIndex:H.groupIndex,parentGroup:H.parentGroup}}),this.detailsServiceSubscription=function(r,t,e,n){return r.changes.pipe(Ue(function(a){return He(a.dataItem)})).subscribe(function(a){return a.expand?t.emit(a):e.emit(a)})}(u,this.detailExpand,this.detailCollapse),this.filterSubscription=this.filterService.changes.subscribe(function(H){K.filterChange.emit(H)}),this.sortSubscription=this.sortService.changes.subscribe(function(H){K.sortChange.emit(H)}),this.attachStateChangesEmitter(),this.attachEditHandlers(),this.attachDomEventHandlers(),this.pdfSubscription=this.pdfService.exportClick.subscribe(this.emitPDFExportEvent.bind(this)),this.excelSubscription=this.excelService.exportClick.subscribe(this.saveAsExcel.bind(this)),this.columnsContainerChange(),this.handleColumnResize(),this.columnList=new OV(this.columns),this.columnReorderSubscription=this.columnReorderService.changes.subscribe(this.reorder.bind(this)),this.columnRangeChangeSubscription=this.columnInfoService.columnRangeChange.subscribe(this.onColumnRangeChange.bind(this))}return v(r,[{key:"skip",get:function(){return this._skip},set:function(e){"number"==typeof e&&e>=0&&(this._skip=e)}},{key:"sort",get:function(){return this._sort},set:function(e){aV(e)&&(this._sort=e)}},{key:"group",get:function(){return this._group},set:function(e){aV(e)&&(this._group=e)}},{key:"showTopToolbar",get:function(){return this.toolbarTemplate&&["top","both"].indexOf(this.toolbarTemplate.position)>-1}},{key:"showBottomToolbar",get:function(){return this.toolbarTemplate&&["bottom","both"].indexOf(this.toolbarTemplate.position)>-1}},{key:"isLocked",get:function(){return this.lockedLeafColumns.length>0}},{key:"showTopPager",get:function(){return!this.isVirtual&&!1!==this.pageable&&["top","both"].indexOf(this.pageable.position)>-1}},{key:"showBottomPager",get:function(){return!this.isVirtual&&!1!==this.pageable&&"top"!==this.pageable.position}},{key:"hasPager",get:function(){return this.showTopPager||this.showBottomPager}},{key:"showGroupPanel",get:function(){return this.groupable&&!1!==this.groupable.enabled}},{key:"groupableEmptyText",get:function(){return this.groupable.emptyText}},{key:"marqueeSelection",get:function(){return this.selectionService.enableMarquee||this.cellSelectionService.enableMarquee}},{key:"navigatable",get:function(){return this.navigable},set:function(e){this.navigable=e}},{key:"rowClass",get:function(){return this._rowClass},set:function(e){if(xt&&"function"!=typeof e)throw new Error("rowClass must be a function, but received ".concat(JSON.stringify(e),"."));this._rowClass=e}},{key:"rowSticky",get:function(){return this._rowSticky},set:function(e){if(xt&&He(e)&&"function"!=typeof e)throw new Error("rowSticky must be a function, but received ".concat(JSON.stringify(e),"."));He(e)&&(this._rowSticky=e)}},{key:"rowSelected",get:function(){return this._rowSelected},set:function(e){if(xt&&"function"!=typeof e)throw new Error("rowSelected must be a function, but received ".concat(JSON.stringify(e),"."));this._rowSelected=e}},{key:"cellSelected",get:function(){return this._cellSelected},set:function(e){if(xt&&"function"!=typeof e)throw new Error("cellSelected must be a function, but received ".concat(JSON.stringify(e),"."));this._cellSelected=e}},{key:"activeCell",get:function(){return this.navigationService.activeCell}},{key:"activeRow",get:function(){return this.navigationService.activeRow}},{key:"dir",get:function(){return this.direction}},{key:"hostClasses",get:function(){return!0}},{key:"lockedClasses",get:function(){return this.lockedLeafColumns.length>0}},{key:"virtualClasses",get:function(){return this.isVirtual}},{key:"noScrollbarClass",get:function(){return 0===this.scrollbarWidth}},{key:"detailTemplate",get:function(){return this._customDetailTemplate?this._customDetailTemplate:this.detailTemplateChildren?this.detailTemplateChildren.first:void 0},set:function(e){this._customDetailTemplate=e}},{key:"cellLoadingTemplate",get:function(){return this._cellLoadingTemplate?this._customDetailTemplate:this.cellLoadingTemplateChildren?this.cellLoadingTemplateChildren.first:void 0},set:function(e){this._cellLoadingTemplate=e}},{key:"loadingTemplate",get:function(){return this._loadingTemplate?this._loadingTemplate:this.loadingTemplateChildren?this.loadingTemplateChildren.first:void 0},set:function(e){this._loadingTemplate=e}},{key:"noRecordsTemplate",get:function(){return this._customNoRecordsTemplate?this._customNoRecordsTemplate:this.noRecordsTemplateChildren?this.noRecordsTemplateChildren.first:void 0},set:function(e){this._customNoRecordsTemplate=e}},{key:"pagerTemplate",get:function(){return this._customPagerTemplate?this._customPagerTemplate:this.pagerTemplateChildren?this.pagerTemplateChildren.first:void 0},set:function(e){this._customPagerTemplate=e}},{key:"toolbarTemplate",get:function(){return this._customToolbarTemplate?this._customToolbarTemplate:this.toolbarTemplateChildren?this.toolbarTemplateChildren.first:void 0},set:function(e){this._customToolbarTemplate=e}},{key:"scrollbarWidth",get:function(){return this.supportService.scrollbarWidth}},{key:"headerPadding",get:function(){if(bb())return"";var e=Math.max(0,this.scrollbarWidth)+"px",a=this.rtl?e:0;return"0 ".concat(this.rtl?0:e," 0 ").concat(a)}},{key:"hasGroupFooters",get:function(){return this.columnsContainer.hasGroupFooter}},{key:"showFooter",get:function(){return this.columnsContainer.hasFooter}},{key:"showGroupFooters",get:function(){return this.groupable&&this.groupable.showFooter}},{key:"ariaRowCount",get:function(){return this.totalColumnLevels+1+this.view.total}},{key:"ariaColCount",get:function(){return this.columnsContainer.leafColumnsToRender.length}},{key:"isVirtual",get:function(){return"virtual"===this.scrollable}},{key:"isScrollable",get:function(){return"none"!==this.scrollable}},{key:"visibleColumns",get:function(){return this.columnsContainer.allColumns}},{key:"lockedColumns",get:function(){return this.columnsContainer.lockedColumns}},{key:"nonLockedColumns",get:function(){return this.columnsContainer.nonLockedColumns}},{key:"lockedLeafColumns",get:function(){return this.columnsContainer.lockedLeafColumns}},{key:"stickyColumns",get:function(){return this.columns.filter(function(e){return e.sticky})}},{key:"nonLockedLeafColumns",get:function(){return this.columnsContainer.nonLockedLeafColumns}},{key:"leafColumns",get:function(){return this.columnsContainer.leafColumns}},{key:"totalColumnLevels",get:function(){return this.columnsContainer.totalLevels}},{key:"headerColumns",get:function(){return this.virtualColumns&&!this.pdfService.exporting?this.viewportColumns:this.nonLockedColumns}},{key:"headerLeafColumns",get:function(){return this.virtualColumns&&!this.pdfService.exporting?this.leafViewportColumns:this.nonLockedLeafColumns}},{key:"lockedWidth",get:function(){var e=32*this.group.length;return Wu(this.lockedLeafColumns.toArray()).reduce(function(n,a){return n+(a.width||0)},e)}},{key:"nonLockedWidth",get:function(){if(!this.rtl&&this.lockedLeafColumns.length||this.virtualColumns)return this.virtualColumns?this.leafViewportColumns.reduce(function(e,n){return e+(n.width||0)},0):this.columnsContainer.unlockedWidth}},{key:"selectableSettings",get:function(){if(this.selectionService)return this.selectionService.options}},{key:"columnMenuTemplate",get:function(){var e=this.columnMenuTemplates.first;return e?e.templateRef:null}},{key:"totalCount",get:function(){return this.isVirtual||!He(this.pageSize)?this.view.total:this.pageSize}},{key:"expandRow",value:function(e){this.toggleDetailRowLegacy(e,!0)}},{key:"collapseRow",value:function(e){this.toggleDetailRowLegacy(e,!1)}},{key:"expandGroup",value:function(e){this.toggleGroupRowLegacy(e,!0)}},{key:"collapseGroup",value:function(e){this.toggleGroupRowLegacy(e,!1)}},{key:"resetGroupsState",value:function(){this.groupsService.reset()}},{key:"expandGroupChildren",value:function(e){this.groupsService.expandChildren(e)}},{key:"onDataChange",value:function(){this.autoGenerateColumns(),this.changeNotification.notify(),this.pdfService.dataChanged.emit(),He(this.defaultSelection)&&this.defaultSelection.reset(),this.initSelectionService(),this.updateNavigationMetadata()}},{key:"ngOnChanges",value:function(e){var n=this;yn("data",e)&&this.onDataChange(),this.lockedLeafColumns.length&&Ki(["pageSize","skip","sort","group"],e)&&this.changeNotification.notify(),Ki(["pageSize","scrollable","virtualColumns"],e)&&this.updateNavigationMetadata(),yn("virtualColumns",e)&&(this.viewportColumns=this.leafViewportColumns=null),yn("height",e,!1)&&this.renderer.setStyle(this.wrapper.nativeElement,"height","".concat(this.height,"px")),yn("filterable",e)&&this.lockedColumns.length&&this.syncHeaderHeight(this.ngZone.onStable.asObservable().pipe(It(1))),Ki(["columnMenu","sortable","filterable"],e,!1)&&(this.columnMenuOptions=this.columnMenu&&Object.assign({filter:Boolean(this.filterable),sort:Boolean(this.sortable)},this.columnMenu)),yn("scrollable",e)&&this.isScrollable&&this.ngZone.onStable.pipe(It(1)).subscribe(function(){return n.attachScrollSync()}),yn("selectable",e)&&this.shouldResetSelection(e.selectable)&&(this.defaultSelection?this.defaultSelection.reset():this.selectionDirective&&this.selectionDirective.reset()),yn("groupable",e,!0)&&(this.groupable=e.groupable.currentValue)}},{key:"ngAfterViewInit",value:function(){this.attachScrollSync(),this.attachElementEventHandlers(),this.updateNavigationMetadata(),this.applyAutoSize()}},{key:"ngAfterContentChecked",value:function(){this.columnsContainer.refresh(),this.verifySettings(),this.initSelectionService()}},{key:"ngAfterContentInit",value:function(){var e=this;this.shouldGenerateColumns=!this.columns.length,this.autoGenerateColumns(),this.columnList=new OV(this.columns),this.columnsChangeSubscription=this.columns.changes.subscribe(function(){return e.verifySettings()})}},{key:"ngOnInit",value:function(){this.navigable&&this.navigationService.init(this.navigationMetadata())}},{key:"ngOnDestroy",value:function(){this.selectionSubscription&&this.selectionSubscription.unsubscribe(),this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.groupExpandCollapseSubscription&&this.groupExpandCollapseSubscription.unsubscribe(),this.detailsServiceSubscription&&this.detailsServiceSubscription.unsubscribe(),this.editServiceSubscription&&this.editServiceSubscription.unsubscribe(),this.pdfSubscription&&this.pdfSubscription.unsubscribe(),this.filterSubscription&&this.filterSubscription.unsubscribe(),this.sortSubscription&&this.sortSubscription.unsubscribe(),this.columnsChangeSubscription&&this.columnsChangeSubscription.unsubscribe(),this.excelSubscription&&this.excelSubscription.unsubscribe(),this.columnsContainerChangeSubscription&&this.columnsContainerChangeSubscription.unsubscribe(),this.scrollSyncService&&this.scrollSyncService.destroy(),this.detachElementEventHandlers&&this.detachElementEventHandlers(),this.defaultSelection&&this.defaultSelection.destroy(),this.cellClickSubscription&&this.cellClickSubscription.unsubscribe(),this.footerChangeSubscription&&this.footerChangeSubscription.unsubscribe(),this.ngZone=null,this.columnResizingSubscription&&this.columnResizingSubscription.unsubscribe(),this.columnReorderSubscription&&this.columnReorderSubscription.unsubscribe(),this.localizationSubscription&&this.localizationSubscription.unsubscribe(),this.columnVisibilityChangeSubscription&&this.columnVisibilityChangeSubscription.unsubscribe(),this.columnLockedChangeSubscription&&this.columnLockedChangeSubscription.unsubscribe(),this.columnStickyChangeSubscription&&this.columnStickyChangeSubscription.unsubscribe(),this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.columnRangeChangeSubscription.unsubscribe()}},{key:"attachScrollSync",value:function(){var e=this;bb()||(this.header&&this.scrollSyncService.registerEmitter(this.header.nativeElement,"header"),this.footer&&(this.footerChangeSubscription=VT(this.footer).subscribe(function(n){return n.map(function(a){return a.nativeElement}).filter(He).forEach(function(a){return e.scrollSyncService.registerEmitter(a,"footer")})})))}},{key:"ariaLabel",get:function(){return this.localization.get("gridLabel")}},{key:"editRow",value:function(e,n,a){if(this.editService.editRow(e,n),!He(a)||!a.skipFocus){var o='tr[data-kendo-grid-item-index="'.concat(e,'"]'),s=a&&a.columnIndex,l=isNaN(s)?o:"".concat(o,' td[data-kendo-grid-column-index="').concat(s,'"]');this.focusEditElement(l)}}},{key:"closeRow",value:function(e){this.editService.close(e)}},{key:"addRow",value:function(e){if(!(e instanceof sC)){var a=Object.keys(e).reduce(function(r){return function(t,e){return t[e]=new JL(r[e]),t}}(e),{});e=new sC(a)}this.editService.addRow(e),this.focusEditElement(".k-grid-add-row")}},{key:"editCell",value:function(e,n,a){var o=this.columnInstance(n);this.editService.editCell(e,o,a),this.focusEditElement(".k-grid-edit-cell")}},{key:"closeCell",value:function(){return!this.editService.closeCell()}},{key:"cancelCell",value:function(){this.editService.cancelCell()}},{key:"isEditing",value:function(){return this.editService.isEditing()}},{key:"isEditingCell",value:function(){return this.editService.isEditingCell()}},{key:"saveAsPDF",value:function(){this.pdfService.save(this)}},{key:"drawPDF",value:function(){var e=function(){var r,t,e=new Promise(function(n,a){r=function(s){return n(s),e},t=function(s){return a(s),e}});return e.resolve=r,e.reject=t,e}();return this.pdfService.draw(this,e),e}},{key:"saveAsExcel",value:function(){this.excelService.save(this)}},{key:"autoFitColumn",value:function(e){this.columnResizingService.autoFit(e)}},{key:"autoFitColumns",value:function(){var e,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.columns;a=n instanceof Ei?n.toArray():n,(e=this.columnResizingService).autoFit.apply(e,Ae(a))}},{key:"notifyPageChange",value:function(e,n){"list"===e&&!this.isVirtual||this.pageChange.emit(n)}},{key:"notifyScrollBottom",value:function(){var e=this;"none"!==this.scrollable&&ut(this.scrollBottom)&&this.ngZone.run(function(){return e.scrollBottom.emit({sender:e})})}},{key:"focusEditElement",value:function(e){var n=this;this.focusElementSubscription&&this.focusElementSubscription.unsubscribe(),this.ngZone.runOutsideAngular(function(){n.focusElementSubscription=n.ngZone.onStable.asObservable().pipe(It(1)).subscribe(function(){var a=n.wrapper.nativeElement;!n.setEditFocus(a.querySelector(e))&&n.isLocked&&n.setEditFocus(a.querySelector(".k-grid-content ".concat(e))),n.focusElementSubscription=null})})}},{key:"focus",value:function(){return this.assertNavigable(),this.navigationService.focusCell()}},{key:"focusCell",value:function(e,n){return this.assertNavigable(),this.navigationService.focusCell(e,n)}},{key:"focusNextCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertNavigable(),this.navigationService.focusNextCell(e)}},{key:"focusPrevCell",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertNavigable(),this.navigationService.focusPrevCell(e)}},{key:"scrollTo",value:function(e){this.scrollRequestService.scrollTo(e)}},{key:"reorderColumn",value:function(e,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{before:!1},o=Fv(this.allColumnsForLevel(e.level)),s=o[n];if(s){var l=s.isLocked&&!e.isLocked&&1===this.columnsContainer.nonLockedColumns.length;l||($T(s)&&!a.before&&(s=s.childColumns.last),this.reorder({before:a.before,source:e,target:s}))}}},{key:"isDetailExpanded",get:function(){return this.detailsService.userCallback},set:function(e){this.detailsService.userCallback=e}},{key:"isGroupExpanded",get:function(){return this.groupsService.userCallback},set:function(e){this.groupsService.userCallback=e,this.groupable=He(e)}},{key:"reorder",value:function(e){var n=this,a=e.target,o=e.source,s=e.before,l=e.changeContainer;this.ngZone.run(function(){var u=Fv(n.allColumnsForLevel(o.level)),c=u.indexOf(a);a.parent&&a.parent.isSpanColumn&&(c=u.indexOf(a.parent),s&&(a=a.parent));var d=u.indexOf(o);l&&(s&&0c&&c++);var h=new l_t({column:o,oldIndex:d,newIndex:c});n.columnReorder.emit(h),!h.isDefaultPrevented()&&(l&&n.columnLockedChange.emit(new Ahe([o])),n.updateColumnIndices({columnsForLevel:u,source:o,target:a,before:s}),o.locked!==a.locked&&(o.locked=a.locked),n.columnsContainer.refresh(),n.changeDetectorRef.markForCheck())})}},{key:"updateColumnIndices",value:function(e){var a=e.source,o=e.target,s=e.before,l=lhe(e.columnsForLevel),u=l.indexOf(a),c=0,d=0,h=1;a.isSpanColumn&&(h+=a.childColumns.length);for(var f=0;f0}),Nn(function(){return e.ngZone.onStable.asObservable().pipe(It(1))})))}},{key:"handleColumnResize",value:function(){var e=this,n=this.columnResizingService.changes;this.columnResizingSubscription=n.pipe(At(function(a){"start"===a.type?e.renderer.addClass(e.wrapper.nativeElement,"k-grid-column-resizing"):"end"===a.type&&e.renderer.removeClass(e.wrapper.nativeElement,"k-grid-column-resizing")}),Ue(function(a){return"start"===a.type}),Nn(function(){return n.pipe(Qr(n.pipe(Ue(function(a){return"triggerAutoFit"===a.type}))),Ue(function(a){return"end"===a.type}))})).subscribe(this.notifyResize.bind(this))}},{key:"notifyResize",value:function(e){var n=e.resizedColumns.filter(function(a){return hs(a.column.resizable)&&!a.column.isColumnGroup}).map(function(a){return{column:a.column,newWidth:a.column.width,oldWidth:a.oldWidth}});this.columnResize.emit(n)}},{key:"assertNavigable",value:function(){if(xt()&&!this.navigable)throw new Error('The Grid should be configured as [navigable]="true" to control focus')}},{key:"navigationMetadata",value:function(){var e=this.isVirtual,a=e?this.view.total:this.pageSize,o=this.editService.hasNewItem?1:0,s=nA(this.filterable)?1:0;return new u_t(a,this.totalColumnLevels+1+s+o,e,this.hasPager,He(this.detailTemplate),this.wrapper,this.virtualColumns,this.columnsContainer)}},{key:"updateNavigationMetadata",value:function(){this.navigationService.metadata=this.navigationMetadata()}},{key:"applyAutoSize",value:function(){var e=this,n=this.columns.filter(function(a){return e.autoSize?!1!==a.autoSize:a.autoSize});n.length>0&&this.ngZone.onStable.pipe(It(1)).subscribe(function(a){return e.autoFitColumns(n)})}},{key:"onColumnRangeChange",value:function(e){for(var n=this.viewportColumns=[],a=this.columnsContainer.nonLockedLeafColumns.toArray().slice(e.start,e.end+1),o=0;o0){for(var c=a[0],d=e.offset,h=n[0],f=0;h!==c;)d-=h.isColumnGroup?0:h.width,h=n[++f];if(d>0)for(var _,g=this.columnsContainer.totalLevels,C=0;C<=g;C++){var w=C0){var e=i.data[t];i5(i,r,Array.isArray(e)?e:e.update,sc()-ey-1,J_)}J_=0,ey=0}(Bn(),Oe(),i+20)}(1),k(2),y("ngIf",e.showTopToolbar),k(1),y("ngIf",e.showTopPager),k(1),y("ngIf",e.showGroupPanel),k(1),ie("aria-label",e.ariaLabel)("aria-rowcount",e.ariaRowCount)("aria-colcount",e.ariaColCount),k(2),y("ngIf",e.isScrollable),k(1),y("ngIf",!e.isScrollable),k(1),y("ngIf",e.loading),k(1),y("ngIf",e.showBottomPager),k(1),y("ngIf",e.showBottomToolbar))},directives:[HV,QV,Ihe,eU,rfe,gfe,mfe,_U,_fe,yfe,qe,CU,bU,$o,ahe],styles:[" .k-grid .k-grid-aria-root {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n overflow: hidden;\n }\n\n .k-grid .k-filter-row td {\n white-space: nowrap;\n }"],encapsulation:2}),i}(),wU=function(){var i=function(){function r(t,e,n){p(this,r),this.grid=t,this.changeDetector=e,this.localDataChangesService=n,this.state={skip:0},this.originalData=[],n&&(this.dataChangedSubscription=this.localDataChangesService.changes.subscribe(this.rebind.bind(this)))}return v(r,[{key:"skip",set:function(e){He(e)||(e=0),this.grid.skip=this.state.skip=e}},{key:"sort",set:function(e){this.grid.sort=this.state.sort=e}},{key:"filter",set:function(e){this.grid.filter=this.state.filter=e}},{key:"pageSize",set:function(e){this.grid.pageSize=this.state.take=e}},{key:"group",set:function(e){this.grid.group=this.state.group=e}},{key:"data",set:function(e){this.originalData=e||[],this.localDataChangesService&&(this.localDataChangesService.data=e),this.dataChanged=!0}},{key:"ngOnInit",value:function(){this.applyState(this.state),this.stateChangeSubscription=this.grid.dataStateChange.subscribe(this.onStateChange.bind(this))}},{key:"ngOnDestroy",value:function(){this.stateChangeSubscription&&this.stateChangeSubscription.unsubscribe(),this.dataChangedSubscription&&this.dataChangedSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){Ki(["pageSize","skip","sort","group","filter"],e)&&this.rebind()}},{key:"ngDoCheck",value:function(){this.dataChanged&&this.updateGridData()}},{key:"onStateChange",value:function(e){this.applyState(e),this.rebind()}},{key:"rebind",value:function(){this.data=this.originalData,this.updateGridData(),this.notifyDataChange()}},{key:"notifyDataChange",value:function(){this.grid.onDataChange(),this.changeDetector&&this.changeDetector.markForCheck()}},{key:"process",value:function(e){return Gte(this.originalData,e)}},{key:"applyState",value:function(e){var a=e.take,o=e.sort,s=e.group,l=e.filter;this.skip=e.skip,this.pageSize=a,this.sort=o,this.group=s,this.filter=l}},{key:"updateGridData",value:function(){this.grid.data=this.process(this.state),this.dataChanged=!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(nt),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridBinding",""]],inputs:{skip:"skip",sort:"sort",filter:"filter",pageSize:"pageSize",group:"group",data:["kendoGridBinding","data"]},features:[Ie]}),i}(),Cfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).ctx=n,o}return v(e,[{key:"ngOnInit",value:function(){!1===this.ctx.grid.selectable&&(this.ctx.grid.selectable=!0),this.ctx.grid.selectionDirective=this}},{key:"ngOnDestroy",value:function(){$(q(e.prototype),"destroy",this).call(this)}}]),e}(ghe);return i.\u0275fac=function(t){return new(t||i)(m(Gm),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSelectBy",""]],features:[j]}),i}(),bfe=function(){var i=function(){function r(t){p(this,r),this.grid=t,this.expandedDetailKeysChange=new O,this.expandedDetailKeys=[],this.initiallyExpanded=!1,this.expandedState=new Set,this.subscriptions=new Je,this.grid.isDetailExpanded=this.isExpanded.bind(this),this.subscriptions.add(xn(this.grid.detailExpand.pipe(We(function(e){return Object.assign({expand:!0},e)})),this.grid.detailCollapse.pipe(We(function(e){return Object.assign({expand:!1},e)}))).subscribe(this.toggleState.bind(this)))}return v(r,[{key:"expandDetailsKey",get:function(){return this._expandBy},set:function(e){this._expandBy=oV(e)?yr(e):e}},{key:"expandDetailBy",get:function(){return this.expandDetailsKey},set:function(e){this.expandDetailsKey=e}},{key:"ngOnChanges",value:function(e){He(e.expandedDetailKeys)&&this.lastExpandedState!==this.expandedDetailKeys&&(this.expandedState=new Set(this.expandedDetailKeys))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"keyGetter",get:function(){return this._expandBy||yr(void 0)}},{key:"isExpanded",value:function(e){var n=this.keyGetter(e.dataItem),a=this.expandedState.has(n);return this.initiallyExpanded?!a:a}},{key:"toggleState",value:function(e){var n=this.keyGetter(e.dataItem);Boolean(this.initiallyExpanded)!==e.expand?this.expandedState.add(n):this.expandedState.delete(n),this.notifyChange()}},{key:"notifyChange",value:function(){this.lastExpandedState=Array.from(this.expandedState),this.expandedDetailKeysChange.emit(this.lastExpandedState)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl))},i.\u0275dir=X({type:i,selectors:[["","kendoGridExpandDetailsBy",""]],inputs:{expandDetailsKey:["kendoGridExpandDetailsBy","expandDetailsKey"],expandDetailBy:"expandDetailBy",expandedDetailKeys:"expandedDetailKeys",initiallyExpanded:"initiallyExpanded"},outputs:{expandedDetailKeysChange:"expandedDetailKeysChange"},exportAs:["kendoGridExpandDetailsBy"],features:[Ie]}),i}(),Gyt=function(r){for(var t=[];r;)t.push({field:r.group.field,value:r.group.value}),r=r.parentGroup;return t},Vyt=function(r){return{field:r.group.field,value:r.group.value,parentGroupKeys:Gyt(r.parentGroup)}},Sfe=function(){var i=function(){function r(t){p(this,r),this.grid=t,this.expandedGroupKeysChange=new O,this.groupsInitiallyExpanded=!1,this.subscriptions=new Je,this.grid.isGroupExpanded=this.isExpanded.bind(this),this.subscriptions.add(xn(this.grid.groupExpand.pipe(We(function(e){return Object.assign({expand:!0},e)})),this.grid.groupCollapse.pipe(We(function(e){return Object.assign({expand:!1},e)}))).subscribe(this.toggleState.bind(this)))}return v(r,[{key:"expandGroupBy",get:function(){return this._expandGroupBy},set:function(e){"function"==typeof e&&(this._expandGroupBy=e)}},{key:"expandedGroupKeys",get:function(){return this._expandedGroupKeys},set:function(e){this._expandedGroupKeys=(e||[]).slice()}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"keyGetter",get:function(){return this.expandGroupBy||Vyt}},{key:"isExpanded",value:function(e){return this.getItemIndex(e)>-1?!this.groupsInitiallyExpanded:this.groupsInitiallyExpanded}},{key:"getItemIndex",value:function(e){return this.expandGroupBy?this.expandedGroupKeys.indexOf(this.keyGetter(e)):this.expandedGroupKeys.findIndex(function(n){for(var a=0,o=e.parentGroup;He(o);){if(!He(n.parentGroupKeys)||!He(n.parentGroupKeys[a])||o.group.value!==n.parentGroupKeys[a].value||o.group.field!==n.parentGroupKeys[a].field)return!1;o=o.parentGroup,a++}return n.value===e.group.value&&n.field===e.group.field})}},{key:"toggleState",value:function(e){var n=this.keyGetter(e);if(Boolean(this.groupsInitiallyExpanded)!==e.expand)this.expandedGroupKeys.push(n);else{var a=this.expandedGroupKeys.indexOf(n);this.expandedGroupKeys.splice(a,1)}this.expandedGroupKeysChange.emit(this.expandedGroupKeys.slice())}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl))},i.\u0275dir=X({type:i,selectors:[["","kendoGridExpandGroupBy",""]],inputs:{expandGroupBy:["kendoGridExpandGroupBy","expandGroupBy"],expandedGroupKeys:"expandedGroupKeys",groupsInitiallyExpanded:"groupsInitiallyExpanded"},outputs:{expandedGroupKeysChange:"expandedGroupKeysChange"},exportAs:["kendoGridExpandGroupBy"]}),i}(),wfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e,[{key:"override",get:function(){return!0}}]),e}(MA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-messages"]],features:[de([{provide:MA,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Uyt=cA({filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterEqOperator:"eq",filterNotEqOperator:"neq",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"}),Dfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n)).localization=o,s.showOperators=!0,s.defaultOperators=Uyt(s.localization),s.column=a,s}return v(e,[{key:"valueField",get:function(){return this._valueField?this._valueField:this.column.field},set:function(a){this._valueField=a}},{key:"currentFilter",get:function(){return this.filterByField(this.column.field)}},{key:"currentOperator",get:function(){return this.currentFilter?this.currentFilter.operator:"contains"}}]),e}(Km);return i.\u0275fac=function(t){return new(t||i)(m(la),m(Pm),m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-autocomplete-filter-cell"]],inputs:{showOperators:"showOperators",column:"column",filter:"filter",data:"data",valueField:"valueField"},features:[j],decls:2,vars:7,consts:[[3,"column","filter","operators","showOperators"],["kendoFilterInput","",3,"data","valueField","value"]],template:function(t,e){1&t&&(A(0,"kendo-grid-filter-wrapper-cell",0),z(1,"kendo-autocomplete",1),x()),2&t&&(y("column",e.column)("filter",e.filter)("operators",e.operators)("showOperators",e.showOperators),k(1),y("data",e.data)("valueField",e.valueField)("value",null==e.currentFilter?null:e.currentFilter.value))},directives:[qm,qP,$u],encapsulation:2}),i}(),id=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Pm,she,DV,kV,ZT,co]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],Ly,cr]}),i}(),zyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"contains",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-contains-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Hyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"doesnotcontain",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-not-contains-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Kyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"endswith",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-endswith-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),jyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"eq",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-eq-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Wyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isempty",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isempty-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),$yt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnotempty",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnotempty-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),qyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnotnull",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnotnull-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Xyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"isnull",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-isnull-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Zyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"neq",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-neq-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Yyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"startswith",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-startswith-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Qyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"gt",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-gt-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Jyt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"gte",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-gte-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ekt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"lt",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-lt-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),tkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"lte",n)}return v(e)}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-lte-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),nkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"after",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"gt"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-after-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),ikt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"after-eq",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"gte"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-after-eq-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),rkt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"before-eq",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"lte"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-before-eq-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),akt=function(){var i=function(r){b(e,r);var t=S(e);function e(n){return p(this,e),t.call(this,"before",n)}return v(e,[{key:"toJSON",value:function(){return{text:this.text,value:"lt"}}}]),e}(Tn);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275cmp=L({type:i,selectors:[["kendo-filter-before-operator"]],features:[de([{provide:Tn,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),okt=[uU,zyt,Hyt,Kyt,jyt,Wyt,$yt,qyt,Xyt,Zyt,Yyt,Qyt,Jyt,ekt,tkt,nkt,ikt,rkt,akt],skt=[bt,lP,uC,aB,rB,_C,aT,Fa,id],Zm=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[].concat(okt)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(skt),bt,lP,uC,aB,rB,_C,aT,Fa,id]}),i}(),DU=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[dU,cU,bV,uU,Fb,SA,Dfe,wA,DA,Zm.exports()]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Zm],Zm]}),i}(),lkt=[bt,_C,Hnt,Mnt,yo,id],Efe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[QV,KV,qV,jV,$V,XV,YV,NV,ZV,WV]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(lkt)]}),i}(),Tfe=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({}),i}(),RA=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[gV,mV,_V]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,id,Tfe]]}),i}(),OA=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Ib,SV,fA,vA,gA,jm,pA,Zm.exports()]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[Zm],Zm]}),i}(),Afe=function(){var i=function(){function r(t,e,n,a,o,s){p(this,r),this.localization=t,this.columnInfoService=e,this.popupService=n,this.ngZone=a,this.renderer=o,this.changeDetector=s,this.autoSync=!1,this.allowHideAll=!0}return v(r,[{key:"columns",get:function(){return this.columnInfoService.leafNamedColumns}},{key:"ngOnDestroy",value:function(){this.close()}},{key:"toggle",value:function(e,n){var a=this;if(this.popupRef)this.close();else{var o=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:e,content:n,positionMode:"absolute",anchorAlign:{vertical:"bottom",horizontal:o},popupAlign:{vertical:"top",horizontal:o}}),this.renderer.setAttribute(this.popupRef.popupElement,"dir",this.localization.rtl?"rtl":"ltr"),this.ngZone.runOutsideAngular(function(){return a.closeClick=a.renderer.listen("document","click",function(s){Ga(s.target,function(u){return u===a.popupRef.popupElement||u===e})||a.close()})})}}},{key:"onApply",value:function(e){this.close(),e.length&&(this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e))}},{key:"onChange",value:function(e){this.changeDetector.markForCheck(),this.columnInfoService.changeVisibility(e)}},{key:"close",value:function(){this.popupRef&&(this.popupRef.close(),this.popupRef=null),this.detachClose()}},{key:"detachClose",value:function(){this.closeClick&&(this.closeClick(),this.closeClick=null)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Y),m(fs),m(kr),m(be),m(Ee),m(nt))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-column-chooser"]],inputs:{autoSync:"autoSync",allowHideAll:"allowHideAll"},decls:5,vars:1,consts:[["type","button",1,"k-button","k-button-flat-base","k-button-flat","k-icon-button","k-button-md","k-rounded-md","k-button-rectangle","k-icon-button",3,"click"],["anchor",""],[1,"k-button-icon","k-icon","k-i-columns"],["template",""],[1,"k-column-chooser-title"],[3,"columns","applyText","resetText","autoSync","allowHideAll","apply","columnChange"]],template:function(t,e){if(1&t){var n=xe();A(0,"button",0,1),Q("click",function(){re(n);var o=Yt(1),s=Yt(4);return e.toggle(o,s)}),z(2,"span",2),x(),T(3,Bgt,3,6,"ng-template",null,3,$n)}2&t&&ie("title",e.localization.get("columns"))},directives:[oU],encapsulation:2}),i}(),EU=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[Afe,Nb,Ah,$m,lU,mA,_A,yA,kA,WT,sU,CA,bA]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,OA]]}),i}(),ukt=[bt,RA,DU,OA,id,Tfe,EU],xfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[yV,hU]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(ukt)]}),i}(),Mfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).parent=n,o.isCheckboxColumn=!0,o}return v(e,[{key:"templateRef",get:function(){return this.template?this.template.templateRef:void 0}}]),e}(Ir);return i.\u0275fac=function(t){return new(t||i)(m(Ir,13),m(Bl,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-grid-checkbox-column"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Nv,5),2&t&&P(a=B())&&(e.template=a.first)},inputs:{showSelectAll:"showSelectAll"},features:[de([{provide:Ir,useExisting:ye(function(){return i})}]),j],decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),Rfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"none":""}},{key:"onClick",value:function(a){a.preventDefault(),this.editService.beginEdit(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(Xa);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(ke),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-edit-command",e.commandClass))},features:[j]}),i}(),Ofe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"":"none"}},{key:"onClick",value:function(a){a.preventDefault(),this.isEdited&&this.editService.endEdit(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(Xa);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(ke),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridCancelCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-cancel-command",e.commandClass))},features:[j]}),i}(),Ife=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"":"none"}},{key:"onClick",value:function(a){a.preventDefault(),this.isEdited&&this.editService.save(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(Xa);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(ke),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridSaveCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-save-command",e.commandClass))},features:[j]}),i}(),Nfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l,u){var c;return p(this,e),(c=t.call(this,o,s,null,l,u)).editService=n,c.cellContext=a,c.commandClass=!0,c}return v(e,[{key:"visible",get:function(){return this.isEdited?"none":""}},{key:"onClick",value:function(a){a.preventDefault(),this.editService.remove(this.rowIndex)}},{key:"ngDoCheck",value:function(){this.cellContext&&(this.rowIndex=this.cellContext.rowIndex,this.isEdited=this.editService.isEdited(this.rowIndex))}}]),e}(Xa);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(td),m(ke),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridRemoveCommand",""]],hostVars:4,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&(Qe("display",e.visible),ue("k-grid-remove-command",e.commandClass))},features:[j]}),i}(),Ffe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s,l){var u;return p(this,e),(u=t.call(this,a,o,null,s,l)).editService=n,u}return v(e,[{key:"onClick",value:function(a){a.preventDefault(),this.editService.beginAdd()}},{key:"commandClass",get:function(){return!0}}]),e}(Xa);return i.\u0275fac=function(t){return new(t||i)(m(Pl),m(ke),m(Ee),m(Y),m(be))},i.\u0275dir=X({type:i,selectors:[["","kendoGridAddCommand",""]],hostVars:2,hostBindings:function(t,e){1&t&&Q("click",function(a){return e.onClick(a)}),2&t&&ue("k-grid-add-command",e.commandClass)},features:[j]}),i}(),ckt=[bt,lP,uC,id,RA,bP,aT,yo],Lfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[pU,Mfe,gU,Nv,IV,jT,Rfe,Ofe,Ife,Nfe,Ffe,UV,zV]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(ckt)]}),i}(),dkt=[bt,id],Pfe=function(){var i=function(){function r(){p(this,r)}return v(r,null,[{key:"exports",value:function(){return[]}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[].concat(dkt)]}),i}(),Bfe=function(){function i(r,t){p(this,i),this.grid=r,this.localDataChangesService=t}return v(i,[{key:"create",value:function(t){this.hasLocalData&&this.grid.skip?this.localDataChangesService.data.splice(this.grid.skip,0,t):this.data.unshift(t),this.dataChanged()}},{key:"update",value:function(t){}},{key:"remove",value:function(t){for(var e=this.data,n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.hasLocalData&&this.localDataChangesService.changes.emit(t)}},{key:"hasLocalData",get:function(){return Array.isArray(this.localDataChangesService.data)}},{key:"data",get:function(){if(this.hasLocalData)return this.localDataChangesService.data;var t=this.grid.data;if(Array.isArray(t))return t;if(xt())throw new Error("The default edit service of the editing directives works only when binding to plain array.Please provide an editService.");return[]}}]),i}(),Gfe=function(){var i=function(){function r(t,e){p(this,r),this.grid=t,this.localDataChangesService=e,this.defaultEditService=this.createDefaultService()}return v(r,[{key:"editService",get:function(){return this.userEditService||this.defaultEditService},set:function(e){this.userEditService=e}},{key:"ngOnInit",value:function(){this.subscriptions=this.grid.add.subscribe(this.addHandler.bind(this)),this.subscriptions.add(this.grid.remove.subscribe(this.removeHandler.bind(this))),this.subscriptions.add(this.grid.cancel.subscribe(this.cancelHandler.bind(this))),this.subscriptions.add(this.grid.save.subscribe(this.saveHandler.bind(this))),this.subscriptions.add(this.grid.dataStateChange.subscribe(this.onStateChange.bind(this)))}},{key:"ngOnDestroy",value:function(){this.subscriptions.unsubscribe()}},{key:"createDefaultService",value:function(){return new Bfe(this.grid,this.localDataChangesService)}},{key:"addHandler",value:function(){this.grid.addRow(this.createModel({isNew:!0}))}},{key:"saveHandler",value:function(e){var n=this.saveModel(e);n&&(e.isNew?this.editService.create(n):this.editService.update(n)),this.grid.closeRow(e.rowIndex)}},{key:"cancelHandler",value:function(e){this.closeEditor(e.rowIndex)}},{key:"removeHandler",value:function(e){var n=this,a=e.dataItem,o=function(u){u&&n.editService.remove(a)};if(this.removeConfirmation){var s=this.removeConfirmation(a);s instanceof Promise?s.then(o):s instanceof An?s.pipe(It(1)).subscribe(o):o(s)}else o(!0)}},{key:"onStateChange",value:function(){this.closeEditor()}},{key:"closeEditor",value:function(e){this.grid.closeRow(e)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridEditingDirectiveBase",""]],inputs:{editService:"editService",removeConfirmation:"removeConfirmation"}}),i}(),hkt=function(i){b(t,i);var r=S(t);function t(){return p(this,t),r.apply(this,arguments)}return v(t,[{key:"update",value:function(n){this.dataChanged()}}]),t}(Bfe),Vfe=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e,[{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.subscriptions.add(this.grid.edit.subscribe(this.editHandler.bind(this)))}},{key:"createDefaultService",value:function(){return new hkt(this.grid,this.localDataChangesService)}},{key:"addHandler",value:function(){this.closeEditor(),$(q(e.prototype),"addHandler",this).call(this)}},{key:"editHandler",value:function(a){this.closeEditor(),this.rowIndex=a.rowIndex,this.grid.editRow(a.rowIndex,this.createModel(a))}},{key:"saveHandler",value:function(a){$(q(e.prototype),"saveHandler",this).call(this,a),this.clean()}},{key:"closeEditor",value:function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rowIndex;$(q(e.prototype),"closeEditor",this).call(this,a),this.clean()}},{key:"clean",value:function(){delete this.rowIndex}}]),e}(Gfe);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["","kendoGridRowEditingDirectiveBase",""]],features:[j]}),i}(),Ufe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).grid=n,o.localDataChangesService=a,o}return v(e,[{key:"editHandler",value:function(a){$(q(e.prototype),"editHandler",this).call(this,a),this.dataItem=a.dataItem,this.originalValues={},this.editService.assignValues(this.originalValues,this.dataItem)}},{key:"closeEditor",value:function(a){this.dataItem&&this.editService.assignValues(this.dataItem,this.originalValues),$(q(e.prototype),"closeEditor",this).call(this,a)}},{key:"createModel",value:function(a){if(a.isNew)return this.createNewItem()}},{key:"saveModel",value:function(a){return a.dataItem}},{key:"clean",value:function(){$(q(e.prototype),"clean",this).call(this),delete this.dataItem}}]),e}(Vfe);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridTemplateEditing",""]],inputs:{createNewItem:["kendoGridTemplateEditing","createNewItem"]},features:[j]}),i}(),zfe=function i(r){if(r.markAsTouched(),r.hasOwnProperty("controls")){var t=r.controls;for(var e in t)t.hasOwnProperty(e)&&i(t[e])}},Hfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a){var o;return p(this,e),(o=t.call(this,n,a)).grid=n,o.localDataChangesService=a,o}return v(e,[{key:"createModel",value:function(a){return this.createFormGroup(a)}},{key:"saveModel",value:function(a){var o=a.dataItem,s=a.formGroup;if(s.dirty||a.isNew){if(s.valid)return this.editService.assignValues(o,s.value),o;zfe(s)}}}]),e}(Vfe);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridReactiveEditing",""]],inputs:{createFormGroup:["kendoGridReactiveEditing","createFormGroup"]},features:[j]}),i}(),Kfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){var s;return p(this,e),(s=t.call(this,n,a)).grid=n,s.localDataChangesService=a,s.cdr=o,s}return v(e,[{key:"createModel",value:function(a){return this.createFormGroup(a)}},{key:"saveModel",value:function(a){var o=a.dataItem,s=a.formGroup;if(s.dirty||a.isNew){if(s.valid)return this.editService.assignValues(o,s.value),o;zfe(s)}}},{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.subscriptions.add(this.grid.cellClick.subscribe(this.cellClickHandler.bind(this))),this.subscriptions.add(this.grid.cellClose.subscribe(this.cellCloseHandler.bind(this)))}},{key:"removeHandler",value:function(a){$(q(e.prototype),"removeHandler",this).call(this,a),this.grid.cancelCell()}},{key:"cellClickHandler",value:function(a){!a.isEdited&&"contextmenu"!==a.type&&(this.grid.editCell(a.rowIndex,a.columnIndex,this.createFormGroup(a)),this.cdr.markForCheck())}},{key:"cellCloseHandler",value:function(a){var o=a.formGroup,s=a.dataItem;if(o.valid){if(o.dirty){if(a.originalEvent&&a.originalEvent.keyCode===J.Escape)return;this.editService.assignValues(s,o.value),this.editService.update(s)}}else a.preventDefault()}}]),e}(Gfe);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(ed),m(nt))},i.\u0275dir=X({type:i,selectors:[["","kendoGridInCellEditing",""]],inputs:{createFormGroup:["kendoGridInCellEditing","createFormGroup"]},features:[j]}),i}(),fkt=function(r){return r&&r.length&&r[0].field&&r[0].items},jfe=function(r){return He(r)&&r.length>0},Wfe=function(r,t){return Gte(r,t).data},$fe=function(r,t){var e=[];return{group:r.split("_").reduce(function(n,a){var o=parseInt(a,10);return n.items?(e.push(n),n.items[o]):aV(n)?n[o]:n},t),parents:e}},TU=function i(r){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce(function(e,n){if(n.skipHeader||e++,n.items){var a=i(n.items,t);t&&a&&!n.hideFooter&&e++,e+=a}return e},0)},gkt=function i(r,t,e){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!He(e))return r;for(var a=[],o=0,s=r.length;o0;if(t&&(t--,c&&t>=c))t-=c;else if(!d||c){var h=[],f=!0;if(d||e--,e){if(fkt(u)){var g=i(u,t,e,n);h.push.apply(h,Ae(g)),e-=TU(g,n)}else h.push.apply(h,Ae(u.slice(t,Math.min(t+e,u.length)))),e-=h.length;e&&n&&(f=!1,e--),t=0}a.push({aggregates:l.aggregates,field:l.field,hideFooter:f,items:h,offset:o,skipHeader:d,value:l.value})}}return a},qfe=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o){return p(this,e),t.call(this,n,a,o)}return v(e,[{key:"kendoGridGroupBinding",set:function(a){this.groups=null,this.grid.resetGroupsState(),this.data=a}},{key:"data",set:function(a){this.originalData=a||[],this.dataChanged=!0}},{key:"sort",set:function(a){var o=this.state.sort!==a;this.grid.sort=this.state.sort=a,o&&(this.groups=null,this.grid.resetGroupsState())}},{key:"filter",set:function(a){Vhe(this.state.filter,a)&&(this.state.filter=a,this.grid.filter=nU(a),this.groups=null,this.grid.resetGroupsState())}},{key:"group",set:function(a){var o=jfe(this.state.group)||jfe(a),s=this.state.group!==a&&o;this.grid.group=this.state.group=a,s&&(this.groups=null,this.grid.resetGroupsState(),this.skip=0)}},{key:"ngOnInit",value:function(){$(q(e.prototype),"ngOnInit",this).call(this),this.grid.groupExpand.subscribe(this.groupExpand.bind(this)),this.grid.groupCollapse.subscribe(this.groupCollapse.bind(this))}},{key:"ngAfterContentInit",value:function(){if(xt()&&this.grid.isGroupExpanded)throw new Error("Using the `kendoGridGroupBinding` directive in combination with the `kendoGridExpandGroupBy` directive or the `isGroupExpanded` callback is not supported. To use grouping with the `kendoGridGroupBinding` directive, set the Grid `groupable` property to `true`.")}},{key:"groupExpand",value:function(a){var o=a.groupIndex;this.grid.expandGroupChildren(o);var s=$fe(o,this.groups),l=s.group,u=s.parents;if(!l.items.length){var c=this.state.group.filter(function(r,t){return function(e){return e.field!==t.field&&!r.some(function(n){return n.field===e.field})}}(u,l)),d=function(r,t){var e=t.map(function(n){return{field:n.field,operator:"eq",value:n.value}});return Fte(r,{filters:e,logic:"and"})}(this.originalData,u.concat(l));l.items=Wfe(d,{filter:this.state.filter,group:c,sort:this.state.sort})}this.grid.data=this.dataResult(this.state.skip,this.state.take)}},{key:"groupCollapse",value:function(a){var l=$fe(a.groupIndex,this.groups).group;l&&(l.items=[]),this.grid.data=this.dataResult(this.state.skip,this.state.take)}},{key:"process",value:function(a){if(a.group&&a.group.length){var o=this.processGroups(a);return this.grid.skip-=function(r){for(var t=0;r;)r.skipHeader&&t++,r=r.items&&r.items[0]||null;return t}(o.data[0]),o}return this.groups=null,$(q(e.prototype),"process",this).call(this,a)}},{key:"processGroups",value:function(a){return(!this.groups||!this.groups.length)&&(this.groups=Wfe(this.originalData,{filter:a.filter,group:a.group,sort:a.sort})),this.dataResult(a.skip,a.take)}},{key:"dataResult",value:function(a,o){var s=this.grid.showGroupFooters;return{data:gkt(this.groups,a,o,s),total:TU(this.groups,s)}}},{key:"applyState",value:function(a){var s=a.take,l=a.sort,u=a.group,c=a.filter;this.skip=a.skip,this.state.take=s,this.sort=l,this.group=u,this.filter=c}}]),e}(wU);return i.\u0275fac=function(t){return new(t||i)(m(Gl),m(nt),m(ed))},i.\u0275dir=X({type:i,selectors:[["","kendoGridGroupBinding",""]],inputs:{kendoGridGroupBinding:"kendoGridGroupBinding",sort:"sort",filter:"filter",group:"group"},features:[j]}),i}(),_kt=([Gl,LV,HV,Zde,wU,Cfe,wfe,qfe,Ufe,Hfe,Kfe,bfe,Sfe].concat(Ae(RA.exports()),Ae(id.exports()),Ae(Lfe.exports()),Ae(xfe.exports()),Ae(Pfe.exports()),Ae(Efe.exports()),Ae(DU.exports()),Ae(OA.exports()),Ae(EU.exports())),function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt,RA,id,Lfe,xfe,Pfe,Efe,DU,OA,yo,EU]]}),i}()),Nkt=(Ta("KENDO-GRID-LIST"),Ta("TABLE"),function(){var i=function(){function r(t,e){p(this,r),this.element=t,this.renderer=e,this.colors={"SEV: LOW":"#ff9800","SEV: MEDIUM":"#ff5d2a","SEV: HIGH":"#d50000",ENHANCEMENT:"#00c853",FEATURE:"#2e7d32",OTHER:"#1ca8dd","PASSED QA":"#57b45b",BUG:"#cf3257","NEEDS QA":"#bc007c",DOCUMENTATION:"#455a64",DEMO:"#673ab7",DELETED:"#f44336","IN PROGRESS":"#ffd600"}}return v(r,[{key:"labelClass",set:function(e){var n=this.matchColor(e);this.renderer.setStyle(this.element.nativeElement,"backgroundColor",n)}},{key:"matchColor",value:function(e){return this.colors[e.toUpperCase()]||this.colors.OTHER}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee))},i.\u0275dir=X({type:i,selectors:[["","appLabelClass",""]],inputs:{labelClass:"labelClass"}}),i}());var Ym={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},Lkt=/[&<>"']/,Pkt=/[&<>"']/g,Bkt=/[<>"']|&(?!#?\w+;)/,Gkt=/[<>"']|&(?!#?\w+;)/g,Vkt={"&":"&","<":"<",">":">",'"':""","'":"'"},ive=function(r){return Vkt[r]};function ua(i,r){if(r){if(Lkt.test(i))return i.replace(Pkt,ive)}else if(Bkt.test(i))return i.replace(Gkt,ive);return i}var Ukt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function rve(i){return i.replace(Ukt,function(r,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var zkt=/(^|[^\[])\^/g;function bi(i,r){i="string"==typeof i?i:i.source,r=r||"";var t={replace:function(n,a){return a=(a=a.source||a).replace(zkt,"$1"),i=i.replace(n,a),t},getRegex:function(){return new RegExp(i,r)}};return t}var Hkt=/[^\w:]/g,Kkt=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ave(i,r,t){if(i){var e;try{e=decodeURIComponent(rve(t)).replace(Hkt,"").toLowerCase()}catch(n){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}r&&!Kkt.test(t)&&(t=function qkt(i,r){IA[" "+i]||(IA[" "+i]=jkt.test(i)?i+"/":FA(i,"/",!0));var t=-1===(i=IA[" "+i]).indexOf(":");return"//"===r.substring(0,2)?t?r:i.replace(Wkt,"$1")+r:"/"===r.charAt(0)?t?r:i.replace($kt,"$1")+r:i+r}(r,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch(n){return null}return t}var IA={},jkt=/^[^:]+:\/*[^/]*$/,Wkt=/^([^:]+:)[\s\S]*$/,$kt=/^([^:]+:\/*[^/]*)[\s\S]*$/,NA={exec:function(){}};function Vl(i){for(var t,e,r=1;r=0&&"\\"===s[u];)l=!l;return l?"|":" |"}).split(/ \|/),n=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>r)e.splice(r);else for(;e.length1;)1&r&&(t+=i),r>>=1,i+=i;return t+i}function uve(i,r,t,e){var n=r.href,a=r.title?ua(r.title):null,o=i[1].replace(/\\([\[\]])/g,"$1");if("!"!==i[0].charAt(0)){e.state.inLink=!0;var s={type:"link",raw:t,href:n,title:a,text:o,tokens:e.inlineTokens(o,[])};return e.state.inLink=!1,s}return{type:"image",raw:t,href:n,title:a,text:ua(o)}}var LU=function(){function i(r){p(this,i),this.options=r||Ym}return v(i,[{key:"space",value:function(t){var e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}},{key:"code",value:function(t){var e=this.rules.block.code.exec(t);if(e){var n=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?n:FA(n,"\n")}}}},{key:"fences",value:function(t){var e=this.rules.block.fences.exec(t);if(e){var n=e[0],a=function Zkt(i,r){var t=i.match(/^(\s+)(?:```)/);if(null===t)return r;var e=t[1];return r.split("\n").map(function(n){var a=n.match(/^\s+/);return null===a?n:Gt(a,1)[0].length>=e.length?n.slice(e.length):n}).join("\n")}(n,e[3]||"");return{type:"code",raw:n,lang:e[2]?e[2].trim():e[2],text:a}}}},{key:"heading",value:function(t){var e=this.rules.block.heading.exec(t);if(e){var n=e[2].trim();if(/#$/.test(n)){var a=FA(n,"#");(this.options.pedantic||!a||/ $/.test(a))&&(n=a.trim())}var o={type:"heading",raw:e[0],depth:e[1].length,text:n,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}}},{key:"hr",value:function(t){var e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:e[0]}}},{key:"blockquote",value:function(t){var e=this.rules.block.blockquote.exec(t);if(e){var n=e[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:e[0],tokens:this.lexer.blockTokens(n,[]),text:n}}}},{key:"list",value:function(t){var e=this.rules.block.list.exec(t);if(e){var n,a,o,s,l,u,c,d,h,f,g,_,C=e[1].trim(),w=C.length>1,E={type:"list",raw:"",ordered:w,start:w?+C.slice(0,-1):"",loose:!1,items:[]};C=w?"\\d{1,9}\\".concat(C.slice(-1)):"\\".concat(C),this.options.pedantic&&(C=w?C:"[*+-]");for(var M=new RegExp("^( {0,3}".concat(C,")((?:[\t ][^\\n]*)?(?:\\n|$))"));t&&(_=!1,(e=M.exec(t))&&!this.rules.block.hr.test(t));){if(t=t.substring((n=e[0]).length),d=e[2].split("\n",1)[0],h=t.split("\n",1)[0],this.options.pedantic?(s=2,g=d.trimLeft()):(s=e[2].search(/[^ ]/),g=d.slice(s=s>4?1:s),s+=e[1].length),u=!1,!d&&/^ *$/.test(h)&&(n+=h+"\n",t=t.substring(h.length+1),_=!0),!_)for(var R=new RegExp("^ {0,".concat(Math.min(3,s-1),"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))")),N=new RegExp("^ {0,".concat(Math.min(3,s-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"));t&&(d=f=t.split("\n",1)[0],this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!R.test(d)&&!N.test(t));){if(d.search(/[^ ]/)>=s||!d.trim())g+="\n"+d.slice(s);else{if(u)break;g+="\n"+d}!u&&!d.trim()&&(u=!0),n+=f+"\n",t=t.substring(f.length+1)}E.loose||(c?E.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(a=/^\[[ xX]\] /.exec(g))&&(o="[ ] "!==a[0],g=g.replace(/^\[[ xX]\] +/,"")),E.items.push({type:"list_item",raw:n,task:!!a,checked:o,loose:!1,text:g}),E.raw+=n}E.items[E.items.length-1].raw=n.trimRight(),E.items[E.items.length-1].text=g.trimRight(),E.raw=E.raw.trimRight();var V=E.items.length;for(l=0;l1)return!0}catch(me){K.e(me)}finally{K.f()}return!1});!E.loose&&U.length&&ee&&(E.loose=!0,E.items[l].loose=!0)}return E}}},{key:"html",value:function(t){var e=this.rules.block.html.exec(t);if(e){var n={type:"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:e[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(e[0]):ua(e[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}}},{key:"def",value:function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{type:"def",tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}}},{key:"table",value:function(t){var e=this.rules.block.table.exec(t);if(e){var n={type:"table",header:ove(e[1]).map(function(c){return{text:c}}),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=e[0];var o,s,l,u,a=n.align.length;for(o=0;o/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):ua(e[0]):e[0]}}},{key:"link",value:function(t){var e=this.rules.inline.link.exec(t);if(e){var n=e[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var a=FA(n.slice(0,-1),"\\");if((n.length-a.length)%2==0)return}else{var o=function Xkt(i,r){if(-1===i.indexOf(r[1]))return-1;for(var t=i.length,e=0,n=0;n-1){var l=(0===e[0].indexOf("!")?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,l).trim(),e[3]=""}}var u=e[2],c="";if(this.options.pedantic){var d=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(u);d&&(u=d[1],c=d[3])}else c=e[3]?e[3].slice(1,-1):"";return u=u.trim(),/^$/.test(n)?u.slice(1):u.slice(1,-1)),uve(e,{href:u&&u.replace(this.rules.inline._escapes,"$1"),title:c&&c.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}},{key:"reflink",value:function(t,e){var n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){var a=(n[2]||n[1]).replace(/\s+/g," ");if(!(a=e[a.toLowerCase()])||!a.href){var o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return uve(n,a,n[0],this.lexer)}}},{key:"emStrong",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=this.rules.inline.emStrong.lDelim.exec(t);if(a&&(!a[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=a[1]||a[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){var l,u,s=a[0].length-1,c=s,d=0,h="*"===a[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,e=e.slice(-1*t.length+s);null!=(a=h.exec(e));)if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6]){if(u=l.length,a[3]||a[4]){c+=u;continue}if((a[5]||a[6])&&s%3&&!((s+u)%3)){d+=u;continue}if(!((c-=u)>0)){if(u=Math.min(u,u+c+d),Math.min(s,u)%2){var f=t.slice(1,s+a.index+u);return{type:"em",raw:t.slice(0,s+a.index+u+1),text:f,tokens:this.lexer.inlineTokens(f,[])}}var g=t.slice(2,s+a.index+u-1);return{type:"strong",raw:t.slice(0,s+a.index+u+1),text:g,tokens:this.lexer.inlineTokens(g,[])}}}}}}},{key:"codespan",value:function(t){var e=this.rules.inline.code.exec(t);if(e){var n=e[2].replace(/\n/g," "),a=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return a&&o&&(n=n.substring(1,n.length-1)),n=ua(n,!0),{type:"codespan",raw:e[0],text:n}}}},{key:"br",value:function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}},{key:"del",value:function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2],[])}}},{key:"autolink",value:function(t,e){var a,o,n=this.rules.inline.autolink.exec(t);if(n)return o="@"===n[2]?"mailto:"+(a=ua(this.options.mangle?e(n[1]):n[1])):a=ua(n[1]),{type:"link",raw:n[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}},{key:"url",value:function(t,e){var n;if(n=this.rules.inline.url.exec(t)){var a,o;if("@"===n[2])o="mailto:"+(a=ua(this.options.mangle?e(n[0]):n[0]));else{var s;do{s=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);a=ua(n[0]),o="www."===n[1]?"http://"+a:a}return{type:"link",raw:n[0],text:a,href:o,tokens:[{type:"text",raw:a,text:a}]}}}},{key:"inlineText",value:function(t,e){var a,n=this.rules.inline.text.exec(t);if(n)return a=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):ua(n[0]):n[0]:ua(this.options.smartypants?e(n[0]):n[0]),{type:"text",raw:n[0],text:a}}}]),i}(),Ht={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:NA,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Ht.def=bi(Ht.def).replace("label",Ht._label).replace("title",Ht._title).getRegex(),Ht.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ht.listItemStart=bi(/^( *)(bull) */).replace("bull",Ht.bullet).getRegex(),Ht.list=bi(Ht.list).replace(/bull/g,Ht.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ht.def.source+")").getRegex(),Ht._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ht._comment=/|$)/,Ht.html=bi(Ht.html,"i").replace("comment",Ht._comment).replace("tag",Ht._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ht.paragraph=bi(Ht._paragraph).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.blockquote=bi(Ht.blockquote).replace("paragraph",Ht.paragraph).getRegex(),Ht.normal=Vl({},Ht),Ht.gfm=Vl({},Ht.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ht.gfm.table=bi(Ht.gfm.table).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.gfm.paragraph=bi(Ht._paragraph).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Ht.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ht._tag).getRegex(),Ht.pedantic=Vl({},Ht.normal,{html:bi("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Ht._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:NA,paragraph:bi(Ht.normal._paragraph).replace("hr",Ht.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Ht.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var _t={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:NA,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:NA,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(e="x"+e.toString(16)),r+="&#"+e+";";return r}_t._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",_t.punctuation=bi(_t.punctuation).replace(/punctuation/g,_t._punctuation).getRegex(),_t.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,_t.escapedEmSt=/\\\*|\\_/g,_t._comment=bi(Ht._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),_t.emStrong.lDelim=bi(_t.emStrong.lDelim).replace(/punct/g,_t._punctuation).getRegex(),_t.emStrong.rDelimAst=bi(_t.emStrong.rDelimAst,"g").replace(/punct/g,_t._punctuation).getRegex(),_t.emStrong.rDelimUnd=bi(_t.emStrong.rDelimUnd,"g").replace(/punct/g,_t._punctuation).getRegex(),_t._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,_t._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,_t._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,_t.autolink=bi(_t.autolink).replace("scheme",_t._scheme).replace("email",_t._email).getRegex(),_t._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,_t.tag=bi(_t.tag).replace("comment",_t._comment).replace("attribute",_t._attribute).getRegex(),_t._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,_t._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,_t._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,_t.link=bi(_t.link).replace("label",_t._label).replace("href",_t._href).replace("title",_t._title).getRegex(),_t.reflink=bi(_t.reflink).replace("label",_t._label).replace("ref",Ht._label).getRegex(),_t.nolink=bi(_t.nolink).replace("ref",Ht._label).getRegex(),_t.reflinkSearch=bi(_t.reflinkSearch,"g").replace("reflink",_t.reflink).replace("nolink",_t.nolink).getRegex(),_t.normal=Vl({},_t),_t.pedantic=Vl({},_t.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:bi(/^!?\[(label)\]\((.*?)\)/).replace("label",_t._label).getRegex(),reflink:bi(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",_t._label).getRegex()}),_t.gfm=Vl({},_t.normal,{escape:bi(_t.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[];for(t=this.options.pedantic?t.replace(/\t/g," ").replace(/^ +$/gm,""):t.replace(/^( *)(\t+)/gm,function(c,d,h){return d+" ".repeat(h.length)});t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(c){return!!(a=c.call({lexer:e},t,n))&&(t=t.substring(a.raw.length),n.push(a),!0)}))){if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length),1===a.raw.length&&n.length>0?n[n.length-1].raw+="\n":n.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length),!(o=n[n.length-1])||"paragraph"!==o.type&&"text"!==o.type?n.push(a):(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length),!(o=n[n.length-1])||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title}):(o.raw+="\n"+a.raw,o.text+="\n"+a.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(s=t,this.options.extensions&&this.options.extensions.startBlock&&function(){var c=1/0,d=t.slice(1),h=void 0;e.options.extensions.startBlock.forEach(function(f){"number"==typeof(h=f.call({lexer:this},d))&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}(),this.state.top&&(a=this.tokenizer.paragraph(s))){o=n[n.length-1],l&&"paragraph"===o.type?(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(a),l=s.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===o.type?(o.raw+="\n"+a.raw,o.text+="\n"+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(a);continue}if(t){var u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}return this.state.top=!0,n}},{key:"inline",value:function(t,e){this.inlineQueue.push({src:t,tokens:e})}},{key:"inlineTokens",value:function(t){var a,o,s,u,c,d,e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=t;if(this.tokens.links){var h=Object.keys(this.tokens.links);if(h.length>0)for(;null!=(u=this.tokenizer.rules.inline.reflinkSearch.exec(l));)h.includes(u[0].slice(u[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,u.index)+"["+lve("a",u[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(u=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,u.index)+"["+lve("a",u[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(u=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,u.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;t;)if(c||(d=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(g){return!!(a=g.call({lexer:e},t,n))&&(t=t.substring(a.raw.length),n.push(a),!0)}))){if(a=this.tokenizer.escape(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(t)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===a.type&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(a=this.tokenizer.link(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(a.raw.length),(o=n[n.length-1])&&"text"===a.type&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(t,l,d)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(t,cve)){t=t.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(t,cve))){t=t.substring(a.raw.length),n.push(a);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline&&function(){var g=1/0,_=t.slice(1),C=void 0;e.options.extensions.startInline.forEach(function(w){"number"==typeof(C=w.call({lexer:this},_))&&C>=0&&(g=Math.min(g,C))}),g<1/0&&g>=0&&(s=t.substring(0,g+1))}(),a=this.tokenizer.inlineText(s,Ykt)){t=t.substring(a.raw.length),"_"!==a.raw.slice(-1)&&(d=a.raw.slice(-1)),c=!0,(o=n[n.length-1])&&"text"===o.type?(o.raw+=a.raw,o.text+=a.text):n.push(a);continue}if(t){var f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}return n}}],[{key:"rules",get:function(){return{block:Ht,inline:_t}}},{key:"lex",value:function(t,e){return new i(e).lex(t)}},{key:"lexInline",value:function(t,e){return new i(e).inlineTokens(t)}}]),i}(),PU=function(){function i(r){p(this,i),this.options=r||Ym}return v(i,[{key:"code",value:function(t,e,n){var a=(e||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(t,a);null!=o&&o!==t&&(n=!0,t=o)}return t=t.replace(/\n$/,"")+"\n",a?'
    '+(n?t:ua(t,!0))+"
    \n":"
    "+(n?t:ua(t,!0))+"
    \n"}},{key:"blockquote",value:function(t){return"
    \n".concat(t,"
    \n")}},{key:"html",value:function(t){return t}},{key:"heading",value:function(t,e,n,a){if(this.options.headerIds){var o=this.options.headerPrefix+a.slug(n);return"').concat(t,"\n")}return"").concat(t,"\n")}},{key:"hr",value:function(){return this.options.xhtml?"
    \n":"
    \n"}},{key:"list",value:function(t,e,n){var a=e?"ol":"ul";return"<"+a+(e&&1!==n?' start="'+n+'"':"")+">\n"+t+"\n"}},{key:"listitem",value:function(t){return"
  • ".concat(t,"
  • \n")}},{key:"checkbox",value:function(t){return" "}},{key:"paragraph",value:function(t){return"

    ".concat(t,"

    \n")}},{key:"table",value:function(t,e){return e&&(e="".concat(e,"")),"\n\n"+t+"\n"+e+"
    \n"}},{key:"tablerow",value:function(t){return"\n".concat(t,"\n")}},{key:"tablecell",value:function(t,e){var n=e.header?"th":"td";return(e.align?"<".concat(n,' align="').concat(e.align,'">'):"<".concat(n,">"))+t+"\n")}},{key:"strong",value:function(t){return"".concat(t,"")}},{key:"em",value:function(t){return"".concat(t,"")}},{key:"codespan",value:function(t){return"".concat(t,"")}},{key:"br",value:function(){return this.options.xhtml?"
    ":"
    "}},{key:"del",value:function(t){return"".concat(t,"")}},{key:"link",value:function(t,e,n){if(null===(t=ave(this.options.sanitize,this.options.baseUrl,t)))return n;var a='"+n+""}},{key:"image",value:function(t,e,n){if(null===(t=ave(this.options.sanitize,this.options.baseUrl,t)))return n;var a='').concat(n,'":">")}},{key:"text",value:function(t){return t}}]),i}(),dve=function(){function i(){p(this,i)}return v(i,[{key:"strong",value:function(t){return t}},{key:"em",value:function(t){return t}},{key:"codespan",value:function(t){return t}},{key:"del",value:function(t){return t}},{key:"html",value:function(t){return t}},{key:"text",value:function(t){return t}},{key:"link",value:function(t,e,n){return""+n}},{key:"image",value:function(t,e,n){return""+n}},{key:"br",value:function(){return""}}]),i}(),hve=function(){function i(){p(this,i),this.seen={}}return v(i,[{key:"serialize",value:function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(t,e){var n=t,a=0;if(this.seen.hasOwnProperty(n)){a=this.seen[t];do{n=t+"-"+ ++a}while(this.seen.hasOwnProperty(n))}return e||(this.seen[t]=a,this.seen[n]=0),n}},{key:"slug",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serialize(t);return this.getNextSafeSlug(n,e.dryrun)}}]),i}(),Jm=function(){function i(r){p(this,i),this.options=r||Ym,this.options.renderer=this.options.renderer||new PU,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new dve,this.slugger=new hve}return v(i,[{key:"parse",value:function(t){var a,o,s,l,u,c,d,h,f,g,_,C,w,E,M,R,N,V,U,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="",ee=t.length;for(a=0;a0&&"paragraph"===M.tokens[0].type?(M.tokens[0].text=V+" "+M.tokens[0].text,M.tokens[0].tokens&&M.tokens[0].tokens.length>0&&"text"===M.tokens[0].tokens[0].type&&(M.tokens[0].tokens[0].text=V+" "+M.tokens[0].tokens[0].text)):M.tokens.unshift({type:"text",text:V}):E+=V),E+=this.parse(M.tokens,w),f+=this.renderer.listitem(E,N,R);n+=this.renderer.list(f,_,C);continue;case"html":n+=this.renderer.html(g.text);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(g.tokens));continue;case"text":for(f=g.tokens?this.parseInline(g.tokens):g.text;a+1An error occurred:

    "+ua(l.message+"",!0)+"
    ";throw l}}en.options=en.setOptions=function(i){return Vl(en.defaults,i),function Fkt(i){Ym=i}(en.defaults),en},en.getDefaults=function nve(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},en.defaults=Ym,en.use=function(){for(var i=arguments.length,r=new Array(i),t=0;tAn error occurred:

    "+ua(e.message+"",!0)+"
    ";throw e}},en.Parser=Jm,en.parser=Jm.parse,en.Renderer=PU,en.TextRenderer=dve,en.Lexer=Qm,en.lexer=Qm.lex,en.Tokenizer=LU,en.Slugger=hve,en.parse=en;var Qkt=en.setOptions,Jkt=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"ngOnChanges",value:function(){var e=Qkt({});this.convertedData=e.parse(this.data)}}]),r}();return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=L({type:i,selectors:[["app-markdown"]],inputs:{data:"data"},features:[Ie],decls:1,vars:1,consts:[[3,"innerHTML"]],template:function(t,e){1&t&&z(0,"div",0),2&t&&y("innerHTML",e.convertedData,LS)},encapsulation:2}),i}();function eCt(i,r){1&i&&z(0,"app-loading-spinner")}function tCt(i,r){1&i&&(A(0,"div"),z(1,"img",8),x())}function nCt(i,r){if(1&i&&(A(0,"a",17),te(1),x()),2&i){var t=r.$implicit;k(1),Pt("#",t.number,"")}}var iCt=function(r,t){return{"issue-status":!0,"issue-open":r,"issue-closed":t}};function rCt(i,r){if(1&i&&(z(0,"span",18),te(1)),2&i){var t=r.$implicit;y("ngClass",ln(2,iCt,"open"===t.state,"open"!==t.state)),k(1),Pt(" ",t.title," ")}}function aCt(i,r){if(1&i&&(A(0,"span",20),te(1),x()),2&i){var t=r.$implicit;y("appLabelClass",t.name),k(1),Pt(" ",t.name," ")}}function oCt(i,r){1&i&&T(0,aCt,2,2,"span",19),2&i&&y("ngForOf",r.$implicit.labels)}function sCt(i,r){if(1&i&&te(0),2&i){var t=r.$implicit;Pt(" ",t.milestone?t.milestone.title:""," ")}}var fve=function(){return{width:"30px",height:"30px"}};function lCt(i,r){if(1&i&&z(0,"img",22),2&i){var t=D().$implicit;y("src",t.assignee?t.assignee.avatar_url:void 0,uc)("ngStyle",Tt(2,fve))}}function uCt(i,r){if(1&i&&(T(0,lCt,1,3,"img",21),te(1)),2&i){var t=r.$implicit;y("ngIf",t.assignee),k(1),Pt(" ",t.assignee?t.assignee.login:""," ")}}function cCt(i,r){if(1&i&&(A(0,"div",28)(1,"span",29),te(2,"Closed on"),x(),te(3),ja(4,"date"),x()),2&i){var t=D().$implicit;k(3),Pt(" ",fc(4,1,t.closed_at)," ")}}function dCt(i,r){if(1&i&&(A(0,"div",28)(1,"span",29),te(2,"Assignee"),x(),z(3,"img",22),te(4),x()),2&i){var t=D().$implicit;k(3),y("src",t.assignee?t.assignee.avatar_url:void 0,uc)("ngStyle",Tt(3,fve)),k(1),Pt(" ",t.assignee?t.assignee.login:""," ")}}function hCt(i,r){if(1&i&&(A(0,"span",20),te(1),x()),2&i){var t=r.$implicit;y("appLabelClass",t.name),k(1),Pt(" ",t.name," ")}}var fCt=function(r,t){return{"badge-success":r,"badge-danger":t}};function vCt(i,r){if(1&i&&(A(0,"div",23)(1,"div",24)(2,"span",25),te(3),x(),A(4,"h3",26),te(5),A(6,"span",27),te(7),x()()()(),A(8,"div",23)(9,"div",28)(10,"span",29),te(11,"Created on"),x(),te(12),ja(13,"date"),x(),T(14,cCt,5,3,"div",30),A(15,"div",28)(16,"span",29),te(17,"Milestone"),x(),te(18),x(),A(19,"div",28)(20,"span",29),te(21,"Author"),x(),te(22),x(),T(23,dCt,5,4,"div",30),x(),A(24,"div",23)(25,"div",28)(26,"h4",31),te(27,"Labels"),x(),T(28,hCt,2,2,"span",19),x(),A(29,"div",32)(30,"h4",31),te(31,"Description"),x(),z(32,"app-markdown",33),x()()),2&i){var t=r.$implicit;k(2),y("ngClass",ln(13,fCt,"open"===t.state,"closed"===t.state)),k(1),at(t.state),k(2),Pt(" ",t.title," "),k(2),Pt("#",t.number,""),k(5),Pt(" ",fc(13,11,t.created_at)," "),k(2),y("ngIf",t.closed_at),k(4),Pt(" ",t.milestone?t.milestone.title:""," "),k(4),Pt(" ",t.user.login," "),k(1),y("ngIf",t.assignee),k(5),y("ngForOf",t.labels),k(4),y("data",t.body)}}var pCt=function(){return{pageSizes:!0,buttonCount:3}};function gCt(i,r){if(1&i){var t=xe();A(0,"kendo-grid",9),Q("pageChange",function(a){return re(t),D().onPageChange(a)}),A(1,"kendo-grid-column",10),T(2,nCt,2,1,"ng-template",11),x(),A(3,"kendo-grid-column",12),T(4,rCt,2,5,"ng-template",11),x(),A(5,"kendo-grid-column",13),T(6,oCt,1,1,"ng-template",11),x(),A(7,"kendo-grid-column",14),T(8,sCt,1,1,"ng-template",11),x(),A(9,"kendo-grid-column",15),T(10,uCt,2,2,"ng-template",11),x(),T(11,vCt,33,16,"ng-template",16),x()}if(2&i){var e=D();y("data",e.view)("pageSize",e.pageSize)("pageable",Tt(5,pCt))("skip",e.skip)("scrollable","none")}}var vve,pve,mCt=function(){var i=function(){function r(t,e,n){var a=this;p(this,r),this.http=t,this.githubService=e,this.issuesProcessor=n,this.isLoading=!0,this.selectedPeriod=3,this.total=5,this.pageSize=10,this.skip=0,this.today=new Date,this.months=3,this.range=this.dateRange(),e.getGithubIssues({pages:5}).subscribe(function(o){o=o.reduce(function(s,l){return[].concat(Ae(s),Ae(l))},[]).filter(function(s){return!s.pull_request}),a.allIssues=o,a.applyPaging(a.issuesProcessor.filterByMonth(a.allIssues,a.months)),a.isLoading=!1},function(){return a.isLoading=!1})}return v(r,[{key:"get_id",get:function(){return"issues"}},{key:"get_class",get:function(){return"issues"}},{key:"onFilterClick",value:function(e){this.selectedPeriod=e,this.skip=0,this.months=e,this.range=this.dateRange(),this.applyPaging(this.issuesProcessor.filterByMonth(this.allIssues,e))}},{key:"onPageChange",value:function(e){this.skip=e.skip,this.view=this.getView(e.skip,e.take)}},{key:"applyPaging",value:function(e){this.issues=e,this.view=this.getView(this.skip,this.pageSize)}},{key:"getView",value:function(e,n){return{data:this.issues.slice(e,e+n),total:this.issues.length}}},{key:"dateRange",value:function(){return{to:new Date,from:this.issuesProcessor.getMonthsRange(this.months)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(tO),m(Jp),m(cD))},i.\u0275cmp=L({type:i,selectors:[["app-issues"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.get_id),Ar(e.get_class))},features:[de([Jp,cD])],decls:19,vars:17,consts:[[1,"row"],[1,"col-md","text-center","text-md-right","mb-4"],[3,"disabled","selection"],["kendoButton","",3,"disabled","selected","click"],[1,"col-md","order-md-first","text-center","text-md-left"],[1,"small","text-uppercase","text-muted","d-block"],[4,"ngIf"],[3,"data","pageSize","pageable","skip","scrollable","pageChange",4,"ngIf"],["src","../../assets/noConnection.png"],[3,"data","pageSize","pageable","skip","scrollable","pageChange"],["field","number","title","ID","width","80"],["kendoGridCellTemplate",""],["field","title","title","Title"],["field","labels","title","Labels","media","sm"],["field","milestone","title","Milestone","width","200","media","xl"],["field","assignee","title","Assignee","width","200","media","xl"],["kendoGridDetailTemplate",""],["href","dataItem.html_url"],[3,"ngClass"],["class","badge",3,"appLabelClass",4,"ngFor","ngForOf"],[1,"badge",3,"appLabelClass"],["class","img-circle",3,"src","ngStyle",4,"ngIf"],[1,"img-circle",3,"src","ngStyle"],[1,"row","my-4"],[1,"col-sm-12"],[1,"badge",3,"ngClass"],[1,"h1"],[1,"text-muted"],[1,"col-sm-2"],[1,"small","d-block","text-muted"],["class","col-sm-2",4,"ngIf"],[1,"small","text-muted"],[1,"col-sm-8"],[3,"data"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"div",1)(2,"kendo-buttongroup",2)(3,"button",3),Q("click",function(){return e.onFilterClick(3)}),te(4,"3 Months"),x(),A(5,"button",3),Q("click",function(){return e.onFilterClick(6)}),te(6,"6 Months"),x(),A(7,"button",3),Q("click",function(){return e.onFilterClick(12)}),te(8,"1 Year"),x()()(),A(9,"div",4)(10,"h2")(11,"span",5),te(12,"Issues"),x(),te(13),ja(14,"date"),ja(15,"date"),x()()(),T(16,eCt,1,0,"app-loading-spinner",6),T(17,tCt,2,0,"div",6),T(18,gCt,12,6,"kendo-grid",7)),2&t&&(k(2),y("disabled",e.isLoading)("selection","single"),k(1),y("disabled",e.isLoading)("selected",3===e.selectedPeriod),k(2),y("disabled",e.isLoading)("selected",6===e.selectedPeriod),k(2),y("disabled",e.isLoading)("selected",12===e.selectedPeriod),k(6),Jl(" ",fc(14,13,e.range.from)," - ",fc(15,15,e.range.to)," "),k(3),y("ngIf",e.isLoading),k(1),y("ngIf",!e.isLoading&&!e.view),k(1),y("ngIf",e.view))},directives:[BW,Xa,qe,tN,Gl,Pm,Nv,Nt,gn,Nkt,Vi,ZT,Jkt],pipes:[yw],encapsulation:2}),i}();function _Ct(i,r){1&i&&dn(0,0,["*ngIf","!actions"])}function yCt(i,r){if(1&i){var t=xe();A(0,"button",5),Q("click",function(o){var l=re(t).$implicit;return D(2).onButtonClick(l,o)}),te(1),x()}if(2&i){var e=r.$implicit;y("ngClass",D(2).buttonClass(e)),ie("aria-label",e.text),k(1),Pt(" ",e.text," ")}}function kCt(i,r){if(1&i&&(Ge(0),T(1,yCt,2,3,"button",4),Ve()),2&i){var t=D();k(1),y("ngForOf",t.actionsArray)}}function CCt(i,r){}var BU=["*"];function bCt(i,r){if(1&i&&(A(0,"kendo-dialog-titlebar",7),te(1),x()),2&i){var t=D();y("closeTitle",t.closeTitle)("id",t.titleId),k(1),at(t.title)}}function SCt(i,r){1&i&&dn(0,0,["*ngIf","!title"])}function wCt(i,r){1&i&&dn(0,1,["*ngIf","!contentTemplate"])}function DCt(i,r){}function ECt(i,r){1&i&&T(0,DCt,0,0,"ng-template",8),2&i&&y("ngTemplateOutlet",D().contentTemplate)}function TCt(i,r){1&i&&dn(0,2,["*ngIf","!actions"])}function ACt(i,r){if(1&i&&z(0,"kendo-dialog-actions",9),2&i){var t=D();y("actions",t.actions)("layout",t.actionsLayout)}}var xCt=[[["kendo-dialog-titlebar"]],"*",[["kendo-dialog-actions"]]],MCt=["kendo-dialog-titlebar","*","kendo-dialog-actions"],Si=function(r){return null!=r},kve=function(r){return String(r).trim().split(" ")},WCt=/^(?:a|input|select|textarea|button|object)$/i,ri=function(){return function(i){i[i.esc=27]="esc",i[i.tab=9]="tab",i[i.enter=13]="enter",i[i.space=32]="space",i[i.ctrl=17]="ctrl",i[i.shift=16]="shift",i[i.left=37]="left",i[i.up=38]="up",i[i.right=39]="right",i[i.down=40]="down"}(ri||(ri={})),ri}(),Cve="k-dialog-wrapper k-dialog-buttongroup k-dialog-action",e_=function(r,t){var e=kve(t);return Boolean(kve(r.className).find(function(n){return e.indexOf(n)>=0}))},XCt=function(r){var t=r.getBoundingClientRect();return!(!t.width||!t.height)&&"hidden"!==window.getComputedStyle(r).visibility},Pb=function(r){return tbt(r)?ZCt(r):GU(r)?YCt(r):Array.isArray(r)?QCt(r):void 0},ZCt=function(r){var t=[];return Object.keys(r).forEach(function(e){var n=VU(e);r[e]&&n[0]&&t.push.apply(t,Ae(n))}),t},YCt=function(r){var t=[];return VU(r).forEach(function(n){t.push(n)}),t},QCt=function(r){var t=[];return r.forEach(function(e){var n=VU(e);n[0]&&t.push.apply(t,Ae(n))}),t},JCt=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),GU=function(r){return r instanceof String||"string"==typeof r},tbt=function(r){return Si(r)&&!Array.isArray(r)&&"object"==typeof r},t_=function(r){return r+(function(r){return"number"==typeof r&&isFinite(r)}(r)?"px":"")},VU=function(r){return r.trim().replace(/\s+/g," ").split(" ")},Gb=function(){var i=function(){function r(t){p(this,r),this.el=t,this.layout="stretched",this.action=new O,this.buttonGroupClassName=!0}return v(r,[{key:"actions",set:function(e){if(e instanceof $e)this.actionsTemplate=e;else{if(!Array.isArray(e))throw new Error('"actions" must be either TemplateRef or DialogAction[] instance.');this.actionsArray=e}}},{key:"className",get:function(){return"stretched"===this.layout}},{key:"onButtonClick",value:function(e,n){this.action.emit(e)}},{key:"buttonClass",value:function(e){var n=["k-button k-button-md k-rounded-md"],a=e.fillMode?e.fillMode:"solid",o=e.themeColor?e.themeColor:"base",s=e.cssClass?Pb(e.cssClass):[];return n.push("k-button-".concat(a," k-button-").concat(a,"-").concat(o)),s.length>0&&(n=n.concat(s)),n.join(" ")}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-actions"]],hostVars:6,hostBindings:function(t,e){2&t&&ue("k-dialog-buttongroup",e.buttonGroupClassName)("k-actions",e.buttonGroupClassName)("k-actions-stretched",e.className)},inputs:{actions:"actions",layout:"layout"},outputs:{action:"action"},ngContentSelectors:BU,decls:4,vars:4,consts:[[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"],["actionTemplate",""],["type","button",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",3,"ngClass","click"]],template:function(t,e){if(1&t&&(kn(),T(0,_Ct,1,0,"ng-content",0),T(1,kCt,2,1,"ng-container",1),T(2,CCt,0,0,"ng-template",2,3,$n)),2&t){var n=Yt(3);y("ngIf",!e.actions),k(1),y("ngIf",e.actionsArray)("ngIfElse",n),k(1),y("ngTemplateOutlet",e.actionsTemplate)}},directives:[qe,gn,Nt,En],encapsulation:2}),i}(),UU=function(){function i(){p(this,i),this.prevented=!1}return v(i,[{key:"preventDefault",value:function(){this.prevented=!0}},{key:"isDefaultPrevented",value:function(){return this.prevented}}]),i}(),Dve=new wt("Dialog LocalizationService"),Eve=function(){var i=function(r){b(e,r);var t=S(e);function e(n,a,o,s){var l;return p(this,e),(l=t.call(this,n,a,o)).dialogLocalization=s,l}return v(e,[{key:"get",value:function(a){return this.dialogLocalization?this.dialogLocalization.get(a):$(q(e.prototype),"get",this).call(this,a)}}]),e}(Y);return i.\u0275fac=function(t){return new(t||i)(oe(Dt),oe(rg,8),oe(Td,8),oe(Dve,8))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),LA=function(){var i=function(r){b(e,r);var t=S(e);function e(){return p(this,e),t.apply(this,arguments)}return v(e)}(ma);return i.\u0275fac=function(){var r;return function(e){return(r||(r=_n(i)))(e||i)}}(),i.\u0275dir=X({type:i,selectors:[["kendo-dialog-messages-base"]],inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},features:[j]}),i}(),PA=function(){var i=function(r){b(e,r);var t=S(e);function e(n){var a;return p(this,e),(a=t.call(this)).service=n,a}return v(e)}(LA);return i.\u0275fac=function(t){return new(t||i)(m(Y))},i.\u0275dir=X({type:i,selectors:[["","kendoDialogLocalizedMessages",""],["","kendoWindowLocalizedMessages",""],["","kendoDialogTitleBarLocalizedMessages",""]],features:[de([{provide:LA,useExisting:ye(function(){return i})}]),j]}),i}(),Vb=function(){var i=function(){function r(t,e,n){p(this,r),this.zone=t,this.hostElement=e,this.localizationService=n,this.close=new O}return v(r,[{key:"className",get:function(){return!0}},{key:"closeButtonTitle",get:function(){return this.closeTitle||this.localizationService.get("closeTitle")}},{key:"ngAfterViewInit",value:function(){var e=this;this.zone.onStable.pipe(It(1)).subscribe(function(){e.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",e.id)})}},{key:"onCloseClick",value:function(e){e.preventDefault();var n=new UU;this.close.emit(n)}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(be),m(ke),m(Y,8))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-titlebar"]],hostVars:4,hostBindings:function(t,e){2&t&&ue("k-window-titlebar",e.className)("k-dialog-titlebar",e.className)},inputs:{id:"id",closeTitle:"closeTitle"},outputs:{close:"close"},features:[de([Eve,{provide:Y,useExisting:Eve},{provide:Dt,useValue:"kendo.dialog"}])],ngContentSelectors:BU,decls:6,vars:2,consts:function(){return[["kendoDialogTitleBarLocalizedMessages","","closeTitle",$localize(vve||(vve=le([":kendo.dialog.closeTitle|The title of the close button:Close"])))],[1,"k-window-title","k-dialog-title"],[1,"k-window-actions","k-dialog-actions"],["role","button",1,"k-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base","k-icon-button","k-window-action","k-dialog-action","k-dialog-close",3,"click"],[1,"k-button-icon","k-icon","k-i-x"]]},template:function(t,e){1&t&&(kn(),Ge(0,0),A(1,"div",1),dn(2),x(),A(3,"div",2)(4,"button",3),Q("click",function(a){return e.onCloseClick(a)}),z(5,"span",4),x()(),Ve()),2&t&&(k(4),ie("title",e.closeButtonTitle)("aria-label",e.closeButtonTitle))},directives:[PA],encapsulation:2}),i}(),Tve={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1650440923,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},BA=v(function i(){p(this,i)}),zU=function(){var i=function(){function r(t,e,n,a,o){var s=this;p(this,r),this.wrapper=t,this.renderer=e,this.cdr=a,this.ngZone=o,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new O,this.close=new O,this.tabIndex=0,this.subscriptions=[],this.domSubs=new Je,jt(Tve),this.direction=n.rtl?"rtl":"ltr",this.subscriptions.push(n.changes.subscribe(function(l){return s.direction=l.rtl?"rtl":"ltr"})),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}return v(r,[{key:"htmlAttributes",get:function(){return this._htmlAttributes},set:function(e){!function(r,t,e){for(var n in r)n&&t.setAttribute(e,n,r[n])}(e,this.renderer,this.wrapper.nativeElement);var n=this.wrapper.nativeElement,a=n.getAttribute("dir"),o=n.getAttribute("tabindex");this.direction!==a&&a&&(this.direction=a),this.tabIndex!==o&&o&&(this.tabIndex=o),this._htmlAttributes=e}},{key:"cssClass",get:function(){return this._cssClass},set:function(e){this.setServiceClasses(this._cssClass,e),this._cssClass=e}},{key:"dir",get:function(){return this.direction}},{key:"ngAfterContentInit",value:function(){var e=this;this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(function(){Si(e.titlebarContent.first)&&(e.titlebarContent.first.id=e.titleId,e.ngZone.onStable.pipe(It(1)).subscribe(function(){e.bubble("close",e.titlebarContent.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))}))}},{key:"ngAfterViewInit",value:function(){var e=this;this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(function(){Si(e.titlebarView.first)&&(e.titlebarView.first.id=e.titleId,e.ngZone.onStable.pipe(It(1)).subscribe(function(){e.bubble("close",e.titlebarView.first),e.renderer.setAttribute(e.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",e.titleId)}))})),this.initDomEvents()}},{key:"ngOnInit",value:function(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()}},{key:"ngOnDestroy",value:function(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()}},{key:"focus",value:function(){var e=this.wrapper.nativeElement;Si(e)&&e.focus()}},{key:"initDomEvents",value:function(){var e=this;!this.wrapper||this.ngZone.runOutsideAngular(function(){e.domSubs.add(e.renderer.listen(e.wrapper.nativeElement,"keydown",function(n){e.onKeyDown(n)}))})}},{key:"onKeyDown",value:function(e){var n=this,a=e.target,o=a.parentElement;(e_(a,Cve)||e_(o,Cve))&&e.keyCode===ri.esc&&this.ngZone.run(function(){n.close.emit(new BA)}),e_(a,"k-button")&&e_(o,"k-dialog-buttongroup")&&(e.keyCode===ri.left||e.keyCode===ri.right)&&this.ngZone.run(function(){n.handleActionButtonFocus(o,e.keyCode)}),e.keyCode===ri.tab&&this.ngZone.run(function(){n.keepFocusWithinComponent(a,e)})}},{key:"setServiceClasses",value:function(e,n){var a=this,o=this.wrapper.nativeElement;e&&Pb(e).forEach(function(s){a.renderer.removeClass(o,s)}),n&&Pb(n).forEach(function(s){a.renderer.addClass(o,s)})}},{key:"handleInitialFocus",value:function(){var e=this.wrapper.nativeElement,n=this.findPrimary(e);if(this.autoFocusedElement){var a=e.querySelector(this.autoFocusedElement);a&&a.focus()}else this.shouldFocusPrimary(n)?n.focus():e.focus()}},{key:"findPrimary",value:function(e){return function(r){for(var t=r.length-1;t>=0;t--)for(var e=r[t].classList,n=0;n0){a[o-1].focus();break}if(n===ri.right&&o1&&void 0!==arguments[1])||arguments[1];if(r.tagName){var e=r.tagName.toLowerCase(),n=r.getAttribute("tabIndex"),a=null!==n&&!isNaN(n)&&n>-1;return(WCt.test(e)?!r.disabled:a)&&(!t||XCt(r))}return!1}(e)}},{key:"getAllFocusableChildren",value:function(e){return e.querySelectorAll(JCt)}},{key:"getFirstAndLastFocusable",value:function(e){var n=this.getAllFocusableChildren(e);return[n.length>0?n[0]:e,n.length>0?n[n.length-1]:e]}},{key:"generateTitleId",value:function(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()}},{key:"generateContentId",value:function(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()}},{key:"wrapperClass",get:function(){return!0}},{key:"styles",get:function(){var e={};return this.width&&(e.width=t_(this.width)),this.height&&(e.height=t_(this.height)),this.minWidth&&(e.minWidth=t_(this.minWidth)),this.maxWidth&&(e.maxWidth=t_(this.maxWidth)),this.minHeight&&(e.minHeight=t_(this.minHeight)),this.maxHeight&&(e.maxHeight=t_(this.maxHeight)),e}},{key:"bubble",value:function(e,n){var a=this;if(n){var s=n[e].subscribe(function(u){return a[e].emit(u)});this.subscriptions.push(s)}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(ke),m(Ee),m(Y),m(nt),m(be))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog"]],contentQueries:function(t,e,n){var a;1&t&&he(n,Vb,4),2&t&&P(a=B())&&(e.titlebarContent=a)},viewQuery:function(t,e){var n;1&t&&(ge(Gb,5),ge(Vb,5)),2&t&&(P(n=B())&&(e.actionsView=n.first),P(n=B())&&(e.titlebarView=n))},hostVars:4,hostBindings:function(t,e){2&t&&(ie("dir",e.dir)("tabIndex",e.tabIndex),ue("k-dialog-wrapper",e.wrapperClass))},inputs:{actions:"actions",actionsLayout:"actionsLayout",autoFocusedElement:"autoFocusedElement",title:"title",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",height:"height",minHeight:"minHeight",maxHeight:"maxHeight"},outputs:{action:"action",close:"close"},exportAs:["kendoDialog"],features:[de([Y,{provide:Dve,useExisting:Y},{provide:Dt,useValue:"kendo.dialog"}])],ngContentSelectors:MCt,decls:10,vars:10,consts:function(){return[["kendoDialogLocalizedMessages","","closeTitle",$localize(pve||(pve=le([":kendo.dialog.closeTitle|The title of the close button:Close"])))],[1,"k-overlay"],["role","dialog","aria-modal","true",1,"k-window","k-dialog",3,"ngStyle"],[3,"closeTitle","id",4,"ngIf"],[4,"ngIf"],[1,"k-content","k-window-content","k-dialog-content",3,"id"],[3,"actions","layout",4,"ngIf"],[3,"closeTitle","id"],[3,"ngTemplateOutlet"],[3,"actions","layout"]]},template:function(t,e){1&t&&(kn(xCt),Ge(0,0),z(1,"div",1),A(2,"div",2),T(3,bCt,2,3,"kendo-dialog-titlebar",3),T(4,SCt,1,0,"ng-content",4),A(5,"div",5),T(6,wCt,1,0,"ng-content",4),T(7,ECt,1,1,null,4),x(),T(8,TCt,1,0,"ng-content",4),T(9,ACt,1,2,"kendo-dialog-actions",6),x(),Ve()),2&t&&(k(1),y("@overlayAppear",void 0),k(1),y("ngStyle",e.styles)("@dialogSlideInAppear",void 0),k(1),y("ngIf",e.title),k(1),y("ngIf",!e.title),k(1),y("id",e.contentId),k(1),y("ngIf",!e.contentTemplate),k(1),y("ngIf",e.contentTemplate),k(1),y("ngIf",!e.actions),k(1),y("ngIf",e.actions))},directives:[Vb,Gb,PA,Vi,qe,En],encapsulation:2,data:{animation:[ef("overlayAppear",[Cd("in",Ft({opacity:1})),iu("void => *",[Ft({opacity:.1}),Ai(".3s cubic-bezier(.2, .6, .4, 1)")])]),ef("dialogSlideInAppear",[Cd("in",Ft({transform:"translate(0, 0)"})),iu("void => *",[Ft({transform:"translate(0, -10%)"}),Ai(".3s cubic-bezier(.2, 1, .2, 1)")])])]}}),i}(),Ave=v(function i(){p(this,i)}),rbt=function(){var i=function(){function r(t){p(this,r),this.dialog=t}return v(r,[{key:"ngAfterViewInit",value:function(){var e=this;this.dialogTitleBar&&this.dialogTitleBar.close.pipe(Ue(function(n){return!n.isDefaultPrevented()})).subscribe(function(){e.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(function(n){return e.dialog.dialog.instance.action.emit(n)})}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Ave))},i.\u0275cmp=L({type:i,selectors:[["kendo-dialog-content-base"]],viewQuery:function(t,e){var n;1&t&&(ge(Vb,5),ge(Gb,5)),2&t&&(P(n=B())&&(e.dialogTitleBar=n.first),P(n=B())&&(e.dialogActions=n.first))},decls:0,vars:0,template:function(t,e){},encapsulation:2}),i}(),xve=function(){var i=function(){function r(){p(this,r)}return v(r,[{key:"container",get:function(){return r.container},set:function(e){r.container=e}}]),r}();return i.container=null,i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),obt=function(){function i(r,t){p(this,i),this.getDialogRef=r,this.parentInjector=t}return v(i,[{key:"get",value:function(t,e){return t===Ave?this.getDialogRef():this.parentInjector.get(t,e)}}]),i}(),sbt=function(){var i=function(){function r(t,e){p(this,r),this.resolver=t,this.containerService=e}return v(r,[{key:"open",value:function(e){var n=this.resolver.resolveComponentFactory(zU),a=e.appendTo||this.containerService.container;if(!a)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n ");return this.initializeDialog(e.content,n,a,{close:function(){},content:null,dialog:null,result:null},e)}},{key:"initializeDialog",value:function(e,n,a,o,s){var l=this.contentFrom(e,a,o),u=a.createComponent(n,void 0,void 0,l.nodes);o.dialog=u,u.changeDetectorRef.markForCheck(),this.applyOptions(u.instance,s);var c=new Ot,d=function(E){E instanceof UU&&(E=new BA),c.next(E||new BA),l.componentRef&&l.componentRef.destroy(),u.destroy()},h=xn(c,xn(u.instance.close,u.instance.action).pipe(We(function(w){return w instanceof UU?new BA:w}),Ue(function(w){if(s.preventAction){var E=function(r){return GU(r)||r instanceof $e}(e)?void 0:o;return!s.preventAction(w,E)}return!0}))).pipe(It(1),nx());if(h.subscribe(d),o.close=d,o.result=h,e&&xt()){var f=l.nodes[0]&&l.nodes[0].length>0,g=l.nodes[2]&&l.nodes[2].length>0;e.prototype instanceof rbt?(s.title&&f||s.actions&&g)&&console.warn("\n Multiple Title and/or Actions configurations detected.\n When using a component as content, provide the title and actions either in the component's markup\n or via the title and actions properties of the DialogSettings object, but not both.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(f||g)&&console.warn("\n When Title and/or Actions markup is provided in content component's template,\n the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")}return o}},{key:"applyOptions",value:function(e,n){e.title=n.title,e.actions=n.actions,e.actionsLayout=n.actionsLayout||"stretched",e.width=n.width,e.minWidth=n.minWidth,e.maxWidth=n.maxWidth,e.height=n.height,e.minHeight=n.minHeight,e.maxHeight=n.maxHeight,e.autoFocusedElement=n.autoFocusedElement,e.closeTitle=n.closeTitle,e.cssClass=n.cssClass,e.htmlAttributes=n.htmlAttributes,n.content instanceof $e&&(e.contentTemplate=n.content)}},{key:"contentFrom",value:function(e,n,a){var o=n.injector.get(Ee),s=[],l=[],u=[],c=null;if("string"==typeof e)s=[o.createText(e)];else if(e&&!(e instanceof $e)){var d=new obt(function(){return a},n.injector),h=this.resolver.resolveComponentFactory(e);c=n.createComponent(h,void 0,d),l=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),s=[c.location.nativeElement],u=Array.from(c.location.nativeElement.querySelectorAll("kendo-dialog-actions")),a.content=c}return{componentRef:c,nodes:[l,s,u]}}}]),r}();return i.\u0275fac=function(t){return new(t||i)(oe(Ts),oe(xve))},i.\u0275prov=pe({token:i,factory:i.\u0275fac}),i}(),cbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[bt],bt]}),i}(),dbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({providers:[xve,sbt],imports:[[cbt]]}),i}();function hbt(i,r){1&i&&z(0,"app-loading-spinner")}function fbt(i,r){1&i&&(A(0,"div"),z(1,"img",1),x())}function vbt(i,r){if(1&i){var t=xe();A(0,"kendo-dialog",35),Q("close",function(){return re(t),D(2).onProfileDialogClose()}),A(1,"p"),te(2,"Your profile has been successfully updated"),x(),A(3,"kendo-dialog-actions")(4,"button",36),Q("click",function(){return re(t),D(2).onProfileDialogClose()}),te(5,"OK"),x()()()}}function pbt(i,r){if(1&i){var t=xe();A(0,"kendo-dialog",37),Q("close",function(){return re(t),D(2).onDeleteDialogClose()}),A(1,"p"),te(2,"Account deletetion cannot be undone!"),x(),A(3,"kendo-dialog-actions")(4,"button",36),Q("click",function(){return re(t),D(2).onDeleteDialogClose()}),te(5,"Cancel"),x(),A(6,"button",38),Q("click",function(){return re(t),D(2).onDeleteDialogClose()}),te(7,"Delete Account"),x()()()}2&i&&(k(6),y("primary",!0))}var gbt=function(){return{"max-width":"100%"}};function mbt(i,r){if(1&i){var t=xe();A(0,"div")(1,"div",2)(2,"div",3)(3,"h2")(4,"span",4),te(5,"Account"),x(),te(6),x()(),A(7,"div",5)(8,"button",6),Q("click",function(){return re(t),D().onSignOutClick()}),te(9,"Sign out"),x()()(),A(10,"div",2)(11,"div",7)(12,"div",8)(13,"h3",9),te(14,"Public Profile"),x(),A(15,"div",10)(16,"div",2)(17,"div",11),z(18,"img",12),x(),A(19,"div",13)(20,"div",14)(21,"label",15),te(22,"Username"),x(),z(23,"input",16),x(),A(24,"div",14)(25,"label",15),te(26,"Name"),x(),z(27,"input",17),x(),A(28,"div",14)(29,"label",15),te(30,"Email"),x(),z(31,"input",18),x(),A(32,"div",14)(33,"label",19),z(34,"input",20),te(35," Keep my email address private "),x()(),A(36,"div",14)(37,"label",15),te(38,"Company"),x(),z(39,"input",21),x(),A(40,"div",14)(41,"label",15),te(42,"Location"),x(),z(43,"input",22),x(),A(44,"div",14)(45,"button",23),Q("click",function(){return re(t),D().onUpdateClick()}),te(46,"Update profile"),x()()()()()(),A(47,"div",24)(48,"h3",9),te(49,"Delete Account"),x(),A(50,"div",10)(51,"p"),te(52,"You will immediately lose access to your repositories and all other information associated with your account. "),A(53,"strong"),te(54,"This cannot be undone!"),x()(),A(55,"button",25),Q("click",function(){return re(t),D().onDeleteClick()}),te(56,"Delete Account"),x()()()(),A(57,"div",26)(58,"div",27)(59,"h3",9),te(60,"Notifications"),x(),A(61,"div",10)(62,"h4",15),te(63,"Automatically watch repositories?"),x(),A(64,"p",28),te(65,"When you are given push access to a repository, automatically receive notifications for it."),x(),A(66,"p"),z(67,"kendo-switch"),x(),A(68,"h4",15),te(69,"Receive updates to any conversations via email?"),x(),A(70,"p"),z(71,"kendo-switch",29),x(),A(72,"h4",15),te(73,"Receive updates to any repositories via email?"),x(),A(74,"p"),z(75,"kendo-switch",29),x()()(),A(76,"div",30)(77,"h3",9),te(78,"Update password"),x(),A(79,"div",10)(80,"div",14)(81,"label",15),te(82,"Old password"),x(),z(83,"input",31),x(),A(84,"div",14)(85,"label",15),te(86,"New password"),x(),z(87,"input",31),x(),A(88,"div",14)(89,"label",15),te(90,"Confirm password"),x(),z(91,"input",31),x(),A(92,"div",14)(93,"button",32),te(94,"Change password"),x()()()()()(),T(95,vbt,6,0,"kendo-dialog",33),T(96,pbt,8,1,"kendo-dialog",34),x()}if(2&i){var e=D();k(6),Jl(" ",e.user.login," - ",e.user.name," "),k(12),y("src",e.user.avatar_url,uc)("ngStyle",Tt(13,gbt)),k(5),y("value",e.user.login),k(4),y("value",e.user.name),k(4),y("value",e.user.email),k(8),y("value",e.user.company),k(4),y("value",e.user.location),k(28),y("checked",!0),k(4),y("checked",!0),k(20),y("ngIf",e.profileDialogVisible),k(1),y("ngIf",e.deleteDialogVisible)}}var _bt=function(){var i=function(){function r(t,e){var n=this;p(this,r),this.githubService=t,this.router=e,this.isLoading=!0,this.user={},this.profileDialogVisible=!1,this.deleteDialogVisible=!1,t.getGithubUser("ggkrustev").subscribe(function(a){n.user=a,n.isLoading=!1},function(a){n.isLoading=!1})}return v(r,[{key:"onProfileDialogClose",value:function(){this.profileDialogVisible=!1}},{key:"onSignOutClick",value:function(){this.router.navigate(["/signin"])}},{key:"onUpdateClick",value:function(){this.profileDialogVisible=!0}},{key:"onDeleteClick",value:function(){this.deleteDialogVisible=!0}},{key:"onDeleteDialogClose",value:function(){this.deleteDialogVisible=!1}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Jp),m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-profile"]],features:[de([Jp])],decls:3,vars:3,consts:[[4,"ngIf"],["src","../../assets/noConnection.png",1,"center"],[1,"row"],[1,"col-md","text-center","text-md-left","mb-3"],[1,"small","text-uppercase","text-muted","d-block"],[1,"col-md","text-center","text-md-right"],[1,"btn","btn-light",3,"click"],[1,"col-12","col-lg-6","col-xl-8"],["id","profile",1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-md-3","col-lg-12","col-xl-3","text-center"],[1,"img-circle","mx-auto","mb-3",3,"src","ngStyle"],[1,"col-md-9","col-lg-12","col-xl-9"],[1,"form-group"],[1,"h6"],["type","text","id","username",1,"form-control",3,"value"],["type","text","id","name",1,"form-control",3,"value"],["type","email","id","email",1,"form-control",3,"value"],[1,"form-check-label","h6"],["type","checkbox","checked","",1,"form-check-input"],["type","text","id","company",1,"form-control",3,"value"],["type","text","id","location",1,"form-control",3,"value"],[1,"btn","btn-primary",3,"click"],["id","delete-account",1,"card"],[1,"btn","btn-danger",3,"click"],[1,"col-12","col-lg-6","col-xl-4"],["id","notifications",1,"card"],[1,"text-muted"],[3,"checked"],["id","password",1,"card"],["type","password",1,"form-control"],[1,"btn","btn-secondary"],["title","Thank you",3,"close",4,"ngIf"],["title","Are you sure you want to do this?",3,"close",4,"ngIf"],["title","Thank you",3,"close"],["kendoButton","",3,"click"],["title","Are you sure you want to do this?",3,"close"],["kendoButton","",3,"primary","click"]],template:function(t,e){1&t&&(T(0,hbt,1,0,"app-loading-spinner",0),T(1,fbt,2,0,"div",0),T(2,mbt,97,14,"div",0)),2&t&&(y("ngIf",e.isLoading),k(1),y("ngIf",!e.isLoading&&!e.user.id),k(1),y("ngIf",e.user.id&&!e.isLoading))},directives:[qe,tN,Vi,eZe,zU,Gb,Xa],styles:[".center{margin-left:auto;margin-right:auto;display:block}\n"],encapsulation:2}),i}(),ybt=function(){var i=function(){function r(t){p(this,r),this.router=t}return v(r,[{key:"id",get:function(){return"signin"}},{key:"appClass",get:function(){return"signin"}},{key:"onLoginClick",value:function(){this.router.navigate(["/dashboard"])}}]),r}();return i.\u0275fac=function(t){return new(t||i)(m(Na))},i.\u0275cmp=L({type:i,selectors:[["app-signin"]],hostVars:3,hostBindings:function(t,e){2&t&&(ie("id",e.id),Ar(e.appClass))},decls:15,vars:0,consts:[[1,"signin-form","p-5"],["id","app-title"],["id","app-subtitle"],[1,"form-group","mt-4"],["type","text","placeholder","Email or Username",1,"form-control"],[1,"form-group","mb-4"],["type","password","placeholder","Password",1,"form-control"],[1,"text-xs-right","small"],["href","#"],[1,"form-group"],[1,"btn","btn-primary","btn-block",3,"click"]],template:function(t,e){1&t&&(A(0,"div",0)(1,"h1",1),te(2,"ISSUES"),x(),A(3,"p",2),te(4,"SAMPLE DASHBOARD"),x(),A(5,"div",3),z(6,"input",4),x(),A(7,"div",5),z(8,"input",6),A(9,"p",7)(10,"a",8),te(11,"Forgot it?"),x()()(),A(12,"div",9)(13,"button",10),Q("click",function(){return e.onLoginClick()}),te(14,"Log in"),x()()())},encapsulation:2}),i}(),kbt=[{path:"",pathMatch:"full",redirectTo:"/dashboard"},{path:"dashboard",component:p7e},{path:"issues",component:mCt},{path:"profile",component:_bt},{path:"signin",component:ybt}],Cbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i}),i.\u0275inj=Fe({imports:[[zj.forRoot(kbt,{useHash:!0,relativeLinkResolution:"legacy"})],zj]}),i}();function bbt(i){return new y1e(i,"./assets/i18n/",".json")}Sy.PLATFORM_TARGET=Sy.PLATFORMS.WEB;var Sbt=function(){var i=v(function r(){p(this,r)});return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=Le({type:i,bootstrap:[IAe]}),i.\u0275inj=Fe({providers:[],imports:[[Cbt,h1e.register("ngsw-worker.js",{enabled:true}),oK,GWe,_kt,dbt,_C,gRe,WFe,zEe,wK,_1e.forRoot({loader:{provide:by,useFactory:bbt,deps:[wK]}})]]}),i}();(function pSe(){if(_4)throw new Error("Cannot enable prod mode after platform setup.");m4=!1})(),bDe().bootstrapModule(Sbt).catch(function(i){return console.error(i)})},386:function(Pv,i_,od){var Yu;!function($r,q,zA,$){"use strict";var ho,r_=["","webkit","Moz","MS","ms","o"],v=q.createElement("div"),ps=Math.round,b=Math.abs,Bv=Date.now;function Rh(Z,F,W){return setTimeout(a_(Z,W),F)}function Xe(Z,F,W){return!!Array.isArray(Z)&&(gs(Z,W[F],W),!0)}function gs(Z,F,W){var ce;if(Z)if(Z.forEach)Z.forEach(F,W);else if(Z.length!==$)for(ce=0;ce\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Zt=$r.console&&($r.console.warn||$r.console.log);return Zt&&Zt.call($r.console,ce,Ye),Z.apply(this,arguments)}}ho="function"!=typeof Object.assign?function(F){if(F===$||null===F)throw new TypeError("Cannot convert undefined or null to object");for(var W=Object(F),ce=1;ce-1}function Vv(Z){return Z.trim().split(/\s+/g)}function Ae(Z,F,W){if(Z.indexOf&&!W)return Z.indexOf(F);for(var ce=0;ceda[F]}):ce.sort()),ce}function Er(Z,F){for(var W,ce,Me=F[0].toUpperCase()+F.slice(1),Ye=0;Ye1&&!W.firstMultiple?W.firstMultiple=An(F):1===Me&&(W.firstMultiple=!1);var Ye=W.firstInput,Zt=W.firstMultiple,Gi=Zt?Zt.center:Ye.center,or=F.center=u_(ce);F.timeStamp=Bv(),F.deltaTime=F.timeStamp-Ye.timeStamp,F.angle=Ot(Gi,or),F.distance=Hv(Gi,or),function XU(Z,F){var W=F.center,ce=Z.offsetDelta||{},Me=Z.prevDelta||{},Ye=Z.prevInput||{};(1===F.eventType||4===Ye.eventType)&&(Me=Z.prevDelta={x:Ye.deltaX||0,y:Ye.deltaY||0},ce=Z.offsetDelta={x:W.x,y:W.y}),F.deltaX=Me.x+(W.x-ce.x),F.deltaY=Me.y+(W.y-ce.y)}(W,F),F.offsetDirection=Xb(F.deltaX,F.deltaY);var da=qb(F.deltaTime,F.deltaX,F.deltaY);F.overallVelocityX=da.x,F.overallVelocityY=da.y,F.overallVelocity=b(da.x)>b(da.y)?da.x:da.y,F.scale=Zt?function Yb(Z,F){return Hv(F[0],F[1],zv)/Hv(Z[0],Z[1],zv)}(Zt.pointers,ce):1,F.rotation=Zt?function Zb(Z,F){return Ot(F[1],F[0],zv)+Ot(Z[1],Z[0],zv)}(Zt.pointers,ce):0,F.maxPointers=W.prevInput?F.pointers.length>W.prevInput.maxPointers?F.pointers.length:W.prevInput.maxPointers:F.pointers.length,function $b(Z,F){var Me,Ye,Zt,Gi,W=Z.lastInterval||F,ce=F.timeStamp-W.timeStamp;if(8!=F.eventType&&(ce>25||W.velocity===$)){var or=F.deltaX-W.deltaX,da=F.deltaY-W.deltaY,go=qb(ce,or,da);Ye=go.x,Zt=go.y,Me=b(go.x)>b(go.y)?go.x:go.y,Gi=Xb(or,da),Z.lastInterval=F}else Me=W.velocity,Ye=W.velocityX,Zt=W.velocityY,Gi=W.direction;F.velocity=Me,F.velocityX=Ye,F.velocityY=Zt,F.direction=Gi}(W,F);var go=Z.element;o_(F.srcEvent.target,go)&&(go=F.srcEvent.target),F.target=go}(Z,W),Z.emit("hammer.input",W),Z.recognize(W),Z.session.prevInput=W}function An(Z){for(var F=[],W=0;W=b(F)?Z<0?2:4:F<0?8:16}function Hv(Z,F,W){W||(W=Gh);var ce=F[W[0]]-Z[W[0]],Me=F[W[1]]-Z[W[1]];return Math.sqrt(ce*ce+Me*Me)}function Ot(Z,F,W){return W||(W=Gh),180*Math.atan2(F[W[1]]-Z[W[1]],F[W[0]]-Z[W[0]])/Math.PI}xa.prototype={handler:function(){},init:function(){this.evEl&&De(this.element,this.evEl,this.domHandler),this.evTarget&&De(this.target,this.evTarget,this.domHandler),this.evWin&&De(Uv(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Ih(this.element,this.evEl,this.domHandler),this.evTarget&&Ih(this.target,this.evTarget,this.domHandler),this.evWin&&Ih(Uv(this.element),this.evWin,this.domHandler)}};var oi={mousedown:1,mousemove:2,mouseup:4},Wn="mousedown",KA="mousemove mouseup";function We(){this.evEl=Wn,this.evWin=KA,this.pressed=!1,xa.apply(this,arguments)}Aa(We,xa,{handler:function(F){var W=oi[F.type];1&W&&0===F.button&&(this.pressed=!0),2&W&&1!==F.which&&(W=4),this.pressed&&(4&W&&(this.pressed=!1),this.callback(this.manager,W,{pointers:[F],changedPointers:[F],pointerType:ld,srcEvent:F}))}});var c_={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ZU={2:sd,3:"pen",4:ld,5:"kinect"},d_="pointerdown",jA="pointermove pointerup pointercancel";function Qb(){this.evEl=d_,this.evWin=jA,xa.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}$r.MSPointerEvent&&!$r.PointerEvent&&(d_="MSPointerDown",jA="MSPointerMove MSPointerUp MSPointerCancel"),Aa(Qb,xa,{handler:function(F){var W=this.store,ce=!1,Me=F.type.toLowerCase().replace("ms",""),Ye=c_[Me],Zt=ZU[F.pointerType]||F.pointerType,Gi=Zt==sd,or=Ae(W,F.pointerId,"pointerId");1&Ye&&(0===F.button||Gi)?or<0&&(W.push(F),or=W.length-1):12&Ye&&(ce=!0),!(or<0)&&(W[or]=F,this.callback(this.manager,Ye,{pointers:W,changedPointers:[F],pointerType:Zt,srcEvent:F}),ce&&W.splice(or,1))}});var YU={touchstart:1,touchmove:2,touchend:4,touchcancel:8},QU="touchstart",WA="touchstart touchmove touchend touchcancel";function $A(){this.evTarget=QU,this.evWin=WA,this.started=!1,xa.apply(this,arguments)}function Jb(Z,F){var W=qr(Z.touches),ce=qr(Z.changedTouches);return 12&F&&(W=Hb(W.concat(ce),"identifier",!0)),[W,ce]}Aa($A,xa,{handler:function(F){var W=YU[F.type];if(1===W&&(this.started=!0),this.started){var ce=Jb.call(this,F,W);12&W&&ce[0].length-ce[1].length==0&&(this.started=!1),this.callback(this.manager,W,{pointers:ce[0],changedPointers:ce[1],pointerType:sd,srcEvent:F})}}});var JU={touchstart:1,touchmove:2,touchend:4,touchcancel:8},eS="touchstart touchmove touchend touchcancel";function Kv(){this.evTarget=eS,this.targetIds={},xa.apply(this,arguments)}function ez(Z,F){var W=qr(Z.touches),ce=this.targetIds;if(3&F&&1===W.length)return ce[W[0].identifier]=!0,[W,W];var Me,Ye,Zt=qr(Z.changedTouches),Gi=[],or=this.target;if(Ye=W.filter(function(da){return o_(da.target,or)}),1===F)for(Me=0;Me-1&&ce.splice(Zt,1)},2500)}}function YA(Z){for(var F=Z.srcEvent.clientX,W=Z.srcEvent.clientY,ce=0;ce-1&&this.requireFail.splice(W,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(F){return!!this.simultaneous[F.id]},emit:function(F){var W=this,ce=this.state;function Me(Ye){W.manager.emit(Ye,F)}ce<8&&Me(W.options.event+aS(ce)),Me(W.options.event),F.additionalEvent&&Me(F.additionalEvent),ce>=8&&Me(W.options.event+aS(ce))},tryEmit:function(F){if(this.canEmit())return this.emit(F);this.state=32},canEmit:function(){for(var F=0;FW.threshold&&Ye&W.direction},attrTest:function(F){return Io.prototype.attrTest.call(this,F)&&(2&this.state||!(2&this.state)&&this.directionTest(F))},emit:function(F){this.pX=F.deltaX,this.pY=F.deltaY;var W=oS(F.direction);W&&(F.additionalEvent=this.options.event+W),this._super.emit.call(this,F)}}),Aa(h_,Io,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ud]},attrTest:function(F){return this._super.attrTest.call(this,F)&&(Math.abs(F.scale-1)>this.options.threshold||2&this.state)},emit:function(F){1!==F.scale&&(F.additionalEvent=this.options.event+(F.scale<1?"in":"out")),this._super.emit.call(this,F)}}),Aa(f_,Pi,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(F){var W=this.options,ce=F.pointers.length===W.pointers,Me=F.distanceW.time;if(this._input=F,!Me||!ce||12&F.eventType&&!Ye)this.reset();else if(1&F.eventType)this.reset(),this._timer=Rh(function(){this.state=8,this.tryEmit()},W.time,this);else if(4&F.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(F){8===this.state&&(F&&4&F.eventType?this.manager.emit(this.options.event+"up",F):(this._input.timeStamp=Bv(),this.manager.emit(this.options.event,this._input)))}}),Aa(No,Io,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ud]},attrTest:function(F){return this._super.attrTest.call(this,F)&&(Math.abs(F.rotation)>this.options.threshold||2&this.state)}}),Aa(v_,Io,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Uh.prototype.getTouchAction.call(this)},attrTest:function(F){var ce,W=this.options.direction;return 30&W?ce=F.overallVelocity:6&W?ce=F.overallVelocityX:24&W&&(ce=F.overallVelocityY),this._super.attrTest.call(this,F)&&W&F.offsetDirection&&F.distance>this.options.threshold&&F.maxPointers==this.options.pointers&&b(ce)>this.options.velocity&&4&F.eventType},emit:function(F){var W=oS(F.offsetDirection);W&&this.manager.emit(this.options.event+W,F),this.manager.emit(this.options.event,F)}}),Aa(Bi,Pi,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[nS]},process:function(F){var W=this.options,ce=F.pointers.length===W.pointers,Me=F.distance - + diff --git a/spreadsheet-app/main-KB5EVJ3E.js b/spreadsheet-app/main-DQF5W5SP.js similarity index 99% rename from spreadsheet-app/main-KB5EVJ3E.js rename to spreadsheet-app/main-DQF5W5SP.js index cc8c4a4b..b2b9ff97 100644 --- a/spreadsheet-app/main-KB5EVJ3E.js +++ b/spreadsheet-app/main-DQF5W5SP.js @@ -16,7 +16,7 @@ ${e.map((i,n)=>`${n+1}) ${i.toString()}`).join(` zIndex: 101; pointerEvents: none; backgroundImage: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABVxSURBVHgB7Z3tVRtJE4WL9zgANgLLGRCCnAGOADmCxRGgDFAGYiOADKQMIAGO9J8ji42g37mjqlUjBgOanpn+uM85sjC2sKzbVd1dVV0tQgghhBBCCCGEEEIIKRPn3Gn1GAlJmmN1pP558J6OX9540ejh4WGlX09OTk7+EZIclXYXlY43+vVflY7PH3wd9c+AY/Wvvcb9/b0bjUYOz/hBQpICmh1oOPrEa6l/4rTR337AhIMgTSqtzg+0m8gnof7p0mD8EzmGhkFwJiR6np6e7luLL9Q/RTDTBzF+7wfWg2CxWOCHjYVET6XTdLPZrFuLL9Q/NeCkoVUQ4/d+6Ijev1yof1rAUVMvQgjJHebrSRu+CEmWo/O8hISgCjStKpgiGoDWed4AUP/hwGf++Pi4hQYyFHgDzBP3T7A8b0uo/zD4+sMBy1CwWKR/YjF+fS/Uv2di0t/eEAdBT0QnvlD/PolR/xoOgu4JUd7bFdS/e6I1foODoFuqz3M2mUziFF+of5dEb/xGwyAYCwmCVuPNYv5MqX94Yl75NWKD4PLyEm92KqQoqH9Y8Bnis0zC+A14LbxxVqiVCfUPh678plxNFYQe5pjRgAgpDAv4IOAHJyCEkDJoiPaeCyG5UA1oRIYWHNivSSbV0wLq/zbQXz+bS8kV/AeZJ35NCcYPqH8zvv4VS8kVFou8phTjB9T/NcVt+zgI9rjQDRwTgPrvKcn5v4CDYIfT/vtFiS/UHxRr/AYHwQ4t9DiVwihZ/+KN36ATKJsS9U+utr9r/EGQdQSUNFKa/geZkImQ/2rHlznnQDG7oX9b9Xwl5AUl6G9oLcSSxl8Q/p4P13YJIaQMisvzEkJ2lJjnJyQY3lnoJGfNUvP8oUhZf7c70s2eCG1wL7uhRJ0iQnCveiDIhzf7t/f9IvP8IUhJfx/b9rErUkvgRVPIE1fv6xrvbzweu7OzM3d7e4v3OhfSilT092HMJzCxF4u43eWctfFvt1uHu9nxXvF1CWmtroldfx9W+HVErINAjX+M65ngAPxnOAJ1AiMhrUjBCdD4Oya2QYBlPwx8vV47WwFg+a+XZbrz83NzANz/ByBmJ0Dj74lYBgECfrbnt6U/DB/vC7388L2rqyu8vzshwYjRCdD4e8YfBLidVgYA0X7M9jB8PGazmbu5ualnfiz9dSAsufwPTwz6+5jjp/H3CD5ofPB9343u9v3u6+U+0jyY7eEA8Hx3d4c/QjvvMyGdMZT+TeA9wBHR+DPHUn3T6bRe7uMxn89tn18v/TH7O17gQEheYM9vEX7M9hbsg/FbHED3/IPPSISQgNhyE0au+7x7PPtOQFcB3PMTMjTYf4cyRN3zL2DgMHgs/7XU99acgDIWEgUh9W/4uWMh8QKBvCh8qxSR7fmxt0eEv8kJ6MzP8/2REFL/g59bp/o0xsMAb6xAnBB5Yr+6D3X9KOpBxP/ACWA0jFnoEw+h9D/4mYd5/pGQeAlRLFK95tJy+35578PDQ+0E9LAPi3wixAUsFmKRT6I0DIIPzdJuf6R3i+UeZnsz/nqjPx47/fMpZ/54OVb/g5/BZi4pY4Pgo8s2d3CkF0Z/cXFRL/+Xy2W9BdBUH4/5JsBn9W94PZu5pI77QzMOjepiNp/j71hO//fv31sr7qmtfT73i3xWjnvAZHhH/4nquXrLwB2bueSJ27Vmvodhq4df4BmzvQb3IPxWl/zgRl/DwZA4GrhdYFUHfbHE1y0enXsJ2FLfCnggvjqBejDoTI8o38ocgJAscNq8BY4fv/Uf+J46gjkdQcbA+19fXzs7zQfR8TWcgH+kFw/u+fMDKz/o3OQETk9PLcWLPSBbeeWELd91eb+CcTc5gXr6r9J8PNKbF/7S3z+6DYcvDasBOv6M0GUduNDfv+cEYPhjIVmA+I3Vc4gaOQzfHAECvb4joAPICCzlrIJP93h/dAIYDBQ/L8wBNC37rXUblv5CB5AfGvi5h6F7Ed9GJ2CZP0b780O1vreVnnhOAFsBOoCMscg/HMBbTsCO+grJFkvvHmYCSnYA/5MMcbsiH6TykNgfr9fry58/f0oltFxcXMj379+l+h42gBcnJyfr6iXfq1nhJ56FZIeuAq+fn59Xv379Oq0CgVJNBEIydAAavLv98ePHeSX4bfX1OQSv9noQ/a7y9A8HTuAcTqB63FSPZyE5Mq3GwOW3b99kNpu9+5e/fv2Kp3+FpAW8vB3cwbLOOvZYfl9LfGdW9KOn+mZCskZXhCuL9vtLfjvshd97hWArpn8TxGn5rhZzOL/gB19DYBzzxcEeTQEtGfArB7c7xbmyVu4YExoTuNcYEL6eCkkTxHYOmna4wzQfvq8z/+o949e940hIkjTp5/ZXjm/1+VQfr856UP/EcLtqr9s/OQENDl5+wPhH3nHQZK6mJjucNvNo2w+A+icC0jaY4a2LT5MT+Mye3+l58JSupiY7XIA2XtQ/IZw2f7D9v+X6D53AZ/f8LqGrqckOF7CNF/VPAF3Or6xvv53r951Amx5+DYOAXWEjxXXQxov6R4zTSzusht8OfABE+r3U39y1iPbbIODVX3ED4/Tagk8kENQ/QiyaC1Fg7PX6frm0Mk6/wUOQ8l799+j9I0cDwcF1ov4R4Xbde2vjxi92ogsPzPrY92szD7buJiQn3K6+v17q2yxvlV1u3+TRAn4jIYTkAfbymOWx1AcwfHMEXp5/JISQ9PEDd867ohvGbvt+cwRe6+5ee7ltNpuVf7yYdA8+68fHxy0+exkY6t8RGnSxJX19yAd7fWvhjEs7NOCHb2D9/+AGqO3HQGSeuD/8PD/GggwM9e8IBPCwr7ciHnzA6NrqtW5+4QRkIByLRXrDRXhXH/XvCKRccEuPX8mHD9jr7Vc7AV32D9rJh4Oge2I0foP6d8QHnADO9kdxYw8HQXfEbPwG9e+It5yAlvdG1beNgyA8KRi/Qf07oskJIEYQw8x/SMMgGAs5CmR0UjF+g/oHwh00YzAn0OZgT1/YINBU5VTIUeCzw2eYivEb1L8l7o1mDm7X220a48x/iNtVLE4dC5OOxu2794wlMaj/kbgAzRwIIQmS4p6PEBKIp6enexo/IYWCPdNms1nnbPxat7BwvH/+P7Dt08/kUjKH+hcOxGeeeI8f86lYSuZQ/8JhsciehoBv9rMi9VdcwZcucBCkVeEXmuL1dy0vbciBkgdBycZvFKs/8/x7ShwENP49xelP8V9T0iBgncdritGfxv82/iDIORJ+EAGfCKnJXn8a//to7fgy51y45sCX1P812erPZR8hBVMZ/Ax9+2j8hBSIHumcpXikkxBCBsXtz8QnUyXndvfz8Sx8AFLUnwTEveyKE32KyAK+7IYThqT0V88/o+cPBz7TVPLEJdb2d00y+pv4elHHTEgwUigWYaq3O6LXn56/e2IeBDT+7olWf4rfHzEOAurfH9HpT/H7J6ZBQP37Jxr9Kf5w+IMAt9PKQOB6NurfP4Prjyg/jX9Y8JnDAHE/vQwE/m0MQOrfP4PqX/3jp15Dj4kQQspCK5SK7OZDCCGEEBIfbneH4kgCoT9vLCQJguqPaD8CDdXzlZDogaEuFotgKSLL9uBnYmAJiZqg+vupPlzbJSR6YKSh8sSODVyTI5j+LO9NlxDFIqzzSJfW+jPPnz4Ng+DDGRvqnz5t9GeePxNsEHx2+U798+BY/e3FzPNnwLE6Uv88oI6EEEIIIYQQQgghhBBCCCGEEEIIIYQQQkiRoHyQxz/T51gdqX8evKfjlzdeNHp4eFjp15OTk5N/hCQHjoFWOt7o139VOj5/8HXUPwOO1f+/02ApXEhJmmnTzIP6p49r28wlRFMJMgwhmnlQ/3RB854g/RwaBgF7wkVOyGYe1D9N0L4vWDMXGwTaFHIsJGpgpF5TyIm0hPqnR6XTdLPZrF2oZi7aVIDePxFgqCH1ov6EEEIIITHRtl7jixBCkuToPH8ocGMQrihmiqh/8Jnjau6hrwen/sPQOs8fAgxA5on7xxcfBigDQf2HIUSdR6g3wmKRnolGfKH+QxCT/vaGOAh6Ijrxhfr3SYz613AQdE+04gv174Ng5b1dwUHQHTEbv0H9u6X6PGeTySTu69oaBsFYSCui9/we1L87tBpzFv1naoPg8vISA2AqpBX4DPFZxm78BvUn9awF8R07yrRGPf80pdmU+hNCyJHoYa4ZHSghhWEBXwT84ASEEFIGDdmec8mJ6j+EyNAiu/9YACC+fjaXkinU/21SSPW2BuIzT/waX/yKpWQK9W+mCOMHLBZ5TfbLPg/q/5pijN/gINhTnPhC/X1cwAauScFBUKbxG9R/h9P7F0rTv6bkQVCy8Rt0Aju00OtUSqTEQZBSbX/X0AmQF4Mg5wi4cRAJn0jhlKY/aUBrx5c558ANzYUvafx7StAfqxv0UKyer4QQUg5+zAfXdgkhpAxKqvMghHgUm+cPhdufhU/Oa+qRTp6Jb0HK+oOi8/whcC+74SSTIrJlH7vitCMl/RHcqx4I8uHN/u19v9w8f1swi6aWJ+aeLxyp6F+9r2u8v/F47M7Oztzt7S3e61xIe1IqFmGFX3hi19/tLuesjX+73brFYlG/V3xdQlq7F1JwAjT+7ohVfzX+Ma5ngwPwn+EI1AmMhLQnZidA4++e2PTHsh8Gvl6vna0AsPzXy1Ld+fm5OQDu/0MRoxOg8fdHLPoj4Gd7flv6w/DxvtDLD9+7urrC+7sTEhZ/EOB2WhkYE57G3w8x6I9oP2Z7GD4es9nM3dzc1DM/lv46FpZc/ncEBgEMD7XVMjB4DxiINP7+GEp/t7/voF7uI0WJ2R4OAM93d3f4I7TzPhNCSD5Yqm86ndbLfTzm87nt8+ulP2Z/x+vQCMkL7Pktwo/Z3oJ9MH6LA+ief/AVKSEkILbdgJHr3v4ez74T0FUA9/wxgP1XF0Lozx0LiZqQ+uuefwEDh8Fj+a+lvrfmBJSxkOGBEF4UNliKyFJ9usdjgCdSQupve37s7RHhb3ICOvPzfH8swDhD54kb8vwjIVESSn+/ug91/SjqQcT/wAlgNhiz0CcyQhaLsMgnPULoX73m0nL7fnnvw8ND7QT0sA+LfGKlYRB82ks7NnNIlmP1d/sjvVtsJTDbm/HXG/3x2OmfTznzR44NgmOX7Y7NHJLms/q7gyO9MPqLi4t6+b9cLustgKb6eMw3FdwfmjFggKg3X71l4I7NHJLmHf3PVPs5/o7l9H///r214p7a2udzv8hn5RgDShsN3Czg1SE4lom6xKO4heB2rdnvYdi6QljgGbO9BvfgOLa65Ac3+hpOBinjtHkDhMdv/Qe+p45gTkeQL7bUtwIeaK5OoJ4MdKZHlG9lDkBIPsDzQ/QmJ3B6emopHqwB2corQzDDX19fOzvNh7GAr+EE/CO9eHDPnxH+0t8/ugnBpWE1QOHzwpbvurxfwbibnEA9/VdpPh7pzQjs3yyfK2rkMHxzBAj0+I6ADiAvdFsHLvT37zkBGP5YSB6YA2ha9lvrJiz9hQ4gO7CVswo+jfH80QlgMqD2GaKC35unF88JYCtAB5AnGvi9h6F7GZ9GJ2CZP0b7M8XSO4eZADqAvLHIPxzAW07AjvpKYfxPCkBngevn5+fVr1+/TqtAoFQDQUieuF2RD1J5SOyP1+v15c+fP6Vy9HJxcSHfv3+X6nsIAF2cnJysq5d8r1YAP/EshVGEA6iYVkZ/+e3bN5nNZu/+5a9fv+LpXyHJocG72x8/fpxXDv+2+vocDr+K9cDp31UrvYcDJ3AOJ1A9bqrHs5D80BlhZdF+f8lvhz3we68QZMX0T3pglWcHd6Cjdeyx/L6W+M6s6EdP9c2ElIHbneJaWStnFIRoTOBe94D4eiokSZyW72oxl/MLfvA1jB6642CPpoCXDPhljO79RwffG6kj2OrzqT5e1Xo3vZ7EC2K7B0073GGaD9/XmX/1nvFT/4Rx2syjbT+AIW+gIZ/D7ao9b//kBDQ4ePkB46f+qeICtPFy2g8gpavJSwZpW8zw1sWnyQl8Zs9P/RPFBWzj5RK6mrxkTCfb/1uu/9AJfHbPT/0Tw3XQxqthELArcETocn5lffvtXL/vBNr08KP+CQFxvLbQEwmEDQJe/RQXTi/tsBp+O/AFEOn3Un9z1yLaT/0TQgNBwb20Zg/o/SPBsjkwShh7vb5fLq2M22/wEqS8V/+9sRBChsXtuvfWxo1f7EQnHpj1se/XZh5s3U1ITrhdfX+91LdZ3io73b7JqwX8RkIIyQPs5THLY6kPYPjmCLw8/0hI3iAd8/j4uN1sNisZGLwH/3gpCYcfuHPeFd0wdtv3myPwWnf32suR+veMn+fHBy8DA0fEPHF4NOhmS/r6kA/2+tbCHZd2aMAP38D6/8ENUNtP/XvERXhXn2OxSCcggId9vRXx4LNF12avdfsLJyADQf17IkbjNzgIwoOUK27p8Sv58Nl6vf1qJ6DL/kE7+VD/jonZ+A0OgvB8wAngbH8UN/ZQ/45IwfgNDoLwvOUEtLw3qr6N1D8wiOimYvxGwyAYC2lFkxNAjCCGmf8Q6h8QRHeR7knF+A0bBJqqmgr5NO6gGYc5gTYHe/qC+gfC7bv3jCUx3K5ibepYmPJp3BvNXNyut+M0xpn/EOpPyBG4AM1cCCEJkmLMhxASiKenp3saf4Fg2Vc9FsjpSuZo3hr/115r1lMAe+bNZrPO2fip/wH+nq9iKZkD8ZknLhfq79EQ8MneK7JYpGyov5JShV9oOAjKvnSjeP1LNn6j5EHgWl7akgPF6k/j31PiIGCef09x+jPP+5qSBgGd/2uKcgIHEdCJkBp/EOSaCaHxv00J+tdoDnRJ8V+jtePLHGshaPzvk7P+pGC47SOkYCqDn6FvH42fkAJxuyPdaN01FlIGbnc/37TkFE8o3L4nAmvHCyQ5/S3gw24oYXAvuyKxbLgwktK/xNr+rsFqKpU8sa78Zlz5hSMZ/Znq6Y4UikVMf72oYyYkGNHrT+PvnpgHAVd+3ROt/jT+/ohxEFD//ohOf4rfPzENAurfP1E5AVzPRPH7xx8EuJ1WBoDGPxyH+ruhjlTjbnR9AxMhvYLPHA4YGkjPIMpP4x+WIfUnhYMZx2voMRFCSFlohVqR3XwIIaQc3O5OtrGQJFC9RkKKRCsyRxICi/YuFgvs986ERA3Eh1ahUkT4GQg0Vc9XQqInqP6ODRyTA046VJ7Y1x/XdgmJnmD6M8+bLiGKRVjemy6t9WeeN30aBsGHI/bUP33a6M88bybYIPjs9o3658Gx+tuLmefNgGN1pP55QB0JIYQQQgghhBBCCJGy+T9ftRg+rVNPfAAAAABJRU5ErkJggg=='); -`,pse={display:"flex",justifyContent:"center",alignItems:"center",position:"fixed",top:"16px",right:"16px",padding:"12px",borderRadius:"4px",boxShadow:"0px 4px 5px 0px rgba(0, 0, 0, 0.04), 0px 2px 4px 0px rgba(0, 0, 0, 0.03)",fontSize:"14px",fontWeight:400,lineHeight:"20px",backgroundColor:"#FFC000",color:"#1E1E1E",zIndex:2e4},gse={display:"inline-flex",position:"relative",border:"none",borderRadius:"4px",padding:"5px",backgroundColor:"transparent",transition:"color 0.2s ease-in-out",outline:"none",cursor:"pointer"},bse="https://www.telerik.com/kendo-angular-ui/components/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-banner",qO=!1,Os=(()=>{class o{constructor(){this.watermarkStyle=mse,this.isOpen=!0,this.bannerMounted=!1,this.bannerStyles=pse,this.buttonStyles=gse,this.licenseKeyUrl=bse}ngOnInit(){qO||(this.bannerMounted=!0,qO=!0)}ngAfterViewInit(){this.isBannerRendered&&document.body.appendChild(this.banner.nativeElement)}ngOnDestroy(){this.isBannerRendered&&document.body.removeChild(this.banner.nativeElement)}closeBanner(){this.isOpen=!1}get isBannerRendered(){return he()&&this.banner&&this.banner.nativeElement}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=Q({type:o,selectors:[["div","kendoWatermarkOverlay",""]],viewQuery:function(e,i){if(e&1&&W(Xre,5),e&2){let n;M(n=T())&&(i.banner=n.first)}},hostVars:2,hostBindings:function(e,i){e&2&&ul(i.watermarkStyle)},attrs:Zre,decls:1,vars:1,consts:[["banner",""],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],["width","16","height","16","viewBox","0 0 16 16","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z","fill","#1E1E1E"],[3,"href","ngStyle"],["title","Learn More",3,"ngStyle"],["d","M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z","fill","#1E1E1E"],["title","Close",3,"click","ngStyle"],["d","M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z","fill","#1E1E1E"]],template:function(e,i){e&1&&C(0,tse,15,10,"div",1),e&2&&h("ngIf",i.isOpen&&i.bannerMounted)},dependencies:[xe,fo],encapsulation:2}),o})(),Y0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=ve({type:o}),o.\u0275inj=_e({imports:[[et]]}),o})(),Sse=["telerik.com","progress.com","stackblitz.io","csb.app"];function Ls(o){return!Sse.some(e=>globalThis.document?.location.hostname.endsWith(e))&&!o}var ec=(()=>{class o{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return o.\u0275fac=function(e){return new(e||o)(p(Ce,8))},o.\u0275dir=q({type:o,selectors:[["","kendoPrefixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),o})(),tc=(()=>{class o{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return o.\u0275fac=function(e){return new(e||o)(p(Ce,8))},o.\u0275dir=q({type:o,selectors:[["","kendoSuffixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),o})(),Wb=(()=>{class o{constructor(){this.orientation="vertical",this.hostClass=!0}get vertical(){return this.orientation==="vertical"}get horizontal(){return this.orientation==="horizontal"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=Q({type:o,selectors:[["kendo-separator"]],hostVars:6,hostBindings:function(e,i){e&2&&te("k-input-separator-vertical",i.vertical)("k-input-separator-horizontal",i.horizontal)("k-input-separator",i.hostClass)},inputs:{orientation:"orientation"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),o})(),Yi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=ve({type:o}),o.\u0275inj=_e({}),o})(),Zi=class{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}};var xm=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=ve({type:o}),o.\u0275inj=_e({imports:[[]]}),o})();var oL=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];(function(o,t){var e=function(i){for(;--i;)o.push(o.shift())};e(++t)})(oL,439);var Z=function(o,t){o=o-0;var e=oL[o];if(Z.aWziBr===void 0){var i=function(r){for(var s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",a=String(r).replace(/=+$/,""),l="",c=0,d,f,u=0;f=a.charAt(u++);~f&&(d=c%4?d*64+f:f,c++%4)?l+=String.fromCharCode(255&d>>(-2*c&6)):0)f=s.indexOf(f);return l};Z.XjGMHe=function(r){for(var s=i(r),a=[],l=0,c=s.length;l{class o{constructor(){this.watermarkStyle=mse,this.isOpen=!0,this.bannerMounted=!1,this.bannerStyles=pse,this.buttonStyles=gse,this.licenseKeyUrl=bse}ngOnInit(){qO||(this.bannerMounted=!0,qO=!0)}ngAfterViewInit(){this.isBannerRendered&&document.body.appendChild(this.banner.nativeElement)}ngOnDestroy(){this.isBannerRendered&&document.body.removeChild(this.banner.nativeElement)}closeBanner(){this.isOpen=!1}get isBannerRendered(){return he()&&this.banner&&this.banner.nativeElement}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=Q({type:o,selectors:[["div","kendoWatermarkOverlay",""]],viewQuery:function(e,i){if(e&1&&W(Xre,5),e&2){let n;M(n=T())&&(i.banner=n.first)}},hostVars:2,hostBindings:function(e,i){e&2&&ul(i.watermarkStyle)},attrs:Zre,decls:1,vars:1,consts:[["banner",""],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],["width","16","height","16","viewBox","0 0 16 16","fill","none"],["fill-rule","evenodd","clip-rule","evenodd","d","M8 1L0 15H16L8 1ZM7 6V11H9V6H7ZM7 14V12H9V14H7Z","fill","#1E1E1E"],[3,"href","ngStyle"],["title","Learn More",3,"ngStyle"],["d","M15 8C15 11.8656 11.8656 15 8 15C4.13437 15 1 11.8656 1 8C1 4.13437 4.13437 1 8 1C11.8656 1 15 4.13437 15 8ZM14 8C14 4.6875 11.3125 2 8 2C4.6875 2 2 4.6875 2 8C2 11.3125 4.6875 14 8 14C11.3125 14 14 11.3125 14 8ZM11 6C11 7.4125 10.2687 8.05937 9.73125 8.53125C9.25937 8.94688 9 9.17813 9 10H7C7 8.275 7.84688 7.525 8.40938 7.03125C8.84062 6.65312 9 6.50938 9 6C9 5.45 8.55 5 8 5C7.45 5 7 5.45 7 6H5C5 4.34375 6.34375 3 8 3C9.65625 3 11 4.34375 11 6ZM9 13V11H7V13H9Z","fill","#1E1E1E"],["title","Close",3,"click","ngStyle"],["d","M13 4.41562L9.41563 8L13 11.5844L11.5844 13L8 9.41563L4.41562 13L3 11.5844L6.58437 8L3 4.41562L4.41562 3L8 6.58437L11.5844 3L13 4.41562Z","fill","#1E1E1E"]],template:function(e,i){e&1&&C(0,tse,15,10,"div",1),e&2&&h("ngIf",i.isOpen&&i.bannerMounted)},dependencies:[xe,fo],encapsulation:2}),o})(),Y0=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=ve({type:o}),o.\u0275inj=_e({imports:[[et]]}),o})(),Sse=["telerik.com","progress.com","stackblitz.io","csb.app"];function Ls(o){return!Sse.some(e=>globalThis.document?.location.hostname.endsWith(e))&&!o}var ec=(()=>{class o{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return o.\u0275fac=function(e){return new(e||o)(p(Ce,8))},o.\u0275dir=q({type:o,selectors:[["","kendoPrefixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),o})(),tc=(()=>{class o{constructor(e){this.templateRef=e,this._showSeparator=!1}set showSeparator(e){this._showSeparator=e}get showSeparator(){return this._showSeparator}}return o.\u0275fac=function(e){return new(e||o)(p(Ce,8))},o.\u0275dir=q({type:o,selectors:[["","kendoSuffixTemplate",""]],inputs:{showSeparator:"showSeparator"}}),o})(),Wb=(()=>{class o{constructor(){this.orientation="vertical",this.hostClass=!0}get vertical(){return this.orientation==="vertical"}get horizontal(){return this.orientation==="horizontal"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=Q({type:o,selectors:[["kendo-separator"]],hostVars:6,hostBindings:function(e,i){e&2&&te("k-input-separator-vertical",i.vertical)("k-input-separator-horizontal",i.horizontal)("k-input-separator",i.hostClass)},inputs:{orientation:"orientation"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),o})(),Yi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=ve({type:o}),o.\u0275inj=_e({}),o})(),Zi=class{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}};var xm=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=ve({type:o}),o.\u0275inj=_e({imports:[[]]}),o})();var oL=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];(function(o,t){var e=function(i){for(;--i;)o.push(o.shift())};e(++t)})(oL,439);var Z=function(o,t){o=o-0;var e=oL[o];if(Z.aWziBr===void 0){var i=function(r){for(var s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",a=String(r).replace(/=+$/,""),l="",c=0,d,f,u=0;f=a.charAt(u++);~f&&(d=c%4?d*64+f:f,c++%4)?l+=String.fromCharCode(255&d>>(-2*c&6)):0)f=s.indexOf(f);return l};Z.XjGMHe=function(r){for(var s=i(r),a=[],l=0,c=s.length;l